@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.
- package/README.md +44 -18
- package/THIRD_PARTY_NOTICES +34 -34
- package/dist/adoption-common.d.ts +19 -0
- package/dist/adoption-common.d.ts.map +1 -0
- package/dist/adoption-common.js +27 -0
- package/dist/adoption-common.js.map +1 -0
- package/dist/application-execution-review.d.ts +34 -0
- package/dist/application-execution-review.d.ts.map +1 -0
- package/dist/application-execution-review.js +25 -0
- package/dist/application-execution-review.js.map +1 -0
- package/dist/application-route-adoption.d.ts +30 -0
- package/dist/application-route-adoption.d.ts.map +1 -0
- package/dist/application-route-adoption.js +21 -0
- package/dist/application-route-adoption.js.map +1 -0
- package/dist/catalog-delivery.d.ts +5 -0
- package/dist/catalog-delivery.d.ts.map +1 -1
- package/dist/catalog-delivery.js +24 -8
- package/dist/catalog-delivery.js.map +1 -1
- package/dist/catalog-package-data.d.ts.map +1 -1
- package/dist/catalog-package-data.js +37608 -7
- package/dist/catalog-package-data.js.map +1 -1
- package/dist/catalog-publication.d.ts +64 -0
- package/dist/catalog-publication.d.ts.map +1 -0
- package/dist/catalog-publication.js +113 -0
- package/dist/catalog-publication.js.map +1 -0
- package/dist/compatibility.d.ts +5 -2
- package/dist/compatibility.d.ts.map +1 -1
- package/dist/compatibility.js +42 -21
- package/dist/compatibility.js.map +1 -1
- package/dist/configuration-bundle.d.ts +7 -0
- package/dist/configuration-bundle.d.ts.map +1 -1
- package/dist/configuration-bundle.js +61 -16
- package/dist/configuration-bundle.js.map +1 -1
- package/dist/direct-model-receipt.d.ts +29 -0
- package/dist/direct-model-receipt.d.ts.map +1 -0
- package/dist/direct-model-receipt.js +21 -0
- package/dist/direct-model-receipt.js.map +1 -0
- package/dist/entities.d.ts +53 -19
- package/dist/entities.d.ts.map +1 -1
- package/dist/execution-provenance.d.ts +14 -0
- package/dist/execution-provenance.d.ts.map +1 -0
- package/dist/execution-provenance.js +15 -0
- package/dist/execution-provenance.js.map +1 -0
- package/dist/generation.d.ts +184 -0
- package/dist/generation.d.ts.map +1 -0
- package/dist/generation.js +2 -0
- package/dist/generation.js.map +1 -0
- package/dist/independent-validation.d.ts +8 -0
- package/dist/independent-validation.d.ts.map +1 -0
- package/dist/independent-validation.js +42 -0
- package/dist/independent-validation.js.map +1 -0
- package/dist/index.d.ts +24 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -3
- package/dist/index.js.map +1 -1
- package/dist/model-configuration.d.ts +79 -0
- package/dist/model-configuration.d.ts.map +1 -0
- package/dist/model-configuration.js +172 -0
- package/dist/model-configuration.js.map +1 -0
- package/dist/model-maintenance.d.ts.map +1 -1
- package/dist/model-maintenance.js +7 -6
- package/dist/model-maintenance.js.map +1 -1
- package/dist/model-package-data.d.ts.map +1 -1
- package/dist/model-package-data.js +5 -1
- package/dist/model-package-data.js.map +1 -1
- package/dist/model-receipt.d.ts +14 -0
- package/dist/model-receipt.d.ts.map +1 -0
- package/dist/model-receipt.js +16 -0
- package/dist/model-receipt.js.map +1 -0
- package/dist/model-resources.d.ts +206 -0
- package/dist/model-resources.d.ts.map +1 -0
- package/dist/model-resources.js +154 -0
- package/dist/model-resources.js.map +1 -0
- package/dist/named-configuration.d.ts +113 -0
- package/dist/named-configuration.d.ts.map +1 -0
- package/dist/named-configuration.js +226 -0
- package/dist/named-configuration.js.map +1 -0
- package/dist/native-receipt.d.ts +13 -0
- package/dist/native-receipt.d.ts.map +1 -0
- package/dist/native-receipt.js +7 -0
- package/dist/native-receipt.js.map +1 -0
- package/dist/profile-identity.js +2 -2
- package/dist/profile-identity.js.map +1 -1
- package/dist/profile-receipt.d.ts +8 -0
- package/dist/profile-receipt.d.ts.map +1 -0
- package/dist/profile-receipt.js +14 -0
- package/dist/profile-receipt.js.map +1 -0
- package/dist/provider-listings.d.ts +3 -3
- package/dist/provider-listings.d.ts.map +1 -1
- package/dist/provider-listings.js +46 -12
- package/dist/provider-listings.js.map +1 -1
- package/dist/reasoning-validation.d.ts +3 -1
- package/dist/reasoning-validation.d.ts.map +1 -1
- package/dist/reasoning-validation.js +34 -14
- package/dist/reasoning-validation.js.map +1 -1
- package/dist/reasoning.d.ts.map +1 -1
- package/dist/reasoning.js +18 -8
- package/dist/reasoning.js.map +1 -1
- package/dist/request-route.d.ts +34 -0
- package/dist/request-route.d.ts.map +1 -0
- package/dist/request-route.js +42 -0
- package/dist/request-route.js.map +1 -0
- package/dist/route-assessment.d.ts +34 -0
- package/dist/route-assessment.d.ts.map +1 -0
- package/dist/route-assessment.js +48 -0
- package/dist/route-assessment.js.map +1 -0
- package/dist/route-export.d.ts +20 -0
- package/dist/route-export.d.ts.map +1 -0
- package/dist/route-export.js +54 -0
- package/dist/route-export.js.map +1 -0
- package/dist/route-helpers.d.ts +51 -0
- package/dist/route-helpers.d.ts.map +1 -0
- package/dist/route-helpers.js +31 -0
- package/dist/route-helpers.js.map +1 -0
- package/dist/route-import.d.ts +98 -0
- package/dist/route-import.d.ts.map +1 -0
- package/dist/route-import.js +124 -0
- package/dist/route-import.js.map +1 -0
- package/dist/route-receipt.d.ts +46 -0
- package/dist/route-receipt.d.ts.map +1 -0
- package/dist/route-receipt.js +95 -0
- package/dist/route-receipt.js.map +1 -0
- package/dist/route-set-export.d.ts +4 -0
- package/dist/route-set-export.d.ts.map +1 -0
- package/dist/route-set-export.js +31 -0
- package/dist/route-set-export.js.map +1 -0
- package/dist/route-set.d.ts +61 -0
- package/dist/route-set.d.ts.map +1 -0
- package/dist/route-set.js +103 -0
- package/dist/route-set.js.map +1 -0
- package/dist/route-usage.d.ts +36 -0
- package/dist/route-usage.d.ts.map +1 -0
- package/dist/route-usage.js +62 -0
- package/dist/route-usage.js.map +1 -0
- package/dist/schemas/adoption.d.ts +95 -0
- package/dist/schemas/adoption.d.ts.map +1 -0
- package/dist/schemas/adoption.js +73 -0
- package/dist/schemas/adoption.js.map +1 -0
- package/dist/schemas/application-execution-review.schema.json +416 -0
- package/dist/schemas/application-route-adoption.schema.json +224 -0
- package/dist/schemas/catalog-release.schema.json +17 -0
- package/dist/schemas/config.d.ts +273 -1
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/config.js +22 -3
- package/dist/schemas/config.js.map +1 -1
- package/dist/schemas/core.d.ts +369 -0
- package/dist/schemas/core.d.ts.map +1 -1
- package/dist/schemas/core.js +11 -1
- package/dist/schemas/core.js.map +1 -1
- package/dist/schemas/direct-model-execution-receipt.schema.json +864 -0
- package/dist/schemas/direct-model-receipt.d.ts +270 -0
- package/dist/schemas/direct-model-receipt.d.ts.map +1 -0
- package/dist/schemas/direct-model-receipt.js +13 -0
- package/dist/schemas/direct-model-receipt.js.map +1 -0
- package/dist/schemas/execution-receipt.schema.json +483 -3
- package/dist/schemas/execution-requirements.schema.json +47 -0
- package/dist/schemas/generation.d.ts +117 -0
- package/dist/schemas/generation.d.ts.map +1 -0
- package/dist/schemas/generation.js +44 -0
- package/dist/schemas/generation.js.map +1 -0
- package/dist/schemas/independent.d.ts +50 -0
- package/dist/schemas/independent.d.ts.map +1 -0
- package/dist/schemas/independent.js +85 -0
- package/dist/schemas/independent.js.map +1 -0
- package/dist/schemas/index.d.ts +4 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +15 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/model-configuration-content.schema.json +92 -0
- package/dist/schemas/model-configuration-request.schema.json +53 -0
- package/dist/schemas/model-configuration-revision.schema.json +151 -0
- package/dist/schemas/model-configuration-snapshot.schema.json +381 -0
- package/dist/schemas/model-configuration.schema.json +72 -0
- package/dist/schemas/model-definition.schema.json +191 -0
- package/dist/schemas/model-execution-receipt.schema.json +889 -0
- package/dist/schemas/model-receipt.d.ts +598 -0
- package/dist/schemas/model-receipt.d.ts.map +1 -0
- package/dist/schemas/model-receipt.js +23 -0
- package/dist/schemas/model-receipt.js.map +1 -0
- package/dist/schemas/model-resource-snapshot.schema.json +164 -0
- package/dist/schemas/model-settings.schema.json +22 -0
- package/dist/schemas/native-execution-receipt.schema.json +919 -0
- package/dist/schemas/native-receipt.d.ts +624 -0
- package/dist/schemas/native-receipt.d.ts.map +1 -0
- package/dist/schemas/native-receipt.js +16 -0
- package/dist/schemas/native-receipt.js.map +1 -0
- package/dist/schemas/profile-execution-receipt.schema.json +853 -0
- package/dist/schemas/profile-receipt.d.ts +579 -0
- package/dist/schemas/profile-receipt.d.ts.map +1 -0
- package/dist/schemas/profile-receipt.js +20 -0
- package/dist/schemas/profile-receipt.js.map +1 -0
- package/dist/schemas/request-route-assessment.schema.json +288 -0
- package/dist/schemas/request-route-execution-receipt.schema.json +864 -0
- package/dist/schemas/request-route-export.schema.json +42 -0
- package/dist/schemas/request-route-metadata.schema.json +31 -0
- package/dist/schemas/request-route.schema.json +235 -0
- package/dist/schemas/route-configuration.schema.json +205 -0
- package/dist/schemas/route-import-authoring.schema.json +426 -0
- package/dist/schemas/route-import-journal.schema.json +119 -0
- package/dist/schemas/route-import-proposal.schema.json +416 -0
- package/dist/schemas/route-import-result.schema.json +100 -0
- package/dist/schemas/route-set-content.schema.json +200 -0
- package/dist/schemas/route-set-execution-receipt.schema.json +889 -0
- package/dist/schemas/route-set-request.schema.json +64 -0
- package/dist/schemas/route-set-revision.schema.json +258 -0
- package/dist/schemas/route-set-snapshot.schema.json +615 -0
- package/dist/schemas/route-set.schema.json +71 -0
- package/dist/schemas/routes.d.ts +435 -0
- package/dist/schemas/routes.d.ts.map +1 -0
- package/dist/schemas/routes.js +75 -0
- package/dist/schemas/routes.js.map +1 -0
- package/dist/schemas/system-instruction-revision.schema.json +55 -0
- package/dist/schemas/system-instruction.schema.json +72 -0
- package/dist/schemas/usage-aggregate-query.schema.json +25 -1
- package/dist/schemas/usage-page.schema.json +17 -1
- package/dist/schemas/usage-query.schema.json +20 -0
- package/dist/schemas/usage-summary.schema.json +88 -0
- package/dist/schemas/usage.d.ts +124 -4
- package/dist/schemas/usage.d.ts.map +1 -1
- package/dist/schemas/usage.js +18 -3
- package/dist/schemas/usage.js.map +1 -1
- package/dist/scoped-configuration.d.ts +2 -0
- package/dist/scoped-configuration.d.ts.map +1 -1
- package/dist/scoped-configuration.js.map +1 -1
- package/dist/scripts/emit-schemas.js +2 -3
- package/dist/scripts/emit-schemas.js.map +1 -1
- package/dist/system-instruction.d.ts +54 -0
- package/dist/system-instruction.d.ts.map +1 -0
- package/dist/system-instruction.js +64 -0
- package/dist/system-instruction.js.map +1 -0
- package/package.json +2 -2
- package/third-party-licenses.json +2 -7
- package/dist/schemas/catalog-delta-output.schema.json +0 -146
- package/dist/schemas/catalog-delta-record.schema.json +0 -242
- package/dist/schemas/incremental-catalog-review.schema.json +0 -645
- /package/third-party-licenses/{fast-uri@3.1.7 → fast-uri@3.1.9}/LICENSE +0 -0
|
@@ -2,6 +2,63 @@
|
|
|
2
2
|
"$id": "https://techis.dev/ai/contracts/execution-receipt.schema.json",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"additionalProperties": false,
|
|
5
|
+
"allOf": [
|
|
6
|
+
{
|
|
7
|
+
"if": {
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": {
|
|
10
|
+
"const": 1
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": [
|
|
14
|
+
"schemaVersion"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"then": {
|
|
18
|
+
"not": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"required": [
|
|
22
|
+
"generation"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"required": [
|
|
27
|
+
"skippedSlots"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"properties": {
|
|
33
|
+
"costEstimate": {
|
|
34
|
+
"not": {
|
|
35
|
+
"required": [
|
|
36
|
+
"uncertainties"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"attempts": {
|
|
41
|
+
"items": {
|
|
42
|
+
"not": {
|
|
43
|
+
"required": [
|
|
44
|
+
"generation"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"properties": {
|
|
48
|
+
"costEstimate": {
|
|
49
|
+
"not": {
|
|
50
|
+
"required": [
|
|
51
|
+
"uncertainties"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
],
|
|
5
62
|
"required": [
|
|
6
63
|
"schemaVersion",
|
|
7
64
|
"receiptId",
|
|
@@ -21,7 +78,143 @@
|
|
|
21
78
|
],
|
|
22
79
|
"properties": {
|
|
23
80
|
"schemaVersion": {
|
|
24
|
-
"
|
|
81
|
+
"enum": [
|
|
82
|
+
1,
|
|
83
|
+
2
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"generation": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": [
|
|
90
|
+
"clientStyle",
|
|
91
|
+
"mode",
|
|
92
|
+
"outcome",
|
|
93
|
+
"outputExposed",
|
|
94
|
+
"features"
|
|
95
|
+
],
|
|
96
|
+
"properties": {
|
|
97
|
+
"clientStyle": {
|
|
98
|
+
"enum": [
|
|
99
|
+
"generate",
|
|
100
|
+
"responses",
|
|
101
|
+
"chat"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"mode": {
|
|
105
|
+
"enum": [
|
|
106
|
+
"final",
|
|
107
|
+
"stream"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"outcome": {
|
|
111
|
+
"enum": [
|
|
112
|
+
"completed",
|
|
113
|
+
"requires_action",
|
|
114
|
+
"refused",
|
|
115
|
+
"incomplete",
|
|
116
|
+
"failed"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"outputExposed": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"adapterRoute": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"minLength": 1,
|
|
125
|
+
"maxLength": 128
|
|
126
|
+
},
|
|
127
|
+
"compatibleAdapterVersion": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1,
|
|
130
|
+
"maxLength": 128
|
|
131
|
+
},
|
|
132
|
+
"implementation": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"additionalProperties": false,
|
|
135
|
+
"required": [
|
|
136
|
+
"id",
|
|
137
|
+
"version",
|
|
138
|
+
"contractVersion"
|
|
139
|
+
],
|
|
140
|
+
"properties": {
|
|
141
|
+
"id": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"minLength": 1,
|
|
144
|
+
"maxLength": 128
|
|
145
|
+
},
|
|
146
|
+
"version": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"minLength": 1,
|
|
149
|
+
"maxLength": 128
|
|
150
|
+
},
|
|
151
|
+
"contractVersion": {
|
|
152
|
+
"enum": [
|
|
153
|
+
1,
|
|
154
|
+
2
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"protocol": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"minLength": 1,
|
|
162
|
+
"maxLength": 128
|
|
163
|
+
},
|
|
164
|
+
"features": {
|
|
165
|
+
"type": "array",
|
|
166
|
+
"items": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"additionalProperties": false,
|
|
169
|
+
"required": [
|
|
170
|
+
"feature",
|
|
171
|
+
"requested",
|
|
172
|
+
"effective"
|
|
173
|
+
],
|
|
174
|
+
"properties": {
|
|
175
|
+
"feature": {
|
|
176
|
+
"enum": [
|
|
177
|
+
"text",
|
|
178
|
+
"images",
|
|
179
|
+
"image-detail",
|
|
180
|
+
"structured-output",
|
|
181
|
+
"client-tools",
|
|
182
|
+
"tool-choice",
|
|
183
|
+
"parallel-tools",
|
|
184
|
+
"web-search",
|
|
185
|
+
"reasoning",
|
|
186
|
+
"sampling",
|
|
187
|
+
"storage",
|
|
188
|
+
"continuation",
|
|
189
|
+
"provider-options",
|
|
190
|
+
"streaming"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"requested": {
|
|
194
|
+
"type": "boolean"
|
|
195
|
+
},
|
|
196
|
+
"effective": {
|
|
197
|
+
"enum": [
|
|
198
|
+
"sent",
|
|
199
|
+
"omitted",
|
|
200
|
+
"unknown",
|
|
201
|
+
"text-context",
|
|
202
|
+
"buffered"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"reason": {
|
|
206
|
+
"enum": [
|
|
207
|
+
"unsupported",
|
|
208
|
+
"unknown-capability",
|
|
209
|
+
"provider-specific",
|
|
210
|
+
"continuation-not-portable",
|
|
211
|
+
"legacy-adapter"
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
25
218
|
},
|
|
26
219
|
"receiptId": {
|
|
27
220
|
"type": "string",
|
|
@@ -212,6 +405,139 @@
|
|
|
212
405
|
"providerRequestStarted"
|
|
213
406
|
],
|
|
214
407
|
"properties": {
|
|
408
|
+
"generation": {
|
|
409
|
+
"type": "object",
|
|
410
|
+
"additionalProperties": false,
|
|
411
|
+
"required": [
|
|
412
|
+
"clientStyle",
|
|
413
|
+
"mode",
|
|
414
|
+
"outcome",
|
|
415
|
+
"outputExposed",
|
|
416
|
+
"features"
|
|
417
|
+
],
|
|
418
|
+
"properties": {
|
|
419
|
+
"clientStyle": {
|
|
420
|
+
"enum": [
|
|
421
|
+
"generate",
|
|
422
|
+
"responses",
|
|
423
|
+
"chat"
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"mode": {
|
|
427
|
+
"enum": [
|
|
428
|
+
"final",
|
|
429
|
+
"stream"
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
"outcome": {
|
|
433
|
+
"enum": [
|
|
434
|
+
"completed",
|
|
435
|
+
"requires_action",
|
|
436
|
+
"refused",
|
|
437
|
+
"incomplete",
|
|
438
|
+
"failed"
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
"outputExposed": {
|
|
442
|
+
"type": "boolean"
|
|
443
|
+
},
|
|
444
|
+
"adapterRoute": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"minLength": 1,
|
|
447
|
+
"maxLength": 128
|
|
448
|
+
},
|
|
449
|
+
"compatibleAdapterVersion": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"minLength": 1,
|
|
452
|
+
"maxLength": 128
|
|
453
|
+
},
|
|
454
|
+
"implementation": {
|
|
455
|
+
"type": "object",
|
|
456
|
+
"additionalProperties": false,
|
|
457
|
+
"required": [
|
|
458
|
+
"id",
|
|
459
|
+
"version",
|
|
460
|
+
"contractVersion"
|
|
461
|
+
],
|
|
462
|
+
"properties": {
|
|
463
|
+
"id": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"minLength": 1,
|
|
466
|
+
"maxLength": 128
|
|
467
|
+
},
|
|
468
|
+
"version": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"minLength": 1,
|
|
471
|
+
"maxLength": 128
|
|
472
|
+
},
|
|
473
|
+
"contractVersion": {
|
|
474
|
+
"enum": [
|
|
475
|
+
1,
|
|
476
|
+
2
|
|
477
|
+
]
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"protocol": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"minLength": 1,
|
|
484
|
+
"maxLength": 128
|
|
485
|
+
},
|
|
486
|
+
"features": {
|
|
487
|
+
"type": "array",
|
|
488
|
+
"items": {
|
|
489
|
+
"type": "object",
|
|
490
|
+
"additionalProperties": false,
|
|
491
|
+
"required": [
|
|
492
|
+
"feature",
|
|
493
|
+
"requested",
|
|
494
|
+
"effective"
|
|
495
|
+
],
|
|
496
|
+
"properties": {
|
|
497
|
+
"feature": {
|
|
498
|
+
"enum": [
|
|
499
|
+
"text",
|
|
500
|
+
"images",
|
|
501
|
+
"image-detail",
|
|
502
|
+
"structured-output",
|
|
503
|
+
"client-tools",
|
|
504
|
+
"tool-choice",
|
|
505
|
+
"parallel-tools",
|
|
506
|
+
"web-search",
|
|
507
|
+
"reasoning",
|
|
508
|
+
"sampling",
|
|
509
|
+
"storage",
|
|
510
|
+
"continuation",
|
|
511
|
+
"provider-options",
|
|
512
|
+
"streaming"
|
|
513
|
+
]
|
|
514
|
+
},
|
|
515
|
+
"requested": {
|
|
516
|
+
"type": "boolean"
|
|
517
|
+
},
|
|
518
|
+
"effective": {
|
|
519
|
+
"enum": [
|
|
520
|
+
"sent",
|
|
521
|
+
"omitted",
|
|
522
|
+
"unknown",
|
|
523
|
+
"text-context",
|
|
524
|
+
"buffered"
|
|
525
|
+
]
|
|
526
|
+
},
|
|
527
|
+
"reason": {
|
|
528
|
+
"enum": [
|
|
529
|
+
"unsupported",
|
|
530
|
+
"unknown-capability",
|
|
531
|
+
"provider-specific",
|
|
532
|
+
"continuation-not-portable",
|
|
533
|
+
"legacy-adapter"
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
215
541
|
"attempt": {
|
|
216
542
|
"type": "integer",
|
|
217
543
|
"minimum": 1
|
|
@@ -353,8 +679,115 @@
|
|
|
353
679
|
"reported-usage",
|
|
354
680
|
"preflight-estimate"
|
|
355
681
|
]
|
|
682
|
+
},
|
|
683
|
+
"uncertainties": {
|
|
684
|
+
"type": "array",
|
|
685
|
+
"minItems": 1,
|
|
686
|
+
"uniqueItems": true,
|
|
687
|
+
"items": {
|
|
688
|
+
"enum": [
|
|
689
|
+
"usage-missing",
|
|
690
|
+
"usage-incomplete",
|
|
691
|
+
"usage-inconsistent",
|
|
692
|
+
"cache-usage",
|
|
693
|
+
"price-missing",
|
|
694
|
+
"unsupported-price-unit",
|
|
695
|
+
"input-price",
|
|
696
|
+
"output-price",
|
|
697
|
+
"cache-price",
|
|
698
|
+
"long-context-price",
|
|
699
|
+
"provider-tools",
|
|
700
|
+
"service-tier",
|
|
701
|
+
"region",
|
|
702
|
+
"price-conditions",
|
|
703
|
+
"opaque-input",
|
|
704
|
+
"output-limit",
|
|
705
|
+
"currency"
|
|
706
|
+
]
|
|
707
|
+
}
|
|
356
708
|
}
|
|
357
|
-
}
|
|
709
|
+
},
|
|
710
|
+
"allOf": [
|
|
711
|
+
{
|
|
712
|
+
"if": {
|
|
713
|
+
"required": [
|
|
714
|
+
"uncertainties"
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
"then": {
|
|
718
|
+
"properties": {
|
|
719
|
+
"priceKnown": {
|
|
720
|
+
"const": false
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"not": {
|
|
724
|
+
"required": [
|
|
725
|
+
"amount"
|
|
726
|
+
]
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
]
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"skippedSlots": {
|
|
736
|
+
"type": "array",
|
|
737
|
+
"items": {
|
|
738
|
+
"type": "object",
|
|
739
|
+
"additionalProperties": false,
|
|
740
|
+
"required": [
|
|
741
|
+
"slot",
|
|
742
|
+
"catalogId",
|
|
743
|
+
"providerModelId",
|
|
744
|
+
"role",
|
|
745
|
+
"phase",
|
|
746
|
+
"reason",
|
|
747
|
+
"providerRequestStarted"
|
|
748
|
+
],
|
|
749
|
+
"properties": {
|
|
750
|
+
"slot": {
|
|
751
|
+
"type": "integer",
|
|
752
|
+
"minimum": 0
|
|
753
|
+
},
|
|
754
|
+
"catalogId": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"minLength": 1,
|
|
757
|
+
"maxLength": 128
|
|
758
|
+
},
|
|
759
|
+
"providerModelId": {
|
|
760
|
+
"type": "string",
|
|
761
|
+
"minLength": 1,
|
|
762
|
+
"maxLength": 256
|
|
763
|
+
},
|
|
764
|
+
"role": {
|
|
765
|
+
"enum": [
|
|
766
|
+
"primary",
|
|
767
|
+
"fallback"
|
|
768
|
+
]
|
|
769
|
+
},
|
|
770
|
+
"phase": {
|
|
771
|
+
"enum": [
|
|
772
|
+
"preflight",
|
|
773
|
+
"execution"
|
|
774
|
+
]
|
|
775
|
+
},
|
|
776
|
+
"providerRequestStarted": {
|
|
777
|
+
"type": "boolean"
|
|
778
|
+
},
|
|
779
|
+
"reason": {
|
|
780
|
+
"enum": [
|
|
781
|
+
"retired",
|
|
782
|
+
"adapter-missing",
|
|
783
|
+
"adapter-provider",
|
|
784
|
+
"adapter-version",
|
|
785
|
+
"text-output",
|
|
786
|
+
"input-limit",
|
|
787
|
+
"credential-unavailable",
|
|
788
|
+
"model-unavailable",
|
|
789
|
+
"continuation-not-portable"
|
|
790
|
+
]
|
|
358
791
|
}
|
|
359
792
|
}
|
|
360
793
|
}
|
|
@@ -391,8 +824,55 @@
|
|
|
391
824
|
"reported-usage",
|
|
392
825
|
"preflight-estimate"
|
|
393
826
|
]
|
|
827
|
+
},
|
|
828
|
+
"uncertainties": {
|
|
829
|
+
"type": "array",
|
|
830
|
+
"minItems": 1,
|
|
831
|
+
"uniqueItems": true,
|
|
832
|
+
"items": {
|
|
833
|
+
"enum": [
|
|
834
|
+
"usage-missing",
|
|
835
|
+
"usage-incomplete",
|
|
836
|
+
"usage-inconsistent",
|
|
837
|
+
"cache-usage",
|
|
838
|
+
"price-missing",
|
|
839
|
+
"unsupported-price-unit",
|
|
840
|
+
"input-price",
|
|
841
|
+
"output-price",
|
|
842
|
+
"cache-price",
|
|
843
|
+
"long-context-price",
|
|
844
|
+
"provider-tools",
|
|
845
|
+
"service-tier",
|
|
846
|
+
"region",
|
|
847
|
+
"price-conditions",
|
|
848
|
+
"opaque-input",
|
|
849
|
+
"output-limit",
|
|
850
|
+
"currency"
|
|
851
|
+
]
|
|
852
|
+
}
|
|
394
853
|
}
|
|
395
|
-
}
|
|
854
|
+
},
|
|
855
|
+
"allOf": [
|
|
856
|
+
{
|
|
857
|
+
"if": {
|
|
858
|
+
"required": [
|
|
859
|
+
"uncertainties"
|
|
860
|
+
]
|
|
861
|
+
},
|
|
862
|
+
"then": {
|
|
863
|
+
"properties": {
|
|
864
|
+
"priceKnown": {
|
|
865
|
+
"const": false
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"not": {
|
|
869
|
+
"required": [
|
|
870
|
+
"amount"
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
]
|
|
396
876
|
},
|
|
397
877
|
"latencyMs": {
|
|
398
878
|
"type": "integer",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://techis.dev/ai/contracts/execution-requirements.schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"requiredFeatures": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"maxItems": 1000,
|
|
9
|
+
"minItems": 0,
|
|
10
|
+
"items": {
|
|
11
|
+
"enum": [
|
|
12
|
+
"text",
|
|
13
|
+
"images",
|
|
14
|
+
"image-detail",
|
|
15
|
+
"structured-output",
|
|
16
|
+
"client-tools",
|
|
17
|
+
"tool-choice",
|
|
18
|
+
"parallel-tools",
|
|
19
|
+
"web-search",
|
|
20
|
+
"reasoning",
|
|
21
|
+
"sampling",
|
|
22
|
+
"storage",
|
|
23
|
+
"continuation",
|
|
24
|
+
"provider-options",
|
|
25
|
+
"streaming"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"uniqueItems": true
|
|
29
|
+
},
|
|
30
|
+
"unknownCapability": {
|
|
31
|
+
"enum": [
|
|
32
|
+
"reject",
|
|
33
|
+
"allow"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"structuredOutputEnforcement": {
|
|
37
|
+
"enum": [
|
|
38
|
+
"provider-native",
|
|
39
|
+
"local-validation"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"requiredFeatures",
|
|
45
|
+
"unknownCapability"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/** Deliberately excludes raw payloads and open-ended diagnostic values from persisted evidence. */
|
|
2
|
+
export declare const generationEvidenceSchema: {
|
|
3
|
+
readonly type: "object";
|
|
4
|
+
readonly additionalProperties: false;
|
|
5
|
+
readonly required: readonly ["clientStyle", "mode", "outcome", "outputExposed", "features"];
|
|
6
|
+
readonly properties: {
|
|
7
|
+
readonly clientStyle: {
|
|
8
|
+
readonly enum: readonly ["generate", "responses", "chat"];
|
|
9
|
+
};
|
|
10
|
+
readonly mode: {
|
|
11
|
+
readonly enum: readonly ["final", "stream"];
|
|
12
|
+
};
|
|
13
|
+
readonly outcome: {
|
|
14
|
+
readonly enum: readonly ["completed", "requires_action", "refused", "incomplete", "failed"];
|
|
15
|
+
};
|
|
16
|
+
readonly outputExposed: {
|
|
17
|
+
readonly type: "boolean";
|
|
18
|
+
};
|
|
19
|
+
readonly adapterRoute: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly minLength: 1;
|
|
22
|
+
readonly maxLength: 128;
|
|
23
|
+
};
|
|
24
|
+
readonly compatibleAdapterVersion: {
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
readonly minLength: 1;
|
|
27
|
+
readonly maxLength: 128;
|
|
28
|
+
};
|
|
29
|
+
readonly implementation: {
|
|
30
|
+
readonly type: "object";
|
|
31
|
+
readonly additionalProperties: false;
|
|
32
|
+
readonly required: readonly ["id", "version", "contractVersion"];
|
|
33
|
+
readonly properties: {
|
|
34
|
+
readonly id: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
readonly minLength: 1;
|
|
37
|
+
readonly maxLength: 128;
|
|
38
|
+
};
|
|
39
|
+
readonly version: {
|
|
40
|
+
readonly type: "string";
|
|
41
|
+
readonly minLength: 1;
|
|
42
|
+
readonly maxLength: 128;
|
|
43
|
+
};
|
|
44
|
+
readonly contractVersion: {
|
|
45
|
+
readonly enum: readonly [1, 2];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly protocol: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly minLength: 1;
|
|
52
|
+
readonly maxLength: 128;
|
|
53
|
+
};
|
|
54
|
+
readonly features: {
|
|
55
|
+
readonly type: "array";
|
|
56
|
+
readonly items: {
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly additionalProperties: false;
|
|
59
|
+
readonly required: readonly ["feature", "requested", "effective"];
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly feature: {
|
|
62
|
+
readonly enum: readonly ["text", "images", "image-detail", "structured-output", "client-tools", "tool-choice", "parallel-tools", "web-search", "reasoning", "sampling", "storage", "continuation", "provider-options", "streaming"];
|
|
63
|
+
};
|
|
64
|
+
readonly requested: {
|
|
65
|
+
readonly type: "boolean";
|
|
66
|
+
};
|
|
67
|
+
readonly effective: {
|
|
68
|
+
readonly enum: readonly ["sent", "omitted", "unknown", "text-context", "buffered"];
|
|
69
|
+
};
|
|
70
|
+
readonly reason: {
|
|
71
|
+
readonly enum: readonly ["unsupported", "unknown-capability", "provider-specific", "continuation-not-portable", "legacy-adapter"];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
/** An old-version document must not smuggle fields its original reader cannot interpret. */
|
|
79
|
+
export declare function historicalReceiptGuard(version: number): {
|
|
80
|
+
if: {
|
|
81
|
+
properties: {
|
|
82
|
+
schemaVersion: {
|
|
83
|
+
const: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
required: string[];
|
|
87
|
+
};
|
|
88
|
+
then: {
|
|
89
|
+
not: {
|
|
90
|
+
anyOf: {
|
|
91
|
+
required: string[];
|
|
92
|
+
}[];
|
|
93
|
+
};
|
|
94
|
+
properties: {
|
|
95
|
+
costEstimate: {
|
|
96
|
+
not: {
|
|
97
|
+
required: string[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
attempts: {
|
|
101
|
+
items: {
|
|
102
|
+
not: {
|
|
103
|
+
required: string[];
|
|
104
|
+
};
|
|
105
|
+
properties: {
|
|
106
|
+
costEstimate: {
|
|
107
|
+
not: {
|
|
108
|
+
required: string[];
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}[];
|
|
117
|
+
//# sourceMappingURL=generation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../../src/schemas/generation.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B3B,CAAC;AAEX,4FAA4F;AAC5F,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASrD"}
|