@oxy.so/contracts 1.1.1 → 1.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.
@@ -55,6 +55,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
55
55
  phone: z.ZodOptional<z.ZodString>;
56
56
  address: z.ZodOptional<z.ZodString>;
57
57
  birthday: z.ZodOptional<z.ZodString>;
58
+ dateOfBirth: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
59
+ isAdult: z.ZodOptional<z.ZodBoolean>;
58
60
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
61
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
62
  name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
@@ -100,6 +102,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
100
102
  phone: z.ZodOptional<z.ZodString>;
101
103
  address: z.ZodOptional<z.ZodString>;
102
104
  birthday: z.ZodOptional<z.ZodString>;
105
+ dateOfBirth: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
106
+ isAdult: z.ZodOptional<z.ZodBoolean>;
103
107
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
108
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
109
  name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
@@ -145,6 +149,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
145
149
  phone: z.ZodOptional<z.ZodString>;
146
150
  address: z.ZodOptional<z.ZodString>;
147
151
  birthday: z.ZodOptional<z.ZodString>;
152
+ dateOfBirth: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
153
+ isAdult: z.ZodOptional<z.ZodBoolean>;
148
154
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
155
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
156
  name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
@@ -261,6 +267,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
261
267
  phone?: string | undefined;
262
268
  address?: string | undefined;
263
269
  birthday?: string | undefined;
270
+ dateOfBirth?: string | undefined;
271
+ isAdult?: boolean | undefined;
264
272
  languages?: string[] | undefined;
265
273
  relationship?: import("./userResponse").UserRelationship | undefined;
266
274
  themePreference?: import("./userResponse").ThemePreference | undefined;
@@ -313,6 +321,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
313
321
  phone?: string | undefined;
314
322
  address?: string | undefined;
315
323
  birthday?: string | undefined;
324
+ dateOfBirth?: string | undefined;
325
+ isAdult?: boolean | undefined;
316
326
  languages?: string[] | undefined;
317
327
  relationship?: import("./userResponse").UserRelationship | undefined;
318
328
  themePreference?: import("./userResponse").ThemePreference | undefined;
@@ -365,6 +375,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
365
375
  phone?: string | undefined;
366
376
  address?: string | undefined;
367
377
  birthday?: string | undefined;
378
+ dateOfBirth?: string | undefined;
379
+ isAdult?: boolean | undefined;
368
380
  languages?: string[] | undefined;
369
381
  relationship?: import("./userResponse").UserRelationship | undefined;
370
382
  themePreference?: import("./userResponse").ThemePreference | undefined;
@@ -417,6 +429,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
417
429
  phone?: string | undefined;
418
430
  address?: string | undefined;
419
431
  birthday?: string | undefined;
432
+ dateOfBirth?: string | undefined;
433
+ isAdult?: boolean | undefined;
420
434
  languages?: string[] | undefined;
421
435
  relationship?: import("./userResponse").UserRelationship | undefined;
