@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
@@ -625,7 +625,7 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
625
625
  operationId: string;
626
626
  credentialHandle: string;
627
627
  credentialRevision: number;
628
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
628
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
629
629
  }, {
630
630
  environment: "development" | "staging" | "production";
631
631
  schemaVersion: 1;
@@ -638,7 +638,7 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
638
638
  operationId: string;
639
639
  credentialHandle: string;
640
640
  credentialRevision: number;
641
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
641
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
642
642
  }>, {
643
643
  environment: "development" | "staging" | "production";
644
644
  schemaVersion: 1;
@@ -651,7 +651,7 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
651
651
  operationId: string;
652
652
  credentialHandle: string;
653
653
  credentialRevision: number;
654
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
654
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
655
655
  }, {
656
656
  environment: "development" | "staging" | "production";
657
657
  schemaVersion: 1;
@@ -664,7 +664,7 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
664
664
  operationId: string;
665
665
  credentialHandle: string;
666
666
  credentialRevision: number;
667
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
667
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
668
668
  }>;
669
669
  /**
670
670
  * Customer-safe view of one explicit bootstrap attempt.
@@ -684,44 +684,44 @@ export declare const providerCredentialValidationOperationSchema: z.ZodEffects<z
684
684
  createdAt: z.ZodString;
685
685
  completedAt: z.ZodOptional<z.ZodString>;
686
686
  }, "strict", z.ZodTypeAny, {
687
+ createdAt: string;
687
688
  schemaVersion: 1;
688
689
  applicationId: string;
689
- createdAt: string;
690
690
  state: "valid" | "pending" | "invalid" | "inconclusive";
691
691
  deploymentId: string;
692
692
  connectionId: string;
693
693
  operationId: string;
694
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
694
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
695
695
  completedAt?: string | undefined;
696
696
  }, {
697
+ createdAt: string;
697
698
  schemaVersion: 1;
698
699
  applicationId: string;
699
- createdAt: string;
700
700
  state: "valid" | "pending" | "invalid" | "inconclusive";
701
701
  deploymentId: string;
702
702
  connectionId: string;
703
703
  operationId: string;
704
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
704
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
705
705
  completedAt?: string | undefined;
706
706
  }>, {
707
+ createdAt: string;
707
708
  schemaVersion: 1;
708
709
  applicationId: string;
709
- createdAt: string;
710
710
  state: "valid" | "pending" | "invalid" | "inconclusive";
711
711
  deploymentId: string;
712
712
  connectionId: string;
713
713
  operationId: string;
714
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
714
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
715
715
  completedAt?: string | undefined;
716
716
  }, {
717
+ createdAt: string;
717
718
  schemaVersion: 1;
718
719
  applicationId: string;
719
- createdAt: string;
720
720
  state: "valid" | "pending" | "invalid" | "inconclusive";
721
721
  deploymentId: string;
722
722
  connectionId: string;
723
723
  operationId: string;
724
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
724
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
725
725
  completedAt?: string | undefined;
726
726
  }>;
727
727
  /** Exact customer-selectable catalogue ids; no internal Kaana route is exposed. */
@@ -745,11 +745,11 @@ export declare const providerConnectionValidationSchema: z.ZodObject<{
745
745
  failureCode: z.ZodOptional<z.ZodEnum<["unauthorized", "forbidden", "not_found", "rate_limited", "network", "unknown"]>>;
746
746
  }, "strict", z.ZodTypeAny, {
747
747
  state: "valid" | "invalid" | "expired" | "unvalidated";
748
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
748
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
749
749
  lastValidatedAt?: string | undefined;
750
750
  }, {
751
751
  state: "valid" | "invalid" | "expired" | "unvalidated";
752
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
752
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
753
753
  lastValidatedAt?: string | undefined;
754
754
  }>;
755
755
  /**
@@ -814,11 +814,11 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
814
814
  failureCode: z.ZodOptional<z.ZodEnum<["unauthorized", "forbidden", "not_found", "rate_limited", "network", "unknown"]>>;
815
815
  }, "strict", z.ZodTypeAny, {
816
816
  state: "valid" | "invalid" | "expired" | "unvalidated";
817
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
817
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
818
818
  lastValidatedAt?: string | undefined;
819
819
  }, {
820
820
  state: "valid" | "invalid" | "expired" | "unvalidated";
821
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
821
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
822
822
  lastValidatedAt?: string | undefined;
823
823
  }>;
824
824
  /**
@@ -835,13 +835,13 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
835
835
  status: "active" | "revoked" | "disabled" | "pending_validation";
836
836
  validation: {
837
837
  state: "valid" | "invalid" | "expired" | "unvalidated";
838
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
838
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
839
839
  lastValidatedAt?: string | undefined;
840
840
  };
841
+ createdAt: string;
841
842
  environment: "development" | "staging" | "production";
842
843
  schemaVersion: 2;
843
844
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
844
- createdAt: string;
845
845
  scope: {
846
846
  kind: "account";
847
847
  accountId: string & z.BRAND<"OxyAccountId">;
@@ -865,13 +865,13 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
865
865
  status: "active" | "revoked" | "disabled" | "pending_validation";
866
866
  validation: {
867
867
  state: "valid" | "invalid" | "expired" | "unvalidated";
868
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
868
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
869
869
  lastValidatedAt?: string | undefined;
870
870
  };
871
+ createdAt: string;
871
872
  environment: "development" | "staging" | "production";
872
873
  schemaVersion: 2;
873
874
  ownerAccountId: string;
874
- createdAt: string;
875
875
  scope: {
876
876
  kind: "account";
877
877
  accountId: string;
@@ -895,13 +895,13 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
895
895
  status: "active" | "revoked" | "disabled" | "pending_validation";
896
896
  validation: {
897
897
  state: "valid" | "invalid" | "expired" | "unvalidated";
898
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
898
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
899
899
  lastValidatedAt?: string | undefined;
900
900
  };
901
+ createdAt: string;
901
902
  environment: "development" | "staging" | "production";
902
903
  schemaVersion: 2;
903
904
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
904
- createdAt: string;
905
905
  scope: {
906
906
  kind: "account";
907
907
  accountId: string & z.BRAND<"OxyAccountId">;
@@ -925,13 +925,13 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
925
925
  status: "active" | "revoked" | "disabled" | "pending_validation";
926
926
  validation: {
927
927
  state: "valid" | "invalid" | "expired" | "unvalidated";
928
- failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
928
+ failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
929
929
  lastValidatedAt?: string | undefined;
930
930
  };
931
+ createdAt: string;
931
932
  environment: "development" | "staging" | "production";
932
933
  schemaVersion: 2;
933
934
  ownerAccountId: string;
934
- createdAt: string;
935
935
  scope: {
936
936
  kind: "account";
937
937
  accountId: string;
@@ -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;