@techis/ai-contracts 0.0.0-stage → 0.3.0-rc.15

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 (171) hide show
  1. package/LICENSE +122 -0
  2. package/README.md +28 -3
  3. package/THIRD_PARTY_NOTICES +34 -0
  4. package/dist/availability.d.ts +21 -0
  5. package/dist/availability.d.ts.map +1 -0
  6. package/dist/availability.js +2 -0
  7. package/dist/availability.js.map +1 -0
  8. package/dist/catalog-adoption.d.ts +20 -0
  9. package/dist/catalog-adoption.d.ts.map +1 -0
  10. package/dist/catalog-adoption.js +76 -0
  11. package/dist/catalog-adoption.js.map +1 -0
  12. package/dist/catalog-composition.d.ts +10 -0
  13. package/dist/catalog-composition.d.ts.map +1 -0
  14. package/dist/catalog-composition.js +58 -0
  15. package/dist/catalog-composition.js.map +1 -0
  16. package/dist/catalog-delivery.d.ts +47 -0
  17. package/dist/catalog-delivery.d.ts.map +1 -0
  18. package/dist/catalog-delivery.js +83 -0
  19. package/dist/catalog-delivery.js.map +1 -0
  20. package/dist/catalog-package-data.d.ts +8 -0
  21. package/dist/catalog-package-data.d.ts.map +1 -0
  22. package/dist/catalog-package-data.js +2640 -0
  23. package/dist/catalog-package-data.js.map +1 -0
  24. package/dist/compatibility.d.ts +68 -0
  25. package/dist/compatibility.d.ts.map +1 -0
  26. package/dist/compatibility.js +207 -0
  27. package/dist/compatibility.js.map +1 -0
  28. package/dist/configuration-bundle.d.ts +201 -0
  29. package/dist/configuration-bundle.d.ts.map +1 -0
  30. package/dist/configuration-bundle.js +619 -0
  31. package/dist/configuration-bundle.js.map +1 -0
  32. package/dist/entities.d.ts +619 -0
  33. package/dist/entities.d.ts.map +1 -0
  34. package/dist/entities.js +2 -0
  35. package/dist/entities.js.map +1 -0
  36. package/dist/fixtures.d.ts +25 -0
  37. package/dist/fixtures.d.ts.map +1 -0
  38. package/dist/fixtures.js +546 -0
  39. package/dist/fixtures.js.map +1 -0
  40. package/dist/hash.d.ts +8 -0
  41. package/dist/hash.d.ts.map +1 -0
  42. package/dist/hash.js +13 -0
  43. package/dist/hash.js.map +1 -0
  44. package/dist/host-qualification.d.ts +90 -0
  45. package/dist/host-qualification.d.ts.map +1 -0
  46. package/dist/host-qualification.js +65 -0
  47. package/dist/host-qualification.js.map +1 -0
  48. package/dist/icc-catalog.d.ts +31 -0
  49. package/dist/icc-catalog.d.ts.map +1 -0
  50. package/dist/icc-catalog.js +321 -0
  51. package/dist/icc-catalog.js.map +1 -0
  52. package/dist/icc-csf-profiles.d.ts +28 -0
  53. package/dist/icc-csf-profiles.d.ts.map +1 -0
  54. package/dist/icc-csf-profiles.js +394 -0
  55. package/dist/icc-csf-profiles.js.map +1 -0
  56. package/dist/index.d.ts +24 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +24 -0
  59. package/dist/index.js.map +1 -0
  60. package/dist/model-maintenance.d.ts +216 -0
  61. package/dist/model-maintenance.d.ts.map +1 -0
  62. package/dist/model-maintenance.js +387 -0
  63. package/dist/model-maintenance.js.map +1 -0
  64. package/dist/model-package-data.d.ts +3 -0
  65. package/dist/model-package-data.d.ts.map +1 -0
  66. package/dist/model-package-data.js +867 -0
  67. package/dist/model-package-data.js.map +1 -0
  68. package/dist/persona-inventory.d.ts +143 -0
  69. package/dist/persona-inventory.d.ts.map +1 -0
  70. package/dist/persona-inventory.js +56 -0
  71. package/dist/persona-inventory.js.map +1 -0
  72. package/dist/profile-identity.d.ts +27 -0
  73. package/dist/profile-identity.d.ts.map +1 -0
  74. package/dist/profile-identity.js +30 -0
  75. package/dist/profile-identity.js.map +1 -0
  76. package/dist/reasoning-validation.d.ts +9 -0
  77. package/dist/reasoning-validation.d.ts.map +1 -0
  78. package/dist/reasoning-validation.js +79 -0
  79. package/dist/reasoning-validation.js.map +1 -0
  80. package/dist/reasoning.d.ts +55 -0
  81. package/dist/reasoning.d.ts.map +1 -0
  82. package/dist/reasoning.js +13 -0
  83. package/dist/reasoning.js.map +1 -0
  84. package/dist/receipt.d.ts +16 -0
  85. package/dist/receipt.d.ts.map +1 -0
  86. package/dist/receipt.js +18 -0
  87. package/dist/receipt.js.map +1 -0
  88. package/dist/schemas/adoption-change-set.schema.json +91 -0
  89. package/dist/schemas/bundle.d.ts +124 -0
  90. package/dist/schemas/bundle.d.ts.map +1 -0
  91. package/dist/schemas/bundle.js +84 -0
  92. package/dist/schemas/bundle.js.map +1 -0
  93. package/dist/schemas/catalog-release.schema.json +110 -0
  94. package/dist/schemas/catalog-review-input.schema.json +179 -0
  95. package/dist/schemas/catalog-review-output.schema.json +259 -0
  96. package/dist/schemas/catalog-review-output.v2.schema.json +251 -0
  97. package/dist/schemas/catalog-review-record.schema.json +391 -0
  98. package/dist/schemas/client-persona-inventory.schema.json +107 -0
  99. package/dist/schemas/common.schema.json +324 -0
  100. package/dist/schemas/config.d.ts +1106 -0
  101. package/dist/schemas/config.d.ts.map +1 -0
  102. package/dist/schemas/config.js +496 -0
  103. package/dist/schemas/config.js.map +1 -0
  104. package/dist/schemas/configuration-bundle-manifest.schema.json +143 -0
  105. package/dist/schemas/configuration-manifest.schema.json +109 -0
  106. package/dist/schemas/connection.schema.json +49 -0
  107. package/dist/schemas/core.d.ts +1333 -0
  108. package/dist/schemas/core.d.ts.map +1 -0
  109. package/dist/schemas/core.js +341 -0
  110. package/dist/schemas/core.js.map +1 -0
  111. package/dist/schemas/desktop-configuration-revision.schema.json +146 -0
  112. package/dist/schemas/execution-profile-revision.schema.json +235 -0
  113. package/dist/schemas/execution-receipt.schema.json +431 -0
  114. package/dist/schemas/host-adapter-qualification.schema.json +161 -0
  115. package/dist/schemas/host-qualification-policy.schema.json +50 -0
  116. package/dist/schemas/index.d.ts +11 -0
  117. package/dist/schemas/index.d.ts.map +1 -0
  118. package/dist/schemas/index.js +34 -0
  119. package/dist/schemas/index.js.map +1 -0
  120. package/dist/schemas/inventory.d.ts +170 -0
  121. package/dist/schemas/inventory.d.ts.map +1 -0
  122. package/dist/schemas/inventory.js +87 -0
  123. package/dist/schemas/inventory.js.map +1 -0
  124. package/dist/schemas/model-definition.schema.json +429 -0
  125. package/dist/schemas/model-package-release.schema.json +594 -0
  126. package/dist/schemas/model-upgrade-advisory.schema.json +191 -0
  127. package/dist/schemas/operation-contract-document.schema.json +153 -0
  128. package/dist/schemas/persona-assignments.schema.json +125 -0
  129. package/dist/schemas/persona-registry-overlay.schema.json +93 -0
  130. package/dist/schemas/persona-source-document.schema.json +86 -0
  131. package/dist/schemas/persona-specification.schema.json +122 -0
  132. package/dist/schemas/price-revision.schema.json +299 -0
  133. package/dist/schemas/profile-assessment.schema.json +288 -0
  134. package/dist/schemas/scoped.d.ts +424 -0
  135. package/dist/schemas/scoped.d.ts.map +1 -0
  136. package/dist/schemas/scoped.js +203 -0
  137. package/dist/schemas/scoped.js.map +1 -0
  138. package/dist/schemas/usage-aggregate-query.schema.json +86 -0
  139. package/dist/schemas/usage-page.schema.json +22 -0
  140. package/dist/schemas/usage-query.schema.json +77 -0
  141. package/dist/schemas/usage-summary.schema.json +468 -0
  142. package/dist/schemas/usage.d.ts +527 -0
  143. package/dist/schemas/usage.d.ts.map +1 -0
  144. package/dist/schemas/usage.js +142 -0
  145. package/dist/schemas/usage.js.map +1 -0
  146. package/dist/scoped-configuration.d.ts +208 -0
  147. package/dist/scoped-configuration.d.ts.map +1 -0
  148. package/dist/scoped-configuration.js +425 -0
  149. package/dist/scoped-configuration.js.map +1 -0
  150. package/dist/scripts/emit-schemas.d.ts +2 -0
  151. package/dist/scripts/emit-schemas.d.ts.map +1 -0
  152. package/dist/scripts/emit-schemas.js +24 -0
  153. package/dist/scripts/emit-schemas.js.map +1 -0
  154. package/dist/scripts/verify-bundle.d.ts +3 -0
  155. package/dist/scripts/verify-bundle.d.ts.map +1 -0
  156. package/dist/scripts/verify-bundle.js +59 -0
  157. package/dist/scripts/verify-bundle.js.map +1 -0
  158. package/dist/validation.d.ts +11 -0
  159. package/dist/validation.d.ts.map +1 -0
  160. package/dist/validation.js +41 -0
  161. package/dist/validation.js.map +1 -0
  162. package/package.json +33 -6
  163. package/third-party-licenses/ajv-formats@3.0.1/LICENSE +21 -0
  164. package/third-party-licenses/ajv@8.20.0/LICENSE +22 -0
  165. package/third-party-licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
  166. package/third-party-licenses/fast-uri@3.1.7/LICENSE +30 -0
  167. package/third-party-licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
  168. package/third-party-licenses/require-from-string@2.0.2/license +21 -0
  169. package/third-party-licenses/typescript@5.9.3/LICENSE.txt +55 -0
  170. package/third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
  171. package/third-party-licenses.json +102 -0