422
436
  themePreference?: import("./userResponse").ThemePreference | undefined;
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Identity move contract — take a web identity INTO Commons (a MOVE, not a copy).
3
+ *
4
+ * Design: `docs/superpowers/specs/2026-09-15-one-identity-two-carriers-design.md` §5.
5
+ *
6
+ * Flow (the web — the OLD carrier — shows the QR; Commons — the NEW carrier —
7
+ * scans it):
8
+ * 1. `id.oxy.so` generates an ephemeral secp256k1 pair and calls
9
+ * `POST /identity/move { initiatorEphemeralPublicKey }` (bearer) →
10
+ * `{ moveId, expiresAt }`. The QR carries `moveId` only.
11
+ * 2. Commons scans, generates its own ephemeral pair, and calls
12
+ * `POST /identity/move/:moveId/join { responderEphemeralPublicKey }` (no
13
+ * bearer — Commons has no identity yet).
14
+ * 3. Both sides derive the same 6-digit SAS from the move id and BOTH ephemeral
15
+ * keys and show it. The person confirms on the web that they match. A relay
16
+ * that substituted either key produces two different codes.
17
+ * 4. The web seals the BIP-39 entropy under
18
+ * `HKDF(ECDH(initiatorEph, responderEph), moveId, 'oxy-identity-move-v1')` and
19
+ * calls `POST /identity/move/:moveId/seal` (bearer + identity-key proof).
20
+ * 5. Commons decrypts, imports the identity, and posts a RECEIPT: a signature by
21
+ * the identity key over `{ action:'identity_move_received', moveId, timestamp }`
22
+ * (`POST /identity/move/:moveId/receipt`). The server checks it against the
23
+ * account's key; the WEB verifies it again locally before destroying its copy,
24
+ * so not even the server can fake a completed move.
25
+ *
26
+ * The server holds two ephemeral public keys, an opaque ciphertext, and a
27
+ * receipt. It never holds anything that decrypts the ciphertext.
28
+ *
29
+ * Platform-agnostic — zod only, ESM-safe (no `require()`).
30
+ */
31
+ import { z } from 'zod';
32
+ /** A move lives this long: one interactive handoff. */
33
+ export declare const IDENTITY_MOVE_TTL_MS: number;
34
+ /** 128-bit move id, lowercase hex. */
35
+ export declare const identityMoveIdSchema: z.ZodString;
36
+ /** An ephemeral secp256k1 public key, uncompressed lowercase hex. */
37
+ export declare const identityMoveEphemeralKeySchema: z.ZodString;
38
+ export declare const IDENTITY_MOVE_STATUSES: readonly ["pending", "joined", "sealed", "completed", "cancelled", "expired"];
39
+ export type IdentityMoveStatus = (typeof IDENTITY_MOVE_STATUSES)[number];
40
+ /** The QR payload Commons scans. Carries the move id only. */
41
+ export declare const IDENTITY_MOVE_QR_PREFIX = "oxycommons://move?id=";
42
+ export declare const identityMoveCreateRequestSchema: z.ZodObject<{
43
+ initiatorEphemeralPublicKey: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ initiatorEphemeralPublicKey: string;
46
+ }, {
47
+ initiatorEphemeralPublicKey: string;
48
+ }>;
49
+ export interface IdentityMoveCreateResponse {
50
+ moveId: string;
51
+ expiresAt: string;
52
+ }
53
+ export declare const identityMoveCreateResponseSchema: z.ZodType<IdentityMoveCreateResponse>;
54
+ export declare const identityMoveJoinRequestSchema: z.ZodObject<{
55
+ responderEphemeralPublicKey: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ responderEphemeralPublicKey: string;
58
+ }, {
59
+ responderEphemeralPublicKey: string;
60
+ }>;
61
+ export declare const identityMoveSealRequestSchema: z.ZodObject<{
62
+ /** 24-byte XChaCha20-Poly1305 nonce, hex. */
63
+ nonce: z.ZodString;
64
+ /** The 16-byte entropy, tag appended (32 bytes), hex. */
65
+ ciphertext: z.ZodString;
66
+ /** Identity-key proof over `{ action:'identity_move_seal', moveId, timestamp }`. */
67
+ signature: z.ZodString;
68
+ timestamp: z.ZodNumber;
69
+ }, "strip", z.ZodTypeAny, {
70
+ signature: string;
71
+ nonce: string;
72
+ ciphertext: string;
73
+ timestamp: number;
74
+ }, {
75
+ signature: string;
76
+ nonce: string;
77
+ ciphertext: string;
78
+ timestamp: number;
79
+ }>;
80
+ export declare const identityMoveReceiptRequestSchema: z.ZodObject<{
81
+ /** Identity-key signature over `{ action:'identity_move_received', moveId, timestamp }`. */
82
+ signature: z.ZodString;
83
+ timestamp: z.ZodNumber;
84
+ }, "strip", z.ZodTypeAny, {
85
+ signature: string;
86
+ timestamp: number;
87
+ }, {
88
+ signature: string;
89
+ timestamp: number;
90
+ }>;
91
+ /** `GET /identity/move/:moveId` — everything either side needs, nothing that decrypts. */
92
+ export interface IdentityMoveState {
93
+ moveId: string;
94
+ status: IdentityMoveStatus;
95
+ /** The identity being moved (so Commons can check the key it will import). */
96
+ publicKey: string;
97
+ initiatorEphemeralPublicKey: string;
98
+ responderEphemeralPublicKey: string | null;
99
+ nonce: string | null;
100
+ ciphertext: string | null;
101
+ receiptSignature: string | null;
102
+ receiptTimestamp: number | null;
103
+ expiresAt: string;
104
+ }
105
+ export declare const identityMoveStateSchema: z.ZodType<IdentityMoveState>;
106
+ export type IdentityMoveCreateRequest = z.infer<typeof identityMoveCreateRequestSchema>;
107
+ export type IdentityMoveJoinRequest = z.infer<typeof identityMoveJoinRequestSchema>;
108
+ export type IdentityMoveSealRequest = z.infer<typeof identityMoveSealRequestSchema>;
109
+ export type IdentityMoveReceiptRequest = z.infer<typeof identityMoveReceiptRequestSchema>;
@@ -12,7 +12,7 @@
12
12
  export { ACCOUNT_KINDS, accountKindSchema, CHILD_ACCOUNT_KINDS, childAccountKindSchema, isAccountKind, isDelegatedActAsEligibleKind, isOperatorSwitchTargetKind, ACCOUNT_CATEGORY_IDS, ACCOUNT_CATEGORY_KINDS, accountCategoriesSchema, accountCategoryIdSchema, isSelectableAccountCategoryId, kindAcceptsAccountCategories, MAX_ACCOUNT_CATEGORIES, newlyAddedRetiredCategories, RETIRED_ACCOUNT_CATEGORY_IDS, SELECTABLE_ACCOUNT_CATEGORY_IDS, createAccountRequestSchema, } from './accountGraph';
