@oxy.so/contracts 2.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountEmail.js +79 -0
  3. package/dist/cjs/deviceBoot.js +2 -2
  4. package/dist/cjs/deviceSession.js +73 -16
  5. package/dist/cjs/identity.js +1 -3
  6. package/dist/cjs/identityLink.js +92 -0
  7. package/dist/cjs/identityProof.js +6 -29
  8. package/dist/cjs/index.js +82 -65
  9. package/dist/cjs/reputation.js +10 -55
  10. package/dist/cjs/signIn.js +304 -0
  11. package/dist/esm/.tsbuildinfo +1 -1
  12. package/dist/esm/accountEmail.js +76 -0
  13. package/dist/esm/deviceBoot.js +2 -2
  14. package/dist/esm/deviceSession.js +72 -15
  15. package/dist/esm/identity.js +1 -3
  16. package/dist/esm/identityLink.js +87 -0
  17. package/dist/esm/identityProof.js +6 -29
  18. package/dist/esm/index.js +13 -16
  19. package/dist/esm/reputation.js +9 -54
  20. package/dist/esm/signIn.js +299 -0
  21. package/dist/types/.tsbuildinfo +1 -1
  22. package/dist/types/accountEmail.d.ts +90 -0
  23. package/dist/types/agency.d.ts +2 -2
  24. package/dist/types/deviceBoot.d.ts +2 -2
  25. package/dist/types/deviceSession.d.ts +131 -19
  26. package/dist/types/externalIdentity.d.ts +4 -4
  27. package/dist/types/identity.d.ts +4 -8
  28. package/dist/types/identityLink.d.ts +146 -0
  29. package/dist/types/identityProof.d.ts +15 -42
  30. package/dist/types/index.d.ts +10 -12
  31. package/dist/types/inference/accountBilling.d.ts +2 -2
  32. package/dist/types/inference/embeddings.d.ts +16 -16
  33. package/dist/types/inference/entitlement.d.ts +2 -2
  34. package/dist/types/inference/errors.d.ts +8 -8
  35. package/dist/types/inference/inbox.d.ts +8 -8
  36. package/dist/types/inference/providerConnection.d.ts +20 -20
  37. package/dist/types/inference/request.d.ts +16 -16
  38. package/dist/types/inference/streamEvents.d.ts +20 -20
  39. package/dist/types/keyRecovery.d.ts +4 -4
  40. package/dist/types/oauth.d.ts +16 -16
  41. package/dist/types/reputation.d.ts +32 -127
  42. package/dist/types/sessionStatus.d.ts +2 -2
  43. package/dist/types/signIn.d.ts +717 -0
  44. package/dist/types/userResponse.d.ts +2 -2
  45. package/package.json +1 -1
  46. package/dist/cjs/identityMove.js +0 -156
  47. package/dist/cjs/identityRecovery.js +0 -51
  48. package/dist/cjs/webIdentityCarrier.js +0 -181
  49. package/dist/cjs/webauthn.js +0 -85
  50. package/dist/esm/identityMove.js +0 -148
  51. package/dist/esm/identityRecovery.js +0 -48
  52. package/dist/esm/webIdentityCarrier.js +0 -178
  53. package/dist/esm/webauthn.js +0 -82
  54. package/dist/types/identityMove.d.ts +0 -185
  55. package/dist/types/identityRecovery.d.ts +0 -246
  56. package/dist/types/webIdentityCarrier.d.ts +0 -1130
  57. package/dist/types/webauthn.d.ts +0 -285
@@ -32,13 +32,13 @@ export { chainHeadResponseSchema, logPageResponseSchema, } from './protocol';
32
32
  export type { LexiconRecord, ChainHeadResponse, LogPageResponse } from './protocol';
33
33
  export { publicCardSchema, signedPublicCardSchema, realLifeAttestationRecordSchema, realLifeAttestationResultSchema, validationVerdictRecordSchema, validationOpenRequestSchema, validationOpenResultSchema, validationRequestSummarySchema, validationVoteResultSchema, personhoodVouchRecordSchema, personhoodBreakdownSchema, personhoodStatusResultSchema, vouchResultSchema, credentialRecordSchema, verifiableCredentialResponseSchema, credentialIssueResultSchema, credentialListResultSchema, credentialVerifyResultSchema, } from './civic';
