@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
@@ -1,15 +1,315 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "EvidenceBundle",
4
- "type": "object",
5
- "properties": {
6
- "items": { "type": "array" },
7
- "conflicts": { "type": "array" },
8
- "unknowns": { "type": "array" },
9
- "warnings": { "type": "array" },
10
- "continuations": { "type": "array" },
11
- "answer": { "type": "string" },
12
- "budgetsUsed": { "type": "object" }
13
- },
14
- "required": ["items"]
15
- }
1
+ {
2
+ "$ref": "#/definitions/EvidenceBundle",
3
+ "definitions": {
4
+ "EvidenceBundle": {
5
+ "type": "object",
6
+ "properties": {
7
+ "items": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ },
16
+ "ref": {
17
+ "anyOf": [
18
+ {
19
+ "type": "object",
20
+ "properties": {
21
+ "kind": {
22
+ "type": "string",
23
+ "const": "subject"
24
+ },
25
+ "orgId": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "objectType": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "contentType": {
34
+ "type": "string",
35
+ "minLength": 1
36
+ },
37
+ "recordId": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "revision": {
42
+ "anyOf": [
43
+ {
44
+ "type": "integer"
45
+ },
46
+ {
47
+ "type": "string"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ "required": [
53
+ "kind",
54
+ "orgId",
55
+ "objectType",
56
+ "contentType",
57
+ "recordId"
58
+ ],
59
+ "additionalProperties": false
60
+ },
61
+ {
62
+ "type": "object",
63
+ "properties": {
64
+ "kind": {
65
+ "type": "string",
66
+ "const": "estate-bag"
67
+ },
68
+ "orgId": {
69
+ "type": "string",
70
+ "minLength": 1
71
+ },
72
+ "sessionId": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ },
76
+ "bagId": {
77
+ "type": "string",
78
+ "minLength": 1
79
+ },
80
+ "path": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "required": [
85
+ "kind",
86
+ "orgId",
87
+ "sessionId",
88
+ "bagId"
89
+ ],
90
+ "additionalProperties": false
91
+ },
92
+ {
93
+ "type": "object",
94
+ "properties": {
95
+ "kind": {
96
+ "type": "string",
97
+ "const": "knowledge-explore"
98
+ },
99
+ "orgId": {
100
+ "type": "string",
101
+ "minLength": 1
102
+ },
103
+ "exploreQueryId": {
104
+ "type": "string",
105
+ "minLength": 1
106
+ },
107
+ "nodeIds": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "string"
111
+ }
112
+ }
113
+ },
114
+ "required": [
115
+ "kind",
116
+ "orgId",
117
+ "exploreQueryId"
118
+ ],
119
+ "additionalProperties": false
120
+ }
121
+ ]
122
+ },
123
+ "summary": {
124
+ "type": "string",
125
+ "minLength": 1
126
+ },
127
+ "epistemic": {
128
+ "type": "string",
129
+ "enum": [
130
+ "OBSERVED",
131
+ "INFERRED",
132
+ "POLICY_CANDIDATE",
133
+ "REACHABLE",
134
+ "UNKNOWN",
135
+ "CONFLICTING"
136
+ ]
137
+ },
138
+ "confidence": {
139
+ "type": "number",
140
+ "minimum": 0,
141
+ "maximum": 1
142
+ },
143
+ "payload": {},
144
+ "tags": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "string"
148
+ }
149
+ }
150
+ },
151
+ "required": [
152
+ "id",
153
+ "ref",
154
+ "summary",
155
+ "epistemic"
156
+ ],
157
+ "additionalProperties": false
158
+ }
159
+ },
160
+ "conflicts": {
161
+ "type": "array",
162
+ "items": {
163
+ "type": "object",
164
+ "properties": {
165
+ "id": {
166
+ "type": "string",
167
+ "minLength": 1
168
+ },
169
+ "message": {
170
+ "type": "string",
171
+ "minLength": 1
172
+ },
173
+ "evidenceIds": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "string"
177
+ },
178
+ "minItems": 1
179
+ },
180
+ "severity": {
181
+ "type": "string",
182
+ "enum": [
183
+ "low",
184
+ "medium",
185
+ "high"
186
+ ],
187
+ "default": "medium"
188
+ }
189
+ },
190
+ "required": [
191
+ "id",
192
+ "message",
193
+ "evidenceIds"
194
+ ],
195
+ "additionalProperties": false
196
+ },
197
+ "default": []
198
+ },
199
+ "unknowns": {
200
+ "type": "array",
201
+ "items": {
202
+ "type": "object",
203
+ "properties": {
204
+ "id": {
205
+ "type": "string",
206
+ "minLength": 1
207
+ },
208
+ "message": {
209
+ "type": "string",
210
+ "minLength": 1
211
+ },
212
+ "relatedEvidenceIds": {
213
+ "type": "array",
214
+ "items": {
215
+ "type": "string"
216
+ }
217
+ }
218
+ },
219
+ "required": [
220
+ "id",
221
+ "message"
222
+ ],
223
+ "additionalProperties": false
224
+ },
225
+ "default": []
226
+ },
227
+ "warnings": {
228
+ "type": "array",
229
+ "items": {
230
+ "type": "object",
231
+ "properties": {
232
+ "code": {
233
+ "type": "string",
234
+ "minLength": 1
235
+ },
236
+ "message": {
237
+ "type": "string",
238
+ "minLength": 1
239
+ },
240
+ "details": {}
241
+ },
242
+ "required": [
243
+ "code",
244
+ "message"
245
+ ],
246
+ "additionalProperties": false
247
+ },
248
+ "default": []
249
+ },
250
+ "continuations": {
251
+ "type": "array",
252
+ "items": {
253
+ "type": "object",
254
+ "properties": {
255
+ "kind": {
256
+ "type": "string",
257
+ "enum": [
258
+ "follow-up-question",
259
+ "estate-session",
260
+ "explore",
261
+ "manual"
262
+ ]
263
+ },
264
+ "message": {
265
+ "type": "string",
266
+ "minLength": 1
267
+ },
268
+ "payload": {}
269
+ },
270
+ "required": [
271
+ "kind",
272
+ "message"
273
+ ],
274
+ "additionalProperties": false
275
+ },
276
+ "default": []
277
+ },
278
+ "answer": {
279
+ "type": "string"
280
+ },
281
+ "budgetsUsed": {
282
+ "type": "object",
283
+ "properties": {
284
+ "subjects": {
285
+ "type": "integer",
286
+ "minimum": 0
287
+ },
288
+ "evidenceItems": {
289
+ "type": "integer",
290
+ "minimum": 0
291
+ },
292
+ "parallelCalls": {
293
+ "type": "integer",
294
+ "minimum": 0
295
+ },
296
+ "tokens": {
297
+ "type": "integer",
298
+ "minimum": 0
299
+ },
300
+ "wallClockMs": {
301
+ "type": "integer",
302
+ "minimum": 0
303
+ }
304
+ },
305
+ "additionalProperties": false
306
+ }
307
+ },
308
+ "required": [
309
+ "items"
310
+ ],
311
+ "additionalProperties": false
312
+ }
313
+ },
314
+ "$schema": "http://json-schema.org/draft-07/schema#"
315
+ }