13
13
  export type { AccountKind, AccountCategoryId, AccountCategoryKind, ChildAccountKind, CreateAccountRequest, } from './accountGraph';
14
14
  export { usernameSchema, usernameSchemaForAccountKind, isValidUsername, stripDisallowedUsernameCharacters, applyBotUsernameSuffix, USERNAME_MIN_LENGTH, USERNAME_MAX_LENGTH, USERNAME_INVALID_MESSAGE, BOT_USERNAME_INVALID_MESSAGE, } from './username';
15
- export { userNameSchema, userRelationshipSchema, themePreferenceSchema, userResponseSchema, userProfileUpdateSchema, currentUserResponseSchema, deviceLinkedSessionSchema, deviceLinkedSessionsResponseSchema, resolveUserId, safeParseContract, } from './userResponse';
15
+ export { userNameSchema, userRelationshipSchema, themePreferenceSchema, dateOfBirthSchema, userResponseSchema, userProfileUpdateSchema, currentUserResponseSchema, deviceLinkedSessionSchema, deviceLinkedSessionsResponseSchema, resolveUserId, safeParseContract, } from './userResponse';
16
16
  export type { UserNameResponse, UserRelationship, ThemePreference, UserResponse, UserProfileUpdate, CurrentUserResponseContract, DeviceLinkedSessionResponse, DeviceLinkedSessionsResponseContract, } from './userResponse';
17
17
  export { applicationTypeSchema, publicApplicationSchema, sessionStatusSchema, } from './sessionStatus';
18
18
  export type { ApplicationTypeContract, PublicApplicationResponse, SessionStatusResponse, } from './sessionStatus';
