@oxy.so/contracts 5.8.0 → 6.0.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/accountAccess.js +6 -5
- package/dist/cjs/accountEmail.js +13 -5
- package/dist/cjs/accountGraph.js +10 -9
- package/dist/cjs/accountName.js +3 -2
- package/dist/cjs/agency.js +91 -34
- package/dist/cjs/agentKeys.js +21 -17
- package/dist/cjs/appAssertions.js +14 -13
- package/dist/cjs/applicationRoles.js +19 -12
- package/dist/cjs/civic.js +10 -9
- package/dist/cjs/client/check.js +61 -53
- package/dist/cjs/consoleOnboarding.js +9 -4
- package/dist/cjs/contentClaims.js +23 -14
- package/dist/cjs/deviceDirectory.js +11 -9
- package/dist/cjs/deviceSession.js +27 -25
- package/dist/cjs/email/messages.js +20 -18
- package/dist/cjs/emailAgentContext.js +11 -9
- package/dist/cjs/externalIdentity.js +15 -11
- package/dist/cjs/federationInstanceFetch.js +12 -7
- package/dist/cjs/identity.js +19 -17
- package/dist/cjs/identityLink.js +6 -4
- package/dist/cjs/identityProof.js +6 -4
- package/dist/cjs/inboxPush.js +5 -4
- package/dist/cjs/index.js +15 -6
- package/dist/cjs/inference/accountBilling.js +35 -33
- package/dist/cjs/inference/aliaModelRelease.js +9 -7
- package/dist/cjs/inference/attribution.js +14 -12
- package/dist/cjs/inference/catalogue.js +35 -29
- package/dist/cjs/inference/economics.js +24 -19
- package/dist/cjs/inference/embeddings.js +9 -7
- package/dist/cjs/inference/entitlement.js +17 -15
- package/dist/cjs/inference/errors.js +15 -8
- package/dist/cjs/inference/identifiers.js +33 -21
- package/dist/cjs/inference/inbox.js +37 -35
- package/dist/cjs/inference/modelDocumentation.js +16 -14
- package/dist/cjs/inference/money.js +5 -4
- package/dist/cjs/inference/priceVersion.js +10 -5
- package/dist/cjs/inference/providerConnection.js +21 -14
- package/dist/cjs/inference/realtime.js +88 -47
- package/dist/cjs/inference/request.js +27 -25
- package/dist/cjs/inference/routingPolicy.js +12 -10
- package/dist/cjs/inference/streamEvents.js +22 -16
- package/dist/cjs/inference/usage.js +32 -15
- package/dist/cjs/keyRecovery.js +8 -6
- package/dist/cjs/keyRotation.js +5 -4
- package/dist/cjs/linkedAccounts.js +22 -18
- package/dist/cjs/moderationReputation.js +29 -27
- package/dist/cjs/notifications.js +25 -9
- package/dist/cjs/numberChecks.js +45 -0
- package/dist/cjs/oauth.js +14 -12
- package/dist/cjs/organizations.js +23 -21
- package/dist/cjs/products/access.js +10 -8
- package/dist/cjs/products/billing.js +10 -8
- package/dist/cjs/products/checkout.js +22 -10
- package/dist/cjs/products/plans.js +15 -10
- package/dist/cjs/protocol.js +6 -5
- package/dist/cjs/recommendations.js +27 -19
- package/dist/cjs/reputation.js +15 -13
- package/dist/cjs/safety.js +43 -27
- package/dist/cjs/serviceToken.js +81 -2
- package/dist/cjs/sessionRevocation.js +8 -6
- package/dist/cjs/signIn.js +42 -24
- package/dist/cjs/stickers.js +19 -15
- package/dist/cjs/stringChecks.js +70 -0
- package/dist/cjs/transparency.js +14 -12
- package/dist/cjs/updates.js +24 -22
- package/dist/cjs/userInvalidation.js +7 -5
- package/dist/cjs/userResponse.js +8 -7
- package/dist/cjs/username.js +7 -6
- package/dist/esm/accountAccess.js +4 -3
- package/dist/esm/accountEmail.js +13 -5
- package/dist/esm/accountGraph.js +8 -7
- package/dist/esm/accountName.js +3 -2
- package/dist/esm/agency.js +90 -33
- package/dist/esm/agentKeys.js +21 -17
- package/dist/esm/appAssertions.js +11 -10
- package/dist/esm/applicationRoles.js +16 -9
- package/dist/esm/civic.js +8 -7
- package/dist/esm/client/check.js +61 -53
- package/dist/esm/consoleOnboarding.js +7 -2
- package/dist/esm/contentClaims.js +23 -14
- package/dist/esm/deviceDirectory.js +11 -9
- package/dist/esm/deviceSession.js +27 -25
- package/dist/esm/email/messages.js +18 -16
- package/dist/esm/emailAgentContext.js +11 -9
- package/dist/esm/externalIdentity.js +15 -11
- package/dist/esm/federationInstanceFetch.js +10 -5
- package/dist/esm/identity.js +17 -15
- package/dist/esm/identityLink.js +6 -4
- package/dist/esm/identityProof.js +6 -4
- package/dist/esm/inboxPush.js +3 -2
- package/dist/esm/index.js +4 -2
- package/dist/esm/inference/accountBilling.js +33 -31
- package/dist/esm/inference/aliaModelRelease.js +7 -5
- package/dist/esm/inference/attribution.js +14 -12
- package/dist/esm/inference/catalogue.js +33 -27
- package/dist/esm/inference/economics.js +22 -17
- package/dist/esm/inference/embeddings.js +9 -7
- package/dist/esm/inference/entitlement.js +15 -13
- package/dist/esm/inference/errors.js +13 -6
- package/dist/esm/inference/identifiers.js +31 -19
- package/dist/esm/inference/inbox.js +37 -35
- package/dist/esm/inference/modelDocumentation.js +14 -12
- package/dist/esm/inference/money.js +3 -2
- package/dist/esm/inference/priceVersion.js +8 -3
- package/dist/esm/inference/providerConnection.js +19 -12
- package/dist/esm/inference/realtime.js +85 -44
- package/dist/esm/inference/request.js +25 -23
- package/dist/esm/inference/routingPolicy.js +9 -7
- package/dist/esm/inference/streamEvents.js +20 -14
- package/dist/esm/inference/usage.js +30 -13
- package/dist/esm/keyRecovery.js +8 -6
- package/dist/esm/keyRotation.js +5 -4
- package/dist/esm/linkedAccounts.js +20 -16
- package/dist/esm/moderationReputation.js +27 -25
- package/dist/esm/notifications.js +23 -7
- package/dist/esm/numberChecks.js +41 -0
- package/dist/esm/oauth.js +14 -12
- package/dist/esm/organizations.js +23 -21
- package/dist/esm/products/access.js +10 -8
- package/dist/esm/products/billing.js +10 -8
- package/dist/esm/products/checkout.js +22 -10
- package/dist/esm/products/plans.js +15 -10
- package/dist/esm/protocol.js +4 -3
- package/dist/esm/recommendations.js +25 -17
- package/dist/esm/reputation.js +13 -11
- package/dist/esm/safety.js +43 -27
- package/dist/esm/serviceToken.js +80 -1
- package/dist/esm/sessionRevocation.js +6 -4
- package/dist/esm/signIn.js +42 -24
- package/dist/esm/stickers.js +17 -13
- package/dist/esm/stringChecks.js +63 -0
- package/dist/esm/transparency.js +14 -12
- package/dist/esm/updates.js +22 -20
- package/dist/esm/userInvalidation.js +4 -2
- package/dist/esm/userResponse.js +4 -3
- package/dist/esm/username.js +3 -2
- package/dist/types/accountAccess.d.ts +29 -70
- package/dist/types/accountEmail.d.ts +2 -14
- package/dist/types/accountGraph.d.ts +179 -171
- package/dist/types/accountName.d.ts +1 -1
- package/dist/types/accountSubject.d.ts +20 -93
- package/dist/types/agency.d.ts +528 -2924
- package/dist/types/agentKeys.d.ts +48 -421
- package/dist/types/appAssertions.d.ts +56 -210
- package/dist/types/applicationRoles.d.ts +30 -276
- package/dist/types/avatarCharacter.d.ts +1 -1
- package/dist/types/civic.d.ts +1 -13
- package/dist/types/client/agentKeys.d.ts +18 -18
- package/dist/types/client/appAssertions.d.ts +3 -3
- package/dist/types/client/check.d.ts +13 -13
- package/dist/types/client/deviceDirectory.d.ts +51 -51
- package/dist/types/client/deviceSession.d.ts +14 -14
- package/dist/types/client/organizations.d.ts +25 -25
- package/dist/types/client/products.d.ts +33 -33
- package/dist/types/client/recommendations.d.ts +2 -2
- package/dist/types/client/safety.d.ts +45 -45
- package/dist/types/client/sessionStatus.d.ts +4 -4
- package/dist/types/client/signIn.d.ts +1 -1
- package/dist/types/commonsSignIn.d.ts +4 -1
- package/dist/types/consoleOnboarding.d.ts +24 -44
- package/dist/types/contentClaims.d.ts +24 -180
- package/dist/types/deviceDirectory.d.ts +109 -1040
- package/dist/types/deviceSession.d.ts +36 -298
- package/dist/types/email/messages.d.ts +212 -1793
- package/dist/types/emailAgentContext.d.ts +10 -194
- package/dist/types/externalIdentity.d.ts +121 -615
- package/dist/types/federationInstanceFetch.d.ts +3 -32
- package/dist/types/identity.d.ts +15 -92
- package/dist/types/identityLink.d.ts +6 -84
- package/dist/types/identityProof.d.ts +5 -17
- package/dist/types/inboxPush.d.ts +1 -9
- package/dist/types/index.d.ts +5 -3
- package/dist/types/inference/accountBilling.d.ts +151 -488
- package/dist/types/inference/aliaModelRelease.d.ts +42 -439
- package/dist/types/inference/attribution.d.ts +75 -104
- package/dist/types/inference/catalogue.d.ts +417 -1599
- package/dist/types/inference/economics.d.ts +69 -276
- package/dist/types/inference/embeddings.d.ts +110 -406
- package/dist/types/inference/entitlement.d.ts +80 -335
- package/dist/types/inference/errors.d.ts +90 -102
- package/dist/types/inference/identifiers.d.ts +12 -4
- package/dist/types/inference/inbox.d.ts +105 -420
- package/dist/types/inference/modelDocumentation.d.ts +201 -1390
- package/dist/types/inference/money.d.ts +65 -32
- package/dist/types/inference/priceVersion.d.ts +53 -120
- package/dist/types/inference/providerConnection.d.ts +253 -710
- package/dist/types/inference/realtime.d.ts +954 -6825
- package/dist/types/inference/request.d.ts +300 -2572
- package/dist/types/inference/routingPolicy.d.ts +95 -503
- package/dist/types/inference/streamEvents.d.ts +253 -721
- package/dist/types/inference/usage.d.ts +317 -950
- package/dist/types/keyRecovery.d.ts +3 -51
- package/dist/types/keyRotation.d.ts +3 -38
- package/dist/types/linkedAccounts.d.ts +50 -236
- package/dist/types/moderationReputation.d.ts +81 -14
- package/dist/types/notifications.d.ts +19 -51
- package/dist/types/numberChecks.d.ts +9 -0
- package/dist/types/oauth.d.ts +101 -809
- package/dist/types/organizations.d.ts +268 -921
- package/dist/types/oxyRecordTypes.d.ts +11 -1
- package/dist/types/products/access.d.ts +125 -775
- package/dist/types/products/billing.d.ts +67 -503
- package/dist/types/products/checkout.d.ts +16 -69
- package/dist/types/products/plans.d.ts +33 -366
- package/dist/types/recommendations.d.ts +76 -389
- package/dist/types/reputation.d.ts +37 -5
- package/dist/types/safety.d.ts +408 -2048
- package/dist/types/serviceToken.d.ts +247 -7
- package/dist/types/sessionRevocation.d.ts +2 -17
- package/dist/types/sessionStatus.d.ts +27 -115
- package/dist/types/signIn.d.ts +53 -553
- package/dist/types/stickers.d.ts +67 -819
- package/dist/types/stringChecks.d.ts +16 -0
- package/dist/types/transparency.d.ts +14 -302
- package/dist/types/updates.d.ts +60 -316
- package/dist/types/userInvalidation.d.ts +4 -13
- package/dist/types/userResponse.d.ts +302 -2400
- package/dist/types/username.d.ts +3 -3
- package/package.json +2 -2
|
@@ -38,25 +38,13 @@ import { z } from "zod";
|
|
|
38
38
|
* A discriminated union rather than two optional fields, so "which one did the
|
|
39
39
|
* customer configure" is never a question about which field is non-null.
|
|
40
40
|
*/
|
|
41
|
-
export declare const routingTargetSchema: z.ZodDiscriminatedUnion<
|
|
41
|
+
export declare const routingTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
42
|
kind: z.ZodLiteral<"model">;
|
|
43
43
|
modelReference: z.ZodString;
|
|
44
|
-
},
|
|
45
|
-
kind: "model";
|
|
46
|
-
modelReference: string;
|
|
47
|
-
}, {
|
|
48
|
-
kind: "model";
|
|
49
|
-
modelReference: string;
|
|
50
|
-
}>, z.ZodObject<{
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
45
|
kind: z.ZodLiteral<"routing_profile_id">;
|
|
52
46
|
routingProfileId: z.ZodString;
|
|
53
|
-
},
|
|
54
|
-
kind: "routing_profile_id";
|
|
55
|
-
routingProfileId: string;
|
|
56
|
-
}, {
|
|
57
|
-
kind: "routing_profile_id";
|
|
58
|
-
routingProfileId: string;
|
|
59
|
-
}>]>;
|
|
47
|
+
}, z.core.$strict>], "kind">;
|
|
60
48
|
/**
|
|
61
49
|
* Which account or application a policy governs.
|
|
62
50
|
*
|
|
@@ -64,28 +52,14 @@ export declare const routingTargetSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
64
52
|
* the floor its applications inherit, and inheritance is resolved by the control
|
|
65
53
|
* plane before a policy reaches the data plane.
|
|
66
54
|
*/
|
|
67
|
-
export declare const routingPolicyScopeSchema: z.ZodDiscriminatedUnion<
|
|
55
|
+
export declare const routingPolicyScopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
68
56
|
kind: z.ZodLiteral<"account">;
|
|
69
|
-
accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
70
|
-
},
|
|
71
|
-
kind: "account";
|
|
72
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
73
|
-
}, {
|
|
74
|
-
kind: "account";
|
|
75
|
-
accountId: string;
|
|
76
|
-
}>, z.ZodObject<{
|
|
57
|
+
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
58
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
77
59
|
kind: z.ZodLiteral<"application">;
|
|
78
|
-
accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
60
|
+
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
79
61
|
applicationId: z.ZodString;
|
|
80
|
-
},
|
|
81
|
-
kind: "application";
|
|
82
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
83
|
-
applicationId: string;
|
|
84
|
-
}, {
|
|
85
|
-
kind: "application";
|
|
86
|
-
accountId: string;
|
|
87
|
-
applicationId: string;
|
|
88
|
-
}>]>;
|
|
62
|
+
}, z.core.$strict>], "kind">;
|
|
89
63
|
/**
|
|
90
64
|
* The fallback controls, kept together so a reviewer sees all three at once.
|
|
91
65
|
*
|
|
@@ -96,24 +70,9 @@ export declare const routingPolicyScopeSchema: z.ZodDiscriminatedUnion<"kind", [
|
|
|
96
70
|
*/
|
|
97
71
|
export declare const routingFallbackPolicySchema: z.ZodObject<{
|
|
98
72
|
disabled: z.ZodBoolean;
|
|
99
|
-
/**
|
|
100
|
-
* Same-model deployment failover. OPTIONAL since contract set 3.4.0, and
|
|
101
|
-
* absent means ON unless `disabled` is set: serving the same weights from
|
|
102
|
-
* another deployment of the same revision is an availability decision, not
|
|
103
|
-
* a substitution. A policy opts out with an explicit `false` (or
|
|
104
|
-
* `disabled: true`). See `effectiveSameModelDeployment`.
|
|
105
|
-
*/
|
|
106
73
|
sameModelDeployment: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
-
authorizedCrossModel: z.ZodDefault<z.ZodArray<z.ZodString
|
|
108
|
-
},
|
|
109
|
-
disabled: boolean;
|
|
110
|
-
authorizedCrossModel: string[];
|
|
111
|
-
sameModelDeployment?: boolean | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
disabled: boolean;
|
|
114
|
-
sameModelDeployment?: boolean | undefined;
|
|
115
|
-
authorizedCrossModel?: string[] | undefined;
|
|
116
|
-
}>;
|
|
74
|
+
authorizedCrossModel: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
75
|
+
}, z.core.$strict>;
|
|
117
76
|
/**
|
|
118
77
|
* Whether a fallback block authorizes same-model deployment failover: an
|
|
119
78
|
* explicit `sameModelDeployment` wins; absent means on unless `disabled`.
|
|
@@ -130,321 +89,85 @@ export declare function effectiveSameModelDeployment(fallback: {
|
|
|
130
89
|
* are two different clocks: a customer edits their policy without any contract
|
|
131
90
|
* change, and a contract change does not renumber anybody's policy.
|
|
132
91
|
*/
|
|
133
|
-
export declare const routingPolicySchema: z.
|
|
134
|
-
/** See `version.ts`: exchanged with the data plane on its own. */
|
|
92
|
+
export declare const routingPolicySchema: z.ZodObject<{
|
|
135
93
|
schemaVersion: z.ZodLiteral<2>;
|
|
136
94
|
routingPolicyId: z.ZodString;
|
|
137
95
|
policyVersion: z.ZodNumber;
|
|
138
|
-
scope: z.ZodDiscriminatedUnion<
|
|
96
|
+
scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
139
97
|
kind: z.ZodLiteral<"account">;
|
|
140
|
-
accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
141
|
-
},
|
|
142
|
-
kind: "account";
|
|
143
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
144
|
-
}, {
|
|
145
|
-
kind: "account";
|
|
146
|
-
accountId: string;
|
|
147
|
-
}>, z.ZodObject<{
|
|
98
|
+
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
99
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
148
100
|
kind: z.ZodLiteral<"application">;
|
|
149
|
-
accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
101
|
+
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
150
102
|
applicationId: z.ZodString;
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
154
|
-
applicationId: string;
|
|
155
|
-
}, {
|
|
156
|
-
kind: "application";
|
|
157
|
-
accountId: string;
|
|
158
|
-
applicationId: string;
|
|
159
|
-
}>]>;
|
|
160
|
-
/** Absent when every request must name its own model. */
|
|
161
|
-
defaultTarget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
103
|
+
}, z.core.$strict>], "kind">;
|
|
104
|
+
defaultTarget: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
162
105
|
kind: z.ZodLiteral<"model">;
|
|
163
106
|
modelReference: z.ZodString;
|
|
164
|
-
},
|
|
165
|
-
kind: "model";
|
|
166
|
-
modelReference: string;
|
|
167
|
-
}, {
|
|
168
|
-
kind: "model";
|
|
169
|
-
modelReference: string;
|
|
170
|
-
}>, z.ZodObject<{
|
|
107
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
108
|
kind: z.ZodLiteral<"routing_profile_id">;
|
|
172
109
|
routingProfileId: z.ZodString;
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
routingProfileId: string;
|
|
179
|
-
}>]>>;
|
|
180
|
-
/** Empty means "no allowlist" — every provider qualifies unless denied. */
|
|
181
|
-
providerAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
182
|
-
providerDenylist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
183
|
-
/** Empty means "no residency constraint". */
|
|
184
|
-
allowedRegions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
185
|
-
deniedRegions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
110
|
+
}, z.core.$strict>], "kind">>;
|
|
111
|
+
providerAllowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
112
|
+
providerDenylist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
113
|
+
allowedRegions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
114
|
+
deniedRegions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
186
115
|
requireZeroDataRetention: z.ZodBoolean;
|
|
187
116
|
prohibitTrainingOnCustomerData: z.ZodBoolean;
|
|
188
|
-
/** Ceilings on what a route may cost the customer, quoted like catalogue prices. */
|
|
189
117
|
maxPricePerUnit: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
|
-
unit: z.ZodEnum<
|
|
191
|
-
|
|
118
|
+
unit: z.ZodEnum<{
|
|
119
|
+
input_tokens: "input_tokens";
|
|
120
|
+
cached_input_tokens: "cached_input_tokens";
|
|
121
|
+
output_tokens: "output_tokens";
|
|
122
|
+
reasoning_tokens: "reasoning_tokens";
|
|
123
|
+
requests: "requests";
|
|
124
|
+
images: "images";
|
|
125
|
+
audio_input_milliseconds: "audio_input_milliseconds";
|
|
126
|
+
audio_output_milliseconds: "audio_output_milliseconds";
|
|
127
|
+
video_milliseconds: "video_milliseconds";
|
|
128
|
+
characters: "characters";
|
|
129
|
+
embeddings: "embeddings";
|
|
130
|
+
audio_input_tokens: "audio_input_tokens";
|
|
131
|
+
cached_audio_input_tokens: "cached_audio_input_tokens";
|
|
132
|
+
audio_output_tokens: "audio_output_tokens";
|
|
133
|
+
session_milliseconds: "session_milliseconds";
|
|
134
|
+
input_transcription_milliseconds: "input_transcription_milliseconds";
|
|
135
|
+
}>;
|
|
136
|
+
amount: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
192
137
|
per: z.ZodNumber;
|
|
193
138
|
currency: z.ZodString;
|
|
194
|
-
},
|
|
195
|
-
currency: string;
|
|
196
|
-
amount: string & z.BRAND<"ExactDecimal">;
|
|
197
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
198
|
-
per: number;
|
|
199
|
-
}, {
|
|
200
|
-
currency: string;
|
|
201
|
-
amount: string;
|
|
202
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
203
|
-
per: number;
|
|
204
|
-
}>, "many">>;
|
|
139
|
+
}, z.core.$strict>>>;
|
|
205
140
|
maxPricePerRequest: z.ZodOptional<z.ZodObject<{
|
|
206
|
-
amount: z.ZodBranded<z.ZodString, "ExactDecimal">;
|
|
141
|
+
amount: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
207
142
|
currency: z.ZodString;
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
/** What to optimise for among the routes that qualify. */
|
|
216
|
-
optimiseFor: z.ZodEnum<["price", "latency", "throughput", "balanced"]>;
|
|
217
|
-
/** Serve only from Oxy's own hosting of open-weight models. */
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
optimiseFor: z.ZodEnum<{
|
|
145
|
+
price: "price";
|
|
146
|
+
latency: "latency";
|
|
147
|
+
throughput: "throughput";
|
|
148
|
+
balanced: "balanced";
|
|
149
|
+
}>;
|
|
218
150
|
oxyHostedOnly: z.ZodBoolean;
|
|
219
|
-
|
|
220
|
-
allowedLicenseIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
151
|
+
allowedLicenseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
221
152
|
requireCommercialUseRights: z.ZodBoolean;
|
|
222
153
|
fallback: z.ZodObject<{
|
|
223
154
|
disabled: z.ZodBoolean;
|
|
224
|
-
/**
|
|
225
|
-
* Same-model deployment failover. OPTIONAL since contract set 3.4.0, and
|
|
226
|
-
* absent means ON unless `disabled` is set: serving the same weights from
|
|
227
|
-
* another deployment of the same revision is an availability decision, not
|
|
228
|
-
* a substitution. A policy opts out with an explicit `false` (or
|
|
229
|
-
* `disabled: true`). See `effectiveSameModelDeployment`.
|
|
230
|
-
*/
|
|
231
155
|
sameModelDeployment: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
-
authorizedCrossModel: z.ZodDefault<z.ZodArray<z.ZodString
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
156
|
+
authorizedCrossModel: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
allowedRoutingProfileIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
159
|
+
byokPreference: z.ZodEnum<{
|
|
160
|
+
disabled: "disabled";
|
|
161
|
+
prefer: "prefer";
|
|
162
|
+
require: "require";
|
|
163
|
+
}>;
|
|
164
|
+
dedicatedCapacity: z.ZodEnum<{
|
|
165
|
+
disabled: "disabled";
|
|
166
|
+
prefer: "prefer";
|
|
167
|
+
require: "require";
|
|
241
168
|
}>;
|
|
242
|
-
/**
|
|
243
|
-
* The routing profiles (power levels) this scope may target, by exact id
|
|
244
|
-
* (contract set 3.4.0). Empty means no restriction. A request naming a
|
|
245
|
-
* profile outside a non-empty list is refused with `policy_violation`, and
|
|
246
|
-
* `auto` only climbs to levels on the list. Concrete model targets are
|
|
247
|
-
* governed by the other controls, not by this list.
|
|
248
|
-
*/
|
|
249
|
-
allowedRoutingProfileIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
250
|
-
/** Whether the customer's own provider credentials may or must be used. */
|
|
251
|
-
byokPreference: z.ZodEnum<["disabled", "prefer", "require"]>;
|
|
252
|
-
/** Enterprise reserved capacity rather than shared endpoints. */
|
|
253
|
-
dedicatedCapacity: z.ZodEnum<["disabled", "prefer", "require"]>;
|
|
254
169
|
updatedAt: z.ZodString;
|
|
255
|
-
},
|
|
256
|
-
updatedAt: string;
|
|
257
|
-
schemaVersion: 2;
|
|
258
|
-
scope: {
|
|
259
|
-
kind: "account";
|
|
260
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
261
|
-
} | {
|
|
262
|
-
kind: "application";
|
|
263
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
264
|
-
applicationId: string;
|
|
265
|
-
};
|
|
266
|
-
dedicatedCapacity: "disabled" | "prefer" | "require";
|
|
267
|
-
optimiseFor: "price" | "latency" | "throughput" | "balanced";
|
|
268
|
-
routingPolicyId: string;
|
|
269
|
-
policyVersion: number;
|
|
270
|
-
providerAllowlist: string[];
|
|
271
|
-
providerDenylist: string[];
|
|
272
|
-
allowedRegions: string[];
|
|
273
|
-
deniedRegions: string[];
|
|
274
|
-
requireZeroDataRetention: boolean;
|
|
275
|
-
prohibitTrainingOnCustomerData: boolean;
|
|
276
|
-
maxPricePerUnit: {
|
|
277
|
-
currency: string;
|
|
278
|
-
amount: string & z.BRAND<"ExactDecimal">;
|
|
279
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
280
|
-
per: number;
|
|
281
|
-
}[];
|
|
282
|
-
oxyHostedOnly: boolean;
|
|
283
|
-
allowedLicenseIds: string[];
|
|
284
|
-
requireCommercialUseRights: boolean;
|
|
285
|
-
fallback: {
|
|
286
|
-
disabled: boolean;
|
|
287
|
-
authorizedCrossModel: string[];
|
|
288
|
-
sameModelDeployment?: boolean | undefined;
|
|
289
|
-
};
|
|
290
|
-
allowedRoutingProfileIds: string[];
|
|
291
|
-
byokPreference: "disabled" | "prefer" | "require";
|
|
292
|
-
defaultTarget?: {
|
|
293
|
-
kind: "model";
|
|
294
|
-
modelReference: string;
|
|
295
|
-
} | {
|
|
296
|
-
kind: "routing_profile_id";
|
|
297
|
-
routingProfileId: string;
|
|
298
|
-
} | undefined;
|
|
299
|
-
maxPricePerRequest?: {
|
|
300
|
-
currency: string;
|
|
301
|
-
amount: string & z.BRAND<"ExactDecimal">;
|
|
302
|
-
} | undefined;
|
|
303
|
-
}, {
|
|
304
|
-
updatedAt: string;
|
|
305
|
-
schemaVersion: 2;
|
|
306
|
-
scope: {
|
|
307
|
-
kind: "account";
|
|
308
|
-
accountId: string;
|
|
309
|
-
} | {
|
|
310
|
-
kind: "application";
|
|
311
|
-
accountId: string;
|
|
312
|
-
applicationId: string;
|
|
313
|
-
};
|
|
314
|
-
dedicatedCapacity: "disabled" | "prefer" | "require";
|
|
315
|
-
optimiseFor: "price" | "latency" | "throughput" | "balanced";
|
|
316
|
-
routingPolicyId: string;
|
|
317
|
-
policyVersion: number;
|
|
318
|
-
requireZeroDataRetention: boolean;
|
|
319
|
-
prohibitTrainingOnCustomerData: boolean;
|
|
320
|
-
oxyHostedOnly: boolean;
|
|
321
|
-
requireCommercialUseRights: boolean;
|
|
322
|
-
fallback: {
|
|
323
|
-
disabled: boolean;
|
|
324
|
-
sameModelDeployment?: boolean | undefined;
|
|
325
|
-
authorizedCrossModel?: string[] | undefined;
|
|
326
|
-
};
|
|
327
|
-
byokPreference: "disabled" | "prefer" | "require";
|
|
328
|
-
defaultTarget?: {
|
|
329
|
-
kind: "model";
|
|
330
|
-
modelReference: string;
|
|
331
|
-
} | {
|
|
332
|
-
kind: "routing_profile_id";
|
|
333
|
-
routingProfileId: string;
|
|
334
|
-
} | undefined;
|
|
335
|
-
providerAllowlist?: string[] | undefined;
|
|
336
|
-
providerDenylist?: string[] | undefined;
|
|
337
|
-
allowedRegions?: string[] | undefined;
|
|
338
|
-
deniedRegions?: string[] | undefined;
|
|
339
|
-
maxPricePerUnit?: {
|
|
340
|
-
currency: string;
|
|
341
|
-
amount: string;
|
|
342
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
343
|
-
per: number;
|
|
344
|
-
}[] | undefined;
|
|
345
|
-
maxPricePerRequest?: {
|
|
346
|
-
currency: string;
|
|
347
|
-
amount: string;
|
|
348
|
-
} | undefined;
|
|
349
|
-
allowedLicenseIds?: string[] | undefined;
|
|
350
|
-
allowedRoutingProfileIds?: string[] | undefined;
|
|
351
|
-
}>, {
|
|
352
|
-
updatedAt: string;
|
|
353
|
-
schemaVersion: 2;
|
|
354
|
-
scope: {
|
|
355
|
-
kind: "account";
|
|
356
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
357
|
-
} | {
|
|
358
|
-
kind: "application";
|
|
359
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
360
|
-
applicationId: string;
|
|
361
|
-
};
|
|
362
|
-
dedicatedCapacity: "disabled" | "prefer" | "require";
|
|
363
|
-
optimiseFor: "price" | "latency" | "throughput" | "balanced";
|
|
364
|
-
routingPolicyId: string;
|
|
365
|
-
policyVersion: number;
|
|
366
|
-
providerAllowlist: string[];
|
|
367
|
-
providerDenylist: string[];
|
|
368
|
-
allowedRegions: string[];
|
|
369
|
-
deniedRegions: string[];
|
|
370
|
-
requireZeroDataRetention: boolean;
|
|
371
|
-
prohibitTrainingOnCustomerData: boolean;
|
|
372
|
-
maxPricePerUnit: {
|
|
373
|
-
currency: string;
|
|
374
|
-
amount: string & z.BRAND<"ExactDecimal">;
|
|
375
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
376
|
-
per: number;
|
|
377
|
-
}[];
|
|
378
|
-
oxyHostedOnly: boolean;
|
|
379
|
-
allowedLicenseIds: string[];
|
|
380
|
-
requireCommercialUseRights: boolean;
|
|
381
|
-
fallback: {
|
|
382
|
-
disabled: boolean;
|
|
383
|
-
authorizedCrossModel: string[];
|
|
384
|
-
sameModelDeployment?: boolean | undefined;
|
|
385
|
-
};
|
|
386
|
-
allowedRoutingProfileIds: string[];
|
|
387
|
-
byokPreference: "disabled" | "prefer" | "require";
|
|
388
|
-
defaultTarget?: {
|
|
389
|
-
kind: "model";
|
|
390
|
-
modelReference: string;
|
|
391
|
-
} | {
|
|
392
|
-
kind: "routing_profile_id";
|
|
393
|
-
routingProfileId: string;
|
|
394
|
-
} | undefined;
|
|
395
|
-
maxPricePerRequest?: {
|
|
396
|
-
currency: string;
|
|
397
|
-
amount: string & z.BRAND<"ExactDecimal">;
|
|
398
|
-
} | undefined;
|
|
399
|
-
}, {
|
|
400
|
-
updatedAt: string;
|
|
401
|
-
schemaVersion: 2;
|
|
402
|
-
scope: {
|
|
403
|
-
kind: "account";
|
|
404
|
-
accountId: string;
|
|
405
|
-
} | {
|
|
406
|
-
kind: "application";
|
|
407
|
-
accountId: string;
|
|
408
|
-
applicationId: string;
|
|
409
|
-
};
|
|
410
|
-
dedicatedCapacity: "disabled" | "prefer" | "require";
|
|
411
|
-
optimiseFor: "price" | "latency" | "throughput" | "balanced";
|
|
412
|
-
routingPolicyId: string;
|
|
413
|
-
policyVersion: number;
|
|
414
|
-
requireZeroDataRetention: boolean;
|
|
415
|
-
prohibitTrainingOnCustomerData: boolean;
|
|
416
|
-
oxyHostedOnly: boolean;
|
|
417
|
-
requireCommercialUseRights: boolean;
|
|
418
|
-
fallback: {
|
|
419
|
-
disabled: boolean;
|
|
420
|
-
sameModelDeployment?: boolean | undefined;
|
|
421
|
-
authorizedCrossModel?: string[] | undefined;
|
|
422
|
-
};
|
|
423
|
-
byokPreference: "disabled" | "prefer" | "require";
|
|
424
|
-
defaultTarget?: {
|
|
425
|
-
kind: "model";
|
|
426
|
-
modelReference: string;
|
|
427
|
-
} | {
|
|
428
|
-
kind: "routing_profile_id";
|
|
429
|
-
routingProfileId: string;
|
|
430
|
-
} | undefined;
|
|
431
|
-
providerAllowlist?: string[] | undefined;
|
|
432
|
-
providerDenylist?: string[] | undefined;
|
|
433
|
-
allowedRegions?: string[] | undefined;
|
|
434
|
-
deniedRegions?: string[] | undefined;
|
|
435
|
-
maxPricePerUnit?: {
|
|
436
|
-
currency: string;
|
|
437
|
-
amount: string;
|
|
438
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
439
|
-
per: number;
|
|
440
|
-
}[] | undefined;
|
|
441
|
-
maxPricePerRequest?: {
|
|
442
|
-
currency: string;
|
|
443
|
-
amount: string;
|
|
444
|
-
} | undefined;
|
|
445
|
-
allowedLicenseIds?: string[] | undefined;
|
|
446
|
-
allowedRoutingProfileIds?: string[] | undefined;
|
|
447
|
-
}>;
|
|
170
|
+
}, z.core.$strip>;
|
|
448
171
|
/**
|
|
449
172
|
* The reference a request records: which policy, at which of the customer's own
|
|
450
173
|
* revisions. Embedded in the request envelope and in the settled receipt, so a
|
|
@@ -453,13 +176,7 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
453
176
|
export declare const routingPolicyReferenceSchema: z.ZodObject<{
|
|
454
177
|
routingPolicyId: z.ZodString;
|
|
455
178
|
policyVersion: z.ZodNumber;
|
|
456
|
-
},
|
|
457
|
-
routingPolicyId: string;
|
|
458
|
-
policyVersion: number;
|
|
459
|
-
}, {
|
|
460
|
-
routingPolicyId: string;
|
|
461
|
-
policyVersion: number;
|
|
462
|
-
}>;
|
|
179
|
+
}, z.core.$strict>;
|
|
463
180
|
/**
|
|
464
181
|
* One route the control plane has already authorized for one request.
|
|
465
182
|
*
|
|
@@ -481,177 +198,52 @@ export declare const routingPolicyReferenceSchema: z.ZodObject<{
|
|
|
481
198
|
* say — the same construction `inferenceRouteSwitchDetailSchema` uses to make
|
|
482
199
|
* the resulting route-switch event unreportable.
|
|
483
200
|
*/
|
|
484
|
-
export declare const authorizedRouteSchema: z.
|
|
201
|
+
export declare const authorizedRouteSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
485
202
|
deploymentId: z.ZodString;
|
|
486
203
|
modelReference: z.ZodString;
|
|
487
204
|
provider: z.ZodString;
|
|
488
|
-
regions: z.ZodArray<z.ZodString
|
|
489
|
-
maxFundingTier: z.ZodOptional<z.ZodEnum<
|
|
205
|
+
regions: z.ZodArray<z.ZodString>;
|
|
206
|
+
maxFundingTier: z.ZodOptional<z.ZodEnum<{
|
|
207
|
+
free: "free";
|
|
208
|
+
credit: "credit";
|
|
209
|
+
paid: "paid";
|
|
210
|
+
}>>;
|
|
490
211
|
customerProviderCredential: z.ZodOptional<z.ZodObject<{
|
|
491
212
|
credentialHandle: z.ZodString;
|
|
492
213
|
credentialRevision: z.ZodNumber;
|
|
493
|
-
ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
214
|
+
ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
494
215
|
connectionId: z.ZodString;
|
|
495
|
-
environment: z.ZodEnum<
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
credentialRevision: number;
|
|
502
|
-
}, {
|
|
503
|
-
environment: "development" | "staging" | "production";
|
|
504
|
-
ownerAccountId: string;
|
|
505
|
-
connectionId: string;
|
|
506
|
-
credentialHandle: string;
|
|
507
|
-
credentialRevision: number;
|
|
508
|
-
}>>;
|
|
216
|
+
environment: z.ZodEnum<{
|
|
217
|
+
development: "development";
|
|
218
|
+
staging: "staging";
|
|
219
|
+
production: "production";
|
|
220
|
+
}>;
|
|
221
|
+
}, z.core.$strict>>;
|
|
509
222
|
substitution: z.ZodLiteral<"same_model">;
|
|
510
|
-
},
|
|
511
|
-
provider: string;
|
|
512
|
-
modelReference: string;
|
|
513
|
-
regions: string[];
|
|
514
|
-
deploymentId: string;
|
|
515
|
-
substitution: "same_model";
|
|
516
|
-
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
517
|
-
customerProviderCredential?: {
|
|
518
|
-
environment: "development" | "staging" | "production";
|
|
519
|
-
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
520
|
-
connectionId: string;
|
|
521
|
-
credentialHandle: string;
|
|
522
|
-
credentialRevision: number;
|
|
523
|
-
} | undefined;
|
|
524
|
-
}, {
|
|
525
|
-
provider: string;
|
|
526
|
-
modelReference: string;
|
|
527
|
-
regions: string[];
|
|
528
|
-
deploymentId: string;
|
|
529
|
-
substitution: "same_model";
|
|
530
|
-
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
531
|
-
customerProviderCredential?: {
|
|
532
|
-
environment: "development" | "staging" | "production";
|
|
533
|
-
ownerAccountId: string;
|
|
534
|
-
connectionId: string;
|
|
535
|
-
credentialHandle: string;
|
|
536
|
-
credentialRevision: number;
|
|
537
|
-
} | undefined;
|
|
538
|
-
}>, z.ZodObject<{
|
|
539
|
-
/** Literal `true`: an unauthorized substitution cannot be expressed. */
|
|
223
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
540
224
|
authorizedByPolicy: z.ZodLiteral<true>;
|
|
541
225
|
deploymentId: z.ZodString;
|
|
542
226
|
modelReference: z.ZodString;
|
|
543
227
|
provider: z.ZodString;
|
|
544
|
-
regions: z.ZodArray<z.ZodString
|
|
545
|
-
maxFundingTier: z.ZodOptional<z.ZodEnum<
|
|
228
|
+
regions: z.ZodArray<z.ZodString>;
|
|
229
|
+
maxFundingTier: z.ZodOptional<z.ZodEnum<{
|
|
230
|
+
free: "free";
|
|
231
|
+
credit: "credit";
|
|
232
|
+
paid: "paid";
|
|
233
|
+
}>>;
|
|
546
234
|
customerProviderCredential: z.ZodOptional<z.ZodObject<{
|
|
547
235
|
credentialHandle: z.ZodString;
|
|
548
236
|
credentialRevision: z.ZodNumber;
|
|
549
|
-
ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
237
|
+
ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
550
238
|
connectionId: z.ZodString;
|
|
551
|
-
environment: z.ZodEnum<
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
credentialRevision: number;
|
|
558
|
-
}, {
|
|
559
|
-
environment: "development" | "staging" | "production";
|
|
560
|
-
ownerAccountId: string;
|
|
561
|
-
connectionId: string;
|
|
562
|
-
credentialHandle: string;
|
|
563
|
-
credentialRevision: number;
|
|
564
|
-
}>>;
|
|
239
|
+
environment: z.ZodEnum<{
|
|
240
|
+
development: "development";
|
|
241
|
+
staging: "staging";
|
|
242
|
+
production: "production";
|
|
243
|
+
}>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
565
245
|
substitution: z.ZodLiteral<"cross_model">;
|
|
566
|
-
},
|
|
567
|
-
provider: string;
|
|
568
|
-
modelReference: string;
|
|
569
|
-
regions: string[];
|
|
570
|
-
deploymentId: string;
|
|
571
|
-
substitution: "cross_model";
|
|
572
|
-
authorizedByPolicy: true;
|
|
573
|
-
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
574
|
-
customerProviderCredential?: {
|
|
575
|
-
environment: "development" | "staging" | "production";
|
|
576
|
-
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
577
|
-
connectionId: string;
|
|
578
|
-
credentialHandle: string;
|
|
579
|
-
credentialRevision: number;
|
|
580
|
-
} | undefined;
|
|
581
|
-
}, {
|
|
582
|
-
provider: string;
|
|
583
|
-
modelReference: string;
|
|
584
|
-
regions: string[];
|
|
585
|
-
deploymentId: string;
|
|
586
|
-
substitution: "cross_model";
|
|
587
|
-
authorizedByPolicy: true;
|
|
588
|
-
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
589
|
-
customerProviderCredential?: {
|
|
590
|
-
environment: "development" | "staging" | "production";
|
|
591
|
-
ownerAccountId: string;
|
|
592
|
-
connectionId: string;
|
|
593
|
-
credentialHandle: string;
|
|
594
|
-
credentialRevision: number;
|
|
595
|
-
} | undefined;
|
|
596
|
-
}>]>, {
|
|
597
|
-
provider: string;
|
|
598
|
-
modelReference: string;
|
|
599
|
-
regions: string[];
|
|
600
|
-
deploymentId: string;
|
|
601
|
-
substitution: "same_model";
|
|
602
|
-
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
603
|
-
customerProviderCredential?: {
|
|
604
|
-
environment: "development" | "staging" | "production";
|
|
605
|
-
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
606
|
-
connectionId: string;
|
|
607
|
-
credentialHandle: string;
|
|
608
|
-
credentialRevision: number;
|
|
609
|
-
} | undefined;
|
|
610
|
-
} | {
|
|
611
|
-
provider: string;
|
|
612
|
-
modelReference: string;
|
|
613
|
-
regions: string[];
|
|
614
|
-
deploymentId: string;
|
|
615
|
-
substitution: "cross_model";
|
|
616
|
-
authorizedByPolicy: true;
|
|
617
|
-
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
618
|
-
customerProviderCredential?: {
|
|
619
|
-
environment: "development" | "staging" | "production";
|
|
620
|
-
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
621
|
-
connectionId: string;
|
|
622
|
-
credentialHandle: string;
|
|
623
|
-
credentialRevision: number;
|
|
624
|
-
} | undefined;
|
|
625
|
-
}, {
|
|
626
|
-
provider: string;
|
|
627
|
-
modelReference: string;
|
|
628
|
-
regions: string[];
|
|
629
|
-
deploymentId: string;
|
|
630
|
-
substitution: "same_model";
|
|
631
|
-
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
632
|
-
customerProviderCredential?: {
|
|
633
|
-
environment: "development" | "staging" | "production";
|
|
634
|
-
ownerAccountId: string;
|
|
635
|
-
connectionId: string;
|
|
636
|
-
credentialHandle: string;
|
|
637
|
-
credentialRevision: number;
|
|
638
|
-
} | undefined;
|
|
639
|
-
} | {
|
|
640
|
-
provider: string;
|
|
641
|
-
modelReference: string;
|
|
642
|
-
regions: string[];
|
|
643
|
-
deploymentId: string;
|
|
644
|
-
substitution: "cross_model";
|
|
645
|
-
authorizedByPolicy: true;
|
|
646
|
-
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
647
|
-
customerProviderCredential?: {
|
|
648
|
-
environment: "development" | "staging" | "production";
|
|
649
|
-
ownerAccountId: string;
|
|
650
|
-
connectionId: string;
|
|
651
|
-
credentialHandle: string;
|
|
652
|
-
credentialRevision: number;
|
|
653
|
-
} | undefined;
|
|
654
|
-
}>;
|
|
246
|
+
}, z.core.$strict>], "substitution">;
|
|
655
247
|
export type RoutingTarget = z.infer<typeof routingTargetSchema>;
|
|
656
248
|
export type RoutingPolicyScope = z.infer<typeof routingPolicyScopeSchema>;
|
|
657
249
|
export type RoutingFallbackPolicy = z.infer<typeof routingFallbackPolicySchema>;
|