@oxy.so/contracts 4.13.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 (57) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountGraph.js +23 -4
  3. package/dist/cjs/index.js +19 -15
  4. package/dist/cjs/organizations.js +210 -0
  5. package/dist/cjs/products/billing.js +1 -0
  6. package/dist/cjs/products/checkout.js +14 -1
  7. package/dist/cjs/products/plans.js +18 -2
  8. package/dist/cjs/safety.js +15 -0
  9. package/dist/cjs/userResponse.js +8 -1
  10. package/dist/esm/.tsbuildinfo +1 -1
  11. package/dist/esm/accountGraph.js +21 -2
  12. package/dist/esm/index.js +4 -2
  13. package/dist/esm/organizations.js +207 -0
  14. package/dist/esm/products/billing.js +1 -0
  15. package/dist/esm/products/checkout.js +13 -0
  16. package/dist/esm/products/plans.js +17 -1
  17. package/dist/esm/safety.js +12 -0
  18. package/dist/esm/userResponse.js +8 -1
  19. package/dist/types/.tsbuildinfo +1 -1
  20. package/dist/types/accountGraph.d.ts +50 -18
  21. package/dist/types/agency.d.ts +42 -42
  22. package/dist/types/deviceDirectory.d.ts +56 -56
  23. package/dist/types/email/messages.d.ts +56 -56
  24. package/dist/types/externalIdentity.d.ts +56 -23
  25. package/dist/types/index.d.ts +4 -2
  26. package/dist/types/inference/accountBilling.d.ts +36 -36
  27. package/dist/types/inference/catalogue.d.ts +12 -12
  28. package/dist/types/inference/decisions.d.ts +16 -16
  29. package/dist/types/inference/economics.d.ts +6 -6
  30. package/dist/types/inference/embeddings.d.ts +18 -18
  31. package/dist/types/inference/entitlement.d.ts +12 -12
  32. package/dist/types/inference/errors.d.ts +4 -4
  33. package/dist/types/inference/inbox.d.ts +17 -17
  34. package/dist/types/inference/priceVersion.d.ts +8 -8
  35. package/dist/types/inference/privateAutoExecution.d.ts +12 -12
  36. package/dist/types/inference/providerConnection.d.ts +24 -24
  37. package/dist/types/inference/realtime.d.ts +26 -26
  38. package/dist/types/inference/request.d.ts +26 -26
  39. package/dist/types/inference/routingPolicy.d.ts +4 -4
  40. package/dist/types/inference/scopedExecution.d.ts +8 -8
  41. package/dist/types/inference/streamEvents.d.ts +20 -20
  42. package/dist/types/inference/usage.d.ts +8 -8
  43. package/dist/types/keyRecovery.d.ts +4 -4
  44. package/dist/types/linkedAccounts.d.ts +16 -16
  45. package/dist/types/notifications.d.ts +4 -4
  46. package/dist/types/oauth.d.ts +40 -40
  47. package/dist/types/organizations.d.ts +1088 -0
  48. package/dist/types/products/access.d.ts +18 -18
  49. package/dist/types/products/billing.d.ts +32 -24
  50. package/dist/types/products/checkout.d.ts +36 -0
  51. package/dist/types/products/plans.d.ts +108 -11
  52. package/dist/types/recommendations.d.ts +2 -2
  53. package/dist/types/safety.d.ts +24 -0
  54. package/dist/types/sessionStatus.d.ts +6 -6
  55. package/dist/types/stickers.d.ts +32 -32
  56. package/dist/types/userResponse.d.ts +169 -33
  57. package/package.json +1 -1
@@ -5226,7 +5226,7 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5226
5226
  message?: string | undefined;
5227
5227
  }>>;
5228
5228
  }, "strip", z.ZodTypeAny, {
5229
- 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";
5229
+ 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";
5230
5230
  message: string;
5231
5231
  schemaVersion: 1;
5232
5232
  requestId: string;
@@ -5241,7 +5241,7 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5241
5241
  message?: string | undefined;
5242
5242
  } | undefined;
