@kaana.ai/contracts 0.0.0-stage → 4.4.0
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/LICENSE +673 -0
- package/NOTICE +21 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +29 -0
- package/dist/internal/attribution.d.ts +116 -0
- package/dist/internal/attribution.js +82 -0
- package/dist/internal/canonical.d.ts +31 -0
- package/dist/internal/canonical.js +57 -0
- package/dist/internal/catalogue.d.ts +1059 -0
- package/dist/internal/catalogue.js +389 -0
- package/dist/internal/credentialControl.d.ts +329 -0
- package/dist/internal/credentialControl.js +256 -0
- package/dist/internal/decisions.d.ts +245 -0
- package/dist/internal/decisions.js +69 -0
- package/dist/internal/economics.d.ts +27 -0
- package/dist/internal/economics.js +26 -0
- package/dist/internal/embeddings.d.ts +164 -0
- package/dist/internal/embeddings.js +59 -0
- package/dist/internal/errors.d.ts +185 -0
- package/dist/internal/errors.js +211 -0
- package/dist/internal/grant.d.ts +699 -0
- package/dist/internal/grant.js +445 -0
- package/dist/internal/identifiers.d.ts +63 -0
- package/dist/internal/identifiers.js +65 -0
- package/dist/internal/privateAutoExecution.d.ts +158 -0
- package/dist/internal/privateAutoExecution.js +188 -0
- package/dist/internal/realtime.d.ts +1005 -0
- package/dist/internal/realtime.js +187 -0
- package/dist/internal/request.d.ts +1079 -0
- package/dist/internal/request.js +404 -0
- package/dist/internal/routing.d.ts +90 -0
- package/dist/internal/routing.js +139 -0
- package/dist/internal/scopedExecution.d.ts +74 -0
- package/dist/internal/scopedExecution.js +61 -0
- package/dist/internal/settlement.d.ts +205 -0
- package/dist/internal/settlement.js +71 -0
- package/dist/internal/streamEvents.d.ts +422 -0
- package/dist/internal/streamEvents.js +171 -0
- package/dist/internal/usage.d.ts +127 -0
- package/dist/internal/usage.js +109 -0
- package/dist/internal.d.ts +30 -0
- package/dist/internal.js +30 -0
- package/dist/public/audio.d.ts +347 -0
- package/dist/public/audio.js +236 -0
- package/dist/public/audioFormats.d.ts +64 -0
- package/dist/public/audioFormats.js +60 -0
- package/dist/public/catalogue.d.ts +914 -0
- package/dist/public/catalogue.js +516 -0
- package/dist/public/chatCompletions.d.ts +381 -0
- package/dist/public/chatCompletions.js +321 -0
- package/dist/public/decisions.d.ts +182 -0
- package/dist/public/decisions.js +257 -0
- package/dist/public/embeddings.d.ts +34 -0
- package/dist/public/embeddings.js +66 -0
- package/dist/public/errors.d.ts +195 -0
- package/dist/public/errors.js +274 -0
- package/dist/public/generations.d.ts +330 -0
- package/dist/public/generations.js +121 -0
- package/dist/public/identifiers.d.ts +139 -0
- package/dist/public/identifiers.js +160 -0
- package/dist/public/images.d.ts +36 -0
- package/dist/public/images.js +36 -0
- package/dist/public/messages.d.ts +297 -0
- package/dist/public/messages.js +251 -0
- package/dist/public/money.d.ts +308 -0
- package/dist/public/money.js +237 -0
- package/dist/public/policy.d.ts +19 -0
- package/dist/public/policy.js +20 -0
- package/dist/public/realtime.d.ts +2006 -0
- package/dist/public/realtime.js +797 -0
- package/dist/public/responses.d.ts +253 -0
- package/dist/public/responses.js +95 -0
- package/dist/public/streamEvents.d.ts +372 -0
- package/dist/public/streamEvents.js +157 -0
- package/dist/public/version.d.ts +184 -0
- package/dist/public/version.js +184 -0
- package/openapi.json +6967 -0
- package/package.json +44 -4
- package/README.md +0 -3
|
@@ -0,0 +1,1059 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operational catalogue Oxy and Kaana share: deployments, providers and
|
|
3
|
+
* routing profiles. None of it is public: it names who serves a route.
|
|
4
|
+
*
|
|
5
|
+
* Moved from `@oxy.so/contracts` 4.12.0 (`src/inference/catalogue.ts`) by Kaana ADR 0002.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/**
|
|
9
|
+
* Who a route may be served to. Availability to an official Oxy product never
|
|
10
|
+
* implies permission to resell the same provider/model publicly, which is why
|
|
11
|
+
* this is an explicit scope on the route rather than a boolean derived from
|
|
12
|
+
* "it works".
|
|
13
|
+
*/
|
|
14
|
+
export declare const availabilityScopeSchema: z.ZodEnum<{
|
|
15
|
+
platform_internal: "platform_internal";
|
|
16
|
+
public_payg: "public_payg";
|
|
17
|
+
enterprise: "enterprise";
|
|
18
|
+
byok_only: "byok_only";
|
|
19
|
+
oxy_hosted: "oxy_hosted";
|
|
20
|
+
}>;
|
|
21
|
+
/** The commercial basis on which Oxy may serve a route. */
|
|
22
|
+
export declare const commercialPermissionSchema: z.ZodEnum<{
|
|
23
|
+
standard_application_use: "standard_application_use";
|
|
24
|
+
public_resale_approved: "public_resale_approved";
|
|
25
|
+
wholesale_contract: "wholesale_contract";
|
|
26
|
+
customer_byok: "customer_byok";
|
|
27
|
+
open_weight_hosting: "open_weight_hosting";
|
|
28
|
+
}>;
|
|
29
|
+
/** Who released a model. Never a provider, and never a routing profile. */
|
|
30
|
+
export declare const modelPublisherSchema: z.ZodObject<{
|
|
31
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
32
|
+
publisherId: z.ZodString;
|
|
33
|
+
slug: z.ZodString;
|
|
34
|
+
displayName: z.ZodString;
|
|
35
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
/**
|
|
39
|
+
* A model: the long-lived product identity `<publisher>/<model>`.
|
|
40
|
+
*
|
|
41
|
+
* Carries no provider, no region, no price and no availability — those belong
|
|
42
|
+
* to a DEPLOYMENT, because the same model is served on several routes whose
|
|
43
|
+
* answers to those questions differ.
|
|
44
|
+
*/
|
|
45
|
+
export declare const catalogueModelSchema: z.ZodObject<{
|
|
46
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
47
|
+
modelId: z.ZodString;
|
|
48
|
+
publisher: z.ZodString;
|
|
49
|
+
slug: z.ZodString;
|
|
50
|
+
displayName: z.ZodString;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52
|
+
capabilities: z.ZodObject<{
|
|
53
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
54
|
+
text: "text";
|
|
55
|
+
audio: "audio";
|
|
56
|
+
image: "image";
|
|
57
|
+
video: "video";
|
|
58
|
+
embedding: "embedding";
|
|
59
|
+
}>>;
|
|
60
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
61
|
+
text: "text";
|
|
62
|
+
audio: "audio";
|
|
63
|
+
image: "image";
|
|
64
|
+
video: "video";
|
|
65
|
+
embedding: "embedding";
|
|
66
|
+
decisions: "decisions";
|
|
67
|
+
}>>;
|
|
68
|
+
tools: z.ZodBoolean;
|
|
69
|
+
parallelToolCalls: z.ZodBoolean;
|
|
70
|
+
structuredOutput: z.ZodBoolean;
|
|
71
|
+
jsonMode: z.ZodBoolean;
|
|
72
|
+
reasoning: z.ZodBoolean;
|
|
73
|
+
reasoningEfforts: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
74
|
+
low: "low";
|
|
75
|
+
medium: "medium";
|
|
76
|
+
high: "high";
|
|
77
|
+
}>>>;
|
|
78
|
+
streaming: z.ZodBoolean;
|
|
79
|
+
promptCaching: z.ZodBoolean;
|
|
80
|
+
maxContextTokens: z.ZodNumber;
|
|
81
|
+
maxOutputTokens: z.ZodNumber;
|
|
82
|
+
apiFormats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
83
|
+
embeddings: "embeddings";
|
|
84
|
+
decisions: "decisions";
|
|
85
|
+
responses: "responses";
|
|
86
|
+
chat_completions: "chat_completions";
|
|
87
|
+
images_generations: "images_generations";
|
|
88
|
+
audio_transcriptions: "audio_transcriptions";
|
|
89
|
+
audio_speech: "audio_speech";
|
|
90
|
+
rerank: "rerank";
|
|
91
|
+
batches: "batches";
|
|
92
|
+
}>>>;
|
|
93
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
transports: z.ZodArray<z.ZodEnum<{
|
|
95
|
+
websocket: "websocket";
|
|
96
|
+
}>>;
|
|
97
|
+
sessionKinds: z.ZodArray<z.ZodEnum<{
|
|
98
|
+
conversation: "conversation";
|
|
99
|
+
transcription: "transcription";
|
|
100
|
+
translation: "translation";
|
|
101
|
+
}>>;
|
|
102
|
+
inputAudioTranscription: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
audioFormats: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
input: z.ZodArray<z.ZodEnum<{
|
|
105
|
+
pcm16_24khz: "pcm16_24khz";
|
|
106
|
+
g711_ulaw: "g711_ulaw";
|
|
107
|
+
g711_alaw: "g711_alaw";
|
|
108
|
+
}>>;
|
|
109
|
+
output: z.ZodArray<z.ZodEnum<{
|
|
110
|
+
pcm16_24khz: "pcm16_24khz";
|
|
111
|
+
g711_ulaw: "g711_ulaw";
|
|
112
|
+
g711_alaw: "g711_alaw";
|
|
113
|
+
}>>;
|
|
114
|
+
}, z.core.$strict>>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
license: z.ZodObject<{
|
|
118
|
+
licenseId: z.ZodString;
|
|
119
|
+
displayName: z.ZodString;
|
|
120
|
+
url: z.ZodOptional<z.ZodString>;
|
|
121
|
+
commercialUseAllowed: z.ZodBoolean;
|
|
122
|
+
requiresAttribution: z.ZodBoolean;
|
|
123
|
+
acceptableUsePolicyUrl: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
provenance: z.ZodObject<{
|
|
126
|
+
releaseKind: z.ZodEnum<{
|
|
127
|
+
first_party_original: "first_party_original";
|
|
128
|
+
first_party_derived: "first_party_derived";
|
|
129
|
+
open_weight: "open_weight";
|
|
130
|
+
third_party_hosted: "third_party_hosted";
|
|
131
|
+
}>;
|
|
132
|
+
baseModelId: z.ZodOptional<z.ZodString>;
|
|
133
|
+
trainingOrganization: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
knowledgeCutoff: z.ZodOptional<z.ZodString>;
|
|
136
|
+
releasedOn: z.ZodOptional<z.ZodString>;
|
|
137
|
+
currentRevision: z.ZodString;
|
|
138
|
+
deprecation: z.ZodObject<{
|
|
139
|
+
status: z.ZodEnum<{
|
|
140
|
+
active: "active";
|
|
141
|
+
deprecated: "deprecated";
|
|
142
|
+
retired: "retired";
|
|
143
|
+
}>;
|
|
144
|
+
replacementModelReference: z.ZodOptional<z.ZodString>;
|
|
145
|
+
announcedAt: z.ZodOptional<z.ZodString>;
|
|
146
|
+
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
/**
|
|
150
|
+
* An immutable revision of a model.
|
|
151
|
+
*
|
|
152
|
+
* `reference` is the exact string a customer pins (`<publisher>/<model>@<revision>`)
|
|
153
|
+
* and is checked against its parts, so a record cannot claim a reference that
|
|
154
|
+
* resolves elsewhere. Evaluation and safety metadata hang here rather than on
|
|
155
|
+
* the model, because they describe specific weights.
|
|
156
|
+
*/
|
|
157
|
+
export declare const modelRevisionSchema: z.ZodObject<{
|
|
158
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
159
|
+
revisionId: z.ZodString;
|
|
160
|
+
modelId: z.ZodString;
|
|
161
|
+
revision: z.ZodString;
|
|
162
|
+
reference: z.ZodString;
|
|
163
|
+
releasedAt: z.ZodString;
|
|
164
|
+
retiredAt: z.ZodOptional<z.ZodString>;
|
|
165
|
+
artifactDigest: z.ZodOptional<z.ZodString>;
|
|
166
|
+
modelCardUrl: z.ZodOptional<z.ZodString>;
|
|
167
|
+
evaluations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
168
|
+
suite: z.ZodString;
|
|
169
|
+
metric: z.ZodString;
|
|
170
|
+
score: z.ZodString;
|
|
171
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
172
|
+
reportUrl: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strict>>>;
|
|
174
|
+
safety: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
safetyCardUrl: z.ZodOptional<z.ZodString>;
|
|
176
|
+
contentFilteringDefault: z.ZodEnum<{
|
|
177
|
+
none: "none";
|
|
178
|
+
provider_default: "provider_default";
|
|
179
|
+
strict: "strict";
|
|
180
|
+
}>;
|
|
181
|
+
knownLimitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
182
|
+
provenanceMarking: z.ZodEnum<{
|
|
183
|
+
none: "none";
|
|
184
|
+
visible_watermark: "visible_watermark";
|
|
185
|
+
invisible_watermark: "invisible_watermark";
|
|
186
|
+
c2pa: "c2pa";
|
|
187
|
+
}>;
|
|
188
|
+
}, z.core.$strict>>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
/** Who runs the weights for a route. */
|
|
191
|
+
export declare const inferenceProviderSchema: z.ZodObject<{
|
|
192
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
193
|
+
providerId: z.ZodString;
|
|
194
|
+
slug: z.ZodString;
|
|
195
|
+
displayName: z.ZodString;
|
|
196
|
+
kind: z.ZodEnum<{
|
|
197
|
+
oxy_hosted: "oxy_hosted";
|
|
198
|
+
customer_byok: "customer_byok";
|
|
199
|
+
third_party: "third_party";
|
|
200
|
+
}>;
|
|
201
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
202
|
+
statusPageUrl: z.ZodOptional<z.ZodString>;
|
|
203
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
204
|
+
dataPolicy: z.ZodObject<{
|
|
205
|
+
retainsPayloads: z.ZodBoolean;
|
|
206
|
+
retentionDays: z.ZodNumber;
|
|
207
|
+
trainsOnCustomerData: z.ZodBoolean;
|
|
208
|
+
zeroDataRetentionAvailable: z.ZodBoolean;
|
|
209
|
+
subprocessors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
210
|
+
policyUrl: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
/**
|
|
214
|
+
* One concrete servable route: a revision, on a provider, with its attested
|
|
215
|
+
* regions, data policy, availability scope and commercial permission.
|
|
216
|
+
*
|
|
217
|
+
* `regions: []` means the provider supplied no location attestation. It never
|
|
218
|
+
* means global availability: Oxy excludes that route whenever a request carries
|
|
219
|
+
* any explicit regional control, while an unconstrained request may still use it.
|
|
220
|
+
*
|
|
221
|
+
* This is the object a routing policy filters and a route switch names — never
|
|
222
|
+
* a model. Two deployments of the SAME revision are what same-model failover
|
|
223
|
+
* moves between; moving to a deployment of a different revision or model is a
|
|
224
|
+
* cross-model fallback and needs explicit authorization.
|
|
225
|
+
*/
|
|
226
|
+
export declare const modelDeploymentSchema: z.ZodObject<{
|
|
227
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
228
|
+
deploymentId: z.ZodString;
|
|
229
|
+
scopedExecution: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
permitId: z.ZodString;
|
|
231
|
+
idempotencyKey: z.ZodString;
|
|
232
|
+
fixtureSha256: z.ZodString;
|
|
233
|
+
expiresAt: z.ZodString;
|
|
234
|
+
principal: z.ZodObject<{
|
|
235
|
+
accountId: z.ZodString;
|
|
236
|
+
applicationId: z.ZodString;
|
|
237
|
+
credentialId: z.ZodString;
|
|
238
|
+
environment: z.ZodEnum<{
|
|
239
|
+
development: "development";
|
|
240
|
+
staging: "staging";
|
|
241
|
+
production: "production";
|
|
242
|
+
}>;
|
|
243
|
+
}, z.core.$strict>;
|
|
244
|
+
policy: z.ZodObject<{
|
|
245
|
+
routingPolicyId: z.ZodString;
|
|
246
|
+
policyVersion: z.ZodNumber;
|
|
247
|
+
}, z.core.$strict>;
|
|
248
|
+
deploymentId: z.ZodString;
|
|
249
|
+
provider: z.ZodString;
|
|
250
|
+
keyId: z.ZodString;
|
|
251
|
+
modelReference: z.ZodString;
|
|
252
|
+
upstreamModelId: z.ZodString;
|
|
253
|
+
priceVersionId: z.ZodString;
|
|
254
|
+
providerRateCardVersionId: z.ZodString;
|
|
255
|
+
providerSourceVersion: z.ZodString;
|
|
256
|
+
maxCostUsd: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
257
|
+
}, z.core.$strict>>;
|
|
258
|
+
provider: z.ZodString;
|
|
259
|
+
modelReference: z.ZodString;
|
|
260
|
+
regions: z.ZodArray<z.ZodString>;
|
|
261
|
+
dataPolicy: z.ZodObject<{
|
|
262
|
+
retainsPayloads: z.ZodBoolean;
|
|
263
|
+
retentionDays: z.ZodNumber;
|
|
264
|
+
trainsOnCustomerData: z.ZodBoolean;
|
|
265
|
+
zeroDataRetentionAvailable: z.ZodBoolean;
|
|
266
|
+
subprocessors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
267
|
+
policyUrl: z.ZodOptional<z.ZodString>;
|
|
268
|
+
}, z.core.$strict>;
|
|
269
|
+
availabilityScope: z.ZodEnum<{
|
|
270
|
+
platform_internal: "platform_internal";
|
|
271
|
+
public_payg: "public_payg";
|
|
272
|
+
enterprise: "enterprise";
|
|
273
|
+
byok_only: "byok_only";
|
|
274
|
+
oxy_hosted: "oxy_hosted";
|
|
275
|
+
}>;
|
|
276
|
+
commercialPermission: z.ZodEnum<{
|
|
277
|
+
standard_application_use: "standard_application_use";
|
|
278
|
+
public_resale_approved: "public_resale_approved";
|
|
279
|
+
wholesale_contract: "wholesale_contract";
|
|
280
|
+
customer_byok: "customer_byok";
|
|
281
|
+
open_weight_hosting: "open_weight_hosting";
|
|
282
|
+
}>;
|
|
283
|
+
status: z.ZodEnum<{
|
|
284
|
+
active: "active";
|
|
285
|
+
retired: "retired";
|
|
286
|
+
degraded: "degraded";
|
|
287
|
+
disabled: "disabled";
|
|
288
|
+
}>;
|
|
289
|
+
dedicatedCapacity: z.ZodBoolean;
|
|
290
|
+
priceVersionId: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>;
|
|
292
|
+
/**
|
|
293
|
+
* The commercial facts Kaana publishes about ONE deployment on the descriptors
|
|
294
|
+
* it serves to Oxy (`POST /internal/v1/deployments/query` and
|
|
295
|
+
* `/internal/v1/models/query`), from the reviewed file
|
|
296
|
+
* `configs/deployment-commercial.json`. A deployment that is not sold carries
|
|
297
|
+
* no `commercial` at all, which is why the member is optional on the
|
|
298
|
+
* descriptor. New in contract set 4.4.0.
|
|
299
|
+
*
|
|
300
|
+
* `customer_byok` is the commercial basis of a `byok_only` route and of no
|
|
301
|
+
* other: the two say the same thing and may not disagree.
|
|
302
|
+
*/
|
|
303
|
+
export declare const deploymentCommercialSchema: z.ZodObject<{
|
|
304
|
+
availabilityScope: z.ZodEnum<{
|
|
305
|
+
platform_internal: "platform_internal";
|
|
306
|
+
public_payg: "public_payg";
|
|
307
|
+
enterprise: "enterprise";
|
|
308
|
+
byok_only: "byok_only";
|
|
309
|
+
oxy_hosted: "oxy_hosted";
|
|
310
|
+
}>;
|
|
311
|
+
commercialPermission: z.ZodEnum<{
|
|
312
|
+
standard_application_use: "standard_application_use";
|
|
313
|
+
public_resale_approved: "public_resale_approved";
|
|
314
|
+
wholesale_contract: "wholesale_contract";
|
|
315
|
+
customer_byok: "customer_byok";
|
|
316
|
+
open_weight_hosting: "open_weight_hosting";
|
|
317
|
+
}>;
|
|
318
|
+
dedicatedCapacity: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
}, z.core.$strict>;
|
|
320
|
+
/** One candidate a profile may resolve to, and how strongly it is preferred. */
|
|
321
|
+
export declare const routingProfileCandidateSchema: z.ZodObject<{
|
|
322
|
+
modelReference: z.ZodString;
|
|
323
|
+
priority: z.ZodNumber;
|
|
324
|
+
}, z.core.$strict>;
|
|
325
|
+
/**
|
|
326
|
+
* A named strategy for choosing among routes — `auto`, `fast`, `quality`.
|
|
327
|
+
*
|
|
328
|
+
* Not a model: it has no publisher, no revision, no license and no weights, and
|
|
329
|
+
* its slug cannot be written as `<publisher>/<model>`. A request that names a
|
|
330
|
+
* profile is asking Oxy to choose; a request that names a model is not, which is
|
|
331
|
+
* the distinction the "never silently substituted" invariant rests on.
|
|
332
|
+
*/
|
|
333
|
+
export declare const routingProfileSchema: z.ZodObject<{
|
|
334
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
335
|
+
routingProfileId: z.ZodString;
|
|
336
|
+
slug: z.ZodString;
|
|
337
|
+
displayName: z.ZodString;
|
|
338
|
+
description: z.ZodOptional<z.ZodString>;
|
|
339
|
+
optimiseFor: z.ZodEnum<{
|
|
340
|
+
quality: "quality";
|
|
341
|
+
price: "price";
|
|
342
|
+
latency: "latency";
|
|
343
|
+
throughput: "throughput";
|
|
344
|
+
balanced: "balanced";
|
|
345
|
+
}>;
|
|
346
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
347
|
+
modelReference: z.ZodString;
|
|
348
|
+
priority: z.ZodNumber;
|
|
349
|
+
}, z.core.$strict>>;
|
|
350
|
+
isProductPreset: z.ZodBoolean;
|
|
351
|
+
powerLevel: z.ZodOptional<z.ZodEnum<{
|
|
352
|
+
medium: "medium";
|
|
353
|
+
high: "high";
|
|
354
|
+
auto: "auto";
|
|
355
|
+
instant: "instant";
|
|
356
|
+
xhigh: "xhigh";
|
|
357
|
+
pro: "pro";
|
|
358
|
+
ultra: "ultra";
|
|
359
|
+
}>>;
|
|
360
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
low: "low";
|
|
362
|
+
medium: "medium";
|
|
363
|
+
high: "high";
|
|
364
|
+
}>>;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
/**
|
|
367
|
+
* A serving provider as a customer may see it: who ran the request and where.
|
|
368
|
+
*
|
|
369
|
+
* Deliberately has no deployment id, no route id, no health score and no
|
|
370
|
+
* upstream cost — the customer-safe half of the serving boundary, so that
|
|
371
|
+
* exposing attribution can never leak operational topology.
|
|
372
|
+
*/
|
|
373
|
+
export declare const catalogueServingProviderSummarySchema: z.ZodObject<{
|
|
374
|
+
slug: z.ZodString;
|
|
375
|
+
displayName: z.ZodString;
|
|
376
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
377
|
+
dataPolicy: z.ZodObject<{
|
|
378
|
+
retainsPayloads: z.ZodBoolean;
|
|
379
|
+
retentionDays: z.ZodNumber;
|
|
380
|
+
trainsOnCustomerData: z.ZodBoolean;
|
|
381
|
+
zeroDataRetentionAvailable: z.ZodBoolean;
|
|
382
|
+
subprocessors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
383
|
+
policyUrl: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.core.$strict>;
|
|
385
|
+
}, z.core.$strict>;
|
|
386
|
+
/**
|
|
387
|
+
* One entry of the customer-facing catalogue (`GET /v1/models`).
|
|
388
|
+
*
|
|
389
|
+
* A projection, not a container: it repeats the customer-facing fields instead
|
|
390
|
+
* of embedding the operational descriptors, so no internal identifier can reach
|
|
391
|
+
* a customer by being nested one level deeper than anybody looked.
|
|
392
|
+
*/
|
|
393
|
+
export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
394
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
395
|
+
modelId: z.ZodString;
|
|
396
|
+
publisher: z.ZodObject<{
|
|
397
|
+
slug: z.ZodString;
|
|
398
|
+
displayName: z.ZodString;
|
|
399
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
400
|
+
}, z.core.$strict>;
|
|
401
|
+
displayName: z.ZodString;
|
|
402
|
+
description: z.ZodOptional<z.ZodString>;
|
|
403
|
+
currentRevision: z.ZodString;
|
|
404
|
+
availableRevisions: z.ZodArray<z.ZodString>;
|
|
405
|
+
capabilities: z.ZodObject<{
|
|
406
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
407
|
+
text: "text";
|
|
408
|
+
audio: "audio";
|
|
409
|
+
image: "image";
|
|
410
|
+
video: "video";
|
|
411
|
+
embedding: "embedding";
|
|
412
|
+
}>>;
|
|
413
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
414
|
+
text: "text";
|
|
415
|
+
audio: "audio";
|
|
416
|
+
image: "image";
|
|
417
|
+
video: "video";
|
|
418
|
+
embedding: "embedding";
|
|
419
|
+
decisions: "decisions";
|
|
420
|
+
}>>;
|
|
421
|
+
tools: z.ZodBoolean;
|
|
422
|
+
parallelToolCalls: z.ZodBoolean;
|
|
423
|
+
structuredOutput: z.ZodBoolean;
|
|
424
|
+
jsonMode: z.ZodBoolean;
|
|
425
|
+
reasoning: z.ZodBoolean;
|
|
426
|
+
reasoningEfforts: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
427
|
+
low: "low";
|
|
428
|
+
medium: "medium";
|
|
429
|
+
high: "high";
|
|
430
|
+
}>>>;
|
|
431
|
+
streaming: z.ZodBoolean;
|
|
432
|
+
promptCaching: z.ZodBoolean;
|
|
433
|
+
maxContextTokens: z.ZodNumber;
|
|
434
|
+
maxOutputTokens: z.ZodNumber;
|
|
435
|
+
apiFormats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
436
|
+
embeddings: "embeddings";
|
|
437
|
+
decisions: "decisions";
|
|
438
|
+
responses: "responses";
|
|
439
|
+
chat_completions: "chat_completions";
|
|
440
|
+
images_generations: "images_generations";
|
|
441
|
+
audio_transcriptions: "audio_transcriptions";
|
|
442
|
+
audio_speech: "audio_speech";
|
|
443
|
+
rerank: "rerank";
|
|
444
|
+
batches: "batches";
|
|
445
|
+
}>>>;
|
|
446
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
447
|
+
transports: z.ZodArray<z.ZodEnum<{
|
|
448
|
+
websocket: "websocket";
|
|
449
|
+
}>>;
|
|
450
|
+
sessionKinds: z.ZodArray<z.ZodEnum<{
|
|
451
|
+
conversation: "conversation";
|
|
452
|
+
transcription: "transcription";
|
|
453
|
+
translation: "translation";
|
|
454
|
+
}>>;
|
|
455
|
+
inputAudioTranscription: z.ZodOptional<z.ZodBoolean>;
|
|
456
|
+
audioFormats: z.ZodOptional<z.ZodObject<{
|
|
457
|
+
input: z.ZodArray<z.ZodEnum<{
|
|
458
|
+
pcm16_24khz: "pcm16_24khz";
|
|
459
|
+
g711_ulaw: "g711_ulaw";
|
|
460
|
+
g711_alaw: "g711_alaw";
|
|
461
|
+
}>>;
|
|
462
|
+
output: z.ZodArray<z.ZodEnum<{
|
|
463
|
+
pcm16_24khz: "pcm16_24khz";
|
|
464
|
+
g711_ulaw: "g711_ulaw";
|
|
465
|
+
g711_alaw: "g711_alaw";
|
|
466
|
+
}>>;
|
|
467
|
+
}, z.core.$strict>>;
|
|
468
|
+
}, z.core.$strict>>;
|
|
469
|
+
}, z.core.$strict>;
|
|
470
|
+
license: z.ZodObject<{
|
|
471
|
+
licenseId: z.ZodString;
|
|
472
|
+
displayName: z.ZodString;
|
|
473
|
+
url: z.ZodOptional<z.ZodString>;
|
|
474
|
+
commercialUseAllowed: z.ZodBoolean;
|
|
475
|
+
requiresAttribution: z.ZodBoolean;
|
|
476
|
+
acceptableUsePolicyUrl: z.ZodOptional<z.ZodString>;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
provenance: z.ZodObject<{
|
|
479
|
+
releaseKind: z.ZodEnum<{
|
|
480
|
+
first_party_original: "first_party_original";
|
|
481
|
+
first_party_derived: "first_party_derived";
|
|
482
|
+
open_weight: "open_weight";
|
|
483
|
+
third_party_hosted: "third_party_hosted";
|
|
484
|
+
}>;
|
|
485
|
+
baseModelId: z.ZodOptional<z.ZodString>;
|
|
486
|
+
trainingOrganization: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, z.core.$strict>;
|
|
488
|
+
knowledgeCutoff: z.ZodOptional<z.ZodString>;
|
|
489
|
+
releasedOn: z.ZodOptional<z.ZodString>;
|
|
490
|
+
releasedAt: z.ZodOptional<z.ZodString>;
|
|
491
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
492
|
+
servingProviders: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
493
|
+
slug: z.ZodString;
|
|
494
|
+
displayName: z.ZodString;
|
|
495
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
496
|
+
dataPolicy: z.ZodObject<{
|
|
497
|
+
retainsPayloads: z.ZodBoolean;
|
|
498
|
+
retentionDays: z.ZodNumber;
|
|
499
|
+
trainsOnCustomerData: z.ZodBoolean;
|
|
500
|
+
zeroDataRetentionAvailable: z.ZodBoolean;
|
|
501
|
+
subprocessors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
502
|
+
policyUrl: z.ZodOptional<z.ZodString>;
|
|
503
|
+
}, z.core.$strict>;
|
|
504
|
+
}, z.core.$strict>>>;
|
|
505
|
+
dataPolicy: z.ZodObject<{
|
|
506
|
+
retainsPayloads: z.ZodBoolean;
|
|
507
|
+
retentionDays: z.ZodNumber;
|
|
508
|
+
trainsOnCustomerData: z.ZodBoolean;
|
|
509
|
+
zeroDataRetentionAvailable: z.ZodBoolean;
|
|
510
|
+
subprocessors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
511
|
+
policyUrl: z.ZodOptional<z.ZodString>;
|
|
512
|
+
}, z.core.$strict>;
|
|
513
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
514
|
+
priceVersionId: z.ZodString;
|
|
515
|
+
currency: z.ZodString;
|
|
516
|
+
unitPrices: z.ZodArray<z.ZodObject<{
|
|
517
|
+
unit: z.ZodEnum<{
|
|
518
|
+
input_tokens: "input_tokens";
|
|
519
|
+
cached_input_tokens: "cached_input_tokens";
|
|
520
|
+
output_tokens: "output_tokens";
|
|
521
|
+
reasoning_tokens: "reasoning_tokens";
|
|
522
|
+
requests: "requests";
|
|
523
|
+
images: "images";
|
|
524
|
+
audio_input_milliseconds: "audio_input_milliseconds";
|
|
525
|
+
audio_output_milliseconds: "audio_output_milliseconds";
|
|
526
|
+
video_milliseconds: "video_milliseconds";
|
|
527
|
+
characters: "characters";
|
|
528
|
+
embeddings: "embeddings";
|
|
529
|
+
audio_input_tokens: "audio_input_tokens";
|
|
530
|
+
cached_audio_input_tokens: "cached_audio_input_tokens";
|
|
531
|
+
audio_output_tokens: "audio_output_tokens";
|
|
532
|
+
session_milliseconds: "session_milliseconds";
|
|
533
|
+
input_transcription_milliseconds: "input_transcription_milliseconds";
|
|
534
|
+
}>;
|
|
535
|
+
amount: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
536
|
+
per: z.ZodNumber;
|
|
537
|
+
currency: z.ZodString;
|
|
538
|
+
}, z.core.$strict>>;
|
|
539
|
+
}, z.core.$strict>>;
|
|
540
|
+
availabilityScope: z.ZodOptional<z.ZodEnum<{
|
|
541
|
+
platform_internal: "platform_internal";
|
|
542
|
+
public_payg: "public_payg";
|
|
543
|
+
enterprise: "enterprise";
|
|
544
|
+
byok_only: "byok_only";
|
|
545
|
+
oxy_hosted: "oxy_hosted";
|
|
546
|
+
}>>;
|
|
547
|
+
commercialPermission: z.ZodOptional<z.ZodEnum<{
|
|
548
|
+
standard_application_use: "standard_application_use";
|
|
549
|
+
public_resale_approved: "public_resale_approved";
|
|
550
|
+
wholesale_contract: "wholesale_contract";
|
|
551
|
+
customer_byok: "customer_byok";
|
|
552
|
+
open_weight_hosting: "open_weight_hosting";
|
|
553
|
+
}>>;
|
|
554
|
+
deprecation: z.ZodObject<{
|
|
555
|
+
status: z.ZodEnum<{
|
|
556
|
+
active: "active";
|
|
557
|
+
deprecated: "deprecated";
|
|
558
|
+
retired: "retired";
|
|
559
|
+
}>;
|
|
560
|
+
replacementModelReference: z.ZodOptional<z.ZodString>;
|
|
561
|
+
announcedAt: z.ZodOptional<z.ZodString>;
|
|
562
|
+
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
563
|
+
}, z.core.$strict>;
|
|
564
|
+
evaluations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
565
|
+
suite: z.ZodString;
|
|
566
|
+
metric: z.ZodString;
|
|
567
|
+
score: z.ZodString;
|
|
568
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
569
|
+
reportUrl: z.ZodOptional<z.ZodString>;
|
|
570
|
+
}, z.core.$strict>>>;
|
|
571
|
+
safety: z.ZodOptional<z.ZodObject<{
|
|
572
|
+
safetyCardUrl: z.ZodOptional<z.ZodString>;
|
|
573
|
+
contentFilteringDefault: z.ZodEnum<{
|
|
574
|
+
none: "none";
|
|
575
|
+
provider_default: "provider_default";
|
|
576
|
+
strict: "strict";
|
|
577
|
+
}>;
|
|
578
|
+
knownLimitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
579
|
+
provenanceMarking: z.ZodEnum<{
|
|
580
|
+
none: "none";
|
|
581
|
+
visible_watermark: "visible_watermark";
|
|
582
|
+
invisible_watermark: "invisible_watermark";
|
|
583
|
+
c2pa: "c2pa";
|
|
584
|
+
}>;
|
|
585
|
+
}, z.core.$strict>>;
|
|
586
|
+
modelCardUrl: z.ZodOptional<z.ZodString>;
|
|
587
|
+
powerClass: z.ZodOptional<z.ZodEnum<{
|
|
588
|
+
medium: "medium";
|
|
589
|
+
high: "high";
|
|
590
|
+
instant: "instant";
|
|
591
|
+
pro: "pro";
|
|
592
|
+
ultra: "ultra";
|
|
593
|
+
}>>;
|
|
594
|
+
}, z.core.$strip>;
|
|
595
|
+
/**
|
|
596
|
+
* One model as Kaana DECLARES it in `configs/public-catalogue.json` (Kaana ADR
|
|
597
|
+
* 0002, amendment 2026-10-15): the public `modelSchema` without the three
|
|
598
|
+
* fields Kaana fills from its inventory when it serves `GET /v1/models`
|
|
599
|
+
* (`schemaVersion`, `currentRevision`, `availableRevisions`), plus the audience
|
|
600
|
+
* allowed to see it.
|
|
601
|
+
*
|
|
602
|
+
* Strict on purpose. A declared model carries no serving provider, no
|
|
603
|
+
* availability scope and no commercial permission: those are properties of a
|
|
604
|
+
* route, decided by the signed inventory and by Oxy's grant, and a file that
|
|
605
|
+
* named them would publish an operator on the customer surface.
|
|
606
|
+
*/
|
|
607
|
+
export declare const declaredModelSchema: z.ZodObject<{
|
|
608
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
609
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
610
|
+
id: z.ZodString;
|
|
611
|
+
name: z.ZodString;
|
|
612
|
+
languages: z.ZodArray<z.ZodString>;
|
|
613
|
+
gender: z.ZodOptional<z.ZodEnum<{
|
|
614
|
+
female: "female";
|
|
615
|
+
male: "male";
|
|
616
|
+
neutral: "neutral";
|
|
617
|
+
}>>;
|
|
618
|
+
}, z.core.$strict>>;
|
|
619
|
+
languages: z.ZodArray<z.ZodString>;
|
|
620
|
+
audioFormats: z.ZodObject<{
|
|
621
|
+
input: z.ZodArray<z.ZodEnum<{
|
|
622
|
+
"audio/mpeg": "audio/mpeg";
|
|
623
|
+
"audio/wav": "audio/wav";
|
|
624
|
+
"audio/ogg": "audio/ogg";
|
|
625
|
+
"audio/aac": "audio/aac";
|
|
626
|
+
"audio/flac": "audio/flac";
|
|
627
|
+
"audio/pcm": "audio/pcm";
|
|
628
|
+
"audio/mp4": "audio/mp4";
|
|
629
|
+
"audio/webm": "audio/webm";
|
|
630
|
+
}>>;
|
|
631
|
+
output: z.ZodArray<z.ZodEnum<{
|
|
632
|
+
"audio/mpeg": "audio/mpeg";
|
|
633
|
+
"audio/wav": "audio/wav";
|
|
634
|
+
"audio/ogg": "audio/ogg";
|
|
635
|
+
"audio/aac": "audio/aac";
|
|
636
|
+
"audio/flac": "audio/flac";
|
|
637
|
+
"audio/pcm": "audio/pcm";
|
|
638
|
+
}>>;
|
|
639
|
+
}, z.core.$strict>;
|
|
640
|
+
speed: z.ZodOptional<z.ZodObject<{
|
|
641
|
+
min: z.ZodNumber;
|
|
642
|
+
max: z.ZodNumber;
|
|
643
|
+
}, z.core.$strict>>;
|
|
644
|
+
maxInputCharacters: z.ZodOptional<z.ZodNumber>;
|
|
645
|
+
}, z.core.$strict>>;
|
|
646
|
+
displayName: z.ZodString;
|
|
647
|
+
modelId: z.ZodString;
|
|
648
|
+
publisher: z.ZodObject<{
|
|
649
|
+
slug: z.ZodString;
|
|
650
|
+
displayName: z.ZodString;
|
|
651
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$strict>;
|
|
653
|
+
capabilities: z.ZodObject<{
|
|
654
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
655
|
+
text: "text";
|
|
656
|
+
audio: "audio";
|
|
657
|
+
image: "image";
|
|
658
|
+
video: "video";
|
|
659
|
+
embedding: "embedding";
|
|
660
|
+
}>>;
|
|
661
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
662
|
+
text: "text";
|
|
663
|
+
audio: "audio";
|
|
664
|
+
image: "image";
|
|
665
|
+
video: "video";
|
|
666
|
+
embedding: "embedding";
|
|
667
|
+
decisions: "decisions";
|
|
668
|
+
}>>;
|
|
669
|
+
tools: z.ZodBoolean;
|
|
670
|
+
parallelToolCalls: z.ZodBoolean;
|
|
671
|
+
structuredOutput: z.ZodBoolean;
|
|
672
|
+
jsonMode: z.ZodBoolean;
|
|
673
|
+
reasoning: z.ZodBoolean;
|
|
674
|
+
reasoningEfforts: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
675
|
+
low: "low";
|
|
676
|
+
medium: "medium";
|
|
677
|
+
high: "high";
|
|
678
|
+
}>>>;
|
|
679
|
+
streaming: z.ZodBoolean;
|
|
680
|
+
promptCaching: z.ZodBoolean;
|
|
681
|
+
maxContextTokens: z.ZodNumber;
|
|
682
|
+
maxOutputTokens: z.ZodNumber;
|
|
683
|
+
apiFormats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
684
|
+
embeddings: "embeddings";
|
|
685
|
+
decisions: "decisions";
|
|
686
|
+
responses: "responses";
|
|
687
|
+
chat_completions: "chat_completions";
|
|
688
|
+
images_generations: "images_generations";
|
|
689
|
+
audio_transcriptions: "audio_transcriptions";
|
|
690
|
+
audio_speech: "audio_speech";
|
|
691
|
+
rerank: "rerank";
|
|
692
|
+
batches: "batches";
|
|
693
|
+
}>>>;
|
|
694
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
695
|
+
transports: z.ZodArray<z.ZodEnum<{
|
|
696
|
+
websocket: "websocket";
|
|
697
|
+
}>>;
|
|
698
|
+
sessionKinds: z.ZodArray<z.ZodEnum<{
|
|
699
|
+
conversation: "conversation";
|
|
700
|
+
transcription: "transcription";
|
|
701
|
+
translation: "translation";
|
|
702
|
+
}>>;
|
|
703
|
+
inputAudioTranscription: z.ZodOptional<z.ZodBoolean>;
|
|
704
|
+
audioFormats: z.ZodOptional<z.ZodObject<{
|
|
705
|
+
input: z.ZodArray<z.ZodEnum<{
|
|
706
|
+
pcm16_24khz: "pcm16_24khz";
|
|
707
|
+
g711_ulaw: "g711_ulaw";
|
|
708
|
+
g711_alaw: "g711_alaw";
|
|
709
|
+
}>>;
|
|
710
|
+
output: z.ZodArray<z.ZodEnum<{
|
|
711
|
+
pcm16_24khz: "pcm16_24khz";
|
|
712
|
+
g711_ulaw: "g711_ulaw";
|
|
713
|
+
g711_alaw: "g711_alaw";
|
|
714
|
+
}>>;
|
|
715
|
+
}, z.core.$strict>>;
|
|
716
|
+
}, z.core.$strict>>;
|
|
717
|
+
}, z.core.$strict>;
|
|
718
|
+
license: z.ZodObject<{
|
|
719
|
+
licenseId: z.ZodString;
|
|
720
|
+
displayName: z.ZodString;
|
|
721
|
+
url: z.ZodOptional<z.ZodString>;
|
|
722
|
+
commercialUseAllowed: z.ZodBoolean;
|
|
723
|
+
requiresAttribution: z.ZodBoolean;
|
|
724
|
+
acceptableUsePolicyUrl: z.ZodOptional<z.ZodString>;
|
|
725
|
+
}, z.core.$strict>;
|
|
726
|
+
provenance: z.ZodObject<{
|
|
727
|
+
releaseKind: z.ZodEnum<{
|
|
728
|
+
first_party_original: "first_party_original";
|
|
729
|
+
first_party_derived: "first_party_derived";
|
|
730
|
+
open_weight: "open_weight";
|
|
731
|
+
third_party_hosted: "third_party_hosted";
|
|
732
|
+
}>;
|
|
733
|
+
baseModelId: z.ZodOptional<z.ZodString>;
|
|
734
|
+
trainingOrganization: z.ZodOptional<z.ZodString>;
|
|
735
|
+
}, z.core.$strict>;
|
|
736
|
+
dataPolicy: z.ZodObject<{
|
|
737
|
+
retainsPayloads: z.ZodBoolean;
|
|
738
|
+
retentionDays: z.ZodNumber;
|
|
739
|
+
trainsOnCustomerData: z.ZodBoolean;
|
|
740
|
+
zeroDataRetentionAvailable: z.ZodBoolean;
|
|
741
|
+
subprocessors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
742
|
+
policyUrl: z.ZodOptional<z.ZodString>;
|
|
743
|
+
}, z.core.$strict>;
|
|
744
|
+
deprecation: z.ZodObject<{
|
|
745
|
+
status: z.ZodEnum<{
|
|
746
|
+
active: "active";
|
|
747
|
+
deprecated: "deprecated";
|
|
748
|
+
retired: "retired";
|
|
749
|
+
}>;
|
|
750
|
+
replacementModelReference: z.ZodOptional<z.ZodString>;
|
|
751
|
+
announcedAt: z.ZodOptional<z.ZodString>;
|
|
752
|
+
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
753
|
+
}, z.core.$strict>;
|
|
754
|
+
description: z.ZodOptional<z.ZodString>;
|
|
755
|
+
knowledgeCutoff: z.ZodOptional<z.ZodString>;
|
|
756
|
+
releasedOn: z.ZodOptional<z.ZodString>;
|
|
757
|
+
releasedAt: z.ZodOptional<z.ZodString>;
|
|
758
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
759
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
760
|
+
priceVersionId: z.ZodString;
|
|
761
|
+
currency: z.ZodString;
|
|
762
|
+
unitPrices: z.ZodArray<z.ZodObject<{
|
|
763
|
+
unit: z.ZodEnum<{
|
|
764
|
+
input_tokens: "input_tokens";
|
|
765
|
+
cached_input_tokens: "cached_input_tokens";
|
|
766
|
+
output_tokens: "output_tokens";
|
|
767
|
+
reasoning_tokens: "reasoning_tokens";
|
|
768
|
+
requests: "requests";
|
|
769
|
+
images: "images";
|
|
770
|
+
audio_input_milliseconds: "audio_input_milliseconds";
|
|
771
|
+
audio_output_milliseconds: "audio_output_milliseconds";
|
|
772
|
+
video_milliseconds: "video_milliseconds";
|
|
773
|
+
characters: "characters";
|
|
774
|
+
embeddings: "embeddings";
|
|
775
|
+
audio_input_tokens: "audio_input_tokens";
|
|
776
|
+
cached_audio_input_tokens: "cached_audio_input_tokens";
|
|
777
|
+
audio_output_tokens: "audio_output_tokens";
|
|
778
|
+
session_milliseconds: "session_milliseconds";
|
|
779
|
+
input_transcription_milliseconds: "input_transcription_milliseconds";
|
|
780
|
+
}>;
|
|
781
|
+
amount: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
782
|
+
per: z.ZodNumber;
|
|
783
|
+
currency: z.ZodString;
|
|
784
|
+
}, z.core.$strict>>;
|
|
785
|
+
}, z.core.$strict>>;
|
|
786
|
+
evaluations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
787
|
+
suite: z.ZodString;
|
|
788
|
+
metric: z.ZodString;
|
|
789
|
+
score: z.ZodString;
|
|
790
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
791
|
+
reportUrl: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strict>>>;
|
|
793
|
+
safety: z.ZodOptional<z.ZodObject<{
|
|
794
|
+
safetyCardUrl: z.ZodOptional<z.ZodString>;
|
|
795
|
+
contentFilteringDefault: z.ZodEnum<{
|
|
796
|
+
none: "none";
|
|
797
|
+
provider_default: "provider_default";
|
|
798
|
+
strict: "strict";
|
|
799
|
+
}>;
|
|
800
|
+
knownLimitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
801
|
+
provenanceMarking: z.ZodEnum<{
|
|
802
|
+
none: "none";
|
|
803
|
+
visible_watermark: "visible_watermark";
|
|
804
|
+
invisible_watermark: "invisible_watermark";
|
|
805
|
+
c2pa: "c2pa";
|
|
806
|
+
}>;
|
|
807
|
+
}, z.core.$strict>>;
|
|
808
|
+
modelCardUrl: z.ZodOptional<z.ZodString>;
|
|
809
|
+
powerClass: z.ZodOptional<z.ZodEnum<{
|
|
810
|
+
medium: "medium";
|
|
811
|
+
high: "high";
|
|
812
|
+
instant: "instant";
|
|
813
|
+
pro: "pro";
|
|
814
|
+
ultra: "ultra";
|
|
815
|
+
}>>;
|
|
816
|
+
audience: z.ZodEnum<{
|
|
817
|
+
platform_internal: "platform_internal";
|
|
818
|
+
public: "public";
|
|
819
|
+
}>;
|
|
820
|
+
}, z.core.$strict>;
|
|
821
|
+
/**
|
|
822
|
+
* The declared catalogue: identity, publisher, licence, provenance, data
|
|
823
|
+
* policy, capabilities, voices and the LIST PRICE per unit of every model
|
|
824
|
+
* Kaana may serve. Kaana is its only source of truth. It is the file
|
|
825
|
+
* `configs/public-catalogue.json`, and the `declaredCatalogue` member of the
|
|
826
|
+
* signed `GET /internal/v1/models` response (contract set 4.3.0), from which
|
|
827
|
+
* Oxy reads the price it rates a grant at. New in contract set 4.3.0.
|
|
828
|
+
*/
|
|
829
|
+
export declare const declaredCatalogueSchema: z.ZodObject<{
|
|
830
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
831
|
+
models: z.ZodArray<z.ZodObject<{
|
|
832
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
833
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
834
|
+
id: z.ZodString;
|
|
835
|
+
name: z.ZodString;
|
|
836
|
+
languages: z.ZodArray<z.ZodString>;
|
|
837
|
+
gender: z.ZodOptional<z.ZodEnum<{
|
|
838
|
+
female: "female";
|
|
839
|
+
male: "male";
|
|
840
|
+
neutral: "neutral";
|
|
841
|
+
}>>;
|
|
842
|
+
}, z.core.$strict>>;
|
|
843
|
+
languages: z.ZodArray<z.ZodString>;
|
|
844
|
+
audioFormats: z.ZodObject<{
|
|
845
|
+
input: z.ZodArray<z.ZodEnum<{
|
|
846
|
+
"audio/mpeg": "audio/mpeg";
|
|
847
|
+
"audio/wav": "audio/wav";
|
|
848
|
+
"audio/ogg": "audio/ogg";
|
|
849
|
+
"audio/aac": "audio/aac";
|
|
850
|
+
"audio/flac": "audio/flac";
|
|
851
|
+
"audio/pcm": "audio/pcm";
|
|
852
|
+
"audio/mp4": "audio/mp4";
|
|
853
|
+
"audio/webm": "audio/webm";
|
|
854
|
+
}>>;
|
|
855
|
+
output: z.ZodArray<z.ZodEnum<{
|
|
856
|
+
"audio/mpeg": "audio/mpeg";
|
|
857
|
+
"audio/wav": "audio/wav";
|
|
858
|
+
"audio/ogg": "audio/ogg";
|
|
859
|
+
"audio/aac": "audio/aac";
|
|
860
|
+
"audio/flac": "audio/flac";
|
|
861
|
+
"audio/pcm": "audio/pcm";
|
|
862
|
+
}>>;
|
|
863
|
+
}, z.core.$strict>;
|
|
864
|
+
speed: z.ZodOptional<z.ZodObject<{
|
|
865
|
+
min: z.ZodNumber;
|
|
866
|
+
max: z.ZodNumber;
|
|
867
|
+
}, z.core.$strict>>;
|
|
868
|
+
maxInputCharacters: z.ZodOptional<z.ZodNumber>;
|
|
869
|
+
}, z.core.$strict>>;
|
|
870
|
+
displayName: z.ZodString;
|
|
871
|
+
modelId: z.ZodString;
|
|
872
|
+
publisher: z.ZodObject<{
|
|
873
|
+
slug: z.ZodString;
|
|
874
|
+
displayName: z.ZodString;
|
|
875
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
876
|
+
}, z.core.$strict>;
|
|
877
|
+
capabilities: z.ZodObject<{
|
|
878
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
879
|
+
text: "text";
|
|
880
|
+
audio: "audio";
|
|
881
|
+
image: "image";
|
|
882
|
+
video: "video";
|
|
883
|
+
embedding: "embedding";
|
|
884
|
+
}>>;
|
|
885
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
886
|
+
text: "text";
|
|
887
|
+
audio: "audio";
|
|
888
|
+
image: "image";
|
|
889
|
+
video: "video";
|
|
890
|
+
embedding: "embedding";
|
|
891
|
+
decisions: "decisions";
|
|
892
|
+
}>>;
|
|
893
|
+
tools: z.ZodBoolean;
|
|
894
|
+
parallelToolCalls: z.ZodBoolean;
|
|
895
|
+
structuredOutput: z.ZodBoolean;
|
|
896
|
+
jsonMode: z.ZodBoolean;
|
|
897
|
+
reasoning: z.ZodBoolean;
|
|
898
|
+
reasoningEfforts: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
899
|
+
low: "low";
|
|
900
|
+
medium: "medium";
|
|
901
|
+
high: "high";
|
|
902
|
+
}>>>;
|
|
903
|
+
streaming: z.ZodBoolean;
|
|
904
|
+
promptCaching: z.ZodBoolean;
|
|
905
|
+
maxContextTokens: z.ZodNumber;
|
|
906
|
+
maxOutputTokens: z.ZodNumber;
|
|
907
|
+
apiFormats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
908
|
+
embeddings: "embeddings";
|
|
909
|
+
decisions: "decisions";
|
|
910
|
+
responses: "responses";
|
|
911
|
+
chat_completions: "chat_completions";
|
|
912
|
+
images_generations: "images_generations";
|
|
913
|
+
audio_transcriptions: "audio_transcriptions";
|
|
914
|
+
audio_speech: "audio_speech";
|
|
915
|
+
rerank: "rerank";
|
|
916
|
+
batches: "batches";
|
|
917
|
+
}>>>;
|
|
918
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
919
|
+
transports: z.ZodArray<z.ZodEnum<{
|
|
920
|
+
websocket: "websocket";
|
|
921
|
+
}>>;
|
|
922
|
+
sessionKinds: z.ZodArray<z.ZodEnum<{
|
|
923
|
+
conversation: "conversation";
|
|
924
|
+
transcription: "transcription";
|
|
925
|
+
translation: "translation";
|
|
926
|
+
}>>;
|
|
927
|
+
inputAudioTranscription: z.ZodOptional<z.ZodBoolean>;
|
|
928
|
+
audioFormats: z.ZodOptional<z.ZodObject<{
|
|
929
|
+
input: z.ZodArray<z.ZodEnum<{
|
|
930
|
+
pcm16_24khz: "pcm16_24khz";
|
|
931
|
+
g711_ulaw: "g711_ulaw";
|
|
932
|
+
g711_alaw: "g711_alaw";
|
|
933
|
+
}>>;
|
|
934
|
+
output: z.ZodArray<z.ZodEnum<{
|
|
935
|
+
pcm16_24khz: "pcm16_24khz";
|
|
936
|
+
g711_ulaw: "g711_ulaw";
|
|
937
|
+
g711_alaw: "g711_alaw";
|
|
938
|
+
}>>;
|
|
939
|
+
}, z.core.$strict>>;
|
|
940
|
+
}, z.core.$strict>>;
|
|
941
|
+
}, z.core.$strict>;
|
|
942
|
+
license: z.ZodObject<{
|
|
943
|
+
licenseId: z.ZodString;
|
|
944
|
+
displayName: z.ZodString;
|
|
945
|
+
url: z.ZodOptional<z.ZodString>;
|
|
946
|
+
commercialUseAllowed: z.ZodBoolean;
|
|
947
|
+
requiresAttribution: z.ZodBoolean;
|
|
948
|
+
acceptableUsePolicyUrl: z.ZodOptional<z.ZodString>;
|
|
949
|
+
}, z.core.$strict>;
|
|
950
|
+
provenance: z.ZodObject<{
|
|
951
|
+
releaseKind: z.ZodEnum<{
|
|
952
|
+
first_party_original: "first_party_original";
|
|
953
|
+
first_party_derived: "first_party_derived";
|
|
954
|
+
open_weight: "open_weight";
|
|
955
|
+
third_party_hosted: "third_party_hosted";
|
|
956
|
+
}>;
|
|
957
|
+
baseModelId: z.ZodOptional<z.ZodString>;
|
|
958
|
+
trainingOrganization: z.ZodOptional<z.ZodString>;
|
|
959
|
+
}, z.core.$strict>;
|
|
960
|
+
dataPolicy: z.ZodObject<{
|
|
961
|
+
retainsPayloads: z.ZodBoolean;
|
|
962
|
+
retentionDays: z.ZodNumber;
|
|
963
|
+
trainsOnCustomerData: z.ZodBoolean;
|
|
964
|
+
zeroDataRetentionAvailable: z.ZodBoolean;
|
|
965
|
+
subprocessors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
966
|
+
policyUrl: z.ZodOptional<z.ZodString>;
|
|
967
|
+
}, z.core.$strict>;
|
|
968
|
+
deprecation: z.ZodObject<{
|
|
969
|
+
status: z.ZodEnum<{
|
|
970
|
+
active: "active";
|
|
971
|
+
deprecated: "deprecated";
|
|
972
|
+
retired: "retired";
|
|
973
|
+
}>;
|
|
974
|
+
replacementModelReference: z.ZodOptional<z.ZodString>;
|
|
975
|
+
announcedAt: z.ZodOptional<z.ZodString>;
|
|
976
|
+
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
977
|
+
}, z.core.$strict>;
|
|
978
|
+
description: z.ZodOptional<z.ZodString>;
|
|
979
|
+
knowledgeCutoff: z.ZodOptional<z.ZodString>;
|
|
980
|
+
releasedOn: z.ZodOptional<z.ZodString>;
|
|
981
|
+
releasedAt: z.ZodOptional<z.ZodString>;
|
|
982
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
983
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
984
|
+
priceVersionId: z.ZodString;
|
|
985
|
+
currency: z.ZodString;
|
|
986
|
+
unitPrices: z.ZodArray<z.ZodObject<{
|
|
987
|
+
unit: z.ZodEnum<{
|
|
988
|
+
input_tokens: "input_tokens";
|
|
989
|
+
cached_input_tokens: "cached_input_tokens";
|
|
990
|
+
output_tokens: "output_tokens";
|
|
991
|
+
reasoning_tokens: "reasoning_tokens";
|
|
992
|
+
requests: "requests";
|
|
993
|
+
images: "images";
|
|
994
|
+
audio_input_milliseconds: "audio_input_milliseconds";
|
|
995
|
+
audio_output_milliseconds: "audio_output_milliseconds";
|
|
996
|
+
video_milliseconds: "video_milliseconds";
|
|
997
|
+
characters: "characters";
|
|
998
|
+
embeddings: "embeddings";
|
|
999
|
+
audio_input_tokens: "audio_input_tokens";
|
|
1000
|
+
cached_audio_input_tokens: "cached_audio_input_tokens";
|
|
1001
|
+
audio_output_tokens: "audio_output_tokens";
|
|
1002
|
+
session_milliseconds: "session_milliseconds";
|
|
1003
|
+
input_transcription_milliseconds: "input_transcription_milliseconds";
|
|
1004
|
+
}>;
|
|
1005
|
+
amount: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
1006
|
+
per: z.ZodNumber;
|
|
1007
|
+
currency: z.ZodString;
|
|
1008
|
+
}, z.core.$strict>>;
|
|
1009
|
+
}, z.core.$strict>>;
|
|
1010
|
+
evaluations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1011
|
+
suite: z.ZodString;
|
|
1012
|
+
metric: z.ZodString;
|
|
1013
|
+
score: z.ZodString;
|
|
1014
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
reportUrl: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
}, z.core.$strict>>>;
|
|
1017
|
+
safety: z.ZodOptional<z.ZodObject<{
|
|
1018
|
+
safetyCardUrl: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
contentFilteringDefault: z.ZodEnum<{
|
|
1020
|
+
none: "none";
|
|
1021
|
+
provider_default: "provider_default";
|
|
1022
|
+
strict: "strict";
|
|
1023
|
+
}>;
|
|
1024
|
+
knownLimitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1025
|
+
provenanceMarking: z.ZodEnum<{
|
|
1026
|
+
none: "none";
|
|
1027
|
+
visible_watermark: "visible_watermark";
|
|
1028
|
+
invisible_watermark: "invisible_watermark";
|
|
1029
|
+
c2pa: "c2pa";
|
|
1030
|
+
}>;
|
|
1031
|
+
}, z.core.$strict>>;
|
|
1032
|
+
modelCardUrl: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
powerClass: z.ZodOptional<z.ZodEnum<{
|
|
1034
|
+
medium: "medium";
|
|
1035
|
+
high: "high";
|
|
1036
|
+
instant: "instant";
|
|
1037
|
+
pro: "pro";
|
|
1038
|
+
ultra: "ultra";
|
|
1039
|
+
}>>;
|
|
1040
|
+
audience: z.ZodEnum<{
|
|
1041
|
+
platform_internal: "platform_internal";
|
|
1042
|
+
public: "public";
|
|
1043
|
+
}>;
|
|
1044
|
+
}, z.core.$strict>>;
|
|
1045
|
+
}, z.core.$strict>;
|
|
1046
|
+
export type DeclaredModel = z.infer<typeof declaredModelSchema>;
|
|
1047
|
+
export type DeclaredCatalogue = z.infer<typeof declaredCatalogueSchema>;
|
|
1048
|
+
export type AvailabilityScope = z.infer<typeof availabilityScopeSchema>;
|
|
1049
|
+
export type CommercialPermission = z.infer<typeof commercialPermissionSchema>;
|
|
1050
|
+
export type DeploymentCommercial = z.infer<typeof deploymentCommercialSchema>;
|
|
1051
|
+
export type ModelPublisher = z.infer<typeof modelPublisherSchema>;
|
|
1052
|
+
export type CatalogueModel = z.infer<typeof catalogueModelSchema>;
|
|
1053
|
+
export type ModelRevision = z.infer<typeof modelRevisionSchema>;
|
|
1054
|
+
export type InferenceProvider = z.infer<typeof inferenceProviderSchema>;
|
|
1055
|
+
export type ModelDeployment = z.infer<typeof modelDeploymentSchema>;
|
|
1056
|
+
export type RoutingProfileCandidate = z.infer<typeof routingProfileCandidateSchema>;
|
|
1057
|
+
export type RoutingProfile = z.infer<typeof routingProfileSchema>;
|
|
1058
|
+
export type CatalogueServingProviderSummary = z.infer<typeof catalogueServingProviderSummarySchema>;
|
|
1059
|
+
export type ModelCatalogueEntry = z.infer<typeof modelCatalogueEntrySchema>;
|