@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,42 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "const": 1
7
+ },
8
+ "kind": {
9
+ "const": "request-route-export"
10
+ },
11
+ "routeName": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 200,
15
+ "pattern": "^[^\\u0000-\\u001f]+$"
16
+ },
17
+ "route": {
18
+ "$ref": "https://techis.dev/ai/contracts/request-route.schema.json"
19
+ },
20
+ "catalog": {
21
+ "$ref": "https://techis.dev/ai/contracts/catalog-release.schema.json"
22
+ },
23
+ "routeSha256": {
24
+ "type": "string",
25
+ "pattern": "^[a-f0-9]{64}$"
26
+ },
27
+ "catalogSha256": {
28
+ "type": "string",
29
+ "pattern": "^[a-f0-9]{64}$"
30
+ }
31
+ },
32
+ "required": [
33
+ "schemaVersion",
34
+ "kind",
35
+ "routeName",
36
+ "route",
37
+ "catalog",
38
+ "routeSha256",
39
+ "catalogSha256"
40
+ ],
41
+ "$id": "https://techis.dev/ai/contracts/request-route-export.schema.json"
42
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "properties": {
5
+ "routeId": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "routeName": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 200,
13
+ "pattern": "^[^\\u0000-\\u001f]+$"
14
+ },
15
+ "revision": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "version": {
20
+ "type": "integer",
21
+ "minimum": 0
22
+ }
23
+ },
24
+ "required": [
25
+ "routeId",
26
+ "routeName",
27
+ "revision",
28
+ "version"
29
+ ],
30
+ "$id": "https://techis.dev/ai/contracts/request-route-metadata.schema.json"
31
+ }
@@ -0,0 +1,235 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": [
5
+ "schemaVersion",
6
+ "routeId",
7
+ "revision",
8
+ "owner",
9
+ "visibility",
10
+ "purpose",
11
+ "primary",
12
+ "fallbacks",
13
+ "requiredCapabilities",
14
+ "execution",
15
+ "status",
16
+ "createdAt"
17
+ ],
18
+ "properties": {
19
+ "schemaVersion": {
20
+ "const": 2
21
+ },
22
+ "revision": {
23
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
24
+ },
25
+ "owner": {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "required": [
29
+ "applicationId"
30
+ ],
31
+ "properties": {
32
+ "applicationId": {
33
+ "type": "string",
34
+ "minLength": 1
35
+ }
36
+ }
37
+ },
38
+ "visibility": {
39
+ "enum": [
40
+ "private",
41
+ "shared"
42
+ ]
43
+ },
44
+ "purpose": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ },
48
+ "primary": {
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "required": [
52
+ "catalogId",
53
+ "settings"
54
+ ],
55
+ "properties": {
56
+ "catalogId": {
57
+ "type": "string",
58
+ "minLength": 1
59
+ },
60
+ "settings": {
61
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
62
+ }
63
+ }
64
+ },
65
+ "fallbacks": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "required": [
71
+ "catalogId",
72
+ "settings"
73
+ ],
74
+ "properties": {
75
+ "catalogId": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ },
79
+ "settings": {
80
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
81
+ }
82
+ }
83
+ }
84
+ },
85
+ "requiredCapabilities": {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "required": [
89
+ "inputModalities"
90
+ ],
91
+ "properties": {
92
+ "inputModalities": {
93
+ "type": "array",
94
+ "minItems": 1,
95
+ "items": {
96
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
97
+ }
98
+ },
99
+ "structuredOutput": {
100
+ "type": "boolean"
101
+ },
102
+ "providerTools": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "string"
106
+ }
107
+ }
108
+ }
109
+ },
110
+ "defaults": {
111
+ "type": "object",
112
+ "additionalProperties": false,
113
+ "properties": {
114
+ "maxOutputTokens": {
115
+ "type": "integer",
116
+ "minimum": 1
117
+ }
118
+ }
119
+ },
120
+ "caps": {
121
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/executionCaps"
122
+ },
123
+ "execution": {
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "required": [
127
+ "retry"
128
+ ],
129
+ "properties": {
130
+ "deadlineMs": {
131
+ "type": "integer",
132
+ "minimum": 1
133
+ },
134
+ "attemptTimeoutMs": {
135
+ "type": "integer",
136
+ "minimum": 1
137
+ },
138
+ "fallbackPolicy": {
139
+ "enum": [
140
+ "cycle",
141
+ "forward-only"
142
+ ]
143
+ },
144
+ "maxAttempts": {
145
+ "type": "integer",
146
+ "minimum": 1
147
+ },
148
+ "retry": {
149
+ "type": "object",
150
+ "additionalProperties": false,
151
+ "required": [
152
+ "retryableErrorClasses"
153
+ ],
154
+ "properties": {
155
+ "retryableErrorClasses": {
156
+ "type": "array",
157
+ "minItems": 1,
158
+ "items": {
159
+ "enum": [
160
+ "provider-timeout",
161
+ "provider-rate-limit",
162
+ "provider-server-error",
163
+ "network-error"
164
+ ]
165
+ },
166
+ "uniqueItems": true
167
+ },
168
+ "minRetryDelayMs": {
169
+ "type": "integer",
170
+ "minimum": 0
171
+ }
172
+ }
173
+ }
174
+ }
175
+ },
176
+ "effortPolicy": {
177
+ "type": "object",
178
+ "additionalProperties": false,
179
+ "required": [
180
+ "enabled"
181
+ ],
182
+ "properties": {
183
+ "enabled": {
184
+ "type": "boolean"
185
+ },
186
+ "byModel": {
187
+ "type": "object",
188
+ "minProperties": 1,
189
+ "additionalProperties": {
190
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/effortPolicyForModel"
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "catalogCompatibility": {
196
+ "type": "object",
197
+ "additionalProperties": false,
198
+ "properties": {
199
+ "minCatalogRevision": {
200
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
201
+ },
202
+ "excludedCatalogIds": {
203
+ "type": "array",
204
+ "items": {
205
+ "type": "string"
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "status": {
211
+ "enum": [
212
+ "draft",
213
+ "published",
214
+ "retired"
215
+ ]
216
+ },
217
+ "basedOnRevision": {
218
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
219
+ },
220
+ "createdAt": {
221
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
222
+ },
223
+ "publishedBy": {
224
+ "type": "string",
225
+ "minLength": 1
226
+ },
227
+ "publishedAt": {
228
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
229
+ },
230
+ "routeId": {
231
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
232
+ }
233
+ },
234
+ "$id": "https://techis.dev/ai/contracts/request-route.schema.json"
235
+ }
@@ -0,0 +1,205 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/route-configuration.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "schemaVersion": {
7
+ "const": 2
8
+ },
9
+ "owner": {
10
+ "type": "object",
11
+ "additionalProperties": false,
12
+ "required": [
13
+ "applicationId"
14
+ ],
15
+ "properties": {
16
+ "applicationId": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ }
20
+ }
21
+ },
22
+ "visibility": {
23
+ "enum": [
24
+ "private",
25
+ "shared"
26
+ ]
27
+ },
28
+ "purpose": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "primary": {
33
+ "type": "object",
34
+ "additionalProperties": false,
35
+ "required": [
36
+ "catalogId",
37
+ "settings"
38
+ ],
39
+ "properties": {
40
+ "catalogId": {
41
+ "type": "string",
42
+ "minLength": 1
43
+ },
44
+ "settings": {
45
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
46
+ }
47
+ }
48
+ },
49
+ "fallbacks": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": [
55
+ "catalogId",
56
+ "settings"
57
+ ],
58
+ "properties": {
59
+ "catalogId": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ },
63
+ "settings": {
64
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
65
+ }
66
+ }
67
+ }
68
+ },
69
+ "requiredCapabilities": {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "required": [
73
+ "inputModalities"
74
+ ],
75
+ "properties": {
76
+ "inputModalities": {
77
+ "type": "array",
78
+ "minItems": 1,
79
+ "items": {
80
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
81
+ }
82
+ },
83
+ "structuredOutput": {
84
+ "type": "boolean"
85
+ },
86
+ "providerTools": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "string"
90
+ }
91
+ }
92
+ }
93
+ },
94
+ "defaults": {
95
+ "type": "object",
96
+ "additionalProperties": false,
97
+ "properties": {
98
+ "maxOutputTokens": {
99
+ "type": "integer",
100
+ "minimum": 1
101
+ }
102
+ }
103
+ },
104
+ "caps": {
105
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/executionCaps"
106
+ },
107
+ "execution": {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "required": [
111
+ "retry"
112
+ ],
113
+ "properties": {
114
+ "deadlineMs": {
115
+ "type": "integer",
116
+ "minimum": 1
117
+ },
118
+ "attemptTimeoutMs": {
119
+ "type": "integer",
120
+ "minimum": 1
121
+ },
122
+ "fallbackPolicy": {
123
+ "enum": [
124
+ "cycle",
125
+ "forward-only"
126
+ ]
127
+ },
128
+ "maxAttempts": {
129
+ "type": "integer",
130
+ "minimum": 1
131
+ },
132
+ "retry": {
133
+ "type": "object",
134
+ "additionalProperties": false,
135
+ "required": [
136
+ "retryableErrorClasses"
137
+ ],
138
+ "properties": {
139
+ "retryableErrorClasses": {
140
+ "type": "array",
141
+ "minItems": 1,
142
+ "items": {
143
+ "enum": [
144
+ "provider-timeout",
145
+ "provider-rate-limit",
146
+ "provider-server-error",
147
+ "network-error"
148
+ ]
149
+ },
150
+ "uniqueItems": true
151
+ },
152
+ "minRetryDelayMs": {
153
+ "type": "integer",
154
+ "minimum": 0
155
+ }
156
+ }
157
+ }
158
+ }
159
+ },
160
+ "effortPolicy": {
161
+ "type": "object",
162
+ "additionalProperties": false,
163
+ "required": [
164
+ "enabled"
165
+ ],
166
+ "properties": {
167
+ "enabled": {
168
+ "type": "boolean"
169
+ },
170
+ "byModel": {
171
+ "type": "object",
172
+ "minProperties": 1,
173
+ "additionalProperties": {
174
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/effortPolicyForModel"
175
+ }
176
+ }
177
+ }
178
+ },
179
+ "catalogCompatibility": {
180
+ "type": "object",
181
+ "additionalProperties": false,
182
+ "properties": {
183
+ "minCatalogRevision": {
184
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
185
+ },
186
+ "excludedCatalogIds": {
187
+ "type": "array",
188
+ "items": {
189
+ "type": "string"
190
+ }
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "required": [
196
+ "schemaVersion",
197
+ "owner",
198
+ "visibility",
199
+ "purpose",
200
+ "primary",
201
+ "fallbacks",
202
+ "requiredCapabilities",
203
+ "execution"
204
+ ]
205
+ }