5243
5243
  }, {
5244
- 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";
5244
+ 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";
5245
5245
  message: string;
5246
5246
  schemaVersion: 1;
5247
5247
  requestId: string;
@@ -5256,7 +5256,7 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5256
5256
  message?: string | undefined;
5257
5257
  } | undefined;
5258
5258
  }>, {
5259
- 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";
5259
+ 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";
5260
5260
  message: string;
5261
5261
  schemaVersion: 1;
5262
5262
  requestId: string;
@@ -5271,7 +5271,7 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5271
5271
  message?: string | undefined;
5272
5272
  } | undefined;
5273
5273
  }, {
5274
- 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";
5274
+ 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";
5275
5275
  message: string;
5276
5276
  schemaVersion: 1;
5277
5277
  requestId: string;
@@ -5295,10 +5295,8 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5295
5295
  commandId: z.ZodOptional<z.ZodString>;
5296
5296
  }, "strip", z.ZodTypeAny, {
5297
5297
  type: "error";
5298
- schemaVersion: 1;
5299
- requestId: string;
5300
5298
  error: {
5301
- 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";
5299
+ 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";
5302
5300
  message: string;
5303
5301
  schemaVersion: 1;
5304
5302
  requestId: string;
@@ -5313,15 +5311,15 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5313
5311
  message?: string | undefined;
5314
5312
  } | undefined;
5315
5313
  };
5314
+ schemaVersion: 1;
5315
+ requestId: string;
5316
5316
  sequence: number;
5317
5317
  fatal: boolean;
5318
5318
  commandId?: string | undefined;
5319
5319
  }, {
5320
5320
  type: "error";
5321
- schemaVersion: 1;
5322
- requestId: string;
5323
5321
  error: {
5324
- 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";
5322
+ 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";
5325
5323
  message: string;
5326
5324
  schemaVersion: 1;
5327
5325
  requestId: string;
@@ -5336,6 +5334,8 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5336
5334
  message?: string | undefined;
5337
5335
  } | undefined;
5338
5336
  };
5337
+ schemaVersion: 1;
5338
+ requestId: string;
5339
5339
  sequence: number;
5340
5340
  fatal: boolean;
5341
5341
  commandId?: string | undefined;
@@ -7101,7 +7101,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7101
7101
  message?: string | undefined;
7102
7102
  }>>;
7103
7103
  }, "strip", z.ZodTypeAny, {
7104
- 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";
7104
+ 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";
7105
7105
  message: string;
7106
7106
  schemaVersion: 1;
7107
7107
  requestId: string;
@@ -7116,7 +7116,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7116
7116
  message?: string | undefined;
7117
7117
  } | undefined;
7118
7118
  }, {
7119
- 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";
7119
+ 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";
7120
7120
  message: string;
7121
7121
  schemaVersion: 1;
7122
7122
  requestId: string;
@@ -7131,7 +7131,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7131
7131
  message?: string | undefined;
7132
7132
  } | undefined;
7133
7133
  }>, {
7134
- 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";
7134
+ 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";
7135
7135
  message: string;
7136
7136
  schemaVersion: 1;
7137
7137
  requestId: string;
@@ -7146,7 +7146,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7146
7146
  message?: string | undefined;
7147
7147
  } | undefined;
7148
7148
  }, {
7149
- 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";
7149
+ 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";
7150
7150
  message: string;
7151
7151
  schemaVersion: 1;
7152
7152
  requestId: string;
@@ -7170,10 +7170,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7170
7170
  commandId: z.ZodOptional<z.ZodString>;
7171
7171
  }, "strip", z.ZodTypeAny, {
7172
7172
  type: "error";
7173
- schemaVersion: 1;
7174
- requestId: string;
7175
7173
  error: {
7176
- 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";
7174
+ 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";
7177
7175
  message: string;
7178
7176
  schemaVersion: 1;
7179
7177
  requestId: string;
@@ -7188,15 +7186,15 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7188
7186
  message?: string | undefined;
7189
7187
  } | undefined;
7190
7188
  };
7189
+ schemaVersion: 1;
7190
+ requestId: string;
7191
7191
  sequence: number;
7192
7192
  fatal: boolean;
