@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,381 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/model-configuration-snapshot.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "kind",
8
+ "request",
9
+ "revision",
10
+ "documents"
11
+ ],
12
+ "properties": {
13
+ "schemaVersion": {
14
+ "const": 4
15
+ },
16
+ "kind": {
17
+ "const": "model-configuration-snapshot"
18
+ },
19
+ "request": {
20
+ "type": "object",
21
+ "additionalProperties": false,
22
+ "required": [
23
+ "applicationId",
24
+ "configurationId",
25
+ "selection"
26
+ ],
27
+ "properties": {
28
+ "applicationId": {
29
+ "type": "string",
30
+ "pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
31
+ },
32
+ "configurationId": {
33
+ "type": "string",
34
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
35
+ },
36
+ "selection": {
37
+ "oneOf": [
38
+ {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": [
42
+ "kind",
43
+ "revision"
44
+ ],
45
+ "properties": {
46
+ "kind": {
47
+ "const": "exact"
48
+ },
49
+ "revision": {
50
+ "type": "string",
51
+ "pattern": "^[a-f0-9]{64}$"
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "required": [
59
+ "kind"
60
+ ],
61
+ "properties": {
62
+ "kind": {
63
+ "const": "selected"
64
+ }
65
+ }
66
+ }
67
+ ]
68
+ }
69
+ }
70
+ },
71
+ "revision": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "schemaVersion",
76
+ "kind",
77
+ "applicationId",
78
+ "configurationId",
79
+ "revision",
80
+ "parentRevision",
81
+ "createdAt",
82
+ "operationId",
83
+ "content",
84
+ "createdBy"
85
+ ],
86
+ "properties": {
87
+ "schemaVersion": {
88
+ "const": 4
89
+ },
90
+ "kind": {
91
+ "const": "model-configuration-revision"
92
+ },
93
+ "applicationId": {
94
+ "type": "string",
95
+ "pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
96
+ },
97
+ "configurationId": {
98
+ "type": "string",
99
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
100
+ },
101
+ "revision": {
102
+ "type": "string",
103
+ "pattern": "^[a-f0-9]{64}$"
104
+ },
105
+ "parentRevision": {
106
+ "anyOf": [
107
+ {
108
+ "type": "string",
109
+ "pattern": "^[a-f0-9]{64}$"
110
+ },
111
+ {
112
+ "type": "null"
113
+ }
114
+ ]
115
+ },
116
+ "createdAt": {
117
+ "type": "string",
118
+ "format": "date-time"
119
+ },
120
+ "operationId": {
121
+ "type": "string",
122
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
123
+ },
124
+ "content": {
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": [
128
+ "bindings",
129
+ "catalog"
130
+ ],
131
+ "properties": {
132
+ "bindings": {
133
+ "type": "object",
134
+ "minProperties": 1,
135
+ "propertyNames": {
136
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
137
+ },
138
+ "additionalProperties": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "required": [
142
+ "id",
143
+ "revision",
144
+ "sha256"
145
+ ],
146
+ "properties": {
147
+ "id": {
148
+ "type": "string",
149
+ "minLength": 1,
150
+ "maxLength": 256
151
+ },
152
+ "revision": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 128,
156
+ "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)$",
157
+ "not": {
158
+ "enum": [
159
+ "latest",
160
+ "current",
161
+ "head",
162
+ "default",
163
+ "stable",
164
+ "next",
165
+ "channel"
166
+ ]
167
+ }
168
+ },
169
+ "sha256": {
170
+ "type": "string",
171
+ "pattern": "^[a-f0-9]{64}$"
172
+ }
173
+ }
174
+ }
175
+ },
176
+ "catalog": {
177
+ "type": "object",
178
+ "additionalProperties": false,
179
+ "required": [
180
+ "id",
181
+ "revision",
182
+ "sha256"
183
+ ],
184
+ "properties": {
185
+ "id": {
186
+ "type": "string",
187
+ "minLength": 1,
188
+ "maxLength": 256
189
+ },
190
+ "revision": {
191
+ "type": "string",
192
+ "minLength": 1,
193
+ "maxLength": 128,
194
+ "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)$",
195
+ "not": {
196
+ "enum": [
197
+ "latest",
198
+ "current",
199
+ "head",
200
+ "default",
201
+ "stable",
202
+ "next",
203
+ "channel"
204
+ ]
205
+ }
206
+ },
207
+ "sha256": {
208
+ "type": "string",
209
+ "pattern": "^[a-f0-9]{64}$"
210
+ }
211
+ }
212
+ }
213
+ }
214
+ },
215
+ "createdBy": {
216
+ "type": "string",
217
+ "minLength": 1
218
+ }
219
+ }
220
+ },
221
+ "sourceRevision": {
222
+ "type": "object",
223
+ "additionalProperties": false,
224
+ "required": [
225
+ "schemaVersion",
226
+ "kind",
227
+ "applicationId",
228
+ "configurationId",
229
+ "revision",
230
+ "parentRevision",
231
+ "createdAt",
232
+ "operationId",
233
+ "content",
234
+ "createdBy"
235
+ ],
236
+ "properties": {
237
+ "schemaVersion": {
238
+ "const": 4
239
+ },
240
+ "kind": {
241
+ "const": "model-configuration-revision"
242
+ },
243
+ "applicationId": {
244
+ "type": "string",
245
+ "pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
246
+ },
247
+ "configurationId": {
248
+ "type": "string",
249
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
250
+ },
251
+ "revision": {
252
+ "type": "string",
253
+ "pattern": "^[a-f0-9]{64}$"
254
+ },
255
+ "parentRevision": {
256
+ "anyOf": [
257
+ {
258
+ "type": "string",
259
+ "pattern": "^[a-f0-9]{64}$"
260
+ },
261
+ {
262
+ "type": "null"
263
+ }
264
+ ]
265
+ },
266
+ "createdAt": {
267
+ "type": "string",
268
+ "format": "date-time"
269
+ },
270
+ "operationId": {
271
+ "type": "string",
272
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
273
+ },
274
+ "content": {
275
+ "type": "object",
276
+ "additionalProperties": false,
277
+ "required": [
278
+ "bindings",
279
+ "catalog"
280
+ ],
281
+ "properties": {
282
+ "bindings": {
283
+ "type": "object",
284
+ "minProperties": 1,
285
+ "propertyNames": {
286
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
287
+ },
288
+ "additionalProperties": {
289
+ "type": "object",
290
+ "additionalProperties": false,
291
+ "required": [
292
+ "id",
293
+ "revision",
294
+ "sha256"
295
+ ],
296
+ "properties": {
297
+ "id": {
298
+ "type": "string",
299
+ "minLength": 1,
300
+ "maxLength": 256
301
+ },
302
+ "revision": {
303
+ "type": "string",
304
+ "minLength": 1,
305
+ "maxLength": 128,
306
+ "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)$",
307
+ "not": {
308
+ "enum": [
309
+ "latest",
310
+ "current",
311
+ "head",
312
+ "default",
313
+ "stable",
314
+ "next",
315
+ "channel"
316
+ ]
317
+ }
318
+ },
319
+ "sha256": {
320
+ "type": "string",
321
+ "pattern": "^[a-f0-9]{64}$"
322
+ }
323
+ }
324
+ }
325
+ },
326
+ "catalog": {
327
+ "type": "object",
328
+ "additionalProperties": false,
329
+ "required": [
330
+ "id",
331
+ "revision",
332
+ "sha256"
333
+ ],
334
+ "properties": {
335
+ "id": {
336
+ "type": "string",
337
+ "minLength": 1,
338
+ "maxLength": 256
339
+ },
340
+ "revision": {
341
+ "type": "string",
342
+ "minLength": 1,
343
+ "maxLength": 128,
344
+ "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)$",
345
+ "not": {
346
+ "enum": [
347
+ "latest",
348
+ "current",
349
+ "head",
350
+ "default",
351
+ "stable",
352
+ "next",
353
+ "channel"
354
+ ]
355
+ }
356
+ },
357
+ "sha256": {
358
+ "type": "string",
359
+ "pattern": "^[a-f0-9]{64}$"
360
+ }
361
+ }
362
+ }
363
+ }
364
+ },
365
+ "createdBy": {
366
+ "type": "string",
367
+ "minLength": 1
368
+ }
369
+ }
370
+ },
371
+ "documents": {
372
+ "type": "object",
373
+ "propertyNames": {
374
+ "pattern": "^[a-f0-9]{64}$"
375
+ },
376
+ "additionalProperties": {
377
+ "type": "object"
378
+ }
379
+ }
380
+ }
381
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/model-configuration.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "kind",
8
+ "applicationId",
9
+ "configurationId",
10
+ "name",
11
+ "version",
12
+ "revisions",
13
+ "latestRevision",
14
+ "selectedRevision"
15
+ ],
16
+ "properties": {
17
+ "schemaVersion": {
18
+ "const": 4
19
+ },
20
+ "kind": {
21
+ "const": "model-configuration"
22
+ },
23
+ "applicationId": {
24
+ "type": "string",
25
+ "pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
26
+ },
27
+ "configurationId": {
28
+ "type": "string",
29
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
30
+ },
31
+ "name": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "maxLength": 200,
35
+ "pattern": "^[^\\u0000-\\u001f]+$"
36
+ },
37
+ "version": {
38
+ "type": "integer",
39
+ "minimum": 1
40
+ },
41
+ "revisions": {
42
+ "type": "array",
43
+ "uniqueItems": true,
44
+ "items": {
45
+ "type": "string",
46
+ "pattern": "^[a-f0-9]{64}$"
47
+ }
48
+ },
49
+ "latestRevision": {
50
+ "anyOf": [
51
+ {
52
+ "type": "string",
53
+ "pattern": "^[a-f0-9]{64}$"
54
+ },
55
+ {
56
+ "type": "null"
57
+ }
58
+ ]
59
+ },
60
+ "selectedRevision": {
61
+ "anyOf": [
62
+ {
63
+ "type": "string",
64
+ "pattern": "^[a-f0-9]{64}$"
65
+ },
66
+ {
67
+ "type": "null"
68
+ }
69
+ ]
70
+ }
71
+ }
72
+ }
@@ -623,6 +623,197 @@
623
623
  "type": "string"
