@oxy.so/contracts 4.24.0 → 5.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/client/index.js +15 -0
- package/dist/cjs/index.js +2 -35
- package/dist/cjs/inference/catalogue.js +2 -5
- package/dist/cjs/inference/request.js +5 -79
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/products/one.js +142 -0
- package/dist/esm/client/index.js +1 -0
- package/dist/esm/index.js +1 -5
- package/dist/esm/inference/catalogue.js +0 -3
- package/dist/esm/inference/request.js +4 -78
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/products/one.js +137 -0
- package/dist/types/client/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -10
- package/dist/types/inference/catalogue.d.ts +4 -194
- package/dist/types/inference/economics.d.ts +2 -2
- package/dist/types/inference/realtime.d.ts +88 -88
- package/dist/types/inference/request.d.ts +28 -5055
- package/dist/types/inference/routingPolicy.d.ts +16 -16
- package/dist/types/inference/streamEvents.d.ts +8 -8
- package/dist/types/inference/usage.d.ts +4 -4
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/products/one.d.ts +250 -0
- package/dist/types/safety.d.ts +10 -10
- package/package.json +1 -1
- package/dist/cjs/inference/decisions.js +0 -305
- package/dist/cjs/inference/privateAutoExecution.js +0 -153
- package/dist/cjs/inference/scopedExecution.js +0 -87
- package/dist/esm/inference/decisions.js +0 -299
- package/dist/esm/inference/privateAutoExecution.js +0 -149
- package/dist/esm/inference/scopedExecution.js +0 -83
- package/dist/types/inference/decisions.d.ts +0 -1853
- package/dist/types/inference/privateAutoExecution.d.ts +0 -694
- package/dist/types/inference/scopedExecution.d.ts +0 -202
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export const OXY_ONE_ANNUAL_DISCOUNT = 20;
|
|
2
|
+
export const OXY_ONE_FAMILY_MEMBERS = 6;
|
|
3
|
+
export const OXY_ONE_AUDIENCE_THEMES = {
|
|
4
|
+
personal: 'one-plans-theme',
|
|
5
|
+
creator: 'one-creator-theme',
|
|
6
|
+
business: 'one-professional-theme',
|
|
7
|
+
};
|
|
8
|
+
/** Approved prices and credits; proposed storage capacities for the bundle design.
|
|
9
|
+
* USD minor units; credits renew monthly even on annual plans. Free 2 GB and Go 20 GB follow
|
|
10
|
+
* the new product direction; existing backend quotas are not changed here. */
|
|
11
|
+
export const OXY_ONE_PERSONAL_PLANS = {
|
|
12
|
+
Free: { monthlyPrice: 0, monthlyCredits: 0, creditDiscount: 0, storageGB: 2 },
|
|
13
|
+
Go: { monthlyPrice: 1500, monthlyCredits: 4000, creditDiscount: 5, storageGB: 20 },
|
|
14
|
+
Pro: { monthlyPrice: 2999, monthlyCredits: 10000, creditDiscount: 10, storageGB: 100 },
|
|
15
|
+
Max: { monthlyPrice: 9900, monthlyCredits: 50000, creditDiscount: 15, storageGB: 500 },
|
|
16
|
+
Ultra: { monthlyPrice: 40000, monthlyCredits: 200000, creditDiscount: 20, storageGB: 2000 },
|
|
17
|
+
};
|
|
18
|
+
/** A family quota belongs to the whole group, never multiplied by member count. */
|
|
19
|
+
export const OXY_ONE_FAMILY_PLANS = {
|
|
20
|
+
Go: { monthlyPrice: 2500, monthlyCredits: 8000, creditDiscount: 5, storageGB: 40 },
|
|
21
|
+
Pro: { monthlyPrice: 4900, monthlyCredits: 20000, creditDiscount: 10, storageGB: 200 },
|
|
22
|
+
Max: { monthlyPrice: 16900, monthlyCredits: 100000, creditDiscount: 15, storageGB: 1000 },
|
|
23
|
+
Ultra: { monthlyPrice: 59900, monthlyCredits: 300000, creditDiscount: 20, storageGB: 4000 },
|
|
24
|
+
};
|
|
25
|
+
export const OXY_ONE_BUSINESS_PLANS = {
|
|
26
|
+
Go: {
|
|
27
|
+
monthlyPrice: 3900,
|
|
28
|
+
monthlySeatPrice: 900,
|
|
29
|
+
monthlyCredits: 8000,
|
|
30
|
+
creditsPerSeat: 2000,
|
|
31
|
+
creditDiscount: 15,
|
|
32
|
+
storageGB: 20,
|
|
33
|
+
storagePerSeatGB: 5,
|
|
34
|
+
},
|
|
35
|
+
Pro: {
|
|
36
|
+
monthlyPrice: 9999,
|
|
37
|
+
monthlySeatPrice: 1900,
|
|
38
|
+
monthlyCredits: 25000,
|
|
39
|
+
creditsPerSeat: 5000,
|
|
40
|
+
creditDiscount: 25,
|
|
41
|
+
storageGB: 100,
|
|
42
|
+
storagePerSeatGB: 10,
|
|
43
|
+
},
|
|
44
|
+
Max: {
|
|
45
|
+
monthlyPrice: 19900,
|
|
46
|
+
monthlySeatPrice: 2900,
|
|
47
|
+
monthlyCredits: 60000,
|
|
48
|
+
creditsPerSeat: 8000,
|
|
49
|
+
creditDiscount: 30,
|
|
50
|
+
storageGB: 500,
|
|
51
|
+
storagePerSeatGB: 25,
|
|
52
|
+
},
|
|
53
|
+
Ultra: {
|
|
54
|
+
monthlyPrice: 59900,
|
|
55
|
+
monthlySeatPrice: 4900,
|
|
56
|
+
monthlyCredits: 200000,
|
|
57
|
+
creditsPerSeat: 15000,
|
|
58
|
+
creditDiscount: 35,
|
|
59
|
+
storageGB: 2000,
|
|
60
|
+
storagePerSeatGB: 50,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
/** Verification, basic app access and model access are not subscription gates. */
|
|
64
|
+
export const OXY_ONE_CREATOR_PLANS = {
|
|
65
|
+
Go: { monthlyPrice: 2900, monthlyCredits: 10000, creditDiscount: 10, storageGB: 20 },
|
|
66
|
+
Pro: { monthlyPrice: 6900, monthlyCredits: 25000, creditDiscount: 15, storageGB: 100 },
|
|
67
|
+
Max: { monthlyPrice: 14900, monthlyCredits: 60000, creditDiscount: 20, storageGB: 500 },
|
|
68
|
+
Ultra: { monthlyPrice: 49900, monthlyCredits: 250000, creditDiscount: 25, storageGB: 2000 },
|
|
69
|
+
};
|
|
70
|
+
export function getOnePlans(audience, mode = 'individual') {
|
|
71
|
+
const plans = audience === 'business'
|
|
72
|
+
? OXY_ONE_BUSINESS_PLANS
|
|
73
|
+
: audience === 'creator'
|
|
74
|
+
? OXY_ONE_CREATOR_PLANS
|
|
75
|
+
: mode === 'family'
|
|
76
|
+
? OXY_ONE_FAMILY_PLANS
|
|
77
|
+
: OXY_ONE_PERSONAL_PLANS;
|
|
78
|
+
return Object.entries(plans).map(([name, plan]) => ({ name, ...plan }));
|
|
79
|
+
}
|
|
80
|
+
/** Each product owns its tier names; an Oxy One level selects an app subscription.
|
|
81
|
+
* Bundle inclusion is a proposal and does not activate product entitlements. */
|
|
82
|
+
export const OXY_ONE_APP_SUBSCRIPTIONS = {
|
|
83
|
+
alia: { name: 'Alia', tiers: { Free: null, Go: 'Go', Pro: 'Pro', Max: 'Max', Ultra: 'Ultra' } },
|
|
84
|
+
// Product-owned names; these bundle mappings remain a proposal.
|
|
85
|
+
mention: {
|
|
86
|
+
name: 'Mention',
|
|
87
|
+
tiers: { Free: null, Go: 'Plus', Pro: 'Plus', Max: 'Plus', Ultra: 'Plus' },
|
|
88
|
+
},
|
|
89
|
+
mercaria: {
|
|
90
|
+
name: 'Mercaria',
|
|
91
|
+
tiers: { Free: null, Go: 'Go', Pro: 'Plus', Max: 'Plus', Ultra: 'Ultra' },
|
|
92
|
+
creatorTiers: { Free: null, Go: 'Creator', Pro: 'Creator', Max: 'Creator', Ultra: 'Creator' },
|
|
93
|
+
},
|
|
94
|
+
noted: { name: 'Noted', tiers: { Free: null, Go: '+', Pro: '+', Max: '+', Ultra: '+' } },
|
|
95
|
+
clarity: {
|
|
96
|
+
name: 'Clarity',
|
|
97
|
+
tiers: { Free: null, Go: null, Pro: 'Plus', Max: 'Plus', Ultra: 'Plus' },
|
|
98
|
+
},
|
|
99
|
+
schedio: {
|
|
100
|
+
name: 'Schedio',
|
|
101
|
+
tiers: { Free: null, Go: null, Pro: 'Plus', Max: 'Plus', Ultra: 'Plus' },
|
|
102
|
+
},
|
|
103
|
+
inbox: {
|
|
104
|
+
name: 'Inbox',
|
|
105
|
+
tiers: { Free: null, Go: null, Pro: 'Plus', Max: 'Plus', Ultra: 'Plus' },
|
|
106
|
+
},
|
|
107
|
+
homiio: {
|
|
108
|
+
name: 'Homiio',
|
|
109
|
+
tiers: { Free: null, Go: 'Plus', Pro: 'Plus', Max: 'Plus', Ultra: 'Plus' },
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
/** Annual rounding follows the billable base and per-seat line items. */
|
|
113
|
+
export function onePlanQuote(plan, period, seats) {
|
|
114
|
+
const annual = (value) => Math.round(value * 12 * (1 - OXY_ONE_ANNUAL_DISCOUNT / 100));
|
|
115
|
+
const baseAnnual = annual(plan.monthlyPrice);
|
|
116
|
+
const seatAnnual = plan.monthlySeatPrice === undefined ? undefined : annual(plan.monthlySeatPrice);
|
|
117
|
+
const known = plan.monthlySeatPrice === undefined || seats !== undefined;
|
|
118
|
+
const totalAnnual = known ? baseAnnual + (seatAnnual ?? 0) * (seats ?? 0) : undefined;
|
|
119
|
+
return {
|
|
120
|
+
baseMonthly: period === 'annual' ? Math.round(baseAnnual / 12) : plan.monthlyPrice,
|
|
121
|
+
seatMonthly: seatAnnual === undefined
|
|
122
|
+
? undefined
|
|
123
|
+
: period === 'annual'
|
|
124
|
+
? Math.round(seatAnnual / 12)
|
|
125
|
+
: plan.monthlySeatPrice,
|
|
126
|
+
totalMonthly: totalAnnual === undefined
|
|
127
|
+
? undefined
|
|
128
|
+
: period === 'annual'
|
|
129
|
+
? Math.round(totalAnnual / 12)
|
|
130
|
+
: plan.monthlyPrice + (plan.monthlySeatPrice ?? 0) * (seats ?? 0),
|
|
131
|
+
totalAnnual,
|
|
132
|
+
storageGB: known ? plan.storageGB + (plan.storagePerSeatGB ?? 0) * (seats ?? 0) : undefined,
|
|
133
|
+
monthlyCredits: known
|
|
134
|
+
? plan.monthlyCredits + (plan.creditsPerSeat ?? 0) * (seats ?? 0)
|
|
135
|
+
: undefined,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
@@ -37,3 +37,4 @@ export { BOT_USERNAME_INVALID_MESSAGE, BOT_USERNAME_SUFFIX, NUMERIC_USERNAME_MES
|
|
|
37
37
|
export { userNameCheck } from './userResponse';
|
|
38
38
|
export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './contentClaims';
|
|
39
39
|
export { APP_ASSERTION_CHALLENGE_PURPOSES, APP_ASSERTION_ERROR_CODES, APP_ASSERTION_PLATFORMS, OXY_APP_ASSERTION_AUDIENCE, OXY_APP_ASSERTION_HEADER, OXY_APP_ASSERTION_TTL_SECONDS, OXY_APP_ASSERTION_TYPE, appAssertionChallengeResponseCheck, appAssertionResponseCheck, appAttestKeyResponseCheck, } from './appAssertions';
|
|
40
|
+
export * from '../products/one';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -117,16 +117,6 @@ export * from './accountAccess';
|
|
|
117
117
|
export * from './notifications';
|
|
118
118
|
export * from './email/messages';
|
|
119
119
|
export * from './stickers';
|
|
120
|
-
export { decisionEffortSchema, decisionQuestionSchema, decisionInputSchema, decisionRequestSchema, decisionAnswerSchema, decisionResultSchema, decisionSuccessSchema, decisionFailureSchema, decisionInputBudget, decisionFitsGateway, decisionAnswersMatch, } from './inference/decisions';
|
|
121
|
-
export type { DecisionQuestion, DecisionInput, DecisionRequest, DecisionAnswer, DecisionFailure, DecisionResult, DecisionSuccess, } from './inference/decisions';
|
|
122
|
-
export { SCOPED_EXECUTION_CONTRACT_VERSION, SCOPED_REQUEST_ENVELOPE_VERSION, scopedExecutionAudienceSchema, scopedExecutionSchema, canonicalScopedExecutionJson, } from './inference/scopedExecution';
|
|
123
|
-
export type { ScopedExecutionAudience, ScopedExecution } from './inference/scopedExecution';
|
|
124
|
-
export { scopedInferenceRequestSchema } from './inference/request';
|
|
125
|
-
export type { ScopedInferenceRequest } from './inference/request';
|
|
126
|
-
export { PRIVATE_AUTO_EXECUTION_CONTRACT_VERSION, PRIVATE_AUTO_REQUEST_ENVELOPE_VERSION, PRIVATE_AUTO_LIMITS, PRIVATE_AUTO_INSTRUCTIONS, PRIVATE_AUTO_QUESTION, privateAutoPrincipalSchema, privateAutoSourceApprovalSchema, privateAutoExecutionSchema, privateAutoInputSchema, privateAutoOperationId, } from './inference/privateAutoExecution';
|
|
127
|
-
export type { PrivateAutoPrincipal, PrivateAutoSourceApproval, PrivateAutoExecution, } from './inference/privateAutoExecution';
|
|
128
|
-
export { privateAutoInferenceRequestSchema } from './inference/request';
|
|
129
|
-
export type { PrivateAutoInferenceRequest } from './inference/request';
|
|
130
120
|
export { productDefinitionSchema, subjectProductAccessQuerySchema, productBenefitSchema, productOfferSchema, productSubscriptionSourceSchema, productAccessGrantSchema, subjectProductGrantSnapshotSchema, productOfferSegmentSchema, subjectProductAccessSchema, } from './products/access';
|
|
131
121
|
export type { ProductDefinition, SubjectProductAccessQuery, SubjectProductGrantSnapshot, ProductBenefit, ProductOffer, ProductSubscriptionSource, ProductAccessGrant, ProductOfferSegment, SubjectProductAccess, } from './products/access';
|
|
132
122
|
export { meteredGenerationSchema, type MeteredGeneration } from './inference/economics';
|
|
@@ -141,3 +131,4 @@ export { serviceTokenScopesSchema, serviceTokenOptionsSchema, type ServiceTokenO
|
|
|
141
131
|
export * from './applicationRoles';
|
|
142
132
|
export * from './contentClaims';
|
|
143
133
|
export * from './appAssertions';
|
|
134
|
+
export * from './products/one';
|
|
@@ -1071,96 +1071,6 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1071
1071
|
/** See `version.ts`: exchanged with the data plane on its own. */
|
|
1072
1072
|
schemaVersion: z.ZodLiteral<2>;
|
|
1073
1073
|
deploymentId: z.ZodString;
|
|
1074
|
-
/** Restrictive audience; never an eligibility approval. */
|
|
1075
|
-
scopedExecution: z.ZodOptional<z.ZodObject<{
|
|
1076
|
-
permitId: z.ZodString;
|
|
1077
|
-
idempotencyKey: z.ZodString;
|
|
1078
|
-
fixtureSha256: z.ZodString;
|
|
1079
|
-
expiresAt: z.ZodString;
|
|
1080
|
-
principal: z.ZodObject<{
|
|
1081
|
-
accountId: z.ZodString;
|
|
1082
|
-
applicationId: z.ZodString;
|
|
1083
|
-
credentialId: z.ZodString;
|
|
1084
|
-
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
1085
|
-
}, "strict", z.ZodTypeAny, {
|
|
1086
|
-
accountId: string;
|
|
1087
|
-
environment: "development" | "staging" | "production";
|
|
1088
|
-
applicationId: string;
|
|
1089
|
-
credentialId: string;
|
|
1090
|
-
}, {
|
|
1091
|
-
accountId: string;
|
|
1092
|
-
environment: "development" | "staging" | "production";
|
|
1093
|
-
applicationId: string;
|
|
1094
|
-
credentialId: string;
|
|
1095
|
-
}>;
|
|
1096
|
-
policy: z.ZodObject<{
|
|
1097
|
-
routingPolicyId: z.ZodString;
|
|
1098
|
-
policyVersion: z.ZodNumber;
|
|
1099
|
-
}, "strict", z.ZodTypeAny, {
|
|
1100
|
-
routingPolicyId: string;
|
|
1101
|
-
policyVersion: number;
|
|
1102
|
-
}, {
|
|
1103
|
-
routingPolicyId: string;
|
|
1104
|
-
policyVersion: number;
|
|
1105
|
-
}>;
|
|
1106
|
-
deploymentId: z.ZodString;
|
|
1107
|
-
provider: z.ZodString;
|
|
1108
|
-
keyId: z.ZodString;
|
|
1109
|
-
modelReference: z.ZodEffects<z.ZodString, string, string>;
|
|
1110
|
-
upstreamModelId: z.ZodString;
|
|
1111
|
-
priceVersionId: z.ZodString;
|
|
1112
|
-
providerRateCardVersionId: z.ZodString;
|
|
1113
|
-
providerSourceVersion: z.ZodString;
|
|
1114
|
-
maxCostUsd: z.ZodEffects<z.ZodBranded<z.ZodString, "ExactDecimal">, string & z.BRAND<"ExactDecimal">, string>;
|
|
1115
|
-
}, "strict", z.ZodTypeAny, {
|
|
1116
|
-
expiresAt: string;
|
|
1117
|
-
keyId: string;
|
|
1118
|
-
idempotencyKey: string;
|
|
1119
|
-
principal: {
|
|
1120
|
-
accountId: string;
|
|
1121
|
-
environment: "development" | "staging" | "production";
|
|
1122
|
-
applicationId: string;
|
|
1123
|
-
credentialId: string;
|
|
1124
|
-
};
|
|
1125
|
-
provider: string;
|
|
1126
|
-
priceVersionId: string;
|
|
1127
|
-
modelReference: string;
|
|
1128
|
-
permitId: string;
|
|
1129
|
-
fixtureSha256: string;
|
|
1130
|
-
policy: {
|
|
1131
|
-
routingPolicyId: string;
|
|
1132
|
-
policyVersion: number;
|
|
1133
|
-
};
|
|
1134
|
-
deploymentId: string;
|
|
1135
|
-
upstreamModelId: string;
|
|
1136
|
-
providerRateCardVersionId: string;
|
|
1137
|
-
providerSourceVersion: string;
|
|
1138
|
-
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
1139
|
-
}, {
|
|
1140
|
-
expiresAt: string;
|
|
1141
|
-
keyId: string;
|
|
1142
|
-
idempotencyKey: string;
|
|
1143
|
-
principal: {
|
|
1144
|
-
accountId: string;
|
|
1145
|
-
environment: "development" | "staging" | "production";
|
|
1146
|
-
applicationId: string;
|
|
1147
|
-
credentialId: string;
|
|
1148
|
-
};
|
|
1149
|
-
provider: string;
|
|
1150
|
-
priceVersionId: string;
|
|
1151
|
-
modelReference: string;
|
|
1152
|
-
permitId: string;
|
|
1153
|
-
fixtureSha256: string;
|
|
1154
|
-
policy: {
|
|
1155
|
-
routingPolicyId: string;
|
|
1156
|
-
policyVersion: number;
|
|
1157
|
-
};
|
|
1158
|
-
deploymentId: string;
|
|
1159
|
-
upstreamModelId: string;
|
|
1160
|
-
providerRateCardVersionId: string;
|
|
1161
|
-
providerSourceVersion: string;
|
|
1162
|
-
maxCostUsd: string;
|
|
1163
|
-
}>>;
|
|
1164
1074
|
provider: z.ZodString;
|
|
1165
1075
|
/** Always revision-pinned: a deployment serves specific weights. */
|
|
1166
1076
|
modelReference: z.ZodString;
|
|
@@ -1215,7 +1125,6 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1215
1125
|
schemaVersion: 2;
|
|
1216
1126
|
provider: string;
|
|
1217
1127
|
modelReference: string;
|
|
1218
|
-
deploymentId: string;
|
|
1219
1128
|
regions: string[];
|
|
1220
1129
|
dataPolicy: {
|
|
1221
1130
|
retainsPayloads: boolean;
|
|
@@ -1225,41 +1134,16 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1225
1134
|
subprocessors: string[];
|
|
1226
1135
|
policyUrl?: string | undefined;
|
|
1227
1136
|
};
|
|
1137
|
+
deploymentId: string;
|
|
1228
1138
|
availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
|
|
1229
1139
|
commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
|
|
1230
1140
|
dedicatedCapacity: boolean;
|
|
1231
1141
|
priceVersionId?: string | undefined;
|
|
1232
|
-
scopedExecution?: {
|
|
1233
|
-
expiresAt: string;
|
|
1234
|
-
keyId: string;
|
|
1235
|
-
idempotencyKey: string;
|
|
1236
|
-
principal: {
|
|
1237
|
-
accountId: string;
|
|
1238
|
-
environment: "development" | "staging" | "production";
|
|
1239
|
-
applicationId: string;
|
|
1240
|
-
credentialId: string;
|
|
1241
|
-
};
|
|
1242
|
-
provider: string;
|
|
1243
|
-
priceVersionId: string;
|
|
1244
|
-
modelReference: string;
|
|
1245
|
-
permitId: string;
|
|
1246
|
-
fixtureSha256: string;
|
|
1247
|
-
policy: {
|
|
1248
|
-
routingPolicyId: string;
|
|
1249
|
-
policyVersion: number;
|
|
1250
|
-
};
|
|
1251
|
-
deploymentId: string;
|
|
1252
|
-
upstreamModelId: string;
|
|
1253
|
-
providerRateCardVersionId: string;
|
|
1254
|
-
providerSourceVersion: string;
|
|
1255
|
-
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
1256
|
-
} | undefined;
|
|
1257
1142
|
}, {
|
|
1258
1143
|
status: "active" | "retired" | "disabled" | "degraded";
|
|
1259
1144
|
schemaVersion: 2;
|
|
1260
1145
|
provider: string;
|
|
1261
1146
|
modelReference: string;
|
|
1262
|
-
deploymentId: string;
|
|
1263
1147
|
regions: string[];
|
|
1264
1148
|
dataPolicy: {
|
|
1265
1149
|
retainsPayloads: boolean;
|
|
@@ -1269,41 +1153,16 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1269
1153
|
subprocessors?: string[] | undefined;
|
|
1270
1154
|
policyUrl?: string | undefined;
|
|
1271
1155
|
};
|
|
1156
|
+
deploymentId: string;
|
|
1272
1157
|
availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
|
|
1273
1158
|
commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
|
|
1274
1159
|
dedicatedCapacity: boolean;
|
|
1275
1160
|
priceVersionId?: string | undefined;
|
|
1276
|
-
scopedExecution?: {
|
|
1277
|
-
expiresAt: string;
|
|
1278
|
-
keyId: string;
|
|
1279
|
-
idempotencyKey: string;
|
|
1280
|
-
principal: {
|
|
1281
|
-
accountId: string;
|
|
1282
|
-
environment: "development" | "staging" | "production";
|
|
1283
|
-
applicationId: string;
|
|
1284
|
-
credentialId: string;
|
|
1285
|
-
};
|
|
1286
|
-
provider: string;
|
|
1287
|
-
priceVersionId: string;
|
|
1288
|
-
modelReference: string;
|
|
1289
|
-
permitId: string;
|
|
1290
|
-
fixtureSha256: string;
|
|
1291
|
-
policy: {
|
|
1292
|
-
routingPolicyId: string;
|
|
1293
|
-
policyVersion: number;
|
|
1294
|
-
};
|
|
1295
|
-
deploymentId: string;
|
|
1296
|
-
upstreamModelId: string;
|
|
1297
|
-
providerRateCardVersionId: string;
|
|
1298
|
-
providerSourceVersion: string;
|
|
1299
|
-
maxCostUsd: string;
|
|
1300
|
-
} | undefined;
|
|
1301
1161
|
}>, {
|
|
1302
1162
|
status: "active" | "retired" | "disabled" | "degraded";
|
|
1303
1163
|
schemaVersion: 2;
|
|
1304
1164
|
provider: string;
|
|
1305
1165
|
modelReference: string;
|
|
1306
|
-
deploymentId: string;
|
|
1307
1166
|
regions: string[];
|
|
1308
1167
|
dataPolicy: {
|
|
1309
1168
|
retainsPayloads: boolean;
|
|
@@ -1313,41 +1172,16 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1313
1172
|
subprocessors: string[];
|
|
1314
1173
|
policyUrl?: string | undefined;
|
|
1315
1174
|
};
|
|
1175
|
+
deploymentId: string;
|
|
1316
1176
|
availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
|
|
1317
1177
|
commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
|
|
1318
1178
|
dedicatedCapacity: boolean;
|
|
1319
1179
|
priceVersionId?: string | undefined;
|
|
1320
|
-
scopedExecution?: {
|
|
1321
|
-
expiresAt: string;
|
|
1322
|
-
keyId: string;
|
|
1323
|
-
idempotencyKey: string;
|
|
1324
|
-
principal: {
|
|
1325
|
-
accountId: string;
|
|
1326
|
-
environment: "development" | "staging" | "production";
|
|
1327
|
-
applicationId: string;
|
|
1328
|
-
credentialId: string;
|
|
1329
|
-
};
|
|
1330
|
-
provider: string;
|
|
1331
|
-
priceVersionId: string;
|
|
1332
|
-
modelReference: string;
|
|
1333
|
-
permitId: string;
|
|
1334
|
-
fixtureSha256: string;
|
|
1335
|
-
policy: {
|
|
1336
|
-
routingPolicyId: string;
|
|
1337
|
-
policyVersion: number;
|
|
1338
|
-
};
|
|
1339
|
-
deploymentId: string;
|
|
1340
|
-
upstreamModelId: string;
|
|
1341
|
-
providerRateCardVersionId: string;
|
|
1342
|
-
providerSourceVersion: string;
|
|
1343
|
-
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
1344
|
-
} | undefined;
|
|
1345
1180
|
}, {
|
|
1346
1181
|
status: "active" | "retired" | "disabled" | "degraded";
|
|
1347
1182
|
schemaVersion: 2;
|
|
1348
1183
|
provider: string;
|
|
1349
1184
|
modelReference: string;
|
|
1350
|
-
deploymentId: string;
|
|
1351
1185
|
regions: string[];
|
|
1352
1186
|
dataPolicy: {
|
|
1353
1187
|
retainsPayloads: boolean;
|
|
@@ -1357,35 +1191,11 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1357
1191
|
subprocessors?: string[] | undefined;
|
|
1358
1192
|
policyUrl?: string | undefined;
|
|
1359
1193
|
};
|
|
1194
|
+
deploymentId: string;
|
|
1360
1195
|
availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
|
|
1361
1196
|
commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
|
|
1362
1197
|
dedicatedCapacity: boolean;
|
|
1363
1198
|
priceVersionId?: string | undefined;
|
|
1364
|
-
scopedExecution?: {
|
|
1365
|
-
expiresAt: string;
|
|
1366
|
-
keyId: string;
|
|
1367
|
-
idempotencyKey: string;
|
|
1368
|
-
principal: {
|
|
1369
|
-
accountId: string;
|
|
1370
|
-
environment: "development" | "staging" | "production";
|
|
1371
|
-
applicationId: string;
|
|
1372
|
-
credentialId: string;
|
|
1373
|
-
};
|
|
1374
|
-
provider: string;
|
|
1375
|
-
priceVersionId: string;
|
|
1376
|
-
modelReference: string;
|
|
1377
|
-
permitId: string;
|
|
1378
|
-
fixtureSha256: string;
|
|
1379
|
-
policy: {
|
|
1380
|
-
routingPolicyId: string;
|
|
1381
|
-
policyVersion: number;
|
|
1382
|
-
};
|
|
1383
|
-
deploymentId: string;
|
|
1384
|
-
upstreamModelId: string;
|
|
1385
|
-
providerRateCardVersionId: string;
|
|
1386
|
-
providerSourceVersion: string;
|
|
1387
|
-
maxCostUsd: string;
|
|
1388
|
-
} | undefined;
|
|
1389
1199
|
}>;
|
|
1390
1200
|
/** One candidate a profile may resolve to, and how strongly it is preferred. */
|
|
1391
1201
|
export declare const routingProfileCandidateSchema: z.ZodObject<{
|
|
@@ -320,7 +320,6 @@ export declare const meteredGenerationSchema: z.ZodObject<{
|
|
|
320
320
|
quantity: number;
|
|
321
321
|
}[];
|
|
322
322
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
323
|
-
economicPolicyVersion: string;
|
|
324
323
|
tariff: {
|
|
325
324
|
status: "quoted";
|
|
326
325
|
currency: string;
|
|
@@ -335,6 +334,7 @@ export declare const meteredGenerationSchema: z.ZodObject<{
|
|
|
335
334
|
};
|
|
336
335
|
meteredUsageId: string;
|
|
337
336
|
economicTreatment: "internal_metered";
|
|
337
|
+
economicPolicyVersion: string;
|
|
338
338
|
generationId?: string | undefined;
|
|
339
339
|
parentRequestId?: string | undefined;
|
|
340
340
|
delegatedUserId?: string | undefined;
|
|
@@ -354,7 +354,6 @@ export declare const meteredGenerationSchema: z.ZodObject<{
|
|
|
354
354
|
quantity: number;
|
|
355
355
|
}[];
|
|
356
356
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
357
|
-
economicPolicyVersion: string;
|
|
358
357
|
tariff: {
|
|
359
358
|
status: "quoted";
|
|
360
359
|
currency: string;
|
|
@@ -369,6 +368,7 @@ export declare const meteredGenerationSchema: z.ZodObject<{
|
|
|
369
368
|
};
|
|
370
369
|
meteredUsageId: string;
|
|
371
370
|
economicTreatment: "internal_metered";
|
|
371
|
+
economicPolicyVersion: string;
|
|
372
372
|
generationId?: string | undefined;
|
|
373
373
|
parentRequestId?: string | undefined;
|
|
374
374
|
delegatedUserId?: string | undefined;
|