@techis/ai-contracts 0.3.0-rc.17 → 0.4.0-rc.5

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 (236) hide show
  1. package/README.md +44 -18
  2. package/THIRD_PARTY_NOTICES +34 -34
  3. package/dist/adoption-common.d.ts +19 -0
  4. package/dist/adoption-common.d.ts.map +1 -0
  5. package/dist/adoption-common.js +27 -0
  6. package/dist/adoption-common.js.map +1 -0
  7. package/dist/application-execution-review.d.ts +34 -0
  8. package/dist/application-execution-review.d.ts.map +1 -0
  9. package/dist/application-execution-review.js +25 -0
  10. package/dist/application-execution-review.js.map +1 -0
  11. package/dist/application-route-adoption.d.ts +30 -0
  12. package/dist/application-route-adoption.d.ts.map +1 -0
  13. package/dist/application-route-adoption.js +21 -0
  14. package/dist/application-route-adoption.js.map +1 -0
  15. package/dist/catalog-delivery.d.ts +5 -0
  16. package/dist/catalog-delivery.d.ts.map +1 -1
  17. package/dist/catalog-delivery.js +24 -8
  18. package/dist/catalog-delivery.js.map +1 -1
  19. package/dist/catalog-package-data.d.ts.map +1 -1
  20. package/dist/catalog-package-data.js +37608 -7
  21. package/dist/catalog-package-data.js.map +1 -1
  22. package/dist/catalog-publication.d.ts +64 -0
  23. package/dist/catalog-publication.d.ts.map +1 -0
  24. package/dist/catalog-publication.js +113 -0
  25. package/dist/catalog-publication.js.map +1 -0
  26. package/dist/compatibility.d.ts +5 -2
  27. package/dist/compatibility.d.ts.map +1 -1
  28. package/dist/compatibility.js +42 -21
  29. package/dist/compatibility.js.map +1 -1
  30. package/dist/configuration-bundle.d.ts +7 -0
  31. package/dist/configuration-bundle.d.ts.map +1 -1
  32. package/dist/configuration-bundle.js +61 -16
  33. package/dist/configuration-bundle.js.map +1 -1
  34. package/dist/direct-model-receipt.d.ts +29 -0
  35. package/dist/direct-model-receipt.d.ts.map +1 -0
  36. package/dist/direct-model-receipt.js +21 -0
  37. package/dist/direct-model-receipt.js.map +1 -0
  38. package/dist/entities.d.ts +53 -19
  39. package/dist/entities.d.ts.map +1 -1
  40. package/dist/execution-provenance.d.ts +14 -0
  41. package/dist/execution-provenance.d.ts.map +1 -0
  42. package/dist/execution-provenance.js +15 -0
  43. package/dist/execution-provenance.js.map +1 -0
  44. package/dist/generation.d.ts +184 -0
  45. package/dist/generation.d.ts.map +1 -0
  46. package/dist/generation.js +2 -0
  47. package/dist/generation.js.map +1 -0
  48. package/dist/independent-validation.d.ts +8 -0
  49. package/dist/independent-validation.d.ts.map +1 -0
  50. package/dist/independent-validation.js +42 -0
  51. package/dist/independent-validation.js.map +1 -0
  52. package/dist/index.d.ts +24 -3
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +24 -3
  55. package/dist/index.js.map +1 -1
  56. package/dist/model-configuration.d.ts +79 -0
  57. package/dist/model-configuration.d.ts.map +1 -0
  58. package/dist/model-configuration.js +172 -0
  59. package/dist/model-configuration.js.map +1 -0
  60. package/dist/model-maintenance.d.ts.map +1 -1
  61. package/dist/model-maintenance.js +7 -6
  62. package/dist/model-maintenance.js.map +1 -1
  63. package/dist/model-package-data.d.ts.map +1 -1
  64. package/dist/model-package-data.js +5 -1
  65. package/dist/model-package-data.js.map +1 -1
  66. package/dist/model-receipt.d.ts +14 -0
  67. package/dist/model-receipt.d.ts.map +1 -0
  68. package/dist/model-receipt.js +16 -0
  69. package/dist/model-receipt.js.map +1 -0
  70. package/dist/model-resources.d.ts +206 -0
  71. package/dist/model-resources.d.ts.map +1 -0
  72. package/dist/model-resources.js +154 -0
  73. package/dist/model-resources.js.map +1 -0
  74. package/dist/named-configuration.d.ts +113 -0
  75. package/dist/named-configuration.d.ts.map +1 -0
  76. package/dist/named-configuration.js +226 -0
  77. package/dist/named-configuration.js.map +1 -0
  78. package/dist/native-receipt.d.ts +13 -0
  79. package/dist/native-receipt.d.ts.map +1 -0
  80. package/dist/native-receipt.js +7 -0
  81. package/dist/native-receipt.js.map +1 -0
  82. package/dist/profile-identity.js +2 -2
  83. package/dist/profile-identity.js.map +1 -1
  84. package/dist/profile-receipt.d.ts +8 -0
  85. package/dist/profile-receipt.d.ts.map +1 -0
  86. package/dist/profile-receipt.js +14 -0
  87. package/dist/profile-receipt.js.map +1 -0
  88. package/dist/provider-listings.d.ts +3 -3
  89. package/dist/provider-listings.d.ts.map +1 -1
  90. package/dist/provider-listings.js +46 -12
  91. package/dist/provider-listings.js.map +1 -1
  92. package/dist/reasoning-validation.d.ts +3 -1
  93. package/dist/reasoning-validation.d.ts.map +1 -1
  94. package/dist/reasoning-validation.js +34 -14
  95. package/dist/reasoning-validation.js.map +1 -1
  96. package/dist/reasoning.d.ts.map +1 -1
  97. package/dist/reasoning.js +18 -8
  98. package/dist/reasoning.js.map +1 -1
  99. package/dist/request-route.d.ts +34 -0
  100. package/dist/request-route.d.ts.map +1 -0
  101. package/dist/request-route.js +42 -0
  102. package/dist/request-route.js.map +1 -0
  103. package/dist/route-assessment.d.ts +34 -0
  104. package/dist/route-assessment.d.ts.map +1 -0
  105. package/dist/route-assessment.js +48 -0
  106. package/dist/route-assessment.js.map +1 -0
  107. package/dist/route-export.d.ts +20 -0
  108. package/dist/route-export.d.ts.map +1 -0
  109. package/dist/route-export.js +54 -0
  110. package/dist/route-export.js.map +1 -0
  111. package/dist/route-helpers.d.ts +51 -0
  112. package/dist/route-helpers.d.ts.map +1 -0
  113. package/dist/route-helpers.js +31 -0
  114. package/dist/route-helpers.js.map +1 -0
  115. package/dist/route-import.d.ts +98 -0
  116. package/dist/route-import.d.ts.map +1 -0
  117. package/dist/route-import.js +124 -0
  118. package/dist/route-import.js.map +1 -0
  119. package/dist/route-receipt.d.ts +46 -0
  120. package/dist/route-receipt.d.ts.map +1 -0
  121. package/dist/route-receipt.js +95 -0
  122. package/dist/route-receipt.js.map +1 -0
  123. package/dist/route-set-export.d.ts +4 -0
  124. package/dist/route-set-export.d.ts.map +1 -0
  125. package/dist/route-set-export.js +31 -0
  126. package/dist/route-set-export.js.map +1 -0
  127. package/dist/route-set.d.ts +61 -0
  128. package/dist/route-set.d.ts.map +1 -0
  129. package/dist/route-set.js +103 -0
  130. package/dist/route-set.js.map +1 -0
  131. package/dist/route-usage.d.ts +36 -0
  132. package/dist/route-usage.d.ts.map +1 -0
  133. package/dist/route-usage.js +62 -0
  134. package/dist/route-usage.js.map +1 -0
  135. package/dist/schemas/adoption.d.ts +95 -0
  136. package/dist/schemas/adoption.d.ts.map +1 -0
  137. package/dist/schemas/adoption.js +73 -0
  138. package/dist/schemas/adoption.js.map +1 -0
  139. package/dist/schemas/application-execution-review.schema.json +416 -0
  140. package/dist/schemas/application-route-adoption.schema.json +224 -0
  141. package/dist/schemas/catalog-release.schema.json +17 -0
  142. package/dist/schemas/config.d.ts +273 -1
  143. package/dist/schemas/config.d.ts.map +1 -1
  144. package/dist/schemas/config.js +22 -3
  145. package/dist/schemas/config.js.map +1 -1
  146. package/dist/schemas/core.d.ts +369 -0
  147. package/dist/schemas/core.d.ts.map +1 -1
  148. package/dist/schemas/core.js +11 -1
  149. package/dist/schemas/core.js.map +1 -1
  150. package/dist/schemas/direct-model-execution-receipt.schema.json +864 -0
  151. package/dist/schemas/direct-model-receipt.d.ts +270 -0
  152. package/dist/schemas/direct-model-receipt.d.ts.map +1 -0
  153. package/dist/schemas/direct-model-receipt.js +13 -0
  154. package/dist/schemas/direct-model-receipt.js.map +1 -0
  155. package/dist/schemas/execution-receipt.schema.json +483 -3
  156. package/dist/schemas/execution-requirements.schema.json +47 -0
  157. package/dist/schemas/generation.d.ts +117 -0
  158. package/dist/schemas/generation.d.ts.map +1 -0
  159. package/dist/schemas/generation.js +44 -0
  160. package/dist/schemas/generation.js.map +1 -0
  161. package/dist/schemas/independent.d.ts +50 -0
  162. package/dist/schemas/independent.d.ts.map +1 -0
  163. package/dist/schemas/independent.js +85 -0
  164. package/dist/schemas/independent.js.map +1 -0
  165. package/dist/schemas/index.d.ts +4 -1
  166. package/dist/schemas/index.d.ts.map +1 -1
  167. package/dist/schemas/index.js +15 -1
  168. package/dist/schemas/index.js.map +1 -1
  169. package/dist/schemas/model-configuration-content.schema.json +92 -0
  170. package/dist/schemas/model-configuration-request.schema.json +53 -0
  171. package/dist/schemas/model-configuration-revision.schema.json +151 -0
  172. package/dist/schemas/model-configuration-snapshot.schema.json +381 -0
  173. package/dist/schemas/model-configuration.schema.json +72 -0
  174. package/dist/schemas/model-definition.schema.json +191 -0
  175. package/dist/schemas/model-execution-receipt.schema.json +889 -0
  176. package/dist/schemas/model-receipt.d.ts +598 -0
  177. package/dist/schemas/model-receipt.d.ts.map +1 -0
  178. package/dist/schemas/model-receipt.js +23 -0
  179. package/dist/schemas/model-receipt.js.map +1 -0
  180. package/dist/schemas/model-resource-snapshot.schema.json +164 -0
  181. package/dist/schemas/model-settings.schema.json +22 -0
  182. package/dist/schemas/native-execution-receipt.schema.json +919 -0
  183. package/dist/schemas/native-receipt.d.ts +624 -0
  184. package/dist/schemas/native-receipt.d.ts.map +1 -0
  185. package/dist/schemas/native-receipt.js +16 -0
  186. package/dist/schemas/native-receipt.js.map +1 -0
  187. package/dist/schemas/profile-execution-receipt.schema.json +853 -0
  188. package/dist/schemas/profile-receipt.d.ts +579 -0
  189. package/dist/schemas/profile-receipt.d.ts.map +1 -0
  190. package/dist/schemas/profile-receipt.js +20 -0
  191. package/dist/schemas/profile-receipt.js.map +1 -0
  192. package/dist/schemas/request-route-assessment.schema.json +288 -0
  193. package/dist/schemas/request-route-execution-receipt.schema.json +864 -0
  194. package/dist/schemas/request-route-export.schema.json +42 -0
  195. package/dist/schemas/request-route-metadata.schema.json +31 -0
  196. package/dist/schemas/request-route.schema.json +235 -0
  197. package/dist/schemas/route-configuration.schema.json +205 -0
  198. package/dist/schemas/route-import-authoring.schema.json +426 -0
  199. package/dist/schemas/route-import-journal.schema.json +119 -0
  200. package/dist/schemas/route-import-proposal.schema.json +416 -0
  201. package/dist/schemas/route-import-result.schema.json +100 -0
  202. package/dist/schemas/route-set-content.schema.json +200 -0
  203. package/dist/schemas/route-set-execution-receipt.schema.json +889 -0
  204. package/dist/schemas/route-set-request.schema.json +64 -0
  205. package/dist/schemas/route-set-revision.schema.json +258 -0
  206. package/dist/schemas/route-set-snapshot.schema.json +615 -0
  207. package/dist/schemas/route-set.schema.json +71 -0
  208. package/dist/schemas/routes.d.ts +435 -0
  209. package/dist/schemas/routes.d.ts.map +1 -0
  210. package/dist/schemas/routes.js +75 -0
  211. package/dist/schemas/routes.js.map +1 -0
  212. package/dist/schemas/system-instruction-revision.schema.json +55 -0
  213. package/dist/schemas/system-instruction.schema.json +72 -0
  214. package/dist/schemas/usage-aggregate-query.schema.json +25 -1
  215. package/dist/schemas/usage-page.schema.json +17 -1
  216. package/dist/schemas/usage-query.schema.json +20 -0
  217. package/dist/schemas/usage-summary.schema.json +88 -0
  218. package/dist/schemas/usage.d.ts +124 -4
  219. package/dist/schemas/usage.d.ts.map +1 -1
  220. package/dist/schemas/usage.js +18 -3
  221. package/dist/schemas/usage.js.map +1 -1
  222. package/dist/scoped-configuration.d.ts +2 -0
  223. package/dist/scoped-configuration.d.ts.map +1 -1
  224. package/dist/scoped-configuration.js.map +1 -1
  225. package/dist/scripts/emit-schemas.js +2 -3
  226. package/dist/scripts/emit-schemas.js.map +1 -1
  227. package/dist/system-instruction.d.ts +54 -0
  228. package/dist/system-instruction.d.ts.map +1 -0
  229. package/dist/system-instruction.js +64 -0
  230. package/dist/system-instruction.js.map +1 -0
  231. package/package.json +2 -2
  232. package/third-party-licenses.json +2 -7
  233. package/dist/schemas/catalog-delta-output.schema.json +0 -146
  234. package/dist/schemas/catalog-delta-record.schema.json +0 -242
  235. package/dist/schemas/incremental-catalog-review.schema.json +0 -645
  236. /package/third-party-licenses/{fast-uri@3.1.7 → fast-uri@3.1.9}/LICENSE +0 -0
