@oxy.so/contracts 4.7.0 → 4.9.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.
Files changed (64) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountGraph.js +13 -5
  3. package/dist/cjs/accountSubject.js +189 -0
  4. package/dist/cjs/agency.js +56 -4
  5. package/dist/cjs/agentKeys.js +67 -0
  6. package/dist/cjs/capabilityBindings.js +72 -0
  7. package/dist/cjs/index.js +68 -13
  8. package/dist/cjs/inference/catalogue.js +5 -2
  9. package/dist/cjs/inference/economics.js +135 -0
  10. package/dist/cjs/inference/request.js +33 -1
  11. package/dist/cjs/inference/scopedExecution.js +87 -0
  12. package/dist/cjs/products/access.js +60 -0
  13. package/dist/cjs/products/billing.js +32 -0
  14. package/dist/cjs/signIn.js +1 -1
  15. package/dist/esm/.tsbuildinfo +1 -1
  16. package/dist/esm/accountGraph.js +13 -5
  17. package/dist/esm/accountSubject.js +182 -0
  18. package/dist/esm/agency.js +55 -3
  19. package/dist/esm/agentKeys.js +63 -0
  20. package/dist/esm/capabilityBindings.js +67 -0
  21. package/dist/esm/index.js +12 -1
  22. package/dist/esm/inference/catalogue.js +3 -0
  23. package/dist/esm/inference/economics.js +132 -0
  24. package/dist/esm/inference/request.js +32 -0
  25. package/dist/esm/inference/scopedExecution.js +83 -0
  26. package/dist/esm/products/access.js +57 -0
  27. package/dist/esm/products/billing.js +29 -0
  28. package/dist/esm/signIn.js +1 -1
  29. package/dist/types/.tsbuildinfo +1 -1
  30. package/dist/types/accountGraph.d.ts +23 -8
  31. package/dist/types/accountSubject.d.ts +210 -0
  32. package/dist/types/agency.d.ts +956 -190
  33. package/dist/types/agentKeys.d.ts +525 -0
  34. package/dist/types/capabilityBindings.d.ts +6 -0
  35. package/dist/types/deviceDirectory.d.ts +50 -50
  36. package/dist/types/deviceSession.d.ts +14 -14
  37. package/dist/types/externalIdentity.d.ts +4 -4
  38. package/dist/types/identity.d.ts +2 -2
  39. package/dist/types/index.d.ts +16 -2
  40. package/dist/types/inference/accountBilling.d.ts +30 -30
  41. package/dist/types/inference/aliaModelRelease.d.ts +4 -4
  42. package/dist/types/inference/catalogue.d.ts +200 -10
  43. package/dist/types/inference/economics.d.ts +376 -0
  44. package/dist/types/inference/entitlement.d.ts +47 -47
  45. package/dist/types/inference/inbox.d.ts +12 -12
  46. package/dist/types/inference/modelDocumentation.d.ts +8 -8
  47. package/dist/types/inference/priceVersion.d.ts +4 -4
  48. package/dist/types/inference/providerConnection.d.ts +38 -38
  49. package/dist/types/inference/realtime.d.ts +32 -32
  50. package/dist/types/inference/request.d.ts +2289 -16
  51. package/dist/types/inference/routingPolicy.d.ts +20 -20
  52. package/dist/types/inference/scopedExecution.d.ts +202 -0
  53. package/dist/types/inference/streamEvents.d.ts +4 -4
  54. package/dist/types/inference/usage.d.ts +12 -12
  55. package/dist/types/keyRotation.d.ts +2 -2
  56. package/dist/types/notifications.d.ts +4 -4
  57. package/dist/types/oauth.d.ts +30 -30
  58. package/dist/types/products/access.d.ts +487 -0
  59. package/dist/types/products/billing.d.ts +563 -0
  60. package/dist/types/recommendations.d.ts +2 -2
  61. package/dist/types/sessionStatus.d.ts +10 -10
  62. package/dist/types/signIn.d.ts +6 -6
  63. package/dist/types/transparency.d.ts +2 -2
  64. package/package.json +1 -1
@@ -623,6 +623,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
623
623
  }>;
624
624
  }, "strip", z.ZodTypeAny, {
625
625
  displayName: string;
626
+ schemaVersion: 1;
626
627
  capabilities: {
627
628
  tools: boolean;
628
629
  inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
@@ -642,7 +643,6 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
642
643
  sessionKinds: ("conversation" | "transcription" | "translation")[];
643
644
  } | undefined;
644
645
  };
645
- schemaVersion: 1;
646
646
  slug: string;
647
647
  modelId: string;
648
648
  publisher: string;
