@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
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
export declare const profileExecutionReceiptSchemaId = "https://techis.dev/ai/contracts/profile-execution-receipt.schema.json";
|
|
2
|
+
export declare const profileExecutionReceiptSchema: {
|
|
3
|
+
$id: string;
|
|
4
|
+
allOf: {}[];
|
|
5
|
+
required: string[];
|
|
6
|
+
properties: {
|
|
7
|
+
schemaVersion: {
|
|
8
|
+
const: number;
|
|
9
|
+
};
|
|
10
|
+
kind: {
|
|
11
|
+
const: string;
|
|
12
|
+
};
|
|
13
|
+
profileSnapshotRevision: {
|
|
14
|
+
type: string;
|
|
15
|
+
pattern: string;
|
|
16
|
+
};
|
|
17
|
+
bindingId: {
|
|
18
|
+
type: string;
|
|
19
|
+
pattern: string;
|
|
20
|
+
};
|
|
21
|
+
generation: {
|
|
22
|
+
readonly type: "object";
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
readonly required: readonly ["clientStyle", "mode", "outcome", "outputExposed", "features"];
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly clientStyle: {
|
|
27
|
+
readonly enum: readonly ["generate", "responses", "chat"];
|
|
28
|
+
};
|
|
29
|
+
readonly mode: {
|
|
30
|
+
readonly enum: readonly ["final", "stream"];
|
|
31
|
+
};
|
|
32
|
+
readonly outcome: {
|
|
33
|
+
readonly enum: readonly ["completed", "requires_action", "refused", "incomplete", "failed"];
|
|
34
|
+
};
|
|
35
|
+
readonly outputExposed: {
|
|
36
|
+
readonly type: "boolean";
|
|
37
|
+
};
|
|
38
|
+
readonly adapterRoute: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly minLength: 1;
|
|
41
|
+
readonly maxLength: 128;
|
|
42
|
+
};
|
|
43
|
+
readonly compatibleAdapterVersion: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly minLength: 1;
|
|
46
|
+
readonly maxLength: 128;
|
|
47
|
+
};
|
|
48
|
+
readonly implementation: {
|
|
49
|
+
readonly type: "object";
|
|
50
|
+
readonly additionalProperties: false;
|
|
51
|
+
readonly required: readonly ["id", "version", "contractVersion"];
|
|
52
|
+
readonly properties: {
|
|
53
|
+
readonly id: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
readonly minLength: 1;
|
|
56
|
+
readonly maxLength: 128;
|
|
57
|
+
};
|
|
58
|
+
readonly version: {
|
|
59
|
+
readonly type: "string";
|
|
60
|
+
readonly minLength: 1;
|
|
61
|
+
readonly maxLength: 128;
|
|
62
|
+
};
|
|
63
|
+
readonly contractVersion: {
|
|
64
|
+
readonly enum: readonly [1, 2];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly protocol: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
readonly minLength: 1;
|
|
71
|
+
readonly maxLength: 128;
|
|
72
|
+
};
|
|
73
|
+
readonly features: {
|
|
74
|
+
readonly type: "array";
|
|
75
|
+
readonly items: {
|
|
76
|
+
readonly type: "object";
|
|
77
|
+
readonly additionalProperties: false;
|
|
78
|
+
readonly required: readonly ["feature", "requested", "effective"];
|
|
79
|
+
readonly properties: {
|
|
80
|
+
readonly feature: {
|
|
81
|
+
readonly enum: readonly ["text", "images", "image-detail", "structured-output", "client-tools", "tool-choice", "parallel-tools", "web-search", "reasoning", "sampling", "storage", "continuation", "provider-options", "streaming"];
|
|
82
|
+
};
|
|
83
|
+
readonly requested: {
|
|
84
|
+
readonly type: "boolean";
|
|
85
|
+
};
|
|
86
|
+
readonly effective: {
|
|
87
|
+
readonly enum: readonly ["sent", "omitted", "unknown", "text-context", "buffered"];
|
|
88
|
+
};
|
|
89
|
+
readonly reason: {
|
|
90
|
+
readonly enum: readonly ["unsupported", "unknown-capability", "provider-specific", "continuation-not-portable", "legacy-adapter"];
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
receiptId: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
100
|
+
};
|
|
101
|
+
runId: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
readonly minLength: 1;
|
|
104
|
+
};
|
|
105
|
+
requestId: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly pattern: "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$";
|
|
108
|
+
};
|
|
109
|
+
applicationId: {
|
|
110
|
+
readonly $ref: "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId";
|
|
111
|
+
};
|
|
112
|
+
operationId: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly pattern: "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$";
|
|
115
|
+
};
|
|
116
|
+
status: {
|
|
117
|
+
readonly enum: readonly ["succeeded", "failed", "cancelled", "rejected"];
|
|
118
|
+
};
|
|
119
|
+
instructionHash: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
122
|
+
};
|
|
123
|
+
effectiveInstructionHash: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
126
|
+
};
|
|
127
|
+
profileId: {
|
|
128
|
+
readonly $ref: "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId";
|
|
129
|
+
};
|
|
130
|
+
profileRevision: {
|
|
131
|
+
readonly $ref: "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision";
|
|
132
|
+
};
|
|
133
|
+
catalogRevision: {
|
|
134
|
+
readonly $ref: "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision";
|
|
135
|
+
};
|
|
136
|
+
adapterId: {
|
|
137
|
+
readonly $ref: "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId";
|
|
138
|
+
};
|
|
139
|
+
adapterVersion: {
|
|
140
|
+
readonly type: "string";
|
|
141
|
+
readonly minLength: 1;
|
|
142
|
+
};
|
|
143
|
+
providerModelId: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly minLength: 1;
|
|
146
|
+
};
|
|
147
|
+
provider: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly minLength: 1;
|
|
150
|
+
};
|
|
151
|
+
requested: {
|
|
152
|
+
readonly type: "object";
|
|
153
|
+
readonly additionalProperties: false;
|
|
154
|
+
readonly required: readonly ["outputSchemaPresent"];
|
|
155
|
+
readonly properties: {
|
|
156
|
+
readonly effortHint: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly minLength: 1;
|
|
159
|
+
};
|
|
160
|
+
readonly effortByModel: {
|
|
161
|
+
readonly type: "object";
|
|
162
|
+
readonly additionalProperties: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
readonly minLength: 1;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly maxOutputTokens: {
|
|
168
|
+
readonly type: "integer";
|
|
169
|
+
readonly minimum: 1;
|
|
170
|
+
};
|
|
171
|
+
readonly outputSchemaPresent: {
|
|
172
|
+
readonly type: "boolean";
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
effective: {
|
|
177
|
+
type: string;
|
|
178
|
+
additionalProperties: boolean;
|
|
179
|
+
properties: {
|
|
180
|
+
reasoning: {
|
|
181
|
+
$ref: string;
|
|
182
|
+
};
|
|
183
|
+
requestedEffort: {
|
|
184
|
+
type: string;
|
|
185
|
+
minLength: number;
|
|
186
|
+
};
|
|
187
|
+
effectiveEffort: {
|
|
188
|
+
type: string;
|
|
189
|
+
minLength: number;
|
|
190
|
+
};
|
|
191
|
+
profileDefaultMaxOutputTokens: {
|
|
192
|
+
type: string;
|
|
193
|
+
minimum: number;
|
|
194
|
+
};
|
|
195
|
+
slotDefaultMaxOutputTokens: {
|
|
196
|
+
type: string;
|
|
197
|
+
minimum: number;
|
|
198
|
+
};
|
|
199
|
+
maxOutputTokens: {
|
|
200
|
+
type: string;
|
|
201
|
+
minimum: number;
|
|
202
|
+
};
|
|
203
|
+
appliedCaps: {
|
|
204
|
+
type: string;
|
|
205
|
+
items: {
|
|
206
|
+
type: string;
|
|
207
|
+
additionalProperties: boolean;
|
|
208
|
+
required: string[];
|
|
209
|
+
properties: {
|
|
210
|
+
source: {
|
|
211
|
+
enum: string[];
|
|
212
|
+
};
|
|
213
|
+
dimension: {
|
|
214
|
+
enum: string[];
|
|
215
|
+
};
|
|
216
|
+
value: {
|
|
217
|
+
type: string;
|
|
218
|
+
minimum: number;
|
|
219
|
+
};
|
|
220
|
+
requested: {
|
|
221
|
+
type: string;
|
|
222
|
+
minimum: number;
|
|
223
|
+
};
|
|
224
|
+
effective: {
|
|
225
|
+
type: string;
|
|
226
|
+
minimum: number;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
attempts: {
|
|
234
|
+
readonly type: "array";
|
|
235
|
+
readonly items: {
|
|
236
|
+
type: string;
|
|
237
|
+
additionalProperties: boolean;
|
|
238
|
+
required: string[];
|
|
239
|
+
properties: {
|
|
240
|
+
generation: {
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
readonly additionalProperties: false;
|
|
243
|
+
readonly required: readonly ["clientStyle", "mode", "outcome", "outputExposed", "features"];
|
|
244
|
+
readonly properties: {
|
|
245
|
+
readonly clientStyle: {
|
|
246
|
+
readonly enum: readonly ["generate", "responses", "chat"];
|
|
247
|
+
};
|
|
248
|
+
readonly mode: {
|
|
249
|
+
readonly enum: readonly ["final", "stream"];
|
|
250
|
+
};
|
|
251
|
+
readonly outcome: {
|
|
252
|
+
readonly enum: readonly ["completed", "requires_action", "refused", "incomplete", "failed"];
|
|
253
|
+
};
|
|
254
|
+
readonly outputExposed: {
|
|
255
|
+
readonly type: "boolean";
|
|
256
|
+
};
|
|
257
|
+
readonly adapterRoute: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly minLength: 1;
|
|
260
|
+
readonly maxLength: 128;
|
|
261
|
+
};
|
|
262
|
+
readonly compatibleAdapterVersion: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly minLength: 1;
|
|
265
|
+
readonly maxLength: 128;
|
|
266
|
+
};
|
|
267
|
+
readonly implementation: {
|
|
268
|
+
readonly type: "object";
|
|
269
|
+
readonly additionalProperties: false;
|
|
270
|
+
readonly required: readonly ["id", "version", "contractVersion"];
|
|
271
|
+
readonly properties: {
|
|
272
|
+
readonly id: {
|
|
273
|
+
readonly type: "string";
|
|
274
|
+
readonly minLength: 1;
|
|
275
|
+
readonly maxLength: 128;
|
|
276
|
+
};
|
|
277
|
+
readonly version: {
|
|
278
|
+
readonly type: "string";
|
|
279
|
+
readonly minLength: 1;
|
|
280
|
+
readonly maxLength: 128;
|
|
281
|
+
};
|
|
282
|
+
readonly contractVersion: {
|
|
283
|
+
readonly enum: readonly [1, 2];
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly protocol: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
readonly minLength: 1;
|
|
290
|
+
readonly maxLength: 128;
|
|
291
|
+
};
|
|
292
|
+
readonly features: {
|
|
293
|
+
readonly type: "array";
|
|
294
|
+
readonly items: {
|
|
295
|
+
readonly type: "object";
|
|
296
|
+
readonly additionalProperties: false;
|
|
297
|
+
readonly required: readonly ["feature", "requested", "effective"];
|
|
298
|
+
readonly properties: {
|
|
299
|
+
readonly feature: {
|
|
300
|
+
readonly enum: readonly ["text", "images", "image-detail", "structured-output", "client-tools", "tool-choice", "parallel-tools", "web-search", "reasoning", "sampling", "storage", "continuation", "provider-options", "streaming"];
|
|
301
|
+
};
|
|
302
|
+
readonly requested: {
|
|
303
|
+
readonly type: "boolean";
|
|
304
|
+
};
|
|
305
|
+
readonly effective: {
|
|
306
|
+
readonly enum: readonly ["sent", "omitted", "unknown", "text-context", "buffered"];
|
|
307
|
+
};
|
|
308
|
+
readonly reason: {
|
|
309
|
+
readonly enum: readonly ["unsupported", "unknown-capability", "provider-specific", "continuation-not-portable", "legacy-adapter"];
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
attempt: {
|
|
317
|
+
type: string;
|
|
318
|
+
minimum: number;
|
|
319
|
+
};
|
|
320
|
+
catalogId: {
|
|
321
|
+
type: string;
|
|
322
|
+
minLength: number;
|
|
323
|
+
};
|
|
324
|
+
providerModelId: {
|
|
325
|
+
type: string;
|
|
326
|
+
minLength: number;
|
|
327
|
+
};
|
|
328
|
+
role: {
|
|
329
|
+
enum: string[];
|
|
330
|
+
};
|
|
331
|
+
latencyMs: {
|
|
332
|
+
type: string;
|
|
333
|
+
minimum: number;
|
|
334
|
+
};
|
|
335
|
+
outcome: {
|
|
336
|
+
enum: string[];
|
|
337
|
+
};
|
|
338
|
+
providerRequestStarted: {
|
|
339
|
+
type: string;
|
|
340
|
+
};
|
|
341
|
+
effective: {
|
|
342
|
+
type: string;
|
|
343
|
+
additionalProperties: boolean;
|
|
344
|
+
properties: {
|
|
345
|
+
reasoning: {
|
|
346
|
+
$ref: string;
|
|
347
|
+
};
|
|
348
|
+
requestedEffort: {
|
|
349
|
+
type: string;
|
|
350
|
+
minLength: number;
|
|
351
|
+
};
|
|
352
|
+
effectiveEffort: {
|
|
353
|
+
type: string;
|
|
354
|
+
minLength: number;
|
|
355
|
+
};
|
|
356
|
+
profileDefaultMaxOutputTokens: {
|
|
357
|
+
type: string;
|
|
358
|
+
minimum: number;
|
|
359
|
+
};
|
|
360
|
+
slotDefaultMaxOutputTokens: {
|
|
361
|
+
type: string;
|
|
362
|
+
minimum: number;
|
|
363
|
+
};
|
|
364
|
+
maxOutputTokens: {
|
|
365
|
+
type: string;
|
|
366
|
+
minimum: number;
|
|
367
|
+
};
|
|
368
|
+
appliedCaps: {
|
|
369
|
+
type: string;
|
|
370
|
+
items: {
|
|
371
|
+
type: string;
|
|
372
|
+
additionalProperties: boolean;
|
|
373
|
+
required: string[];
|
|
374
|
+
properties: {
|
|
375
|
+
source: {
|
|
376
|
+
enum: string[];
|
|
377
|
+
};
|
|
378
|
+
dimension: {
|
|
379
|
+
enum: string[];
|
|
380
|
+
};
|
|
381
|
+
value: {
|
|
382
|
+
type: string;
|
|
383
|
+
minimum: number;
|
|
384
|
+
};
|
|
385
|
+
requested: {
|
|
386
|
+
type: string;
|
|
387
|
+
minimum: number;
|
|
388
|
+
};
|
|
389
|
+
effective: {
|
|
390
|
+
type: string;
|
|
391
|
+
minimum: number;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
errorClass: {
|
|
399
|
+
type: string;
|
|
400
|
+
};
|
|
401
|
+
errorMessage: {
|
|
402
|
+
type: string;
|
|
403
|
+
};
|
|
404
|
+
usage: {
|
|
405
|
+
$ref: string;
|
|
406
|
+
};
|
|
407
|
+
costEstimate: {
|
|
408
|
+
type: string;
|
|
409
|
+
additionalProperties: boolean;
|
|
410
|
+
required: string[];
|
|
411
|
+
properties: {
|
|
412
|
+
currency: {
|
|
413
|
+
type: string;
|
|
414
|
+
minLength: number;
|
|
415
|
+
maxLength: number;
|
|
416
|
+
};
|
|
417
|
+
amount: {
|
|
418
|
+
type: string;
|
|
419
|
+
minimum: number;
|
|
420
|
+
};
|
|
421
|
+
priceRevisionId: {
|
|
422
|
+
$ref: string;
|
|
423
|
+
};
|
|
424
|
+
priceKnown: {
|
|
425
|
+
type: string;
|
|
426
|
+
};
|
|
427
|
+
basis: {
|
|
428
|
+
enum: string[];
|
|
429
|
+
};
|
|
430
|
+
uncertainties: {
|
|
431
|
+
type: string;
|
|
432
|
+
minItems: number;
|
|
433
|
+
uniqueItems: boolean;
|
|
434
|
+
items: {
|
|
435
|
+
enum: string[];
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
allOf: {
|
|
440
|
+
if: {
|
|
441
|
+
required: string[];
|
|
442
|
+
};
|
|
443
|
+
then: {
|
|
444
|
+
properties: {
|
|
445
|
+
priceKnown: {
|
|
446
|
+
const: boolean;
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
not: {
|
|
450
|
+
required: string[];
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
}[];
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
skippedSlots: {
|
|
459
|
+
readonly type: "array";
|
|
460
|
+
readonly items: {
|
|
461
|
+
readonly type: "object";
|
|
462
|
+
readonly additionalProperties: false;
|
|
463
|
+
readonly required: readonly ["slot", "catalogId", "providerModelId", "role", "phase", "reason", "providerRequestStarted"];
|
|
464
|
+
readonly properties: {
|
|
465
|
+
readonly slot: {
|
|
466
|
+
readonly type: "integer";
|
|
467
|
+
readonly minimum: 0;
|
|
468
|
+
};
|
|
469
|
+
readonly catalogId: {
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
readonly minLength: 1;
|
|
472
|
+
readonly maxLength: 128;
|
|
473
|
+
};
|
|
474
|
+
readonly providerModelId: {
|
|
475
|
+
readonly type: "string";
|
|
476
|
+
readonly minLength: 1;
|
|
477
|
+
readonly maxLength: 256;
|
|
478
|
+
};
|
|
479
|
+
readonly role: {
|
|
480
|
+
readonly enum: readonly ["primary", "fallback"];
|
|
481
|
+
};
|
|
482
|
+
readonly phase: {
|
|
483
|
+
readonly enum: readonly ["preflight", "execution"];
|
|
484
|
+
};
|
|
485
|
+
readonly providerRequestStarted: {
|
|
486
|
+
readonly type: "boolean";
|
|
487
|
+
};
|
|
488
|
+
readonly reason: {
|
|
489
|
+
readonly enum: readonly ["retired", "adapter-missing", "adapter-provider", "adapter-version", "text-output", "input-limit", "credential-unavailable", "model-unavailable", "continuation-not-portable"];
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
usage: {
|
|
495
|
+
readonly $ref: "https://techis.dev/ai/contracts/common.schema.json#/definitions/usageDimensions";
|
|
496
|
+
};
|
|
497
|
+
costEstimate: {
|
|
498
|
+
type: string;
|
|
499
|
+
additionalProperties: boolean;
|
|
500
|
+
required: string[];
|
|
501
|
+
properties: {
|
|
502
|
+
currency: {
|
|
503
|
+
type: string;
|
|
504
|
+
minLength: number;
|
|
505
|
+
maxLength: number;
|
|
506
|
+
};
|
|
507
|
+
amount: {
|
|
508
|
+
type: string;
|
|
509
|
+
minimum: number;
|
|
510
|
+
};
|
|
511
|
+
priceRevisionId: {
|
|
512
|
+
$ref: string;
|
|
513
|
+
};
|
|
514
|
+
priceKnown: {
|
|
515
|
+
type: string;
|
|
516
|
+
};
|
|
517
|
+
basis: {
|
|
518
|
+
enum: string[];
|
|
519
|
+
};
|
|
520
|
+
uncertainties: {
|
|
521
|
+
type: string;
|
|
522
|
+
minItems: number;
|
|
523
|
+
uniqueItems: boolean;
|
|
524
|
+
items: {
|
|
525
|
+
enum: string[];
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
allOf: {
|
|
530
|
+
if: {
|
|
531
|
+
required: string[];
|
|
532
|
+
};
|
|
533
|
+
then: {
|
|
534
|
+
properties: {
|
|
535
|
+
priceKnown: {
|
|
536
|
+
const: boolean;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
not: {
|
|
540
|
+
required: string[];
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
}[];
|
|
544
|
+
};
|
|
545
|
+
latencyMs: {
|
|
546
|
+
readonly type: "integer";
|
|
547
|
+
readonly minimum: 0;
|
|
548
|
+
};
|
|
549
|
+
fallbackUsed: {
|
|
550
|
+
readonly type: "boolean";
|
|
551
|
+
};
|
|
552
|
+
error: {
|
|
553
|
+
readonly type: "object";
|
|
554
|
+
readonly additionalProperties: false;
|
|
555
|
+
readonly required: readonly ["code", "message"];
|
|
556
|
+
readonly properties: {
|
|
557
|
+
readonly code: {
|
|
558
|
+
readonly type: "string";
|
|
559
|
+
readonly minLength: 1;
|
|
560
|
+
};
|
|
561
|
+
readonly message: {
|
|
562
|
+
readonly type: "string";
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
warnings: {
|
|
567
|
+
readonly type: "array";
|
|
568
|
+
readonly items: {
|
|
569
|
+
readonly type: "string";
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
completedAt: {
|
|
573
|
+
readonly $ref: "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime";
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
type: "object";
|
|
577
|
+
additionalProperties: false;
|
|
578
|
+
};
|
|
579
|
+
//# sourceMappingURL=profile-receipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-receipt.d.ts","sourceRoot":"","sources":["../../src/schemas/profile-receipt.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,0EAAyD,CAAC;AACtG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBzC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { nativeExecutionReceiptSchema } from "./native-receipt.js";
|
|
2
|
+
import { SCHEMA_BASE } from "./core.js";
|
|
3
|
+
const { workspaceId, configurationId, configurationRevision, ...properties } = nativeExecutionReceiptSchema.properties;
|
|
4
|
+
export const profileExecutionReceiptSchemaId = `${SCHEMA_BASE}/profile-execution-receipt.schema.json`;
|
|
5
|
+
export const profileExecutionReceiptSchema = {
|
|
6
|
+
...nativeExecutionReceiptSchema,
|
|
7
|
+
$id: profileExecutionReceiptSchemaId,
|
|
8
|
+
allOf: [{}],
|
|
9
|
+
required: [
|
|
10
|
+
...nativeExecutionReceiptSchema.required.filter(key => !["workspaceId", "configurationId", "configurationRevision"].includes(key)),
|
|
11
|
+
"generation", "profileSnapshotRevision",
|
|
12
|
+
],
|
|
13
|
+
properties: {
|
|
14
|
+
...properties,
|
|
15
|
+
schemaVersion: { const: 5 },
|
|
16
|
+
kind: { const: "profile-execution-receipt" },
|
|
17
|
+
profileSnapshotRevision: { type: "string", pattern: "^[a-f0-9]{64}$" },
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=profile-receipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-receipt.js","sourceRoot":"","sources":["../../src/schemas/profile-receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAAE,GAAG,UAAU,EAAE,GAAG,4BAA4B,CAAC,UAAU,CAAC;AACvH,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAG,WAAW,wCAAwC,CAAC;AACtG,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,GAAG,4BAA4B;IAC/B,GAAG,EAAE,+BAA+B;IACpC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,QAAQ,EAAE;QACR,GAAG,4BAA4B,CAAC,QAAQ,CAAC,MAAM,CAC7C,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE,iBAAiB,EAAE,uBAAuB,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAClF;QACD,YAAY,EAAE,yBAAyB;KACxC;IACD,UAAU,EAAE;QACV,GAAG,UAAU;QACb,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;QAC3B,IAAI,EAAE,EAAE,KAAK,EAAE,2BAA2B,EAAE;QAC5C,uBAAuB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE;KACvE;CACF,CAAC"}
|