@oxy.so/contracts 4.14.0 → 4.15.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 (51) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/index.js +2 -1
  3. package/dist/cjs/products/billing.js +1 -0
  4. package/dist/cjs/products/checkout.js +14 -1
  5. package/dist/cjs/products/plans.js +18 -2
  6. package/dist/cjs/userResponse.js +8 -1
  7. package/dist/esm/.tsbuildinfo +1 -1
  8. package/dist/esm/index.js +1 -1
  9. package/dist/esm/products/billing.js +1 -0
  10. package/dist/esm/products/checkout.js +13 -0
  11. package/dist/esm/products/plans.js +17 -1
  12. package/dist/esm/userResponse.js +8 -1
  13. package/dist/types/.tsbuildinfo +1 -1
  14. package/dist/types/accountGraph.d.ts +22 -22
  15. package/dist/types/accountSubject.d.ts +4 -4
  16. package/dist/types/agency.d.ts +86 -86
  17. package/dist/types/deviceDirectory.d.ts +180 -180
  18. package/dist/types/email/messages.d.ts +78 -78
  19. package/dist/types/externalIdentity.d.ts +92 -59
  20. package/dist/types/index.d.ts +1 -1
  21. package/dist/types/inference/accountBilling.d.ts +36 -36
  22. package/dist/types/inference/catalogue.d.ts +12 -12
  23. package/dist/types/inference/decisions.d.ts +16 -16
  24. package/dist/types/inference/economics.d.ts +6 -6
  25. package/dist/types/inference/embeddings.d.ts +18 -18
  26. package/dist/types/inference/entitlement.d.ts +12 -12
  27. package/dist/types/inference/errors.d.ts +4 -4
  28. package/dist/types/inference/inbox.d.ts +17 -17
  29. package/dist/types/inference/priceVersion.d.ts +8 -8
  30. package/dist/types/inference/privateAutoExecution.d.ts +12 -12
  31. package/dist/types/inference/providerConnection.d.ts +24 -24
  32. package/dist/types/inference/realtime.d.ts +26 -26
  33. package/dist/types/inference/request.d.ts +26 -26
  34. package/dist/types/inference/routingPolicy.d.ts +4 -4
  35. package/dist/types/inference/scopedExecution.d.ts +8 -8
  36. package/dist/types/inference/streamEvents.d.ts +20 -20
  37. package/dist/types/inference/usage.d.ts +8 -8
  38. package/dist/types/keyRecovery.d.ts +4 -4
  39. package/dist/types/linkedAccounts.d.ts +16 -16
  40. package/dist/types/notifications.d.ts +4 -4
  41. package/dist/types/oauth.d.ts +40 -40
  42. package/dist/types/products/access.d.ts +18 -18
  43. package/dist/types/products/billing.d.ts +32 -24
  44. package/dist/types/products/checkout.d.ts +36 -0
  45. package/dist/types/products/plans.d.ts +108 -11
  46. package/dist/types/recommendations.d.ts +30 -30
  47. package/dist/types/safety.d.ts +2 -2
  48. package/dist/types/sessionStatus.d.ts +6 -6
  49. package/dist/types/stickers.d.ts +32 -32
  50. package/dist/types/userResponse.d.ts +247 -111
  51. package/package.json +1 -1
