Variable: ContextRulesStorageNamespace
Makaio Framework / services-core/context-rules / ContextRulesStorageNamespace
Variable: ContextRulesStorageNamespace
Section titled “Variable: ContextRulesStorageNamespace”
constContextRulesStorageNamespace:StorageNamespace<"contextRules",SubjectRecordFromSchemaRecord<{delete: {request:ZodObject<{id:ZodString; },$strip>;response:ZodObject<{deleted:ZodBoolean; },$strip>; };get: {request:ZodObject<{id:ZodString; },$strip>;response:ZodObject<{rule:ZodNullable<ZodType<ContextRule,ContextRule,$ZodTypeInternals<ContextRule,ContextRule>>>; },$strip>; };list: {request:ZodObject<{projectId:ZodOptional<ZodString>;sessionId:ZodOptional<ZodString>; },$strict>;response:ZodObject<{rules:ZodArray<ZodType<ContextRule,ContextRule,$ZodTypeInternals<ContextRule,ContextRule>>>; },$strip>; };set: {request:ZodObject<{rule:ZodType<ContextRuleInput,ContextRuleInput,$ZodTypeInternals<ContextRuleInput,ContextRuleInput>>; },$strip>;response:ZodObject<{id:ZodString; },$strip>; }; }>, {id:string;projectId:never;rule:ContextRuleInput;sessionId:never; },StorageNamespaceExtensions, {delete: {request:ZodObject<{id:ZodString; },$strip>;response:ZodObject<{deleted:ZodBoolean; },$strip>; };get: {request:ZodObject<{id:ZodString; },$strip>;response:ZodObject<{rule:ZodNullable<ZodType<ContextRule,ContextRule,$ZodTypeInternals<ContextRule,ContextRule>>>; },$strip>; };list: {request:ZodObject<{projectId:ZodOptional<ZodString>;sessionId:ZodOptional<ZodString>; },$strict>;response:ZodObject<{rules:ZodArray<ZodType<ContextRule,ContextRule,$ZodTypeInternals<ContextRule,ContextRule>>>; },$strip>; };set: {request:ZodObject<{rule:ZodType<ContextRuleInput,ContextRuleInput,$ZodTypeInternals<ContextRuleInput,ContextRuleInput>>; },$strip>;response:ZodObject<{id:ZodString; },$strip>; }; }>
Defined in: ../../../packages/services/core/src/context-rules/storage-namespace.ts:12
Storage namespace for persisted context rules.
Storage owns CRUD and scope-based candidate listing only. Effective rule resolution, sorting, evaluation, rendering, and grouping belong to the service layer.