@@ -0,0 +1,235 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/execution-profile-revision.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "profileId",
8
+ "revision",
9
+ "owner",
10
+ "visibility",
11
+ "purpose",
12
+ "primary",
13
+ "fallbacks",
14
+ "requiredCapabilities",
15
+ "execution",
16
+ "status",
17
+ "createdAt"
18
+ ],
19
+ "properties": {
20
+ "schemaVersion": {
21
+ "const": 2
22
+ },
23
+ "profileId": {
24
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
25
+ },
26
+ "revision": {
27
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
28
+ },
29
+ "owner": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "required": [
33
+ "applicationId"
34
+ ],
35
+ "properties": {
36
+ "applicationId": {
37
+ "type": "string",
38
+ "minLength": 1
39
+ }
40
+ }
41
+ },
42
+ "visibility": {
43
+ "enum": [
44
+ "private",
45
+ "shared"
46
+ ]
47
+ },
48
+ "purpose": {
49
+ "type": "string",
50
+ "minLength": 1
51
+ },
52
+ "primary": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "required": [
56
+ "catalogId",
57
+ "settings"
58
+ ],
59
+ "properties": {
60
+ "catalogId": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "settings": {
65
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
66
+ }
67
+ }
68
+ },
69
+ "fallbacks": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "catalogId",
76
+ "settings"
77
+ ],
78
+ "properties": {
79
+ "catalogId": {
80
+ "type": "string",
81
+ "minLength": 1
82
+ },
83
+ "settings": {
84
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelSettings"
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "requiredCapabilities": {
90
+ "type": "object",
91
+ "additionalProperties": false,
92
+ "required": [
93
+ "inputModalities"
94
+ ],
95
+ "properties": {
96
+ "inputModalities": {
97
+ "type": "array",
98
+ "minItems": 1,
99
+ "items": {
100
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
101
+ }
102
+ },
103
+ "structuredOutput": {
104
+ "type": "boolean"
105
+ },
106
+ "providerTools": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string"
110
+ }
111
+ }
112
+ }
113
+ },
114
+ "defaults": {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "properties": {
118
+ "maxOutputTokens": {
119
+ "type": "integer",
120
+ "minimum": 1
121
+ }
122
+ }
123
+ },
124
+ "caps": {
125
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/executionCaps"
126
+ },
127
+ "execution": {
128
+ "type": "object",
129
+ "additionalProperties": false,
130
+ "required": [
131
+ "retry"
132
+ ],
133
+ "properties": {
134
+ "deadlineMs": {
135
+ "type": "integer",
136
+ "minimum": 1
137
+ },
138
+ "attemptTimeoutMs": {
139
+ "type": "integer",
140
+ "minimum": 1
141
+ },
142
+ "fallbackPolicy": {
143
+ "enum": [
144
+ "cycle",
145
+ "forward-only"
146
+ ]
147
+ },
148
+ "maxAttempts": {
149
+ "type": "integer",
150
+ "minimum": 1
151
+ },
152
+ "retry": {
153
+ "type": "object",
154
+ "additionalProperties": false,
155
+ "required": [
156
+ "retryableErrorClasses"
157
+ ],
158
+ "properties": {
159
+ "retryableErrorClasses": {
160
+ "type": "array",
161
+ "minItems": 1,
162
+ "items": {
163
+ "enum": [
164
+ "provider-timeout",
165
+ "provider-rate-limit",
166
+ "provider-server-error",
167
+ "network-error"
168
+ ]
169
+ },
170
+ "uniqueItems": true
171
+ },
172
+ "minRetryDelayMs": {
173
+ "type": "integer",
174
+ "minimum": 0
175
+ }
176
+ }
177
+ }
178
+ }
179
+ },
180
+ "effortPolicy": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": [
184
+ "enabled"
185
+ ],
186
+ "properties": {
187
+ "enabled": {
188
+ "type": "boolean"
189
+ },
190
+ "byModel": {
191
+ "type": "object",
192
+ "minProperties": 1,
193
+ "additionalProperties": {
194
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/effortPolicyForModel"
195
+ }
196
+ }
197
+ }
198
+ },
199
+ "catalogCompatibility": {
200
+ "type": "object",
201
+ "additionalProperties": false,
202
+ "properties": {
203
+ "minCatalogRevision": {
204
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
205
+ },
206
+ "excludedCatalogIds": {
207
+ "type": "array",
208
+ "items": {
209
+ "type": "string"
210
+ }
211
+ }
212
+ }
213
+ },
214
+ "status": {
215
+ "enum": [
216
+ "draft",
217
+ "published",
218
+ "retired"
219
+ ]
220
+ },
221
+ "basedOnRevision": {
222
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
223
+ },
224
+ "createdAt": {
225
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
226
+ },
227
+ "publishedBy": {
228
+ "type": "string",
229
+ "minLength": 1
230
+ },
231
+ "publishedAt": {
232
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
233
+ }
234
+ }
235
+ }
@@ -0,0 +1,431 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/execution-receipt.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "receiptId",
8
+ "runId",
9
+ "requestId",
10
+ "applicationId",
11
+ "environmentId",
12
+ "personaId",
13
+ "operationId",
14
+ "status",
15
+ "instructionHash",
16
+ "requested",
17
+ "attempts",
18
+ "latencyMs",
19
+ "fallbackUsed",
20
+ "completedAt"
21
+ ],
22
+ "properties": {
23
+ "schemaVersion": {
24
+ "const": 1
25
+ },
26
+ "receiptId": {
27
+ "type": "string",
28
+ "pattern": "^[a-f0-9]{64}$"
29
+ },
30
+ "runId": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "requestId": {
35
+ "type": "string",
36
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
37
+ },
38
+ "applicationId": {
39
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
40
+ },
41
+ "environmentId": {
42
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/environmentId"
43
+ },
44
+ "desktopConfigurationId": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ },
48
+ "workspaceId": {
49
+ "type": "string",
50
+ "minLength": 1
51
+ },
52
+ "personaId": {
53
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/personaId"
54
+ },
55
+ "operationId": {
56
+ "type": "string",
57
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
58
+ },
59
+ "status": {
60
+ "enum": [
61
+ "succeeded",
62
+ "failed",
63
+ "cancelled",
64
+ "rejected"
65
+ ]
66
+ },
67
+ "instructionHash": {
68
+ "type": "string",
69
+ "pattern": "^[a-f0-9]{64}$"
70
+ },
71
+ "effectiveInstructionHash": {
72
+ "type": "string",
73
+ "pattern": "^[a-f0-9]{64}$"
74
+ },
75
+ "manifestRevision": {
76
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
77
+ },
78
+ "profileId": {
79
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
80
+ },
81
+ "profileRevision": {
82
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
83
+ },
84
+ "catalogRevision": {
85
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
86
+ },
87
+ "adapterId": {
88
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
89
+ },
90
+ "adapterVersion": {
91
+ "type": "string",
92
+ "minLength": 1
93
+ },
94
+ "providerModelId": {
95
+ "type": "string",
96
+ "minLength": 1
97
+ },
98
+ "provider": {
99
+ "type": "string",
100
+ "minLength": 1
101
+ },
102
+ "requested": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "outputSchemaPresent"
107
+ ],
108
+ "properties": {
109
+ "effortHint": {
110
+ "type": "string",
111
+ "minLength": 1
112
+ },
113
+ "effortByModel": {
114
+ "type": "object",
115
+ "additionalProperties": {
116
+ "type": "string",
117
+ "minLength": 1
118
+ }
119
+ },
120
+ "maxOutputTokens": {
121
+ "type": "integer",
122
+ "minimum": 1
123
+ },
124
+ "outputSchemaPresent": {
125
+ "type": "boolean"
126
+ }
127
+ }
128
+ },
129
+ "effective": {
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "properties": {
133
+ "reasoning": {
134
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/nativeReasoningControl"
135
+ },
136
+ "requestedEffort": {
137
+ "type": "string",
138
+ "minLength": 1
139
+ },
140
+ "effectiveEffort": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ },
144
+ "profileDefaultMaxOutputTokens": {
145
+ "type": "integer",
146
+ "minimum": 1
147
+ },
148
+ "slotDefaultMaxOutputTokens": {
149
+ "type": "integer",
150
+ "minimum": 1
151
+ },
152
+ "maxOutputTokens": {
153
+ "type": "integer",
154
+ "minimum": 1
155
+ },
156
+ "appliedCaps": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "object",
160
+ "additionalProperties": false,
161
+ "required": [
162
+ "source",
163
+ "dimension",
164
+ "value",
165
+ "effective"
166
+ ],
167
+ "properties": {
168
+ "source": {
169
+ "enum": [
170
+ "model",
171
+ "profile",
172
+ "client",
173
+ "invocation"
174
+ ]
175
+ },
176
+ "dimension": {
177
+ "enum": [
178
+ "maxOutputTokens",
179
+ "maxInputTokens",
180
+ "maxEstimatedCost"
181
+ ]
182
+ },
183
+ "value": {
184
+ "type": "number",
185
+ "minimum": 0
186
+ },
187
+ "requested": {
188
+ "type": "number",
189
+ "minimum": 0
190
+ },
191
+ "effective": {
192
+ "type": "number",
193
+ "minimum": 0
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+ },
200
+ "attempts": {
201
+ "type": "array",
202
+ "items": {
203
+ "type": "object",
204
+ "additionalProperties": false,
205
+ "required": [
206
+ "attempt",
207
+ "catalogId",
208
+ "providerModelId",
209
+ "role",
210
+ "latencyMs",
211
+ "outcome",
212
+ "providerRequestStarted"
213
+ ],
214
+ "properties": {
215
+ "attempt": {
216
+ "type": "integer",
217
+ "minimum": 1
218
+ },
219
+ "catalogId": {
220
+ "type": "string",
221
+ "minLength": 1
222
+ },
223
+ "providerModelId": {
224
+ "type": "string",
225
+ "minLength": 1
226
+ },
227
+ "role": {
228
+ "enum": [
229
+ "primary",
230
+ "fallback"
231
+ ]
232
+ },
233
+ "latencyMs": {
234
+ "type": "integer",
235
+ "minimum": 0
236
+ },
237
+ "outcome": {
238
+ "enum": [
239
+ "succeeded",
240
+ "failed",
241
+ "cancelled"
242
+ ]
243
+ },
244
+ "providerRequestStarted": {
245
+ "type": "boolean"
246
+ },
247
+ "effective": {
248
+ "type": "object",
249
+ "additionalProperties": false,
250
+ "properties": {
251
+ "reasoning": {
252
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/nativeReasoningControl"
253
+ },
254
+ "requestedEffort": {
255
+ "type": "string",
256
+ "minLength": 1
257
+ },
258
+ "effectiveEffort": {
259
+ "type": "string",
260
+ "minLength": 1
261
+ },
262
+ "profileDefaultMaxOutputTokens": {
263
+ "type": "integer",
264
+ "minimum": 1
265
+ },
266
+ "slotDefaultMaxOutputTokens": {
267
+ "type": "integer",
268
+ "minimum": 1
269
+ },
270
+ "maxOutputTokens": {
271
+ "type": "integer",
272
+ "minimum": 1
273
+ },
274
+ "appliedCaps": {
275
+ "type": "array",
276
+ "items": {
277
+ "type": "object",
278
+ "additionalProperties": false,
279
+ "required": [
280
+ "source",
281
+ "dimension",
282
+ "value",
283
+ "effective"
284
+ ],
285
+ "properties": {
286
+ "source": {
287
+ "enum": [
288
+ "model",
289
+ "profile",
290
+ "client",
291
+ "invocation"
292
+ ]
293
+ },
294
+ "dimension": {
295
+ "enum": [
296
+ "maxOutputTokens",
297
+ "maxInputTokens",
298
+ "maxEstimatedCost"
299
+ ]
300
+ },
301
+ "value": {
302
+ "type": "number",
303
+ "minimum": 0
304
+ },
305
+ "requested": {
306
+ "type": "number",
307
+ "minimum": 0
308
+ },
309
+ "effective": {
310
+ "type": "number",
311
+ "minimum": 0
312
+ }
313
+ }
314
+ }
315
+ }
316
+ }
317
+ },
318
+ "errorClass": {
319
+ "type": "string"
320
+ },
321
+ "errorMessage": {
322
+ "type": "string"
323
+ },
324
+ "usage": {
325
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/usageDimensions"
326
+ },
327
+ "costEstimate": {
328
+ "type": "object",
329
+ "additionalProperties": false,
330
+ "required": [
331
+ "currency",
332
+ "priceKnown",
333
+ "basis"
334
+ ],
335
+ "properties": {
336
+ "currency": {
337
+ "type": "string",
338
+ "minLength": 3,
339
+ "maxLength": 3
340
+ },
341
+ "amount": {
342
+ "type": "number",
343
+ "minimum": 0
344
+ },
345
+ "priceRevisionId": {
346
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
347
+ },
348
+ "priceKnown": {
349
+ "type": "boolean"
350
+ },
351
+ "basis": {
352
+ "enum": [
353
+ "reported-usage",
354
+ "preflight-estimate"
355
+ ]
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ },
362
+ "usage": {
363
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/usageDimensions"
364
+ },
365
+ "costEstimate": {
366
+ "type": "object",
367
+ "additionalProperties": false,
368
+ "required": [
369
+ "currency",
370
+ "priceKnown",
371
+ "basis"
372
+ ],
373
+ "properties": {
374
+ "currency": {
375
+ "type": "string",
376
+ "minLength": 3,
377
+ "maxLength": 3
378
+ },
379
+ "amount": {
380
+ "type": "number",
381
+ "minimum": 0
382
+ },
383
+ "priceRevisionId": {
384
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
385
+ },
386
+ "priceKnown": {
387
+ "type": "boolean"
388
+ },
389
+ "basis": {
390
+ "enum": [
391
+ "reported-usage",
392
+ "preflight-estimate"
393
+ ]
394
+ }
395
+ }
396
+ },
397
+ "latencyMs": {
398
+ "type": "integer",
399
+ "minimum": 0
400
+ },
401
+ "fallbackUsed": {
402
+ "type": "boolean"
403
+ },
404
+ "error": {
405
+ "type": "object",
406
+ "additionalProperties": false,
407
+ "required": [
408
+ "code",
409
+ "message"
410
+ ],
411
+ "properties": {
412
+ "code": {
413
+ "type": "string",
414
+ "minLength": 1
415
+ },
416
+ "message": {
417
+ "type": "string"
418
+ }
419
+ }
420
+ },
421
+ "warnings": {
422
+ "type": "array",
423
+ "items": {
424
+ "type": "string"
425
+ }
426
+ },
427
+ "completedAt": {
428
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
429
+ }
430
+ }
431
+ }