@oxy.so/contracts 4.9.0 → 4.10.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 +21 -7
- package/dist/cjs/inference/catalogue.js +8 -3
- package/dist/cjs/inference/decisions.js +41 -0
- package/dist/cjs/inference/privateAutoExecution.js +153 -0
- package/dist/cjs/inference/request.js +35 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/inference/catalogue.js +7 -2
- package/dist/esm/inference/decisions.js +41 -0
- package/dist/esm/inference/privateAutoExecution.js +149 -0
- package/dist/esm/inference/request.js +34 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +6 -2
- package/dist/types/inference/catalogue.d.ts +43 -40
- package/dist/types/inference/economics.d.ts +2 -2
- package/dist/types/inference/modelDocumentation.d.ts +30 -30
- package/dist/types/inference/privateAutoExecution.d.ts +694 -0
- package/dist/types/inference/request.d.ts +2238 -14
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -76,8 +76,8 @@ export { embeddingVectorSchema, embeddingUsageSchema, embeddingSuccessSchema, em
|
|
|
76
76
|
export type { EmbeddingVector, EmbeddingUsage, EmbeddingSuccess, EmbeddingFailure, EmbeddingResponse, } from './inference/embeddings';
|
|
77
77
|
export { priceVersionStatusSchema, priceVersionSchema, priceSnapshotSchema, } from './inference/priceVersion';
|
|
78
78
|
export type { PriceVersionStatus, PriceVersion, PriceSnapshot } from './inference/priceVersion';
|
|
79
|
-
export { inferenceModalitySchema, reasoningEffortSchema, powerLevelSchema, modelPowerClassSchema, 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';
|
|
80
|
-
export type { InferenceModality, ReasoningEffort, PowerLevel, ModelPowerClass, 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
|
+
export { inferenceModalitySchema, inferenceOutputModalitySchema, reasoningEffortSchema, powerLevelSchema, modelPowerClassSchema, 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';
|
|
80
|
+
export type { InferenceModality, InferenceOutputModality, ReasoningEffort, PowerLevel, ModelPowerClass, 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';
|
|
81
81
|
export { routingTargetSchema, routingPolicyScopeSchema, routingFallbackPolicySchema, routingPolicySchema, routingPolicyReferenceSchema, effectiveSameModelDeployment, authorizedRouteSchema, } from './inference/routingPolicy';
|
|
82
82
|
export type { RoutingTarget, RoutingPolicyScope, RoutingFallbackPolicy, RoutingPolicy, RoutingPolicyReference, AuthorizedRoute, } from './inference/routingPolicy';
|
|
83
83
|
export { aliaReleaseArtifactSchema, aliaReleaseSignatureSchema, aliaModelReleaseManifestSchema, } from './inference/aliaModelRelease';
|
|
@@ -120,6 +120,10 @@ export { SCOPED_EXECUTION_CONTRACT_VERSION, SCOPED_REQUEST_ENVELOPE_VERSION, sco
|
|
|
120
120
|
export type { ScopedExecutionAudience, ScopedExecution } from './inference/scopedExecution';
|
|
121
121
|
export { scopedInferenceRequestSchema } from './inference/request';
|
|
122
122
|
export type { ScopedInferenceRequest } from './inference/request';
|
|
123
|
+
export { PRIVATE_AUTO_EXECUTION_CONTRACT_VERSION, PRIVATE_AUTO_REQUEST_ENVELOPE_VERSION, PRIVATE_AUTO_LIMITS, PRIVATE_AUTO_INSTRUCTIONS, PRIVATE_AUTO_QUESTION, privateAutoPrincipalSchema, privateAutoSourceApprovalSchema, privateAutoExecutionSchema, privateAutoInputSchema, privateAutoOperationId, } from './inference/privateAutoExecution';
|
|
124
|
+
export type { PrivateAutoPrincipal, PrivateAutoSourceApproval, PrivateAutoExecution } from './inference/privateAutoExecution';
|
|
125
|
+
export { privateAutoInferenceRequestSchema } from './inference/request';
|
|
126
|
+
export type { PrivateAutoInferenceRequest } from './inference/request';
|
|
123
127
|
export { productDefinitionSchema, subjectProductAccessQuerySchema, productBenefitSchema, productOfferSchema, productSubscriptionSourceSchema, productAccessGrantSchema, productOfferSegmentSchema, subjectProductAccessSchema, } from './products/access';
|
|
124
128
|
export type { ProductDefinition, SubjectProductAccessQuery, ProductBenefit, ProductOffer, ProductSubscriptionSource, ProductAccessGrant, ProductOfferSegment, SubjectProductAccess, } from './products/access';
|
|
125
129
|
export { meteredGenerationSchema, type MeteredGeneration } from "./inference/economics";
|
|
@@ -27,8 +27,10 @@
|
|
|
27
27
|
* Decided in: docs/adr/0008-catalogue-concept-separation.md.
|
|
28
28
|
*/
|
|
29
29
|
import { z } from 'zod';
|
|
30
|
-
/**
|
|
30
|
+
/** Input/request modalities; structured decisions are an output, never an input. */
|
|
31
31
|
export declare const inferenceModalitySchema: z.ZodEnum<["text", "image", "audio", "video", "embedding"]>;
|
|
32
|
+
/** Declared model outputs, separate from request/input modalities. */
|
|
33
|
+
export declare const inferenceOutputModalitySchema: z.ZodEnum<["text", "image", "audio", "video", "embedding", "decisions"]>;
|
|
32
34
|
/**
|
|
33
35
|
* How hard a reasoning model is asked to think before it answers.
|
|
34
36
|
*
|
|
@@ -112,7 +114,7 @@ export declare const modelRealtimeCapabilitiesSchema: z.ZodObject<{
|
|
|
112
114
|
*/
|
|
113
115
|
export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
114
116
|
inputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
115
|
-
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
117
|
+
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding", "decisions"]>, "many">;
|
|
116
118
|
tools: z.ZodBoolean;
|
|
117
119
|
parallelToolCalls: z.ZodBoolean;
|
|
118
120
|
structuredOutput: z.ZodBoolean;
|
|
@@ -157,7 +159,7 @@ export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
157
159
|
}, "strict", z.ZodTypeAny, {
|
|
158
160
|
tools: boolean;
|
|
159
161
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
160
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
162
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
161
163
|
parallelToolCalls: boolean;
|
|
162
164
|
structuredOutput: boolean;
|
|
163
165
|
jsonMode: boolean;
|
|
@@ -167,7 +169,7 @@ export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
167
169
|
promptCaching: boolean;
|
|
168
170
|
maxContextTokens: number;
|
|
169
171
|
maxOutputTokens: number;
|
|
170
|
-
apiFormats?: ("embeddings" | "
|
|
172
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
171
173
|
realtime?: {
|
|
172
174
|
transports: "websocket"[];
|
|
173
175
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -175,7 +177,7 @@ export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
175
177
|
}, {
|
|
176
178
|
tools: boolean;
|
|
177
179
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
178
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
180
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
179
181
|
parallelToolCalls: boolean;
|
|
180
182
|
structuredOutput: boolean;
|
|
181
183
|
jsonMode: boolean;
|
|
@@ -185,7 +187,7 @@ export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
185
187
|
maxContextTokens: number;
|
|
186
188
|
maxOutputTokens: number;
|
|
187
189
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
188
|
-
apiFormats?: ("embeddings" | "
|
|
190
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
189
191
|
realtime?: {
|
|
190
192
|
transports: "websocket"[];
|
|
191
193
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -193,7 +195,7 @@ export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
193
195
|
}>, {
|
|
194
196
|
tools: boolean;
|
|
195
197
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
196
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
198
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
197
199
|
parallelToolCalls: boolean;
|
|
198
200
|
structuredOutput: boolean;
|
|
199
201
|
jsonMode: boolean;
|
|
@@ -203,7 +205,7 @@ export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
203
205
|
promptCaching: boolean;
|
|
204
206
|
maxContextTokens: number;
|
|
205
207
|
maxOutputTokens: number;
|
|
206
|
-
apiFormats?: ("embeddings" | "
|
|
208
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
207
209
|
realtime?: {
|
|
208
210
|
transports: "websocket"[];
|
|
209
211
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -211,7 +213,7 @@ export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
211
213
|
}, {
|
|
212
214
|
tools: boolean;
|
|
213
215
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
214
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
216
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
215
217
|
parallelToolCalls: boolean;
|
|
216
218
|
structuredOutput: boolean;
|
|
217
219
|
jsonMode: boolean;
|
|
@@ -221,7 +223,7 @@ export declare const modelCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
221
223
|
maxContextTokens: number;
|
|
222
224
|
maxOutputTokens: number;
|
|
223
225
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
224
|
-
apiFormats?: ("embeddings" | "
|
|
226
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
225
227
|
realtime?: {
|
|
226
228
|
transports: "websocket"[];
|
|
227
229
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -439,7 +441,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
439
441
|
description: z.ZodOptional<z.ZodString>;
|
|
440
442
|
capabilities: z.ZodEffects<z.ZodObject<{
|
|
441
443
|
inputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
442
|
-
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
444
|
+
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding", "decisions"]>, "many">;
|
|
443
445
|
tools: z.ZodBoolean;
|
|
444
446
|
parallelToolCalls: z.ZodBoolean;
|
|
445
447
|
structuredOutput: z.ZodBoolean;
|
|
@@ -484,7 +486,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
484
486
|
}, "strict", z.ZodTypeAny, {
|
|
485
487
|
tools: boolean;
|
|
486
488
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
487
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
489
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
488
490
|
parallelToolCalls: boolean;
|
|
489
491
|
structuredOutput: boolean;
|
|
490
492
|
jsonMode: boolean;
|
|
@@ -494,7 +496,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
494
496
|
promptCaching: boolean;
|
|
495
497
|
maxContextTokens: number;
|
|
496
498
|
maxOutputTokens: number;
|
|
497
|
-
apiFormats?: ("embeddings" | "
|
|
499
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
498
500
|
realtime?: {
|
|
499
501
|
transports: "websocket"[];
|
|
500
502
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -502,7 +504,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
502
504
|
}, {
|
|
503
505
|
tools: boolean;
|
|
504
506
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
505
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
507
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
506
508
|
parallelToolCalls: boolean;
|
|
507
509
|
structuredOutput: boolean;
|
|
508
510
|
jsonMode: boolean;
|
|
@@ -512,7 +514,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
512
514
|
maxContextTokens: number;
|
|
513
515
|
maxOutputTokens: number;
|
|
514
516
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
515
|
-
apiFormats?: ("embeddings" | "
|
|
517
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
516
518
|
realtime?: {
|
|
517
519
|
transports: "websocket"[];
|
|
518
520
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -520,7 +522,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
520
522
|
}>, {
|
|
521
523
|
tools: boolean;
|
|
522
524
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
523
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
525
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
524
526
|
parallelToolCalls: boolean;
|
|
525
527
|
structuredOutput: boolean;
|
|
526
528
|
jsonMode: boolean;
|
|
@@ -530,7 +532,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
530
532
|
promptCaching: boolean;
|
|
531
533
|
maxContextTokens: number;
|
|
532
534
|
maxOutputTokens: number;
|
|
533
|
-
apiFormats?: ("embeddings" | "
|
|
535
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
534
536
|
realtime?: {
|
|
535
537
|
transports: "websocket"[];
|
|
536
538
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -538,7 +540,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
538
540
|
}, {
|
|
539
541
|
tools: boolean;
|
|
540
542
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
541
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
543
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
542
544
|
parallelToolCalls: boolean;
|
|
543
545
|
structuredOutput: boolean;
|
|
544
546
|
jsonMode: boolean;
|
|
@@ -548,7 +550,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
548
550
|
maxContextTokens: number;
|
|
549
551
|
maxOutputTokens: number;
|
|
550
552
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
551
|
-
apiFormats?: ("embeddings" | "
|
|
553
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
552
554
|
realtime?: {
|
|
553
555
|
transports: "websocket"[];
|
|
554
556
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -627,7 +629,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
627
629
|
capabilities: {
|
|
628
630
|
tools: boolean;
|
|
629
631
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
630
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
632
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
631
633
|
parallelToolCalls: boolean;
|
|
632
634
|
structuredOutput: boolean;
|
|
633
635
|
jsonMode: boolean;
|
|
@@ -637,7 +639,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
637
639
|
promptCaching: boolean;
|
|
638
640
|
maxContextTokens: number;
|
|
639
641
|
maxOutputTokens: number;
|
|
640
|
-
apiFormats?: ("embeddings" | "
|
|
642
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
641
643
|
realtime?: {
|
|
642
644
|
transports: "websocket"[];
|
|
643
645
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -675,7 +677,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
675
677
|
capabilities: {
|
|
676
678
|
tools: boolean;
|
|
677
679
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
678
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
680
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
679
681
|
parallelToolCalls: boolean;
|
|
680
682
|
structuredOutput: boolean;
|
|
681
683
|
jsonMode: boolean;
|
|
@@ -685,7 +687,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
685
687
|
maxContextTokens: number;
|
|
686
688
|
maxOutputTokens: number;
|
|
687
689
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
688
|
-
apiFormats?: ("embeddings" | "
|
|
690
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
689
691
|
realtime?: {
|
|
690
692
|
transports: "websocket"[];
|
|
691
693
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -723,7 +725,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
723
725
|
capabilities: {
|
|
724
726
|
tools: boolean;
|
|
725
727
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
726
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
728
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
727
729
|
parallelToolCalls: boolean;
|
|
728
730
|
structuredOutput: boolean;
|
|
729
731
|
jsonMode: boolean;
|
|
@@ -733,7 +735,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
733
735
|
promptCaching: boolean;
|
|
734
736
|
maxContextTokens: number;
|
|
735
737
|
maxOutputTokens: number;
|
|
736
|
-
apiFormats?: ("embeddings" | "
|
|
738
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
737
739
|
realtime?: {
|
|
738
740
|
transports: "websocket"[];
|
|
739
741
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -771,7 +773,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
771
773
|
capabilities: {
|
|
772
774
|
tools: boolean;
|
|
773
775
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
774
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
776
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
775
777
|
parallelToolCalls: boolean;
|
|
776
778
|
structuredOutput: boolean;
|
|
777
779
|
jsonMode: boolean;
|
|
@@ -781,7 +783,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
781
783
|
maxContextTokens: number;
|
|
782
784
|
maxOutputTokens: number;
|
|
783
785
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
784
|
-
apiFormats?: ("embeddings" | "
|
|
786
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
785
787
|
realtime?: {
|
|
786
788
|
transports: "websocket"[];
|
|
787
789
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -1589,7 +1591,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1589
1591
|
availableRevisions: z.ZodArray<z.ZodString, "many">;
|
|
1590
1592
|
capabilities: z.ZodEffects<z.ZodObject<{
|
|
1591
1593
|
inputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
1592
|
-
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding"]>, "many">;
|
|
1594
|
+
outputModalities: z.ZodArray<z.ZodEnum<["text", "image", "audio", "video", "embedding", "decisions"]>, "many">;
|
|
1593
1595
|
tools: z.ZodBoolean;
|
|
1594
1596
|
parallelToolCalls: z.ZodBoolean;
|
|
1595
1597
|
structuredOutput: z.ZodBoolean;
|
|
@@ -1634,7 +1636,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1634
1636
|
}, "strict", z.ZodTypeAny, {
|
|
1635
1637
|
tools: boolean;
|
|
1636
1638
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1637
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1639
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
1638
1640
|
parallelToolCalls: boolean;
|
|
1639
1641
|
structuredOutput: boolean;
|
|
1640
1642
|
jsonMode: boolean;
|
|
@@ -1644,7 +1646,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1644
1646
|
promptCaching: boolean;
|
|
1645
1647
|
maxContextTokens: number;
|
|
1646
1648
|
maxOutputTokens: number;
|
|
1647
|
-
apiFormats?: ("embeddings" | "
|
|
1649
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1648
1650
|
realtime?: {
|
|
1649
1651
|
transports: "websocket"[];
|
|
1650
1652
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -1652,7 +1654,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1652
1654
|
}, {
|
|
1653
1655
|
tools: boolean;
|
|
1654
1656
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1655
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1657
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
1656
1658
|
parallelToolCalls: boolean;
|
|
1657
1659
|
structuredOutput: boolean;
|
|
1658
1660
|
jsonMode: boolean;
|
|
@@ -1662,7 +1664,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1662
1664
|
maxContextTokens: number;
|
|
1663
1665
|
maxOutputTokens: number;
|
|
1664
1666
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
1665
|
-
apiFormats?: ("embeddings" | "
|
|
1667
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1666
1668
|
realtime?: {
|
|
1667
1669
|
transports: "websocket"[];
|
|
1668
1670
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -1670,7 +1672,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1670
1672
|
}>, {
|
|
1671
1673
|
tools: boolean;
|
|
1672
1674
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1673
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1675
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
1674
1676
|
parallelToolCalls: boolean;
|
|
1675
1677
|
structuredOutput: boolean;
|
|
1676
1678
|
jsonMode: boolean;
|
|
@@ -1680,7 +1682,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1680
1682
|
promptCaching: boolean;
|
|
1681
1683
|
maxContextTokens: number;
|
|
1682
1684
|
maxOutputTokens: number;
|
|
1683
|
-
apiFormats?: ("embeddings" | "
|
|
1685
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1684
1686
|
realtime?: {
|
|
1685
1687
|
transports: "websocket"[];
|
|
1686
1688
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -1688,7 +1690,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1688
1690
|
}, {
|
|
1689
1691
|
tools: boolean;
|
|
1690
1692
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1691
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1693
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
1692
1694
|
parallelToolCalls: boolean;
|
|
1693
1695
|
structuredOutput: boolean;
|
|
1694
1696
|
jsonMode: boolean;
|
|
@@ -1698,7 +1700,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1698
1700
|
maxContextTokens: number;
|
|
1699
1701
|
maxOutputTokens: number;
|
|
1700
1702
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
1701
|
-
apiFormats?: ("embeddings" | "
|
|
1703
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1702
1704
|
realtime?: {
|
|
1703
1705
|
transports: "websocket"[];
|
|
1704
1706
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -1974,7 +1976,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1974
1976
|
capabilities: {
|
|
1975
1977
|
tools: boolean;
|
|
1976
1978
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1977
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1979
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
1978
1980
|
parallelToolCalls: boolean;
|
|
1979
1981
|
structuredOutput: boolean;
|
|
1980
1982
|
jsonMode: boolean;
|
|
@@ -1984,7 +1986,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1984
1986
|
promptCaching: boolean;
|
|
1985
1987
|
maxContextTokens: number;
|
|
1986
1988
|
maxOutputTokens: number;
|
|
1987
|
-
apiFormats?: ("embeddings" | "
|
|
1989
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
1988
1990
|
realtime?: {
|
|
1989
1991
|
transports: "websocket"[];
|
|
1990
1992
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -2076,7 +2078,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
2076
2078
|
capabilities: {
|
|
2077
2079
|
tools: boolean;
|
|
2078
2080
|
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
2079
|
-
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
2081
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video" | "decisions")[];
|
|
2080
2082
|
parallelToolCalls: boolean;
|
|
2081
2083
|
structuredOutput: boolean;
|
|
2082
2084
|
jsonMode: boolean;
|
|
@@ -2086,7 +2088,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
2086
2088
|
maxContextTokens: number;
|
|
2087
2089
|
maxOutputTokens: number;
|
|
2088
2090
|
reasoningEfforts?: ("low" | "medium" | "high")[] | undefined;
|
|
2089
|
-
apiFormats?: ("embeddings" | "
|
|
2091
|
+
apiFormats?: ("embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches")[] | undefined;
|
|
2090
2092
|
realtime?: {
|
|
2091
2093
|
transports: "websocket"[];
|
|
2092
2094
|
sessionKinds: ("conversation" | "transcription" | "translation")[];
|
|
@@ -2173,6 +2175,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
2173
2175
|
} | undefined;
|
|
2174
2176
|
powerClass?: "medium" | "high" | "instant" | "pro" | "ultra" | undefined;
|
|
2175
2177
|
}>;
|
|
2178
|
+
export type InferenceOutputModality = z.infer<typeof inferenceOutputModalitySchema>;
|
|
2176
2179
|
export type InferenceModality = z.infer<typeof inferenceModalitySchema>;
|
|
2177
2180
|
export type ReasoningEffort = z.infer<typeof reasoningEffortSchema>;
|
|
2178
2181
|
export type PowerLevel = z.infer<typeof powerLevelSchema>;
|
|
@@ -320,6 +320,7 @@ export declare const meteredGenerationSchema: z.ZodObject<{
|
|
|
320
320
|
quantity: number;
|
|
321
321
|
}[];
|
|
322
322
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
323
|
+
economicPolicyVersion: string;
|
|
323
324
|
tariff: {
|
|
324
325
|
status: "quoted";
|
|
325
326
|
currency: string;
|
|
@@ -334,7 +335,6 @@ export declare const meteredGenerationSchema: z.ZodObject<{
|
|
|
334
335
|
};
|
|
335
336
|
meteredUsageId: string;
|
|
336
337
|
economicTreatment: "internal_metered";
|
|
337
|
-
economicPolicyVersion: string;
|
|
338
338
|
generationId?: string | undefined;
|
|
339
339
|
parentRequestId?: string | undefined;
|
|
340
340
|
delegatedUserId?: string | undefined;
|
|
@@ -354,6 +354,7 @@ export declare const meteredGenerationSchema: z.ZodObject<{
|
|
|
354
354
|
quantity: number;
|
|
355
355
|
}[];
|
|
356
356
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
357
|
+
economicPolicyVersion: string;
|
|
357
358
|
tariff: {
|
|
358
359
|
status: "quoted";
|
|
359
360
|
currency: string;
|
|
@@ -368,7 +369,6 @@ export declare const meteredGenerationSchema: z.ZodObject<{
|
|
|
368
369
|
};
|
|
369
370
|
meteredUsageId: string;
|
|
370
371
|
economicTreatment: "internal_metered";
|
|
371
|
-
economicPolicyVersion: string;
|
|
372
372
|
generationId?: string | undefined;
|
|
373
373
|
parentRequestId?: string | undefined;
|
|
374
374
|
delegatedUserId?: string | undefined;
|