@oxy.so/contracts 4.9.1 → 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.
@@ -1472,13 +1472,13 @@ export declare const clientRequestMetadataSchema: z.ZodObject<{
1472
1472
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1473
1473
  }, "strict", z.ZodTypeAny, {
1474
1474
  receivedAt: string;
1475
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
1475
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
1476
1476
  endpoint: string;
1477
1477
  clientRequestId?: string | undefined;
1478
1478
  labels?: Record<string, string> | undefined;
1479
1479
  }, {
1480
1480
  receivedAt: string;
1481
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
1481
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
1482
1482
  endpoint: string;
1483
1483
  clientRequestId?: string | undefined;
1484
1484
  labels?: Record<string, string> | undefined;
@@ -2533,13 +2533,13 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2533
2533
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2534
2534
  }, "strict", z.ZodTypeAny, {
2535
2535
  receivedAt: string;
2536
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2536
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2537
2537
  endpoint: string;
2538
2538
  clientRequestId?: string | undefined;
2539
2539
  labels?: Record<string, string> | undefined;
2540
2540
  }, {
2541
2541
  receivedAt: string;
2542
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2542
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2543
2543
  endpoint: string;
2544
2544
  clientRequestId?: string | undefined;
2545
2545
  labels?: Record<string, string> | undefined;
@@ -2773,7 +2773,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2773
2773
  };
2774
2774
  client: {
2775
2775
  receivedAt: string;
2776
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2776
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2777
2777
  endpoint: string;
2778
2778
  clientRequestId?: string | undefined;
2779
2779
  labels?: Record<string, string> | undefined;
@@ -2985,7 +2985,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2985
2985
  };
2986
2986
  client: {
2987
2987
  receivedAt: string;
2988
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2988
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2989
2989
  endpoint: string;
2990
2990
  clientRequestId?: string | undefined;
2991
2991
  labels?: Record<string, string> | undefined;
@@ -3211,7 +3211,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
3211
3211
  };
3212
3212
  client: {
3213
3213
  receivedAt: string;
3214
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
3214
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
3215
3215
  endpoint: string;
3216
3216
  clientRequestId?: string | undefined;
3217
3217
  labels?: Record<string, string> | undefined;
@@ -3423,7 +3423,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
3423
3423
  };
3424
3424
  client: {
3425
3425
  receivedAt: string;
3426
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
3426
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
3427
3427
  endpoint: string;
3428
3428
  clientRequestId?: string | undefined;
3429
3429
  labels?: Record<string, string> | undefined;
@@ -4525,13 +4525,13 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
4525
4525
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4526
4526
  }, "strict", z.ZodTypeAny, {
4527
4527
  receivedAt: string;
4528
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
4528
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
4529
4529
  endpoint: string;
4530
4530
  clientRequestId?: string | undefined;
4531
4531
  labels?: Record<string, string> | undefined;
4532
4532
  }, {
4533
4533
  receivedAt: string;
4534
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
4534
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
4535
4535
  endpoint: string;
4536
4536
  clientRequestId?: string | undefined;
4537
4537
  labels?: Record<string, string> | undefined;
@@ -4833,7 +4833,7 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
4833
4833
  };
4834
4834
  client: {
4835
4835
  receivedAt: string;
4836
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
4836
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
4837
4837
  endpoint: string;
4838
4838
  clientRequestId?: string | undefined;
4839
4839
  labels?: Record<string, string> | undefined;
@@ -5045,7 +5045,7 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
5045
5045
  };
5046
5046
  client: {
5047
5047
  receivedAt: string;
5048
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
5048
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
5049
5049
  endpoint: string;
5050
5050
  clientRequestId?: string | undefined;
5051
5051
  labels?: Record<string, string> | undefined;
@@ -5271,7 +5271,7 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
5271
5271
  };
5272
5272
  client: {
5273
5273
  receivedAt: string;
5274
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
5274
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
5275
5275
  endpoint: string;
5276
5276
  clientRequestId?: string | undefined;
5277
5277
  labels?: Record<string, string> | undefined;
@@ -5483,7 +5483,7 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
5483
5483
  };
5484
5484
  client: {
5485
5485
  receivedAt: string;
5486
- apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
5486
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
5487
5487
  endpoint: string;
5488
5488
  clientRequestId?: string | undefined;
5489
5489
  labels?: Record<string, string> | undefined;
@@ -5686,6 +5686,2230 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
5686
5686
  })[] | undefined;
5687
5687
  }>;
5688
5688
  export type ScopedInferenceRequest = z.infer<typeof scopedInferenceRequestSchema>;