34
34
  export type { CardTrustTier, PersonhoodStatus, PublicCard, SignedPublicCard, RealLifeAttestationRecord, RealLifeAttestationResult, ValidationVerdict, ValidationRequestStatus, ValidationVerdictRecord, ValidationOpenRequest, ValidationOpenResult, ValidationRequestSummary, ValidationVoteResult, PersonhoodVouchRecord, PersonhoodBreakdown, PersonhoodStatusResult, VouchResult, CredentialStatus, CredentialRecord, VerifiableCredentialResponse, CredentialIssueResult, CredentialListResult, CredentialVerifyResult, } from './civic';
35
- export { REPUTATION_CATEGORIES, REPUTATION_TRANSACTION_STATUSES, TRUST_TIERS, REPUTATION_TARGET_ENTITY_TYPES, REPUTATION_DISPUTE_STATUSES, REPUTATION_INFLUENCE_CONTEXTS, reputationCategorySchema, reputationTransactionStatusSchema, trustTierSchema, reputationTargetEntityTypeSchema, reputationDisputeStatusSchema, reputationInfluenceContextSchema, reputationTransactionSchema, reputationBalanceBreakdownSchema, reputationInfluenceSchema, reputationReliabilitySchema, reputationBalanceSummarySchema, reputationBalanceSchema, reputationDisputeSchema, reputationRuleSchema, reputationLeaderboardUserSchema, reputationLeaderboardEntrySchema, reputationInfluenceResultSchema, reverseReputationTransactionResultSchema, awardReputationSchema, createReputationDisputeSchema, resolveReputationDisputeSchema, upsertReputationRuleSchema, reverseReputationTransactionSchema, isFullReputationBalance, } from './reputation';
36
- export type { ReputationCategory, ReputationTransactionStatus, TrustTier, ReputationTargetEntityType, ReputationDisputeStatus, ReputationInfluenceContext, ReputationTransaction, ReputationBalanceBreakdown, ReputationInfluence, ReputationReliability, ReputationBalanceSummary, ReputationBalance, ReputationBalanceView, ReputationDispute, ReputationRule, ReputationLeaderboardUser, ReputationLeaderboardEntry, ReputationInfluenceResult, ReverseReputationTransactionResult, AwardReputationInput, CreateReputationDisputeInput, ResolveReputationDisputeInput, UpsertReputationRuleInput, UpsertReputationRuleRequest, ReverseReputationTransactionInput, } from './reputation';
35
+ export { REPUTATION_CATEGORIES, REPUTATION_TRANSACTION_STATUSES, TRUST_TIERS, REPUTATION_TARGET_ENTITY_TYPES, REPUTATION_INFLUENCE_CONTEXTS, reputationCategorySchema, reputationTransactionStatusSchema, trustTierSchema, reputationTargetEntityTypeSchema, reputationInfluenceContextSchema, reputationTransactionSchema, reputationBalanceBreakdownSchema, reputationInfluenceSchema, reputationReliabilitySchema, reputationBalanceSummarySchema, reputationBalanceSchema, reputationRuleSchema, reputationRulesResponseSchema, reputationLeaderboardUserSchema, reputationLeaderboardEntrySchema, reputationInfluenceResultSchema, awardReputationSchema, isFullReputationBalance, } from './reputation';
36
+ export type { ReputationCategory, ReputationTransactionStatus, TrustTier, ReputationTargetEntityType, ReputationInfluenceContext, ReputationTransaction, ReputationBalanceBreakdown, ReputationInfluence, ReputationReliability, ReputationBalanceSummary, ReputationBalance, ReputationBalanceView, ReputationRule, ReputationRulesResponse, ReputationLeaderboardUser, ReputationLeaderboardEntry, ReputationInfluenceResult, AwardReputationInput, } from './reputation';
37
37
  export { MODERATION_SEVERITIES, MODERATION_FINDING_SCOPES, MODERATION_ATTRIBUTIONS, MODERATION_DECISION_STATUSES, MODERATION_EFFECT_TYPES, MODERATION_EFFECT_STATUSES, MODERATION_EFFECT_SKIP_REASONS, CONDUCT_STRIKE_STATUSES, CONDUCT_STANDINGS, CONTRIBUTION_TIERS, PERSONHOOD_STATUSES, IDENTITY_BINDING_TYPES, IDENTITY_BINDING_STATUSES, APPLICATION_MODERATION_STANDINGS, moderationSeveritySchema, moderationFindingScopeSchema, moderationAttributionSchema, moderationDecisionStatusSchema, moderationEffectTypeSchema, moderationEffectStatusSchema, moderationEffectSkipReasonSchema, conductStrikeStatusSchema, conductStandingSchema, contributionTierSchema, personhoodStatusSchema, identityBindingTypeSchema, identityBindingStatusSchema, applicationModerationStandingSchema, moderationFindingSchema, moderationDecisionEventSubjectSchema, moderationPolicyVersionsSchema, moderationDecisionEventSchema, finalizeModerationDecisionSchema, reverseModerationEffectSchema, moderationEffectSchema, applyModerationDecisionResultSchema, reverseModerationEffectResultSchema, registerIdentityBindingSchema, identityBindingSchema, reputationPersonhoodSchema, reputationContributionSchema, reputationConductSchema, reputationReportingSchema, reputationReviewingSchema, reputationContextualInfluenceSchema, applicationModerationTrustSchema, } from './moderationReputation';