@@ -51,6 +51,10 @@ export { rotateKeyChallengeResponseSchema, rotateKeyCompleteRequestSchema, rotat
51
51
  export type { RotateKeyChallengeResponse, RotateKeyCompleteRequest, RotateKeyCompleteResponse, } from './keyRotation';
52
52
  export { backupLookupIdSchema, encryptedBackupEnvelopeSchema, backupUploadRequestSchema, backupStatusResponseSchema, } from './keyRecovery';
53
53
  export type { EncryptedBackupEnvelope, BackupUploadRequest, BackupStatusResponse, } from './keyRecovery';
54
+ export { WEB_IDENTITY_ENVELOPE_VERSION, webIdentityPublicKeySchema, webauthnCredentialIdSchema, webIdentityWrapSchema, webIdentityEnvelopeSchema, webIdentityEnvelopeUploadSchema, webIdentityEnvelopeResponseSchema, webIdentityEnvelopeProofSchema, webIdentityEnvelopePutSchema, webIdentityEnvelopeEstablishSchema, } from './webIdentityCarrier';
55
+ export { IDENTITY_MOVE_TTL_MS, IDENTITY_MOVE_STATUSES, IDENTITY_MOVE_QR_PREFIX, identityMoveIdSchema, identityMoveEphemeralKeySchema, identityMoveCreateRequestSchema, identityMoveCreateResponseSchema, identityMoveJoinRequestSchema, identityMoveSealRequestSchema, identityMoveReceiptRequestSchema, identityMoveStateSchema, } from './identityMove';
56
+ export type { IdentityMoveStatus, IdentityMoveCreateRequest, IdentityMoveCreateResponse, IdentityMoveJoinRequest, IdentityMoveSealRequest, IdentityMoveReceiptRequest, IdentityMoveState, } from './identityMove';
57
+ export type { WebIdentityWrap, WebIdentityEnvelope, WebIdentityEnvelopeUpload, WebIdentityEnvelopeResponse, WebIdentityEnvelopeProof, WebIdentityEnvelopePut, WebIdentityEnvelopeEstablish, } from './webIdentityCarrier';
54
58
  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';
55
59
  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';
56
60
  export { webauthnRegisterOptionsRequestSchema, webauthnLoginOptionsRequestSchema, webauthnRegisterVerifyRequestSchema, webauthnLoginVerifyRequestSchema, } from './webauthn';
@@ -165,11 +165,12 @@ export declare const inferenceDataPolicySchema: z.ZodEffects<z.ZodObject<{
165
165
  policyUrl?: string | undefined;
166
166
  }>;
167
167
  /**
168
- * Who a route may be served to. Availability inside Alia never implies
169
- * permission to resell the same provider/model publicly, which is why this is
170
- * an explicit scope on the route rather than a boolean derived from "it works".
168
+ * Who a route may be served to. Availability to an official Oxy product never
169
+ * implies permission to resell the same provider/model publicly, which is why
170
+ * this is an explicit scope on the route rather than a boolean derived from
171
+ * "it works".
171
172
  */
172
- export declare const availabilityScopeSchema: z.ZodEnum<["internal_alia", "public_payg", "enterprise", "byok_only", "oxy_hosted"]>;
173
+ export declare const availabilityScopeSchema: z.ZodEnum<["platform_internal", "public_payg", "enterprise", "byok_only", "oxy_hosted"]>;
173
174
  /** The commercial basis on which Oxy may serve a route. */
174
175
  export declare const commercialPermissionSchema: z.ZodEnum<["standard_application_use", "public_resale_approved", "wholesale_contract", "customer_byok", "open_weight_hosting"]>;
175
176
  /** Deprecation state, with the replacement a customer should migrate to. */
@@ -806,7 +807,7 @@ export declare const inferenceProviderSchema: z.ZodObject<{
806
807
  */
807
808
  export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
808
809
  /** See `version.ts`: exchanged with the data plane on its own. */
809
- schemaVersion: z.ZodLiteral<1>;
810
+ schemaVersion: z.ZodLiteral<2>;
810
811
  deploymentId: z.ZodString;
811
812
  provider: z.ZodString;
812
813
  /** Always revision-pinned: a deployment serves specific weights. */
@@ -850,7 +851,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
850
851
  subprocessors?: string[] | undefined;
851
852
  policyUrl?: string | undefined;
852
853
  }>;
853
- availabilityScope: z.ZodEnum<["internal_alia", "public_payg", "enterprise", "byok_only", "oxy_hosted"]>;
854
+ availabilityScope: z.ZodEnum<["platform_internal", "public_payg", "enterprise", "byok_only", "oxy_hosted"]>;
854
855
  commercialPermission: z.ZodEnum<["standard_application_use", "public_resale_approved", "wholesale_contract", "customer_byok", "open_weight_hosting"]>;
855
856
  status: z.ZodEnum<["active", "degraded", "disabled", "retired"]>;
856
857
  /** Reserved capacity for one enterprise account rather than shared. */
@@ -859,7 +860,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
859
860
  priceVersionId: z.ZodOptional<z.ZodString>;
860
861
  }, "strip", z.ZodTypeAny, {
861
862
  status: "active" | "disabled" | "retired" | "degraded";
862
- schemaVersion: 1;
863
+ schemaVersion: 2;
863
864
  provider: string;
864
865
  modelReference: string;
865
866
  regions: string[];
@@ -872,13 +873,13 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
872
873
  policyUrl?: string | undefined;
873
874
  };