@@ -671,6 +671,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
671
671
  releasedOn?: string | undefined;
672
672
  }, {
673
673
  displayName: string;
674
+ schemaVersion: 1;
674
675
  capabilities: {
675
676
  tools: boolean;
676
677
  inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
@@ -690,7 +691,6 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
690
691
  sessionKinds: ("conversation" | "transcription" | "translation")[];
691
692
  } | undefined;
692
693
  };
693
- schemaVersion: 1;
694
694
  slug: string;
695
695
  modelId: string;
696
696
  publisher: string;
@@ -719,6 +719,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
719
719
  releasedOn?: string | undefined;
720
720
  }>, {
721
721
  displayName: string;
722
+ schemaVersion: 1;
722
723
  capabilities: {
723
724
  tools: boolean;
724
725
  inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
@@ -738,7 +739,6 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
738
739
  sessionKinds: ("conversation" | "transcription" | "translation")[];
739
740
  } | undefined;
740
741
  };
741
- schemaVersion: 1;
742
742
  slug: string;
743
743
  modelId: string;
744
744
  publisher: string;
@@ -767,6 +767,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
767
767
  releasedOn?: string | undefined;
768
768
  }, {
769
769
  displayName: string;
770
+ schemaVersion: 1;
770
771
  capabilities: {
771
772
  tools: boolean;
772
773
  inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
@@ -786,7 +787,6 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
786
787
  sessionKinds: ("conversation" | "transcription" | "translation")[];
787
788
  } | undefined;
788
789
  };
789
- schemaVersion: 1;
790
790
  slug: string;
791
791
  modelId: string;
792
792
  publisher: string;
@@ -1069,6 +1069,96 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1069
1069
  /** See `version.ts`: exchanged with the data plane on its own. */
1070
1070
  schemaVersion: z.ZodLiteral<2>;
1071
1071
  deploymentId: z.ZodString;
1072
+ /** Restrictive audience; never an eligibility approval. */
1073
+ scopedExecution: z.ZodOptional<z.ZodObject<{
1074
+ permitId: z.ZodString;
1075
+ idempotencyKey: z.ZodString;
1076
+ fixtureSha256: z.ZodString;
1077
+ expiresAt: z.ZodString;
1078
+ principal: z.ZodObject<{
1079
+ accountId: z.ZodString;
1080
+ applicationId: z.ZodString;
1081
+ credentialId: z.ZodString;
1082
+ environment: z.ZodEnum<["development", "staging", "production"]>;
1083
+ }, "strict", z.ZodTypeAny, {
1084
+ environment: "development" | "staging" | "production";
1085
+ accountId: string;
1086
+ applicationId: string;
1087
+ credentialId: string;
1088
+ }, {
1089
+ environment: "development" | "staging" | "production";
1090
+ accountId: string;
1091
+ applicationId: string;
1092
+ credentialId: string;
1093
+ }>;
1094
+ policy: z.ZodObject<{
1095
+ routingPolicyId: z.ZodString;
1096
+ policyVersion: z.ZodNumber;
1097
+ }, "strict", z.ZodTypeAny, {
1098
+ routingPolicyId: string;
1099
+ policyVersion: number;
1100
+ }, {
1101
+ routingPolicyId: string;
1102
+ policyVersion: number;
1103
+ }>;
1104
+ deploymentId: z.ZodString;
1105
+ provider: z.ZodString;
1106
+ keyId: z.ZodString;
1107
+ modelReference: z.ZodEffects<z.ZodString, string, string>;
1108
+ upstreamModelId: z.ZodString;
1109
+ priceVersionId: z.ZodString;
1110
+ providerRateCardVersionId: z.ZodString;
1111
+ providerSourceVersion: z.ZodString;
1112
+ maxCostUsd: z.ZodEffects<z.ZodBranded<z.ZodString, "ExactDecimal">, string & z.BRAND<"ExactDecimal">, string>;
1113
+ }, "strict", z.ZodTypeAny, {
1114
+ expiresAt: string;
1115
+ keyId: string;
1116
+ idempotencyKey: string;
1117
+ principal: {
1118
+ environment: "development" | "staging" | "production";
1119
+ accountId: string;
1120
+ applicationId: string;
1121
+ credentialId: string;
1122
+ };
1123
+ provider: string;
1124
+ priceVersionId: string;
1125
+ modelReference: string;
1126
+ permitId: string;
1127
+ fixtureSha256: string;
1128
+ policy: {
1129
+ routingPolicyId: string;
1130
+ policyVersion: number;
1131
+ };
1132
+ deploymentId: string;
1133
+ upstreamModelId: string;
1134
+ providerRateCardVersionId: string;
1135
+ providerSourceVersion: string;
1136
+ maxCostUsd: string & z.BRAND<"ExactDecimal">;
1137
+ }, {
1138
+ expiresAt: string;
1139
+ keyId: string;
1140
+ idempotencyKey: string;
1141
+ principal: {
1142
+ environment: "development" | "staging" | "production";
1143
+ accountId: string;
1144
+ applicationId: string;
1145
+ credentialId: string;
1146
+ };
1147
+ provider: string;
1148
+ priceVersionId: string;
1149
+ modelReference: string;
1150
+ permitId: string;
1151
+ fixtureSha256: string;
1152
+ policy: {
1153
+ routingPolicyId: string;
1154
+ policyVersion: number;
1155
+ };
1156
+ deploymentId: string;
1157
+ upstreamModelId: string;
1158
+ providerRateCardVersionId: string;
1159
+ providerSourceVersion: string;
1160
+ maxCostUsd: string;
1161
+ }>>;
1072
1162
  provider: z.ZodString;