38
38
  export type { ModerationSeverity, ModerationFindingScope, ModerationAttribution, ModerationDecisionStatus, ModerationEffectType, ModerationEffectStatus, ModerationEffectSkipReason, ConductStrikeStatus, ConductStanding, ContributionTier, PersonhoodStatusValue, IdentityBindingType, IdentityBindingStatus, ApplicationModerationStanding, ModerationFinding, ModerationDecisionEventSubject, ModerationPolicyVersions, ModerationDecisionEvent, FinalizeModerationDecisionInput, ReverseModerationEffectInput, ModerationEffect, ApplyModerationDecisionResult, ReverseModerationEffectResult, RegisterIdentityBindingInput, IdentityBinding, ReputationPersonhood, ReputationContribution, ReputationConduct, ReputationReporting, ReputationReviewing, ReputationContextualInfluence, ApplicationModerationTrust, } from './moderationReputation';
39
39
  export type { FollowTargetKind, FollowState, FollowEffectiveState, FollowApplicationMode, FollowTarget, FollowRecord, FollowStatus, FollowMutation, UnfollowMutation, FollowListPage, FollowOptions, } from './followGraph';
40
- export { sessionAccountSchema, deviceSessionStateSchema, activeTokenSchema, deviceSessionSyncSchema, deviceTokenMintRequestSchema, deviceTokenMintResponseSchema, deviceBackgroundCredentialResponseSchema, deviceBackgroundTokenRequestSchema, deviceBackgroundTokenResponseSchema, SESSION_ACCOUNTS_CHANGED_EVENT, sessionAccountsChangedReasonSchema, sessionAccountsChangedEventSchema, } from './deviceSession';
41
- export type { SessionAccount, DeviceSessionState, ActiveToken, DeviceSessionSync, DeviceTokenMintRequest, DeviceTokenMintResponse, DeviceBackgroundCredentialResponse, DeviceBackgroundTokenRequest, DeviceBackgroundTokenResponse, SessionAccountsChangedReason, SessionAccountsChangedEvent, } from './deviceSession';
40
+ export { sessionAccountSchema, deviceSessionStateSchema, activeTokenSchema, deviceSessionSyncSchema, deviceTokenMintRequestSchema, deviceTokenMintResponseSchema, deviceBackgroundCredentialResponseSchema, deviceBackgroundTokenRequestSchema, deviceBackgroundTokenResponseSchema, deviceProofSchema, deviceRegisterResponseSchema, deviceJoinCodeRequestSchema, deviceJoinCodeResponseSchema, deviceJoinRequestSchema, deviceJoinResponseSchema, SESSION_ACCOUNTS_CHANGED_EVENT, sessionAccountsChangedReasonSchema, sessionAccountsChangedEventSchema, } from './deviceSession';
41
+ export type { SessionAccount, DeviceSessionState, ActiveToken, DeviceSessionSync, DeviceTokenMintRequest, DeviceTokenMintResponse, DeviceBackgroundCredentialResponse, DeviceBackgroundTokenRequest, DeviceBackgroundTokenResponse, DeviceProof, DeviceRegisterResponse, DeviceJoinCodeRequest, DeviceJoinCodeResponse, DeviceJoinRequest, DeviceJoinResponse, SessionAccountsChangedReason, SessionAccountsChangedEvent, } from './deviceSession';
42
42
  export { deviceContextRelationshipSchema, deviceDirectoryProfileSchema, deviceAccountContextSchema, devicePrincipalSchema, deviceDirectorySchema, deviceActivateRequestSchema, deviceActivateResponseSchema, deviceDirectorySyncSchema, } from './deviceDirectory';
43
43
  export type { DeviceContextRelationship, DeviceDirectoryProfile, DeviceAccountContext, DevicePrincipal, DeviceDirectory, DeviceActivateRequest, DeviceActivateResponse, DeviceDirectorySync, } from './deviceDirectory';