7193
7193
  commandId?: string | undefined;
7194
7194
  }, {
7195
7195
  type: "error";
7196
- schemaVersion: 1;
7197
- requestId: string;
7198
7196
  error: {
7199
- 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";
7197
+ 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";
7200
7198
  message: string;
7201
7199
  schemaVersion: 1;
7202
7200
  requestId: string;
@@ -7211,6 +7209,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7211
7209
  message?: string | undefined;
7212
7210
  } | undefined;
7213
7211
  };
7212
+ schemaVersion: 1;
7213
+ requestId: string;
7214
7214
  sequence: number;
7215
7215
  fatal: boolean;
7216
7216
  commandId?: string | undefined;
@@ -7602,10 +7602,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7602
7602
  commandId?: string | undefined;
7603
7603
  } | {
7604
7604
  type: "error";
7605
- schemaVersion: 1;
7606
- requestId: string;
7607
7605
  error: {
7608
- 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";
7606
+ 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";
7609
7607
  message: string;
7610
7608
  schemaVersion: 1;
7611
7609
  requestId: string;
@@ -7620,6 +7618,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7620
7618
  message?: string | undefined;
7621
7619
  } | undefined;
7622
7620
  };
7621
+ schemaVersion: 1;
7622
+ requestId: string;
7623
7623
  sequence: number;
7624
7624
  fatal: boolean;
7625
7625
  commandId?: string | undefined;
@@ -7974,10 +7974,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7974
7974
  commandId?: string | undefined;
7975
7975
  } | {
7976
7976
  type: "error";
7977
- schemaVersion: 1;
7978
- requestId: string;
7979
7977
  error: {
7980
- 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";
7978
+ 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";
7981
7979
  message: string;
7982
7980
  schemaVersion: 1;
7983
7981
  requestId: string;
@@ -7992,6 +7990,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7992
7990
  message?: string | undefined;
7993
7991
  } | undefined;
7994
7992
  };
7993
+ schemaVersion: 1;
7994
+ requestId: string;
7995
7995
  sequence: number;
7996
7996
  fatal: boolean;
7997
7997
  commandId?: string | undefined;
@@ -1545,13 +1545,13 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1545
1545
  credentialId: z.ZodString;
1546
1546
  environment: z.ZodEnum<["development", "staging", "production"]>;
1547
1547
  }, "strict", z.ZodTypeAny, {
1548
- environment: "development" | "staging" | "production";
1549
1548
  accountId: string;
1549
+ environment: "development" | "staging" | "production";
1550
1550
  applicationId: string;
1551
1551
  credentialId: string;
1552
1552
  }, {
1553
- environment: "development" | "staging" | "production";
1554
1553
  accountId: string;
1554
+ environment: "development" | "staging" | "production";
1555
1555
  applicationId: string;
1556
1556
  credentialId: string;
1557
1557
  }>;
@@ -1584,8 +1584,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1584
1584
  keyId: string;
1585
1585
  idempotencyKey: string;
1586
1586
  principal: {
1587
- environment: "development" | "staging" | "production";
1588
1587
  accountId: string;
1588
+ environment: "development" | "staging" | "production";
1589
1589
  applicationId: string;
1590
1590
  credentialId: string;
1591
1591
  };
@@ -1611,8 +1611,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1611
1611
  keyId: string;
1612
1612
  idempotencyKey: string;
1613
1613
  principal: {
1614
- environment: "development" | "staging" | "production";
1615
1614
  accountId: string;
1615
+ environment: "development" | "staging" | "production";
1616
1616
  applicationId: string;
1617
1617
  credentialId: string;
1618
1618
  };
@@ -2904,8 +2904,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2904
2904
  keyId: string;
2905
2905
  idempotencyKey: string;
2906
2906
  principal: {
2907
- environment: "development" | "staging" | "production";
2908
2907
  accountId: string;
2908
+ environment: "development" | "staging" | "production";
2909
2909
  applicationId: string;
2910
2910
  credentialId: string;
2911
2911
  };
@@ -3125,8 +3125,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
3125
3125
  keyId: string;
3126
3126
  idempotencyKey: string;