1073
1163
  /** Always revision-pinned: a deployment serves specific weights. */
1074
1164
  modelReference: z.ZodString;
@@ -1123,6 +1213,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1123
1213
  schemaVersion: 2;
1124
1214
  provider: string;
1125
1215
  modelReference: string;
1216
+ deploymentId: string;
1126
1217
  regions: string[];
1127
1218
  dataPolicy: {
1128
1219
  retainsPayloads: boolean;
@@ -1132,16 +1223,41 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1132
1223
  subprocessors: string[];
1133
1224
  policyUrl?: string | undefined;
1134
1225
  };
1135
- deploymentId: string;
1136
1226
  availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
1137
1227
  commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
1138
1228
  dedicatedCapacity: boolean;
1139
1229
  priceVersionId?: string | undefined;
1230
+ scopedExecution?: {
1231
+ expiresAt: string;
1232
+ keyId: string;
1233
+ idempotencyKey: string;
1234
+ principal: {
1235
+ environment: "development" | "staging" | "production";
1236
+ accountId: string;
1237
+ applicationId: string;
1238
+ credentialId: string;
1239
+ };
1240
+ provider: string;
1241
+ priceVersionId: string;
1242
+ modelReference: string;
1243
+ permitId: string;
1244
+ fixtureSha256: string;
1245
+ policy: {
1246
+ routingPolicyId: string;
1247
+ policyVersion: number;
1248
+ };
1249
+ deploymentId: string;
1250
+ upstreamModelId: string;
1251
+ providerRateCardVersionId: string;
1252
+ providerSourceVersion: string;
1253
+ maxCostUsd: string & z.BRAND<"ExactDecimal">;
1254
+ } | undefined;
1140
1255
  }, {
1141
1256
  status: "active" | "disabled" | "retired" | "degraded";
1142
1257
  schemaVersion: 2;
1143
1258
  provider: string;
1144
1259
  modelReference: string;
1260
+ deploymentId: string;
1145
1261
  regions: string[];
1146
1262
  dataPolicy: {
1147
1263
  retainsPayloads: boolean;
@@ -1151,16 +1267,41 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1151
1267
  subprocessors?: string[] | undefined;
1152
1268
  policyUrl?: string | undefined;
1153
1269
  };
1154
- deploymentId: string;
1155
1270
  availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
1156
1271
  commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
1157
1272
  dedicatedCapacity: boolean;
1158
1273
  priceVersionId?: string | undefined;
1274
+ scopedExecution?: {
1275
+ expiresAt: string;
1276
+ keyId: string;
1277
+ idempotencyKey: string;
1278
+ principal: {
1279
+ environment: "development" | "staging" | "production";
1280
+ accountId: string;
1281
+ applicationId: string;
1282
+ credentialId: string;
1283
+ };
1284
+ provider: string;
1285
+ priceVersionId: string;
1286
+ modelReference: string;
1287
+ permitId: string;
1288
+ fixtureSha256: string;
1289
+ policy: {
1290
+ routingPolicyId: string;
1291
+ policyVersion: number;
1292
+ };
1293
+ deploymentId: string;
1294
+ upstreamModelId: string;
1295
+ providerRateCardVersionId: string;
1296
+ providerSourceVersion: string;
1297
+ maxCostUsd: string;
1298
+ } | undefined;
1159
1299
  }>, {
1160
1300
  status: "active" | "disabled" | "retired" | "degraded";
1161
1301
  schemaVersion: 2;
1162
1302
  provider: string;
1163
1303
  modelReference: string;
1304
+ deploymentId: string;
1164
1305
  regions: string[];
1165
1306
  dataPolicy: {
1166
1307
  retainsPayloads: boolean;
@@ -1170,16 +1311,41 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1170
1311
  subprocessors: string[];
1171
1312
  policyUrl?: string | undefined;
1172
1313
  };
1173
- deploymentId: string;
1174
1314
  availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
1175
1315
  commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
1176
1316
  dedicatedCapacity: boolean;
1177
1317
  priceVersionId?: string | undefined;
1318
+ scopedExecution?: {
1319
+ expiresAt: string;
1320
+ keyId: string;
1321
+ idempotencyKey: string;
1322
+ principal: {
1323
+ environment: "development" | "staging" | "production";
1324
+ accountId: string;
1325
+ applicationId: string;
1326
+ credentialId: string;
1327
+ };
1328
+ provider: string;
1329
+ priceVersionId: string;
1330
+ modelReference: string;
1331
+ permitId: string;
1332
+ fixtureSha256: string;
1333
+ policy: {
1334
+ routingPolicyId: string;
1335
+ policyVersion: number;
1336
+ };
1337
+ deploymentId: string;
1338
+ upstreamModelId: string;
1339
+ providerRateCardVersionId: string;
1340
+ providerSourceVersion: string;
1341
+ maxCostUsd: string & z.BRAND<"ExactDecimal">;
1342
+ } | undefined;
1178
1343
  }, {
1179
1344
  status: "active" | "disabled" | "retired" | "degraded";
1180
1345
  schemaVersion: 2;
1181
1346
  provider: string;
1182
1347
  modelReference: string;
1348
+ deploymentId: string;
1183
1349
  regions: string[];
1184
1350
  dataPolicy: {
1185
1351
  retainsPayloads: boolean;
@@ -1189,11 +1355,35 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1189
1355
  subprocessors?: string[] | undefined;
1190
1356
  policyUrl?: string | undefined;
1191
1357
  };
1192
- deploymentId: string;
1193
1358
  availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
1194
1359
  commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
1195
1360
  dedicatedCapacity: boolean;
1196
1361
  priceVersionId?: string | undefined;
1362
+ scopedExecution?: {
1363
+ expiresAt: string;
1364
+ keyId: string;
1365
+ idempotencyKey: string;
1366
+ principal: {
1367
+ environment: "development" | "staging" | "production";
1368
+ accountId: string;
1369
+ applicationId: string;
1370
+ credentialId: string;
1371
+ };
1372
+ provider: string;
1373
+ priceVersionId: string;
1374
+ modelReference: string;
1375
+ permitId: string;
1376
+ fixtureSha256: string;
1377
+ policy: {
1378
+ routingPolicyId: string;
1379
+ policyVersion: number;
1380
+ };
1381
+ deploymentId: string;
1382
+ upstreamModelId: string;
1383
+ providerRateCardVersionId: string;
1384
+ providerSourceVersion: string;
1385
+ maxCostUsd: string;
1386
+ } | undefined;
1197
1387
  }>;
