@x12i/memorix-scoper-contracts 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/project-record.d.ts +9 -0
  6. package/dist/project-record.d.ts.map +1 -1
  7. package/dist/project-record.js +13 -0
  8. package/dist/project-record.js.map +1 -1
  9. package/dist/schemas/index.d.ts +1 -1
  10. package/dist/schemas/index.d.ts.map +1 -1
  11. package/dist/schemas/index.js +1 -1
  12. package/dist/schemas/index.js.map +1 -1
  13. package/dist/schemas/profile.d.ts +2 -2
  14. package/dist/schemas/request.d.ts +376 -6
  15. package/dist/schemas/request.d.ts.map +1 -1
  16. package/dist/schemas/request.js +152 -0
  17. package/dist/schemas/request.js.map +1 -1
  18. package/package.json +4 -4
  19. package/schemas/CatalogEntry.json +67 -17
  20. package/schemas/CatalogEntry.schema.json +157 -157
  21. package/schemas/EvidenceBundle.json +315 -15
  22. package/schemas/EvidenceBundle.schema.json +469 -469
  23. package/schemas/EvidenceItem.json +156 -15
  24. package/schemas/EvidenceRef.json +113 -9
  25. package/schemas/EvidenceSelection.schema.json +83 -83
  26. package/schemas/IntentScopeRequest.json +78 -0
  27. package/schemas/IntentScopeResponse.json +105 -0
  28. package/schemas/RetrievalPlan.json +221 -13
  29. package/schemas/RetrievalPlan.schema.json +73 -73
  30. package/schemas/RetrievalStep.json +51 -14
  31. package/schemas/ScopeIntent.json +84 -0
  32. package/schemas/ScopeRequest.json +151 -28
  33. package/schemas/ScopeRequest.schema.json +108 -108
  34. package/schemas/ScoperBudgets.json +48 -14
  35. package/schemas/ScoperProfile.json +114 -17
  36. package/schemas/TrustedExecutionContext.json +57 -22
  37. package/schemas/TrustedExecutionContext.schema.json +129 -129
  38. package/dist/schemas.d.ts +0 -1077
  39. package/dist/schemas.d.ts.map +0 -1
  40. package/dist/schemas.js +0 -199
  41. package/dist/schemas.js.map +0 -1
  42. package/dist/schemas.test.d.ts +0 -2
  43. package/dist/schemas.test.d.ts.map +0 -1
  44. package/dist/schemas.test.js +0 -29
  45. package/dist/schemas.test.js.map +0 -1
@@ -166,6 +166,158 @@ export const SubjectDataResponseSchema = z.object({
166
166
  .max(16)
167
167
  .optional(),
168
168
  });
