@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,426 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/route-import-authoring.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "schemaVersion": {
7
+ "const": 1
8
+ },
9
+ "kind": {
10
+ "const": "route-import-authoring"
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
+ "source": {
17
+ "type": "object",
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "kind": {
21
+ "enum": [
22
+ "local",
23
+ "public",
24
+ "protected",
25
+ "application"
26
+ ]
27
+ },
28
+ "namespace": {
29
+ "type": "string",
30
+ "minLength": 1,
31
+ "maxLength": 200,
32
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,199}$"
33
+ }
34
+ },
35
+ "required": [
36
+ "kind",
37
+ "namespace"
38
+ ]
39
+ },
40
+ "catalog": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "required": [
44
+ "id",
45
+ "revision",
46
+ "sha256"
47
+ ],
48
+ "properties": {
49
+ "id": {
50
+ "type": "string",
51
+ "minLength": 1,
52
+ "maxLength": 256
53
+ },
54
+ "revision": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "maxLength": 128,
58
+ "pattern": "^(?:[A-Za-z0-9][A-Za-z0-9._+=-]*|[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z)$",
59
+ "not": {
60
+ "enum": [
61
+ "latest",
62
+ "current",
63
+ "head",
64
+ "default",
65
+ "stable",
66
+ "next",
67
+ "channel"
68
+ ]
69
+ }
70
+ },
71
+ "sha256": {
72
+ "type": "string",
73
+ "pattern": "^[a-f0-9]{64}$"
74
+ }
75
+ }
76
+ },
77
+ "adapterDigest": {
78
+ "type": "string",
79
+ "pattern": "^[a-f0-9]{64}$"
80
+ },
81
+ "candidates": {
82
+ "type": "array",
83
+ "maxItems": 1000,
84
+ "minItems": 1,
85
+ "items": {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "properties": {
89
+ "candidateKey": {
90
+ "type": "string",
91
+ "minLength": 1,
92
+ "maxLength": 200,
93
+ "pattern": "^(?!__proto__$|constructor$|prototype$).+$"
94
+ },
95
+ "routeName": {
96
+ "type": "string",
97
+ "minLength": 1,
98
+ "maxLength": 200
99
+ },
100
+ "configuration": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "properties": {
104
+ "schemaVersion": {
105
+ "const": 2
106
+ },
107
+ "owner": {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "required": [
111
+ "applicationId"
112
+ ],
113
+ "properties": {
114
+ "applicationId": {
115
+ "type": "string",
116
+ "minLength": 1
117
+ }
118
+ }
119
+ },
120
+ "visibility": {
121
+ "enum": [
122
+ "private",
123
+ "shared"
124
+ ]
125
+ },
126
+ "purpose": {
127
+ "type": "string",
128
+ "minLength": 1
129
+ },
130
+ "primary": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "catalogId",
135
+ "settings"
136
+ ],
137
+ "properties": {
138
+ "catalogId": {
139
+ "type": "string",
140
+ "minLength": 1
141
+ },
142
+ "settings": {
143
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
144
+ }
145
+ }
146
+ },
147
+ "fallbacks": {
148
+ "type": "array",
149
+ "items": {
150
+ "type": "object",
151
+ "additionalProperties": false,
152
+ "required": [
153
+ "catalogId",
154
+ "settings"
155
+ ],
156
+ "properties": {
157
+ "catalogId": {
158
+ "type": "string",
159
+ "minLength": 1
160
+ },
161
+ "settings": {
162
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "requiredCapabilities": {
168
+ "type": "object",
169
+ "additionalProperties": false,
170
+ "required": [
171
+ "inputModalities"
172
+ ],
173
+ "properties": {
174
+ "inputModalities": {
175
+ "type": "array",
176
+ "minItems": 1,
177
+ "items": {
178
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
179
+ }
180
+ },
181
+ "structuredOutput": {
182
+ "type": "boolean"
183
+ },
184
+ "providerTools": {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "string"
188
+ }
189
+ }
190
+ }
191
+ },
192
+ "defaults": {
193
+ "type": "object",
194
+ "additionalProperties": false,
195
+ "properties": {
196
+ "maxOutputTokens": {
197
+ "type": "integer",
198
+ "minimum": 1
199
+ }
200
+ }
201
+ },
202
+ "caps": {
203
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/executionCaps"
204
+ },
205
+ "execution": {
206
+ "type": "object",
207
+ "additionalProperties": false,
208
+ "required": [
209
+ "retry"
210
+ ],
211
+ "properties": {
212
+ "deadlineMs": {
213
+ "type": "integer",
214
+ "minimum": 1
215
+ },
216
+ "attemptTimeoutMs": {
217
+ "type": "integer",
218
+ "minimum": 1
219
+ },
220
+ "fallbackPolicy": {
221
+ "enum": [
222
+ "cycle",
223
+ "forward-only"
224
+ ]
225
+ },
226
+ "maxAttempts": {
227
+ "type": "integer",
228
+ "minimum": 1
229
+ },
230
+ "retry": {
231
+ "type": "object",
232
+ "additionalProperties": false,
233
+ "required": [
234
+ "retryableErrorClasses"
235
+ ],
236
+ "properties": {
237
+ "retryableErrorClasses": {
238
+ "type": "array",
239
+ "minItems": 1,
240
+ "items": {
241
+ "enum": [
242
+ "provider-timeout",
243
+ "provider-rate-limit",
244
+ "provider-server-error",
245
+ "network-error"
246
+ ]
247
+ },
248
+ "uniqueItems": true
249
+ },
250
+ "minRetryDelayMs": {
251
+ "type": "integer",
252
+ "minimum": 0
253
+ }
254
+ }
255
+ }
256
+ }
257
+ },
258
+ "effortPolicy": {
259
+ "type": "object",
260
+ "additionalProperties": false,
261
+ "required": [
262
+ "enabled"
263
+ ],
264
+ "properties": {
265
+ "enabled": {
266
+ "type": "boolean"
267
+ },
268
+ "byModel": {
269
+ "type": "object",
270
+ "minProperties": 1,
271
+ "additionalProperties": {
272
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/effortPolicyForModel"
273
+ }
274
+ }
275
+ }
276
+ },
277
+ "catalogCompatibility": {
278
+ "type": "object",
279
+ "additionalProperties": false,
280
+ "properties": {
281
+ "minCatalogRevision": {
282
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
283
+ },
284
+ "excludedCatalogIds": {
285
+ "type": "array",
286
+ "items": {
287
+ "type": "string"
288
+ }
289
+ }
290
+ }
291
+ }
292
+ },
293
+ "required": [
294
+ "schemaVersion",
295
+ "owner",
296
+ "visibility",
297
+ "purpose",
298
+ "primary",
299
+ "fallbacks",
300
+ "requiredCapabilities",
301
+ "execution"
302
+ ]
303
+ },
304
+ "requirements": {
305
+ "type": "object",
306
+ "additionalProperties": false,
307
+ "properties": {
308
+ "requiredFeatures": {
309
+ "type": "array",
310
+ "maxItems": 1000,
311
+ "minItems": 0,
312
+ "items": {
313
+ "enum": [
314
+ "text",
315
+ "images",
316
+ "image-detail",
317
+ "structured-output",
318
+ "client-tools",
319
+ "tool-choice",
320
+ "parallel-tools",
321
+ "web-search",
322
+ "reasoning",
323
+ "sampling",
324
+ "storage",
325
+ "continuation",
326
+ "provider-options",
327
+ "streaming"
328
+ ]
329
+ },
330
+ "uniqueItems": true
331
+ },
332
+ "unknownCapability": {
333
+ "enum": [
334
+ "reject",
335
+ "allow"
336
+ ]
337
+ },
338
+ "structuredOutputEnforcement": {
339
+ "enum": [
340
+ "provider-native",
341
+ "local-validation"
342
+ ]
343
+ }
344
+ },
345
+ "required": [
346
+ "requiredFeatures",
347
+ "unknownCapability"
348
+ ]
349
+ },
350
+ "intent": {
351
+ "enum": [
352
+ "create",
353
+ "reuse",
354
+ "edit"
355
+ ]
356
+ },
357
+ "existing": {
358
+ "$ref": "https://techis.dev/ai/contracts/request-route-metadata.schema.json"
359
+ }
360
+ },
361
+ "required": [
362
+ "candidateKey",
363
+ "routeName",
364
+ "configuration",
365
+ "requirements",
366
+ "intent"
367
+ ]
368
+ }
369
+ },
370
+ "authoringHash": {
371
+ "type": "string",
372
+ "pattern": "^[a-f0-9]{64}$"
373
+ },
374
+ "routeSet": {
375
+ "type": "object",
376
+ "additionalProperties": false,
377
+ "properties": {
378
+ "name": {
379
+ "type": "string",
380
+ "minLength": 1,
381
+ "maxLength": 200
382
+ },
383
+ "routeSetId": {
384
+ "type": "string",
385
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
386
+ },
387
+ "applicationId": {
388
+ "type": "string",
389
+ "minLength": 1,
390
+ "maxLength": 200
391
+ },
392
+ "expectedVersion": {
393
+ "type": "integer",
394
+ "minimum": 0
395
+ },
396
+ "parentRevision": {
397
+ "anyOf": [
398
+ {
399
+ "type": "string",
400
+ "pattern": "^[a-f0-9]{64}$"
401
+ },
402
+ {
403
+ "type": "null"
404
+ }
405
+ ]
406
+ }
407
+ },
408
+ "required": [
409
+ "name",
410
+ "expectedVersion",
411
+ "parentRevision"
412
+ ]
413
+ }
414
+ },
415
+ "required": [
416
+ "schemaVersion",
417
+ "kind",
418
+ "importId",
419
+ "source",
420
+ "catalog",
421
+ "adapterDigest",
422
+ "candidates",
423
+ "authoringHash",
424
+ "routeSet"
425
+ ]
426
+ }
@@ -0,0 +1,119 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/route-import-journal.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "schemaVersion": {
7
+ "const": 1
8
+ },
9
+ "kind": {
10
+ "const": "route-import-journal"
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
+ "actor": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 200
20
+ },
21
+ "authoringHash": {
22
+ "type": "string",
23
+ "pattern": "^[a-f0-9]{64}$"
24
+ },
25
+ "authoring": {
26
+ "$ref": "https://techis.dev/ai/contracts/route-import-authoring.schema.json"
27
+ },
28
+ "version": {
29
+ "type": "integer",
30
+ "minimum": 1
31
+ },
32
+ "stage": {
33
+ "enum": [
34
+ "proposed",
35
+ "applying",
36
+ "routes-saved",
37
+ "set-saved",
38
+ "exported"
39
+ ]
40
+ },
41
+ "createdAt": {
42
+ "type": "string",
43
+ "format": "date-time"
44
+ },
45
+ "allocations": {
46
+ "type": "object",
47
+ "maxProperties": 1000,
48
+ "propertyNames": {
49
+ "type": "string",
50
+ "minLength": 1,
51
+ "maxLength": 200,
52
+ "pattern": "^(?!__proto__$|constructor$|prototype$).+$"
53
+ },
54
+ "additionalProperties": {
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "properties": {
58
+ "routeId": {
59
+ "type": "string",
60
+ "minLength": 1,
61
+ "maxLength": 200
62
+ },
63
+ "revision": {
64
+ "type": "string",
65
+ "minLength": 1,
66
+ "maxLength": 200
67
+ },
68
+ "operationId": {
69
+ "type": "string",
70
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
71
+ }
72
+ },
73
+ "required": [
74
+ "routeId",
75
+ "revision",
76
+ "operationId"
77
+ ]
78
+ }
79
+ },
80
+ "routeSetId": {
81
+ "type": "string",
82
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
83
+ },
84
+ "setOperationId": {
85
+ "type": "string",
86
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
87
+ },
88
+ "completedRoutes": {
89
+ "type": "array",
90
+ "maxItems": 1000,
91
+ "minItems": 0,
92
+ "items": {
93
+ "$ref": "https://techis.dev/ai/contracts/request-route-metadata.schema.json"
94
+ }
95
+ },
96
+ "savedRevision": {
97
+ "type": "string",
98
+ "pattern": "^[a-f0-9]{64}$"
99
+ },
100
+ "result": {
101
+ "$ref": "https://techis.dev/ai/contracts/route-import-result.schema.json"
102
+ }
103
+ },
104
+ "required": [
105
+ "schemaVersion",
106
+ "kind",
107
+ "importId",
108
+ "actor",
109
+ "authoringHash",
110
+ "authoring",
111
+ "version",
112
+ "stage",
113
+ "createdAt",
114
+ "allocations",
115
+ "routeSetId",
116
+ "setOperationId",
117
+ "completedRoutes"
118
+ ]
119
+ }