@@ -0,0 +1,416 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/route-import-proposal.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "schemaVersion": {
7
+ "const": 1
8
+ },
9
+ "kind": {
10
+ "const": "route-import-proposal"
11
+ },
12
+ "proposalId": {
13
+ "type": "string",
14
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
15
+ },
16
+ "mode": {
17
+ "enum": [
18
+ "greenfield",
19
+ "existing"
20
+ ]
21
+ },
22
+ "sourceDigest": {
23
+ "type": "string",
24
+ "pattern": "^[a-f0-9]{64}$"
25
+ },
26
+ "reviewDigest": {
27
+ "type": "string",
28
+ "pattern": "^[a-f0-9]{64}$"
29
+ },
30
+ "authoring": {
31
+ "$ref": "https://techis.dev/ai/contracts/route-import-authoring.schema.json"
32
+ },
33
+ "candidates": {
34
+ "type": "array",
35
+ "maxItems": 1000,
36
+ "minItems": 1,
37
+ "items": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "candidateKey": {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "maxLength": 200,
45
+ "pattern": "^(?!__proto__$|constructor$|prototype$).+$"
46
+ },
47
+ "routeName": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "maxLength": 200
51
+ },
52
+ "configuration": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "schemaVersion": {
57
+ "const": 2
58
+ },
59
+ "owner": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": [
63
+ "applicationId"
64
+ ],
65
+ "properties": {
66
+ "applicationId": {
67
+ "type": "string",
68
+ "minLength": 1
69
+ }
70
+ }
71
+ },
72
+ "visibility": {
73
+ "enum": [
74
+ "private",
75
+ "shared"
76
+ ]
77
+ },
78
+ "purpose": {
79
+ "type": "string",
80
+ "minLength": 1
81
+ },
82
+ "primary": {
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "catalogId",
87
+ "settings"
88
+ ],
89
+ "properties": {
90
+ "catalogId": {
91
+ "type": "string",
92
+ "minLength": 1
93
+ },
94
+ "settings": {
95
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
96
+ }
97
+ }
98
+ },
99
+ "fallbacks": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "required": [
105
+ "catalogId",
106
+ "settings"
107
+ ],
108
+ "properties": {
109
+ "catalogId": {
110
+ "type": "string",
111
+ "minLength": 1
112
+ },
113
+ "settings": {
114
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "requiredCapabilities": {
120
+ "type": "object",
121
+ "additionalProperties": false,
122
+ "required": [
123
+ "inputModalities"
124
+ ],
125
+ "properties": {
126
+ "inputModalities": {
127
+ "type": "array",
128
+ "minItems": 1,
129
+ "items": {
130
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
131
+ }
132
+ },
133
+ "structuredOutput": {
134
+ "type": "boolean"
135
+ },
136
+ "providerTools": {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "string"
140
+ }
141
+ }
142
+ }
143
+ },
144
+ "defaults": {
145
+ "type": "object",
146
+ "additionalProperties": false,
147
+ "properties": {
148
+ "maxOutputTokens": {
149
+ "type": "integer",
150
+ "minimum": 1
151
+ }
152
+ }
153
+ },
154
+ "caps": {
155
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/executionCaps"
156
+ },
157
+ "execution": {
158
+ "type": "object",
159
+ "additionalProperties": false,
160
+ "required": [
161
+ "retry"
162
+ ],
163
+ "properties": {
164
+ "deadlineMs": {
165
+ "type": "integer",
166
+ "minimum": 1
167
+ },
168
+ "attemptTimeoutMs": {
169
+ "type": "integer",
170
+ "minimum": 1
171
+ },
172
+ "fallbackPolicy": {
173
+ "enum": [
174
+ "cycle",
175
+ "forward-only"
176
+ ]
177
+ },
178
+ "maxAttempts": {
179
+ "type": "integer",
180
+ "minimum": 1
181
+ },
182
+ "retry": {
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "required": [
186
+ "retryableErrorClasses"
187
+ ],
188
+ "properties": {
189
+ "retryableErrorClasses": {
190
+ "type": "array",
191
+ "minItems": 1,
192
+ "items": {
193
+ "enum": [
194
+ "provider-timeout",
195
+ "provider-rate-limit",
196
+ "provider-server-error",
197
+ "network-error"
198
+ ]
199
+ },
200
+ "uniqueItems": true
201
+ },
202
+ "minRetryDelayMs": {
203
+ "type": "integer",
204
+ "minimum": 0
205
+ }
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "effortPolicy": {
211
+ "type": "object",
212
+ "additionalProperties": false,
213
+ "required": [
214
+ "enabled"
215
+ ],
216
+ "properties": {
217
+ "enabled": {
218
+ "type": "boolean"
219
+ },
220
+ "byModel": {
221
+ "type": "object",
222
+ "minProperties": 1,
223
+ "additionalProperties": {
224
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/effortPolicyForModel"
225
+ }
226
+ }
227
+ }
228
+ },
229
+ "catalogCompatibility": {
230
+ "type": "object",
231
+ "additionalProperties": false,
232
+ "properties": {
233
+ "minCatalogRevision": {
234
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
235
+ },
236
+ "excludedCatalogIds": {
237
+ "type": "array",
238
+ "items": {
239
+ "type": "string"
240
+ }
241
+ }
242
+ }
243
+ }
244
+ },
245
+ "required": [
246
+ "schemaVersion",
247
+ "owner",
248
+ "visibility",
249
+ "purpose",
250
+ "primary",
251
+ "fallbacks",
252
+ "requiredCapabilities",
253
+ "execution"
254
+ ]
255
+ },
256
+ "requirements": {
257
+ "type": "object",
258
+ "additionalProperties": false,
259
+ "properties": {
260
+ "requiredFeatures": {
261
+ "type": "array",
262
+ "maxItems": 1000,
263
+ "minItems": 0,
264
+ "items": {
265
+ "enum": [
266
+ "text",
267
+ "images",
268
+ "image-detail",
269
+ "structured-output",
270
+ "client-tools",
271
+ "tool-choice",
272
+ "parallel-tools",
273
+ "web-search",
274
+ "reasoning",
275
+ "sampling",
276
+ "storage",
277
+ "continuation",
278
+ "provider-options",
279
+ "streaming"
280
+ ]
281
+ },
282
+ "uniqueItems": true
283
+ },
284
+ "unknownCapability": {
285
+ "enum": [
286
+ "reject",
287
+ "allow"
288
+ ]
289
+ },
290
+ "structuredOutputEnforcement": {
291
+ "enum": [
292
+ "provider-native",
293
+ "local-validation"
294
+ ]
295
+ }
296
+ },
297
+ "required": [
298
+ "requiredFeatures",
299
+ "unknownCapability"
300
+ ]
301
+ },
302
+ "intent": {
303
+ "enum": [
304
+ "create",
305
+ "reuse",
306
+ "edit"
307
+ ]
308
+ },
309
+ "existing": {
310
+ "$ref": "https://techis.dev/ai/contracts/request-route-metadata.schema.json"
311
+ },
312
+ "evidenceIds": {
313
+ "type": "array",
314
+ "maxItems": 1000,
315
+ "minItems": 0,
316
+ "items": {
317
+ "type": "string",
318
+ "minLength": 1,
319
+ "maxLength": 200
320
+ },
321
+ "uniqueItems": true
322
+ },
323
+ "acceptedChanges": {
324
+ "type": "array",
325
+ "maxItems": 1000,
326
+ "minItems": 0,
327
+ "items": {
328
+ "type": "string",
329
+ "minLength": 1,
330
+ "maxLength": 200
331
+ },
332
+ "uniqueItems": true
333
+ }
334
+ },
335
+ "required": [
336
+ "candidateKey",
337
+ "routeName",
338
+ "configuration",
339
+ "requirements",
340
+ "intent",
341
+ "evidenceIds",
342
+ "acceptedChanges"
343
+ ]
344
+ }
345
+ },
346
+ "assignments": {
347
+ "type": "object",
348
+ "maxProperties": 1000,
349
+ "propertyNames": {
350
+ "type": "string",
351
+ "minLength": 1,
352
+ "maxLength": 200,
353
+ "pattern": "^(?!__proto__$|constructor$|prototype$).+$"
354
+ },
355
+ "additionalProperties": {
356
+ "type": "string",
357
+ "minLength": 1,
358
+ "maxLength": 200
359
+ }
360
+ },
361
+ "outputScope": {
362
+ "type": "string",
363
+ "minLength": 1,
364
+ "maxLength": 2000
365
+ },
366
+ "proposalHash": {
367
+ "type": "string",
368
+ "pattern": "^[a-f0-9]{64}$"
369
+ },
370
+ "excluded": {
371
+ "type": "array",
372
+ "maxItems": 1000,
373
+ "minItems": 0,
374
+ "items": {
375
+ "type": "object",
376
+ "additionalProperties": false,
377
+ "properties": {
378
+ "configurationKey": {
379
+ "type": "string",
380
+ "minLength": 1,
381
+ "maxLength": 200
382
+ },
383
+ "disposition": {
384
+ "enum": [
385
+ "excluded",
386
+ "unresolved"
387
+ ]
388
+ },
389
+ "reason": {
390
+ "type": "string",
391
+ "minLength": 1,
392
+ "maxLength": 200
393
+ }
394
+ },
395
+ "required": [
396
+ "configurationKey",
397
+ "disposition",
398
+ "reason"
399
+ ]
400
+ }
401
+ }
402
+ },
403
+ "required": [
404
+ "schemaVersion",
405
+ "kind",
406
+ "proposalId",
407
+ "mode",
408
+ "sourceDigest",
409
+ "authoring",
410
+ "candidates",
411
+ "assignments",
412
+ "outputScope",
413
+ "proposalHash",
414
+ "excluded"
415
+ ]
416
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/route-import-result.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "schemaVersion": {
7
+ "const": 1
8
+ },
9
+ "kind": {
10
+ "const": "route-import-result"
11
+ },
12
+ "importId": {
13
+ "type": "string",
14
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
15
+ },
16
+ "authoringHash": {
17
+ "type": "string",
18
+ "pattern": "^[a-f0-9]{64}$"
19
+ },
20
+ "source": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "properties": {
24
+ "kind": {
25
+ "enum": [
26
+ "local",
27
+ "public",
28
+ "protected",
29
+ "application"
30
+ ]
31
+ },
32
+ "namespace": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 200,
36
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,199}$"
37
+ }
38
+ },
39
+ "required": [
40
+ "kind",
41
+ "namespace"
42
+ ]
43
+ },
44
+ "routeSet": {
45
+ "$ref": "https://techis.dev/ai/contracts/route-set.schema.json"
46
+ },
47
+ "savedRevision": {
48
+ "type": "string",
49
+ "pattern": "^[a-f0-9]{64}$"
50
+ },
51
+ "effectiveRevision": {
52
+ "type": "string",
53
+ "pattern": "^[a-f0-9]{64}$"
54
+ },
55
+ "routes": {
56
+ "type": "array",
57
+ "maxItems": 1000,
58
+ "minItems": 1,
59
+ "items": {
60
+ "$ref": "https://techis.dev/ai/contracts/request-route-metadata.schema.json"
61
+ }
62
+ },
63
+ "candidateRouteIds": {
64
+ "type": "object",
65
+ "maxProperties": 1000,
66
+ "propertyNames": {
67
+ "type": "string",
68
+ "minLength": 1,
69
+ "maxLength": 200,
70
+ "pattern": "^(?!__proto__$|constructor$|prototype$).+$"
71
+ },
72
+ "additionalProperties": {
73
+ "type": "string",
74
+ "minLength": 1,
75
+ "maxLength": 200
76
+ }
77
+ },
78
+ "snapshot": {
79
+ "$ref": "https://techis.dev/ai/contracts/route-set-snapshot.schema.json"
80
+ },
81
+ "contentDigest": {
82
+ "type": "string",
83
+ "pattern": "^[a-f0-9]{64}$"
84
+ }
85
+ },
86
+ "required": [
87
+ "schemaVersion",
88
+ "kind",
89
+ "importId",
90
+ "authoringHash",
91
+ "source",
92
+ "routeSet",
93
+ "savedRevision",
94
+ "effectiveRevision",
95
+ "routes",
96
+ "candidateRouteIds",
97
+ "snapshot",
98
+ "contentDigest"
99
+ ]
100
+ }