874
875
  deploymentId: string;
875
- availabilityScope: "internal_alia" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
876
+ availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
876
877
  commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
877
878
  dedicatedCapacity: boolean;
878
879
  priceVersionId?: string | undefined;
879
880
  }, {
880
881
  status: "active" | "disabled" | "retired" | "degraded";
881
- schemaVersion: 1;
882
+ schemaVersion: 2;
882
883
  provider: string;
883
884
  modelReference: string;
884
885
  regions: string[];
@@ -891,13 +892,13 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
891
892
  policyUrl?: string | undefined;
892
893
  };
893
894
  deploymentId: string;
894
- availabilityScope: "internal_alia" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
895
+ availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
895
896
  commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
896
897
  dedicatedCapacity: boolean;
897
898
  priceVersionId?: string | undefined;
898
899
  }>, {
899
900
  status: "active" | "disabled" | "retired" | "degraded";
900
- schemaVersion: 1;
901
+ schemaVersion: 2;
901
902
  provider: string;
902
903
  modelReference: string;
903
904
  regions: string[];
@@ -910,13 +911,13 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
910
911
  policyUrl?: string | undefined;
911
912
  };
912
913
  deploymentId: string;
913
- availabilityScope: "internal_alia" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
914
+ availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
914
915
  commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
915
916
  dedicatedCapacity: boolean;
916
917
  priceVersionId?: string | undefined;
917
918
  }, {
918
919
  status: "active" | "disabled" | "retired" | "degraded";
919
- schemaVersion: 1;
920
+ schemaVersion: 2;
920
921
  provider: string;
921
922
  modelReference: string;
922
923
  regions: string[];
@@ -929,7 +930,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
929
930
  policyUrl?: string | undefined;
930
931
  };
931
932
  deploymentId: string;
932
- availabilityScope: "internal_alia" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
933
+ availabilityScope: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted";
933
934
  commercialPermission: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting";
934
935
  dedicatedCapacity: boolean;
935
936
  priceVersionId?: string | undefined;
