@tokensrc/codex 1.14.15 → 1.14.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +95 -2
  2. package/dist/client.d.ts +22 -1
  3. package/dist/client.js +228 -5
  4. package/dist/client.js.map +1 -1
  5. package/dist/command-directory.js +3 -2
  6. package/dist/command-directory.js.map +1 -1
  7. package/dist/commands.js +575 -21
  8. package/dist/commands.js.map +1 -1
  9. package/dist/errors.d.ts +1 -1
  10. package/dist/errors.js.map +1 -1
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +2 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/managed-credential-v3-envelope.d.ts +40 -1
  15. package/dist/managed-credential-v3-envelope.js +118 -1
  16. package/dist/managed-credential-v3-envelope.js.map +1 -1
  17. package/dist/managed-credential-v3-flow.js +105 -21
  18. package/dist/managed-credential-v3-flow.js.map +1 -1
  19. package/dist/profile.d.ts +2 -0
  20. package/dist/profile.js +26 -1
  21. package/dist/profile.js.map +1 -1
  22. package/dist/protocol.d.ts +1228 -0
  23. package/dist/protocol.js +516 -2
  24. package/dist/protocol.js.map +1 -1
  25. package/dist/request-bound-device-v6-flow.d.ts +42 -0
  26. package/dist/request-bound-device-v6-flow.js +403 -0
  27. package/dist/request-bound-device-v6-flow.js.map +1 -0
  28. package/dist/request-bound-device-v6-state.d.ts +397 -0
  29. package/dist/request-bound-device-v6-state.js +221 -0
  30. package/dist/request-bound-device-v6-state.js.map +1 -0
  31. package/dist/selection.d.ts +5 -0
  32. package/dist/selection.js +20 -2
  33. package/dist/selection.js.map +1 -1
  34. package/dist/token-pool-v4-upload-flow.js +5 -1
  35. package/dist/token-pool-v4-upload-flow.js.map +1 -1
  36. package/dist/tui.d.ts +7 -2
  37. package/dist/tui.js +21 -6
  38. package/dist/tui.js.map +1 -1
  39. package/package.json +2 -2
@@ -32,6 +32,14 @@ export declare const CODEX_MULTI_DEVICE_V5_RUNTIME_PATH = "/v5/codex";
32
32
  export declare const CODEX_MULTI_DEVICE_V5_CREDENTIAL_ASSIGNMENTS_PATH = "/v5/codex/credential-assignments";
33
33
  export declare const CODEX_MULTI_DEVICE_V5_DEVICE_SESSIONS_PATH = "/v5/codex/device-sessions";
34
34
  export declare const CODEX_MULTI_DEVICE_V5_CREDENTIAL_LINEAGES_PATH = "/v5/codex/credential-lineages";