1198
1388
  /** One candidate a profile may resolve to, and how strongly it is preferred. */
1199
1389
  export declare const routingProfileCandidateSchema: z.ZodObject<{
@@ -1780,6 +1970,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1780
1970
  powerClass: z.ZodOptional<z.ZodEnum<["instant", "medium", "high", "pro", "ultra"]>>;
1781
1971
  }, "strip", z.ZodTypeAny, {
1782
1972
  displayName: string;
1973
+ schemaVersion: 3;
1783
1974
  capabilities: {
1784
1975
  tools: boolean;
1785
1976
  inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
@@ -1799,7 +1990,6 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1799
1990
  sessionKinds: ("conversation" | "transcription" | "translation")[];
1800
1991
  } | undefined;
1801
1992
  };
1802
- schemaVersion: 3;
1803
1993
  modelId: string;
1804
1994
  publisher: {
1805
1995
  displayName: string;
@@ -1882,6 +2072,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1882
2072
  powerClass?: "medium" | "high" | "instant" | "pro" | "ultra" | undefined;
1883
2073
  }, {
1884
2074
  displayName: string;
2075
+ schemaVersion: 3;
1885
2076
  capabilities: {
1886
2077
  tools: boolean;
1887
2078
  inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
@@ -1901,7 +2092,6 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1901
2092
  sessionKinds: ("conversation" | "transcription" | "translation")[];
1902
2093
  } | undefined;
1903
2094
  };
1904
- schemaVersion: 3;
1905
2095
  modelId: string;
1906
2096
  publisher: {
1907
2097
  displayName: string;