3127
3127
  principal: {
3128
- environment: "development" | "staging" | "production";
3129
3128
  accountId: string;
3129
+ environment: "development" | "staging" | "production";
3130
3130
  applicationId: string;
3131
3131
  credentialId: string;
3132
3132
  };
@@ -3346,8 +3346,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
3346
3346
  keyId: string;
3347
3347
  idempotencyKey: string;
3348
3348
  principal: {
3349
- environment: "development" | "staging" | "production";
3350
3349
  accountId: string;
3350
+ environment: "development" | "staging" | "production";
3351
3351
  applicationId: string;
3352
3352
  credentialId: string;
3353
3353
  };
@@ -3567,8 +3567,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
3567
3567
  keyId: string;
3568
3568
  idempotencyKey: string;
3569
3569
  principal: {
3570
- environment: "development" | "staging" | "production";
3571
3570
  accountId: string;
3571
+ environment: "development" | "staging" | "production";
3572
3572
  applicationId: string;
3573
3573
  credentialId: string;
3574
3574
  };
@@ -4748,13 +4748,13 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
4748
4748
  credentialId: z.ZodString;
4749
4749
  environment: z.ZodEnum<["development", "staging", "production"]>;
4750
4750
  }, "strict", z.ZodTypeAny, {
4751
- environment: "development" | "staging" | "production";
4752
4751
  accountId: string;
4752
+ environment: "development" | "staging" | "production";
4753
4753
  applicationId: string;
4754
4754
  credentialId: string;
4755
4755
  }, {
4756
- environment: "development" | "staging" | "production";
4757
4756
  accountId: string;
4757
+ environment: "development" | "staging" | "production";
4758
4758
  applicationId: string;
4759
4759
  credentialId: string;
4760
4760
  }>;
@@ -4787,8 +4787,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
4787
4787
  keyId: string;
4788
4788
  idempotencyKey: string;
4789
4789
  principal: {
4790
- environment: "development" | "staging" | "production";
4791
4790
  accountId: string;
4791
+ environment: "development" | "staging" | "production";
4792
4792
  applicationId: string;
4793
4793
  credentialId: string;
4794
4794
  };
@@ -4814,8 +4814,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
4814
4814
  keyId: string;
4815
4815
  idempotencyKey: string;
4816
4816
  principal: {
4817
- environment: "development" | "staging" | "production";
4818
4817
  accountId: string;
4818
+ environment: "development" | "staging" | "production";
4819
4819
  applicationId: string;
4820
4820
  credentialId: string;
4821
4821
  };
@@ -4872,8 +4872,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
4872
4872
  keyId: string;
4873
4873
  idempotencyKey: string;
4874
4874
  principal: {
4875
- environment: "development" | "staging" | "production";
4876
4875
  accountId: string;
4876
+ environment: "development" | "staging" | "production";
4877
4877
  applicationId: string;
4878
4878
  credentialId: string;
4879
4879
  };
@@ -5086,8 +5086,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
5086
5086
  keyId: string;
5087
5087
  idempotencyKey: string;
5088
5088
  principal: {
5089
- environment: "development" | "staging" | "production";
5090
5089
  accountId: string;
5090
+ environment: "development" | "staging" | "production";
5091
5091
  applicationId: string;
5092
5092
  credentialId: string;
5093
5093
  };
@@ -5314,8 +5314,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
5314
5314
  keyId: string;
5315
5315
  idempotencyKey: string;
5316
5316
  principal: {
5317
- environment: "development" | "staging" | "production";
5318
5317
  accountId: string;
5318
+ environment: "development" | "staging" | "production";
5319
5319
  applicationId: string;
5320
5320
  credentialId: string;
5321
5321
  };
@@ -5528,8 +5528,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
5528
5528
  keyId: string;
5529
5529
  idempotencyKey: string;
5530
5530
  principal: {
5531
- environment: "development" | "staging" | "production";
5532
5531
  accountId: string;
5532
+ environment: "development" | "staging" | "production";
5533
5533
  applicationId: string;
5534
5534
  credentialId: string;
5535
5535
  };