@@ -1098,7 +1099,7 @@ export declare const catalogueServingProviderSummarySchema: z.ZodObject<{
1098
1099
  */
1099
1100
  export declare const modelCatalogueEntrySchema: z.ZodObject<{
1100
1101
  /** See `version.ts`: this is the public catalogue response shape. */
1101
- schemaVersion: z.ZodLiteral<2>;
1102
+ schemaVersion: z.ZodLiteral<3>;
1102
1103
  modelId: z.ZodString;
1103
1104
  publisher: z.ZodObject<{
1104
1105
  slug: z.ZodString;
@@ -1340,7 +1341,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1340
1341
  }[];
1341
1342
  }>>;
1342
1343
  /** Present only when every visible deployment shares one scope. */
1343
- availabilityScope: z.ZodOptional<z.ZodEnum<["internal_alia", "public_payg", "enterprise", "byok_only", "oxy_hosted"]>>;
1344
+ availabilityScope: z.ZodOptional<z.ZodEnum<["platform_internal", "public_payg", "enterprise", "byok_only", "oxy_hosted"]>>;
1344
1345
  /** Present only when every visible deployment shares one permission basis. */
1345
1346
  commercialPermission: z.ZodOptional<z.ZodEnum<["standard_application_use", "public_resale_approved", "wholesale_contract", "customer_byok", "open_weight_hosting"]>>;
1346
1347
  deprecation: z.ZodEffects<z.ZodObject<{
@@ -1422,7 +1423,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1422
1423
  maxContextTokens: number;
1423
1424
  maxOutputTokens: number;
1424
1425
  };
1425
- schemaVersion: 2;
1426
+ schemaVersion: 3;
1426
1427
  modelId: string;
1427
1428
  publisher: {
1428
1429
  displayName: string;
@@ -1489,7 +1490,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1489
1490
  provenanceMarking: "none" | "visible_watermark" | "invisible_watermark" | "c2pa";
1490
1491
  safetyCardUrl?: string | undefined;
1491
1492
  } | undefined;
1492
- availabilityScope?: "internal_alia" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted" | undefined;
1493
+ availabilityScope?: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted" | undefined;
1493
1494
  commercialPermission?: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting" | undefined;
1494
1495
  pricing?: {
1495
1496
  currency: string;
@@ -1516,7 +1517,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1516
1517
  maxContextTokens: number;
1517
1518
  maxOutputTokens: number;
1518
1519
  };
1519
- schemaVersion: 2;
1520
+ schemaVersion: 3;
1520
1521
  modelId: string;
1521
1522
  publisher: {
1522
1523
  displayName: string;
@@ -1570,7 +1571,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
1570
1571
  knownLimitations?: string[] | undefined;
1571
1572
  } | undefined;
1572
1573
  regions?: string[] | undefined;
1573
- availabilityScope?: "internal_alia" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted" | undefined;
1574
+ availabilityScope?: "platform_internal" | "public_payg" | "enterprise" | "byok_only" | "oxy_hosted" | undefined;
1574
1575
  commercialPermission?: "standard_application_use" | "public_resale_approved" | "wholesale_contract" | "customer_byok" | "open_weight_hosting" | undefined;
1575
1576
  servingProviders?: {
1576
1577
  displayName: string;
@@ -138,7 +138,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
138
138
  status?: number | undefined;
139
139
  }>>;
140
140
  }, "strip", z.ZodTypeAny, {
141
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
142
142
  message: string;
143
143
  schemaVersion: 1;
144
144
  requestId: string;
@@ -153,7 +153,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
153
153
  status?: number | undefined;
154
154
  } | undefined;
155
155
  }, {
156
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
157
157
  message: string;
158
158
  schemaVersion: 1;
159
159
  requestId: string;
@@ -168,7 +168,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
168
168
  status?: number | undefined;
169
169
  } | undefined;
170
170
  }>, {
171
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
172
172
  message: string;
173
173
  schemaVersion: 1;
174
174
  requestId: string;
@@ -183,7 +183,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
183
183
  status?: number | undefined;
184
184
  } | undefined;