169
+ const portableIntentId = z
170
+ .string()
171
+ .regex(/^[a-z0-9][a-z0-9._-]*$/, "Use a portable lowercase id.")
172
+ .max(100);
173
+ const BLOCKED_FIELD_SEGMENTS = new Set(["__proto__", "prototype", "constructor"]);
174
+ function duplicateIndexes(values) {
175
+ const seen = new Set();
176
+ const duplicates = [];
177
+ values.forEach((value, index) => {
178
+ if (seen.has(value))
179
+ duplicates.push(index);
180
+ seen.add(value);
181
+ });
182
+ return duplicates;
183
+ }
184
+ /** One related object type reached through a field on the anchor record. */
185
+ export const ScopeIntentRelationSchema = z
186
+ .object({
187
+ /** Dot path on the anchor record. A bare name also matches `data.<name>`. */
188
+ field: z.string().min(1).max(200),
189
+ /** Anchor content type that holds `field`. Omit to search anchor pieces in order. */
190
+ sourceContentType: z.string().min(1).max(200).optional(),
191
+ objectType: z.string().min(1).max(200),
192
+ contentTypes: z.array(z.string().min(1).max(200)).min(1).max(16),
193
+ })
194
+ .strict();
195
+ /**
196
+ * One value of the intent enum.
197
+ * `objectType` is the first tier. `contentTypes` and `relations` stay on the
198
+ * document and are not the fetch script. The menu is the object-type descriptor.
199
+ */
200
+ export const ScopeIntentSchema = z
201
+ .object({
202
+ id: portableIntentId,
203
+ title: z.string().min(1).max(200),
204
+ objectType: z.string().min(1).max(200),
205
+ contentTypes: z.array(z.string().min(1).max(200)).min(1).max(16),
206
+ relations: z.array(ScopeIntentRelationSchema).max(32),
207
+ })
208
+ .strict()
209
+ .superRefine((value, ctx) => {
210
+ for (const index of duplicateIndexes(value.contentTypes)) {
211
+ ctx.addIssue({
212
+ code: z.ZodIssueCode.custom,
213
+ path: ["contentTypes", index],
214
+ message: "Duplicate content type.",
215
+ });
216
+ }
217
+ value.relations.forEach((relation, index) => {
218
+ const parts = relation.field
219
+ .split(".")
220
+ .map((part) => part.trim())
221
+ .filter(Boolean);
222
+ if (!parts.length || parts.some((part) => BLOCKED_FIELD_SEGMENTS.has(part))) {
223
+ ctx.addIssue({
224
+ code: z.ZodIssueCode.custom,
225
+ path: ["relations", index, "field"],
226
+ message: "Field path is not allowed.",
227
+ });
228
+ }
229
+ for (const dup of duplicateIndexes(relation.contentTypes)) {
230
+ ctx.addIssue({
231
+ code: z.ZodIssueCode.custom,
232
+ path: ["relations", index, "contentTypes", dup],
233
+ message: "Duplicate content type.",
234
+ });
235
+ }
236
+ if (relation.sourceContentType && !value.contentTypes.includes(relation.sourceContentType)) {
237
+ ctx.addIssue({
238
+ code: z.ZodIssueCode.custom,
239
+ path: ["relations", index, "sourceContentType"],
240
+ message: "sourceContentType must be one of the intent content types.",
241
+ });
242
+ }
243
+ });
244
+ });
245
+ const intentScopeRedo = z.boolean().optional();
246
+ /** Address mode: a record id and an intent. Associations stay structural. */
247
+ const IntentScopeAddressRequestSchema = z
248
+ .object({
249
+ recordId: z.string().min(1),
250
+ intent: z.string().min(1),
251
+ redo: intentScopeRedo,
252
+ })
253
+ .strict();
254
+ /** Record mode: the address plus the record body the decision may read. */
255
+ const IntentScopeRecordRequestSchema = z
256
+ .object({
257
+ recordId: z.string().min(1),
258
+ intent: z.string().min(1),
259
+ record: z.record(z.unknown()),
260
+ redo: intentScopeRedo,
261
+ })
262
+ .strict();
263
+ /** Text mode: prose and an intent. No record id. */
264
+ const IntentScopeTextRequestSchema = z
265
+ .object({
266
+ intent: z.string().min(1),
267
+ text: z.string().min(1),
268
+ redo: intentScopeRedo,
269
+ })
270
+ .strict();
271
+ /**
272
+ * Caller fields for an intent scope. The intent id must be one the host loaded.
273
+ * Record mode is the body that includes `record`. Text mode is the body that
274
+ * includes `text` and no `recordId`. Anything else with `recordId` is address mode.
275
+ * `redo: true` skips the selection cache.
276
+ */
277
+ export const IntentScopeRequestSchema = z.union([
278
+ IntentScopeRecordRequestSchema,
279
+ IntentScopeTextRequestSchema,
280
+ IntentScopeAddressRequestSchema,
281
+ ]);
282
+ export const IntentScopeObjectSchema = z.object({
283
+ contentType: z.string().min(1),
284
+ found: z.boolean(),
285
+ record: z.record(z.unknown()).nullable(),
286
+ });
287
+ const ScopeSelectionContentSchema = z
288
+ .object({
289
+ id: z.string().min(1),
290
+ properties: z.array(z.string()),
291
+ })
292
+ .strict();
293
+ /**
294
+ * What to read. Not the stored records.
295
+ * `associations[].recordIds` is present only for record mode.
296
+ */
297
+ export const ScopeSelectionSchema = z
298
+ .object({
299
+ intent: z.string().min(1),
300
+ anchor: z
301
+ .object({
302
+ objectType: z.string().min(1),
303
+ recordIds: z.array(z.string()),
304
+ contentTypes: z.array(ScopeSelectionContentSchema),
305
+ })
306
+ .strict(),
307
+ associations: z.array(z
308
+ .object({
309
+ field: z.string().min(1),
310
+ objectType: z.string().min(1),
311
+ recordIds: z.array(z.string()).optional(),
312
+ contentTypes: z.array(ScopeSelectionContentSchema),
313
+ })
314
+ .strict()),
315
+ /** Picks that named something outside that step's candidates. */
316
+ warnings: z.array(z.string()).optional(),
317
+ })
318
+ .strict();
319
+ /** Intent scope returns the selection, not the stored records. */
320
+ export const IntentScopeResponseSchema = ScopeSelectionSchema;
169
321
  export function clampBudgets(requested, hostCaps = DEFAULT_SCOPER_BUDGETS) {
170
322
  const base = { ...hostCaps };
171
323
  if (!requested)
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/schemas/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,E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AAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IACD,OAAO,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x12i/memorix-scoper-contracts",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Zod schemas and types for Memorix Scoper",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -35,11 +35,11 @@
35
35
  "tag": "latest"
36
36
  },