624
624
  }
625
625
  }
626
+ },
627
+ {
628
+ "type": "object",
629
+ "additionalProperties": false,
630
+ "required": [
631
+ "schemaVersion",
632
+ "catalogId",
633
+ "providerModelId",
634
+ "provider",
635
+ "adapterId",
636
+ "displayName",
637
+ "capabilities",
638
+ "nativeReasoning",
639
+ "lifecycle",
640
+ "source"
641
+ ],
642
+ "properties": {
643
+ "schemaVersion": {
644
+ "const": 4
645
+ },
646
+ "catalogId": {
647
+ "type": "string",
648
+ "minLength": 1
649
+ },
650
+ "providerModelId": {
651
+ "type": "string",
652
+ "minLength": 1
653
+ },
654
+ "provider": {
655
+ "type": "string",
656
+ "minLength": 1
657
+ },
658
+ "adapterId": {
659
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
660
+ },
661
+ "displayName": {
662
+ "type": "string",
663
+ "minLength": 1
664
+ },
665
+ "aliases": {
666
+ "type": "array",
667
+ "items": {
668
+ "type": "string",
669
+ "minLength": 1
670
+ }
671
+ },
672
+ "capabilities": {
673
+ "type": "object",
674
+ "additionalProperties": false,
675
+ "required": [
676
+ "inputModalities",
677
+ "outputModalities"
678
+ ],
679
+ "properties": {
680
+ "inputModalities": {
681
+ "type": "array",
682
+ "minItems": 1,
683
+ "items": {
684
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
685
+ }
686
+ },
687
+ "outputModalities": {
688
+ "type": "array",
689
+ "minItems": 1,
690
+ "items": {
691
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
692
+ }
693
+ },
694
+ "structuredOutput": {
695
+ "type": "boolean"
696
+ },
697
+ "providerTools": {
698
+ "type": "array",
699
+ "items": {
700
+ "type": "string",
701
+ "minLength": 1
702
+ }
703
+ },
704
+ "contextWindowTokens": {
705
+ "type": "integer",
706
+ "minimum": 1
707
+ },
708
+ "maxInputTokens": {
709
+ "type": "integer",
710
+ "minimum": 1
711
+ },
712
+ "maxOutputTokens": {
713
+ "type": "integer",
714
+ "minimum": 1
715
+ }
716
+ }
717
+ },
718
+ "nativeReasoning": {
719
+ "type": "object",
720
+ "additionalProperties": false,
721
+ "required": [],
722
+ "properties": {
723
+ "supportedControls": {
724
+ "type": "array",
725
+ "items": {
726
+ "enum": [
727
+ "effort",
728
+ "thinking",
729
+ "token-budget"
730
+ ]
731
+ },
732
+ "uniqueItems": true
733
+ },
734
+ "disableSupported": {
735
+ "type": "boolean"
736
+ },
737
+ "supportedEffortLevels": {
738
+ "type": "array",
739
+ "minItems": 1,
740
+ "items": {
741
+ "type": "string",
742
+ "minLength": 1
743
+ }
744
+ },
745
+ "defaultEffort": {
746
+ "type": "string",
747
+ "minLength": 1
748
+ },
749
+ "defaultThinkingEnabled": {
750
+ "type": "boolean"
751
+ },
752
+ "defaultBudgetTokens": {
753
+ "type": "integer",
754
+ "minimum": 0
755
+ },
756
+ "budgetTokensRange": {
757
+ "type": "object",
758
+ "additionalProperties": false,
759
+ "required": [
760
+ "min",
761
+ "max"
762
+ ],
763
+ "properties": {
764
+ "min": {
765
+ "type": "integer",
766
+ "minimum": 0
767
+ },
768
+ "max": {
769
+ "type": "integer",
770
+ "minimum": 0
771
+ }
772
+ }
773
+ },
774
+ "notes": {
775
+ "type": "string"
776
+ }
777
+ }
778
+ },
779
+ "lifecycle": {
780
+ "type": "object",
781
+ "additionalProperties": false,
782
+ "required": [
783
+ "status"
784
+ ],
785
+ "properties": {
786
+ "status": {
787
+ "enum": [
788
+ "preview",
789
+ "ga",
790
+ "deprecated",
791
+ "retired",
792
+ "unknown"
793
+ ]
794
+ },
795
+ "deprecatedAt": {
796
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
797
+ },
798
+ "sunsetAt": {
799
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
800
+ },
801
+ "replacementCatalogId": {
802
+ "type": "string",
803
+ "minLength": 1
804
+ }
805
+ }
806
+ },
807
+ "activePriceRevisionId": {
808
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
809
+ },
810
+ "source": {
811
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
812
+ },
813
+ "notes": {
814
+ "type": "string"
815
+ }
816
+ }
626
817
  }
627
818
  ]
628
819
  }