44
44
  export { oauthConsentDecisionSchema, oauthAuthorizeCodeResponseSchema, mcpOAuthClientApplicationSchema, mcpOAuthWriteActionSchema, mcpOAuthConsentContextSchema, mcpOAuthClientInfoResponseSchema, mcpOAuthConsentResponseSchema, } from './oauth';
@@ -49,18 +49,16 @@ export { rotateKeyChallengeResponseSchema, rotateKeyCompleteRequestSchema, rotat
49
49
  export type { RotateKeyChallengeResponse, RotateKeyCompleteRequest, RotateKeyCompleteResponse, } from './keyRotation';
50
50
  export { backupLookupIdSchema, encryptedBackupEnvelopeSchema, backupUploadRequestSchema, backupStatusResponseSchema, } from './keyRecovery';
51
51
  export type { EncryptedBackupEnvelope, BackupUploadRequest, BackupStatusResponse, } from './keyRecovery';
52
- export { WEB_IDENTITY_ENVELOPE_VERSION, WEB_IDENTITY_SECRET_KINDS, webIdentityPublicKeySchema, webauthnCredentialIdSchema, webauthnRpIdSchema, webIdentityWrapSchema, webIdentityEnvelopeSchema, webIdentityEnvelopeUploadSchema, webIdentityHolderSchema, webIdentityEnvelopeResponseSchema, webIdentityEnvelopeProofFieldsSchema, webIdentityEnvelopeActionSchema, webIdentityEnvelopePutSchema, webauthnAssertionResponseSchema, webIdentityEnvelopeEstablishSchema, } from './webIdentityCarrier';
53
52
  export { IDENTITY_PROOF_VERSION, IDENTITY_PROOF_DOMAIN, IDENTITY_PROOF_AUDIENCE, IDENTITY_PROOF_CHALLENGE_TTL_MS, IDENTITY_PROOF_ACTIONS, IDENTITY_PROOF_ACTION_VALUES, IDENTITY_ERROR_CODES, canonicalJson, buildIdentityProofMessage, identityProofSchema, identityProofChallengeRequestSchema, identityProofChallengeResponseSchema, identityRootStatusSchema, } from './identityProof';
54
- export { IDENTITY_RECOVERY_TTL_MS, identityRecoveryChallengeResponseSchema, identityRecoveryStartRequestSchema, identityRecoveryCompleteRequestSchema, } from './identityRecovery';
55
- export type { IdentityRecoveryChallengeResponse, IdentityRecoveryStartRequest, IdentityRecoveryStartResponse, IdentityRecoveryCompleteRequest, } from './identityRecovery';
56
53
  export type { IdentityProofAction, IdentityErrorCode, IdentityProofClaims, IdentityProof, IdentityProofChallengeRequest, IdentityProofChallengeResponse, IdentityRootStatus, } from './identityProof';
57
- export { IDENTITY_MOVE_TTL_MS, IDENTITY_MOVE_STATUSES, IDENTITY_MOVE_QR_PREFIX, identityMoveRevealRequestSchema, buildMoveCommitmentInput, buildMoveSasInput, buildMoveSealPayload, buildMoveCiphertextDigestInput, buildMoveReceiptMessage, identityMoveIdSchema, identityMoveEphemeralKeySchema, identityMoveCreateRequestSchema, identityMoveCreateResponseSchema, identityMoveJoinRequestSchema, identityMoveSealRequestSchema, identityMoveReceiptRequestSchema, identityMoveStateSchema, } from './identityMove';
58
- export type { IdentityMoveStatus, IdentityMoveCreateRequest, IdentityMoveCreateResponse, IdentityMoveJoinRequest, IdentityMoveSealRequest, IdentityMoveReceiptRequest, IdentityMoveRevealRequest, IdentityMoveState, } from './identityMove';
59
- export type { WebIdentityWrap, WebIdentityEnvelope, WebIdentitySecretKind, WebIdentityHolder, WebIdentityEnvelopeAction, WebauthnAssertionResponse, WebIdentityEnvelopeUpload, WebIdentityEnvelopeResponse, WebIdentityEnvelopePut, WebIdentityEnvelopeEstablish, } from './webIdentityCarrier';
60
54
  export { updatePlatformSchema, updateStatusSchema, updateAssetStatusSchema, sha256HexSchema, channelNameSchema, runtimeVersionSchema, rolloutPercentSchema, assetInitItemSchema, assetInitRequestSchema, assetUploadTicketSchema, assetInitResponseSchema, assetCompleteRequestSchema, assetCompleteResultItemSchema, assetCompleteResponseSchema, updateAssetRefSchema, createUpdateRequestSchema, updateSchema, createUpdateResponseSchema, rollbackToEmbeddedEntrySchema, channelSchema, channelListResponseSchema, updateListResponseSchema, rollbackRequestSchema, rollbackToEmbeddedRequestSchema, promoteRequestSchema, updateRolloutPatchSchema, } from './updates';
61
55
  export type { UpdatePlatform, UpdateStatus, UpdateAssetStatus, AssetInitItem, AssetInitRequest, AssetUploadTicket, AssetInitResponse, AssetCompleteRequest, AssetCompleteResultItem, AssetCompleteResponse, UpdateAssetRef, CreateUpdateRequest, Update, CreateUpdateResponse, RollbackToEmbeddedEntry, Channel, ChannelListResponse, UpdateListResponse, RollbackRequest, RollbackToEmbeddedRequest, PromoteRequest, UpdateRolloutPatch, } from './updates';
62
- export { webauthnRegisterOptionsRequestSchema, webauthnLoginOptionsRequestSchema, webauthnRegisterVerifyRequestSchema, webauthnLoginVerifyRequestSchema, } from './webauthn';
63
- export type { WebauthnRegisterOptionsRequest, WebauthnLoginOptionsRequest, WebauthnRegisterVerifyRequest, WebauthnLoginVerifyRequest, } from './webauthn';
56
+ export { EMAIL_VERIFICATION_PURPOSES, EMAIL_CODE_LENGTH, EMAIL_CODE_TTL_MS, EMAIL_CODE_MAX_ATTEMPTS, EMAIL_TICKET_TTL_MS, EMAIL_VERIFICATION_ERROR_CODES, emailAddressSchema, emailTicketSchema, emailVerificationStartRequestSchema, emailVerificationStartResponseSchema, emailVerificationConfirmRequestSchema, emailVerificationConfirmResponseSchema, } from './accountEmail';
57
+ export { EMAIL_SIGNIN_LINK_TTL_MS, SIGNIN_SECOND_FACTOR_TTL_MS, SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS, PASSWORD_MIN_LENGTH, PASSWORD_MAX_LENGTH, TOTP_DIGITS, TOTP_PERIOD_SECONDS, TOTP_BACKUP_CODE_COUNT, SIGN_IN_ERROR_CODES, signInIdentifierSchema, passwordInputSchema, newPasswordSchema, secondFactorCodeSchema, emailSignInStartRequestSchema, emailSignInStartResponseSchema, emailSignInConfirmRequestSchema, emailSignInCodeSchema, normalizeEmailSignInCode, EMAIL_SIGNIN_LONG_CODE_ALPHABET, EMAIL_SIGNIN_LONG_CODE_LENGTH, emailSignInCollectRequestSchema, emailSignInLinkRequestSchema, emailSignInLinkResponseSchema, emailSignInPendingSchema, passwordSignInRequestSchema, secondFactorSignInRequestSchema, secondFactorRequiredSchema, signUpRequestSchema, isSecondFactorRequired, reauthProofSchema, emailReauthProofSchema, REAUTH_ACTIONS, reauthEmailStartRequestSchema, passwordSetRequestSchema, signInMethodsSchema, totpEnrollResponseSchema, totpConfirmRequestSchema, totpReauthRequestSchema, totpBackupCodesResponseSchema, } from './signIn';
58
+ export type { EmailSignInStartRequest, EmailSignInStartResponse, EmailSignInConfirmRequest, EmailSignInCollectRequest, EmailSignInLinkRequest, EmailSignInLinkResponse, EmailSignInPending, PasswordSignInRequest, SecondFactorSignInRequest, SecondFactorRequired, SignInStepResult, SignUpRequest, ReauthProof, EmailReauthProof, ReauthAction, ReauthEmailStartRequest, PasswordSetRequest, SignInMethods, TotpEnrollResponse, TotpConfirmRequest, TotpReauthRequest, TotpBackupCodesResponse, SignInErrorCode, } from './signIn';
59
+ export { IDENTITY_LINK_STATUSES, IDENTITY_LINK_QR_PREFIX, identityLinkIdSchema, buildIdentityLinkQrPayload, parseIdentityLinkQrPayload, identityLinkCreateResponseSchema, identityLinkStateSchema, identityLinkProofRequestSchema, identityLinkCompleteRequestSchema, } from './identityLink';
60
+ export type { IdentityLinkStatus, IdentityLinkCreateResponse, IdentityLinkState, IdentityLinkProofRequest, IdentityLinkCompleteRequest, } from './identityLink';
61
+ export type { EmailVerificationPurpose, EmailVerificationStartRequest, EmailVerificationStartResponse, EmailVerificationConfirmRequest, EmailVerificationConfirmResponse, EmailVerificationErrorCode, } from './accountEmail';
64
62
  export { transparencyCheckpointSignatureSchema, transparencyAnchorSchema, transparencyCheckpointSchema, transparencyInclusionProofSchema, transparencyCheckpointListSchema, } from './transparency';
65
63
  export type { TransparencyCheckpointSignature, TransparencyAnchor, TransparencyCheckpoint, TransparencyInclusionProof, TransparencyCheckpointList, } from './transparency';
66
64
  export { INFERENCE_CONTRACT_VERSION, } from './inference/version';
@@ -322,7 +322,7 @@ export declare const billingInvoiceSchema: z.ZodObject<{
322
322
  paidAt: z.ZodOptional<z.ZodString>;
323
323
  receiptCount: z.ZodNumber;
324
324
  }, "strict", z.ZodTypeAny, {
325
- status: "draft" | "void" | "open" | "paid";
325
+ status: "void" | "draft" | "open" | "paid";
326
326
  accountId: string & z.BRAND<"OxyAccountId">;
327
327
  id: string;
328
328
  schemaVersion: 1;
@@ -337,7 +337,7 @@ export declare const billingInvoiceSchema: z.ZodObject<{
337
337
  externalInvoiceRef?: string | undefined;
338
338
  paidAt?: string | undefined;
339
339
  }, {
340
- status: "draft" | "void" | "open" | "paid";
340
+ status: "void" | "draft" | "open" | "paid";
341
341
  accountId: string;
342
342
  id: string;
343
343
  schemaVersion: 1;
@@ -128,14 +128,14 @@ export declare const embeddingFailureSchema: z.ZodObject<{
128
128
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
129
129
  }, "strict", z.ZodTypeAny, {
130
130
  provider: string;
131
+ status?: number | undefined;
131
132
  code?: string | undefined;
132
133
  message?: string | undefined;
133
- status?: number | undefined;
134
134
  }, {
135
135
  provider: string;
136
+ status?: number | undefined;
136
137
  code?: string | undefined;
137
138
  message?: string | undefined;
138
- status?: number | undefined;
139
139
  }>>;
140
140
  }, "strip", z.ZodTypeAny, {
141
141
  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";
@@ -148,9 +148,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
148
148
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
149
149
  providerError?: {
150
150
  provider: string;
151
+ status?: number | undefined;
151
152
  code?: string | undefined;
152
153
  message?: string | undefined;
153
- status?: number | undefined;
154
154
  } | undefined;
155
155
  }, {
156
156
  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";
@@ -163,9 +163,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
163
163
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
164
164
  providerError?: {
165
165
  provider: string;
166
+ status?: number | undefined;
166
167
  code?: string | undefined;
167
168
  message?: string | undefined;
168
- status?: number | undefined;
169
169
  } | undefined;
170
170
  }>, {
171
171
  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";
@@ -178,9 +178,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
178
178
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
179
179
  providerError?: {
180
180
  provider: string;
181
+ status?: number | undefined;
181
182
  code?: string | undefined;
182
183
  message?: string | undefined;
183
- status?: number | undefined;
184
184
  } | undefined;
185
185
  }, {
186
186
  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";
@@ -193,9 +193,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
193
193
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
194
194
  providerError?: {
195
195
  provider: string;
196
+ status?: number | undefined;
196
197
  code?: string | undefined;
197
198
  message?: string | undefined;
198
- status?: number | undefined;
199
199
  } | undefined;
200
200
  }>;
201
201
  }, "strict", z.ZodTypeAny, {
@@ -212,9 +212,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
212
212
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
213
213
  providerError?: {
214
214
  provider: string;
215
+ status?: number | undefined;
215
216
  code?: string | undefined;
216
217
  message?: string | undefined;
217
- status?: number | undefined;
218
218
  } | undefined;
219
219
  };
220
220
  }, {
@@ -231,9 +231,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
231
231
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
232
232
  providerError?: {
233
233
  provider: string;
234
+ status?: number | undefined;
234
235
  code?: string | undefined;
235
236
  message?: string | undefined;
236
- status?: number | undefined;
237
237
  } | undefined;
238
238
  };