5689
+ /** Private repeated Auto is independently negotiated, never a v3 fixture renewal. */
5690
+ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
5691
+ tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
5692
+ type: z.ZodLiteral<"function">;
5693
+ name: z.ZodString;
5694
+ description: z.ZodOptional<z.ZodString>;
5695
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5696
+ /** Ask the provider to enforce the schema, where it supports enforcement. */
5697
+ strict: z.ZodOptional<z.ZodBoolean>;
5698
+ }, "strict", z.ZodTypeAny, {
5699
+ type: "function";
5700
+ name: string;
5701
+ parameters: Record<string, unknown>;
5702
+ strict?: boolean | undefined;
5703
+ description?: string | undefined;
5704
+ }, {
5705
+ type: "function";
5706
+ name: string;
5707
+ parameters: Record<string, unknown>;
5708
+ strict?: boolean | undefined;
5709
+ description?: string | undefined;
5710
+ }>, "many">>;
5711
+ attribution: z.ZodObject<{
5712
+ principal: z.ZodObject<{
5713
+ billing: z.ZodObject<{
5714
+ accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
5715
+ }, "strict", z.ZodTypeAny, {
5716
+ accountId: string & z.BRAND<"OxyAccountId">;
5717
+ }, {
5718
+ accountId: string;
5719
+ }>;
5720
+ applicationId: z.ZodString;
5721
+ credentialId: z.ZodString;
5722
+ environment: z.ZodEnum<["development", "staging", "production"]>;
5723
+ inferenceScopes: z.ZodArray<z.ZodEnum<["inference:invoke", "inference:models:read", "inference:usage:read", "inference:routing:read", "inference:routing:write", "inference:providers:read", "inference:providers:write"]>, "many">;
5724
+ }, "strip", z.ZodTypeAny, {
5725
+ environment: "development" | "staging" | "production";
5726
+ applicationId: string;
5727
+ credentialId: string;
5728
+ billing: {
5729
+ accountId: string & z.BRAND<"OxyAccountId">;
5730
+ };
5731
+ inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
5732
+ }, {
5733
+ environment: "development" | "staging" | "production";
5734
+ applicationId: string;
5735
+ credentialId: string;
5736
+ billing: {
5737
+ accountId: string;
5738
+ };
5739
+ inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
5740
+ }>;
5741
+ userId: z.ZodOptional<z.ZodBranded<z.ZodString, "DelegatedUserId">>;
5742
+ requestId: z.ZodString;
5743
+ generationId: z.ZodOptional<z.ZodString>;
5744
+ }, "strip", z.ZodTypeAny, {
5745
+ requestId: string;
5746
+ principal: {
5747
+ environment: "development" | "staging" | "production";
5748
+ applicationId: string;
5749
+ credentialId: string;
5750
+ billing: {
5751
+ accountId: string & z.BRAND<"OxyAccountId">;
5752
+ };
5753
+ inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
5754
+ };
5755
+ userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
5756
+ generationId?: string | undefined;
5757
+ }, {
5758
+ requestId: string;
5759
+ principal: {
5760
+ environment: "development" | "staging" | "production";
5761
+ applicationId: string;
5762
+ credentialId: string;
5763
+ billing: {
5764
+ accountId: string;
5765
+ };
5766
+ inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
5767
+ };
5768
+ userId?: string | undefined;
5769
+ generationId?: string | undefined;
5770
+ }>;
5771
+ idempotencyKey: z.ZodOptional<z.ZodString>;
5772
+ client: z.ZodObject<{
5773
+ /** The public dialect the customer called. The response is rendered in it. */
5774
+ apiFormat: z.ZodEnum<["responses", "chat_completions", "embeddings", "decisions", "images_generations", "audio_transcriptions", "audio_speech", "rerank", "batches"]>;
5775
+ /** The public path, e.g. `/v1/responses`. */
5776
+ endpoint: z.ZodString;
5777
+ /** The customer's own correlation id, when they sent one. */
5778
+ clientRequestId: z.ZodOptional<z.ZodString>;
5779
+ receivedAt: z.ZodString;
5780
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5781
+ }, "strict", z.ZodTypeAny, {
5782
+ receivedAt: string;
5783
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
5784
+ endpoint: string;
5785
+ clientRequestId?: string | undefined;
5786
+ labels?: Record<string, string> | undefined;
5787
+ }, {
5788
+ receivedAt: string;
5789
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
5790
+ endpoint: string;
5791
+ clientRequestId?: string | undefined;
5792
+ labels?: Record<string, string> | undefined;
5793
+ }>;
5794
+ reasoning: z.ZodOptional<z.ZodObject<{
5795
+ effort: z.ZodEnum<["low", "medium", "high"]>;
5796
+ }, "strict", z.ZodTypeAny, {
5797
+ effort: "low" | "medium" | "high";
5798
+ }, {
5799
+ effort: "low" | "medium" | "high";
5800
+ }>>;
5801
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
5802
+ routingPolicy: z.ZodObject<{
5803
+ routingPolicyId: z.ZodString;
5804
+ policyVersion: z.ZodNumber;
5805
+ }, "strict", z.ZodTypeAny, {
5806
+ routingPolicyId: string;
5807
+ policyVersion: number;
5808
+ }, {
5809
+ routingPolicyId: string;
5810
+ policyVersion: number;
5811
+ }>;
5812
+ responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5813
+ type: z.ZodLiteral<"text">;
5814
+ }, "strict", z.ZodTypeAny, {
5815
+ type: "text";
5816
+ }, {
5817
+ type: "text";
5818
+ }>, z.ZodObject<{
5819
+ type: z.ZodLiteral<"json_object">;
5820
+ }, "strict", z.ZodTypeAny, {
5821
+ type: "json_object";
5822
+ }, {
5823
+ type: "json_object";
5824
+ }>, z.ZodObject<{
5825
+ type: z.ZodLiteral<"json_schema">;
5826
+ name: z.ZodString;
5827
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5828
+ strict: z.ZodBoolean;
5829
+ }, "strict", z.ZodTypeAny, {
5830
+ type: "json_schema";
5831
+ strict: boolean;
5832
+ schema: Record<string, unknown>;
5833
+ name: string;
5834
+ }, {
5835
+ type: "json_schema";
5836
+ strict: boolean;
5837
+ schema: Record<string, unknown>;
5838
+ name: string;
5839
+ }>]>>;
5840
+ target: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5841
+ kind: z.ZodLiteral<"model">;
5842
+ modelReference: z.ZodString;
5843
+ }, "strict", z.ZodTypeAny, {
5844
+ kind: "model";
5845
+ modelReference: string;
5846
+ }, {
5847
+ kind: "model";
5848
+ modelReference: string;
5849
+ }>, z.ZodObject<{
5850
+ kind: z.ZodLiteral<"routing_profile_id">;
5851
+ routingProfileId: z.ZodString;
5852
+ }, "strict", z.ZodTypeAny, {
5853
+ kind: "routing_profile_id";
5854
+ routingProfileId: string;
5855
+ }, {
5856
+ kind: "routing_profile_id";
5857
+ routingProfileId: string;
5858
+ }>]>;
5859
+ modality: z.ZodEnum<["text", "image", "audio", "video", "embedding"]>;
5860
+ input: z.ZodDiscriminatedUnion<"format", [z.ZodObject<{
5861
+ format: z.ZodLiteral<"decisions">;
5862
+ decisions: z.ZodEffects<z.ZodObject<{
5863
+ state: z.ZodString;
5864
+ instructions: z.ZodOptional<z.ZodString>;
5865
+ questions: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5866
+ kind: z.ZodLiteral<"choice">;
5867
+ options: z.ZodArray<z.ZodString, "many">;
5868
+ id: z.ZodString;
5869
+ question: z.ZodString;
5870
+ criteria: z.ZodOptional<z.ZodString>;
5871
+ }, "strict", z.ZodTypeAny, {
5872
+ options: string[];
5873
+ kind: "choice";
5874
+ id: string;
5875
+ question: string;
5876
+ criteria?: string | undefined;
5877
+ }, {
5878
+ options: string[];
5879
+ kind: "choice";
5880
+ id: string;
5881
+ question: string;
5882
+ criteria?: string | undefined;
5883
+ }>, z.ZodObject<{
5884
+ kind: z.ZodLiteral<"score">;
5885
+ levels: z.ZodArray<z.ZodString, "many">;
5886
+ id: z.ZodString;
5887
+ question: z.ZodString;
5888
+ criteria: z.ZodOptional<z.ZodString>;
5889
+ }, "strict", z.ZodTypeAny, {
5890
+ kind: "score";
5891
+ id: string;
5892
+ question: string;
5893
+ levels: string[];
5894
+ criteria?: string | undefined;
5895
+ }, {
5896
+ kind: "score";
5897
+ id: string;
5898
+ question: string;
5899
+ levels: string[];
5900
+ criteria?: string | undefined;
5901
+ }>, z.ZodObject<{
5902
+ kind: z.ZodLiteral<"noul">;
5903
+ id: z.ZodString;
5904
+ question: z.ZodString;
5905
+ criteria: z.ZodOptional<z.ZodString>;
5906
+ }, "strict", z.ZodTypeAny, {
5907
+ kind: "noul";
5908
+ id: string;
5909
+ question: string;
5910
+ criteria?: string | undefined;
5911
+ }, {
5912
+ kind: "noul";
5913
+ id: string;
5914
+ question: string;
5915
+ criteria?: string | undefined;
5916
+ }>]>, "many">;
5917
+ effort: z.ZodOptional<z.ZodEnum<["instant", "low", "medium", "high", "xhigh"]>>;
5918
+ }, "strict", z.ZodTypeAny, {
5919
+ state: string;
5920
+ questions: ({
5921
+ options: string[];
5922
+ kind: "choice";
5923
+ id: string;
5924
+ question: string;
5925
+ criteria?: string | undefined;
5926
+ } | {
5927
+ kind: "score";
5928
+ id: string;
5929
+ question: string;
5930
+ levels: string[];
5931
+ criteria?: string | undefined;
5932
+ } | {
5933
+ kind: "noul";
5934
+ id: string;
5935
+ question: string;
5936
+ criteria?: string | undefined;
5937
+ })[];
5938
+ instructions?: string | undefined;
5939
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
5940
+ }, {
5941
+ state: string;
5942
+ questions: ({
5943
+ options: string[];
5944
+ kind: "choice";
5945
+ id: string;
5946
+ question: string;
5947
+ criteria?: string | undefined;
5948
+ } | {
5949
+ kind: "score";
5950
+ id: string;
5951
+ question: string;
5952
+ levels: string[];
5953
+ criteria?: string | undefined;
5954
+ } | {
5955
+ kind: "noul";
5956
+ id: string;
5957
+ question: string;
5958
+ criteria?: string | undefined;
5959
+ })[];
5960
+ instructions?: string | undefined;
5961
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
5962
+ }>, {
5963
+ state: string;
5964
+ questions: ({
5965
+ options: string[];
5966
+ kind: "choice";
5967
+ id: string;
5968
+ question: string;
5969
+ criteria?: string | undefined;
5970
+ } | {
5971
+ kind: "score";
5972
+ id: string;
5973
+ question: string;
5974
+ levels: string[];
5975
+ criteria?: string | undefined;
5976
+ } | {
5977
+ kind: "noul";
5978
+ id: string;
5979
+ question: string;
5980
+ criteria?: string | undefined;
5981
+ })[];
5982
+ instructions?: string | undefined;
5983
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
5984
+ }, {
5985
+ state: string;
5986
+ questions: ({
5987
+ options: string[];
5988
+ kind: "choice";
5989
+ id: string;
5990
+ question: string;
5991
+ criteria?: string | undefined;
5992
+ } | {
5993
+ kind: "score";
5994
+ id: string;
5995
+ question: string;
5996
+ levels: string[];
5997
+ criteria?: string | undefined;
5998
+ } | {
5999
+ kind: "noul";
6000
+ id: string;
6001
+ question: string;
6002
+ criteria?: string | undefined;
6003
+ })[];
6004
+ instructions?: string | undefined;
6005
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
6006
+ }>;
6007
+ }, "strict", z.ZodTypeAny, {
6008
+ decisions: {
6009
+ state: string;
6010
+ questions: ({
6011
+ options: string[];
6012
+ kind: "choice";
6013
+ id: string;
6014
+ question: string;
6015
+ criteria?: string | undefined;
6016
+ } | {
6017
+ kind: "score";
6018
+ id: string;
6019
+ question: string;
6020
+ levels: string[];
6021
+ criteria?: string | undefined;
6022
+ } | {
6023
+ kind: "noul";
6024
+ id: string;
6025
+ question: string;
6026
+ criteria?: string | undefined;
6027
+ })[];
6028
+ instructions?: string | undefined;
6029
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
6030
+ };
6031
+ format: "decisions";
6032
+ }, {
6033
+ decisions: {
6034
+ state: string;
6035
+ questions: ({
6036
+ options: string[];
6037
+ kind: "choice";
6038
+ id: string;
6039
+ question: string;
6040
+ criteria?: string | undefined;
6041
+ } | {
6042
+ kind: "score";
6043
+ id: string;
6044
+ question: string;
6045
+ levels: string[];
6046
+ criteria?: string | undefined;
6047
+ } | {
6048
+ kind: "noul";
6049
+ id: string;
6050
+ question: string;
6051
+ criteria?: string | undefined;
6052
+ })[];
6053
+ instructions?: string | undefined;
6054
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
6055
+ };
6056
+ format: "decisions";
6057
+ }>, z.ZodObject<{
6058
+ format: z.ZodLiteral<"messages">;
6059
+ messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
6060
+ role: z.ZodEnum<["system", "developer", "user", "assistant", "tool"]>;
6061
+ content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6062
+ type: z.ZodLiteral<"text">;
6063
+ text: z.ZodString;
6064
+ }, "strict", z.ZodTypeAny, {
6065
+ type: "text";
6066
+ text: string;
6067
+ }, {
6068
+ type: "text";
6069
+ text: string;
6070
+ }>, z.ZodObject<{
6071
+ type: z.ZodLiteral<"image">;
6072
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
6073
+ kind: z.ZodLiteral<"url">;
6074
+ url: z.ZodString;
6075
+ }, "strict", z.ZodTypeAny, {
6076
+ kind: "url";
6077
+ url: string;
6078
+ }, {
6079
+ kind: "url";
6080
+ url: string;
6081
+ }>, z.ZodObject<{
6082
+ kind: z.ZodLiteral<"inline">;
6083
+ mediaType: z.ZodString;
6084
+ data: z.ZodString;
6085
+ }, "strict", z.ZodTypeAny, {
6086
+ kind: "inline";
6087
+ data: string;
6088
+ mediaType: string;
6089
+ }, {
6090
+ kind: "inline";
6091
+ data: string;
6092
+ mediaType: string;
6093
+ }>]>;
6094
+ /** Provider-independent hint; providers that ignore it are unaffected. */
6095
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
6096
+ }, "strict", z.ZodTypeAny, {
6097
+ type: "image";
6098
+ source: {
6099
+ kind: "url";
6100
+ url: string;
6101
+ } | {
6102
+ kind: "inline";
6103
+ data: string;
6104
+ mediaType: string;
6105
+ };
6106
+ detail?: "low" | "high" | "auto" | undefined;
6107
+ }, {
6108
+ type: "image";
6109
+ source: {
6110
+ kind: "url";
6111
+ url: string;
6112
+ } | {
6113
+ kind: "inline";
6114
+ data: string;
6115
+ mediaType: string;
6116
+ };
6117
+ detail?: "low" | "high" | "auto" | undefined;
6118
+ }>, z.ZodObject<{
6119
+ type: z.ZodLiteral<"audio">;
6120
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
6121
+ kind: z.ZodLiteral<"url">;
6122
+ url: z.ZodString;
6123
+ }, "strict", z.ZodTypeAny, {
6124
+ kind: "url";
6125
+ url: string;
6126
+ }, {
6127
+ kind: "url";
6128
+ url: string;
6129
+ }>, z.ZodObject<{
6130
+ kind: z.ZodLiteral<"inline">;
6131
+ mediaType: z.ZodString;
6132
+ data: z.ZodString;
6133
+ }, "strict", z.ZodTypeAny, {
6134
+ kind: "inline";
6135
+ data: string;
6136
+ mediaType: string;
6137
+ }, {
6138
+ kind: "inline";
6139
+ data: string;
6140
+ mediaType: string;
6141
+ }>]>;
6142
+ }, "strict", z.ZodTypeAny, {
6143
+ type: "audio";
6144
+ source: {
6145
+ kind: "url";
6146
+ url: string;
6147
+ } | {
6148
+ kind: "inline";
6149
+ data: string;
6150
+ mediaType: string;
6151
+ };
6152
+ }, {
6153
+ type: "audio";
6154
+ source: {
6155
+ kind: "url";
6156
+ url: string;
6157
+ } | {
6158
+ kind: "inline";
6159
+ data: string;
6160
+ mediaType: string;
6161
+ };
6162
+ }>, z.ZodObject<{
6163
+ type: z.ZodLiteral<"file">;
6164
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
6165
+ kind: z.ZodLiteral<"url">;
6166
+ url: z.ZodString;
6167
+ }, "strict", z.ZodTypeAny, {
6168
+ kind: "url";
6169
+ url: string;
6170
+ }, {
6171
+ kind: "url";
6172
+ url: string;
6173
+ }>, z.ZodObject<{
6174
+ kind: z.ZodLiteral<"inline">;
6175
+ mediaType: z.ZodString;
6176
+ data: z.ZodString;
6177
+ }, "strict", z.ZodTypeAny, {
6178
+ kind: "inline";
6179
+ data: string;
6180
+ mediaType: string;
6181
+ }, {
6182
+ kind: "inline";
6183
+ data: string;
6184
+ mediaType: string;
6185
+ }>]>;
6186
+ filename: z.ZodOptional<z.ZodString>;
6187
+ }, "strict", z.ZodTypeAny, {
6188
+ type: "file";
6189
+ source: {
6190
+ kind: "url";
6191
+ url: string;
6192
+ } | {
6193
+ kind: "inline";
6194
+ data: string;
6195
+ mediaType: string;
6196
+ };
6197
+ filename?: string | undefined;
6198
+ }, {
6199
+ type: "file";
6200
+ source: {
6201
+ kind: "url";
6202
+ url: string;
6203
+ } | {
6204
+ kind: "inline";
6205
+ data: string;
6206
+ mediaType: string;
6207
+ };
6208
+ filename?: string | undefined;
6209
+ }>, z.ZodObject<{
6210
+ type: z.ZodLiteral<"refusal">;
6211
+ text: z.ZodString;
6212
+ }, "strict", z.ZodTypeAny, {
6213
+ type: "refusal";
6214
+ text: string;
6215
+ }, {
6216
+ type: "refusal";
6217
+ text: string;
6218
+ }>]>, "many">;
6219
+ /** Participant name, where the dialect supports naming participants. */
6220
+ name: z.ZodOptional<z.ZodString>;
6221
+ /** The tool call this message answers. Required on, and only on, `tool`. */
6222
+ toolCallId: z.ZodOptional<z.ZodString>;
6223
+ /** Tool calls the assistant made. Only on `assistant`. */
6224
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
6225
+ id: z.ZodString;
6226
+ name: z.ZodString;
6227
+ arguments: z.ZodString;
6228
+ }, "strict", z.ZodTypeAny, {
6229
+ name: string;
6230
+ id: string;
6231
+ arguments: string;
6232
+ }, {
6233
+ name: string;
6234
+ id: string;
6235
+ arguments: string;
6236
+ }>, "many">>;
6237
+ }, "strict", z.ZodTypeAny, {
6238
+ content: ({
6239
+ type: "text";
6240
+ text: string;
6241
+ } | {
6242
+ type: "image";
6243
+ source: {
6244
+ kind: "url";
6245
+ url: string;
6246
+ } | {
6247
+ kind: "inline";
6248
+ data: string;
6249
+ mediaType: string;
6250
+ };
6251
+ detail?: "low" | "high" | "auto" | undefined;
6252
+ } | {
6253
+ type: "audio";
6254
+ source: {
6255
+ kind: "url";
6256
+ url: string;
6257
+ } | {
6258
+ kind: "inline";
6259
+ data: string;
6260
+ mediaType: string;
6261
+ };
6262
+ } | {
6263
+ type: "file";
6264
+ source: {
6265
+ kind: "url";
6266
+ url: string;
6267
+ } | {
6268
+ kind: "inline";
6269
+ data: string;
6270
+ mediaType: string;
6271
+ };
6272
+ filename?: string | undefined;
6273
+ } | {
6274
+ type: "refusal";
6275
+ text: string;
6276
+ })[];
6277
+ role: "system" | "tool" | "user" | "developer" | "assistant";
6278
+ name?: string | undefined;
6279
+ toolCallId?: string | undefined;
6280
+ toolCalls?: {
6281
+ name: string;
6282
+ id: string;
6283
+ arguments: string;
6284
+ }[] | undefined;
6285
+ }, {
6286
+ content: ({
6287
+ type: "text";
6288
+ text: string;
6289
+ } | {
6290
+ type: "image";
6291
+ source: {
6292
+ kind: "url";
6293
+ url: string;
6294
+ } | {
6295
+ kind: "inline";
6296
+ data: string;
6297
+ mediaType: string;
6298
+ };
6299
+ detail?: "low" | "high" | "auto" | undefined;
6300
+ } | {
6301
+ type: "audio";
6302
+ source: {
6303
+ kind: "url";
6304
+ url: string;
6305
+ } | {
6306
+ kind: "inline";
6307
+ data: string;
6308
+ mediaType: string;
6309
+ };
6310
+ } | {
6311
+ type: "file";
6312
+ source: {
6313
+ kind: "url";
6314
+ url: string;
6315
+ } | {
6316
+ kind: "inline";
6317
+ data: string;
6318
+ mediaType: string;
6319
+ };
6320
+ filename?: string | undefined;
6321
+ } | {
6322
+ type: "refusal";
6323
+ text: string;
6324
+ })[];
6325
+ role: "system" | "tool" | "user" | "developer" | "assistant";
6326
+ name?: string | undefined;
6327
+ toolCallId?: string | undefined;
6328
+ toolCalls?: {
6329
+ name: string;
6330
+ id: string;
6331
+ arguments: string;
6332
+ }[] | undefined;
6333
+ }>, {
6334
+ content: ({
6335
+ type: "text";
6336
+ text: string;
6337
+ } | {
6338
+ type: "image";
6339
+ source: {
6340
+ kind: "url";
6341
+ url: string;
6342
+ } | {
6343
+ kind: "inline";
6344
+ data: string;
6345
+ mediaType: string;
6346
+ };
6347
+ detail?: "low" | "high" | "auto" | undefined;
6348
+ } | {
6349
+ type: "audio";
6350
+ source: {
6351
+ kind: "url";
6352
+ url: string;
6353
+ } | {
6354
+ kind: "inline";
6355
+ data: string;
6356
+ mediaType: string;
6357
+ };
6358
+ } | {
6359
+ type: "file";
6360
+ source: {
6361
+ kind: "url";
6362
+ url: string;
6363
+ } | {
6364
+ kind: "inline";
6365
+ data: string;
6366
+ mediaType: string;
6367
+ };
6368
+ filename?: string | undefined;
6369
+ } | {
6370
+ type: "refusal";
6371
+ text: string;
6372
+ })[];
6373
+ role: "system" | "tool" | "user" | "developer" | "assistant";
6374
+ name?: string | undefined;
6375
+ toolCallId?: string | undefined;
6376
+ toolCalls?: {
6377
+ name: string;
6378
+ id: string;
6379
+ arguments: string;
6380
+ }[] | undefined;
6381
+ }, {
6382
+ content: ({
6383
+ type: "text";
6384
+ text: string;
6385
+ } | {
6386
+ type: "image";
6387
+ source: {
6388
+ kind: "url";
6389
+ url: string;
6390
+ } | {
6391
+ kind: "inline";
6392
+ data: string;
6393
+ mediaType: string;
6394
+ };
6395
+ detail?: "low" | "high" | "auto" | undefined;
6396
+ } | {
6397
+ type: "audio";
6398
+ source: {
6399
+ kind: "url";
6400
+ url: string;
6401
+ } | {
6402
+ kind: "inline";
6403
+ data: string;
6404
+ mediaType: string;
6405
+ };
6406
+ } | {
6407
+ type: "file";
6408
+ source: {
6409
+ kind: "url";
6410
+ url: string;
6411
+ } | {
6412
+ kind: "inline";
6413
+ data: string;
6414
+ mediaType: string;
6415
+ };
6416
+ filename?: string | undefined;
6417
+ } | {
6418
+ type: "refusal";
6419
+ text: string;
6420
+ })[];
6421
+ role: "system" | "tool" | "user" | "developer" | "assistant";
6422
+ name?: string | undefined;
6423
+ toolCallId?: string | undefined;
6424
+ toolCalls?: {
6425
+ name: string;
6426
+ id: string;
6427
+ arguments: string;
6428
+ }[] | undefined;
6429
+ }>, "many">;
6430
+ }, "strict", z.ZodTypeAny, {
6431
+ format: "messages";
6432
+ messages: {
6433
+ content: ({
6434
+ type: "text";
6435
+ text: string;
6436
+ } | {
6437
+ type: "image";
6438
+ source: {
6439
+ kind: "url";
6440
+ url: string;
6441
+ } | {
6442
+ kind: "inline";
6443
+ data: string;
6444
+ mediaType: string;
6445
+ };
6446
+ detail?: "low" | "high" | "auto" | undefined;
6447
+ } | {
6448
+ type: "audio";
6449
+ source: {
6450
+ kind: "url";
6451
+ url: string;
6452
+ } | {
6453
+ kind: "inline";
6454
+ data: string;
6455
+ mediaType: string;
6456
+ };
6457
+ } | {
6458
+ type: "file";
6459
+ source: {
6460
+ kind: "url";
6461
+ url: string;
6462
+ } | {
6463
+ kind: "inline";
6464
+ data: string;
6465
+ mediaType: string;
6466
+ };
6467
+ filename?: string | undefined;
6468
+ } | {
6469
+ type: "refusal";
6470
+ text: string;
6471
+ })[];
6472
+ role: "system" | "tool" | "user" | "developer" | "assistant";
6473
+ name?: string | undefined;
6474
+ toolCallId?: string | undefined;
6475
+ toolCalls?: {
6476
+ name: string;
6477
+ id: string;
6478
+ arguments: string;
6479
+ }[] | undefined;
6480
+ }[];
6481
+ }, {
6482
+ format: "messages";
6483
+ messages: {
6484
+ content: ({
6485
+ type: "text";
6486
+ text: string;
6487
+ } | {
6488
+ type: "image";
6489
+ source: {
6490
+ kind: "url";
6491
+ url: string;
6492
+ } | {
6493
+ kind: "inline";
6494
+ data: string;
6495
+ mediaType: string;
6496
+ };
6497
+ detail?: "low" | "high" | "auto" | undefined;
6498
+ } | {
6499
+ type: "audio";
6500
+ source: {
6501
+ kind: "url";
6502
+ url: string;
6503
+ } | {
6504
+ kind: "inline";
6505
+ data: string;
6506
+ mediaType: string;
6507
+ };
6508
+ } | {
6509
+ type: "file";
6510
+ source: {
6511
+ kind: "url";
6512
+ url: string;
6513
+ } | {
6514
+ kind: "inline";
6515
+ data: string;
6516
+ mediaType: string;
6517
+ };
6518
+ filename?: string | undefined;
6519
+ } | {
6520
+ type: "refusal";
6521
+ text: string;
6522
+ })[];
6523
+ role: "system" | "tool" | "user" | "developer" | "assistant";
6524
+ name?: string | undefined;
6525
+ toolCallId?: string | undefined;
6526
+ toolCalls?: {
6527
+ name: string;
6528
+ id: string;
6529
+ arguments: string;
6530
+ }[] | undefined;
6531
+ }[];
6532
+ }>, z.ZodObject<{
6533
+ format: z.ZodLiteral<"text">;
6534
+ text: z.ZodString;
6535
+ }, "strict", z.ZodTypeAny, {
6536
+ text: string;
6537
+ format: "text";
6538
+ }, {
6539
+ text: string;
6540
+ format: "text";
6541
+ }>, z.ZodObject<{
6542
+ format: z.ZodLiteral<"text_batch">;
6543
+ texts: z.ZodArray<z.ZodString, "many">;
6544
+ }, "strict", z.ZodTypeAny, {
6545
+ format: "text_batch";
6546
+ texts: string[];
6547
+ }, {
6548
+ format: "text_batch";
6549
+ texts: string[];
6550
+ }>]>;
6551
+ stream: z.ZodBoolean;
6552
+ sampling: z.ZodObject<{
6553
+ temperature: z.ZodOptional<z.ZodNumber>;
6554
+ topP: z.ZodOptional<z.ZodNumber>;
6555
+ topK: z.ZodOptional<z.ZodNumber>;
6556
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
6557
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
6558
+ /** A seed makes a request reproducible on providers that honour one. */
6559
+ seed: z.ZodOptional<z.ZodNumber>;
6560
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6561
+ }, "strict", z.ZodTypeAny, {
6562
+ seed?: number | undefined;
6563
+ temperature?: number | undefined;
6564
+ topP?: number | undefined;
6565
+ topK?: number | undefined;
6566
+ frequencyPenalty?: number | undefined;
6567
+ presencePenalty?: number | undefined;
6568
+ stopSequences?: string[] | undefined;
6569
+ }, {
6570
+ seed?: number | undefined;
6571
+ temperature?: number | undefined;
6572
+ topP?: number | undefined;
6573
+ topK?: number | undefined;
6574
+ frequencyPenalty?: number | undefined;
6575
+ presencePenalty?: number | undefined;
6576
+ stopSequences?: string[] | undefined;
6577
+ }>;
6578
+ speech: z.ZodOptional<z.ZodObject<{
6579
+ voice: z.ZodString;
6580
+ responseFormat: z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>;
6581
+ speed: z.ZodOptional<z.ZodNumber>;
6582
+ }, "strict", z.ZodTypeAny, {
6583
+ voice: string;
6584
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
6585
+ speed?: number | undefined;
6586
+ }, {
6587
+ voice: string;
6588
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
6589
+ speed?: number | undefined;
6590
+ }>>;
6591
+ audioOutput: z.ZodOptional<z.ZodObject<{
6592
+ voice: z.ZodString;
6593
+ format: z.ZodEnum<["wav", "mp3", "flac", "opus", "pcm"]>;
6594
+ }, "strict", z.ZodTypeAny, {
6595
+ format: "mp3" | "opus" | "flac" | "wav" | "pcm";
6596
+ voice: string;
6597
+ }, {
6598
+ format: "mp3" | "opus" | "flac" | "wav" | "pcm";
6599
+ voice: string;
6600
+ }>>;
6601
+ toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
6602
+ type: z.ZodLiteral<"function">;
6603
+ name: z.ZodString;
6604
+ }, "strict", z.ZodTypeAny, {
6605
+ type: "function";
6606
+ name: string;
6607
+ }, {
6608
+ type: "function";
6609
+ name: string;
6610
+ }>]>>;
6611
+ authorizedRoutes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"substitution", [z.ZodObject<{
6612
+ deploymentId: z.ZodString;
6613
+ modelReference: z.ZodString;
6614
+ provider: z.ZodString;
6615
+ regions: z.ZodArray<z.ZodString, "many">;
6616
+ customerProviderCredential: z.ZodOptional<z.ZodObject<{
6617
+ credentialHandle: z.ZodString;
6618
+ credentialRevision: z.ZodNumber;
6619
+ ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
6620
+ connectionId: z.ZodString;
6621
+ environment: z.ZodEnum<["development", "staging", "production"]>;
6622
+ }, "strict", z.ZodTypeAny, {
6623
+ environment: "development" | "staging" | "production";
6624
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
6625
+ connectionId: string;
6626
+ credentialHandle: string;
6627
+ credentialRevision: number;
6628
+ }, {
6629
+ environment: "development" | "staging" | "production";
6630
+ ownerAccountId: string;
6631
+ connectionId: string;
6632
+ credentialHandle: string;
6633
+ credentialRevision: number;
6634
+ }>>;
6635
+ substitution: z.ZodLiteral<"same_model">;
6636
+ }, "strict", z.ZodTypeAny, {
6637
+ provider: string;
6638
+ modelReference: string;
6639
+ deploymentId: string;
6640
+ regions: string[];
6641
+ substitution: "same_model";
6642
+ customerProviderCredential?: {
6643
+ environment: "development" | "staging" | "production";
6644
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
6645
+ connectionId: string;
6646
+ credentialHandle: string;
6647
+ credentialRevision: number;
6648
+ } | undefined;
6649
+ }, {
6650
+ provider: string;
6651
+ modelReference: string;
6652
+ deploymentId: string;
6653
+ regions: string[];
6654
+ substitution: "same_model";
6655
+ customerProviderCredential?: {
6656
+ environment: "development" | "staging" | "production";
6657
+ ownerAccountId: string;
6658
+ connectionId: string;
6659
+ credentialHandle: string;
6660
+ credentialRevision: number;
6661
+ } | undefined;
6662
+ }>, z.ZodObject<{
6663
+ authorizedByPolicy: z.ZodLiteral<true>;
6664
+ deploymentId: z.ZodString;
6665
+ modelReference: z.ZodString;
6666
+ provider: z.ZodString;
6667
+ regions: z.ZodArray<z.ZodString, "many">;
6668
+ customerProviderCredential: z.ZodOptional<z.ZodObject<{
6669
+ credentialHandle: z.ZodString;
6670
+ credentialRevision: z.ZodNumber;
6671
+ ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
6672
+ connectionId: z.ZodString;
6673
+ environment: z.ZodEnum<["development", "staging", "production"]>;
6674
+ }, "strict", z.ZodTypeAny, {
6675
+ environment: "development" | "staging" | "production";
6676
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
6677
+ connectionId: string;
6678
+ credentialHandle: string;
6679
+ credentialRevision: number;
6680
+ }, {
6681
+ environment: "development" | "staging" | "production";
6682
+ ownerAccountId: string;
6683
+ connectionId: string;
6684
+ credentialHandle: string;
6685
+ credentialRevision: number;
6686
+ }>>;
6687
+ substitution: z.ZodLiteral<"cross_model">;
6688
+ }, "strict", z.ZodTypeAny, {
6689
+ provider: string;
6690
+ modelReference: string;
6691
+ deploymentId: string;
6692
+ regions: string[];
6693
+ substitution: "cross_model";
6694
+ authorizedByPolicy: true;
6695
+ customerProviderCredential?: {
6696
+ environment: "development" | "staging" | "production";
6697
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
6698
+ connectionId: string;
6699
+ credentialHandle: string;
6700
+ credentialRevision: number;
6701
+ } | undefined;
6702
+ }, {
6703
+ provider: string;
6704
+ modelReference: string;
6705
+ deploymentId: string;
6706
+ regions: string[];
6707
+ substitution: "cross_model";
6708
+ authorizedByPolicy: true;
6709
+ customerProviderCredential?: {
6710
+ environment: "development" | "staging" | "production";
6711
+ ownerAccountId: string;
6712
+ connectionId: string;
6713
+ credentialHandle: string;
6714
+ credentialRevision: number;
6715
+ } | undefined;
6716
+ }>]>, {
6717
+ provider: string;
6718
+ modelReference: string;
6719
+ deploymentId: string;
6720
+ regions: string[];
6721
+ substitution: "same_model";
6722
+ customerProviderCredential?: {
6723
+ environment: "development" | "staging" | "production";
6724
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
6725
+ connectionId: string;
6726
+ credentialHandle: string;
6727
+ credentialRevision: number;
6728
+ } | undefined;
6729
+ } | {
6730
+ provider: string;
6731
+ modelReference: string;
6732
+ deploymentId: string;
6733
+ regions: string[];
6734
+ substitution: "cross_model";
6735
+ authorizedByPolicy: true;
6736
+ customerProviderCredential?: {
6737
+ environment: "development" | "staging" | "production";
6738
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
6739
+ connectionId: string;
6740
+ credentialHandle: string;
6741
+ credentialRevision: number;
6742
+ } | undefined;
6743
+ }, {
6744
+ provider: string;
6745
+ modelReference: string;
6746
+ deploymentId: string;
6747
+ regions: string[];
6748
+ substitution: "same_model";
6749
+ customerProviderCredential?: {
6750
+ environment: "development" | "staging" | "production";
6751
+ ownerAccountId: string;
6752
+ connectionId: string;
6753
+ credentialHandle: string;
6754
+ credentialRevision: number;
6755
+ } | undefined;
6756
+ } | {
6757
+ provider: string;
6758
+ modelReference: string;
6759
+ deploymentId: string;
6760
+ regions: string[];
6761
+ substitution: "cross_model";
6762
+ authorizedByPolicy: true;
6763
+ customerProviderCredential?: {
6764
+ environment: "development" | "staging" | "production";
6765
+ ownerAccountId: string;
6766
+ connectionId: string;
6767
+ credentialHandle: string;
6768
+ credentialRevision: number;
6769
+ } | undefined;
6770
+ }>, "many">>;
6771
+ } & {
6772
+ schemaVersion: z.ZodLiteral<4>;
6773
+ privateAutoExecution: z.ZodEffects<z.ZodObject<{
6774
+ contractVersion: z.ZodLiteral<"3.7.0">;
6775
+ purpose: z.ZodLiteral<"private_auto_classifier">;
6776
+ classifierVersion: z.ZodLiteral<"jev-auto-v1">;
6777
+ approvalId: z.ZodString;
6778
+ approvalVersion: z.ZodNumber;
6779
+ approvalSha256: z.ZodString;
6780
+ parentMeteredUsageId: z.ZodString;
6781
+ parentRequestId: z.ZodString;
6782
+ operationId: z.ZodString;
6783
+ requestId: z.ZodString;
6784
+ inputSha256: z.ZodString;
6785
+ expiresAt: z.ZodString;
6786
+ runtimeExpiresAt: z.ZodString;
6787
+ principal: z.ZodObject<{
6788
+ accountId: z.ZodString;
6789
+ applicationId: z.ZodString;
6790
+ credentialId: z.ZodString;
6791
+ environment: z.ZodLiteral<"production">;
6792
+ lane: z.ZodLiteral<"service_token">;
6793
+ }, "strict", z.ZodTypeAny, {
6794
+ environment: "production";
6795
+ accountId: string;
6796
+ applicationId: string;
6797
+ credentialId: string;
6798
+ lane: "service_token";
6799
+ }, {
6800
+ environment: "production";
6801
+ accountId: string;
6802
+ applicationId: string;
6803
+ credentialId: string;
6804
+ lane: "service_token";
6805
+ }>;
6806
+ policy: z.ZodObject<{
6807
+ routingPolicyId: z.ZodString;
6808
+ policyVersion: z.ZodNumber;
6809
+ }, "strict", z.ZodTypeAny, {
6810
+ routingPolicyId: string;
6811
+ policyVersion: number;
6812
+ }, {
6813
+ routingPolicyId: string;
6814
+ policyVersion: number;
6815
+ }>;
6816
+ economicPolicyVersion: z.ZodString;
6817
+ economicRelationshipId: z.ZodString;
6818
+ deploymentId: z.ZodString;
6819
+ provider: z.ZodString;
6820
+ keyId: z.ZodString;
6821
+ modelReference: z.ZodEffects<z.ZodString, string, string>;
6822
+ upstreamModelId: z.ZodString;
6823
+ regions: z.ZodArray<z.ZodString, "many">;
6824
+ priceVersionId: z.ZodString;
6825
+ providerRateCardVersionId: z.ZodString;
6826
+ providerSourceVersion: z.ZodString;
6827
+ maxCostUsd: z.ZodEffects<z.ZodBranded<z.ZodString, "ExactDecimal">, string & z.BRAND<"ExactDecimal">, string>;
6828
+ snapshotId: z.ZodString;
6829
+ catalogueEvidenceHash: z.ZodString;
6830
+ }, "strict", z.ZodTypeAny, {
6831
+ purpose: "private_auto_classifier";
6832
+ expiresAt: string;
6833
+ requestId: string;
6834
+ keyId: string;
6835
+ principal: {
6836
+ environment: "production";
6837
+ accountId: string;
6838
+ applicationId: string;
6839
+ credentialId: string;
6840
+ lane: "service_token";
6841
+ };
6842
+ provider: string;
6843
+ priceVersionId: string;
6844
+ modelReference: string;
6845
+ policy: {
6846
+ routingPolicyId: string;
6847
+ policyVersion: number;
6848
+ };
6849
+ deploymentId: string;
6850
+ upstreamModelId: string;
6851
+ providerRateCardVersionId: string;
6852
+ providerSourceVersion: string;
6853
+ maxCostUsd: string & z.BRAND<"ExactDecimal">;
6854
+ snapshotId: string;
6855
+ catalogueEvidenceHash: string;
6856
+ regions: string[];
6857
+ operationId: string;
6858
+ classifierVersion: "jev-auto-v1";
6859
+ approvalId: string;
6860
+ approvalVersion: number;
6861
+ economicPolicyVersion: string;
6862
+ economicRelationshipId: string;
6863
+ contractVersion: "3.7.0";
6864
+ approvalSha256: string;
6865
+ parentMeteredUsageId: string;
6866
+ parentRequestId: string;
6867
+ inputSha256: string;
6868
+ runtimeExpiresAt: string;
6869
+ }, {
6870
+ purpose: "private_auto_classifier";
6871
+ expiresAt: string;
6872
+ requestId: string;
6873
+ keyId: string;
6874
+ principal: {
6875
+ environment: "production";
6876
+ accountId: string;
6877
+ applicationId: string;
6878
+ credentialId: string;
6879
+ lane: "service_token";
6880
+ };
6881
+ provider: string;
6882
+ priceVersionId: string;
6883
+ modelReference: string;
6884
+ policy: {
6885
+ routingPolicyId: string;
6886
+ policyVersion: number;
6887
+ };
6888
+ deploymentId: string;
6889
+ upstreamModelId: string;
6890
+ providerRateCardVersionId: string;
6891
+ providerSourceVersion: string;
6892
+ maxCostUsd: string;
6893
+ snapshotId: string;
6894
+ catalogueEvidenceHash: string;
6895
+ regions: string[];
6896
+ operationId: string;
6897
+ classifierVersion: "jev-auto-v1";
6898
+ approvalId: string;
6899
+ approvalVersion: number;
6900
+ economicPolicyVersion: string;
6901
+ economicRelationshipId: string;
6902
+ contractVersion: "3.7.0";
6903
+ approvalSha256: string;
6904
+ parentMeteredUsageId: string;
6905
+ parentRequestId: string;
6906
+ inputSha256: string;
6907
+ runtimeExpiresAt: string;
6908
+ }>, {
6909
+ purpose: "private_auto_classifier";
6910
+ expiresAt: string;
6911
+ requestId: string;
6912
+ keyId: string;
6913
+ principal: {
6914
+ environment: "production";
6915
+ accountId: string;
6916
+ applicationId: string;
6917
+ credentialId: string;
6918
+ lane: "service_token";
6919
+ };
6920
+ provider: string;
6921
+ priceVersionId: string;
6922
+ modelReference: string;
6923
+ policy: {
6924
+ routingPolicyId: string;
6925
+ policyVersion: number;
6926
+ };
6927
+ deploymentId: string;
6928
+ upstreamModelId: string;
6929
+ providerRateCardVersionId: string;
6930
+ providerSourceVersion: string;
6931
+ maxCostUsd: string & z.BRAND<"ExactDecimal">;
6932
+ snapshotId: string;
6933
+ catalogueEvidenceHash: string;
6934
+ regions: string[];
6935
+ operationId: string;
6936
+ classifierVersion: "jev-auto-v1";
6937
+ approvalId: string;
6938
+ approvalVersion: number;
6939
+ economicPolicyVersion: string;
6940
+ economicRelationshipId: string;
6941
+ contractVersion: "3.7.0";
6942
+ approvalSha256: string;
6943
+ parentMeteredUsageId: string;
6944
+ parentRequestId: string;
6945
+ inputSha256: string;
6946
+ runtimeExpiresAt: string;
6947
+ }, {
6948
+ purpose: "private_auto_classifier";
6949
+ expiresAt: string;
6950
+ requestId: string;
6951
+ keyId: string;
6952
+ principal: {
6953
+ environment: "production";
6954
+ accountId: string;
6955
+ applicationId: string;
6956
+ credentialId: string;
6957
+ lane: "service_token";
6958
+ };
6959
+ provider: string;
6960
+ priceVersionId: string;
6961
+ modelReference: string;
6962
+ policy: {
6963
+ routingPolicyId: string;
6964
+ policyVersion: number;
6965
+ };
6966
+ deploymentId: string;
6967
+ upstreamModelId: string;
6968
+ providerRateCardVersionId: string;
6969
+ providerSourceVersion: string;
6970
+ maxCostUsd: string;
6971
+ snapshotId: string;
6972
+ catalogueEvidenceHash: string;
6973
+ regions: string[];
6974
+ operationId: string;
6975
+ classifierVersion: "jev-auto-v1";
6976
+ approvalId: string;
6977
+ approvalVersion: number;
6978
+ economicPolicyVersion: string;
6979
+ economicRelationshipId: string;
6980
+ contractVersion: "3.7.0";
6981
+ approvalSha256: string;
6982
+ parentMeteredUsageId: string;
6983
+ parentRequestId: string;
6984
+ inputSha256: string;
6985
+ runtimeExpiresAt: string;
6986
+ }>;
6987
+ }, "strict", z.ZodTypeAny, {
6988
+ schemaVersion: 4;
6989
+ tools: {
6990
+ type: "function";
6991
+ name: string;
6992
+ parameters: Record<string, unknown>;
6993
+ strict?: boolean | undefined;
6994
+ description?: string | undefined;
6995
+ }[];
6996
+ attribution: {
6997
+ requestId: string;
6998
+ principal: {
6999
+ environment: "development" | "staging" | "production";
7000
+ applicationId: string;
7001
+ credentialId: string;
7002
+ billing: {
7003
+ accountId: string & z.BRAND<"OxyAccountId">;
7004
+ };
7005
+ inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
7006
+ };
7007
+ userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
7008
+ generationId?: string | undefined;
7009
+ };
7010
+ client: {
7011
+ receivedAt: string;
7012
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
7013
+ endpoint: string;
7014
+ clientRequestId?: string | undefined;
7015
+ labels?: Record<string, string> | undefined;
7016
+ };
7017
+ routingPolicy: {
7018
+ routingPolicyId: string;
7019
+ policyVersion: number;
7020
+ };
7021
+ target: {
7022
+ kind: "model";
7023
+ modelReference: string;
7024
+ } | {
7025
+ kind: "routing_profile_id";
7026
+ routingProfileId: string;
7027
+ };
7028
+ modality: "image" | "embedding" | "text" | "audio" | "video";
7029
+ input: {
7030
+ decisions: {
7031
+ state: string;
7032
+ questions: ({
7033
+ options: string[];
7034
+ kind: "choice";
7035
+ id: string;
7036
+ question: string;
7037
+ criteria?: string | undefined;
7038
+ } | {
7039
+ kind: "score";
7040
+ id: string;
7041
+ question: string;
7042
+ levels: string[];
7043
+ criteria?: string | undefined;
7044
+ } | {
7045
+ kind: "noul";
7046
+ id: string;
7047
+ question: string;
7048
+ criteria?: string | undefined;
7049
+ })[];
7050
+ instructions?: string | undefined;
7051
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
7052
+ };
7053
+ format: "decisions";
7054
+ } | {
7055
+ format: "messages";
7056
+ messages: {
7057
+ content: ({
7058
+ type: "text";
7059
+ text: string;
7060
+ } | {
7061
+ type: "image";
7062
+ source: {
7063
+ kind: "url";
7064
+ url: string;
7065
+ } | {
7066
+ kind: "inline";
7067
+ data: string;
7068
+ mediaType: string;
7069
+ };
7070
+ detail?: "low" | "high" | "auto" | undefined;
7071
+ } | {
7072
+ type: "audio";
7073
+ source: {
7074
+ kind: "url";
7075
+ url: string;
7076
+ } | {
7077
+ kind: "inline";
7078
+ data: string;
7079
+ mediaType: string;
7080
+ };
7081
+ } | {
7082
+ type: "file";
7083
+ source: {
7084
+ kind: "url";
7085
+ url: string;
7086
+ } | {
7087
+ kind: "inline";
7088
+ data: string;
7089
+ mediaType: string;
7090
+ };
7091
+ filename?: string | undefined;
7092
+ } | {
7093
+ type: "refusal";
7094
+ text: string;
7095
+ })[];
7096
+ role: "system" | "tool" | "user" | "developer" | "assistant";
7097
+ name?: string | undefined;
7098
+ toolCallId?: string | undefined;
7099
+ toolCalls?: {
7100
+ name: string;
7101
+ id: string;
7102
+ arguments: string;
7103
+ }[] | undefined;
7104
+ }[];
7105
+ } | {
7106
+ text: string;
7107
+ format: "text";
7108
+ } | {
7109
+ format: "text_batch";
7110
+ texts: string[];
7111
+ };
7112
+ stream: boolean;
7113
+ sampling: {
7114
+ seed?: number | undefined;
7115
+ temperature?: number | undefined;
7116
+ topP?: number | undefined;
7117
+ topK?: number | undefined;
7118
+ frequencyPenalty?: number | undefined;
7119
+ presencePenalty?: number | undefined;
7120
+ stopSequences?: string[] | undefined;
7121
+ };
7122
+ privateAutoExecution: {
7123
+ purpose: "private_auto_classifier";
7124
+ expiresAt: string;
7125
+ requestId: string;
7126
+ keyId: string;
7127
+ principal: {
7128
+ environment: "production";
7129
+ accountId: string;
7130
+ applicationId: string;
7131
+ credentialId: string;
7132
+ lane: "service_token";
7133
+ };
7134
+ provider: string;
7135
+ priceVersionId: string;
7136
+ modelReference: string;
7137
+ policy: {
7138
+ routingPolicyId: string;
7139
+ policyVersion: number;
7140
+ };
7141
+ deploymentId: string;
7142
+ upstreamModelId: string;
7143
+ providerRateCardVersionId: string;
7144
+ providerSourceVersion: string;
7145
+ maxCostUsd: string & z.BRAND<"ExactDecimal">;
7146
+ snapshotId: string;
7147
+ catalogueEvidenceHash: string;
7148
+ regions: string[];
7149
+ operationId: string;
7150
+ classifierVersion: "jev-auto-v1";
7151
+ approvalId: string;
7152
+ approvalVersion: number;
7153
+ economicPolicyVersion: string;
7154
+ economicRelationshipId: string;
7155
+ contractVersion: "3.7.0";
7156
+ approvalSha256: string;
7157
+ parentMeteredUsageId: string;
7158
+ parentRequestId: string;
7159
+ inputSha256: string;
7160
+ runtimeExpiresAt: string;
7161
+ };
7162
+ idempotencyKey?: string | undefined;
7163
+ reasoning?: {
7164
+ effort: "low" | "medium" | "high";
7165
+ } | undefined;
7166
+ maxOutputTokens?: number | undefined;
7167
+ responseFormat?: {
7168
+ type: "text";
7169
+ } | {
7170
+ type: "json_object";
7171
+ } | {
7172
+ type: "json_schema";
7173
+ strict: boolean;
7174
+ schema: Record<string, unknown>;
7175
+ name: string;
7176
+ } | undefined;
7177
+ speech?: {
7178
+ voice: string;
7179
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
7180
+ speed?: number | undefined;
7181
+ } | undefined;
7182
+ audioOutput?: {
7183
+ format: "mp3" | "opus" | "flac" | "wav" | "pcm";
7184
+ voice: string;
7185
+ } | undefined;
7186
+ toolChoice?: "none" | "required" | "auto" | {
7187
+ type: "function";
7188
+ name: string;
7189
+ } | undefined;
7190
+ authorizedRoutes?: ({
7191
+ provider: string;
7192
+ modelReference: string;
7193
+ deploymentId: string;
7194
+ regions: string[];
7195
+ substitution: "same_model";
7196
+ customerProviderCredential?: {
7197
+ environment: "development" | "staging" | "production";
7198
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
7199
+ connectionId: string;
7200
+ credentialHandle: string;
7201
+ credentialRevision: number;
7202
+ } | undefined;
7203
+ } | {
7204
+ provider: string;
7205
+ modelReference: string;
7206
+ deploymentId: string;
7207
+ regions: string[];
7208
+ substitution: "cross_model";
7209
+ authorizedByPolicy: true;
7210
+ customerProviderCredential?: {
7211
+ environment: "development" | "staging" | "production";
7212
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
7213
+ connectionId: string;
7214
+ credentialHandle: string;
7215
+ credentialRevision: number;
7216
+ } | undefined;
7217
+ })[] | undefined;
7218
+ }, {
7219
+ schemaVersion: 4;
7220
+ attribution: {
7221
+ requestId: string;
7222
+ principal: {
7223
+ environment: "development" | "staging" | "production";
7224
+ applicationId: string;
7225
+ credentialId: string;
7226
+ billing: {
7227
+ accountId: string;
7228
+ };
7229
+ inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
7230
+ };
7231
+ userId?: string | undefined;
7232
+ generationId?: string | undefined;
7233
+ };
7234
+ client: {
7235
+ receivedAt: string;
7236
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
7237
+ endpoint: string;
7238
+ clientRequestId?: string | undefined;
7239
+ labels?: Record<string, string> | undefined;
7240
+ };
7241
+ routingPolicy: {
7242
+ routingPolicyId: string;
7243
+ policyVersion: number;
7244
+ };
7245
+ target: {
7246
+ kind: "model";
7247
+ modelReference: string;
7248
+ } | {
7249
+ kind: "routing_profile_id";
7250
+ routingProfileId: string;
7251
+ };
7252
+ modality: "image" | "embedding" | "text" | "audio" | "video";
7253
+ input: {
7254
+ decisions: {
7255
+ state: string;
7256
+ questions: ({
7257
+ options: string[];
7258
+ kind: "choice";
7259
+ id: string;
7260
+ question: string;
7261
+ criteria?: string | undefined;
7262
+ } | {
7263
+ kind: "score";
7264
+ id: string;
7265
+ question: string;
7266
+ levels: string[];
7267
+ criteria?: string | undefined;
7268
+ } | {
7269
+ kind: "noul";
7270
+ id: string;
7271
+ question: string;
7272
+ criteria?: string | undefined;
7273
+ })[];
7274
+ instructions?: string | undefined;
7275
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
7276
+ };
7277
+ format: "decisions";
7278
+ } | {
7279
+ format: "messages";
7280
+ messages: {
7281
+ content: ({
7282
+ type: "text";
7283
+ text: string;
7284
+ } | {
7285
+ type: "image";
7286
+ source: {
7287
+ kind: "url";
7288
+ url: string;
7289
+ } | {
7290
+ kind: "inline";
7291
+ data: string;
7292
+ mediaType: string;
7293
+ };
7294
+ detail?: "low" | "high" | "auto" | undefined;
7295
+ } | {
7296
+ type: "audio";
7297
+ source: {
7298
+ kind: "url";
7299
+ url: string;
7300
+ } | {
7301
+ kind: "inline";
7302
+ data: string;
7303
+ mediaType: string;
7304
+ };
7305
+ } | {
7306
+ type: "file";
7307
+ source: {
7308
+ kind: "url";
7309
+ url: string;
7310
+ } | {
7311
+ kind: "inline";
7312
+ data: string;
7313
+ mediaType: string;
7314
+ };
7315
+ filename?: string | undefined;
7316
+ } | {
7317
+ type: "refusal";
7318
+ text: string;
7319
+ })[];
7320
+ role: "system" | "tool" | "user" | "developer" | "assistant";
7321
+ name?: string | undefined;
7322
+ toolCallId?: string | undefined;
7323
+ toolCalls?: {
7324
+ name: string;
7325
+ id: string;
7326
+ arguments: string;
7327
+ }[] | undefined;
7328
+ }[];
7329
+ } | {
7330
+ text: string;
7331
+ format: "text";
7332
+ } | {
7333
+ format: "text_batch";
7334
+ texts: string[];
7335
+ };
7336
+ stream: boolean;
7337
+ sampling: {
7338
+ seed?: number | undefined;
7339
+ temperature?: number | undefined;
7340
+ topP?: number | undefined;
7341
+ topK?: number | undefined;
7342
+ frequencyPenalty?: number | undefined;
7343
+ presencePenalty?: number | undefined;
7344
+ stopSequences?: string[] | undefined;
7345
+ };
7346
+ privateAutoExecution: {
7347
+ purpose: "private_auto_classifier";
7348
+ expiresAt: string;
7349
+ requestId: string;
7350
+ keyId: string;
7351
+ principal: {
7352
+ environment: "production";
7353
+ accountId: string;
7354
+ applicationId: string;
7355
+ credentialId: string;
7356
+ lane: "service_token";
7357
+ };
7358
+ provider: string;
7359
+ priceVersionId: string;
7360
+ modelReference: string;
7361
+ policy: {
7362
+ routingPolicyId: string;
7363
+ policyVersion: number;
7364
+ };
7365
+ deploymentId: string;
7366
+ upstreamModelId: string;
7367
+ providerRateCardVersionId: string;
7368
+ providerSourceVersion: string;
7369
+ maxCostUsd: string;
7370
+ snapshotId: string;
7371
+ catalogueEvidenceHash: string;
7372
+ regions: string[];
7373
+ operationId: string;
7374
+ classifierVersion: "jev-auto-v1";
7375
+ approvalId: string;
7376
+ approvalVersion: number;
7377
+ economicPolicyVersion: string;
7378
+ economicRelationshipId: string;
7379
+ contractVersion: "3.7.0";
7380
+ approvalSha256: string;
7381
+ parentMeteredUsageId: string;
7382
+ parentRequestId: string;
7383
+ inputSha256: string;
7384
+ runtimeExpiresAt: string;
7385
+ };
7386
+ tools?: {
7387
+ type: "function";
7388
+ name: string;
7389
+ parameters: Record<string, unknown>;
7390
+ strict?: boolean | undefined;
7391
+ description?: string | undefined;
7392
+ }[] | undefined;
7393
+ idempotencyKey?: string | undefined;
7394
+ reasoning?: {
7395
+ effort: "low" | "medium" | "high";
7396
+ } | undefined;
7397
+ maxOutputTokens?: number | undefined;
7398
+ responseFormat?: {
7399
+ type: "text";
7400
+ } | {
7401
+ type: "json_object";
7402
+ } | {
7403
+ type: "json_schema";
7404
+ strict: boolean;
7405
+ schema: Record<string, unknown>;
7406
+ name: string;
7407
+ } | undefined;
7408
+ speech?: {
7409
+ voice: string;
7410
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
7411
+ speed?: number | undefined;
7412
+ } | undefined;
7413
+ audioOutput?: {
7414
+ format: "mp3" | "opus" | "flac" | "wav" | "pcm";
7415
+ voice: string;
7416
+ } | undefined;
7417
+ toolChoice?: "none" | "required" | "auto" | {
7418
+ type: "function";
7419
+ name: string;
7420
+ } | undefined;
7421
+ authorizedRoutes?: ({
7422
+ provider: string;
7423
+ modelReference: string;
7424
+ deploymentId: string;
7425
+ regions: string[];
7426
+ substitution: "same_model";
7427
+ customerProviderCredential?: {
7428
+ environment: "development" | "staging" | "production";
7429
+ ownerAccountId: string;
7430
+ connectionId: string;
7431
+ credentialHandle: string;
7432
+ credentialRevision: number;
7433
+ } | undefined;
7434
+ } | {
7435
+ provider: string;
7436
+ modelReference: string;
7437
+ deploymentId: string;
7438
+ regions: string[];
7439
+ substitution: "cross_model";
7440
+ authorizedByPolicy: true;
7441
+ customerProviderCredential?: {
7442
+ environment: "development" | "staging" | "production";
7443
+ ownerAccountId: string;
7444
+ connectionId: string;
7445
+ credentialHandle: string;
7446
+ credentialRevision: number;
7447
+ } | undefined;
7448
+ })[] | undefined;
7449
+ }>, {
7450
+ schemaVersion: 4;
7451
+ tools: {
7452
+ type: "function";
7453
+ name: string;
7454
+ parameters: Record<string, unknown>;
7455
+ strict?: boolean | undefined;
7456
+ description?: string | undefined;
7457
+ }[];
7458
+ attribution: {
7459
+ requestId: string;
7460
+ principal: {
7461
+ environment: "development" | "staging" | "production";
7462
+ applicationId: string;
7463
+ credentialId: string;
7464
+ billing: {
7465
+ accountId: string & z.BRAND<"OxyAccountId">;
7466
+ };
7467
+ inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
7468
+ };
7469
+ userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
7470
+ generationId?: string | undefined;
7471
+ };
7472
+ client: {
7473
+ receivedAt: string;
7474
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
7475
+ endpoint: string;
7476
+ clientRequestId?: string | undefined;
7477
+ labels?: Record<string, string> | undefined;
7478
+ };
7479
+ routingPolicy: {
7480
+ routingPolicyId: string;
7481
+ policyVersion: number;
7482
+ };
7483
+ target: {
7484
+ kind: "model";
7485
+ modelReference: string;
7486
+ } | {
7487
+ kind: "routing_profile_id";
7488
+ routingProfileId: string;
7489
+ };
7490
+ modality: "image" | "embedding" | "text" | "audio" | "video";
7491
+ input: {
7492
+ decisions: {
7493
+ state: string;
7494
+ questions: ({
7495
+ options: string[];
7496
+ kind: "choice";
7497
+ id: string;
7498
+ question: string;
7499
+ criteria?: string | undefined;
7500
+ } | {
7501
+ kind: "score";
7502
+ id: string;
7503
+ question: string;
7504
+ levels: string[];
7505
+ criteria?: string | undefined;
7506
+ } | {
7507
+ kind: "noul";
7508
+ id: string;
7509
+ question: string;
7510
+ criteria?: string | undefined;
7511
+ })[];
7512
+ instructions?: string | undefined;
7513
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
7514
+ };
7515
+ format: "decisions";
7516
+ } | {
7517
+ format: "messages";
7518
+ messages: {
7519
+ content: ({
7520
+ type: "text";
7521
+ text: string;
7522
+ } | {
7523
+ type: "image";
7524
+ source: {
7525
+ kind: "url";
7526
+ url: string;
7527
+ } | {
7528
+ kind: "inline";
7529
+ data: string;
7530
+ mediaType: string;
7531
+ };
7532
+ detail?: "low" | "high" | "auto" | undefined;
7533
+ } | {
7534
+ type: "audio";
7535
+ source: {
7536
+ kind: "url";
7537
+ url: string;
7538
+ } | {
7539
+ kind: "inline";
7540
+ data: string;
7541
+ mediaType: string;
7542
+ };
7543
+ } | {
7544
+ type: "file";
7545
+ source: {
7546
+ kind: "url";
7547
+ url: string;
7548
+ } | {
7549
+ kind: "inline";
7550
+ data: string;
7551
+ mediaType: string;
7552
+ };
7553
+ filename?: string | undefined;
7554
+ } | {
7555
+ type: "refusal";
7556
+ text: string;
7557
+ })[];
7558
+ role: "system" | "tool" | "user" | "developer" | "assistant";
7559
+ name?: string | undefined;
7560
+ toolCallId?: string | undefined;
7561
+ toolCalls?: {
7562
+ name: string;
7563
+ id: string;
7564
+ arguments: string;
7565
+ }[] | undefined;
7566
+ }[];
7567
+ } | {
7568
+ text: string;
7569
+ format: "text";
7570
+ } | {
7571
+ format: "text_batch";
7572
+ texts: string[];
7573
+ };
7574
+ stream: boolean;
7575
+ sampling: {
7576
+ seed?: number | undefined;
7577
+ temperature?: number | undefined;
7578
+ topP?: number | undefined;
7579
+ topK?: number | undefined;
7580
+ frequencyPenalty?: number | undefined;
7581
+ presencePenalty?: number | undefined;
7582
+ stopSequences?: string[] | undefined;
7583
+ };
7584
+ privateAutoExecution: {
7585
+ purpose: "private_auto_classifier";
7586
+ expiresAt: string;
7587
+ requestId: string;
7588
+ keyId: string;
7589
+ principal: {
7590
+ environment: "production";
7591
+ accountId: string;
7592
+ applicationId: string;
7593
+ credentialId: string;
7594
+ lane: "service_token";
7595
+ };
7596
+ provider: string;
7597
+ priceVersionId: string;
7598
+ modelReference: string;
7599
+ policy: {
7600
+ routingPolicyId: string;
7601
+ policyVersion: number;
7602
+ };
7603
+ deploymentId: string;
7604
+ upstreamModelId: string;
7605
+ providerRateCardVersionId: string;
7606
+ providerSourceVersion: string;
7607
+ maxCostUsd: string & z.BRAND<"ExactDecimal">;
7608
+ snapshotId: string;
7609
+ catalogueEvidenceHash: string;
7610
+ regions: string[];
7611
+ operationId: string;
7612
+ classifierVersion: "jev-auto-v1";
7613
+ approvalId: string;
7614
+ approvalVersion: number;
7615
+ economicPolicyVersion: string;
7616
+ economicRelationshipId: string;
7617
+ contractVersion: "3.7.0";
7618
+ approvalSha256: string;
7619
+ parentMeteredUsageId: string;
7620
+ parentRequestId: string;
7621
+ inputSha256: string;
7622
+ runtimeExpiresAt: string;
7623
+ };
7624
+ idempotencyKey?: string | undefined;
7625
+ reasoning?: {
7626
+ effort: "low" | "medium" | "high";
7627
+ } | undefined;
7628
+ maxOutputTokens?: number | undefined;
7629
+ responseFormat?: {
7630
+ type: "text";
7631
+ } | {
7632
+ type: "json_object";
7633
+ } | {
7634
+ type: "json_schema";
7635
+ strict: boolean;
7636
+ schema: Record<string, unknown>;
7637
+ name: string;
7638
+ } | undefined;
7639
+ speech?: {
7640
+ voice: string;
7641
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
7642
+ speed?: number | undefined;
7643
+ } | undefined;
7644
+ audioOutput?: {
7645
+ format: "mp3" | "opus" | "flac" | "wav" | "pcm";
7646
+ voice: string;
7647
+ } | undefined;
7648
+ toolChoice?: "none" | "required" | "auto" | {
7649
+ type: "function";
7650
+ name: string;
7651
+ } | undefined;
7652
+ authorizedRoutes?: ({
7653
+ provider: string;
7654
+ modelReference: string;
7655
+ deploymentId: string;
7656
+ regions: string[];
7657
+ substitution: "same_model";
7658
+ customerProviderCredential?: {
7659
+ environment: "development" | "staging" | "production";
7660
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
7661
+ connectionId: string;
7662
+ credentialHandle: string;
7663
+ credentialRevision: number;
7664
+ } | undefined;
7665
+ } | {
7666
+ provider: string;
7667
+ modelReference: string;
7668
+ deploymentId: string;
7669
+ regions: string[];
7670
+ substitution: "cross_model";
7671
+ authorizedByPolicy: true;
7672
+ customerProviderCredential?: {
7673
+ environment: "development" | "staging" | "production";
7674
+ ownerAccountId: string & z.BRAND<"OxyAccountId">;
7675
+ connectionId: string;
7676
+ credentialHandle: string;
7677
+ credentialRevision: number;
7678
+ } | undefined;
7679
+ })[] | undefined;
7680
+ }, {
7681
+ schemaVersion: 4;
7682
+ attribution: {
7683
+ requestId: string;
7684
+ principal: {
7685
+ environment: "development" | "staging" | "production";
7686
+ applicationId: string;
7687
+ credentialId: string;
7688
+ billing: {
7689
+ accountId: string;
7690
+ };
7691
+ inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
7692
+ };
7693
+ userId?: string | undefined;
7694
+ generationId?: string | undefined;
7695
+ };
7696
+ client: {
7697
+ receivedAt: string;
7698
+ apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
7699
+ endpoint: string;
7700
+ clientRequestId?: string | undefined;
7701
+ labels?: Record<string, string> | undefined;
7702
+ };
7703
+ routingPolicy: {
7704
+ routingPolicyId: string;
7705
+ policyVersion: number;
7706
+ };
7707
+ target: {
7708
+ kind: "model";
7709
+ modelReference: string;
7710
+ } | {
7711
+ kind: "routing_profile_id";
7712
+ routingProfileId: string;
7713
+ };
7714
+ modality: "image" | "embedding" | "text" | "audio" | "video";
7715
+ input: {
7716
+ decisions: {
7717
+ state: string;
7718
+ questions: ({
7719
+ options: string[];
7720
+ kind: "choice";
7721
+ id: string;
7722
+ question: string;
7723
+ criteria?: string | undefined;
7724
+ } | {
7725
+ kind: "score";
7726
+ id: string;
7727
+ question: string;
7728
+ levels: string[];
7729
+ criteria?: string | undefined;
7730
+ } | {
7731
+ kind: "noul";
7732
+ id: string;
7733
+ question: string;
7734
+ criteria?: string | undefined;
7735
+ })[];
7736
+ instructions?: string | undefined;
7737
+ effort?: "low" | "medium" | "high" | "instant" | "xhigh" | undefined;
7738
+ };
7739
+ format: "decisions";
7740
+ } | {
7741
+ format: "messages";
7742
+ messages: {
7743
+ content: ({
7744
+ type: "text";
7745
+ text: string;
7746
+ } | {
7747
+ type: "image";
7748
+ source: {
7749
+ kind: "url";
7750
+ url: string;
7751
+ } | {
7752
+ kind: "inline";
7753
+ data: string;
7754
+ mediaType: string;
7755
+ };
7756
+ detail?: "low" | "high" | "auto" | undefined;
7757
+ } | {
7758
+ type: "audio";
7759
+ source: {
7760
+ kind: "url";
7761
+ url: string;
7762
+ } | {
7763
+ kind: "inline";
7764
+ data: string;
7765
+ mediaType: string;
7766
+ };
7767
+ } | {
7768
+ type: "file";
7769
+ source: {
7770
+ kind: "url";
7771
+ url: string;
7772
+ } | {
7773
+ kind: "inline";
7774
+ data: string;
7775
+ mediaType: string;
7776
+ };
7777
+ filename?: string | undefined;
7778
+ } | {
7779
+ type: "refusal";
7780
+ text: string;
7781
+ })[];
7782
+ role: "system" | "tool" | "user" | "developer" | "assistant";
7783
+ name?: string | undefined;
7784
+ toolCallId?: string | undefined;
7785
+ toolCalls?: {
7786
+ name: string;
7787
+ id: string;
7788
+ arguments: string;
7789
+ }[] | undefined;
7790
+ }[];
7791
+ } | {
7792
+ text: string;
7793
+ format: "text";
7794
+ } | {
7795
+ format: "text_batch";
7796
+ texts: string[];
7797
+ };
7798
+ stream: boolean;
7799
+ sampling: {
7800
+ seed?: number | undefined;
7801
+ temperature?: number | undefined;
7802
+ topP?: number | undefined;
7803
+ topK?: number | undefined;
7804
+ frequencyPenalty?: number | undefined;
7805
+ presencePenalty?: number | undefined;
7806
+ stopSequences?: string[] | undefined;
7807
+ };
7808
+ privateAutoExecution: {
7809
+ purpose: "private_auto_classifier";
7810
+ expiresAt: string;
7811
+ requestId: string;
7812
+ keyId: string;
7813
+ principal: {
7814
+ environment: "production";
7815
+ accountId: string;
7816
+ applicationId: string;
7817
+ credentialId: string;
7818
+ lane: "service_token";
7819
+ };
7820
+ provider: string;
7821
+ priceVersionId: string;
7822
+ modelReference: string;
7823
+ policy: {
7824
+ routingPolicyId: string;
7825
+ policyVersion: number;
7826
+ };
7827
+ deploymentId: string;
7828
+ upstreamModelId: string;
7829
+ providerRateCardVersionId: string;
7830
+ providerSourceVersion: string;
7831
+ maxCostUsd: string;
7832
+ snapshotId: string;
7833
+ catalogueEvidenceHash: string;
7834
+ regions: string[];
7835
+ operationId: string;
7836
+ classifierVersion: "jev-auto-v1";
7837
+ approvalId: string;
7838
+ approvalVersion: number;
7839
+ economicPolicyVersion: string;
7840
+ economicRelationshipId: string;
7841
+ contractVersion: "3.7.0";
7842
+ approvalSha256: string;
7843
+ parentMeteredUsageId: string;
7844
+ parentRequestId: string;
7845
+ inputSha256: string;
7846
+ runtimeExpiresAt: string;
7847
+ };
7848
+ tools?: {
7849
+ type: "function";
7850
+ name: string;
7851
+ parameters: Record<string, unknown>;
7852
+ strict?: boolean | undefined;
7853
+ description?: string | undefined;
7854
+ }[] | undefined;
7855
+ idempotencyKey?: string | undefined;
7856
+ reasoning?: {
7857
+ effort: "low" | "medium" | "high";
7858
+ } | undefined;
7859
+ maxOutputTokens?: number | undefined;
7860
+ responseFormat?: {
7861
+ type: "text";
7862
+ } | {
7863
+ type: "json_object";
7864
+ } | {
7865
+ type: "json_schema";
7866
+ strict: boolean;
7867
+ schema: Record<string, unknown>;
7868
+ name: string;
7869
+ } | undefined;
7870
+ speech?: {
7871
+ voice: string;
7872
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
7873
+ speed?: number | undefined;
7874
+ } | undefined;
7875
+ audioOutput?: {
7876
+ format: "mp3" | "opus" | "flac" | "wav" | "pcm";
7877
+ voice: string;
7878
+ } | undefined;
7879
+ toolChoice?: "none" | "required" | "auto" | {
7880
+ type: "function";
7881
+ name: string;
7882
+ } | undefined;
7883
+ authorizedRoutes?: ({
7884
+ provider: string;
7885
+ modelReference: string;
7886
+ deploymentId: string;
7887
+ regions: string[];
7888
+ substitution: "same_model";
7889
+ customerProviderCredential?: {
7890
+ environment: "development" | "staging" | "production";
7891
+ ownerAccountId: string;
7892
+ connectionId: string;
7893
+ credentialHandle: string;
7894
+ credentialRevision: number;
7895
+ } | undefined;
7896
+ } | {
7897
+ provider: string;
7898
+ modelReference: string;
7899
+ deploymentId: string;
7900
+ regions: string[];
7901
+ substitution: "cross_model";
7902
+ authorizedByPolicy: true;
7903
+ customerProviderCredential?: {
7904
+ environment: "development" | "staging" | "production";
7905
+ ownerAccountId: string;
7906
+ connectionId: string;
7907
+ credentialHandle: string;
7908
+ credentialRevision: number;
7909
+ } | undefined;
7910
+ })[] | undefined;
7911
+ }>;
7912
+ export type PrivateAutoInferenceRequest = z.infer<typeof privateAutoInferenceRequestSchema>;
5689
7913
  export type InferenceContentSource = z.infer<typeof inferenceContentSourceSchema>;
5690
7914
  export type InferenceContentPart = z.infer<typeof inferenceContentPartSchema>;
5691
7915
  export type InferenceToolCall = z.infer<typeof inferenceToolCallSchema>;