@oxy.so/contracts 2.0.0 → 2.2.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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/accountEmail.js +83 -0
- package/dist/cjs/federationInstanceFetch.js +44 -0
- package/dist/cjs/identityLink.js +89 -0
- package/dist/cjs/identityProof.js +6 -29
- package/dist/cjs/index.js +36 -49
- package/dist/cjs/linkedAccounts.js +34 -1
- package/dist/cjs/notifications.js +20 -1
- package/dist/cjs/webauthn.js +50 -21
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountEmail.js +80 -0
- package/dist/esm/federationInstanceFetch.js +41 -0
- package/dist/esm/identityLink.js +84 -0
- package/dist/esm/identityProof.js +6 -29
- package/dist/esm/index.js +8 -10
- package/dist/esm/linkedAccounts.js +33 -0
- package/dist/esm/notifications.js +19 -0
- package/dist/esm/webauthn.js +49 -20
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountEmail.d.ts +98 -0
- package/dist/types/accountGraph.d.ts +4 -4
- package/dist/types/agency.d.ts +2 -2
- package/dist/types/deviceSession.d.ts +4 -4
- package/dist/types/externalIdentity.d.ts +8 -8
- package/dist/types/federationInstanceFetch.d.ts +63 -0
- package/dist/types/identityLink.d.ts +210 -0
- package/dist/types/identityProof.d.ts +15 -42
- package/dist/types/index.d.ts +7 -8
- package/dist/types/inference/accountBilling.d.ts +2 -2
- package/dist/types/inference/aliaModelRelease.d.ts +8 -8
- package/dist/types/inference/embeddings.d.ts +16 -16
- package/dist/types/inference/errors.d.ts +8 -8
- package/dist/types/inference/inbox.d.ts +8 -8
- package/dist/types/inference/modelDocumentation.d.ts +8 -8
- package/dist/types/inference/providerConnection.d.ts +20 -20
- package/dist/types/inference/request.d.ts +16 -16
- package/dist/types/inference/streamEvents.d.ts +20 -20
- package/dist/types/keyRecovery.d.ts +4 -4
- package/dist/types/linkedAccounts.d.ts +33 -0
- package/dist/types/notifications.d.ts +26 -0
- package/dist/types/sessionStatus.d.ts +2 -2
- package/dist/types/userResponse.d.ts +4 -4
- package/dist/types/webauthn.d.ts +102 -214
- package/package.json +1 -1
- package/dist/cjs/identityMove.js +0 -156
- package/dist/cjs/identityRecovery.js +0 -51
- package/dist/cjs/webIdentityCarrier.js +0 -181
- package/dist/esm/identityMove.js +0 -148
- package/dist/esm/identityRecovery.js +0 -48
- package/dist/esm/webIdentityCarrier.js +0 -178
- package/dist/types/identityMove.d.ts +0 -185
- package/dist/types/identityRecovery.d.ts +0 -246
- package/dist/types/webIdentityCarrier.d.ts +0 -1130
|
@@ -27,26 +27,12 @@ export declare const IDENTITY_PROOF_CHALLENGE_TTL_MS: number;
|
|
|
27
27
|
* action and spent only by a proof for that action.
|
|
28
28
|
*/
|
|
29
29
|
export declare const IDENTITY_PROOF_ACTIONS: {
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
readonly phraseConfirmed: "web_envelope_phrase_confirmed";
|
|
36
|
-
/** Record that the recovery material re-derived the root. */
|
|
37
|
-
readonly recoveryVerified: "web_envelope_recovery_verified";
|
|
38
|
-
/** Remove the web holder. */
|
|
39
|
-
readonly delete: "web_envelope_delete";
|
|
40
|
-
/** Link a keyless account's first root without a web envelope (`POST /auth/link`). */
|
|
30
|
+
/**
|
|
31
|
+
* Link Commons' root to a passkey account that has none (`POST /auth/link`).
|
|
32
|
+
* The account becomes self-custodied and its recovery email is deleted
|
|
33
|
+
* (ADR 0029 D3).
|
|
34
|
+
*/
|
|
41
35
|
readonly link: "link_identity";
|
|
42
|
-
/** Create a personal account together with its root (passkey sign-up). */
|
|
43
|
-
readonly enroll: "enroll_identity";
|
|
44
|
-
/** Prove the root to start signed-out recovery. */
|
|
45
|
-
readonly recoverStart: "recover_account_start";
|
|
46
|
-
/** Bind the new passkey and envelope when completing signed-out recovery. */
|
|
47
|
-
readonly recoverComplete: "recover_account_complete";
|
|
48
|
-
/** Seal the root for the Commons device that joined a move (payload: move id + sealed bytes). */
|
|
49
|
-
readonly moveSeal: "identity_move_seal";
|
|
50
36
|
};
|
|
51
37
|
export type IdentityProofAction = (typeof IDENTITY_PROOF_ACTIONS)[keyof typeof IDENTITY_PROOF_ACTIONS];
|
|
52
38
|
export declare const IDENTITY_PROOF_ACTION_VALUES: [IdentityProofAction, ...IdentityProofAction[]];
|
|
@@ -64,7 +50,7 @@ export interface IdentityProofClaims {
|
|
|
64
50
|
rootPublicKey: string;
|
|
65
51
|
/** SHA-256 hex of `canonicalJson(payload)`, or `null` when the operation has no payload. */
|
|
66
52
|
payloadDigest: string | null;
|
|
67
|
-
/** The
|
|
53
|
+
/** The revision the operation expects to replace, or `null` when it replaces nothing. */
|
|
68
54
|
expectedRevision: number | null;
|
|
69
55
|
audience: string;
|
|
70
56
|
/** The one-use server challenge. */
|
|
@@ -103,11 +89,11 @@ export declare const identityProofSchema: z.ZodObject<{
|
|
|
103
89
|
export type IdentityProof = z.infer<typeof identityProofSchema>;
|
|
104
90
|
/** `POST /identity/proof-challenge` */
|
|
105
91
|
export declare const identityProofChallengeRequestSchema: z.ZodObject<{
|
|
106
|
-
action: z.ZodEnum<[
|
|
92
|
+
action: z.ZodEnum<["link_identity", ..."link_identity"[]]>;
|
|
107
93
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
action:
|
|
94
|
+
action: "link_identity";
|
|
109
95
|
}, {
|
|
110
|
-
action:
|
|
96
|
+
action: "link_identity";
|
|
111
97
|
}>;
|
|
112
98
|
export type IdentityProofChallengeRequest = z.infer<typeof identityProofChallengeRequestSchema>;
|
|
113
99
|
export interface IdentityProofChallengeResponse {
|
|
@@ -123,34 +109,21 @@ export declare const identityProofChallengeResponseSchema: z.ZodType<IdentityPro
|
|
|
123
109
|
*/
|
|
124
110
|
export declare const IDENTITY_ERROR_CODES: {
|
|
125
111
|
readonly proofInvalid: "IDENTITY_PROOF_INVALID";
|
|
126
|
-
readonly revisionConflict: "IDENTITY_ENVELOPE_REVISION_CONFLICT";
|
|
127
112
|
readonly rootAlreadyLinked: "IDENTITY_ROOT_ALREADY_LINKED";
|
|
128
113
|
readonly rootLinkedElsewhere: "IDENTITY_ROOT_LINKED_ELSEWHERE";
|
|
129
|
-
readonly noRoot: "IDENTITY_NO_ROOT";
|
|
130
114
|
readonly freshFactorRequired: "IDENTITY_FRESH_FACTOR_REQUIRED";
|
|
131
|
-
readonly lastWebHolder: "IDENTITY_LAST_WEB_HOLDER";
|
|
132
|
-
readonly enrollmentRequired: "IDENTITY_ENROLLMENT_REQUIRED";
|
|
133
|
-
readonly enrollmentInvalid: "IDENTITY_ENROLLMENT_INVALID";
|
|
134
115
|
readonly notPersonal: "IDENTITY_NOT_PERSONAL_ACCOUNT";
|
|
135
|
-
readonly recoveryFailed: "IDENTITY_RECOVERY_FAILED";
|
|
136
116
|
};
|
|
137
117
|
export type IdentityErrorCode = (typeof IDENTITY_ERROR_CODES)[keyof typeof IDENTITY_ERROR_CODES];
|
|
138
118
|
/**
|
|
139
|
-
* `GET /identity/root-status` —
|
|
140
|
-
*
|
|
141
|
-
*
|
|
119
|
+
* `GET /identity/root-status` — how the signed-in account is kept (ADR 0029 D3),
|
|
120
|
+
* for Accounts and the account menu to recommend linking Commons. Read with a
|
|
121
|
+
* bearer from any first-party origin.
|
|
142
122
|
*/
|
|
143
123
|
export interface IdentityRootStatus {
|
|
144
|
-
/** Whether
|
|
124
|
+
/** Whether Commons' root is linked: the account is self-custodied. */
|
|
145
125
|
rootLinked: boolean;
|
|
146
|
-
/**
|
|
147
|
-
|
|
148
|
-
passkeys: number;
|
|
149
|
-
verifiedPasskeys: number;
|
|
150
|
-
} | null;
|
|
151
|
-
/** Whether the root has recovery words (a raw-key root does not). `null` when unknown (no web holder). */
|
|
152
|
-
hasPhrase: boolean | null;
|
|
153
|
-
phraseConfirmedAt: string | null;
|
|
154
|
-
recoveryVerifiedAt: string | null;
|
|
126
|
+
/** The recovery email of a passkey account; `null` once Commons is linked. */
|
|
127
|
+
recoveryEmail: string | null;
|
|
155
128
|
}
|
|
156
129
|
export declare const identityRootStatusSchema: z.ZodType<IdentityRootStatus>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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 { webauthnRegisterOptionsRequestSchema, webauthnLoginOptionsRequestSchema, webauthnRegisterVerifyRequestSchema, webauthnLoginVerifyRequestSchema, webauthnCredentialIdSchema, webauthnAssertionResponseSchema, } from './webauthn';
|
|
57
|
+
export type { WebauthnRegisterOptionsRequest, WebauthnLoginOptionsRequest, WebauthnRegisterVerifyRequest, WebauthnLoginVerifyRequest, WebauthnAssertionResponse, } from './webauthn';
|
|
58
|
+
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';
|
|
59
|
+
export { IDENTITY_LINK_STATUSES, IDENTITY_LINK_QR_PREFIX, identityLinkIdSchema, buildIdentityLinkQrPayload, parseIdentityLinkQrPayload, identityLinkCreateResponseSchema, identityLinkStateSchema, identityLinkProofRequestSchema, identityLinkOptionsRequestSchema, identityLinkCompleteRequestSchema, } from './identityLink';
|
|
60
|
+
export type { IdentityLinkStatus, IdentityLinkCreateResponse, IdentityLinkState, IdentityLinkProofRequest, IdentityLinkOptionsRequest, 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';
|
|
@@ -104,4 +102,5 @@ export { inboxComposeRequestSchema, inboxDailyBriefRequestSchema, inboxNaturalSe
|
|
|
104
102
|
export type { InboxComposeRequest, InboxDailyBriefRequest, InboxInferenceTextResponse, InboxNaturalSearchResponse, InboxSmartRepliesResponse, InboxThreadSummaryResponse, InboxInferenceStreamEvent, } from './inference/inbox';
|
|
105
103
|
export * from './externalIdentity';
|
|
106
104
|
export * from './linkedAccounts';
|
|
105
|
+
export * from './federationInstanceFetch';
|
|
107
106
|
export * from './notifications';
|
|
@@ -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: "
|
|
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: "
|
|
340
|
+
status: "void" | "draft" | "open" | "paid";
|
|
341
341
|
accountId: string;
|
|
342
342
|
id: string;
|
|
343
343
|
schemaVersion: 1;
|
|
@@ -141,15 +141,15 @@ export declare const aliaReleaseSignatureSchema: z.ZodObject<{
|
|
|
141
141
|
}, "strict", z.ZodTypeAny, {
|
|
142
142
|
signature: string;
|
|
143
143
|
signedAt: string;
|
|
144
|
+
keyId: string;
|
|
144
145
|
algorithm: "ed25519";
|
|
145
146
|
canonicalization: "jcs";
|
|
146
|
-
keyId: string;
|
|
147
147
|
}, {
|
|
148
148
|
signature: string;
|
|
149
149
|
signedAt: string;
|
|
150
|
+
keyId: string;
|
|
150
151
|
algorithm: "ed25519";
|
|
151
152
|
canonicalization: "jcs";
|
|
152
|
-
keyId: string;
|
|
153
153
|
}>;
|
|
154
154
|
/**
|
|
155
155
|
* A signed release of an `alia/*` model revision.
|
|
@@ -377,15 +377,15 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
377
377
|
}, "strict", z.ZodTypeAny, {
|
|
378
378
|
signature: string;
|
|
379
379
|
signedAt: string;
|
|
380
|
+
keyId: string;
|
|
380
381
|
algorithm: "ed25519";
|
|
381
382
|
canonicalization: "jcs";
|
|
382
|
-
keyId: string;
|
|
383
383
|
}, {
|
|
384
384
|
signature: string;
|
|
385
385
|
signedAt: string;
|
|
386
|
+
keyId: string;
|
|
386
387
|
algorithm: "ed25519";
|
|
387
388
|
canonicalization: "jcs";
|
|
388
|
-
keyId: string;
|
|
389
389
|
}>, "many">;
|
|
390
390
|
}, "strict", z.ZodTypeAny, {
|
|
391
391
|
schemaVersion: 1;
|
|
@@ -417,9 +417,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
417
417
|
signatures: {
|
|
418
418
|
signature: string;
|
|
419
419
|
signedAt: string;
|
|
420
|
+
keyId: string;
|
|
420
421
|
algorithm: "ed25519";
|
|
421
422
|
canonicalization: "jcs";
|
|
422
|
-
keyId: string;
|
|
423
423
|
}[];
|
|
424
424
|
license: {
|
|
425
425
|
displayName: string;
|
|
@@ -471,9 +471,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
471
471
|
signatures: {
|
|
472
472
|
signature: string;
|
|
473
473
|
signedAt: string;
|
|
474
|
+
keyId: string;
|
|
474
475
|
algorithm: "ed25519";
|
|
475
476
|
canonicalization: "jcs";
|
|
476
|
-
keyId: string;
|
|
477
477
|
}[];
|
|
478
478
|
license: {
|
|
479
479
|
displayName: string;
|
|
@@ -525,9 +525,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
525
525
|
signatures: {
|
|
526
526
|
signature: string;
|
|
527
527
|
signedAt: string;
|
|
528
|
+
keyId: string;
|
|
528
529
|
algorithm: "ed25519";
|
|
529
530
|
canonicalization: "jcs";
|
|
530
|
-
keyId: string;
|
|
531
531
|
}[];
|
|
532
532
|
license: {
|
|
533
533
|
displayName: string;
|
|
@@ -579,9 +579,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
579
579
|
signatures: {
|
|
580
580
|
signature: string;
|
|
581
581
|
signedAt: string;
|
|
582
|
+
keyId: string;
|
|
582
583
|
algorithm: "ed25519";
|
|
583
584
|
canonicalization: "jcs";
|
|
584
|
-
keyId: string;
|
|
585
585
|
}[];
|
|
586
586
|
license: {
|
|
587
587
|
displayName: string;
|
|
@@ -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
|
}>]>;
|
|
@@ -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
|
}>]>;
|