239
239
  }>;
@@ -339,14 +339,14 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
339
339
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
340
340
  }, "strict", z.ZodTypeAny, {
341
341
  provider: string;
342
+ status?: number | undefined;
342
343
  code?: string | undefined;
343
344
  message?: string | undefined;
344
- status?: number | undefined;
345
345
  }, {
346
346
  provider: string;
347
+ status?: number | undefined;
347
348
  code?: string | undefined;
348
349
  message?: string | undefined;
349
- status?: number | undefined;
350
350
  }>>;
351
351
  }, "strip", z.ZodTypeAny, {
352
352
  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";
@@ -359,9 +359,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
359
359
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
360
360
  providerError?: {
361
361
  provider: string;
362
+ status?: number | undefined;
362
363
  code?: string | undefined;
363
364
  message?: string | undefined;
364
- status?: number | undefined;
365
365
  } | undefined;
366
366
  }, {
367
367
  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";
@@ -374,9 +374,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
374
374
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
375
375
  providerError?: {
376
376
  provider: string;
377
+ status?: number | undefined;
377
378
  code?: string | undefined;
378
379
  message?: string | undefined;
379
- status?: number | undefined;
380
380
  } | undefined;
381
381
  }>, {
382
382
  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";
@@ -389,9 +389,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
389
389
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
390
390
  providerError?: {
391
391
  provider: string;
392
+ status?: number | undefined;
392
393
  code?: string | undefined;
393
394
  message?: string | undefined;
394
- status?: number | undefined;
395
395
  } | undefined;
396
396
  }, {
397
397
  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";
@@ -404,9 +404,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
404
404
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
405
405
  providerError?: {
406
406
  provider: string;
407
+ status?: number | undefined;
407
408
  code?: string | undefined;
408
409
  message?: string | undefined;
409
- status?: number | undefined;
410
410
  } | undefined;
411
411
  }>;
