@x12i/memorix-scoper-contracts 2.0.0 → 2.1.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 +258 -0
  15. package/dist/schemas/request.d.ts.map +1 -1
  16. package/dist/schemas/request.js +105 -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 +24 -0
  27. package/schemas/IntentScopeResponse.json +119 -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,13 +1,221 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "RetrievalPlan",
4
- "type": "object",
5
- "properties": {
6
- "planId": { "type": "string" },
7
- "rationale": { "type": "string" },
8
- "steps": { "type": "array", "minItems": 1 },
9
- "selections": { "type": "array" },
10
- "answerDraft": { "type": "string" }
11
- },
12
- "required": ["planId", "rationale", "steps"]
13
- }
1
+ {
2
+ "$ref": "#/definitions/RetrievalPlan",
3
+ "definitions": {
4
+ "RetrievalPlan": {
5
+ "type": "object",
6
+ "properties": {
7
+ "planId": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "rationale": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "steps": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {
20
+ "id": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "capability": {
25
+ "type": "string",
26
+ "enum": [
27
+ "subjects.get",
28
+ "subjects.list",
29
+ "subjects.query",
30
+ "subjects.getNexumSnapshot",
31
+ "estate.startSession",
32
+ "estate.getBag",
33
+ "estate.query",
34
+ "explore.query",
35
+ "catalog.describe"
36
+ ]
37
+ },
38
+ "catalogEntryId": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "args": {
43
+ "type": "object",
44
+ "additionalProperties": {},
45
+ "default": {}
46
+ },
47
+ "parallelGroup": {
48
+ "type": "string"
49
+ },
50
+ "required": {
51
+ "type": "boolean",
52
+ "default": true
53
+ }
54
+ },
55
+ "required": [
56
+ "id",
57
+ "capability",
58
+ "catalogEntryId"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "minItems": 1
63
+ },
64
+ "selections": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "object",
68
+ "properties": {
69
+ "stepId": {
70
+ "type": "string",
71
+ "minLength": 1
72
+ },
73
+ "refs": {
74
+ "type": "array",
75
+ "items": {
76
+ "anyOf": [
77
+ {
78
+ "type": "object",
79
+ "properties": {
80
+ "kind": {
81
+ "type": "string",
82
+ "const": "subject"
83
+ },
84
+ "orgId": {
85
+ "type": "string",
86
+ "minLength": 1
87
+ },
88
+ "objectType": {
89
+ "type": "string",
90
+ "minLength": 1
91
+ },
92
+ "contentType": {
93
+ "type": "string",
94
+ "minLength": 1
95
+ },
96
+ "recordId": {
97
+ "type": "string",
98
+ "minLength": 1
99
+ },
100
+ "revision": {
101
+ "anyOf": [
102
+ {
103
+ "type": "integer"
104
+ },
105
+ {
106
+ "type": "string"
107
+ }
108
+ ]
109
+ }
110
+ },
111
+ "required": [
112
+ "kind",
113
+ "orgId",
114
+ "objectType",
115
+ "contentType",
116
+ "recordId"
117
+ ],
118
+ "additionalProperties": false
119
+ },
120
+ {
121
+ "type": "object",
122
+ "properties": {
123
+ "kind": {
124
+ "type": "string",
125
+ "const": "estate-bag"
126
+ },
127
+ "orgId": {
128
+ "type": "string",
129
+ "minLength": 1
130
+ },
131
+ "sessionId": {
132
+ "type": "string",
133
+ "minLength": 1
134
+ },
135
+ "bagId": {
136
+ "type": "string",
137
+ "minLength": 1
138
+ },
139
+ "path": {
140
+ "type": "string"
141
+ }
142
+ },
143
+ "required": [
144
+ "kind",
145
+ "orgId",
146
+ "sessionId",
147
+ "bagId"
148
+ ],
149
+ "additionalProperties": false
150
+ },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "kind": {
155
+ "type": "string",
156
+ "const": "knowledge-explore"
157
+ },
158
+ "orgId": {
159
+ "type": "string",
160
+ "minLength": 1
161
+ },
162
+ "exploreQueryId": {
163
+ "type": "string",
164
+ "minLength": 1
165
+ },
166
+ "nodeIds": {
167
+ "type": "array",
168
+ "items": {
169
+ "type": "string"
170
+ }
171
+ }
172
+ },
173
+ "required": [
174
+ "kind",
175
+ "orgId",
176
+ "exploreQueryId"
177
+ ],
178
+ "additionalProperties": false
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ "maxItems": {
184
+ "type": "integer",
185
+ "exclusiveMinimum": 0
186
+ },
187
+ "epistemic": {
188
+ "type": "string",
189
+ "enum": [
190
+ "OBSERVED",
191
+ "INFERRED",
192
+ "POLICY_CANDIDATE",
193
+ "REACHABLE",
194
+ "UNKNOWN"
195
+ ]
196
+ },
197
+ "notes": {
198
+ "type": "string"
199
+ }
200
+ },
201
+ "required": [
202
+ "stepId"
203
+ ],
204
+ "additionalProperties": false
205
+ },
206
+ "default": []
207
+ },
208
+ "answerDraft": {
209
+ "type": "string"
210
+ }
211
+ },
212
+ "required": [
213
+ "planId",
214
+ "rationale",
215
+ "steps"
216
+ ],
217
+ "additionalProperties": false
218
+ }
219
+ },
220
+ "$schema": "http://json-schema.org/draft-07/schema#"
221
+ }
@@ -1,73 +1,73 @@
1
- {
2
- "$ref": "#/definitions/RetrievalPlan",
3
- "definitions": {
4
- "RetrievalPlan": {
5
- "type": "object",
6
- "properties": {
7
- "planId": {
8
- "type": "string",
9
- "minLength": 1
10
- },
11
- "objective": {
12
- "type": "string",
13
- "minLength": 1
14
- },
15
- "profiles": {
16
- "type": "array",
17
- "items": {
18
- "type": "string"
19
- }
20
- },
21
- "steps": {
22
- "type": "array",
23
- "items": {
24
- "type": "object",
25
- "properties": {
26
- "stepId": {
27
- "type": "string",
28
- "minLength": 1
29
- },
30
- "operationId": {
31
- "type": "string",
32
- "minLength": 1
33
- },
34
- "arguments": {
35
- "type": "object",
36
- "additionalProperties": {}
37
- },
38
- "dependsOn": {
39
- "type": "array",
40
- "items": {
41
- "type": "string"
42
- }
43
- },
44
- "purpose": {
45
- "type": "string"
46
- },
47
- "optional": {
48
- "type": "boolean"
49
- }
50
- },
51
- "required": [
52
- "stepId",
53
- "operationId",
54
- "arguments",
55
- "dependsOn",
56
- "purpose",
57
- "optional"
58
- ],
59
- "additionalProperties": false
60
- }
61
- }
62
- },
63
- "required": [
64
- "planId",
65
- "objective",
66
- "profiles",
67
- "steps"
68
- ],
69
- "additionalProperties": false
70
- }
71
- },
72
- "$schema": "http://json-schema.org/draft-07/schema#"
73
- }
1
+ {
2
+ "$ref": "#/definitions/RetrievalPlan",
3
+ "definitions": {
4
+ "RetrievalPlan": {
5
+ "type": "object",
6
+ "properties": {
7
+ "planId": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "objective": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "profiles": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "steps": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "object",
25
+ "properties": {
26
+ "stepId": {
27
+ "type": "string",
28
+ "minLength": 1
29
+ },
30
+ "operationId": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "arguments": {
35
+ "type": "object",
36
+ "additionalProperties": {}
37
+ },
38
+ "dependsOn": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ }
43
+ },
44
+ "purpose": {
45
+ "type": "string"
46
+ },
47
+ "optional": {
48
+ "type": "boolean"
49
+ }
50
+ },
51
+ "required": [
52
+ "stepId",
53
+ "operationId",
54
+ "arguments",
55
+ "dependsOn",
56
+ "purpose",
57
+ "optional"
58
+ ],
59
+ "additionalProperties": false
60
+ }
61
+ }
62
+ },
63
+ "required": [
64
+ "planId",
65
+ "objective",
66
+ "profiles",
67
+ "steps"
68
+ ],
69
+ "additionalProperties": false
70
+ }
71
+ },
72
+ "$schema": "http://json-schema.org/draft-07/schema#"
73
+ }
@@ -1,14 +1,51 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "RetrievalStep",
4
- "type": "object",
5
- "properties": {
6
- "id": { "type": "string" },
7
- "capability": { "type": "string" },
8
- "catalogEntryId": { "type": "string" },
9
- "args": { "type": "object" },
10
- "parallelGroup": { "type": "string" },
11
- "required": { "type": "boolean" }
12
- },
13
- "required": ["id", "capability", "catalogEntryId"]
14
- }
1
+ {
2
+ "$ref": "#/definitions/RetrievalStep",
3
+ "definitions": {
4
+ "RetrievalStep": {
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
+ "catalogEntryId": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "args": {
30
+ "type": "object",
31
+ "additionalProperties": {},
32
+ "default": {}
33
+ },
34
+ "parallelGroup": {
35
+ "type": "string"
36
+ },
37
+ "required": {
38
+ "type": "boolean",
39
+ "default": true
40
+ }
41
+ },
42
+ "required": [
43
+ "id",
44
+ "capability",
45
+ "catalogEntryId"
46
+ ],
47
+ "additionalProperties": false
48
+ }
49
+ },
50
+ "$schema": "http://json-schema.org/draft-07/schema#"
51
+ }
@@ -0,0 +1,84 @@
1
+ {
2
+ "$ref": "#/definitions/ScopeIntent",
3
+ "definitions": {
4
+ "ScopeIntent": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "pattern": "^[a-z0-9][a-z0-9._-]*$",
10
+ "maxLength": 100
11
+ },
12
+ "title": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "maxLength": 200
16
+ },
17
+ "objectType": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "maxLength": 200
21
+ },
22
+ "contentTypes": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 200
28
+ },
29
+ "minItems": 1,
30
+ "maxItems": 16
31
+ },
32
+ "relations": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "object",
36
+ "properties": {
37
+ "field": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "maxLength": 200
41
+ },
42
+ "sourceContentType": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "maxLength": 200
46
+ },
47
+ "objectType": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "maxLength": 200
51
+ },
52
+ "contentTypes": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "maxLength": 200
58
+ },
59
+ "minItems": 1,
60
+ "maxItems": 16
61
+ }
62
+ },
63
+ "required": [
64
+ "field",
65
+ "objectType",
66
+ "contentTypes"
67
+ ],
68
+ "additionalProperties": false
69
+ },
70
+ "maxItems": 32
71
+ }
72
+ },
73
+ "required": [
74
+ "id",
75
+ "title",
76
+ "objectType",
77
+ "contentTypes",
78
+ "relations"
79
+ ],
80
+ "additionalProperties": false
81
+ }
82
+ },
83
+ "$schema": "http://json-schema.org/draft-07/schema#"
84
+ }