37
37
  "dependencies": {
38
- "zod": "^3.25.67"
38
+ "zod": "^3.25.76"
39
39
  },
40
40
  "devDependencies": {
41
- "typescript": "^5.8.3",
42
- "vitest": "^3.2.4"
41
+ "typescript": "^5.9.3",
42
+ "vitest": "^3.2.7"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=22"
@@ -1,17 +1,67 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "CatalogEntry",
4
- "type": "object",
5
- "properties": {
6
- "id": { "type": "string" },
7
- "capability": { "type": "string" },
8
- "objectType": { "type": "string" },
9
- "contentType": { "type": "string" },
10
- "description": { "type": "string" },
11
- "version": { "type": "string" },
12
- "enabled": { "type": "boolean" },
13
- "requiresFeature": { "type": "string" },
14
- "epistemicDefault": { "type": "string" }
15
- },
16
- "required": ["id", "capability", "description", "version"]
17
- }
1
+ {
2
+ "$ref": "#/definitions/CatalogEntry",
3
+ "definitions": {
4
+ "CatalogEntry": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "capability": {
12
+ "type": "string",
13
+ "enum": [
14
+ "subjects.get",
15
+ "subjects.list",
16
+ "subjects.query",
17
+ "subjects.getNexumSnapshot",
18
+ "estate.startSession",
19
+ "estate.getBag",
20
+ "estate.query",
21
+ "explore.query",
22
+ "catalog.describe"
23
+ ]
24
+ },
25
+ "objectType": {
26
+ "type": "string"
27
+ },
28
+ "contentType": {
29
+ "type": "string"
30
+ },
31
+ "description": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "version": {
36
+ "type": "string",
37
+ "minLength": 1
38
+ },
39
+ "enabled": {
40
+ "type": "boolean",
41
+ "default": true
42
+ },
43
+ "requiresFeature": {
44
+ "type": "string"
45
+ },
46
+ "epistemicDefault": {
47
+ "type": "string",
48
+ "enum": [
49
+ "OBSERVED",
50
+ "INFERRED",
51
+ "POLICY_CANDIDATE",
52
+ "REACHABLE",
53
+ "UNKNOWN"
54
+ ]
55
+ }
56
+ },
57
+ "required": [
58
+ "id",
59
+ "capability",
60
+ "description",
61
+ "version"
62
+ ],
63
+ "additionalProperties": false
64
+ }
65
+ },
66
+ "$schema": "http://json-schema.org/draft-07/schema#"
67
+ }
@@ -1,157 +1,157 @@
1
- {
2
- "$ref": "#/definitions/CatalogEntry",
3
- "definitions": {
4
- "CatalogEntry": {
5
- "type": "object",
6
- "properties": {
7
- "id": {
8
- "type": "string"
9
- },
10
- "version": {
11
- "type": "string"
12
- },
13
- "description": {
14
- "type": "string"
15
- },
16
- "surface": {
17
- "type": "string",
18
- "enum": [
19
- "estate-bag",
20
- "subject",
21
- "knowledge-explore"
22
- ]
23
- },
24
- "operation": {
25
- "type": "string"
26
- },
27
- "physicalContractVersion": {
28
- "type": "string"
29
- },
30
- "identifiers": {
31
- "type": "array",
32
- "items": {
33
- "type": "object",
34
- "properties": {
35
- "name": {
36
- "type": "string"
37
- },
38
- "kind": {
39
- "type": "string"
40
- },
41
- "required": {
42
- "type": "boolean"
43
- }
44
- },
45
- "required": [
46
- "name",
47
- "kind"
48
- ],
49
- "additionalProperties": false
50
- }
51
- },
52
- "relationships": {
53
- "type": "array",
54
- "items": {
55
- "type": "object",
56
- "properties": {
57
- "name": {
58
- "type": "string"
59
- },
60
- "target": {
61
- "type": "string"
62
- },
63
- "cardinality": {
64
- "type": "string"
65
- },
66
- "strength": {
67
- "type": "string",
68
- "enum": [
69
- "identity",
70
- "authoritative-relation",
71
- "weak-correlation"
72
- ]
73
- }
74
- },
75
- "required": [
76
- "name",
77
- "target",
78
- "cardinality",
79
- "strength"
80
- ],
81
- "additionalProperties": false
82
- }
83
- },
84
- "clock": {
85
- "type": "string",
86
- "enum": [
87
- "stable",
88
- "live"
89
- ]
90
- },
91
- "epistemicPlanes": {
92
- "type": "array",
93
- "items": {
94
- "type": "string"
95
- }
96
- },
97
- "limits": {
98
- "type": "object",
99
- "additionalProperties": {
100
- "type": [
101
- "number",
102
- "string",
103
- "boolean"
104
- ]
105
- }
106
- },
107
- "classification": {
108
- "type": "string"
109
- },
110
- "requiredPermissions": {
111
- "type": "array",
112
- "items": {
113
- "type": "string"
114
- }
115
- },
116
- "mayBeMissing": {
117
- "type": "boolean"
118
- },
119
- "limitations": {
120
- "type": "array",
121
- "items": {
122
- "type": "string"
123
- }
124
- },
125
- "prohibitedInferences": {
126
- "type": "array",
127
- "items": {
128
- "type": "string"
129
- }
130
- },
131
- "owner": {
132
- "type": "string"
133
- }
134
- },
135
- "required": [
136
- "id",
137
- "version",
138
- "description",
139
- "surface",
140
- "operation",
141
- "physicalContractVersion",
142
- "identifiers",
143
- "relationships",
144
- "epistemicPlanes",
145
- "limits",
146
- "classification",
147
- "requiredPermissions",
148
- "mayBeMissing",
149
- "limitations",
150
- "prohibitedInferences",
151
- "owner"
152
- ],
153
- "additionalProperties": false
154
- }
155
- },
156
- "$schema": "http://json-schema.org/draft-07/schema#"
157
- }
1
+ {
2
+ "$ref": "#/definitions/CatalogEntry",
3
+ "definitions": {
4
+ "CatalogEntry": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string"
9
+ },
10
+ "version": {
11
+ "type": "string"
12
+ },
13
+ "description": {
14
+ "type": "string"
15
+ },
16
+ "surface": {
17
+ "type": "string",
18
+ "enum": [
19
+ "estate-bag",
20
+ "subject",
21
+ "knowledge-explore"
22
+ ]
23
+ },
24
+ "operation": {
25
+ "type": "string"
26
+ },
27
+ "physicalContractVersion": {
28
+ "type": "string"
29
+ },
30
+ "identifiers": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "object",
34
+ "properties": {
35
+ "name": {
36
+ "type": "string"
37
+ },
38
+ "kind": {
39
+ "type": "string"
40
+ },
41
+ "required": {
42
+ "type": "boolean"
43
+ }
44
+ },
45
+ "required": [
46
+ "name",
47
+ "kind"
48
+ ],
49
+ "additionalProperties": false
50
+ }
51
+ },
52
+ "relationships": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "properties": {
57
+ "name": {
58
+ "type": "string"
59
+ },
60
+ "target": {
61
+ "type": "string"
62
+ },
63
+ "cardinality": {
64
+ "type": "string"
65
+ },
66
+ "strength": {
67
+ "type": "string",
68
+ "enum": [
69
+ "identity",
70
+ "authoritative-relation",
71
+ "weak-correlation"
72
+ ]
73
+ }
74
+ },
75
+ "required": [
76
+ "name",
77
+ "target",
78
+ "cardinality",
79
+ "strength"
80
+ ],
81
+ "additionalProperties": false
82
+ }
83
+ },
84
+ "clock": {
85
+ "type": "string",
86
+ "enum": [
87
+ "stable",
88
+ "live"
89
+ ]
90
+ },
91
+ "epistemicPlanes": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "string"
95
+ }
96
+ },
97
+ "limits": {
98
+ "type": "object",
99
+ "additionalProperties": {
100
+ "type": [
101
+ "number",
102
+ "string",
103
+ "boolean"
104
+ ]
105
+ }
106
+ },
107
+ "classification": {
108
+ "type": "string"
109
+ },
110
+ "requiredPermissions": {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "string"
114
+ }
115
+ },
116
+ "mayBeMissing": {
117
+ "type": "boolean"
118
+ },
119
+ "limitations": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ "prohibitedInferences": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "owner": {
132
+ "type": "string"
133
+ }
134
+ },
135
+ "required": [
136
+ "id",
137
+ "version",
138
+ "description",
139
+ "surface",
140
+ "operation",
141
+ "physicalContractVersion",
142
+ "identifiers",
143
+ "relationships",
144
+ "epistemicPlanes",
145
+ "limits",
146
+ "classification",
147
+ "requiredPermissions",
148
+ "mayBeMissing",
149
+ "limitations",
150
+ "prohibitedInferences",
151
+ "owner"
152
+ ],
153
+ "additionalProperties": false
154
+ }
155
+ },
156
+ "$schema": "http://json-schema.org/draft-07/schema#"
157
+ }