@oxy.so/contracts 4.2.0 → 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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/index.js +72 -4
- package/dist/cjs/inference/catalogue.js +105 -2
- package/dist/cjs/inference/money.js +23 -0
- package/dist/cjs/inference/realtime.js +826 -0
- package/dist/cjs/inference/request.js +34 -11
- package/dist/cjs/inference/streamEvents.js +7 -1
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/stickers.js +151 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/inference/catalogue.js +104 -1
- package/dist/esm/inference/money.js +23 -0
- package/dist/esm/inference/realtime.js +822 -0
- package/dist/esm/inference/request.js +34 -11
- package/dist/esm/inference/streamEvents.js +7 -1
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/stickers.js +148 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +7 -4
- package/dist/types/inference/catalogue.d.ts +299 -10
- package/dist/types/inference/entitlement.d.ts +6 -6
- package/dist/types/inference/inbox.d.ts +2 -2
- package/dist/types/inference/modelDocumentation.d.ts +146 -2
- package/dist/types/inference/money.d.ts +28 -8
- package/dist/types/inference/priceVersion.d.ts +12 -12
- package/dist/types/inference/realtime.d.ts +8012 -0
- package/dist/types/inference/request.d.ts +51 -0
- package/dist/types/inference/routingPolicy.d.ts +7 -7
- package/dist/types/inference/streamEvents.d.ts +28 -16
- package/dist/types/inference/usage.d.ts +28 -28
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/stickers.d.ts +1049 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -74,18 +74,20 @@ export { embeddingVectorSchema, embeddingUsageSchema, embeddingSuccessSchema, em
|
|
|
74
74
|
export type { EmbeddingVector, EmbeddingUsage, EmbeddingSuccess, EmbeddingFailure, EmbeddingResponse, } from './inference/embeddings';
|
|
75
75
|
export { priceVersionStatusSchema, priceVersionSchema, priceSnapshotSchema, } from './inference/priceVersion';
|
|
76
76
|
export type { PriceVersionStatus, PriceVersion, PriceSnapshot } from './inference/priceVersion';
|
|
77
|
-
export { inferenceModalitySchema, reasoningEffortSchema, modelCapabilitiesSchema, modelLicenseSchema, modelProvenanceSchema, inferenceDataPolicySchema, availabilityScopeSchema, commercialPermissionSchema, modelDeprecationSchema, modelEvaluationResultSchema, modelSafetyMetadataSchema, modelPublisherSchema, catalogueModelSchema, modelRevisionSchema, inferenceProviderSchema, modelDeploymentSchema, routingProfileCandidateSchema, routingProfileSchema, cataloguePublisherSummarySchema, catalogueServingProviderSummarySchema, modelCatalogueEntrySchema, } from './inference/catalogue';
|
|
78
|
-
export type { InferenceModality, ReasoningEffort, ModelCapabilities, ModelLicense, ModelProvenance, InferenceDataPolicy, AvailabilityScope, CommercialPermission, ModelDeprecation, ModelEvaluationResult, ModelSafetyMetadata, ModelPublisher, CatalogueModel, ModelRevision, InferenceProvider, ModelDeployment, RoutingProfileCandidate, RoutingProfile, CataloguePublisherSummary, CatalogueServingProviderSummary, ModelCatalogueEntry, } from './inference/catalogue';
|
|
77
|
+
export { inferenceModalitySchema, reasoningEffortSchema, inferenceApiFormatSchema, realtimeSessionKindSchema, realtimeSessionTransportSchema, modelRealtimeCapabilitiesSchema, modelCapabilitiesSchema, modelLicenseSchema, modelProvenanceSchema, inferenceDataPolicySchema, availabilityScopeSchema, commercialPermissionSchema, modelDeprecationSchema, modelEvaluationResultSchema, modelSafetyMetadataSchema, modelPublisherSchema, catalogueModelSchema, modelRevisionSchema, inferenceProviderSchema, modelDeploymentSchema, routingProfileCandidateSchema, routingProfileSchema, cataloguePublisherSummarySchema, catalogueServingProviderSummarySchema, modelCatalogueEntrySchema, } from './inference/catalogue';
|
|
78
|
+
export type { InferenceModality, ReasoningEffort, InferenceApiFormat, RealtimeSessionKind, RealtimeSessionTransport, ModelRealtimeCapabilities, ModelCapabilities, ModelLicense, ModelProvenance, InferenceDataPolicy, AvailabilityScope, CommercialPermission, ModelDeprecation, ModelEvaluationResult, ModelSafetyMetadata, ModelPublisher, CatalogueModel, ModelRevision, InferenceProvider, ModelDeployment, RoutingProfileCandidate, RoutingProfile, CataloguePublisherSummary, CatalogueServingProviderSummary, ModelCatalogueEntry, } from './inference/catalogue';
|
|
79
79
|
export { routingTargetSchema, routingPolicyScopeSchema, routingFallbackPolicySchema, routingPolicySchema, routingPolicyReferenceSchema, authorizedRouteSchema, } from './inference/routingPolicy';
|
|
80
80
|
export type { RoutingTarget, RoutingPolicyScope, RoutingFallbackPolicy, RoutingPolicy, RoutingPolicyReference, AuthorizedRoute, } from './inference/routingPolicy';
|
|
81
81
|
export { aliaReleaseArtifactSchema, aliaReleaseSignatureSchema, aliaModelReleaseManifestSchema, } from './inference/aliaModelRelease';
|
|
82
82
|
export type { AliaReleaseArtifact, AliaReleaseSignature, AliaModelReleaseManifest, } from './inference/aliaModelRelease';
|
|
83
83
|
export { modelDistributionMethodSchema, modelSystemicRiskTierSchema, trainingComputeFlopsSchema, SYSTEMIC_RISK_COMPUTE_THRESHOLD_FLOPS, modelDownstreamDocumentationSchema, modelGpaiDocumentationSchema, modelLineDeclarationSchema, modelReleaseIngestionRequestSchema, modelReleaseIngestionResultSchema, modelDocumentationSchema, } from './inference/modelDocumentation';
|
|
84
84
|
export type { ModelDistributionMethod, ModelSystemicRiskTier, ModelDownstreamDocumentation, ModelGpaiDocumentation, ModelLineDeclaration, ModelReleaseIngestionRequest, ModelReleaseIngestionResult, ModelDocumentation, } from './inference/modelDocumentation';
|
|
85
|
-
export { inferenceContentSourceSchema, inferenceContentPartSchema, inferenceToolCallSchema, inferenceMessageRoleSchema, inferenceMessageSchema, inferenceInputSchema, samplingParametersSchema, inferenceReasoningSchema, toolDefinitionSchema, toolChoiceSchema, responseFormatSchema, clientRequestMetadataSchema, inferenceRequestSchema, inferenceSpeechParametersSchema, } from './inference/request';
|
|
86
|
-
export type { InferenceContentSource, InferenceContentPart, InferenceToolCall, InferenceMessageRole, InferenceMessage, InferenceInput, SamplingParameters, InferenceReasoning, ToolDefinition, ToolChoice, ResponseFormat, ClientRequestMetadata, InferenceRequest, InferenceSpeechParameters, } from './inference/request';
|
|
85
|
+
export { inferenceContentSourceSchema, inferenceContentPartSchema, inferenceToolCallSchema, inferenceMessageRoleSchema, inferenceMessageSchema, inferenceInputSchema, samplingParametersSchema, inferenceReasoningSchema, toolDefinitionSchema, toolChoiceSchema, responseFormatSchema, clientRequestMetadataSchema, inferenceRequestSchema, inferenceSpeechParametersSchema, inferenceAudioOutputParametersSchema, } from './inference/request';
|
|
86
|
+
export type { InferenceContentSource, InferenceContentPart, InferenceToolCall, InferenceMessageRole, InferenceMessage, InferenceInput, SamplingParameters, InferenceReasoning, ToolDefinition, ToolChoice, ResponseFormat, ClientRequestMetadata, InferenceRequest, InferenceSpeechParameters, InferenceAudioOutputParameters, } from './inference/request';
|
|
87
87
|
export { inferenceStreamStartEventSchema, inferenceStreamDeltaEventSchema, inferenceAudioMediaTypeSchema, MAX_INFERENCE_AUDIO_BYTES, inferenceStreamAudioEventSchema, inferenceStreamToolCallEventSchema, inferenceStreamUsageEventSchema, inferenceRouteSwitchDetailSchema, inferenceRouteSwitchReasonSchema, inferenceStreamRouteSwitchEventSchema, inferenceStreamErrorEventSchema, inferenceFinishReasonSchema, inferenceStreamDoneEventSchema, inferenceStreamEventSchema, } from './inference/streamEvents';
|
|
88
88
|
export type { InferenceStreamStartEvent, InferenceStreamDeltaEvent, InferenceAudioMediaType, InferenceStreamAudioEvent, InferenceStreamToolCallEvent, InferenceStreamUsageEvent, InferenceRouteSwitchDetail, InferenceRouteSwitchReason, InferenceStreamRouteSwitchEvent, InferenceStreamErrorEvent, InferenceFinishReason, InferenceStreamDoneEvent, InferenceStreamEvent, } from './inference/streamEvents';
|
|
89
|
+
export { MAX_REALTIME_AUDIO_FRAME_BASE64_LENGTH, MAX_REALTIME_SESSION_DURATION_MS, MAX_REALTIME_SESSION_AUDIO_BYTES, MAX_REALTIME_RESUME_WINDOW_MS, realtimeCommandIdSchema, realtimeItemIdSchema, realtimeResponseIdSchema, realtimeAudioFormatSchema, realtimeOutputModalitySchema, realtimeTurnDetectionSchema, realtimeInputTranscriptionSchema, realtimeTranslationSchema, realtimeSessionConfigSchema, realtimeSessionConfigUpdateSchema, realtimeSessionLimitsSchema, realtimeClientMetadataSchema, realtimeSessionRequestSchema, realtimeContentPartSchema, realtimeConversationItemSchema, realtimeResponseParametersSchema, realtimeSessionUpdateCommandSchema, realtimeItemCreateCommandSchema, realtimeItemDeleteCommandSchema, realtimeItemTruncateCommandSchema, realtimeInputAudioAppendCommandSchema, realtimeInputAudioCommitCommandSchema, realtimeInputAudioClearCommandSchema, realtimeResponseCreateCommandSchema, realtimeResponseCancelCommandSchema, realtimeSessionResumeCommandSchema, realtimeSessionCloseCommandSchema, realtimeClientCommandSchema, realtimeSessionCreatedEventSchema, realtimeSessionUpdatedEventSchema, realtimeSessionResumedEventSchema, realtimeCommandAcceptedEventSchema, realtimeItemAddedEventSchema, realtimeItemDoneEventSchema, realtimeItemDeletedEventSchema, realtimeItemTruncatedEventSchema, realtimeSpeechStartedEventSchema, realtimeSpeechStoppedEventSchema, realtimeInputAudioCommittedEventSchema, realtimeInputAudioClearedEventSchema, realtimeResponseCreatedEventSchema, realtimeOutputAudioDeltaEventSchema, realtimeOutputAudioDoneEventSchema, realtimeTranscriptSourceSchema, realtimeTranscriptDeltaEventSchema, realtimeTranscriptDoneEventSchema, realtimeTextDeltaEventSchema, realtimeToolCallEventSchema, realtimeResponseStatusSchema, realtimeResponseDoneEventSchema, realtimeErrorEventSchema, realtimeSessionCloseReasonSchema, realtimeSessionClosedEventSchema, realtimeServerEventSchema, } from './inference/realtime';
|
|
90
|
+
export type { RealtimeAudioFormat, RealtimeOutputModality, RealtimeTurnDetection, RealtimeInputTranscription, RealtimeTranslation, RealtimeSessionConfig, RealtimeSessionConfigUpdate, RealtimeSessionLimits, RealtimeClientMetadata, RealtimeSessionRequest, RealtimeContentPart, RealtimeConversationItem, RealtimeResponseParameters, RealtimeClientCommand, RealtimeTranscriptSource, RealtimeResponseStatus, RealtimeSessionCloseReason, RealtimeServerEvent, } from './inference/realtime';
|
|
89
91
|
export { usageReservationRequestSchema, usageReservationStatusSchema, usageReservationSchema, inferenceRequestOutcomeSchema, normalizedUsageReportSchema, usageReceiptSchema, usageRefundSubjectSchema, usageRefundReasonSchema, usageRefundSchema, } from './inference/usage';
|
|
90
92
|
export type { UsageReservationRequest, UsageReservationStatus, UsageReservation, InferenceRequestOutcome, NormalizedUsageReport, UsageReceipt, UsageRefundSubject, UsageRefundReason, UsageRefund, } from './inference/usage';
|
|
91
93
|
export { providerConnectionScopeSchema, kaanaCredentialHandleSchema, kaanaCredentialOperationIdSchema, kaanaCredentialOperationActionSchema, kaanaCredentialIdentitySchema, kaanaCredentialCreateMutationSchema, kaanaCredentialRotateMutationSchema, kaanaCredentialRevokeMutationSchema, kaanaCredentialMutationSchema, kaanaCredentialCreateOutcomeRequestSchema, kaanaCredentialRotateOutcomeRequestSchema, kaanaCredentialRevokeOutcomeRequestSchema, kaanaCredentialOutcomeRequestSchema, kaanaCredentialAppliedOutcomeSchema, kaanaCredentialConflictOutcomeSchema, kaanaCredentialOutcomeSchema, kaanaCredentialValidationTaskSchema, kaanaCredentialValidationOutcomeStateSchema, kaanaCredentialValidationFailureCodeSchema, kaanaCredentialValidationOutcomeSchema, providerCredentialValidationOperationSchema, providerCredentialValidationDeploymentSchema, providerCredentialCustodyStateSchema, providerConnectionValidationSchema, providerConnectionStatusSchema, providerConnectionSchema, } from './inference/providerConnection';
|
|
@@ -105,3 +107,4 @@ export * from './linkedAccounts';
|
|
|
105
107
|
export * from './federationInstanceFetch';
|
|
106
108
|
export * from './notifications';
|
|
107
109
|
export * from './email/messages';
|
|
110
|
+
export * from './stickers';
|
|
@@ -38,12 +38,54 @@ export declare const inferenceModalitySchema: z.ZodEnum<["text", "image", "audio
|
|
|
38
38
|
* effort the resolved model does not advertise rather than dropping it.
|
|
39
39
|
*/
|
|
40
40
|
export declare const reasoningEffortSchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
41
|
+
/**
|
|
42
|
+
* The public dialects a request can arrive in — `client.apiFormat` on the
|
|
43
|
+
* envelope, and the list a deployment declares it can execute.
|
|
44
|
+
*
|
|
45
|
+
* Named (contract set 3.2.0) rather than inline on the client metadata so the
|
|
46
|
+
* two uses cannot drift: a capability naming a dialect the envelope cannot
|
|
47
|
+
* carry, or the reverse, would authorize a request no route can serve.
|
|
48
|
+
*/
|
|
49
|
+
export declare const inferenceApiFormatSchema: z.ZodEnum<["responses", "chat_completions", "embeddings", "images_generations", "audio_transcriptions", "audio_speech", "rerank", "batches"]>;
|
|
50
|
+
/**
|
|
51
|
+
* What a realtime session is FOR. The three are different upstream products
|
|
52
|
+
* with different event families and different metering, not options of one:
|
|
53
|
+
*
|
|
54
|
+
* - `conversation` — a speech-to-speech (or text) model holding a dialogue,
|
|
55
|
+
* with responses, tool calls and interruption.
|
|
56
|
+
* - `transcription` — live speech-to-text; the model never responds, it only
|
|
57
|
+
* transcribes committed input audio.
|
|
58
|
+
* - `translation` — live speech-to-speech translation into one target language.
|
|
59
|
+
*/
|
|
60
|
+
export declare const realtimeSessionKindSchema: z.ZodEnum<["conversation", "transcription", "translation"]>;
|
|
61
|
+
/**
|
|
62
|
+
* How a realtime session is carried. One member today: a WebSocket, whose every
|
|
63
|
+
* frame is one JSON message (see `realtime.ts`). WebRTC and SIP are separate
|
|
64
|
+
* transports with separate media handling, and are added as members only when a
|
|
65
|
+
* deployment can actually execute them.
|
|
66
|
+
*/
|
|
67
|
+
export declare const realtimeSessionTransportSchema: z.ZodEnum<["websocket"]>;
|
|
68
|
+
/**
|
|
69
|
+
* What a deployment can execute as a realtime session. Present only on a model
|
|
70
|
+
* that holds sessions; absent means it holds none, which is the state of every
|
|
71
|
+
* catalogue written before contract set 3.2.0.
|
|
72
|
+
*/
|
|
73
|
+
export declare const modelRealtimeCapabilitiesSchema: z.ZodObject<{
|
|
74
|
+
transports: z.ZodArray<z.ZodEnum<["websocket"]>, "many">;
|
|
75
|
+
sessionKinds: z.ZodArray<z.ZodEnum<["conversation", "transcription", "translation"]>, "many">;
|
|
76
|
+
}, "strict", z.ZodTypeAny, {
|
|
77
|
+
transports: "websocket"[];
|
|
78
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
79
|
+
}, {
|
|
80
|
+
transports: "websocket"[];
|
|
81
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
82
|
+
}>;
|
|
41
83
|
/**
|
|
42
84
|
* What a model can do, in the terms a caller has to decide against before
|
|
43
85
|
* sending a request: can it call tools, does it accept images, will it honour a
|
|
44
86
|
* JSON schema, how much context does it take, how much can it emit.
|
|
45
87
|
*/
|
|
46
|
-
export declare const modelCapabilitiesSchema: z.ZodObject<{
|
|
88
|
+
export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
47
89
|
inputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
48
90
|
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
49
91
|
tools: z.ZodBoolean;
|
|
@@ -62,6 +104,31 @@ export declare const modelCapabilitiesSchema: z.ZodObject<{
|
|
|
62
104
|
promptCaching: z.ZodBoolean;
|
|
63
105
|
maxContextTokens: z.ZodNumber;
|
|
64
106
|
maxOutputTokens: z.ZodNumber;
|
|
107
|
+
/**
|
|
108
|
+
* The request dialects a route to this model can EXECUTE. Modalities say
|
|
109
|
+
* what a model consumes and produces; they do not say which request shape a
|
|
110
|
+
* route can carry, and catalogue presence is not that evidence either — a
|
|
111
|
+
* speech-to-speech model is `audio` in and out and still cannot answer a
|
|
112
|
+
* `/v1/audio/transcriptions` upload. Oxy authorizes a request only when its
|
|
113
|
+
* `client.apiFormat` is listed here.
|
|
114
|
+
*
|
|
115
|
+
* Added in contract set 3.2.0. ABSENT means undeclared — a catalogue from an
|
|
116
|
+
* older producer — never "every format": a consumer then applies the rules it
|
|
117
|
+
* applied before this field existed, and authorizes no format that needs a
|
|
118
|
+
* declaration (audio output on `chat_completions`, a realtime session).
|
|
119
|
+
*/
|
|
120
|
+
apiFormats: z.ZodOptional<z.ZodArray<z.ZodEnum<["responses", "chat_completions", "embeddings", "images_generations", "audio_transcriptions", "audio_speech", "rerank", "batches"]>, "many">>;
|
|
121
|
+
/** Realtime sessions this model holds; absent means none. Contract set 3.2.0. */
|
|
122
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
transports: z.ZodArray<z.ZodEnum<["websocket"]>, "many">;
|
|
124
|
+
sessionKinds: z.ZodArray<z.ZodEnum<["conversation", "transcription", "translation"]>, "many">;
|
|
125
|
+
}, "strict", z.ZodTypeAny, {
|
|
126
|
+
transports: "websocket"[];
|
|
127
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
128
|
+
}, {
|
|
129
|
+
transports: "websocket"[];
|
|
130
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
131
|
+
}>>;
|
|
65
132
|
}, "strict", z.ZodTypeAny, {
|
|
66
133
|
tools: boolean;
|
|
67
134
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
@@ -75,6 +142,47 @@ export declare const modelCapabilitiesSchema: z.ZodObject<{
|
|
|
75
142
|
promptCaching: boolean;
|
|
76
143
|
maxContextTokens: number;
|
|
77
144
|
maxOutputTokens: number;
|
|
145
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
146
|
+
realtime?: {
|
|
147
|
+
transports: "websocket"[];
|
|
148
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
149
|
+
} | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
tools: boolean;
|
|
152
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
153
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
154
|
+
parallelToolCalls: boolean;
|
|
155
|
+
structuredOutput: boolean;
|
|
156
|
+
jsonMode: boolean;
|
|
157
|
+
reasoning: boolean;
|
|
158
|
+
streaming: boolean;
|
|
159
|
+
promptCaching: boolean;
|
|
160
|
+
maxContextTokens: number;
|
|
161
|
+
maxOutputTokens: number;
|
|
162
|
+
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
163
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
164
|
+
realtime?: {
|
|
165
|
+
transports: "websocket"[];
|
|
166
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
167
|
+
} | undefined;
|
|
168
|
+
}>, {
|
|
169
|
+
tools: boolean;
|
|
170
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
171
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
172
|
+
parallelToolCalls: boolean;
|
|
173
|
+
structuredOutput: boolean;
|
|
174
|
+
jsonMode: boolean;
|
|
175
|
+
reasoning: boolean;
|
|
176
|
+
reasoningEfforts: ("low" | "medium" | "high")[];
|
|
177
|
+
streaming: boolean;
|
|
178
|
+
promptCaching: boolean;
|
|
179
|
+
maxContextTokens: number;
|
|
180
|
+
maxOutputTokens: number;
|
|
181
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
182
|
+
realtime?: {
|
|
183
|
+
transports: "websocket"[];
|
|
184
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
185
|
+
} | undefined;
|
|
78
186
|
}, {
|
|
79
187
|
tools: boolean;
|
|
80
188
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
@@ -88,6 +196,11 @@ export declare const modelCapabilitiesSchema: z.ZodObject<{
|
|
|
88
196
|
maxContextTokens: number;
|
|
89
197
|
maxOutputTokens: number;
|
|
90
198
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
199
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
200
|
+
realtime?: {
|
|
201
|
+
transports: "websocket"[];
|
|
202
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
203
|
+
} | undefined;
|
|
91
204
|
}>;
|
|
92
205
|
/**
|
|
93
206
|
* License terms, including the two questions that decide whether Oxy may serve
|
|
@@ -299,7 +412,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
299
412
|
slug: z.ZodString;
|
|
300
413
|
displayName: z.ZodString;
|
|
301
414
|
description: z.ZodOptional<z.ZodString>;
|
|
302
|
-
capabilities: z.ZodObject<{
|
|
415
|
+
capabilities: z.ZodEffects<z.ZodObject<{
|
|
303
416
|
inputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
304
417
|
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
305
418
|
tools: z.ZodBoolean;
|
|
@@ -318,6 +431,31 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
318
431
|
promptCaching: z.ZodBoolean;
|
|
319
432
|
maxContextTokens: z.ZodNumber;
|
|
320
433
|
maxOutputTokens: z.ZodNumber;
|
|
434
|
+
/**
|
|
435
|
+
* The request dialects a route to this model can EXECUTE. Modalities say
|
|
436
|
+
* what a model consumes and produces; they do not say which request shape a
|
|
437
|
+
* route can carry, and catalogue presence is not that evidence either — a
|
|
438
|
+
* speech-to-speech model is `audio` in and out and still cannot answer a
|
|
439
|
+
* `/v1/audio/transcriptions` upload. Oxy authorizes a request only when its
|
|
440
|
+
* `client.apiFormat` is listed here.
|
|
441
|
+
*
|
|
442
|
+
* Added in contract set 3.2.0. ABSENT means undeclared — a catalogue from an
|
|
443
|
+
* older producer — never "every format": a consumer then applies the rules it
|
|
444
|
+
* applied before this field existed, and authorizes no format that needs a
|
|
445
|
+
* declaration (audio output on `chat_completions`, a realtime session).
|
|
446
|
+
*/
|
|
447
|
+
apiFormats: z.ZodOptional<z.ZodArray<z.ZodEnum<["responses", "chat_completions", "embeddings", "images_generations", "audio_transcriptions", "audio_speech", "rerank", "batches"]>, "many">>;
|
|
448
|
+
/** Realtime sessions this model holds; absent means none. Contract set 3.2.0. */
|
|
449
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
450
|
+
transports: z.ZodArray<z.ZodEnum<["websocket"]>, "many">;
|
|
451
|
+
sessionKinds: z.ZodArray<z.ZodEnum<["conversation", "transcription", "translation"]>, "many">;
|
|
452
|
+
}, "strict", z.ZodTypeAny, {
|
|
453
|
+
transports: "websocket"[];
|
|
454
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
455
|
+
}, {
|
|
456
|
+
transports: "websocket"[];
|
|
457
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
458
|
+
}>>;
|
|
321
459
|
}, "strict", z.ZodTypeAny, {
|
|
322
460
|
tools: boolean;
|
|
323
461
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
@@ -331,6 +469,47 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
331
469
|
promptCaching: boolean;
|
|
332
470
|
maxContextTokens: number;
|
|
333
471
|
maxOutputTokens: number;
|
|
472
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
473
|
+
realtime?: {
|
|
474
|
+
transports: "websocket"[];
|
|
475
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
476
|
+
} | undefined;
|
|
477
|
+
}, {
|
|
478
|
+
tools: boolean;
|
|
479
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
480
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
481
|
+
parallelToolCalls: boolean;
|
|
482
|
+
structuredOutput: boolean;
|
|
483
|
+
jsonMode: boolean;
|
|
484
|
+
reasoning: boolean;
|
|
485
|
+
streaming: boolean;
|
|
486
|
+
promptCaching: boolean;
|
|
487
|
+
maxContextTokens: number;
|
|
488
|
+
maxOutputTokens: number;
|
|
489
|
+
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
490
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
491
|
+
realtime?: {
|
|
492
|
+
transports: "websocket"[];
|
|
493
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
494
|
+
} | undefined;
|
|
495
|
+
}>, {
|
|
496
|
+
tools: boolean;
|
|
497
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
498
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
499
|
+
parallelToolCalls: boolean;
|
|
500
|
+
structuredOutput: boolean;
|
|
501
|
+
jsonMode: boolean;
|
|
502
|
+
reasoning: boolean;
|
|
503
|
+
reasoningEfforts: ("low" | "medium" | "high")[];
|
|
504
|
+
streaming: boolean;
|
|
505
|
+
promptCaching: boolean;
|
|
506
|
+
maxContextTokens: number;
|
|
507
|
+
maxOutputTokens: number;
|
|
508
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
509
|
+
realtime?: {
|
|
510
|
+
transports: "websocket"[];
|
|
511
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
512
|
+
} | undefined;
|
|
334
513
|
}, {
|
|
335
514
|
tools: boolean;
|
|
336
515
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
@@ -344,6 +523,11 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
344
523
|
maxContextTokens: number;
|
|
345
524
|
maxOutputTokens: number;
|
|
346
525
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
526
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
527
|
+
realtime?: {
|
|
528
|
+
transports: "websocket"[];
|
|
529
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
530
|
+
} | undefined;
|
|
347
531
|
}>;
|
|
348
532
|
license: z.ZodObject<{
|
|
349
533
|
/** SPDX identifier where one exists, otherwise the publisher's own name. */
|
|
@@ -427,6 +611,11 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
427
611
|
promptCaching: boolean;
|
|
428
612
|
maxContextTokens: number;
|
|
429
613
|
maxOutputTokens: number;
|
|
614
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
615
|
+
realtime?: {
|
|
616
|
+
transports: "websocket"[];
|
|
617
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
618
|
+
} | undefined;
|
|
430
619
|
};
|
|
431
620
|
schemaVersion: 1;
|
|
432
621
|
slug: string;
|
|
@@ -470,6 +659,11 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
470
659
|
maxContextTokens: number;
|
|
471
660
|
maxOutputTokens: number;
|
|
472
661
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
662
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
663
|
+
realtime?: {
|
|
664
|
+
transports: "websocket"[];
|
|
665
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
666
|
+
} | undefined;
|
|
473
667
|
};
|
|
474
668
|
schemaVersion: 1;
|
|
475
669
|
slug: string;
|
|
@@ -513,6 +707,11 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
513
707
|
promptCaching: boolean;
|
|
514
708
|
maxContextTokens: number;
|
|
515
709
|
maxOutputTokens: number;
|
|
710
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
711
|
+
realtime?: {
|
|
712
|
+
transports: "websocket"[];
|
|
713
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
714
|
+
} | undefined;
|
|
516
715
|
};
|
|
517
716
|
schemaVersion: 1;
|
|
518
717
|
slug: string;
|
|
@@ -556,6 +755,11 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
556
755
|
maxContextTokens: number;
|
|
557
756
|
maxOutputTokens: number;
|
|
558
757
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
758
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
759
|
+
realtime?: {
|
|
760
|
+
transports: "websocket"[];
|
|
761
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
762
|
+
} | undefined;
|
|
559
763
|
};
|
|
560
764
|
schemaVersion: 1;
|
|
561
765
|
slug: string;
|
|
@@ -1150,7 +1354,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1150
1354
|
currentRevision: z.ZodString;
|
|
1151
1355
|
/** Revisions a customer may pin today, newest first. */
|
|
1152
1356
|
availableRevisions: z.ZodArray<z.ZodString, "many">;
|
|
1153
|
-
capabilities: z.ZodObject<{
|
|
1357
|
+
capabilities: z.ZodEffects<z.ZodObject<{
|
|
1154
1358
|
inputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
1155
1359
|
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
1156
1360
|
tools: z.ZodBoolean;
|
|
@@ -1169,6 +1373,31 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1169
1373
|
promptCaching: z.ZodBoolean;
|
|
1170
1374
|
maxContextTokens: z.ZodNumber;
|
|
1171
1375
|
maxOutputTokens: z.ZodNumber;
|
|
1376
|
+
/**
|
|
1377
|
+
* The request dialects a route to this model can EXECUTE. Modalities say
|
|
1378
|
+
* what a model consumes and produces; they do not say which request shape a
|
|
1379
|
+
* route can carry, and catalogue presence is not that evidence either — a
|
|
1380
|
+
* speech-to-speech model is `audio` in and out and still cannot answer a
|
|
1381
|
+
* `/v1/audio/transcriptions` upload. Oxy authorizes a request only when its
|
|
1382
|
+
* `client.apiFormat` is listed here.
|
|
1383
|
+
*
|
|
1384
|
+
* Added in contract set 3.2.0. ABSENT means undeclared — a catalogue from an
|
|
1385
|
+
* older producer — never "every format": a consumer then applies the rules it
|
|
1386
|
+
* applied before this field existed, and authorizes no format that needs a
|
|
1387
|
+
* declaration (audio output on `chat_completions`, a realtime session).
|
|
1388
|
+
*/
|
|
1389
|
+
apiFormats: z.ZodOptional<z.ZodArray<z.ZodEnum<["responses", "chat_completions", "embeddings", "images_generations", "audio_transcriptions", "audio_speech", "rerank", "batches"]>, "many">>;
|
|
1390
|
+
/** Realtime sessions this model holds; absent means none. Contract set 3.2.0. */
|
|
1391
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
1392
|
+
transports: z.ZodArray<z.ZodEnum<["websocket"]>, "many">;
|
|
1393
|
+
sessionKinds: z.ZodArray<z.ZodEnum<["conversation", "transcription", "translation"]>, "many">;
|
|
1394
|
+
}, "strict", z.ZodTypeAny, {
|
|
1395
|
+
transports: "websocket"[];
|
|
1396
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
1397
|
+
}, {
|
|
1398
|
+
transports: "websocket"[];
|
|
1399
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
1400
|
+
}>>;
|
|
1172
1401
|
}, "strict", z.ZodTypeAny, {
|
|
1173
1402
|
tools: boolean;
|
|
1174
1403
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
@@ -1182,6 +1411,47 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1182
1411
|
promptCaching: boolean;
|
|
1183
1412
|
maxContextTokens: number;
|
|
1184
1413
|
maxOutputTokens: number;
|
|
1414
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1415
|
+
realtime?: {
|
|
1416
|
+
transports: "websocket"[];
|
|
1417
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
1418
|
+
} | undefined;
|
|
1419
|
+
}, {
|
|
1420
|
+
tools: boolean;
|
|
1421
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1422
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1423
|
+
parallelToolCalls: boolean;
|
|
1424
|
+
structuredOutput: boolean;
|
|
1425
|
+
jsonMode: boolean;
|
|
1426
|
+
reasoning: boolean;
|
|
1427
|
+
streaming: boolean;
|
|
1428
|
+
promptCaching: boolean;
|
|
1429
|
+
maxContextTokens: number;
|
|
1430
|
+
maxOutputTokens: number;
|
|
1431
|
+
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
1432
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1433
|
+
realtime?: {
|
|
1434
|
+
transports: "websocket"[];
|
|
1435
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
1436
|
+
} | undefined;
|
|
1437
|
+
}>, {
|
|
1438
|
+
tools: boolean;
|
|
1439
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1440
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1441
|
+
parallelToolCalls: boolean;
|
|
1442
|
+
structuredOutput: boolean;
|
|
1443
|
+
jsonMode: boolean;
|
|
1444
|
+
reasoning: boolean;
|
|
1445
|
+
reasoningEfforts: ("low" | "medium" | "high")[];
|
|
1446
|
+
streaming: boolean;
|
|
1447
|
+
promptCaching: boolean;
|
|
1448
|
+
maxContextTokens: number;
|
|
1449
|
+
maxOutputTokens: number;
|
|
1450
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1451
|
+
realtime?: {
|
|
1452
|
+
transports: "websocket"[];
|
|
1453
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
1454
|
+
} | undefined;
|
|
1185
1455
|
}, {
|
|
1186
1456
|
tools: boolean;
|
|
1187
1457
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
@@ -1195,6 +1465,11 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1195
1465
|
maxContextTokens: number;
|
|
1196
1466
|
maxOutputTokens: number;
|
|
1197
1467
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
1468
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1469
|
+
realtime?: {
|
|
1470
|
+
transports: "websocket"[];
|
|
1471
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
1472
|
+
} | undefined;
|
|
1198
1473
|
}>;
|
|
1199
1474
|
license: z.ZodObject<{
|
|
1200
1475
|
/** SPDX identifier where one exists, otherwise the publisher's own name. */
|
|
@@ -1352,19 +1627,19 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1352
1627
|
priceVersionId: z.ZodString;
|
|
1353
1628
|
currency: z.ZodString;
|
|
1354
1629
|
unitPrices: z.ZodArray<z.ZodObject<{
|
|
1355
|
-
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings"]>;
|
|
1630
|
+
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens"]>;
|
|
1356
1631
|
amount: z.ZodBranded<z.ZodString, "ExactDecimal">;
|
|
1357
1632
|
per: z.ZodNumber;
|
|
1358
1633
|
currency: z.ZodString;
|
|
1359
1634
|
}, "strict", z.ZodTypeAny, {
|
|
1360
1635
|
currency: string;
|
|
1361
1636
|
amount: string & z.BRAND<"ExactDecimal">;
|
|
1362
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings";
|
|
1637
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens";
|
|
1363
1638
|
per: number;
|
|
1364
1639
|
}, {
|
|
1365
1640
|
currency: string;
|
|
1366
1641
|
amount: string;
|
|
1367
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings";
|
|
1642
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens";
|
|
1368
1643
|
per: number;
|
|
1369
1644
|
}>, "many">;
|
|
1370
1645
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1373,7 +1648,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1373
1648
|
unitPrices: {
|
|
1374
1649
|
currency: string;
|
|
1375
1650
|
amount: string & z.BRAND<"ExactDecimal">;
|
|
1376
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings";
|
|
1651
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens";
|
|
1377
1652
|
per: number;
|
|
1378
1653
|
}[];
|
|
1379
1654
|
}, {
|
|
@@ -1382,7 +1657,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1382
1657
|
unitPrices: {
|
|
1383
1658
|
currency: string;
|
|
1384
1659
|
amount: string;
|
|
1385
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings";
|
|
1660
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens";
|
|
1386
1661
|
per: number;
|
|
1387
1662
|
}[];
|
|
1388
1663
|
}>>;
|
|
@@ -1469,6 +1744,11 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1469
1744
|
promptCaching: boolean;
|
|
1470
1745
|
maxContextTokens: number;
|
|
1471
1746
|
maxOutputTokens: number;
|
|
1747
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1748
|
+
realtime?: {
|
|
1749
|
+
transports: "websocket"[];
|
|
1750
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
1751
|
+
} | undefined;
|
|
1472
1752
|
};
|
|
1473
1753
|
schemaVersion: 3;
|
|
1474
1754
|
modelId: string;
|
|
@@ -1546,7 +1826,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1546
1826
|
unitPrices: {
|
|
1547
1827
|
currency: string;
|
|
1548
1828
|
amount: string & z.BRAND<"ExactDecimal">;
|
|
1549
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings";
|
|
1829
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens";
|
|
1550
1830
|
per: number;
|
|
1551
1831
|
}[];
|
|
1552
1832
|
} | undefined;
|
|
@@ -1565,6 +1845,11 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1565
1845
|
maxContextTokens: number;
|
|
1566
1846
|
maxOutputTokens: number;
|
|
1567
1847
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
1848
|
+
apiFormats?: ("embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1849
|
+
realtime?: {
|
|
1850
|
+
transports: "websocket"[];
|
|
1851
|
+
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
1852
|
+
} | undefined;
|
|
1568
1853
|
};
|
|
1569
1854
|
schemaVersion: 3;
|
|
1570
1855
|
modelId: string;
|
|
@@ -1642,13 +1927,17 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1642
1927
|
unitPrices: {
|
|
1643
1928
|
currency: string;
|
|
1644
1929
|
amount: string;
|
|
1645
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings";
|
|
1930
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens";
|
|
1646
1931
|
per: number;
|
|
1647
1932
|
}[];
|
|
1648
1933
|
} | undefined;
|
|
1649
1934
|
}>;
|
|
1650
1935
|
export type InferenceModality = z.infer<typeof inferenceModalitySchema>;
|
|
1651
1936
|
export type ReasoningEffort = z.infer<typeof reasoningEffortSchema>;
|
|
1937
|
+
export type InferenceApiFormat = z.infer<typeof inferenceApiFormatSchema>;
|
|
1938
|
+
export type RealtimeSessionKind = z.infer<typeof realtimeSessionKindSchema>;
|
|
1939
|
+
export type RealtimeSessionTransport = z.infer<typeof realtimeSessionTransportSchema>;
|
|
1940
|
+
export type ModelRealtimeCapabilities = z.infer<typeof modelRealtimeCapabilitiesSchema>;
|
|
1652
1941
|
export type ModelCapabilities = z.infer<typeof modelCapabilitiesSchema>;
|
|
1653
1942
|
export type ModelLicense = z.infer<typeof modelLicenseSchema>;
|
|
1654
1943
|
export type ModelProvenance = z.infer<typeof modelProvenanceSchema>;
|
|
@@ -114,7 +114,7 @@ export declare const productPlanSchema: z.ZodObject<{
|
|
|
114
114
|
remaining?: number | undefined;
|
|
115
115
|
}>, "many">;
|
|
116
116
|
}, "strict", z.ZodTypeAny, {
|
|
117
|
-
status: "active" | "
|
|
117
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
118
118
|
name: string;
|
|
119
119
|
id: string;
|
|
120
120
|
live: boolean;
|
|
@@ -127,7 +127,7 @@ export declare const productPlanSchema: z.ZodObject<{
|
|
|
127
127
|
remaining?: number | undefined;
|
|
128
128
|
}[];
|
|
129
129
|
}, {
|
|
130
|
-
status: "active" | "
|
|
130
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
131
131
|
name: string;
|
|
132
132
|
id: string;
|
|
133
133
|
live: boolean;
|
|
@@ -326,7 +326,7 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
326
326
|
remaining?: number | undefined;
|
|
327
327
|
}>, "many">;
|
|
328
328
|
}, "strict", z.ZodTypeAny, {
|
|
329
|
-
status: "active" | "
|
|
329
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
330
330
|
name: string;
|
|
331
331
|
id: string;
|
|
332
332
|
live: boolean;
|
|
@@ -339,7 +339,7 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
339
339
|
remaining?: number | undefined;
|
|
340
340
|
}[];
|
|
341
341
|
}, {
|
|
342
|
-
status: "active" | "
|
|
342
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
343
343
|
name: string;
|
|
344
344
|
id: string;
|
|
345
345
|
live: boolean;
|
|
@@ -444,7 +444,7 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
444
444
|
label: string;
|
|
445
445
|
} | null;
|
|
446
446
|
plan: {
|
|
447
|
-
status: "active" | "
|
|
447
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
448
448
|
name: string;
|
|
449
449
|
id: string;
|
|
450
450
|
live: boolean;
|
|
@@ -485,7 +485,7 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
485
485
|
label: string;
|
|
486
486
|
} | null;
|
|
487
487
|
plan: {
|
|
488
|
-
status: "active" | "
|
|
488
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
489
489
|
name: string;
|
|
490
490
|
id: string;
|
|
491
491
|
live: boolean;
|
|
@@ -5,13 +5,13 @@ export declare const inboxComposeRequestSchema: z.ZodDiscriminatedUnion<"operati
|
|
|
5
5
|
tone: z.ZodEnum<["professional", "casual", "friendly", "formal"]>;
|
|
6
6
|
stream: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
}, "strict", z.ZodTypeAny, {
|
|
8
|
-
operation: "draft";
|
|
9
8
|
prompt: string;
|
|
9
|
+
operation: "draft";
|
|
10
10
|
tone: "professional" | "casual" | "friendly" | "formal";
|
|
11
11
|
stream?: boolean | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
operation: "draft";
|
|
14
13
|
prompt: string;
|
|
14
|
+
operation: "draft";
|
|
15
15
|
tone: "professional" | "casual" | "friendly" | "formal";
|
|
16
16
|
stream?: boolean | undefined;
|
|
17
17
|
}>, z.ZodObject<{
|