@techis/ai-contracts 0.3.0-rc.16 → 0.4.0-rc.4

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