185
185
  }, {
186
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
187
187
  message: string;
188
188
  schemaVersion: 1;
189
189
  requestId: string;
@@ -202,7 +202,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
202
202
  schemaVersion: 1;
203
203
  requestId: string;
204
204
  error: {
205
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
205
+ 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";
206
206
  message: string;
207
207
  schemaVersion: 1;
208
208
  requestId: string;
@@ -221,7 +221,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
221
221
  schemaVersion: 1;
222
222
  requestId: string;
223
223
  error: {
224
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
225
225
  message: string;
226
226
  schemaVersion: 1;
227
227
  requestId: string;
@@ -349,7 +349,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
349
349
  status?: number | undefined;
350
350
  }>>;
351
351
  }, "strip", z.ZodTypeAny, {
352
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
353
353
  message: string;
354
354
  schemaVersion: 1;
355
355
  requestId: string;
@@ -364,7 +364,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
364
364
  status?: number | undefined;
365
365
  } | undefined;
366
366
  }, {
367
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
368
368
  message: string;
369
369
  schemaVersion: 1;
370
370
  requestId: string;
@@ -379,7 +379,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
379
379
  status?: number | undefined;
380
380
  } | undefined;
381
381
  }>, {
382
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
383
383
  message: string;
384
384
  schemaVersion: 1;
385
385
  requestId: string;
@@ -394,7 +394,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
394
394
  status?: number | undefined;
395
395
  } | undefined;
396
396
  }, {
397
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
398
398
  message: string;
399
399
  schemaVersion: 1;
400
400
  requestId: string;
@@ -413,7 +413,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
413
413
  schemaVersion: 1;
414
414
  requestId: string;
415
415
  error: {
416
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
416
+ 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";
417
417
  message: string;
418
418
  schemaVersion: 1;
419
419
  requestId: string;
@@ -432,7 +432,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
432
432
  schemaVersion: 1;
433
433
  requestId: string;
434
434
  error: {
435
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
435
+ 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";
436
436
  message: string;
437
437
  schemaVersion: 1;
438
438
  requestId: string;
@@ -176,7 +176,7 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
176
176
  status?: number | undefined;
177
177
  }>>;
178
178
  }, "strip", z.ZodTypeAny, {
179
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
180
180
  message: string;
181
181
  schemaVersion: 1;
182
182
  requestId: string;
@@ -191,7 +191,7 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
191
191
  status?: number | undefined;
192
192
  } | undefined;
193
193
  }, {
194
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
195
195
  message: string;
196
196
  schemaVersion: 1;
197
197
  requestId: string;
@@ -206,7 +206,7 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
206
206
  status?: number | undefined;
207
207
  } | undefined;
208
208
  }>, {
209
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
210
210
  message: string;
211
211
  schemaVersion: 1;
212
212
  requestId: string;
@@ -221,7 +221,7 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
221
221
  status?: number | undefined;
222
222
  } | undefined;
223
223
  }, {
224
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
225
225
  message: string;
226
226
  schemaVersion: 1;
227
227
  requestId: string;
@@ -268,7 +268,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
268
268
  status?: number | undefined;
269
269
  }>>;
270
270
  }, "strip", z.ZodTypeAny, {
271
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
272
272
  message: string;
273
273
  schemaVersion: 1;
274
274
  requestId: string;
@@ -283,7 +283,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
283
283
  status?: number | undefined;
284
284
  } | undefined;
285
285
  }, {
286
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
287
287
  message: string;
288
288
  schemaVersion: 1;
289
289
  requestId: string;
@@ -298,7 +298,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
298
298
  status?: number | undefined;
299
299
  } | undefined;
300
300
  }>, {
301
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
302
302
  message: string;
303
303
  schemaVersion: 1;
304
304
  requestId: string;
@@ -313,7 +313,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
313
313
  status?: number | undefined;
314
314
  } | undefined;
315
315
  }, {
316
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
317
317
  message: string;
318
318
  schemaVersion: 1;
319
319
  requestId: string;
@@ -331,7 +331,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
331
331
  }, "strict", z.ZodTypeAny, {
332
332
  type: "error";
333
333
  error: {
334
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
334
+ 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";
335
335
  message: string;
336
336
  schemaVersion: 1;
337
337
  requestId: string;
@@ -349,7 +349,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
349
349
  }, {
350
350
  type: "error";
351
351
  error: {
352
- code: "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" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
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";
353
353
  message: string;
354
354
  schemaVersion: 1;
355
355
  requestId: string;