@oxy.so/contracts 4.25.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.
@@ -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;