@@ -6837,14 +6837,14 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
6837
6837
  environment: z.ZodLiteral<"production">;
6838
6838
  lane: z.ZodLiteral<"service_token">;
6839
6839
  }, "strict", z.ZodTypeAny, {
6840
- environment: "production";
6841
6840
  accountId: string;
6841
+ environment: "production";
6842
6842
  applicationId: string;
6843
6843
  credentialId: string;
6844
6844
  lane: "service_token";
6845
6845
  }, {
6846
- environment: "production";
6847
6846
  accountId: string;
6847
+ environment: "production";
6848
6848
  applicationId: string;
6849
6849
  credentialId: string;
6850
6850
  lane: "service_token";
@@ -6879,8 +6879,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
6879
6879
  requestId: string;
6880
6880
  keyId: string;
6881
6881
  principal: {
6882
- environment: "production";
6883
6882
  accountId: string;
6883
+ environment: "production";
6884
6884
  applicationId: string;
6885
6885
  credentialId: string;
6886
6886
  lane: "service_token";
@@ -6918,8 +6918,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
6918
6918
  requestId: string;
6919
6919
  keyId: string;
6920
6920
  principal: {
6921
- environment: "production";
6922
6921
  accountId: string;
6922
+ environment: "production";
6923
6923
  applicationId: string;
6924
6924
  credentialId: string;
6925
6925
  lane: "service_token";
@@ -6957,8 +6957,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
6957
6957
  requestId: string;
6958
6958
  keyId: string;
6959
6959
  principal: {
6960
- environment: "production";
6961
6960
  accountId: string;
6961
+ environment: "production";
6962
6962
  applicationId: string;
6963
6963
  credentialId: string;
6964
6964
  lane: "service_token";
@@ -6996,8 +6996,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
6996
6996
  requestId: string;
6997
6997
  keyId: string;
6998
6998
  principal: {
6999
- environment: "production";
7000
6999
  accountId: string;
7000
+ environment: "production";
7001
7001
  applicationId: string;
7002
7002
  credentialId: string;
7003
7003
  lane: "service_token";
@@ -7171,8 +7171,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
7171
7171
  requestId: string;
7172
7172
  keyId: string;
7173
7173
  principal: {
7174
- environment: "production";
7175
7174
  accountId: string;
7175
+ environment: "production";
7176
7176
  applicationId: string;
7177
7177
  credentialId: string;
7178
7178
  lane: "service_token";
@@ -7397,8 +7397,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
7397
7397
  requestId: string;
7398
7398
  keyId: string;
7399
7399
  principal: {
7400
- environment: "production";
7401
7400
  accountId: string;
7401
+ environment: "production";
7402
7402
  applicationId: string;
7403
7403
  credentialId: string;
7404
7404
  lane: "service_token";
@@ -7637,8 +7637,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
7637
7637
  requestId: string;
7638
7638
  keyId: string;
7639
7639
  principal: {
7640
- environment: "production";
7641
7640
  accountId: string;
7641
+ environment: "production";
7642
7642
  applicationId: string;
7643
7643
  credentialId: string;
7644
7644
  lane: "service_token";
@@ -7863,8 +7863,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
7863
7863
  requestId: string;
7864
7864
  keyId: string;
7865
7865
  principal: {
7866
- environment: "production";
7867
7866
  accountId: string;
7867
+ environment: "production";
7868
7868
  applicationId: string;
7869
7869
  credentialId: string;
7870
7870
  lane: "service_token";
@@ -253,8 +253,8 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
253
253
  dedicatedCapacity: z.ZodEnum<["disabled", "prefer", "require"]>;
254
254
  updatedAt: z.ZodString;
255
255
  }, "strip", z.ZodTypeAny, {
256
- schemaVersion: 2;
257
256
  updatedAt: string;
257
+ schemaVersion: 2;
258
258
  scope: {
259
259
  kind: "account";
260
260
  accountId: string & z.BRAND<"OxyAccountId">;
@@ -301,8 +301,8 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
301
301
  amount: string & z.BRAND<"ExactDecimal">;
302
302
  } | undefined;
303
303
  }, {
304
- schemaVersion: 2;
305
304
  updatedAt: string;
305
+ schemaVersion: 2;
306
306
  scope: {
307
307
  kind: "account";
308
308
  accountId: string;
@@ -349,8 +349,8 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
349
349
  allowedLicenseIds?: string[] | undefined;
350
350
  allowedRoutingProfileIds?: string[] | undefined;
351
351
  }>, {
352
- schemaVersion: 2;
353
352
  updatedAt: string;
353
+ schemaVersion: 2;
354
354
  scope: {
355
355
  kind: "account";
356
356
  accountId: string & z.BRAND<"OxyAccountId">;
@@ -397,8 +397,8 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
397
397
  amount: string & z.BRAND<"ExactDecimal">;
398
398
  } | undefined;
399
399
  }, {
400
- schemaVersion: 2;
401
400
  updatedAt: string;
401
+ schemaVersion: 2;
402
402
  scope: {
403
403
  kind: "account";
404
404
  accountId: string;
@@ -15,13 +15,13 @@ export declare const scopedExecutionAudienceSchema: z.ZodObject<{
15
15
  credentialId: z.ZodString;
16
16
  environment: z.ZodEnum<["development", "staging", "production"]>;
17
17
  }, "strict", z.ZodTypeAny, {
18
- environment: "development" | "staging" | "production";
19
18
  accountId: string;
19
+ environment: "development" | "staging" | "production";
20
20
  applicationId: string;
21
21
  credentialId: string;
22
22
  }, {
23
- environment: "development" | "staging" | "production";
24
23
  accountId: string;
24
+ environment: "development" | "staging" | "production";
25
25
  applicationId: string;
26
26
  credentialId: string;
27
27
  }>;
@@ -49,8 +49,8 @@ export declare const scopedExecutionAudienceSchema: z.ZodObject<{
49
49
  keyId: string;
50
50
  idempotencyKey: string;
51
51
  principal: {
52
- environment: "development" | "staging" | "production";
53
52
  accountId: string;
53
+ environment: "development" | "staging" | "production";
54
54
  applicationId: string;
55
55
  credentialId: string;
56
56
  };
@@ -73,8 +73,8 @@ export declare const scopedExecutionAudienceSchema: z.ZodObject<{
73
73
  keyId: string;
74
74
  idempotencyKey: string;
75
75
  principal: {
76
- environment: "development" | "staging" | "production";
77
76
  accountId: string;
77
+ environment: "development" | "staging" | "production";
78
78
  applicationId: string;
79
79
  credentialId: string;
80
80
  };
@@ -104,13 +104,13 @@ export declare const scopedExecutionSchema: z.ZodObject<{
104
104
  credentialId: z.ZodString;
105
105
  environment: z.ZodEnum<["development", "staging", "production"]>;
106
106
  }, "strict", z.ZodTypeAny, {
107
- environment: "development" | "staging" | "production";
108
107
  accountId: string;
108
+ environment: "development" | "staging" | "production";
109
109
  applicationId: string;
110
110
  credentialId: string;
111
111
  }, {
112
- environment: "development" | "staging" | "production";
113
112
  accountId: string;
113
+ environment: "development" | "staging" | "production";
114
114
  applicationId: string;
115
115
  credentialId: string;
116
116
  }>;
@@ -143,8 +143,8 @@ export declare const scopedExecutionSchema: z.ZodObject<{
143
143
  keyId: string;
144
144
  idempotencyKey: string;
145
145
  principal: {
146
- environment: "development" | "staging" | "production";
147
146
  accountId: string;
147
+ environment: "development" | "staging" | "production";
148
148
  applicationId: string;
149
149
  credentialId: string;
150
150
  };
@@ -170,8 +170,8 @@ export declare const scopedExecutionSchema: z.ZodObject<{
170
170
  keyId: string;
171
171
  idempotencyKey: string;
172
172
  principal: {
173
- environment: "development" | "staging" | "production";
174
173
  accountId: string;
174
+ environment: "development" | "staging" | "production";
175
175
  applicationId: string;
176
176
  credentialId: string;
177
177
  };