412
412
  }, "strict", z.ZodTypeAny, {
@@ -423,9 +423,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
423
423
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
424
424
  providerError?: {
425
425
  provider: string;
426
+ status?: number | undefined;
426
427
  code?: string | undefined;
427
428
  message?: string | undefined;
428
- status?: number | undefined;
429
429
  } | undefined;
430
430
  };
431
431
  }, {
@@ -442,9 +442,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
442
442
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
443
443
  providerError?: {
444
444
  provider: string;
445
+ status?: number | undefined;
445
446
  code?: string | undefined;
446
447
  message?: string | undefined;
447
- status?: number | undefined;
448
448
  } | undefined;
449
449
  };
450
450
  }>]>;
@@ -429,7 +429,6 @@ export declare const productEntitlementSchema: z.ZodObject<{
429
429
  }, "strict", z.ZodTypeAny, {
430
430
  accountId: string & z.BRAND<"OxyAccountId">;
431
431
  schemaVersion: 1;
432
- resolvedAt: string;
433
432
  allowances: {
434
433
  key: string;
435
434
  included: number;
@@ -467,10 +466,10 @@ export declare const productEntitlementSchema: z.ZodObject<{
467
466
  availableToSpend: string & z.BRAND<"ExactDecimal">;
468
467
  canSpend: boolean;
469
468
  } | null;
469
+ resolvedAt: string;
470
470
  }, {
471
471
  accountId: string;
472
472
  schemaVersion: 1;
473
- resolvedAt: string;
474
473
  allowances: {
475
474
  key: string;
476
475
  included: number;
@@ -508,6 +507,7 @@ export declare const productEntitlementSchema: z.ZodObject<{
508
507
  availableToSpend: string;
509
508
  canSpend: boolean;
510
509
  } | null;
510
+ resolvedAt: string;
511
511
  }>;
512
512
  export type ProductPlanStatus = z.infer<typeof productPlanStatusSchema>;
513
513
  export type PlanAllowance = z.infer<typeof planAllowanceSchema>;
@@ -127,14 +127,14 @@ export declare const providerErrorPassthroughSchema: z.ZodObject<{
127
127
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
128
128
  }, "strict", z.ZodTypeAny, {
129
129
  provider: string;
130
+ status?: number | undefined;
130
131
  code?: string | undefined;
131
132
  message?: string | undefined;
132
- status?: number | undefined;
133
133
  }, {
134
134
  provider: string;
135
+ status?: number | undefined;
135
136
  code?: string | undefined;
136
137
  message?: string | undefined;
137
- status?: number | undefined;
138
138
  }>;
139
139
  /**
140
140
  * The error body every inference surface returns and every stream error event
@@ -166,14 +166,14 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
166
166
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
167
167
  }, "strict", z.ZodTypeAny, {
168
168
  provider: string;
169
+ status?: number | undefined;
169
170
  code?: string | undefined;
170
171
  message?: string | undefined;
171
- status?: number | undefined;
172
172
  }, {
173
173
  provider: string;
174
+ status?: number | undefined;
174
175
  code?: string | undefined;
175
176
  message?: string | undefined;
176
- status?: number | undefined;
177
177
  }>>;
178
178
  }, "strip", z.ZodTypeAny, {
179
179
  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";
@@ -186,9 +186,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
186
186
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
187
187
  providerError?: {
188
188
  provider: string;
189
+ status?: number | undefined;
189
190
  code?: string | undefined;
190
191
  message?: string | undefined;
191
- status?: number | undefined;
192
192
  } | undefined;
193
193
  }, {
194
194
  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";
@@ -201,9 +201,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
201
201
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
202
202
  providerError?: {
203
203
  provider: string;
204
+ status?: number | undefined;
204
205
  code?: string | undefined;
205
206
  message?: string | undefined;
206
- status?: number | undefined;
207
207
  } | undefined;
208
208
  }>, {
209
209
  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";
@@ -216,9 +216,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
216
216
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
217
217
  providerError?: {
218
218
  provider: string;
219
+ status?: number | undefined;
219
220
  code?: string | undefined;
220
221
  message?: string | undefined;
221
- status?: number | undefined;
222
222
  } | undefined;
223
223
  }, {
224
224
  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";
@@ -231,9 +231,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
231
231
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
232
232
  providerError?: {
233
233
  provider: string;
234
+ status?: number | undefined;
234
235
  code?: string | undefined;
235
236
  message?: string | undefined;
236
- status?: number | undefined;
237
237
  } | undefined;
238
238
  }>;
239
239
  export type InferenceErrorCode = z.infer<typeof inferenceErrorCodeSchema>;
@@ -258,14 +258,14 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
258
258
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
259
259
  }, "strict", z.ZodTypeAny, {
260
260
  provider: string;
261
+ status?: number | undefined;
261
262
  code?: string | undefined;
262
263
  message?: string | undefined;
263
- status?: number | undefined;
264
264
  }, {
265
265
  provider: string;
266
+ status?: number | undefined;
266
267
  code?: string | undefined;
267
268
  message?: string | undefined;
268
- status?: number | undefined;
269
269
  }>>;
270
270
  }, "strip", z.ZodTypeAny, {
271
271
  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";
@@ -278,9 +278,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
278
278
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
279
279
  providerError?: {
280
280
  provider: string;
281
+ status?: number | undefined;
281
282
  code?: string | undefined;
282
283
  message?: string | undefined;
283
- status?: number | undefined;
284
284
  } | undefined;
285
285
  }, {
286
286
  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";
@@ -293,9 +293,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
293
293
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
294
294
  providerError?: {
295
295
  provider: string;
296
+ status?: number | undefined;
296
297
  code?: string | undefined;
297
298
  message?: string | undefined;
298
- status?: number | undefined;
299
299
  } | undefined;
300
300
  }>, {
301
301
  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";
@@ -308,9 +308,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
308
308
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
309
309
  providerError?: {
310
310
  provider: string;
311
+ status?: number | undefined;
311
312
  code?: string | undefined;
312
313
  message?: string | undefined;
313
- status?: number | undefined;
314
314
  } | undefined;
315
315
  }, {
316
316
  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";
@@ -323,9 +323,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
323
323
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
324
324
  providerError?: {
325
325
  provider: string;
326
+ status?: number | undefined;
326
327
  code?: string | undefined;
327
328
  message?: string | undefined;
328
- status?: number | undefined;
329
329
  } | undefined;
330
330
  }>;
331
331
  }, "strict", z.ZodTypeAny, {
@@ -341,9 +341,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
341
341
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
342
342
  providerError?: {
343
343
  provider: string;
344
+ status?: number | undefined;
344
345
  code?: string | undefined;
345
346
  message?: string | undefined;
346
- status?: number | undefined;
347
347
  } | undefined;
348
348
  };
349
349
  }, {
@@ -359,9 +359,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
359
359
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
360
360
  providerError?: {
361
361
  provider: string;
362
+ status?: number | undefined;
362
363
  code?: string | undefined;
363
364
  message?: string | undefined;
364
- status?: number | undefined;
365
365
  } | undefined;
366
366
  };
367
367
  }>]>;