@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,615 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "const": 5
7
+ },
8
+ "kind": {
9
+ "const": "route-set-snapshot"
10
+ },
11
+ "request": {
12
+ "type": "object",
13
+ "additionalProperties": false,
14
+ "properties": {
15
+ "routeSetId": {
16
+ "type": "string",
17
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
18
+ },
19
+ "applicationId": {
20
+ "type": "string",
21
+ "pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
22
+ },
23
+ "selection": {
24
+ "oneOf": [
25
+ {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "properties": {
29
+ "kind": {
30
+ "const": "active"
31
+ }
32
+ },
33
+ "required": [
34
+ "kind"
35
+ ]
36
+ },
37
+ {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "kind": {
42
+ "const": "selected"
43
+ }
44
+ },
45
+ "required": [
46
+ "kind"
47
+ ]
48
+ },
49
+ {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "properties": {
53
+ "kind": {
54
+ "const": "exact"
55
+ },
56
+ "revision": {
57
+ "type": "string",
58
+ "pattern": "^[a-f0-9]{64}$"
59
+ }
60
+ },
61
+ "required": [
62
+ "kind",
63
+ "revision"
64
+ ]
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ "required": [
70
+ "routeSetId",
71
+ "selection"
72
+ ]
73
+ },
74
+ "revision": {
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "properties": {
78
+ "schemaVersion": {
79
+ "const": 5
80
+ },
81
+ "kind": {
82
+ "const": "route-set-revision"
83
+ },
84
+ "routeSetId": {
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
+ "applicationId": {
89
+ "type": "string",
90
+ "pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
91
+ },
92
+ "revision": {
93
+ "type": "string",
94
+ "pattern": "^[a-f0-9]{64}$"
95
+ },
96
+ "parentRevision": {
97
+ "anyOf": [
98
+ {
99
+ "type": "string",
100
+ "pattern": "^[a-f0-9]{64}$"
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ]
106
+ },
107
+ "content": {
108
+ "oneOf": [
109
+ {
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "properties": {
113
+ "catalog": {
114
+ "type": "object",
115
+ "additionalProperties": false,
116
+ "required": [
117
+ "id",
118
+ "revision",
119
+ "sha256"
120
+ ],
121
+ "properties": {
122
+ "id": {
123
+ "type": "string",
124
+ "minLength": 1,
125
+ "maxLength": 256
126
+ },
127
+ "revision": {
128
+ "type": "string",
129
+ "minLength": 1,
130
+ "maxLength": 128,
131
+ "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)$",
132
+ "not": {
133
+ "enum": [
134
+ "latest",
135
+ "current",
136
+ "head",
137
+ "default",
138
+ "stable",
139
+ "next",
140
+ "channel"
141
+ ]
142
+ }
143
+ },
144
+ "sha256": {
145
+ "type": "string",
146
+ "pattern": "^[a-f0-9]{64}$"
147
+ }
148
+ }
149
+ },
150
+ "routes": {
151
+ "type": "array",
152
+ "minItems": 1,
153
+ "items": {
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "properties": {
157
+ "routeName": {
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "maxLength": 200,
161
+ "pattern": "^[^\\u0000-\\u001f]+$"
162
+ },
163
+ "ref": {
164
+ "type": "object",
165
+ "additionalProperties": false,
166
+ "required": [
167
+ "id",
168
+ "revision",
169
+ "sha256"
170
+ ],
171
+ "properties": {
172
+ "id": {
173
+ "type": "string",
174
+ "minLength": 1,
175
+ "maxLength": 256
176
+ },
177
+ "revision": {
178
+ "type": "string",
179
+ "minLength": 1,
180
+ "maxLength": 128,
181
+ "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)$",
182
+ "not": {
183
+ "enum": [
184
+ "latest",
185
+ "current",
186
+ "head",
187
+ "default",
188
+ "stable",
189
+ "next",
190
+ "channel"
191
+ ]
192
+ }
193
+ },
194
+ "sha256": {
195
+ "type": "string",
196
+ "pattern": "^[a-f0-9]{64}$"
197
+ }
198
+ }
199
+ }
200
+ },
201
+ "required": [
202
+ "routeName",
203
+ "ref"
204
+ ]
205
+ }
206
+ }
207
+ },
208
+ "required": [
209
+ "catalog",
210
+ "routes"
211
+ ]
212
+ },
213
+ {
214
+ "type": "object",
215
+ "additionalProperties": false,
216
+ "properties": {
217
+ "catalog": {
218
+ "type": "object",
219
+ "additionalProperties": false,
220
+ "required": [
221
+ "id",
222
+ "revision",
223
+ "sha256"
224
+ ],
225
+ "properties": {
226
+ "id": {
227
+ "type": "string",
228
+ "minLength": 1,
229
+ "maxLength": 256
230
+ },
231
+ "revision": {
232
+ "type": "string",
233
+ "minLength": 1,
234
+ "maxLength": 128,
235
+ "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)$",
236
+ "not": {
237
+ "enum": [
238
+ "latest",
239
+ "current",
240
+ "head",
241
+ "default",
242
+ "stable",
243
+ "next",
244
+ "channel"
245
+ ]
246
+ }
247
+ },
248
+ "sha256": {
249
+ "type": "string",
250
+ "pattern": "^[a-f0-9]{64}$"
251
+ }
252
+ }
253
+ },
254
+ "bindings": {
255
+ "type": "object",
256
+ "minProperties": 1,
257
+ "propertyNames": {
258
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
259
+ },
260
+ "additionalProperties": {
261
+ "type": "object",
262
+ "additionalProperties": false,
263
+ "required": [
264
+ "id",
265
+ "revision",
266
+ "sha256"
267
+ ],
268
+ "properties": {
269
+ "id": {
270
+ "type": "string",
271
+ "minLength": 1,
272
+ "maxLength": 256
273
+ },
274
+ "revision": {
275
+ "type": "string",
276
+ "minLength": 1,
277
+ "maxLength": 128,
278
+ "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)$",
279
+ "not": {
280
+ "enum": [
281
+ "latest",
282
+ "current",
283
+ "head",
284
+ "default",
285
+ "stable",
286
+ "next",
287
+ "channel"
288
+ ]
289
+ }
290
+ },
291
+ "sha256": {
292
+ "type": "string",
293
+ "pattern": "^[a-f0-9]{64}$"
294
+ }
295
+ }
296
+ }
297
+ }
298
+ },
299
+ "required": [
300
+ "catalog",
301
+ "bindings"
302
+ ]
303
+ }
304
+ ]
305
+ },
306
+ "createdBy": {
307
+ "type": "string",
308
+ "minLength": 1
309
+ },
310
+ "createdAt": {
311
+ "type": "string",
312
+ "format": "date-time"
313
+ },
314
+ "operationId": {
315
+ "type": "string",
316
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
317
+ }
318
+ },
319
+ "required": [
320
+ "schemaVersion",
321
+ "kind",
322
+ "routeSetId",
323
+ "revision",
324
+ "parentRevision",
325
+ "content",
326
+ "createdBy",
327
+ "createdAt",
328
+ "operationId"
329
+ ]
330
+ },
331
+ "sourceRevision": {
332
+ "type": "object",
333
+ "additionalProperties": false,
334
+ "properties": {
335
+ "schemaVersion": {
336
+ "const": 5
337
+ },
338
+ "kind": {
339
+ "const": "route-set-revision"
340
+ },
341
+ "routeSetId": {
342
+ "type": "string",
343
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
344
+ },
345
+ "applicationId": {
346
+ "type": "string",
347
+ "pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
348
+ },
349
+ "revision": {
350
+ "type": "string",
351
+ "pattern": "^[a-f0-9]{64}$"
352
+ },
353
+ "parentRevision": {
354
+ "anyOf": [
355
+ {
356
+ "type": "string",
357
+ "pattern": "^[a-f0-9]{64}$"
358
+ },
359
+ {
360
+ "type": "null"
361
+ }
362
+ ]
363
+ },
364
+ "content": {
365
+ "oneOf": [
366
+ {
367
+ "type": "object",
368
+ "additionalProperties": false,
369
+ "properties": {
370
+ "catalog": {
371
+ "type": "object",
372
+ "additionalProperties": false,
373
+ "required": [
374
+ "id",
375
+ "revision",
376
+ "sha256"
377
+ ],
378
+ "properties": {
379
+ "id": {
380
+ "type": "string",
381
+ "minLength": 1,
382
+ "maxLength": 256
383
+ },
384
+ "revision": {
385
+ "type": "string",
386
+ "minLength": 1,
387
+ "maxLength": 128,
388
+ "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)$",
389
+ "not": {
390
+ "enum": [
391
+ "latest",
392
+ "current",
393
+ "head",
394
+ "default",
395
+ "stable",
396
+ "next",
397
+ "channel"
398
+ ]
399
+ }
400
+ },
401
+ "sha256": {
402
+ "type": "string",
403
+ "pattern": "^[a-f0-9]{64}$"
404
+ }
405
+ }
406
+ },
407
+ "routes": {
408
+ "type": "array",
409
+ "minItems": 1,
410
+ "items": {
411
+ "type": "object",
412
+ "additionalProperties": false,
413
+ "properties": {
414
+ "routeName": {
415
+ "type": "string",
416
+ "minLength": 1,
417
+ "maxLength": 200,
418
+ "pattern": "^[^\\u0000-\\u001f]+$"
419
+ },
420
+ "ref": {
421
+ "type": "object",
422
+ "additionalProperties": false,
423
+ "required": [
424
+ "id",
425
+ "revision",
426
+ "sha256"
427
+ ],
428
+ "properties": {
429
+ "id": {
430
+ "type": "string",
431
+ "minLength": 1,
432
+ "maxLength": 256
433
+ },
434
+ "revision": {
435
+ "type": "string",
436
+ "minLength": 1,
437
+ "maxLength": 128,
438
+ "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)$",
439
+ "not": {
440
+ "enum": [
441
+ "latest",
442
+ "current",
443
+ "head",
444
+ "default",
445
+ "stable",
446
+ "next",
447
+ "channel"
448
+ ]
449
+ }
450
+ },
451
+ "sha256": {
452
+ "type": "string",
453
+ "pattern": "^[a-f0-9]{64}$"
454
+ }
455
+ }
456
+ }
457
+ },
458
+ "required": [
459
+ "routeName",
460
+ "ref"
461
+ ]
462
+ }
463
+ }
464
+ },
465
+ "required": [
466
+ "catalog",
467
+ "routes"
468
+ ]
469
+ },
470
+ {
471
+ "type": "object",
472
+ "additionalProperties": false,
473
+ "properties": {
474
+ "catalog": {
475
+ "type": "object",
476
+ "additionalProperties": false,
477
+ "required": [
478
+ "id",
479
+ "revision",
480
+ "sha256"
481
+ ],
482
+ "properties": {
483
+ "id": {
484
+ "type": "string",
485
+ "minLength": 1,
486
+ "maxLength": 256
487
+ },
488
+ "revision": {
489
+ "type": "string",
490
+ "minLength": 1,
491
+ "maxLength": 128,
492
+ "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)$",
493
+ "not": {
494
+ "enum": [
495
+ "latest",
496
+ "current",
497
+ "head",
498
+ "default",
499
+ "stable",
500
+ "next",
501
+ "channel"
502
+ ]
503
+ }
504
+ },
505
+ "sha256": {
506
+ "type": "string",
507
+ "pattern": "^[a-f0-9]{64}$"
508
+ }
509
+ }
510
+ },
511
+ "bindings": {
512
+ "type": "object",
513
+ "minProperties": 1,
514
+ "propertyNames": {
515
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
516
+ },
517
+ "additionalProperties": {
518
+ "type": "object",
519
+ "additionalProperties": false,
520
+ "required": [
521
+ "id",
522
+ "revision",
523
+ "sha256"
524
+ ],
525
+ "properties": {
526
+ "id": {
527
+ "type": "string",
528
+ "minLength": 1,
529
+ "maxLength": 256
530
+ },
531
+ "revision": {
532
+ "type": "string",
533
+ "minLength": 1,
534
+ "maxLength": 128,
535
+ "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)$",
536
+ "not": {
537
+ "enum": [
538
+ "latest",
539
+ "current",
540
+ "head",
541
+ "default",
542
+ "stable",
543
+ "next",
544
+ "channel"
545
+ ]
546
+ }
547
+ },
548
+ "sha256": {
549
+ "type": "string",
550
+ "pattern": "^[a-f0-9]{64}$"
551
+ }
552
+ }
553
+ }
554
+ }
555
+ },
556
+ "required": [
557
+ "catalog",
558
+ "bindings"
559
+ ]
560
+ }
561
+ ]
562
+ },
563
+ "createdBy": {
564
+ "type": "string",
565
+ "minLength": 1
566
+ },
567
+ "createdAt": {
568
+ "type": "string",
569
+ "format": "date-time"
570
+ },
571
+ "operationId": {
572
+ "type": "string",
573
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
574
+ }
575
+ },
576
+ "required": [
577
+ "schemaVersion",
578
+ "kind",
579
+ "routeSetId",
580
+ "revision",
581
+ "parentRevision",
582
+ "content",
583
+ "createdBy",
584
+ "createdAt",
585
+ "operationId"
586
+ ]
587
+ },
588
+ "routeNames": {
589
+ "type": "object",
590
+ "additionalProperties": {
591
+ "type": "string",
592
+ "minLength": 1,
593
+ "maxLength": 200,
594
+ "pattern": "^[^\\u0000-\\u001f]+$"
595
+ }
596
+ },
597
+ "documents": {
598
+ "type": "object",
599
+ "propertyNames": {
600
+ "pattern": "^[a-f0-9]{64}$"
601
+ },
602
+ "additionalProperties": {
603
+ "type": "object"
604
+ }
605
+ }
606
+ },
607
+ "required": [
608
+ "schemaVersion",
609
+ "kind",
610
+ "request",
611
+ "revision",
612
+ "documents"
613
+ ],
614
+ "$id": "https://techis.dev/ai/contracts/route-set-snapshot.schema.json"
615
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "const": 5
7
+ },
8
+ "kind": {
9
+ "const": "route-set"
10
+ },
11
+ "routeSetId": {
12
+ "type": "string",
13
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
14
+ },
15
+ "applicationId": {
16
+ "type": "string",
17
+ "pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
18
+ },
19
+ "name": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 200,
23
+ "pattern": "^[^\\u0000-\\u001f]+$"
24
+ },
25
+ "version": {
26
+ "type": "integer",
27
+ "minimum": 1
28
+ },
29
+ "latestRevision": {
30
+ "anyOf": [
31
+ {
32
+ "type": "string",
33
+ "pattern": "^[a-f0-9]{64}$"
34
+ },
35
+ {
36
+ "type": "null"
37
+ }
38
+ ]
39
+ },
40
+ "selectedRevision": {
41
+ "anyOf": [
42
+ {
43
+ "type": "string",
44
+ "pattern": "^[a-f0-9]{64}$"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ]
50
+ },
51
+ "revisions": {
52
+ "type": "array",
53
+ "uniqueItems": true,
54
+ "items": {
55
+ "type": "string",
56
+ "pattern": "^[a-f0-9]{64}$"
57
+ }
58
+ }
59
+ },
60
+ "required": [
61
+ "schemaVersion",
62
+ "kind",
63
+ "routeSetId",
64
+ "name",
65
+ "version",
66
+ "latestRevision",
67
+ "selectedRevision",
68
+ "revisions"
69
+ ],
70
+ "$id": "https://techis.dev/ai/contracts/route-set.schema.json"
71
+ }