@@ -133,10 +133,10 @@ export declare const billingProfileSchema: z.ZodObject<{
133
133
  updatedAt: z.ZodString;
134
134
  }, "strict", z.ZodTypeAny, {
135
135
  status: "active" | "suspended" | "closed";
136
- schemaVersion: 1;
137
136
  accountId: string & z.BRAND<"OxyAccountId">;
138
137
  createdAt: string;
139
138
  updatedAt: string;
139
+ schemaVersion: 1;
140
140
  currency: string;
141
141
  billingMode: "prepaid" | "invoiced";
142
142
  creditLimit: string & z.BRAND<"ExactDecimal">;
@@ -147,10 +147,10 @@ export declare const billingProfileSchema: z.ZodObject<{
147
147
  };
148
148
  }, {
149
149
  status: "active" | "suspended" | "closed";
150
- schemaVersion: 1;
151
150
  accountId: string;
152
151
  createdAt: string;
153
152
  updatedAt: string;
153
+ schemaVersion: 1;
154
154
  currency: string;
155
155
  billingMode: "prepaid" | "invoiced";
156
156
  creditLimit: string;
@@ -222,10 +222,10 @@ export declare const accountBillingStateSchema: z.ZodObject<{
222
222
  updatedAt: z.ZodString;
223
223
  }, "strict", z.ZodTypeAny, {
224
224
  status: "active" | "suspended" | "closed";
225
- schemaVersion: 1;
226
225
  accountId: string & z.BRAND<"OxyAccountId">;
227
226
  createdAt: string;
228
227
  updatedAt: string;
228
+ schemaVersion: 1;
229
229
  currency: string;
230
230
  billingMode: "prepaid" | "invoiced";
231
231
  creditLimit: string & z.BRAND<"ExactDecimal">;
@@ -236,10 +236,10 @@ export declare const accountBillingStateSchema: z.ZodObject<{
236
236
  };
237
237
  }, {
238
238
  status: "active" | "suspended" | "closed";
239
- schemaVersion: 1;
240
239
  accountId: string;
241
240
  createdAt: string;
242
241
  updatedAt: string;
242
+ schemaVersion: 1;
243
243
  currency: string;
244
244
  billingMode: "prepaid" | "invoiced";
245
245
  creditLimit: string;
@@ -250,14 +250,14 @@ export declare const accountBillingStateSchema: z.ZodObject<{
250
250
  };
251
251
  }>;
252
252
  }, "strict", z.ZodTypeAny, {
253
- schemaVersion: 1;
254
253
  accountId: string & z.BRAND<"OxyAccountId">;
254
+ schemaVersion: 1;
255
255
  profile: {
256
256
  status: "active" | "suspended" | "closed";
257
- schemaVersion: 1;
258
257
  accountId: string & z.BRAND<"OxyAccountId">;
259
258
  createdAt: string;
260
259
  updatedAt: string;
260
+ schemaVersion: 1;
261
261
  currency: string;
262
262
  billingMode: "prepaid" | "invoiced";
263
263
  creditLimit: string & z.BRAND<"ExactDecimal">;
@@ -270,14 +270,14 @@ export declare const accountBillingStateSchema: z.ZodObject<{
270
270
  billingAccountId: string & z.BRAND<"OxyAccountId">;
271
271
  inherited: boolean;
272
272
  }, {
273
- schemaVersion: 1;
274
273
  accountId: string;
274
+ schemaVersion: 1;
275
275
  profile: {
276
276
  status: "active" | "suspended" | "closed";
277
- schemaVersion: 1;
278
277
  accountId: string;
279
278
  createdAt: string;
280
279
  updatedAt: string;
280
+ schemaVersion: 1;
281
281
  currency: string;
282
282
  billingMode: "prepaid" | "invoiced";
283
283
  creditLimit: string;
@@ -323,9 +323,9 @@ export declare const billingInvoiceSchema: z.ZodObject<{
323
323
  receiptCount: z.ZodNumber;
324
324
  }, "strict", z.ZodTypeAny, {
325
325
  status: "void" | "paid" | "draft" | "open";
326
- schemaVersion: 1;
327
326
  accountId: string & z.BRAND<"OxyAccountId">;
328
327
  id: string;
328
+ schemaVersion: 1;
329
329
  currency: string;
330
330
  periodEnd: string;
331
331
  periodStart: string;
@@ -338,9 +338,9 @@ export declare const billingInvoiceSchema: z.ZodObject<{
338
338
  paidAt?: string | undefined;
339
339
  }, {
340
340
  status: "void" | "paid" | "draft" | "open";
341
- schemaVersion: 1;
342
341
  accountId: string;
343
342
  id: string;
343
+ schemaVersion: 1;
344
344
  currency: string;
345
345
  periodEnd: string;
346
346
  periodStart: string;
@@ -385,8 +385,8 @@ export declare const externalPaymentSchema: z.ZodObject<{
385
385
  createdAt: z.ZodString;
386
386
  }, "strict", z.ZodTypeAny, {
387
387
  accountId: string & z.BRAND<"OxyAccountId">;
388
- id: string;
389
388
  createdAt: string;
389
+ id: string;
390
390
  occurredAt: string;
391
391
  currency: string;
392
392
  amount: string & z.BRAND<"ExactDecimal">;
@@ -396,8 +396,8 @@ export declare const externalPaymentSchema: z.ZodObject<{
396
396
  ledgerEntryId: string;
397
397
  }, {
398
398
  accountId: string;
399
- id: string;
400
399
  createdAt: string;
400
+ id: string;
401
401
  occurredAt: string;
402
402
  currency: string;
403
403
  amount: string;
@@ -433,24 +433,24 @@ export declare const autoRechargeAttemptSchema: z.ZodObject<{
433
433
  createdAt: z.ZodString;
434
434
  updatedAt: z.ZodString;
435
435
  }, "strict", z.ZodTypeAny, {
436
- status: "succeeded" | "failed" | "pending";
437
- schemaVersion: 1;
436
+ status: "pending" | "succeeded" | "failed";
438
437
  accountId: string & z.BRAND<"OxyAccountId">;
439
- id: string;
440
438
  createdAt: string;
441
439
  updatedAt: string;
440
+ id: string;
441
+ schemaVersion: 1;
442
442
  currency: string;
443
443
  requestedAmount: string & z.BRAND<"ExactDecimal">;
444
444
  balanceAtTrigger: string & z.BRAND<"ExactDecimal">;
445
445
  failureCode?: string | undefined;
446
446
  externalRef?: string | undefined;
447
447
  }, {
448
- status: "succeeded" | "failed" | "pending";
449
- schemaVersion: 1;
448
+ status: "pending" | "succeeded" | "failed";
450
449
  accountId: string;
451
- id: string;
452
450
  createdAt: string;
453
451
  updatedAt: string;
452
+ id: string;
453
+ schemaVersion: 1;
454
454
  currency: string;
455
455
  requestedAmount: string;
456
456
  balanceAtTrigger: string;
@@ -494,10 +494,10 @@ export declare const reconciliationDiscrepancySchema: z.ZodObject<{
494
494
  createdAt: z.ZodString;
495
495
  }, "strict", z.ZodTypeAny, {
496
496
  kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
497
+ createdAt: string;
498
+ id: string;
497
499
  schemaVersion: 1;
498
500
  runId: string;
499
- id: string;
500
- createdAt: string;
501
501
  currency: string;
502
502
  accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
503
503
  externalRef?: string | undefined;
@@ -506,10 +506,10 @@ export declare const reconciliationDiscrepancySchema: z.ZodObject<{
506
506
  externalAmount?: (string & z.BRAND<"ExactDecimal">) | undefined;
507
507
  }, {
508
508
  kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
509
+ createdAt: string;
510
+ id: string;
509
511
  schemaVersion: 1;
510
512
  runId: string;
511
- id: string;
512
- createdAt: string;
513
513
  currency: string;
514
514
  accountId?: string | undefined;
515
515
  externalRef?: string | undefined;
@@ -543,8 +543,8 @@ export declare const reconciliationRunSchema: z.ZodObject<{
543
543
  completedAt: z.ZodOptional<z.ZodString>;
544
544
  }, "strict", z.ZodTypeAny, {
545
545
  status: "failed" | "completed" | "running";
546
- schemaVersion: 1;
547
546
  id: string;
547
+ schemaVersion: 1;
548
548
  currency: string;
549
549
  periodEnd: string;
550
550
  provider: "stripe";
@@ -557,8 +557,8 @@ export declare const reconciliationRunSchema: z.ZodObject<{
557
557
  completedAt?: string | undefined;
558
558
  }, {
559
559
  status: "failed" | "completed" | "running";
560
- schemaVersion: 1;
561
560
  id: string;
561
+ schemaVersion: 1;
562
562
  currency: string;
563
563
  periodEnd: string;
564
564
  provider: "stripe";
@@ -591,8 +591,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
591
591
  completedAt: z.ZodOptional<z.ZodString>;
592
592
  }, "strict", z.ZodTypeAny, {
593
593
  status: "failed" | "completed" | "running";
594
- schemaVersion: 1;
595
594
  id: string;
595
+ schemaVersion: 1;
596
596
  currency: string;
597
597
  periodEnd: string;
598
598
  provider: "stripe";
@@ -605,8 +605,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
605
605
  completedAt?: string | undefined;
606
606
  }, {
607
607
  status: "failed" | "completed" | "running";
608
- schemaVersion: 1;
609
608
  id: string;
609
+ schemaVersion: 1;
610
610
  currency: string;
611
611
  periodEnd: string;
612
612
  provider: "stripe";
@@ -635,10 +635,10 @@ export declare const reconciliationReportSchema: z.ZodObject<{
635
635
  createdAt: z.ZodString;
636
636
  }, "strict", z.ZodTypeAny, {
637
637
  kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
638
+ createdAt: string;
639
+ id: string;
638
640
  schemaVersion: 1;
639
641
  runId: string;
640
- id: string;
641
- createdAt: string;
642
642
  currency: string;
643
643
  accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
644
644
  externalRef?: string | undefined;
@@ -647,10 +647,10 @@ export declare const reconciliationReportSchema: z.ZodObject<{
647
647
  externalAmount?: (string & z.BRAND<"ExactDecimal">) | undefined;
648
648
  }, {
649
649
  kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
650
+ createdAt: string;
651
+ id: string;
650
652
  schemaVersion: 1;
651
653
  runId: string;
652
- id: string;
653
- createdAt: string;
654
654
  currency: string;
655
655
  accountId?: string | undefined;
656
656
  externalRef?: string | undefined;
@@ -662,8 +662,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
662
662
  schemaVersion: 1;
663
663
  run: {
664
664
  status: "failed" | "completed" | "running";
665
- schemaVersion: 1;
666
665
  id: string;
666
+ schemaVersion: 1;
667
667
  currency: string;
668
668
  periodEnd: string;
669
669
  provider: "stripe";
@@ -677,10 +677,10 @@ export declare const reconciliationReportSchema: z.ZodObject<{
677
677
  };
678
678
  discrepancies: {
679
679
  kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
680
+ createdAt: string;
681
+ id: string;
680
682
  schemaVersion: 1;
681
683
  runId: string;
682
- id: string;
683
- createdAt: string;
684
684
  currency: string;
685
685
  accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
686
686
  externalRef?: string | undefined;
@@ -692,8 +692,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
692
692
  schemaVersion: 1;
693
693
  run: {
694
694
  status: "failed" | "completed" | "running";
695
- schemaVersion: 1;
696
695
  id: string;
696
+ schemaVersion: 1;
697
697
  currency: string;
698
698
  periodEnd: string;
699
699
  provider: "stripe";
@@ -707,10 +707,10 @@ export declare const reconciliationReportSchema: z.ZodObject<{
707
707
  };
708
708
  discrepancies: {
709
709
  kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
710
+ createdAt: string;
711
+ id: string;
710
712
  schemaVersion: 1;
711
713
  runId: string;
712
- id: string;
713
- createdAt: string;
714
714
  currency: string;
715
715
  accountId?: string | undefined;
716
716
  externalRef?: string | undefined;
@@ -414,15 +414,15 @@ export declare const modelPublisherSchema: z.ZodObject<{
414
414
  schemaVersion: 1;
415
415
  publisherId: string;
416
416
  slug: string;
417
- description?: string | undefined;
418
417
  websiteUrl?: string | undefined;
418
+ description?: string | undefined;
419
419
  }, {
420
420
  displayName: string;
421
421
  schemaVersion: 1;
422
422
  publisherId: string;
423
423
  slug: string;
424
- description?: string | undefined;
425
424
  websiteUrl?: string | undefined;
425
+ description?: string | undefined;
426
426
  }>;
427
427
  /**
428
428
  * A model: the long-lived product identity `<publisher>/<model>`.
@@ -1020,8 +1020,8 @@ export declare const inferenceProviderSchema: z.ZodObject<{
1020
1020
  policyUrl?: string | undefined;
1021
1021
  }>;
1022
1022
  }, "strip", z.ZodTypeAny, {
1023
- displayName: string;
1024
1023
  kind: "third_party" | "oxy_hosted" | "customer_byok";
1024
+ displayName: string;
1025
1025
  schemaVersion: 1;
1026
1026
  slug: string;
1027
1027
  providerId: string;
@@ -1037,8 +1037,8 @@ export declare const inferenceProviderSchema: z.ZodObject<{
1037
1037
  websiteUrl?: string | undefined;
1038
1038
  statusPageUrl?: string | undefined;
1039
1039
  }, {
1040
- displayName: string;
1041
1040
  kind: "third_party" | "oxy_hosted" | "customer_byok";
1041
+ displayName: string;
1042
1042
  schemaVersion: 1;
1043
1043
  slug: string;
1044
1044
  providerId: string;
@@ -1083,13 +1083,13 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1083
1083
  credentialId: z.ZodString;
1084
1084
  environment: z.ZodEnum<["development", "staging", "production"]>;
1085
1085
  }, "strict", z.ZodTypeAny, {
1086
- environment: "development" | "staging" | "production";
1087
1086
  accountId: string;
1087
+ environment: "development" | "staging" | "production";
1088
1088
  applicationId: string;
1089
1089
  credentialId: string;
1090
1090
  }, {
1091
- environment: "development" | "staging" | "production";
1092
1091
  accountId: string;
1092
+ environment: "development" | "staging" | "production";
1093
1093
  applicationId: string;
1094
1094
  credentialId: string;
1095
1095
  }>;
@@ -1117,8 +1117,8 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1117
1117
  keyId: string;
1118
1118
  idempotencyKey: string;
1119
1119
  principal: {
1120
- environment: "development" | "staging" | "production";
1121
1120
  accountId: string;
1121
+ environment: "development" | "staging" | "production";
1122
1122
  applicationId: string;
1123
1123
  credentialId: string;
1124
1124
  };
@@ -1141,8 +1141,8 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1141
1141
  keyId: string;
1142
1142
  idempotencyKey: string;
1143
1143
  principal: {
1144
- environment: "development" | "staging" | "production";
1145
1144
  accountId: string;
1145
+ environment: "development" | "staging" | "production";
1146
1146
  applicationId: string;
1147
1147
  credentialId: string;
1148
1148
  };
@@ -1234,8 +1234,8 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1234
1234
  keyId: string;
1235
1235
  idempotencyKey: string;
1236
1236
  principal: {
1237
- environment: "development" | "staging" | "production";
1238
1237
  accountId: string;
1238
+ environment: "development" | "staging" | "production";
1239
1239
  applicationId: string;
1240
1240
  credentialId: string;
1241
1241
  };
@@ -1278,8 +1278,8 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1278
1278
  keyId: string;
1279
1279
  idempotencyKey: string;
1280
1280
  principal: {
1281
- environment: "development" | "staging" | "production";
1282
1281
  accountId: string;
1282
+ environment: "development" | "staging" | "production";
1283
1283
  applicationId: string;
1284
1284
  credentialId: string;
1285
1285
  };
@@ -1322,8 +1322,8 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1322
1322
  keyId: string;
1323
1323
  idempotencyKey: string;
1324
1324
  principal: {
1325
- environment: "development" | "staging" | "production";
1326
1325
  accountId: string;
1326
+ environment: "development" | "staging" | "production";
1327
1327
  applicationId: string;
1328
1328
  credentialId: string;
1329
1329
  };
@@ -1366,8 +1366,8 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
1366
1366
  keyId: string;
1367
1367
  idempotencyKey: string;
1368
1368
  principal: {
1369
- environment: "development" | "staging" | "production";
1370
1369
  accountId: string;
1370
+ environment: "development" | "staging" | "production";
1371
1371
  applicationId: string;
1372
1372
  credentialId: string;
1373
1373
  };
@@ -1121,7 +1121,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1121
1121
  message?: string | undefined;
1122
1122
  }>>;
1123
1123
  }, "strip", z.ZodTypeAny, {
1124
- code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
1124
+ code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
1125
1125
  message: string;
1126
1126
  schemaVersion: 1;
1127
1127
  requestId: string;
@@ -1136,7 +1136,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1136
1136
  message?: string | undefined;
1137
1137
  } | undefined;
1138
1138
  }, {
1139
- code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
1139
+ code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
1140
1140
  message: string;
1141
1141
  schemaVersion: 1;
1142
1142
  requestId: string;
@@ -1151,7 +1151,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1151
1151
  message?: string | undefined;
1152
1152
  } | undefined;
1153
1153
  }>, {
1154
- code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
1154
+ code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
1155
1155
  message: string;
1156
1156
  schemaVersion: 1;
1157
1157
  requestId: string;
@@ -1166,7 +1166,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1166
1166
  message?: string | undefined;
1167
1167
  } | undefined;
1168
1168
  }, {
1169
- code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
1169
+ code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
1170
1170
  message: string;
1171
1171
  schemaVersion: 1;
1172
1172
  requestId: string;
@@ -1395,10 +1395,8 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1395
1395
  timeToFirstTokenMs?: number | undefined;
1396
1396
  }>>;
1397
1397
  }, "strict", z.ZodTypeAny, {
1398
- schemaVersion: 1;
1399
- requestId: string;
1400
1398
  error: {
1401
- code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
1399
+ code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
1402
1400
  message: string;
1403
1401
  schemaVersion: 1;
1404
1402
  requestId: string;
@@ -1413,6 +1411,8 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1413
1411
  message?: string | undefined;
1414
1412
  } | undefined;
1415
1413
  };
1414
+ schemaVersion: 1;
1415
+ requestId: string;
1416
1416
  usage?: {
1417
1417
  schemaVersion: 2;
1418
1418
  requestId: string;
@@ -1447,10 +1447,8 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1447
1447
  timeToFirstTokenMs?: number | undefined;
1448
1448
  } | undefined;
1449
1449
  }, {
1450
- schemaVersion: 1;
1451
- requestId: string;
1452
1450
  error: {
1453
- code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
1451
+ code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
1454
1452
  message: string;
1455
1453
  schemaVersion: 1;
1456
1454
  requestId: string;
@@ -1465,6 +1463,8 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1465
1463
  message?: string | undefined;
1466
1464
  } | undefined;
1467
1465
  };
1466
+ schemaVersion: 1;
1467
+ requestId: string;
1468
1468
  usage?: {
1469
1469
  schemaVersion: 2;
1470
1470
  requestId: string;
@@ -1499,10 +1499,8 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1499
1499
  timeToFirstTokenMs?: number | undefined;
1500
1500
  } | undefined;
1501
1501
  }>, {
1502
- schemaVersion: 1;
1503
- requestId: string;
1504
1502
  error: {
1505
- code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
1503
+ code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
1506
1504
  message: string;
1507
1505
  schemaVersion: 1;
1508
1506
  requestId: string;
@@ -1517,6 +1515,8 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1517
1515
  message?: string | undefined;
1518
1516
  } | undefined;
1519
1517
  };
1518
+ schemaVersion: 1;
1519
+ requestId: string;
1520
1520
  usage?: {
1521
1521
  schemaVersion: 2;
1522
1522
  requestId: string;
@@ -1551,10 +1551,8 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1551
1551
  timeToFirstTokenMs?: number | undefined;
1552
1552
  } | undefined;
1553
1553
  }, {
1554
- schemaVersion: 1;
1555
- requestId: string;
1556
1554
  error: {
1557
- code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
1555
+ code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
1558
1556
  message: string;
1559
1557
  schemaVersion: 1;
1560
1558
  requestId: string;
@@ -1569,6 +1567,8 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1569
1567
  message?: string | undefined;
1570
1568
  } | undefined;
1571
1569
  };
1570
+ schemaVersion: 1;
1571
+ requestId: string;
1572
1572
  usage?: {
1573
1573
  schemaVersion: 2;
1574
1574
  requestId: string;
@@ -56,18 +56,18 @@ export declare const costCenterUsageSchema: z.ZodObject<{
56
56
  updatedAt: z.ZodString;
57
57
  }, "strict", z.ZodTypeAny, {
58
58
  status: "active" | "retired";
59
- schemaVersion: 1;
60
59
  accountId: string & z.BRAND<"OxyAccountId">;
61
60
  createdAt: string;
62
61
  updatedAt: string;
62
+ schemaVersion: 1;
63
63
  label: string;
64
64
  slug: string;
65
65
  }, {
66
66
  status: "active" | "retired";
67
- schemaVersion: 1;
68
67
  accountId: string;
69
68
  createdAt: string;
70
69
  updatedAt: string;
70
+ schemaVersion: 1;
71
71
  label: string;
72
72
  slug: string;
73
73
  }>>;
@@ -167,10 +167,10 @@ export declare const costCenterUsageSchema: z.ZodObject<{
167
167
  periodStart: string;
168
168
  costCenter: {
169
169
  status: "active" | "retired";
170
- schemaVersion: 1;
171
170
  accountId: string & z.BRAND<"OxyAccountId">;
172
171
  createdAt: string;
173
172
  updatedAt: string;
173
+ schemaVersion: 1;
174
174
  label: string;
175
175
  slug: string;
176
176
  } | null;
@@ -207,10 +207,10 @@ export declare const costCenterUsageSchema: z.ZodObject<{
207
207
  periodStart: string;
208
208
  costCenter: {
209
209
  status: "active" | "retired";
210
- schemaVersion: 1;
211
210
  accountId: string;
212
211
  createdAt: string;
213
212
  updatedAt: string;
213
+ schemaVersion: 1;
214
214
  label: string;
215
215
  slug: string;
216
216
  } | null;
@@ -305,8 +305,8 @@ export declare const meteredGenerationSchema: z.ZodObject<{
305
305
  }>;
306
306
  settledAt: z.ZodString;
307
307
  }, "strict", z.ZodTypeAny, {
308
- environment: "development" | "staging" | "production";
309
308
  kind: "metered_usage";
309
+ environment: "development" | "staging" | "production";
310
310
  schemaVersion: 2;
311
311
  applicationId: string;
312
312
  credentialId: string;
@@ -339,8 +339,8 @@ export declare const meteredGenerationSchema: z.ZodObject<{
339
339
  parentRequestId?: string | undefined;
340
340
  delegatedUserId?: string | undefined;
341
341
  }, {
342
- environment: "development" | "staging" | "production";
343
342
  kind: "metered_usage";
343
+ environment: "development" | "staging" | "production";
344
344
  schemaVersion: 2;
345
345
  applicationId: string;
346
346
  credentialId: string;