35
+ export declare const CODEX_REQUEST_BOUND_DEVICE_V6_SCHEMA_VERSION: 6;
36
+ export declare const CODEX_REQUEST_BOUND_DEVICE_V6_RUNTIME_PATH = "/v6/codex";
37
+ export declare const CODEX_V6_ACCOUNT_REQUESTS_PATH = "/v6/codex/account-requests";
38
+ export declare const CODEX_V6_DEVICE_ACCESS_RECONCILIATIONS_PATH = "/v6/codex/device-access/reconciliations";
39
+ export declare const CODEX_V6_DEVICE_BINDINGS_PATH = "/v6/codex/device-bindings";
40
+ export declare const CODEX_REQUEST_BOUND_DEVICE_V6_ADMIN_PATH = "/v6/admin/codex";
41
+ export declare const CODEX_V6_ADMIN_ACCOUNT_REQUESTS_PATH = "/v6/admin/codex/account-requests";
42
+ export declare const CODEX_V6_ADMIN_DEVICE_BINDINGS_PATH = "/v6/admin/codex/device-bindings";
35
43
  export declare const CODEX_MIGRATION_CAPACITY: {
36
44
  readonly verifiedMinimum: 2;
37
45
  readonly verifiedLimit: null;
@@ -95,8 +103,11 @@ export declare const CodexAccountSummarySchema: z.ZodObject<{
95
103
  label: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
96
104
  isDefault: z.ZodBoolean;
97
105
  accessExpiresAt: z.ZodOptional<z.ZodNumber>;
106
+ subscriptionStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ subscriptionExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
98
108
  credentialStatus: z.ZodOptional<z.ZodEnum<{
99
109
  AVAILABLE: "AVAILABLE";
110
+ EXPIRED: "EXPIRED";
100
111
  NEEDS_REAUTH: "NEEDS_REAUTH";
101
112
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
102
113
  }>>;
@@ -155,8 +166,11 @@ export declare const CodexAccountListResponseSchema: z.ZodObject<{
155
166
  label: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
156
167
  isDefault: z.ZodBoolean;
157
168
  accessExpiresAt: z.ZodOptional<z.ZodNumber>;
169
+ subscriptionStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ subscriptionExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
158
171
  credentialStatus: z.ZodOptional<z.ZodEnum<{
159
172
  AVAILABLE: "AVAILABLE";
173
+ EXPIRED: "EXPIRED";
160
174
  NEEDS_REAUTH: "NEEDS_REAUTH";
161
175
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
162
176
  }>>;
@@ -217,8 +231,11 @@ export declare const CodexLoginCredentialsResponseSchema: z.ZodObject<{
217
231
  label: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
218
232
  isDefault: z.ZodBoolean;
219
233
  accessExpiresAt: z.ZodOptional<z.ZodNumber>;
234
+ subscriptionStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ subscriptionExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
220
236
  credentialStatus: z.ZodOptional<z.ZodEnum<{
221
237
  AVAILABLE: "AVAILABLE";
238
+ EXPIRED: "EXPIRED";
222
239
  NEEDS_REAUTH: "NEEDS_REAUTH";
223
240
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
224
241
  }>>;
@@ -442,6 +459,7 @@ export declare const CodexAdminAccountSchema: z.ZodObject<{
442
459
  lastRefreshErrorCode: z.ZodNullable<z.ZodString>;
443
460
  credentialStatus: z.ZodEnum<{
444
461
  AVAILABLE: "AVAILABLE";
462
+ EXPIRED: "EXPIRED";
445
463
  NEEDS_REAUTH: "NEEDS_REAUTH";
446
464
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
447
465
  }>;
@@ -531,6 +549,7 @@ export declare const CodexAdminAccountListResponseSchema: z.ZodObject<{
531
549
  lastRefreshErrorCode: z.ZodNullable<z.ZodString>;
532
550
  credentialStatus: z.ZodEnum<{
533
551
  AVAILABLE: "AVAILABLE";
552
+ EXPIRED: "EXPIRED";
534
553
  NEEDS_REAUTH: "NEEDS_REAUTH";
535
554
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
536
555
  }>;
@@ -621,6 +640,7 @@ export declare const CodexCredentialVersionListResponseSchema: z.ZodObject<{
621
640
  lastRefreshErrorCode: z.ZodNullable<z.ZodString>;
622
641
  credentialStatus: z.ZodEnum<{
623
642
  AVAILABLE: "AVAILABLE";
643
+ EXPIRED: "EXPIRED";
624
644
  NEEDS_REAUTH: "NEEDS_REAUTH";
625
645
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
626
646
  }>;
@@ -752,6 +772,104 @@ export declare const CodexManualRefreshResponseSchema: z.ZodObject<{
752
772
  errorCode: z.ZodNullable<z.ZodString>;
753
773
  expiresAt: z.ZodNullable<z.ZodNumber>;
754
774
  }, z.core.$strict>;
775
+ export declare const CodexAdminAccountRenewalInputSchema: z.ZodObject<{
776
+ schemaVersion: z.ZodLiteral<1>;
777
+ expectedSubscriptionExpiresAt: z.ZodNullable<z.ZodNumber>;
778
+ subscriptionExpiresAt: z.ZodNumber;
779
+ }, z.core.$strict>;
780
+ export declare const CodexAdminAccountRenewalResponseSchema: z.ZodObject<{
781
+ schemaVersion: z.ZodLiteral<1>;
782
+ account: z.ZodObject<{
783
+ id: z.ZodString;
784
+ sourceKey: z.ZodString;
785
+ providerAccountId: z.ZodNullable<z.ZodString>;
786
+ label: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
787
+ email: z.ZodNullable<z.ZodString>;
788
+ status: z.ZodEnum<{
789
+ ACTIVE: "ACTIVE";
790
+ DISABLED: "DISABLED";
791
+ NEEDS_REAUTH: "NEEDS_REAUTH";
792
+ }>;
793
+ refreshStatus: z.ZodEnum<{
794
+ HEALTHY: "HEALTHY";
795
+ NEEDS_REAUTH: "NEEDS_REAUTH";
796
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
797
+ UNKNOWN: "UNKNOWN";
798
+ }>;
799
+ subscriptionStatus: z.ZodNullable<z.ZodString>;
800
+ subscriptionExpiresAt: z.ZodNullable<z.ZodNumber>;
801
+ credentialExpiresAt: z.ZodNullable<z.ZodNumber>;
802
+ lastRefreshAt: z.ZodNullable<z.ZodNumber>;
803
+ lastRefreshErrorCode: z.ZodNullable<z.ZodString>;
804
+ credentialStatus: z.ZodEnum<{
805
+ AVAILABLE: "AVAILABLE";
806
+ EXPIRED: "EXPIRED";
807
+ NEEDS_REAUTH: "NEEDS_REAUTH";
808
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
809
+ }>;
810
+ activeCredential: z.ZodNullable<z.ZodObject<{
811
+ id: z.ZodString;
812
+ accountId: z.ZodString;
813
+ version: z.ZodNumber;
814
+ status: z.ZodEnum<{
815
+ ACTIVE: "ACTIVE";
816
+ CANDIDATE: "CANDIDATE";
817
+ REJECTED: "REJECTED";
818
+ RETIRED: "RETIRED";
819
+ REVOKED: "REVOKED";
820
+ SUPERSEDED: "SUPERSEDED";
821
+ UNKNOWN: "UNKNOWN";
822
+ }>;
823
+ expiresAt: z.ZodNullable<z.ZodNumber>;
824
+ observedSource: z.ZodNullable<z.ZodString>;
825
+ lastVerifiedAt: z.ZodNullable<z.ZodNumber>;
826
+ lastRefreshAttemptAt: z.ZodNullable<z.ZodNumber>;
827
+ lastRefreshAttemptReason: z.ZodNullable<z.ZodEnum<{
828
+ ACCESS_TOKEN_EXPIRED: "ACCESS_TOKEN_EXPIRED";
829
+ ACCESS_TOKEN_EXPIRING_SOON: "ACCESS_TOKEN_EXPIRING_SOON";
830
+ CONTROLLED_RECOVERY: "CONTROLLED_RECOVERY";
831
+ MANUAL_ADMIN_REQUEST: "MANUAL_ADMIN_REQUEST";
832
+ MISSING_ACCESS_TOKEN: "MISSING_ACCESS_TOKEN";
833
+ MISSING_EXPIRY: "MISSING_EXPIRY";
834
+ MISSING_ID_TOKEN: "MISSING_ID_TOKEN";
835
+ ON_DEMAND_RETRIEVAL: "ON_DEMAND_RETRIEVAL";
836
+ SCHEDULED_REFRESH: "SCHEDULED_REFRESH";
837
+ UPLOAD_REPLACEMENT_VALIDATION: "UPLOAD_REPLACEMENT_VALIDATION";
838
+ }>>;
839
+ lastRefreshAttemptOutcome: z.ZodNullable<z.ZodEnum<{
840
+ IN_PROGRESS: "IN_PROGRESS";
841
+ PERMANENT_FAILURE: "PERMANENT_FAILURE";
842
+ SUCCESS: "SUCCESS";
843
+ TEMPORARY_FAILURE: "TEMPORARY_FAILURE";
844
+ }>>;
845
+ lastRefreshAttemptErrorCode: z.ZodNullable<z.ZodString>;
846
+ lastRefreshObservedExpiresAt: z.ZodNullable<z.ZodNumber>;
847
+ firstObservedAt: z.ZodNumber;
848
+ lastObservedAt: z.ZodNumber;
849
+ serverIssuedAt: z.ZodNullable<z.ZodNumber>;
850
+ providerIssuedAt: z.ZodNullable<z.ZodNumber>;
851
+ parentCredentialId: z.ZodNullable<z.ZodString>;
852
+ supersededByCredentialId: z.ZodNullable<z.ZodString>;
853
+ supersededAt: z.ZodNullable<z.ZodNumber>;
854
+ supersededReason: z.ZodNullable<z.ZodString>;
855
+ lastRefreshTokenResponseMode: z.ZodEnum<{
856
+ NEW: "NEW";
857
+ NOT_APPLICABLE: "NOT_APPLICABLE";
858
+ OMITTED: "OMITTED";
859
+ SAME: "SAME";
860
+ }>;
861
+ retiredAt: z.ZodNullable<z.ZodNumber>;
862
+ rejectedAt: z.ZodNullable<z.ZodNumber>;
863
+ createdAt: z.ZodNumber;
864
+ updatedAt: z.ZodNumber;
865
+ }, z.core.$strict>>;
866
+ createdAt: z.ZodNumber;
867
+ updatedAt: z.ZodNumber;
868
+ activeAssignmentCount: z.ZodOptional<z.ZodNumber>;
869
+ }, z.core.$strict>;
870
+ previousSubscriptionExpiresAt: z.ZodNullable<z.ZodNumber>;
871
+ replayed: z.ZodBoolean;
872
+ }, z.core.$strict>;
755
873
  export declare const CodexAdminAssignmentSchema: z.ZodObject<{
756
874
  id: z.ZodString;
757
875
  accountId: z.ZodString;
@@ -1229,6 +1347,8 @@ export declare const CodexUserCredentialAssignmentSchema: z.ZodObject<{
1229
1347
  }>>;
1230
1348
  generationVersion: z.ZodNullable<z.ZodNumber>;
1231
1349
  credentialExpiresAt: z.ZodNullable<z.ZodString>;
1350
+ subscriptionStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1351
+ subscriptionExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1232
1352
  deliveryEligible: z.ZodBoolean;
1233
1353
  }, z.core.$strict>;
1234
1354
  export declare const CodexUserCredentialAssignmentListResponseSchema: z.ZodObject<{
@@ -1253,6 +1373,8 @@ export declare const CodexUserCredentialAssignmentListResponseSchema: z.ZodObjec
1253
1373
  }>>;
1254
1374
  generationVersion: z.ZodNullable<z.ZodNumber>;
1255
1375
  credentialExpiresAt: z.ZodNullable<z.ZodString>;
1376
+ subscriptionStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1377
+ subscriptionExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1256
1378
  deliveryEligible: z.ZodBoolean;
1257
1379
  }, z.core.$strict>>;
1258
1380
  total: z.ZodNumber;
@@ -1580,6 +1702,8 @@ export declare const CodexV3CredentialAssignmentSchema: z.ZodObject<{
1580
1702
  UNKNOWN: "UNKNOWN";
1581
1703
  }>;
1582
1704
  credentialExpiresAt: z.ZodString;
1705
+ subscriptionStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1706
+ subscriptionExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1583
1707
  lastObservedAt: z.ZodString;
1584
1708
  deliveryEligible: z.ZodBoolean;
1585
1709
  quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -1649,6 +1773,8 @@ export declare const CodexV3CredentialAssignmentListResponseSchema: z.ZodObject<
1649
1773
  UNKNOWN: "UNKNOWN";
1650
1774
  }>;
1651
1775
  credentialExpiresAt: z.ZodString;
1776
+ subscriptionStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1777
+ subscriptionExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1652
1778
  lastObservedAt: z.ZodString;
1653
1779
  deliveryEligible: z.ZodBoolean;
1654
1780
  quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -2015,6 +2141,1066 @@ export declare const CodexV5GenerationReportResponseSchema: z.ZodObject<{
2015
2141
  }, z.core.$strict>;
2016
2142
  replayed: z.ZodBoolean;
2017
2143
  }, z.core.$strict>;
2144
+ /**
2145
+ * v6 makes one complete upstream token set the property of exactly one
2146
+ * request/device binding. A request may own several bindings for the same
2147
+ * user, but lineages and installation ids may never be shared by bindings.
2148
+ */
2149
+ export declare const CodexV6DeviceDescriptorSchema: z.ZodObject<{
2150
+ installationId: z.ZodString;
2151
+ label: z.ZodString;
2152
+ platform: z.ZodEnum<{
2153
+ darwin: "darwin";
2154
+ linux: "linux";
2155
+ unknown: "unknown";
2156
+ win32: "win32";
2157
+ }>;
2158
+ }, z.core.$strict>;
2159
+ export declare const CodexV6AccountRequestStatusSchema: z.ZodEnum<{
2160
+ APPROVED: "APPROVED";
2161
+ CANCELLED: "CANCELLED";
2162
+ EXPIRED: "EXPIRED";
2163
+ REJECTED: "REJECTED";
2164
+ SUBMITTED: "SUBMITTED";
2165
+ }>;
2166
+ export declare const CodexV6AccountRequestAvailabilitySchema: z.ZodEnum<{
2167
+ AVAILABLE: "AVAILABLE";
2168
+ EXPIRED: "EXPIRED";
2169
+ PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE";
2170
+ PENDING_APPROVAL: "PENDING_APPROVAL";
2171
+ UNAVAILABLE: "UNAVAILABLE";
2172
+ WAITING_FOR_BINDING: "WAITING_FOR_BINDING";
2173
+ }>;
2174
+ export declare const CodexV6AccountRequestSchema: z.ZodObject<{
2175
+ id: z.ZodString;
2176
+ userSubject: z.ZodString;
2177
+ username: z.ZodString;
2178
+ userEmail: z.ZodNullable<z.ZodEmail>;
2179
+ status: z.ZodEnum<{
2180
+ APPROVED: "APPROVED";
2181
+ CANCELLED: "CANCELLED";
2182
+ EXPIRED: "EXPIRED";
2183
+ REJECTED: "REJECTED";
2184
+ SUBMITTED: "SUBMITTED";
2185
+ }>;
2186
+ availability: z.ZodEnum<{
2187
+ AVAILABLE: "AVAILABLE";
2188
+ EXPIRED: "EXPIRED";
2189
+ PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE";
2190
+ PENDING_APPROVAL: "PENDING_APPROVAL";
2191
+ UNAVAILABLE: "UNAVAILABLE";
2192
+ WAITING_FOR_BINDING: "WAITING_FOR_BINDING";
2193
+ }>;
2194
+ reason: z.ZodString;
2195
+ requestedDeviceCount: z.ZodNumber;
2196
+ approvedDeviceLimit: z.ZodNullable<z.ZodNumber>;
2197
+ activeBindingCount: z.ZodNumber;
2198
+ pendingBindingCount: z.ZodNumber;
2199
+ requestedValidUntil: z.ZodString;
2200
+ validFrom: z.ZodNullable<z.ZodString>;
2201
+ validUntil: z.ZodNullable<z.ZodString>;
2202
+ version: z.ZodNumber;
2203
+ createdAt: z.ZodString;
2204
+ submittedAt: z.ZodString;
2205
+ reviewedAt: z.ZodNullable<z.ZodString>;
2206
+ safeErrorCode: z.ZodNullable<z.ZodString>;
2207
+ allowedActions: z.ZodArray<z.ZodEnum<{
2208
+ CANCEL: "CANCEL";
2209
+ CLAIM_DEVICE: "CLAIM_DEVICE";
2210
+ VIEW_BINDINGS: "VIEW_BINDINGS";
2211
+ }>>;
2212
+ }, z.core.$strict>;
2213
+ export declare const CodexV6CreateAccountRequestInputSchema: z.ZodObject<{
2214
+ schemaVersion: z.ZodLiteral<6>;
2215
+ clientRequestId: z.ZodString;
2216
+ reason: z.ZodString;
2217
+ requestedDeviceCount: z.ZodNumber;
2218
+ requestedValidUntil: z.ZodString;
2219
+ initialDevice: z.ZodObject<{
2220
+ installationId: z.ZodString;
2221
+ label: z.ZodString;
2222
+ platform: z.ZodEnum<{
2223
+ darwin: "darwin";
2224
+ linux: "linux";
2225
+ unknown: "unknown";
2226
+ win32: "win32";
2227
+ }>;
2228
+ }, z.core.$strict>;
2229
+ }, z.core.$strict>;
2230
+ export declare const CodexV6AccountRequestResponseSchema: z.ZodObject<{
2231
+ schemaVersion: z.ZodLiteral<6>;
2232
+ request: z.ZodObject<{
2233
+ id: z.ZodString;
2234
+ userSubject: z.ZodString;
2235
+ username: z.ZodString;
2236
+ userEmail: z.ZodNullable<z.ZodEmail>;
2237
+ status: z.ZodEnum<{
2238
+ APPROVED: "APPROVED";
2239
+ CANCELLED: "CANCELLED";
2240
+ EXPIRED: "EXPIRED";
2241
+ REJECTED: "REJECTED";
2242
+ SUBMITTED: "SUBMITTED";
2243
+ }>;
2244
+ availability: z.ZodEnum<{
2245
+ AVAILABLE: "AVAILABLE";
2246
+ EXPIRED: "EXPIRED";
2247
+ PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE";
2248
+ PENDING_APPROVAL: "PENDING_APPROVAL";
2249
+ UNAVAILABLE: "UNAVAILABLE";
2250
+ WAITING_FOR_BINDING: "WAITING_FOR_BINDING";
2251
+ }>;
2252
+ reason: z.ZodString;
2253
+ requestedDeviceCount: z.ZodNumber;
2254
+ approvedDeviceLimit: z.ZodNullable<z.ZodNumber>;
2255
+ activeBindingCount: z.ZodNumber;
2256
+ pendingBindingCount: z.ZodNumber;
2257
+ requestedValidUntil: z.ZodString;
2258
+ validFrom: z.ZodNullable<z.ZodString>;
2259
+ validUntil: z.ZodNullable<z.ZodString>;
2260
+ version: z.ZodNumber;
2261
+ createdAt: z.ZodString;
2262
+ submittedAt: z.ZodString;
2263
+ reviewedAt: z.ZodNullable<z.ZodString>;
2264
+ safeErrorCode: z.ZodNullable<z.ZodString>;
2265
+ allowedActions: z.ZodArray<z.ZodEnum<{
2266
+ CANCEL: "CANCEL";
2267
+ CLAIM_DEVICE: "CLAIM_DEVICE";
2268
+ VIEW_BINDINGS: "VIEW_BINDINGS";
2269
+ }>>;
2270
+ }, z.core.$strict>;
2271
+ replayed: z.ZodBoolean;
2272
+ }, z.core.$strict>;
2273
+ export declare const CodexV6AccountRequestListResponseSchema: z.ZodObject<{
2274
+ schemaVersion: z.ZodLiteral<6>;
2275
+ items: z.ZodArray<z.ZodObject<{
2276
+ id: z.ZodString;
2277
+ userSubject: z.ZodString;
2278
+ username: z.ZodString;
2279
+ userEmail: z.ZodNullable<z.ZodEmail>;
2280
+ status: z.ZodEnum<{
2281
+ APPROVED: "APPROVED";
2282
+ CANCELLED: "CANCELLED";
2283
+ EXPIRED: "EXPIRED";
2284
+ REJECTED: "REJECTED";
2285
+ SUBMITTED: "SUBMITTED";
2286
+ }>;
2287
+ availability: z.ZodEnum<{
2288
+ AVAILABLE: "AVAILABLE";
2289
+ EXPIRED: "EXPIRED";
2290
+ PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE";
2291
+ PENDING_APPROVAL: "PENDING_APPROVAL";
2292
+ UNAVAILABLE: "UNAVAILABLE";
2293
+ WAITING_FOR_BINDING: "WAITING_FOR_BINDING";
2294
+ }>;
2295
+ reason: z.ZodString;
2296
+ requestedDeviceCount: z.ZodNumber;
2297
+ approvedDeviceLimit: z.ZodNullable<z.ZodNumber>;
2298
+ activeBindingCount: z.ZodNumber;
2299
+ pendingBindingCount: z.ZodNumber;
2300
+ requestedValidUntil: z.ZodString;
2301
+ validFrom: z.ZodNullable<z.ZodString>;
2302
+ validUntil: z.ZodNullable<z.ZodString>;
2303
+ version: z.ZodNumber;
2304
+ createdAt: z.ZodString;
2305
+ submittedAt: z.ZodString;
2306
+ reviewedAt: z.ZodNullable<z.ZodString>;
2307
+ safeErrorCode: z.ZodNullable<z.ZodString>;
2308
+ allowedActions: z.ZodArray<z.ZodEnum<{
2309
+ CANCEL: "CANCEL";
2310
+ CLAIM_DEVICE: "CLAIM_DEVICE";
2311
+ VIEW_BINDINGS: "VIEW_BINDINGS";
2312
+ }>>;
2313
+ }, z.core.$strict>>;
2314
+ total: z.ZodNumber;
2315
+ }, z.core.$strict>;
2316
+ export declare const CodexV6AdminAccountRequestListQuerySchema: z.ZodObject<{
2317
+ expiresBefore: z.ZodOptional<z.ZodString>;
2318
+ includeTerminal: z.ZodOptional<z.ZodBoolean>;
2319
+ }, z.core.$strict>;
2320
+ export declare const CodexV6AdminReplacementCandidateQuerySchema: z.ZodObject<{
2321
+ replaceBefore: z.ZodString;
2322
+ }, z.core.$strict>;
2323
+ export declare const CodexV6CancelAccountRequestInputSchema: z.ZodObject<{
2324
+ schemaVersion: z.ZodLiteral<6>;
2325
+ expectedRequestVersion: z.ZodNumber;
2326
+ }, z.core.$strict>;
2327
+ export declare const CodexV6AdminReviewAccountRequestInputSchema: z.ZodObject<{
2328
+ schemaVersion: z.ZodLiteral<6>;
2329
+ expectedRequestVersion: z.ZodNumber;
2330
+ decision: z.ZodEnum<{
2331
+ APPROVE: "APPROVE";
2332
+ REJECT: "REJECT";
2333
+ }>;
2334
+ reason: z.ZodString;
2335
+ approvedDeviceLimit: z.ZodNullable<z.ZodNumber>;
2336
+ validFrom: z.ZodNullable<z.ZodString>;
2337
+ validUntil: z.ZodNullable<z.ZodString>;
2338
+ }, z.core.$strict>;
2339
+ export declare const CodexV6DeviceBindingStatusSchema: z.ZodEnum<{
2340
+ ACTIVE: "ACTIVE";
2341
+ NEEDS_REAUTH: "NEEDS_REAUTH";
2342
+ PENDING_TOKEN: "PENDING_TOKEN";
2343
+ READY: "READY";
2344
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
2345
+ RETIRED: "RETIRED";
2346
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
2347
+ }>;
2348
+ export declare const CodexV6DeviceBindingSchema: z.ZodObject<{
2349
+ id: z.ZodString;
2350
+ requestId: z.ZodString;
2351
+ userSubject: z.ZodString;
2352
+ installationId: z.ZodString;
2353
+ deviceLabel: z.ZodString;
2354
+ platform: z.ZodEnum<{
2355
+ darwin: "darwin";
2356
+ linux: "linux";
2357
+ unknown: "unknown";
2358
+ win32: "win32";
2359
+ }>;
2360
+ source: z.ZodEnum<{
2361
+ ACCOUNT_REPLACEMENT: "ACCOUNT_REPLACEMENT";
2362
+ ADMIN_ADDED: "ADMIN_ADDED";
2363
+ LEGACY_AUTO_MIGRATED: "LEGACY_AUTO_MIGRATED";
2364
+ REQUEST_INITIAL: "REQUEST_INITIAL";
2365
+ }>;
2366
+ status: z.ZodEnum<{
2367
+ ACTIVE: "ACTIVE";
2368
+ NEEDS_REAUTH: "NEEDS_REAUTH";
2369
+ PENDING_TOKEN: "PENDING_TOKEN";
2370
+ READY: "READY";
2371
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
2372
+ RETIRED: "RETIRED";
2373
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
2374
+ }>;
2375
+ predecessorBindingId: z.ZodNullable<z.ZodString>;
2376
+ managedAccountId: z.ZodNullable<z.ZodString>;
2377
+ providerAccountId: z.ZodNullable<z.ZodString>;
2378
+ poolEntryId: z.ZodNullable<z.ZodString>;
2379
+ credentialLineageId: z.ZodNullable<z.ZodString>;
2380
+ generationVersion: z.ZodNullable<z.ZodNumber>;
2381
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
2382
+ accountExpiresAt: z.ZodNullable<z.ZodString>;
2383
+ replacementDueAt: z.ZodNullable<z.ZodString>;
2384
+ replacementReason: z.ZodNullable<z.ZodEnum<{
2385
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2386
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2387
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2388
+ }>>;
2389
+ accessTokenHealth: z.ZodEnum<{
2390
+ EXPIRED: "EXPIRED";
2391
+ HEALTHY: "HEALTHY";
2392
+ REJECTED: "REJECTED";
2393
+ UNKNOWN: "UNKNOWN";
2394
+ }>;
2395
+ refreshTokenHealth: z.ZodEnum<{
2396
+ HEALTHY: "HEALTHY";
2397
+ REJECTED: "REJECTED";
2398
+ UNKNOWN: "UNKNOWN";
2399
+ }>;
2400
+ legacyAssignmentId: z.ZodNullable<z.ZodString>;
2401
+ createdAt: z.ZodString;
2402
+ activatedAt: z.ZodNullable<z.ZodString>;
2403
+ retiredAt: z.ZodNullable<z.ZodString>;
2404
+ }, z.core.$strict>;
2405
+ export declare const CodexV6DeviceBindingListResponseSchema: z.ZodObject<{
2406
+ schemaVersion: z.ZodLiteral<6>;
2407
+ items: z.ZodArray<z.ZodObject<{
2408
+ id: z.ZodString;
2409
+ requestId: z.ZodString;
2410
+ userSubject: z.ZodString;
2411
+ installationId: z.ZodString;
2412
+ deviceLabel: z.ZodString;
2413
+ platform: z.ZodEnum<{
2414
+ darwin: "darwin";
2415
+ linux: "linux";
2416
+ unknown: "unknown";
2417
+ win32: "win32";
2418
+ }>;
2419
+ source: z.ZodEnum<{
2420
+ ACCOUNT_REPLACEMENT: "ACCOUNT_REPLACEMENT";
2421
+ ADMIN_ADDED: "ADMIN_ADDED";
2422
+ LEGACY_AUTO_MIGRATED: "LEGACY_AUTO_MIGRATED";
2423
+ REQUEST_INITIAL: "REQUEST_INITIAL";
2424
+ }>;
2425
+ status: z.ZodEnum<{
2426
+ ACTIVE: "ACTIVE";
2427
+ NEEDS_REAUTH: "NEEDS_REAUTH";
2428
+ PENDING_TOKEN: "PENDING_TOKEN";
2429
+ READY: "READY";
2430
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
2431
+ RETIRED: "RETIRED";
2432
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
2433
+ }>;
2434
+ predecessorBindingId: z.ZodNullable<z.ZodString>;
2435
+ managedAccountId: z.ZodNullable<z.ZodString>;
2436
+ providerAccountId: z.ZodNullable<z.ZodString>;
2437
+ poolEntryId: z.ZodNullable<z.ZodString>;
2438
+ credentialLineageId: z.ZodNullable<z.ZodString>;
2439
+ generationVersion: z.ZodNullable<z.ZodNumber>;
2440
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
2441
+ accountExpiresAt: z.ZodNullable<z.ZodString>;
2442
+ replacementDueAt: z.ZodNullable<z.ZodString>;
2443
+ replacementReason: z.ZodNullable<z.ZodEnum<{
2444
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2445
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2446
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2447
+ }>>;
2448
+ accessTokenHealth: z.ZodEnum<{
2449
+ EXPIRED: "EXPIRED";
2450
+ HEALTHY: "HEALTHY";
2451
+ REJECTED: "REJECTED";
2452
+ UNKNOWN: "UNKNOWN";
2453
+ }>;
2454
+ refreshTokenHealth: z.ZodEnum<{
2455
+ HEALTHY: "HEALTHY";
2456
+ REJECTED: "REJECTED";
2457
+ UNKNOWN: "UNKNOWN";
2458
+ }>;
2459
+ legacyAssignmentId: z.ZodNullable<z.ZodString>;
2460
+ createdAt: z.ZodString;
2461
+ activatedAt: z.ZodNullable<z.ZodString>;
2462
+ retiredAt: z.ZodNullable<z.ZodString>;
2463
+ }, z.core.$strict>>;
2464
+ total: z.ZodNumber;
2465
+ }, z.core.$strict>;
2466
+ export declare const CodexV6AdminReplacementCandidateListResponseSchema: z.ZodObject<{
2467
+ schemaVersion: z.ZodLiteral<6>;
2468
+ items: z.ZodArray<z.ZodObject<{
2469
+ request: z.ZodObject<{
2470
+ id: z.ZodString;
2471
+ userSubject: z.ZodString;
2472
+ username: z.ZodString;
2473
+ userEmail: z.ZodNullable<z.ZodEmail>;
2474
+ status: z.ZodEnum<{
2475
+ APPROVED: "APPROVED";
2476
+ CANCELLED: "CANCELLED";
2477
+ EXPIRED: "EXPIRED";
2478
+ REJECTED: "REJECTED";
2479
+ SUBMITTED: "SUBMITTED";
2480
+ }>;
2481
+ availability: z.ZodEnum<{
2482
+ AVAILABLE: "AVAILABLE";
2483
+ EXPIRED: "EXPIRED";
2484
+ PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE";
2485
+ PENDING_APPROVAL: "PENDING_APPROVAL";
2486
+ UNAVAILABLE: "UNAVAILABLE";
2487
+ WAITING_FOR_BINDING: "WAITING_FOR_BINDING";
2488
+ }>;
2489
+ reason: z.ZodString;
2490
+ requestedDeviceCount: z.ZodNumber;
2491
+ approvedDeviceLimit: z.ZodNullable<z.ZodNumber>;
2492
+ activeBindingCount: z.ZodNumber;
2493
+ pendingBindingCount: z.ZodNumber;
2494
+ requestedValidUntil: z.ZodString;
2495
+ validFrom: z.ZodNullable<z.ZodString>;
2496
+ validUntil: z.ZodNullable<z.ZodString>;
2497
+ version: z.ZodNumber;
2498
+ createdAt: z.ZodString;
2499
+ submittedAt: z.ZodString;
2500
+ reviewedAt: z.ZodNullable<z.ZodString>;
2501
+ safeErrorCode: z.ZodNullable<z.ZodString>;
2502
+ allowedActions: z.ZodArray<z.ZodEnum<{
2503
+ CANCEL: "CANCEL";
2504
+ CLAIM_DEVICE: "CLAIM_DEVICE";
2505
+ VIEW_BINDINGS: "VIEW_BINDINGS";
2506
+ }>>;
2507
+ }, z.core.$strict>;
2508
+ binding: z.ZodObject<{
2509
+ id: z.ZodString;
2510
+ requestId: z.ZodString;
2511
+ userSubject: z.ZodString;
2512
+ installationId: z.ZodString;
2513
+ deviceLabel: z.ZodString;
2514
+ platform: z.ZodEnum<{
2515
+ darwin: "darwin";
2516
+ linux: "linux";
2517
+ unknown: "unknown";
2518
+ win32: "win32";
2519
+ }>;
2520
+ source: z.ZodEnum<{
2521
+ ACCOUNT_REPLACEMENT: "ACCOUNT_REPLACEMENT";
2522
+ ADMIN_ADDED: "ADMIN_ADDED";
2523
+ LEGACY_AUTO_MIGRATED: "LEGACY_AUTO_MIGRATED";
2524
+ REQUEST_INITIAL: "REQUEST_INITIAL";
2525
+ }>;
2526
+ status: z.ZodEnum<{
2527
+ ACTIVE: "ACTIVE";
2528
+ NEEDS_REAUTH: "NEEDS_REAUTH";
2529
+ PENDING_TOKEN: "PENDING_TOKEN";
2530
+ READY: "READY";
2531
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
2532
+ RETIRED: "RETIRED";
2533
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
2534
+ }>;
2535
+ predecessorBindingId: z.ZodNullable<z.ZodString>;
2536
+ managedAccountId: z.ZodNullable<z.ZodString>;
2537
+ providerAccountId: z.ZodNullable<z.ZodString>;
2538
+ poolEntryId: z.ZodNullable<z.ZodString>;
2539
+ credentialLineageId: z.ZodNullable<z.ZodString>;
2540
+ generationVersion: z.ZodNullable<z.ZodNumber>;
2541
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
2542
+ accountExpiresAt: z.ZodNullable<z.ZodString>;
2543
+ replacementDueAt: z.ZodNullable<z.ZodString>;
2544
+ replacementReason: z.ZodNullable<z.ZodEnum<{
2545
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2546
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2547
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2548
+ }>>;
2549
+ accessTokenHealth: z.ZodEnum<{
2550
+ EXPIRED: "EXPIRED";
2551
+ HEALTHY: "HEALTHY";
2552
+ REJECTED: "REJECTED";
2553
+ UNKNOWN: "UNKNOWN";
2554
+ }>;
2555
+ refreshTokenHealth: z.ZodEnum<{
2556
+ HEALTHY: "HEALTHY";
2557
+ REJECTED: "REJECTED";
2558
+ UNKNOWN: "UNKNOWN";
2559
+ }>;
2560
+ legacyAssignmentId: z.ZodNullable<z.ZodString>;
2561
+ createdAt: z.ZodString;
2562
+ activatedAt: z.ZodNullable<z.ZodString>;
2563
+ retiredAt: z.ZodNullable<z.ZodString>;
2564
+ }, z.core.$strict>;
2565
+ recommendedReason: z.ZodEnum<{
2566
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2567
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2568
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2569
+ }>;
2570
+ replaceBefore: z.ZodString;
2571
+ }, z.core.$strict>>;
2572
+ total: z.ZodNumber;
2573
+ }, z.core.$strict>;
2574
+ export declare const CodexV6ReconcileDeviceAccessInputSchema: z.ZodObject<{
2575
+ schemaVersion: z.ZodLiteral<6>;
2576
+ clientRequestId: z.ZodString;
2577
+ device: z.ZodObject<{
2578
+ installationId: z.ZodString;
2579
+ label: z.ZodString;
2580
+ platform: z.ZodEnum<{
2581
+ darwin: "darwin";
2582
+ linux: "linux";
2583
+ unknown: "unknown";
2584
+ win32: "win32";
2585
+ }>;
2586
+ }, z.core.$strict>;
2587
+ legacy: z.ZodNullable<z.ZodObject<{
2588
+ assignmentId: z.ZodString;
2589
+ managedAccountId: z.ZodString;
2590
+ providerAccountId: z.ZodString;
2591
+ lineageId: z.ZodString;
2592
+ generationVersion: z.ZodNumber;
2593
+ }, z.core.$strict>>;
2594
+ }, z.core.$strict>;
2595
+ export declare const CodexV6ReconcileDeviceAccessResponseSchema: z.ZodObject<{
2596
+ schemaVersion: z.ZodLiteral<6>;
2597
+ accessStatus: z.ZodEnum<{
2598
+ AVAILABLE: "AVAILABLE";
2599
+ DEVICE_BINDING_REQUIRED: "DEVICE_BINDING_REQUIRED";
2600
+ REQUEST_EXPIRED: "REQUEST_EXPIRED";
2601
+ REQUEST_PENDING: "REQUEST_PENDING";
2602
+ REQUEST_REQUIRED: "REQUEST_REQUIRED";
2603
+ TOKEN_PENDING: "TOKEN_PENDING";
2604
+ UNAVAILABLE: "UNAVAILABLE";
2605
+ }>;
2606
+ request: z.ZodNullable<z.ZodObject<{
2607
+ id: z.ZodString;
2608
+ userSubject: z.ZodString;
2609
+ username: z.ZodString;
2610
+ userEmail: z.ZodNullable<z.ZodEmail>;
2611
+ status: z.ZodEnum<{
2612
+ APPROVED: "APPROVED";
2613
+ CANCELLED: "CANCELLED";
2614
+ EXPIRED: "EXPIRED";
2615
+ REJECTED: "REJECTED";
2616
+ SUBMITTED: "SUBMITTED";
2617
+ }>;
2618
+ availability: z.ZodEnum<{
2619
+ AVAILABLE: "AVAILABLE";
2620
+ EXPIRED: "EXPIRED";
2621
+ PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE";
2622
+ PENDING_APPROVAL: "PENDING_APPROVAL";
2623
+ UNAVAILABLE: "UNAVAILABLE";
2624
+ WAITING_FOR_BINDING: "WAITING_FOR_BINDING";
2625
+ }>;
2626
+ reason: z.ZodString;
2627
+ requestedDeviceCount: z.ZodNumber;
2628
+ approvedDeviceLimit: z.ZodNullable<z.ZodNumber>;
2629
+ activeBindingCount: z.ZodNumber;
2630
+ pendingBindingCount: z.ZodNumber;
2631
+ requestedValidUntil: z.ZodString;
2632
+ validFrom: z.ZodNullable<z.ZodString>;
2633
+ validUntil: z.ZodNullable<z.ZodString>;
2634
+ version: z.ZodNumber;
2635
+ createdAt: z.ZodString;
2636
+ submittedAt: z.ZodString;
2637
+ reviewedAt: z.ZodNullable<z.ZodString>;
2638
+ safeErrorCode: z.ZodNullable<z.ZodString>;
2639
+ allowedActions: z.ZodArray<z.ZodEnum<{
2640
+ CANCEL: "CANCEL";
2641
+ CLAIM_DEVICE: "CLAIM_DEVICE";
2642
+ VIEW_BINDINGS: "VIEW_BINDINGS";
2643
+ }>>;
2644
+ }, z.core.$strict>>;
2645
+ binding: z.ZodNullable<z.ZodObject<{
2646
+ id: z.ZodString;
2647
+ requestId: z.ZodString;
2648
+ userSubject: z.ZodString;
2649
+ installationId: z.ZodString;
2650
+ deviceLabel: z.ZodString;
2651
+ platform: z.ZodEnum<{
2652
+ darwin: "darwin";
2653
+ linux: "linux";
2654
+ unknown: "unknown";
2655
+ win32: "win32";
2656
+ }>;
2657
+ source: z.ZodEnum<{
2658
+ ACCOUNT_REPLACEMENT: "ACCOUNT_REPLACEMENT";
2659
+ ADMIN_ADDED: "ADMIN_ADDED";
2660
+ LEGACY_AUTO_MIGRATED: "LEGACY_AUTO_MIGRATED";
2661
+ REQUEST_INITIAL: "REQUEST_INITIAL";
2662
+ }>;
2663
+ status: z.ZodEnum<{
2664
+ ACTIVE: "ACTIVE";
2665
+ NEEDS_REAUTH: "NEEDS_REAUTH";
2666
+ PENDING_TOKEN: "PENDING_TOKEN";
2667
+ READY: "READY";
2668
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
2669
+ RETIRED: "RETIRED";
2670
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
2671
+ }>;
2672
+ predecessorBindingId: z.ZodNullable<z.ZodString>;
2673
+ managedAccountId: z.ZodNullable<z.ZodString>;
2674
+ providerAccountId: z.ZodNullable<z.ZodString>;
2675
+ poolEntryId: z.ZodNullable<z.ZodString>;
2676
+ credentialLineageId: z.ZodNullable<z.ZodString>;
2677
+ generationVersion: z.ZodNullable<z.ZodNumber>;
2678
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
2679
+ accountExpiresAt: z.ZodNullable<z.ZodString>;
2680
+ replacementDueAt: z.ZodNullable<z.ZodString>;
2681
+ replacementReason: z.ZodNullable<z.ZodEnum<{
2682
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2683
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2684
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2685
+ }>>;
2686
+ accessTokenHealth: z.ZodEnum<{
2687
+ EXPIRED: "EXPIRED";
2688
+ HEALTHY: "HEALTHY";
2689
+ REJECTED: "REJECTED";
2690
+ UNKNOWN: "UNKNOWN";
2691
+ }>;
2692
+ refreshTokenHealth: z.ZodEnum<{
2693
+ HEALTHY: "HEALTHY";
2694
+ REJECTED: "REJECTED";
2695
+ UNKNOWN: "UNKNOWN";
2696
+ }>;
2697
+ legacyAssignmentId: z.ZodNullable<z.ZodString>;
2698
+ createdAt: z.ZodString;
2699
+ activatedAt: z.ZodNullable<z.ZodString>;
2700
+ retiredAt: z.ZodNullable<z.ZodString>;
2701
+ }, z.core.$strict>>;
2702
+ replacementBinding: z.ZodNullable<z.ZodObject<{
2703
+ id: z.ZodString;
2704
+ requestId: z.ZodString;
2705
+ userSubject: z.ZodString;
2706
+ installationId: z.ZodString;
2707
+ deviceLabel: z.ZodString;
2708
+ platform: z.ZodEnum<{
2709
+ darwin: "darwin";
2710
+ linux: "linux";
2711
+ unknown: "unknown";
2712
+ win32: "win32";
2713
+ }>;
2714
+ source: z.ZodEnum<{
2715
+ ACCOUNT_REPLACEMENT: "ACCOUNT_REPLACEMENT";
2716
+ ADMIN_ADDED: "ADMIN_ADDED";
2717
+ LEGACY_AUTO_MIGRATED: "LEGACY_AUTO_MIGRATED";
2718
+ REQUEST_INITIAL: "REQUEST_INITIAL";
2719
+ }>;
2720
+ status: z.ZodEnum<{
2721
+ ACTIVE: "ACTIVE";
2722
+ NEEDS_REAUTH: "NEEDS_REAUTH";
2723
+ PENDING_TOKEN: "PENDING_TOKEN";
2724
+ READY: "READY";
2725
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
2726
+ RETIRED: "RETIRED";
2727
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
2728
+ }>;
2729
+ predecessorBindingId: z.ZodNullable<z.ZodString>;
2730
+ managedAccountId: z.ZodNullable<z.ZodString>;
2731
+ providerAccountId: z.ZodNullable<z.ZodString>;
2732
+ poolEntryId: z.ZodNullable<z.ZodString>;
2733
+ credentialLineageId: z.ZodNullable<z.ZodString>;
2734
+ generationVersion: z.ZodNullable<z.ZodNumber>;
2735
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
2736
+ accountExpiresAt: z.ZodNullable<z.ZodString>;
2737
+ replacementDueAt: z.ZodNullable<z.ZodString>;
2738
+ replacementReason: z.ZodNullable<z.ZodEnum<{
2739
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2740
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2741
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2742
+ }>>;
2743
+ accessTokenHealth: z.ZodEnum<{
2744
+ EXPIRED: "EXPIRED";
2745
+ HEALTHY: "HEALTHY";
2746
+ REJECTED: "REJECTED";
2747
+ UNKNOWN: "UNKNOWN";
2748
+ }>;
2749
+ refreshTokenHealth: z.ZodEnum<{
2750
+ HEALTHY: "HEALTHY";
2751
+ REJECTED: "REJECTED";
2752
+ UNKNOWN: "UNKNOWN";
2753
+ }>;
2754
+ legacyAssignmentId: z.ZodNullable<z.ZodString>;
2755
+ createdAt: z.ZodString;
2756
+ activatedAt: z.ZodNullable<z.ZodString>;
2757
+ retiredAt: z.ZodNullable<z.ZodString>;
2758
+ }, z.core.$strict>>;
2759
+ migration: z.ZodEnum<{
2760
+ ADDITIONAL_DEVICE_DETECTED: "ADDITIONAL_DEVICE_DETECTED";
2761
+ ALREADY_MIGRATED: "ALREADY_MIGRATED";
2762
+ AUTO_MIGRATED: "AUTO_MIGRATED";
2763
+ NONE: "NONE";
2764
+ }>;
2765
+ guidanceCode: z.ZodNullable<z.ZodEnum<{
2766
+ account_request_expired: "account_request_expired";
2767
+ account_request_pending: "account_request_pending";
2768
+ account_request_required: "account_request_required";
2769
+ account_unavailable: "account_unavailable";
2770
+ device_binding_admin_required: "device_binding_admin_required";
2771
+ device_token_pending: "device_token_pending";
2772
+ }>>;
2773
+ replayed: z.ZodBoolean;
2774
+ }, z.core.$strict>;
2775
+ export declare const CodexV6AdminCreateDeviceBindingInputSchema: z.ZodObject<{
2776
+ schemaVersion: z.ZodLiteral<6>;
2777
+ expectedRequestVersion: z.ZodNumber;
2778
+ device: z.ZodObject<{
2779
+ installationId: z.ZodString;
2780
+ label: z.ZodString;
2781
+ platform: z.ZodEnum<{
2782
+ darwin: "darwin";
2783
+ linux: "linux";
2784
+ unknown: "unknown";
2785
+ win32: "win32";
2786
+ }>;
2787
+ }, z.core.$strict>;
2788
+ poolEntryId: z.ZodNullable<z.ZodString>;
2789
+ }, z.core.$strict>;
2790
+ export declare const CodexV6AdminCreateDeviceBindingResponseSchema: z.ZodObject<{
2791
+ schemaVersion: z.ZodLiteral<6>;
2792
+ request: z.ZodObject<{
2793
+ id: z.ZodString;
2794
+ userSubject: z.ZodString;
2795
+ username: z.ZodString;
2796
+ userEmail: z.ZodNullable<z.ZodEmail>;
2797
+ status: z.ZodEnum<{
2798
+ APPROVED: "APPROVED";
2799
+ CANCELLED: "CANCELLED";
2800
+ EXPIRED: "EXPIRED";
2801
+ REJECTED: "REJECTED";
2802
+ SUBMITTED: "SUBMITTED";
2803
+ }>;
2804
+ availability: z.ZodEnum<{
2805
+ AVAILABLE: "AVAILABLE";
2806
+ EXPIRED: "EXPIRED";
2807
+ PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE";
2808
+ PENDING_APPROVAL: "PENDING_APPROVAL";
2809
+ UNAVAILABLE: "UNAVAILABLE";
2810
+ WAITING_FOR_BINDING: "WAITING_FOR_BINDING";
2811
+ }>;
2812
+ reason: z.ZodString;
2813
+ requestedDeviceCount: z.ZodNumber;
2814
+ approvedDeviceLimit: z.ZodNullable<z.ZodNumber>;
2815
+ activeBindingCount: z.ZodNumber;
2816
+ pendingBindingCount: z.ZodNumber;
2817
+ requestedValidUntil: z.ZodString;
2818
+ validFrom: z.ZodNullable<z.ZodString>;
2819
+ validUntil: z.ZodNullable<z.ZodString>;
2820
+ version: z.ZodNumber;
2821
+ createdAt: z.ZodString;
2822
+ submittedAt: z.ZodString;
2823
+ reviewedAt: z.ZodNullable<z.ZodString>;
2824
+ safeErrorCode: z.ZodNullable<z.ZodString>;
2825
+ allowedActions: z.ZodArray<z.ZodEnum<{
2826
+ CANCEL: "CANCEL";
2827
+ CLAIM_DEVICE: "CLAIM_DEVICE";
2828
+ VIEW_BINDINGS: "VIEW_BINDINGS";
2829
+ }>>;
2830
+ }, z.core.$strict>;
2831
+ binding: z.ZodObject<{
2832
+ id: z.ZodString;
2833
+ requestId: z.ZodString;
2834
+ userSubject: z.ZodString;
2835
+ installationId: z.ZodString;
2836
+ deviceLabel: z.ZodString;
2837
+ platform: z.ZodEnum<{
2838
+ darwin: "darwin";
2839
+ linux: "linux";
2840
+ unknown: "unknown";
2841
+ win32: "win32";
2842
+ }>;
2843
+ source: z.ZodEnum<{
2844
+ ACCOUNT_REPLACEMENT: "ACCOUNT_REPLACEMENT";
2845
+ ADMIN_ADDED: "ADMIN_ADDED";
2846
+ LEGACY_AUTO_MIGRATED: "LEGACY_AUTO_MIGRATED";
2847
+ REQUEST_INITIAL: "REQUEST_INITIAL";
2848
+ }>;
2849
+ status: z.ZodEnum<{
2850
+ ACTIVE: "ACTIVE";
2851
+ NEEDS_REAUTH: "NEEDS_REAUTH";
2852
+ PENDING_TOKEN: "PENDING_TOKEN";
2853
+ READY: "READY";
2854
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
2855
+ RETIRED: "RETIRED";
2856
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
2857
+ }>;
2858
+ predecessorBindingId: z.ZodNullable<z.ZodString>;
2859
+ managedAccountId: z.ZodNullable<z.ZodString>;
2860
+ providerAccountId: z.ZodNullable<z.ZodString>;
2861
+ poolEntryId: z.ZodNullable<z.ZodString>;
2862
+ credentialLineageId: z.ZodNullable<z.ZodString>;
2863
+ generationVersion: z.ZodNullable<z.ZodNumber>;
2864
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
2865
+ accountExpiresAt: z.ZodNullable<z.ZodString>;
2866
+ replacementDueAt: z.ZodNullable<z.ZodString>;
2867
+ replacementReason: z.ZodNullable<z.ZodEnum<{
2868
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2869
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2870
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2871
+ }>>;
2872
+ accessTokenHealth: z.ZodEnum<{
2873
+ EXPIRED: "EXPIRED";
2874
+ HEALTHY: "HEALTHY";
2875
+ REJECTED: "REJECTED";
2876
+ UNKNOWN: "UNKNOWN";
2877
+ }>;
2878
+ refreshTokenHealth: z.ZodEnum<{
2879
+ HEALTHY: "HEALTHY";
2880
+ REJECTED: "REJECTED";
2881
+ UNKNOWN: "UNKNOWN";
2882
+ }>;
2883
+ legacyAssignmentId: z.ZodNullable<z.ZodString>;
2884
+ createdAt: z.ZodString;
2885
+ activatedAt: z.ZodNullable<z.ZodString>;
2886
+ retiredAt: z.ZodNullable<z.ZodString>;
2887
+ }, z.core.$strict>;
2888
+ replayed: z.ZodBoolean;
2889
+ }, z.core.$strict>;
2890
+ export declare const CodexV6AdminReplaceDeviceTokenInputSchema: z.ZodObject<{
2891
+ schemaVersion: z.ZodLiteral<6>;
2892
+ expectedRequestVersion: z.ZodNumber;
2893
+ reason: z.ZodEnum<{
2894
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2895
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2896
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2897
+ }>;
2898
+ replaceBefore: z.ZodString;
2899
+ poolEntryId: z.ZodNullable<z.ZodString>;
2900
+ }, z.core.$strict>;
2901
+ export declare const CodexV6AdminReplaceDeviceTokenResponseSchema: z.ZodObject<{
2902
+ schemaVersion: z.ZodLiteral<6>;
2903
+ request: z.ZodObject<{
2904
+ id: z.ZodString;
2905
+ userSubject: z.ZodString;
2906
+ username: z.ZodString;
2907
+ userEmail: z.ZodNullable<z.ZodEmail>;
2908
+ status: z.ZodEnum<{
2909
+ APPROVED: "APPROVED";
2910
+ CANCELLED: "CANCELLED";
2911
+ EXPIRED: "EXPIRED";
2912
+ REJECTED: "REJECTED";
2913
+ SUBMITTED: "SUBMITTED";
2914
+ }>;
2915
+ availability: z.ZodEnum<{
2916
+ AVAILABLE: "AVAILABLE";
2917
+ EXPIRED: "EXPIRED";
2918
+ PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE";
2919
+ PENDING_APPROVAL: "PENDING_APPROVAL";
2920
+ UNAVAILABLE: "UNAVAILABLE";
2921
+ WAITING_FOR_BINDING: "WAITING_FOR_BINDING";
2922
+ }>;
2923
+ reason: z.ZodString;
2924
+ requestedDeviceCount: z.ZodNumber;
2925
+ approvedDeviceLimit: z.ZodNullable<z.ZodNumber>;
2926
+ activeBindingCount: z.ZodNumber;
2927
+ pendingBindingCount: z.ZodNumber;
2928
+ requestedValidUntil: z.ZodString;
2929
+ validFrom: z.ZodNullable<z.ZodString>;
2930
+ validUntil: z.ZodNullable<z.ZodString>;
2931
+ version: z.ZodNumber;
2932
+ createdAt: z.ZodString;
2933
+ submittedAt: z.ZodString;
2934
+ reviewedAt: z.ZodNullable<z.ZodString>;
2935
+ safeErrorCode: z.ZodNullable<z.ZodString>;
2936
+ allowedActions: z.ZodArray<z.ZodEnum<{
2937
+ CANCEL: "CANCEL";
2938
+ CLAIM_DEVICE: "CLAIM_DEVICE";
2939
+ VIEW_BINDINGS: "VIEW_BINDINGS";
2940
+ }>>;
2941
+ }, z.core.$strict>;
2942
+ currentBinding: z.ZodObject<{
2943
+ id: z.ZodString;
2944
+ requestId: z.ZodString;
2945
+ userSubject: z.ZodString;
2946
+ installationId: z.ZodString;
2947
+ deviceLabel: z.ZodString;
2948
+ platform: z.ZodEnum<{
2949
+ darwin: "darwin";
2950
+ linux: "linux";
2951
+ unknown: "unknown";
2952
+ win32: "win32";
2953
+ }>;
2954
+ source: z.ZodEnum<{
2955
+ ACCOUNT_REPLACEMENT: "ACCOUNT_REPLACEMENT";
2956
+ ADMIN_ADDED: "ADMIN_ADDED";
2957
+ LEGACY_AUTO_MIGRATED: "LEGACY_AUTO_MIGRATED";
2958
+ REQUEST_INITIAL: "REQUEST_INITIAL";
2959
+ }>;
2960
+ status: z.ZodEnum<{
2961
+ ACTIVE: "ACTIVE";
2962
+ NEEDS_REAUTH: "NEEDS_REAUTH";
2963
+ PENDING_TOKEN: "PENDING_TOKEN";
2964
+ READY: "READY";
2965
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
2966
+ RETIRED: "RETIRED";
2967
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
2968
+ }>;
2969
+ predecessorBindingId: z.ZodNullable<z.ZodString>;
2970
+ managedAccountId: z.ZodNullable<z.ZodString>;
2971
+ providerAccountId: z.ZodNullable<z.ZodString>;
2972
+ poolEntryId: z.ZodNullable<z.ZodString>;
2973
+ credentialLineageId: z.ZodNullable<z.ZodString>;
2974
+ generationVersion: z.ZodNullable<z.ZodNumber>;
2975
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
2976
+ accountExpiresAt: z.ZodNullable<z.ZodString>;
2977
+ replacementDueAt: z.ZodNullable<z.ZodString>;
2978
+ replacementReason: z.ZodNullable<z.ZodEnum<{
2979
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
2980
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
2981
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
2982
+ }>>;
2983
+ accessTokenHealth: z.ZodEnum<{
2984
+ EXPIRED: "EXPIRED";
2985
+ HEALTHY: "HEALTHY";
2986
+ REJECTED: "REJECTED";
2987
+ UNKNOWN: "UNKNOWN";
2988
+ }>;
2989
+ refreshTokenHealth: z.ZodEnum<{
2990
+ HEALTHY: "HEALTHY";
2991
+ REJECTED: "REJECTED";
2992
+ UNKNOWN: "UNKNOWN";
2993
+ }>;
2994
+ legacyAssignmentId: z.ZodNullable<z.ZodString>;
2995
+ createdAt: z.ZodString;
2996
+ activatedAt: z.ZodNullable<z.ZodString>;
2997
+ retiredAt: z.ZodNullable<z.ZodString>;
2998
+ }, z.core.$strict>;
2999
+ replacementBinding: z.ZodObject<{
3000
+ id: z.ZodString;
3001
+ requestId: z.ZodString;
3002
+ userSubject: z.ZodString;
3003
+ installationId: z.ZodString;
3004
+ deviceLabel: z.ZodString;
3005
+ platform: z.ZodEnum<{
3006
+ darwin: "darwin";
3007
+ linux: "linux";
3008
+ unknown: "unknown";
3009
+ win32: "win32";
3010
+ }>;
3011
+ source: z.ZodEnum<{
3012
+ ACCOUNT_REPLACEMENT: "ACCOUNT_REPLACEMENT";
3013
+ ADMIN_ADDED: "ADMIN_ADDED";
3014
+ LEGACY_AUTO_MIGRATED: "LEGACY_AUTO_MIGRATED";
3015
+ REQUEST_INITIAL: "REQUEST_INITIAL";
3016
+ }>;
3017
+ status: z.ZodEnum<{
3018
+ ACTIVE: "ACTIVE";
3019
+ NEEDS_REAUTH: "NEEDS_REAUTH";
3020
+ PENDING_TOKEN: "PENDING_TOKEN";
3021
+ READY: "READY";
3022
+ REPLACEMENT_PENDING: "REPLACEMENT_PENDING";
3023
+ RETIRED: "RETIRED";
3024
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
3025
+ }>;
3026
+ predecessorBindingId: z.ZodNullable<z.ZodString>;
3027
+ managedAccountId: z.ZodNullable<z.ZodString>;
3028
+ providerAccountId: z.ZodNullable<z.ZodString>;
3029
+ poolEntryId: z.ZodNullable<z.ZodString>;
3030
+ credentialLineageId: z.ZodNullable<z.ZodString>;
3031
+ generationVersion: z.ZodNullable<z.ZodNumber>;
3032
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
3033
+ accountExpiresAt: z.ZodNullable<z.ZodString>;
3034
+ replacementDueAt: z.ZodNullable<z.ZodString>;
3035
+ replacementReason: z.ZodNullable<z.ZodEnum<{
3036
+ ADMIN_REQUESTED: "ADMIN_REQUESTED";
3037
+ CREDENTIAL_UNHEALTHY: "CREDENTIAL_UNHEALTHY";
3038
+ SUBSCRIPTION_EXPIRING: "SUBSCRIPTION_EXPIRING";
3039
+ }>>;
3040
+ accessTokenHealth: z.ZodEnum<{
3041
+ EXPIRED: "EXPIRED";
3042
+ HEALTHY: "HEALTHY";
3043
+ REJECTED: "REJECTED";
3044
+ UNKNOWN: "UNKNOWN";
3045
+ }>;
3046
+ refreshTokenHealth: z.ZodEnum<{
3047
+ HEALTHY: "HEALTHY";
3048
+ REJECTED: "REJECTED";
3049
+ UNKNOWN: "UNKNOWN";
3050
+ }>;
3051
+ legacyAssignmentId: z.ZodNullable<z.ZodString>;
3052
+ createdAt: z.ZodString;
3053
+ activatedAt: z.ZodNullable<z.ZodString>;
3054
+ retiredAt: z.ZodNullable<z.ZodString>;
3055
+ }, z.core.$strict>;
3056
+ replayed: z.ZodBoolean;
3057
+ }, z.core.$strict>;
3058
+ export declare const CodexV6FullCredentialDeliveryInputSchema: z.ZodObject<{
3059
+ schemaVersion: z.ZodLiteral<6>;
3060
+ clientRequestId: z.ZodString;
3061
+ installationId: z.ZodString;
3062
+ clientKey: z.ZodObject<{
3063
+ version: z.ZodLiteral<1>;
3064
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
3065
+ publicKey: z.ZodString;
3066
+ }, z.core.$strict>;
3067
+ }, z.core.$strict>;
3068
+ export declare const CodexV6FullCredentialDeliveryResponseSchema: z.ZodObject<{
3069
+ schemaVersion: z.ZodLiteral<6>;
3070
+ delivery: z.ZodObject<{
3071
+ id: z.ZodString;
3072
+ clientRequestId: z.ZodString;
3073
+ requestId: z.ZodString;
3074
+ bindingId: z.ZodString;
3075
+ installationId: z.ZodString;
3076
+ managedAccountId: z.ZodString;
3077
+ providerAccountId: z.ZodString;
3078
+ credentialLineageId: z.ZodString;
3079
+ generationVersion: z.ZodNumber;
3080
+ issuedAt: z.ZodString;
3081
+ credentialExpiresAt: z.ZodString;
3082
+ ackExpiresAt: z.ZodString;
3083
+ ackedAt: z.ZodNullable<z.ZodString>;
3084
+ status: z.ZodLiteral<"AWAITING_ACK">;
3085
+ envelope: z.ZodObject<{
3086
+ version: z.ZodLiteral<1>;
3087
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
3088
+ ephemeralPublicKey: z.ZodString;
3089
+ salt: z.ZodString;
3090
+ nonce: z.ZodString;
3091
+ ciphertext: z.ZodString;
3092
+ authenticationTag: z.ZodString;
3093
+ }, z.core.$strict>;
3094
+ }, z.core.$strict>;
3095
+ replayed: z.ZodBoolean;
3096
+ }, z.core.$strict>;
3097
+ export declare const CodexV6FullCredentialBundleSchema: z.ZodObject<{
3098
+ schemaVersion: z.ZodLiteral<6>;
3099
+ deliveryId: z.ZodString;
3100
+ requestId: z.ZodString;
3101
+ bindingId: z.ZodString;
3102
+ installationId: z.ZodString;
3103
+ managedAccountId: z.ZodString;
3104
+ providerAccountId: z.ZodString;
3105
+ credentialLineageId: z.ZodString;
3106
+ generationVersion: z.ZodNumber;
3107
+ refreshToken: z.ZodString;
3108
+ accessToken: z.ZodString;
3109
+ idToken: z.ZodString;
3110
+ expiresAt: z.ZodString;
3111
+ }, z.core.$strict>;
3112
+ export declare const CodexV6AcknowledgeFullCredentialDeliveryInputSchema: z.ZodObject<{
3113
+ schemaVersion: z.ZodLiteral<6>;
3114
+ installationId: z.ZodString;
3115
+ credentialLineageId: z.ZodString;
3116
+ generationVersion: z.ZodNumber;
3117
+ installed: z.ZodLiteral<true>;
3118
+ }, z.core.$strict>;
3119
+ export declare const CodexV6AcknowledgeFullCredentialDeliveryResponseSchema: z.ZodObject<{
3120
+ schemaVersion: z.ZodLiteral<6>;
3121
+ delivery: z.ZodObject<{
3122
+ id: z.ZodString;
3123
+ clientRequestId: z.ZodString;
3124
+ requestId: z.ZodString;
3125
+ bindingId: z.ZodString;
3126
+ installationId: z.ZodString;
3127
+ managedAccountId: z.ZodString;
3128
+ providerAccountId: z.ZodString;
3129
+ credentialLineageId: z.ZodString;
3130
+ generationVersion: z.ZodNumber;
3131
+ issuedAt: z.ZodString;
3132
+ credentialExpiresAt: z.ZodString;
3133
+ ackExpiresAt: z.ZodString;
3134
+ status: z.ZodLiteral<"ACKED">;
3135
+ ackedAt: z.ZodString;
3136
+ }, z.core.$strict>;
3137
+ replayed: z.ZodBoolean;
3138
+ }, z.core.$strict>;
3139
+ export declare const CodexV6GenerationReportInputSchema: z.ZodObject<{
3140
+ schemaVersion: z.ZodLiteral<6>;
3141
+ clientRequestId: z.ZodString;
3142
+ bindingId: z.ZodString;
3143
+ installationId: z.ZodString;
3144
+ expectedGenerationVersion: z.ZodNumber;
3145
+ rotationMode: z.ZodEnum<{
3146
+ RETAINED: "RETAINED";
3147
+ ROTATED: "ROTATED";
3148
+ }>;
3149
+ envelope: z.ZodObject<{
3150
+ version: z.ZodLiteral<1>;
3151
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
3152
+ keyId: z.ZodString;
3153
+ ephemeralPublicKey: z.ZodString;
3154
+ salt: z.ZodString;
3155
+ nonce: z.ZodString;
3156
+ ciphertext: z.ZodString;
3157
+ authenticationTag: z.ZodString;
3158
+ }, z.core.$strict>;
3159
+ accessTokenHealth: z.ZodEnum<{
3160
+ EXPIRED: "EXPIRED";
3161
+ HEALTHY: "HEALTHY";
3162
+ REJECTED: "REJECTED";
3163
+ UNKNOWN: "UNKNOWN";
3164
+ }>;
3165
+ refreshTokenHealth: z.ZodEnum<{
3166
+ HEALTHY: "HEALTHY";
3167
+ REJECTED: "REJECTED";
3168
+ UNKNOWN: "UNKNOWN";
3169
+ }>;
3170
+ observedAt: z.ZodString;
3171
+ }, z.core.$strict>;
3172
+ export declare const CodexV6GenerationReportResponseSchema: z.ZodObject<{
3173
+ schemaVersion: z.ZodLiteral<6>;
3174
+ report: z.ZodObject<{
3175
+ id: z.ZodString;
3176
+ clientRequestId: z.ZodString;
3177
+ requestId: z.ZodString;
3178
+ bindingId: z.ZodString;
3179
+ installationId: z.ZodString;
3180
+ credentialLineageId: z.ZodString;
3181
+ previousGenerationVersion: z.ZodNumber;
3182
+ generationVersion: z.ZodNumber;
3183
+ rotationMode: z.ZodEnum<{
3184
+ RETAINED: "RETAINED";
3185
+ ROTATED: "ROTATED";
3186
+ }>;
3187
+ accessTokenHealth: z.ZodEnum<{
3188
+ EXPIRED: "EXPIRED";
3189
+ HEALTHY: "HEALTHY";
3190
+ REJECTED: "REJECTED";
3191
+ UNKNOWN: "UNKNOWN";
3192
+ }>;
3193
+ refreshTokenHealth: z.ZodEnum<{
3194
+ HEALTHY: "HEALTHY";
3195
+ REJECTED: "REJECTED";
3196
+ UNKNOWN: "UNKNOWN";
3197
+ }>;
3198
+ credentialExpiresAt: z.ZodString;
3199
+ observedAt: z.ZodString;
3200
+ status: z.ZodLiteral<"APPLIED">;
3201
+ }, z.core.$strict>;
3202
+ replayed: z.ZodBoolean;
3203
+ }, z.core.$strict>;
2018
3204
  export declare const CodexV4AccessObservationStateSchema: z.ZodEnum<{
2019
3205
  EXPIRED: "EXPIRED";
2020
3206
  EXPIRING: "EXPIRING";
@@ -2198,6 +3384,8 @@ export type CodexAdminAccount = z.infer<typeof CodexAdminAccountSchema>;
2198
3384
  export type CodexAdminAccountListResponse = z.infer<typeof CodexAdminAccountListResponseSchema>;
2199
3385
  export type CodexCredentialVersionListResponse = z.infer<typeof CodexCredentialVersionListResponseSchema>;
2200
3386
  export type CodexManualRefreshResponse = z.infer<typeof CodexManualRefreshResponseSchema>;
3387
+ export type CodexAdminAccountRenewalInput = z.infer<typeof CodexAdminAccountRenewalInputSchema>;
3388
+ export type CodexAdminAccountRenewalResponse = z.infer<typeof CodexAdminAccountRenewalResponseSchema>;
2201
3389
  export type CodexAdminAssignment = z.infer<typeof CodexAdminAssignmentSchema>;
2202
3390
  export type CodexAdminAssignmentListResponse = z.infer<typeof CodexAdminAssignmentListResponseSchema>;
2203
3391
  export type CodexAdminAssignmentMutationResponse = z.infer<typeof CodexAdminAssignmentMutationResponseSchema>;
@@ -2255,6 +3443,31 @@ export type CodexV5ReleaseDeviceSessionInput = z.infer<typeof CodexV5ReleaseDevi
2255
3443
  export type CodexV5ReleaseDeviceSessionResponse = z.infer<typeof CodexV5ReleaseDeviceSessionResponseSchema>;
2256
3444
  export type CodexV5GenerationReportInput = z.infer<typeof CodexV5GenerationReportInputSchema>;
2257
3445
  export type CodexV5GenerationReportResponse = z.infer<typeof CodexV5GenerationReportResponseSchema>;
3446
+ export type CodexV6DeviceDescriptor = z.infer<typeof CodexV6DeviceDescriptorSchema>;
3447
+ export type CodexV6AccountRequest = z.infer<typeof CodexV6AccountRequestSchema>;
3448
+ export type CodexV6CreateAccountRequestInput = z.infer<typeof CodexV6CreateAccountRequestInputSchema>;
3449
+ export type CodexV6AccountRequestResponse = z.infer<typeof CodexV6AccountRequestResponseSchema>;
3450
+ export type CodexV6AccountRequestListResponse = z.infer<typeof CodexV6AccountRequestListResponseSchema>;
3451
+ export type CodexV6AdminAccountRequestListQuery = z.infer<typeof CodexV6AdminAccountRequestListQuerySchema>;
3452
+ export type CodexV6AdminReplacementCandidateQuery = z.infer<typeof CodexV6AdminReplacementCandidateQuerySchema>;
3453
+ export type CodexV6CancelAccountRequestInput = z.infer<typeof CodexV6CancelAccountRequestInputSchema>;
3454
+ export type CodexV6AdminReviewAccountRequestInput = z.infer<typeof CodexV6AdminReviewAccountRequestInputSchema>;
3455
+ export type CodexV6DeviceBinding = z.infer<typeof CodexV6DeviceBindingSchema>;
3456
+ export type CodexV6DeviceBindingListResponse = z.infer<typeof CodexV6DeviceBindingListResponseSchema>;
3457
+ export type CodexV6AdminReplacementCandidateListResponse = z.infer<typeof CodexV6AdminReplacementCandidateListResponseSchema>;
3458
+ export type CodexV6ReconcileDeviceAccessInput = z.infer<typeof CodexV6ReconcileDeviceAccessInputSchema>;
3459
+ export type CodexV6ReconcileDeviceAccessResponse = z.infer<typeof CodexV6ReconcileDeviceAccessResponseSchema>;
3460
+ export type CodexV6AdminCreateDeviceBindingInput = z.infer<typeof CodexV6AdminCreateDeviceBindingInputSchema>;
3461
+ export type CodexV6AdminCreateDeviceBindingResponse = z.infer<typeof CodexV6AdminCreateDeviceBindingResponseSchema>;
3462
+ export type CodexV6AdminReplaceDeviceTokenInput = z.infer<typeof CodexV6AdminReplaceDeviceTokenInputSchema>;
3463
+ export type CodexV6AdminReplaceDeviceTokenResponse = z.infer<typeof CodexV6AdminReplaceDeviceTokenResponseSchema>;
3464
+ export type CodexV6FullCredentialDeliveryInput = z.infer<typeof CodexV6FullCredentialDeliveryInputSchema>;
3465
+ export type CodexV6FullCredentialDeliveryResponse = z.infer<typeof CodexV6FullCredentialDeliveryResponseSchema>;
3466
+ export type CodexV6FullCredentialBundle = z.infer<typeof CodexV6FullCredentialBundleSchema>;
3467
+ export type CodexV6AcknowledgeFullCredentialDeliveryInput = z.infer<typeof CodexV6AcknowledgeFullCredentialDeliveryInputSchema>;
3468
+ export type CodexV6AcknowledgeFullCredentialDeliveryResponse = z.infer<typeof CodexV6AcknowledgeFullCredentialDeliveryResponseSchema>;
3469
+ export type CodexV6GenerationReportInput = z.infer<typeof CodexV6GenerationReportInputSchema>;
3470
+ export type CodexV6GenerationReportResponse = z.infer<typeof CodexV6GenerationReportResponseSchema>;
2258
3471
  export type CodexTokenPoolV4AssignmentTarget = z.infer<typeof CodexTokenPoolV4AssignmentTargetSchema>;
2259
3472
  export type CodexTokenPoolV4EnrollmentConfiguration = z.infer<typeof CodexTokenPoolV4EnrollmentConfigurationSchema>;
2260
3473
  export type CodexTokenPoolV4DirectoryResolveResponse = z.infer<typeof CodexTokenPoolV4DirectoryResolveResponseSchema>;
@@ -2263,6 +3476,7 @@ export type CodexTokenPoolV4UploadResponse = z.infer<typeof CodexTokenPoolV4Uplo
2263
3476
  export declare function codexAccountLoginCredentialsPath(accountId: string): string;
2264
3477
  export declare function codexAdminCredentialVersionsPath(accountId: string): string;
2265
3478
  export declare function codexAdminRefreshPath(accountId: string): string;
3479
+ export declare function codexAdminRenewPath(accountId: string): string;
2266
3480
  export declare function codexAdminAssignmentPath(assignmentId: string): string;
2267
3481
  export declare function codexAdminEnrollmentIntentPath(intentId: string): string;
2268
3482
  export declare function codexAdminEnrollmentIntentActionPath(intentId: string, action: "claim" | "heartbeat" | "cancel" | "candidate"): string;
@@ -2285,5 +3499,19 @@ export declare function codexV5AssignmentDeviceSessionsPath(assignmentId: string
2285
3499
  export declare function codexV5AssignmentDeviceSessionResolvePath(assignmentId: string, clientRequestId: string): string;
2286
3500
  export declare function codexV5DeviceSessionActionPath(sessionId: string, action: "ack" | "heartbeat" | "release"): string;
2287
3501
  export declare function codexV5LineageGenerationReportsPath(lineageId: string): string;
3502
+ export declare function codexV6AccountRequestPath(requestId: string): string;
3503
+ export declare function codexV6AccountRequestActionPath(requestId: string, action: "cancel"): string;
3504
+ export declare function codexV6AccountRequestDeviceBindingsPath(requestId: string): string;
3505
+ export declare function codexV6AdminAccountRequestDeviceBindingsPath(requestId: string): string;
3506
+ export declare function codexV6AdminDeviceBindingReplacementPath(requestId: string, bindingId: string): string;
3507
+ export declare function codexV6AdminAccountRequestPath(requestId: string): string;
3508
+ export declare function codexV6AdminAccountRequestsPath(query?: CodexV6AdminAccountRequestListQuery): string;
3509
+ export declare function codexV6AdminReplacementCandidatesPath(query: CodexV6AdminReplacementCandidateQuery): string;
3510
+ export declare function codexV6AdminAccountRequestReviewPath(requestId: string): string;
3511
+ export declare function codexV6DeviceBindingFullCredentialDeliveriesPath(bindingId: string): string;
3512
+ export declare function codexV6DeviceBindingFullCredentialDeliveryResolvePath(bindingId: string, clientRequestId: string): string;
3513
+ export declare function codexV6FullCredentialDeliveryAckPath(deliveryId: string): string;
3514
+ export declare function codexV6BindingGenerationReportsPath(bindingId: string): string;
3515
+ export declare function codexV6BindingGenerationReportResolvePath(bindingId: string, clientRequestId: string): string;
2288
3516
  export declare function codexTokenPoolV4DirectoryResolvePath(principal: string): string;
2289
3517
  export declare function codexTokenPoolV4UploadResolvePath(clientRequestId: string): string;