@tokensrc/codex 1.14.16 → 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.
@@ -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;
@@ -2133,6 +2141,1066 @@ export declare const CodexV5GenerationReportResponseSchema: z.ZodObject<{
2133
2141
  }, z.core.$strict>;
2134
2142
  replayed: z.ZodBoolean;
2135
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>;
2136
3204
  export declare const CodexV4AccessObservationStateSchema: z.ZodEnum<{
2137
3205
  EXPIRED: "EXPIRED";
2138
3206
  EXPIRING: "EXPIRING";
@@ -2375,6 +3443,31 @@ export type CodexV5ReleaseDeviceSessionInput = z.infer<typeof CodexV5ReleaseDevi
2375
3443
  export type CodexV5ReleaseDeviceSessionResponse = z.infer<typeof CodexV5ReleaseDeviceSessionResponseSchema>;
2376
3444
  export type CodexV5GenerationReportInput = z.infer<typeof CodexV5GenerationReportInputSchema>;
2377
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>;
2378
3471
  export type CodexTokenPoolV4AssignmentTarget = z.infer<typeof CodexTokenPoolV4AssignmentTargetSchema>;
2379
3472
  export type CodexTokenPoolV4EnrollmentConfiguration = z.infer<typeof CodexTokenPoolV4EnrollmentConfigurationSchema>;
2380
3473
  export type CodexTokenPoolV4DirectoryResolveResponse = z.infer<typeof CodexTokenPoolV4DirectoryResolveResponseSchema>;
@@ -2406,5 +3499,19 @@ export declare function codexV5AssignmentDeviceSessionsPath(assignmentId: string
2406
3499
  export declare function codexV5AssignmentDeviceSessionResolvePath(assignmentId: string, clientRequestId: string): string;
2407
3500
  export declare function codexV5DeviceSessionActionPath(sessionId: string, action: "ack" | "heartbeat" | "release"): string;
2408
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;
2409
3516
  export declare function codexTokenPoolV4DirectoryResolvePath(principal: string): string;
2410
3517
  export declare function codexTokenPoolV4UploadResolvePath(clientRequestId: string): string;