@tokensrc/codex 1.13.4 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +79 -3
  2. package/dist/client.d.ts +29 -1
  3. package/dist/client.js +221 -2
  4. package/dist/client.js.map +1 -1
  5. package/dist/command-directory.d.ts +1 -0
  6. package/dist/command-directory.js +3 -2
  7. package/dist/command-directory.js.map +1 -1
  8. package/dist/commands.d.ts +8 -2
  9. package/dist/commands.js +567 -40
  10. package/dist/commands.js.map +1 -1
  11. package/dist/console-status.js +1 -1
  12. package/dist/console-status.js.map +1 -1
  13. package/dist/credential-supervisor.d.ts +17 -0
  14. package/dist/credential-supervisor.js +84 -0
  15. package/dist/credential-supervisor.js.map +1 -0
  16. package/dist/credentials.d.ts +75 -3
  17. package/dist/credentials.js +357 -12
  18. package/dist/credentials.js.map +1 -1
  19. package/dist/enrollment-envelope.d.ts +18 -0
  20. package/dist/enrollment-envelope.js +112 -0
  21. package/dist/enrollment-envelope.js.map +1 -0
  22. package/dist/enrollment-flow.d.ts +27 -0
  23. package/dist/enrollment-flow.js +224 -0
  24. package/dist/enrollment-flow.js.map +1 -0
  25. package/dist/enrollment-login.d.ts +26 -0
  26. package/dist/enrollment-login.js +104 -0
  27. package/dist/enrollment-login.js.map +1 -0
  28. package/dist/index.d.ts +13 -0
  29. package/dist/index.js +17 -3
  30. package/dist/index.js.map +1 -1
  31. package/dist/managed-credential-v3-envelope.d.ts +60 -0
  32. package/dist/managed-credential-v3-envelope.js +234 -0
  33. package/dist/managed-credential-v3-envelope.js.map +1 -0
  34. package/dist/managed-credential-v3-flow.d.ts +45 -0
  35. package/dist/managed-credential-v3-flow.js +499 -0
  36. package/dist/managed-credential-v3-flow.js.map +1 -0
  37. package/dist/managed-credential-v3-journal.d.ts +192 -0
  38. package/dist/managed-credential-v3-journal.js +153 -0
  39. package/dist/managed-credential-v3-journal.js.map +1 -0
  40. package/dist/managed-credential-v3.d.ts +117 -0
  41. package/dist/managed-credential-v3.js +423 -0
  42. package/dist/managed-credential-v3.js.map +1 -0
  43. package/dist/migration-login-batch.d.ts +66 -0
  44. package/dist/migration-login-batch.js +202 -0
  45. package/dist/migration-login-batch.js.map +1 -0
  46. package/dist/private-file.d.ts +10 -0
  47. package/dist/private-file.js +77 -2
  48. package/dist/private-file.js.map +1 -1
  49. package/dist/profile.d.ts +10 -0
  50. package/dist/profile.js +55 -2
  51. package/dist/profile.js.map +1 -1
  52. package/dist/protocol.d.ts +1070 -0
  53. package/dist/protocol.js +560 -0
  54. package/dist/protocol.js.map +1 -1
  55. package/dist/retirement-flow.d.ts +38 -0
  56. package/dist/retirement-flow.js +78 -0
  57. package/dist/retirement-flow.js.map +1 -0
  58. package/dist/runtime.d.ts +4 -1
  59. package/dist/runtime.js +29 -4
  60. package/dist/runtime.js.map +1 -1
  61. package/dist/selection.d.ts +10 -1
  62. package/dist/selection.js +38 -2
  63. package/dist/selection.js.map +1 -1
  64. package/dist/short-lived-delivery-flow.d.ts +41 -0
  65. package/dist/short-lived-delivery-flow.js +141 -0
  66. package/dist/short-lived-delivery-flow.js.map +1 -0
  67. package/dist/short-lived-delivery-journal.d.ts +34 -0
  68. package/dist/short-lived-delivery-journal.js +137 -0
  69. package/dist/short-lived-delivery-journal.js.map +1 -0
  70. package/dist/short-lived-delivery.d.ts +26 -0
  71. package/dist/short-lived-delivery.js +139 -0
  72. package/dist/short-lived-delivery.js.map +1 -0
  73. package/dist/tui.js +23 -0
  74. package/dist/tui.js.map +1 -1
  75. package/dist/types.d.ts +6 -2
  76. package/package.json +2 -2
@@ -5,6 +5,24 @@ export declare const CODEX_ACCOUNTS_LIST_PATH = "/v1/codex/accounts";
5
5
  export declare const CODEX_ACCOUNTS_IMPORT_PATH = "/v1/admin/codex/accounts/import";
6
6
  export declare const CODEX_ADMIN_ACCOUNTS_PATH = "/v1/admin/codex/accounts";
7
7
  export declare const CODEX_ADMIN_ASSIGNMENTS_PATH = "/v1/admin/codex/assignments";
8
+ export declare const CODEX_ENROLLMENT_SCHEMA_VERSION: 2;
9
+ export declare const CODEX_ADMIN_ENROLLMENT_INTENTS_PATH = "/v2/admin/codex/enrollment-intents";
10
+ export declare const CODEX_CREDENTIAL_ASSIGNMENTS_PATH = "/v2/codex/credential-assignments";
11
+ export declare const CODEX_SHORT_LIVED_DELIVERIES_PATH = "/v2/codex/short-lived-credential-deliveries";
12
+ export declare const CODEX_ASSIGNMENT_RETIREMENTS_PATH = "/v2/codex/assignment-retirements";
13
+ export declare const CODEX_ADMIN_MIGRATION_PLANS_PATH = "/v2/admin/codex/migration-plans";
14
+ export declare const CODEX_MANAGED_CREDENTIALS_V3_SCHEMA_VERSION: 3;
15
+ export declare const CODEX_MANAGED_CREDENTIALS_V3_PATH = "/v3/codex";
16
+ export declare const CODEX_V3_ENROLLMENT_CONFIGURATION_PATH = "/v3/codex/enrollment-configuration";
17
+ export declare const CODEX_V3_ENROLLMENTS_PATH = "/v3/codex/enrollments";
18
+ export declare const CODEX_V3_CREDENTIAL_ASSIGNMENTS_PATH = "/v3/codex/credential-assignments";
19
+ export declare const CODEX_V3_FULL_CREDENTIAL_DELIVERIES_PATH = "/v3/codex/full-credential-deliveries";
20
+ export declare const CODEX_V3_CREDENTIAL_LINEAGES_PATH = "/v3/codex/credential-lineages";
21
+ export declare const CODEX_MIGRATION_CAPACITY: {
22
+ readonly verifiedMinimum: 2;
23
+ readonly verifiedLimit: null;
24
+ readonly sequentialRequired: true;
25
+ };
8
26
  export interface CodexQuotaWindowLike {
9
27
  usedPercent?: number | null;
10
28
  windowMinutes?: number | null;
@@ -68,6 +86,19 @@ export declare const CodexAccountSummarySchema: z.ZodObject<{
68
86
  NEEDS_REAUTH: "NEEDS_REAUTH";
69
87
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
70
88
  }>>;
89
+ lineageStatus: z.ZodOptional<z.ZodEnum<{
90
+ ACTIVE: "ACTIVE";
91
+ COMPROMISED: "COMPROMISED";
92
+ DELIVERY_UNKNOWN: "DELIVERY_UNKNOWN";
93
+ DIVERGED: "DIVERGED";
94
+ ENROLLING: "ENROLLING";
95
+ LOST: "LOST";
96
+ NEEDS_REAUTH: "NEEDS_REAUTH";
97
+ READY: "READY";
98
+ RETIRED: "RETIRED";
99
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
100
+ SYNC_LAGGING: "SYNC_LAGGING";
101
+ }>>;
71
102
  quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
72
103
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
73
104
  status: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -115,6 +146,19 @@ export declare const CodexAccountListResponseSchema: z.ZodObject<{
115
146
  NEEDS_REAUTH: "NEEDS_REAUTH";
116
147
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
117
148
  }>>;
149
+ lineageStatus: z.ZodOptional<z.ZodEnum<{
150
+ ACTIVE: "ACTIVE";
151
+ COMPROMISED: "COMPROMISED";
152
+ DELIVERY_UNKNOWN: "DELIVERY_UNKNOWN";
153
+ DIVERGED: "DIVERGED";
154
+ ENROLLING: "ENROLLING";
155
+ LOST: "LOST";
156
+ NEEDS_REAUTH: "NEEDS_REAUTH";
157
+ READY: "READY";
158
+ RETIRED: "RETIRED";
159
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
160
+ SYNC_LAGGING: "SYNC_LAGGING";
161
+ }>>;
118
162
  quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
119
163
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
120
164
  status: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -164,6 +208,19 @@ export declare const CodexLoginCredentialsResponseSchema: z.ZodObject<{
164
208
  NEEDS_REAUTH: "NEEDS_REAUTH";
165
209
  TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
166
210
  }>>;
211
+ lineageStatus: z.ZodOptional<z.ZodEnum<{
212
+ ACTIVE: "ACTIVE";
213
+ COMPROMISED: "COMPROMISED";
214
+ DELIVERY_UNKNOWN: "DELIVERY_UNKNOWN";
215
+ DIVERGED: "DIVERGED";
216
+ ENROLLING: "ENROLLING";
217
+ LOST: "LOST";
218
+ NEEDS_REAUTH: "NEEDS_REAUTH";
219
+ READY: "READY";
220
+ RETIRED: "RETIRED";
221
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
222
+ SYNC_LAGGING: "SYNC_LAGGING";
223
+ }>>;
167
224
  quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
168
225
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
169
226
  status: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -730,6 +787,963 @@ export declare const CodexAdminAssignmentDeleteResponseSchema: z.ZodObject<{
730
787
  schemaVersion: z.ZodLiteral<1>;
731
788
  assignmentId: z.ZodString;
732
789
  }, z.core.$strict>;
790
+ export declare const CodexEnrollmentIntentReasonSchema: z.ZodEnum<{
791
+ NEW: "NEW";
792
+ REPLACE_ADMIN: "REPLACE_ADMIN";
793
+ REPLACE_DIVERGED: "REPLACE_DIVERGED";
794
+ REPLACE_LOST: "REPLACE_LOST";
795
+ REPLACE_REJECTED: "REPLACE_REJECTED";
796
+ }>;
797
+ export declare const CodexEnrollmentIntentStatusSchema: z.ZodEnum<{
798
+ ACCOUNT_MISMATCH: "ACCOUNT_MISMATCH";
799
+ AWAITING_CLI: "AWAITING_CLI";
800
+ CANCELLED: "CANCELLED";
801
+ CLAIMED: "CLAIMED";
802
+ EXPIRED: "EXPIRED";
803
+ IDENTITY_UNVERIFIABLE: "IDENTITY_UNVERIFIABLE";
804
+ LOGIN_IN_PROGRESS: "LOGIN_IN_PROGRESS";
805
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
806
+ READY: "READY";
807
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
808
+ UPLOADING: "UPLOADING";
809
+ VALIDATING: "VALIDATING";
810
+ }>;
811
+ export declare const CodexEnrollmentIntentSchema: z.ZodObject<{
812
+ id: z.ZodString;
813
+ type: z.ZodEnum<{
814
+ ACCOUNT_DISCOVERY: "ACCOUNT_DISCOVERY";
815
+ ASSIGNMENT_ENROLLMENT: "ASSIGNMENT_ENROLLMENT";
816
+ }>;
817
+ status: z.ZodEnum<{
818
+ ACCOUNT_MISMATCH: "ACCOUNT_MISMATCH";
819
+ AWAITING_CLI: "AWAITING_CLI";
820
+ CANCELLED: "CANCELLED";
821
+ CLAIMED: "CLAIMED";
822
+ EXPIRED: "EXPIRED";
823
+ IDENTITY_UNVERIFIABLE: "IDENTITY_UNVERIFIABLE";
824
+ LOGIN_IN_PROGRESS: "LOGIN_IN_PROGRESS";
825
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
826
+ READY: "READY";
827
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
828
+ UPLOADING: "UPLOADING";
829
+ VALIDATING: "VALIDATING";
830
+ }>;
831
+ revision: z.ZodNumber;
832
+ reason: z.ZodEnum<{
833
+ NEW: "NEW";
834
+ REPLACE_ADMIN: "REPLACE_ADMIN";
835
+ REPLACE_DIVERGED: "REPLACE_DIVERGED";
836
+ REPLACE_LOST: "REPLACE_LOST";
837
+ REPLACE_REJECTED: "REPLACE_REJECTED";
838
+ }>;
839
+ assignmentId: z.ZodNullable<z.ZodString>;
840
+ managedAccountId: z.ZodNullable<z.ZodString>;
841
+ userSubject: z.ZodNullable<z.ZodString>;
842
+ createdAt: z.ZodString;
843
+ expiresAt: z.ZodString;
844
+ claimedAt: z.ZodNullable<z.ZodString>;
845
+ lastHeartbeatAt: z.ZodNullable<z.ZodString>;
846
+ cancelledAt: z.ZodNullable<z.ZodString>;
847
+ updatedAt: z.ZodString;
848
+ safeErrorCode: z.ZodNullable<z.ZodString>;
849
+ resultManagedAccountId: z.ZodNullable<z.ZodString>;
850
+ resultLineageId: z.ZodNullable<z.ZodString>;
851
+ currentGenerationVersion: z.ZodNullable<z.ZodNumber>;
852
+ allowedActions: z.ZodArray<z.ZodString>;
853
+ }, z.core.$strict>;
854
+ export declare const CodexEnrollmentCandidateIngressSchema: z.ZodObject<{
855
+ envelopeVersion: z.ZodLiteral<1>;
856
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
857
+ keyId: z.ZodString;
858
+ publicKey: z.ZodString;
859
+ maxRequestBytes: z.ZodNumber;
860
+ maxCiphertextBytes: z.ZodNumber;
861
+ }, z.core.$strict>;
862
+ export declare const CodexEnrollmentCapabilitiesSchema: z.ZodObject<{
863
+ enrollmentIntents: z.ZodBoolean;
864
+ candidateUpload: z.ZodBoolean;
865
+ delivery: z.ZodBoolean;
866
+ rotationSync: z.ZodBoolean;
867
+ candidateIngress: z.ZodOptional<z.ZodObject<{
868
+ envelopeVersion: z.ZodLiteral<1>;
869
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
870
+ keyId: z.ZodString;
871
+ publicKey: z.ZodString;
872
+ maxRequestBytes: z.ZodNumber;
873
+ maxCiphertextBytes: z.ZodNumber;
874
+ }, z.core.$strict>>;
875
+ }, z.core.$strict>;
876
+ export declare const CodexEnrollmentIntentResponseSchema: z.ZodObject<{
877
+ schemaVersion: z.ZodLiteral<2>;
878
+ intent: z.ZodObject<{
879
+ id: z.ZodString;
880
+ type: z.ZodEnum<{
881
+ ACCOUNT_DISCOVERY: "ACCOUNT_DISCOVERY";
882
+ ASSIGNMENT_ENROLLMENT: "ASSIGNMENT_ENROLLMENT";
883
+ }>;
884
+ status: z.ZodEnum<{
885
+ ACCOUNT_MISMATCH: "ACCOUNT_MISMATCH";
886
+ AWAITING_CLI: "AWAITING_CLI";
887
+ CANCELLED: "CANCELLED";
888
+ CLAIMED: "CLAIMED";
889
+ EXPIRED: "EXPIRED";
890
+ IDENTITY_UNVERIFIABLE: "IDENTITY_UNVERIFIABLE";
891
+ LOGIN_IN_PROGRESS: "LOGIN_IN_PROGRESS";
892
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
893
+ READY: "READY";
894
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
895
+ UPLOADING: "UPLOADING";
896
+ VALIDATING: "VALIDATING";
897
+ }>;
898
+ revision: z.ZodNumber;
899
+ reason: z.ZodEnum<{
900
+ NEW: "NEW";
901
+ REPLACE_ADMIN: "REPLACE_ADMIN";
902
+ REPLACE_DIVERGED: "REPLACE_DIVERGED";
903
+ REPLACE_LOST: "REPLACE_LOST";
904
+ REPLACE_REJECTED: "REPLACE_REJECTED";
905
+ }>;
906
+ assignmentId: z.ZodNullable<z.ZodString>;
907
+ managedAccountId: z.ZodNullable<z.ZodString>;
908
+ userSubject: z.ZodNullable<z.ZodString>;
909
+ createdAt: z.ZodString;
910
+ expiresAt: z.ZodString;
911
+ claimedAt: z.ZodNullable<z.ZodString>;
912
+ lastHeartbeatAt: z.ZodNullable<z.ZodString>;
913
+ cancelledAt: z.ZodNullable<z.ZodString>;
914
+ updatedAt: z.ZodString;
915
+ safeErrorCode: z.ZodNullable<z.ZodString>;
916
+ resultManagedAccountId: z.ZodNullable<z.ZodString>;
917
+ resultLineageId: z.ZodNullable<z.ZodString>;
918
+ currentGenerationVersion: z.ZodNullable<z.ZodNumber>;
919
+ allowedActions: z.ZodArray<z.ZodString>;
920
+ }, z.core.$strict>;
921
+ capabilities: z.ZodObject<{
922
+ enrollmentIntents: z.ZodBoolean;
923
+ candidateUpload: z.ZodBoolean;
924
+ delivery: z.ZodBoolean;
925
+ rotationSync: z.ZodBoolean;
926
+ candidateIngress: z.ZodOptional<z.ZodObject<{
927
+ envelopeVersion: z.ZodLiteral<1>;
928
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
929
+ keyId: z.ZodString;
930
+ publicKey: z.ZodString;
931
+ maxRequestBytes: z.ZodNumber;
932
+ maxCiphertextBytes: z.ZodNumber;
933
+ }, z.core.$strict>>;
934
+ }, z.core.$strict>;
935
+ }, z.core.$strict>;
936
+ export declare const CodexEnrollmentMutationInputSchema: z.ZodObject<{
937
+ idempotencyKey: z.ZodString;
938
+ revision: z.ZodNumber;
939
+ }, z.core.$strict>;
940
+ export declare const CodexEnrollmentHeartbeatInputSchema: z.ZodObject<{
941
+ idempotencyKey: z.ZodString;
942
+ revision: z.ZodNumber;
943
+ phase: z.ZodEnum<{
944
+ LOGIN_IN_PROGRESS: "LOGIN_IN_PROGRESS";
945
+ UPLOADING: "UPLOADING";
946
+ }>;
947
+ }, z.core.$strict>;
948
+ export declare const CodexEnrollmentCandidateEnvelopeSchema: z.ZodObject<{
949
+ version: z.ZodLiteral<1>;
950
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
951
+ keyId: z.ZodString;
952
+ ephemeralPublicKey: z.ZodString;
953
+ salt: z.ZodString;
954
+ nonce: z.ZodString;
955
+ ciphertext: z.ZodString;
956
+ authenticationTag: z.ZodString;
957
+ }, z.core.$strict>;
958
+ export declare const CodexEnrollmentCandidateInputSchema: z.ZodObject<{
959
+ schemaVersion: z.ZodLiteral<2>;
960
+ revision: z.ZodNumber;
961
+ envelope: z.ZodObject<{
962
+ version: z.ZodLiteral<1>;
963
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
964
+ keyId: z.ZodString;
965
+ ephemeralPublicKey: z.ZodString;
966
+ salt: z.ZodString;
967
+ nonce: z.ZodString;
968
+ ciphertext: z.ZodString;
969
+ authenticationTag: z.ZodString;
970
+ }, z.core.$strict>;
971
+ }, z.core.$strict>;
972
+ export declare const CodexEnrollmentCandidateResultSchema: z.ZodObject<{
973
+ outcome: z.ZodEnum<{
974
+ ACCOUNT_MISMATCH: "ACCOUNT_MISMATCH";
975
+ IDENTITY_UNVERIFIABLE: "IDENTITY_UNVERIFIABLE";
976
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
977
+ READY: "READY";
978
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
979
+ }>;
980
+ managedAccountId: z.ZodNullable<z.ZodString>;
981
+ lineageId: z.ZodNullable<z.ZodString>;
982
+ generationVersion: z.ZodNullable<z.ZodNumber>;
983
+ replayed: z.ZodBoolean;
984
+ }, z.core.$strict>;
985
+ export declare const CodexEnrollmentCandidateResponseSchema: z.ZodObject<{
986
+ schemaVersion: z.ZodLiteral<2>;
987
+ intent: z.ZodObject<{
988
+ id: z.ZodString;
989
+ type: z.ZodEnum<{
990
+ ACCOUNT_DISCOVERY: "ACCOUNT_DISCOVERY";
991
+ ASSIGNMENT_ENROLLMENT: "ASSIGNMENT_ENROLLMENT";
992
+ }>;
993
+ status: z.ZodEnum<{
994
+ ACCOUNT_MISMATCH: "ACCOUNT_MISMATCH";
995
+ AWAITING_CLI: "AWAITING_CLI";
996
+ CANCELLED: "CANCELLED";
997
+ CLAIMED: "CLAIMED";
998
+ EXPIRED: "EXPIRED";
999
+ IDENTITY_UNVERIFIABLE: "IDENTITY_UNVERIFIABLE";
1000
+ LOGIN_IN_PROGRESS: "LOGIN_IN_PROGRESS";
1001
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
1002
+ READY: "READY";
1003
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
1004
+ UPLOADING: "UPLOADING";
1005
+ VALIDATING: "VALIDATING";
1006
+ }>;
1007
+ revision: z.ZodNumber;
1008
+ reason: z.ZodEnum<{
1009
+ NEW: "NEW";
1010
+ REPLACE_ADMIN: "REPLACE_ADMIN";
1011
+ REPLACE_DIVERGED: "REPLACE_DIVERGED";
1012
+ REPLACE_LOST: "REPLACE_LOST";
1013
+ REPLACE_REJECTED: "REPLACE_REJECTED";
1014
+ }>;
1015
+ assignmentId: z.ZodNullable<z.ZodString>;
1016
+ managedAccountId: z.ZodNullable<z.ZodString>;
1017
+ userSubject: z.ZodNullable<z.ZodString>;
1018
+ createdAt: z.ZodString;
1019
+ expiresAt: z.ZodString;
1020
+ claimedAt: z.ZodNullable<z.ZodString>;
1021
+ lastHeartbeatAt: z.ZodNullable<z.ZodString>;
1022
+ cancelledAt: z.ZodNullable<z.ZodString>;
1023
+ updatedAt: z.ZodString;
1024
+ safeErrorCode: z.ZodNullable<z.ZodString>;
1025
+ resultManagedAccountId: z.ZodNullable<z.ZodString>;
1026
+ resultLineageId: z.ZodNullable<z.ZodString>;
1027
+ currentGenerationVersion: z.ZodNullable<z.ZodNumber>;
1028
+ allowedActions: z.ZodArray<z.ZodString>;
1029
+ }, z.core.$strict>;
1030
+ capabilities: z.ZodObject<{
1031
+ enrollmentIntents: z.ZodBoolean;
1032
+ candidateUpload: z.ZodBoolean;
1033
+ delivery: z.ZodBoolean;
1034
+ rotationSync: z.ZodBoolean;
1035
+ candidateIngress: z.ZodOptional<z.ZodObject<{
1036
+ envelopeVersion: z.ZodLiteral<1>;
1037
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1038
+ keyId: z.ZodString;
1039
+ publicKey: z.ZodString;
1040
+ maxRequestBytes: z.ZodNumber;
1041
+ maxCiphertextBytes: z.ZodNumber;
1042
+ }, z.core.$strict>>;
1043
+ }, z.core.$strict>;
1044
+ result: z.ZodObject<{
1045
+ outcome: z.ZodEnum<{
1046
+ ACCOUNT_MISMATCH: "ACCOUNT_MISMATCH";
1047
+ IDENTITY_UNVERIFIABLE: "IDENTITY_UNVERIFIABLE";
1048
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
1049
+ READY: "READY";
1050
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
1051
+ }>;
1052
+ managedAccountId: z.ZodNullable<z.ZodString>;
1053
+ lineageId: z.ZodNullable<z.ZodString>;
1054
+ generationVersion: z.ZodNullable<z.ZodNumber>;
1055
+ replayed: z.ZodBoolean;
1056
+ }, z.core.$strict>;
1057
+ }, z.core.$strict>;
1058
+ export declare const CodexMigrationPlanStatusSchema: z.ZodEnum<{
1059
+ ACTIVE: "ACTIVE";
1060
+ CANCELLED: "CANCELLED";
1061
+ COMPLETED: "COMPLETED";
1062
+ PAUSED: "PAUSED";
1063
+ }>;
1064
+ export declare const CodexMigrationTargetSchema: z.ZodObject<{
1065
+ id: z.ZodString;
1066
+ assignmentId: z.ZodString;
1067
+ userSubject: z.ZodString;
1068
+ distributionMode: z.ZodEnum<{
1069
+ LEGACY: "LEGACY";
1070
+ MIGRATING: "MIGRATING";
1071
+ USER_BOUND: "USER_BOUND";
1072
+ }>;
1073
+ projectedStatus: z.ZodEnum<{
1074
+ ACTIVE: "ACTIVE";
1075
+ AWAITING_CLI: "AWAITING_CLI";
1076
+ COMPROMISED: "COMPROMISED";
1077
+ DELIVERY_UNKNOWN: "DELIVERY_UNKNOWN";
1078
+ DIVERGED: "DIVERGED";
1079
+ ENROLLING: "ENROLLING";
1080
+ LEGACY_V1: "LEGACY_V1";
1081
+ LOST: "LOST";
1082
+ NEEDS_REAUTH: "NEEDS_REAUTH";
1083
+ READY: "READY";
1084
+ RETIRED: "RETIRED";
1085
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
1086
+ SYNC_LAGGING: "SYNC_LAGGING";
1087
+ UNENROLLED: "UNENROLLED";
1088
+ VALIDATING: "VALIDATING";
1089
+ }>;
1090
+ enrollmentAttachment: z.ZodEnum<{
1091
+ CREATED: "CREATED";
1092
+ NONE: "NONE";
1093
+ REUSED: "REUSED";
1094
+ }>;
1095
+ enrollmentIntent: z.ZodNullable<z.ZodObject<{
1096
+ id: z.ZodString;
1097
+ status: z.ZodEnum<{
1098
+ ACCOUNT_MISMATCH: "ACCOUNT_MISMATCH";
1099
+ AWAITING_CLI: "AWAITING_CLI";
1100
+ CANCELLED: "CANCELLED";
1101
+ CLAIMED: "CLAIMED";
1102
+ EXPIRED: "EXPIRED";
1103
+ IDENTITY_UNVERIFIABLE: "IDENTITY_UNVERIFIABLE";
1104
+ LOGIN_IN_PROGRESS: "LOGIN_IN_PROGRESS";
1105
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
1106
+ READY: "READY";
1107
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
1108
+ UPLOADING: "UPLOADING";
1109
+ VALIDATING: "VALIDATING";
1110
+ }>;
1111
+ revision: z.ZodNumber;
1112
+ expiresAt: z.ZodString;
1113
+ updatedAt: z.ZodString;
1114
+ safeErrorCode: z.ZodNullable<z.ZodString>;
1115
+ }, z.core.$strict>>;
1116
+ allowedAction: z.ZodEnum<{
1117
+ LOGIN: "LOGIN";
1118
+ NONE: "NONE";
1119
+ VIEW_ENROLLMENT: "VIEW_ENROLLMENT";
1120
+ }>;
1121
+ }, z.core.$strict>;
1122
+ export declare const CodexMigrationLoginQueueResponseSchema: z.ZodObject<{
1123
+ schemaVersion: z.ZodLiteral<2>;
1124
+ plan: z.ZodObject<{
1125
+ id: z.ZodString;
1126
+ status: z.ZodEnum<{
1127
+ ACTIVE: "ACTIVE";
1128
+ CANCELLED: "CANCELLED";
1129
+ COMPLETED: "COMPLETED";
1130
+ PAUSED: "PAUSED";
1131
+ }>;
1132
+ revision: z.ZodNumber;
1133
+ accountId: z.ZodString;
1134
+ sequentialRequired: z.ZodLiteral<true>;
1135
+ }, z.core.$strict>;
1136
+ items: z.ZodArray<z.ZodObject<{
1137
+ id: z.ZodString;
1138
+ assignmentId: z.ZodString;
1139
+ userSubject: z.ZodString;
1140
+ distributionMode: z.ZodEnum<{
1141
+ LEGACY: "LEGACY";
1142
+ MIGRATING: "MIGRATING";
1143
+ USER_BOUND: "USER_BOUND";
1144
+ }>;
1145
+ projectedStatus: z.ZodEnum<{
1146
+ ACTIVE: "ACTIVE";
1147
+ AWAITING_CLI: "AWAITING_CLI";
1148
+ COMPROMISED: "COMPROMISED";
1149
+ DELIVERY_UNKNOWN: "DELIVERY_UNKNOWN";
1150
+ DIVERGED: "DIVERGED";
1151
+ ENROLLING: "ENROLLING";
1152
+ LEGACY_V1: "LEGACY_V1";
1153
+ LOST: "LOST";
1154
+ NEEDS_REAUTH: "NEEDS_REAUTH";
1155
+ READY: "READY";
1156
+ RETIRED: "RETIRED";
1157
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
1158
+ SYNC_LAGGING: "SYNC_LAGGING";
1159
+ UNENROLLED: "UNENROLLED";
1160
+ VALIDATING: "VALIDATING";
1161
+ }>;
1162
+ enrollmentAttachment: z.ZodEnum<{
1163
+ CREATED: "CREATED";
1164
+ NONE: "NONE";
1165
+ REUSED: "REUSED";
1166
+ }>;
1167
+ enrollmentIntent: z.ZodNullable<z.ZodObject<{
1168
+ id: z.ZodString;
1169
+ status: z.ZodEnum<{
1170
+ ACCOUNT_MISMATCH: "ACCOUNT_MISMATCH";
1171
+ AWAITING_CLI: "AWAITING_CLI";
1172
+ CANCELLED: "CANCELLED";
1173
+ CLAIMED: "CLAIMED";
1174
+ EXPIRED: "EXPIRED";
1175
+ IDENTITY_UNVERIFIABLE: "IDENTITY_UNVERIFIABLE";
1176
+ LOGIN_IN_PROGRESS: "LOGIN_IN_PROGRESS";
1177
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
1178
+ READY: "READY";
1179
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
1180
+ UPLOADING: "UPLOADING";
1181
+ VALIDATING: "VALIDATING";
1182
+ }>;
1183
+ revision: z.ZodNumber;
1184
+ expiresAt: z.ZodString;
1185
+ updatedAt: z.ZodString;
1186
+ safeErrorCode: z.ZodNullable<z.ZodString>;
1187
+ }, z.core.$strict>>;
1188
+ allowedAction: z.ZodEnum<{
1189
+ LOGIN: "LOGIN";
1190
+ NONE: "NONE";
1191
+ VIEW_ENROLLMENT: "VIEW_ENROLLMENT";
1192
+ }>;
1193
+ }, z.core.$strict>>;
1194
+ total: z.ZodNumber;
1195
+ page: z.ZodNumber;
1196
+ pageSize: z.ZodNumber;
1197
+ }, z.core.$strict>;
1198
+ export declare const CodexUserCredentialAssignmentSchema: z.ZodObject<{
1199
+ assignmentId: z.ZodString;
1200
+ managedAccountId: z.ZodString;
1201
+ label: z.ZodString;
1202
+ distributionMode: z.ZodLiteral<"SERVER_MANAGED_SHORT_LIVED">;
1203
+ lineageStatus: z.ZodNullable<z.ZodEnum<{
1204
+ ACTIVE: "ACTIVE";
1205
+ COMPROMISED: "COMPROMISED";
1206
+ DELIVERY_UNKNOWN: "DELIVERY_UNKNOWN";
1207
+ DIVERGED: "DIVERGED";
1208
+ ENROLLING: "ENROLLING";
1209
+ LOST: "LOST";
1210
+ NEEDS_REAUTH: "NEEDS_REAUTH";
1211
+ READY: "READY";
1212
+ RETIRED: "RETIRED";
1213
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
1214
+ SYNC_LAGGING: "SYNC_LAGGING";
1215
+ }>>;
1216
+ generationVersion: z.ZodNullable<z.ZodNumber>;
1217
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
1218
+ deliveryEligible: z.ZodBoolean;
1219
+ }, z.core.$strict>;
1220
+ export declare const CodexUserCredentialAssignmentListResponseSchema: z.ZodObject<{
1221
+ schemaVersion: z.ZodLiteral<2>;
1222
+ items: z.ZodArray<z.ZodObject<{
1223
+ assignmentId: z.ZodString;
1224
+ managedAccountId: z.ZodString;
1225
+ label: z.ZodString;
1226
+ distributionMode: z.ZodLiteral<"SERVER_MANAGED_SHORT_LIVED">;
1227
+ lineageStatus: z.ZodNullable<z.ZodEnum<{
1228
+ ACTIVE: "ACTIVE";
1229
+ COMPROMISED: "COMPROMISED";
1230
+ DELIVERY_UNKNOWN: "DELIVERY_UNKNOWN";
1231
+ DIVERGED: "DIVERGED";
1232
+ ENROLLING: "ENROLLING";
1233
+ LOST: "LOST";
1234
+ NEEDS_REAUTH: "NEEDS_REAUTH";
1235
+ READY: "READY";
1236
+ RETIRED: "RETIRED";
1237
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
1238
+ SYNC_LAGGING: "SYNC_LAGGING";
1239
+ }>>;
1240
+ generationVersion: z.ZodNullable<z.ZodNumber>;
1241
+ credentialExpiresAt: z.ZodNullable<z.ZodString>;
1242
+ deliveryEligible: z.ZodBoolean;
1243
+ }, z.core.$strict>>;
1244
+ total: z.ZodNumber;
1245
+ }, z.core.$strict>;
1246
+ export declare const CodexShortLivedDeliveryClientKeySchema: z.ZodObject<{
1247
+ version: z.ZodLiteral<1>;
1248
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1249
+ publicKey: z.ZodString;
1250
+ }, z.core.$strict>;
1251
+ export declare const CodexShortLivedDeliveryRequestSchema: z.ZodObject<{
1252
+ schemaVersion: z.ZodLiteral<2>;
1253
+ clientKey: z.ZodObject<{
1254
+ version: z.ZodLiteral<1>;
1255
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1256
+ publicKey: z.ZodString;
1257
+ }, z.core.$strict>;
1258
+ }, z.core.$strict>;
1259
+ export declare const CodexShortLivedDeliveryEnvelopeSchema: z.ZodObject<{
1260
+ version: z.ZodLiteral<1>;
1261
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1262
+ ephemeralPublicKey: z.ZodString;
1263
+ salt: z.ZodString;
1264
+ nonce: z.ZodString;
1265
+ ciphertext: z.ZodString;
1266
+ authenticationTag: z.ZodString;
1267
+ }, z.core.$strict>;
1268
+ export declare const CodexShortLivedDeliveryResponseSchema: z.ZodObject<{
1269
+ schemaVersion: z.ZodLiteral<2>;
1270
+ delivery: z.ZodObject<{
1271
+ id: z.ZodString;
1272
+ credentialKind: z.ZodLiteral<"SHORT_LIVED">;
1273
+ assignmentId: z.ZodString;
1274
+ managedAccountId: z.ZodString;
1275
+ lineageId: z.ZodString;
1276
+ generationVersion: z.ZodNumber;
1277
+ status: z.ZodEnum<{
1278
+ ACKED: "ACKED";
1279
+ AWAITING_ACK: "AWAITING_ACK";
1280
+ EXPIRED: "EXPIRED";
1281
+ }>;
1282
+ issuedAt: z.ZodString;
1283
+ credentialExpiresAt: z.ZodString;
1284
+ ackExpiresAt: z.ZodString;
1285
+ ackedAt: z.ZodNullable<z.ZodString>;
1286
+ providerAccountId: z.ZodString;
1287
+ subject: z.ZodString;
1288
+ envelope: z.ZodObject<{
1289
+ version: z.ZodLiteral<1>;
1290
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1291
+ ephemeralPublicKey: z.ZodString;
1292
+ salt: z.ZodString;
1293
+ nonce: z.ZodString;
1294
+ ciphertext: z.ZodString;
1295
+ authenticationTag: z.ZodString;
1296
+ }, z.core.$strict>;
1297
+ }, z.core.$strict>;
1298
+ replayed: z.ZodBoolean;
1299
+ }, z.core.$strict>;
1300
+ export declare const CodexShortLivedDeliveryAckInputSchema: z.ZodObject<{
1301
+ schemaVersion: z.ZodLiteral<2>;
1302
+ lineageId: z.ZodString;
1303
+ generationVersion: z.ZodNumber;
1304
+ }, z.core.$strict>;
1305
+ export declare const CodexShortLivedDeliveryAckResponseSchema: z.ZodObject<{
1306
+ schemaVersion: z.ZodLiteral<2>;
1307
+ delivery: z.ZodObject<{
1308
+ id: z.ZodString;
1309
+ credentialKind: z.ZodLiteral<"SHORT_LIVED">;
1310
+ assignmentId: z.ZodString;
1311
+ managedAccountId: z.ZodString;
1312
+ lineageId: z.ZodString;
1313
+ generationVersion: z.ZodNumber;
1314
+ issuedAt: z.ZodString;
1315
+ credentialExpiresAt: z.ZodString;
1316
+ ackExpiresAt: z.ZodString;
1317
+ status: z.ZodLiteral<"ACKED">;
1318
+ ackedAt: z.ZodString;
1319
+ }, z.core.$strict>;
1320
+ replayed: z.ZodBoolean;
1321
+ }, z.core.$strict>;
1322
+ export declare const CodexShortLivedCredentialBundleSchema: z.ZodObject<{
1323
+ schemaVersion: z.ZodLiteral<2>;
1324
+ deliveryId: z.ZodString;
1325
+ managedAccountId: z.ZodString;
1326
+ providerAccountId: z.ZodString;
1327
+ lineageId: z.ZodString;
1328
+ generationVersion: z.ZodNumber;
1329
+ accessToken: z.ZodString;
1330
+ idToken: z.ZodString;
1331
+ expiresAt: z.ZodString;
1332
+ }, z.core.$strict>;
1333
+ export declare const CodexAssignmentRetirementSchema: z.ZodObject<{
1334
+ id: z.ZodString;
1335
+ assignmentId: z.ZodString;
1336
+ revision: z.ZodNumber;
1337
+ reason: z.ZodEnum<{
1338
+ COMPROMISED: "COMPROMISED";
1339
+ REPLACED: "REPLACED";
1340
+ UNASSIGN: "UNASSIGN";
1341
+ }>;
1342
+ status: z.ZodEnum<{
1343
+ COMPROMISED: "COMPROMISED";
1344
+ FINALIZED: "FINALIZED";
1345
+ READY_TO_FINALIZE: "READY_TO_FINALIZE";
1346
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
1347
+ }>;
1348
+ requestedAt: z.ZodString;
1349
+ serverRefreshStoppedAt: z.ZodString;
1350
+ shortLivedCredentialsExpireAt: z.ZodString;
1351
+ localDeleteStatus: z.ZodEnum<{
1352
+ ACKNOWLEDGED: "ACKNOWLEDGED";
1353
+ EXPIRED: "EXPIRED";
1354
+ NOT_REQUIRED: "NOT_REQUIRED";
1355
+ PENDING: "PENDING";
1356
+ }>;
1357
+ localDeleteAcknowledgedAt: z.ZodNullable<z.ZodString>;
1358
+ serverSecretsShreddedAt: z.ZodNullable<z.ZodString>;
1359
+ upstreamRevocationStatus: z.ZodLiteral<"UNKNOWN">;
1360
+ safeToFinalizeAt: z.ZodString;
1361
+ }, z.core.$strict>;
1362
+ export declare const CodexAssignmentRetirementLocalDeleteAckInputSchema: z.ZodObject<{
1363
+ schemaVersion: z.ZodLiteral<2>;
1364
+ expectedRevision: z.ZodNumber;
1365
+ targets: z.ZodArray<z.ZodObject<{
1366
+ lineageId: z.ZodString;
1367
+ generationVersion: z.ZodNumber;
1368
+ }, z.core.$strict>>;
1369
+ }, z.core.$strict>;
1370
+ export declare const CodexAssignmentRetirementPreflightResponseSchema: z.ZodObject<{
1371
+ schemaVersion: z.ZodLiteral<2>;
1372
+ retirement: z.ZodObject<{
1373
+ id: z.ZodString;
1374
+ assignmentId: z.ZodString;
1375
+ revision: z.ZodNumber;
1376
+ reason: z.ZodEnum<{
1377
+ COMPROMISED: "COMPROMISED";
1378
+ REPLACED: "REPLACED";
1379
+ UNASSIGN: "UNASSIGN";
1380
+ }>;
1381
+ status: z.ZodEnum<{
1382
+ COMPROMISED: "COMPROMISED";
1383
+ FINALIZED: "FINALIZED";
1384
+ READY_TO_FINALIZE: "READY_TO_FINALIZE";
1385
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
1386
+ }>;
1387
+ requestedAt: z.ZodString;
1388
+ serverRefreshStoppedAt: z.ZodString;
1389
+ shortLivedCredentialsExpireAt: z.ZodString;
1390
+ localDeleteStatus: z.ZodEnum<{
1391
+ ACKNOWLEDGED: "ACKNOWLEDGED";
1392
+ EXPIRED: "EXPIRED";
1393
+ NOT_REQUIRED: "NOT_REQUIRED";
1394
+ PENDING: "PENDING";
1395
+ }>;
1396
+ localDeleteAcknowledgedAt: z.ZodNullable<z.ZodString>;
1397
+ serverSecretsShreddedAt: z.ZodNullable<z.ZodString>;
1398
+ upstreamRevocationStatus: z.ZodLiteral<"UNKNOWN">;
1399
+ safeToFinalizeAt: z.ZodString;
1400
+ }, z.core.$strict>;
1401
+ allowedLocalDeleteTargets: z.ZodArray<z.ZodObject<{
1402
+ lineageId: z.ZodString;
1403
+ generationVersion: z.ZodNumber;
1404
+ }, z.core.$strict>>;
1405
+ allowedActions: z.ZodArray<z.ZodLiteral<"ACKNOWLEDGE_LOCAL_DELETE">>;
1406
+ }, z.core.$strict>;
1407
+ export declare const CodexAssignmentRetirementLocalDeleteAckResponseSchema: z.ZodObject<{
1408
+ schemaVersion: z.ZodLiteral<2>;
1409
+ retirement: z.ZodObject<{
1410
+ id: z.ZodString;
1411
+ assignmentId: z.ZodString;
1412
+ revision: z.ZodNumber;
1413
+ reason: z.ZodEnum<{
1414
+ COMPROMISED: "COMPROMISED";
1415
+ REPLACED: "REPLACED";
1416
+ UNASSIGN: "UNASSIGN";
1417
+ }>;
1418
+ status: z.ZodEnum<{
1419
+ COMPROMISED: "COMPROMISED";
1420
+ FINALIZED: "FINALIZED";
1421
+ READY_TO_FINALIZE: "READY_TO_FINALIZE";
1422
+ RETIREMENT_PENDING: "RETIREMENT_PENDING";
1423
+ }>;
1424
+ requestedAt: z.ZodString;
1425
+ serverRefreshStoppedAt: z.ZodString;
1426
+ shortLivedCredentialsExpireAt: z.ZodString;
1427
+ localDeleteStatus: z.ZodEnum<{
1428
+ ACKNOWLEDGED: "ACKNOWLEDGED";
1429
+ EXPIRED: "EXPIRED";
1430
+ NOT_REQUIRED: "NOT_REQUIRED";
1431
+ PENDING: "PENDING";
1432
+ }>;
1433
+ localDeleteAcknowledgedAt: z.ZodNullable<z.ZodString>;
1434
+ serverSecretsShreddedAt: z.ZodNullable<z.ZodString>;
1435
+ upstreamRevocationStatus: z.ZodLiteral<"UNKNOWN">;
1436
+ safeToFinalizeAt: z.ZodString;
1437
+ }, z.core.$strict>;
1438
+ replayed: z.ZodBoolean;
1439
+ }, z.core.$strict>;
1440
+ export declare const CodexV3CredentialIngressSchema: z.ZodObject<{
1441
+ envelopeVersion: z.ZodLiteral<1>;
1442
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1443
+ keyId: z.ZodString;
1444
+ publicKey: z.ZodString;
1445
+ maxRequestBytes: z.ZodNumber;
1446
+ maxCiphertextBytes: z.ZodNumber;
1447
+ }, z.core.$strict>;
1448
+ export declare const CodexV3CredentialEnvelopeSchema: z.ZodObject<{
1449
+ version: z.ZodLiteral<1>;
1450
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1451
+ keyId: z.ZodString;
1452
+ ephemeralPublicKey: z.ZodString;
1453
+ salt: z.ZodString;
1454
+ nonce: z.ZodString;
1455
+ ciphertext: z.ZodString;
1456
+ authenticationTag: z.ZodString;
1457
+ }, z.core.$strict>;
1458
+ export declare const CodexV3EnrollmentConfigurationSchema: z.ZodObject<{
1459
+ schemaVersion: z.ZodLiteral<3>;
1460
+ ingress: z.ZodObject<{
1461
+ envelopeVersion: z.ZodLiteral<1>;
1462
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1463
+ keyId: z.ZodString;
1464
+ publicKey: z.ZodString;
1465
+ maxRequestBytes: z.ZodNumber;
1466
+ maxCiphertextBytes: z.ZodNumber;
1467
+ }, z.core.$strict>;
1468
+ }, z.core.$strict>;
1469
+ export declare const CodexV3EnrollmentInputSchema: z.ZodObject<{
1470
+ clientRequestId: z.ZodString;
1471
+ envelope: z.ZodObject<{
1472
+ version: z.ZodLiteral<1>;
1473
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1474
+ keyId: z.ZodString;
1475
+ ephemeralPublicKey: z.ZodString;
1476
+ salt: z.ZodString;
1477
+ nonce: z.ZodString;
1478
+ ciphertext: z.ZodString;
1479
+ authenticationTag: z.ZodString;
1480
+ }, z.core.$strict>;
1481
+ }, z.core.$strict>;
1482
+ export declare const CodexV3EnrollmentSchema: z.ZodObject<{
1483
+ id: z.ZodString;
1484
+ clientRequestId: z.ZodString;
1485
+ status: z.ZodEnum<{
1486
+ NEEDS_REAUTH: "NEEDS_REAUTH";
1487
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
1488
+ READY: "READY";
1489
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
1490
+ VALIDATING: "VALIDATING";
1491
+ }>;
1492
+ assignmentId: z.ZodNullable<z.ZodString>;
1493
+ managedAccountId: z.ZodNullable<z.ZodString>;
1494
+ providerAccountId: z.ZodNullable<z.ZodString>;
1495
+ lineageId: z.ZodNullable<z.ZodString>;
1496
+ generationVersion: z.ZodNullable<z.ZodNumber>;
1497
+ authorityMode: z.ZodLiteral<"SERVER_VALIDATING">;
1498
+ createdAt: z.ZodString;
1499
+ completedAt: z.ZodNullable<z.ZodString>;
1500
+ safeErrorCode: z.ZodNullable<z.ZodString>;
1501
+ }, z.core.$strict>;
1502
+ export declare const CodexV3EnrollmentResponseSchema: z.ZodObject<{
1503
+ schemaVersion: z.ZodLiteral<3>;
1504
+ enrollment: z.ZodObject<{
1505
+ id: z.ZodString;
1506
+ clientRequestId: z.ZodString;
1507
+ status: z.ZodEnum<{
1508
+ NEEDS_REAUTH: "NEEDS_REAUTH";
1509
+ OUTCOME_AMBIGUOUS: "OUTCOME_AMBIGUOUS";
1510
+ READY: "READY";
1511
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
1512
+ VALIDATING: "VALIDATING";
1513
+ }>;
1514
+ assignmentId: z.ZodNullable<z.ZodString>;
1515
+ managedAccountId: z.ZodNullable<z.ZodString>;
1516
+ providerAccountId: z.ZodNullable<z.ZodString>;
1517
+ lineageId: z.ZodNullable<z.ZodString>;
1518
+ generationVersion: z.ZodNullable<z.ZodNumber>;
1519
+ authorityMode: z.ZodLiteral<"SERVER_VALIDATING">;
1520
+ createdAt: z.ZodString;
1521
+ completedAt: z.ZodNullable<z.ZodString>;
1522
+ safeErrorCode: z.ZodNullable<z.ZodString>;
1523
+ }, z.core.$strict>;
1524
+ replayed: z.ZodBoolean;
1525
+ }, z.core.$strict>;
1526
+ export declare const CodexV3AccessTokenHealthSchema: z.ZodEnum<{
1527
+ EXPIRED: "EXPIRED";
1528
+ HEALTHY: "HEALTHY";
1529
+ REJECTED: "REJECTED";
1530
+ UNKNOWN: "UNKNOWN";
1531
+ }>;
1532
+ export declare const CodexV3RefreshTokenHealthSchema: z.ZodEnum<{
1533
+ HEALTHY: "HEALTHY";
1534
+ REJECTED: "REJECTED";
1535
+ UNKNOWN: "UNKNOWN";
1536
+ }>;
1537
+ export declare const CodexV3CredentialAssignmentSchema: z.ZodObject<{
1538
+ assignmentId: z.ZodString;
1539
+ managedAccountId: z.ZodString;
1540
+ label: z.ZodString;
1541
+ providerAccountId: z.ZodString;
1542
+ lineageId: z.ZodString;
1543
+ lineageStatus: z.ZodEnum<{
1544
+ ACTIVE: "ACTIVE";
1545
+ NEEDS_REAUTH: "NEEDS_REAUTH";
1546
+ READY: "READY";
1547
+ STALE: "STALE";
1548
+ }>;
1549
+ authorityMode: z.ZodEnum<{
1550
+ CLIENT_MANAGED: "CLIENT_MANAGED";
1551
+ DELIVERY_PENDING: "DELIVERY_PENDING";
1552
+ SERVER_VALIDATING: "SERVER_VALIDATING";
1553
+ }>;
1554
+ authorityEpoch: z.ZodNumber;
1555
+ currentGenerationVersion: z.ZodNumber;
1556
+ accessTokenHealth: z.ZodEnum<{
1557
+ EXPIRED: "EXPIRED";
1558
+ HEALTHY: "HEALTHY";
1559
+ REJECTED: "REJECTED";
1560
+ UNKNOWN: "UNKNOWN";
1561
+ }>;
1562
+ refreshTokenHealth: z.ZodEnum<{
1563
+ HEALTHY: "HEALTHY";
1564
+ REJECTED: "REJECTED";
1565
+ UNKNOWN: "UNKNOWN";
1566
+ }>;
1567
+ credentialExpiresAt: z.ZodString;
1568
+ lastObservedAt: z.ZodString;
1569
+ deliveryEligible: z.ZodBoolean;
1570
+ }, z.core.$strict>;
1571
+ export declare const CodexV3CredentialAssignmentListResponseSchema: z.ZodObject<{
1572
+ schemaVersion: z.ZodLiteral<3>;
1573
+ items: z.ZodArray<z.ZodObject<{
1574
+ assignmentId: z.ZodString;
1575
+ managedAccountId: z.ZodString;
1576
+ label: z.ZodString;
1577
+ providerAccountId: z.ZodString;
1578
+ lineageId: z.ZodString;
1579
+ lineageStatus: z.ZodEnum<{
1580
+ ACTIVE: "ACTIVE";
1581
+ NEEDS_REAUTH: "NEEDS_REAUTH";
1582
+ READY: "READY";
1583
+ STALE: "STALE";
1584
+ }>;
1585
+ authorityMode: z.ZodEnum<{
1586
+ CLIENT_MANAGED: "CLIENT_MANAGED";
1587
+ DELIVERY_PENDING: "DELIVERY_PENDING";
1588
+ SERVER_VALIDATING: "SERVER_VALIDATING";
1589
+ }>;
1590
+ authorityEpoch: z.ZodNumber;
1591
+ currentGenerationVersion: z.ZodNumber;
1592
+ accessTokenHealth: z.ZodEnum<{
1593
+ EXPIRED: "EXPIRED";
1594
+ HEALTHY: "HEALTHY";
1595
+ REJECTED: "REJECTED";
1596
+ UNKNOWN: "UNKNOWN";
1597
+ }>;
1598
+ refreshTokenHealth: z.ZodEnum<{
1599
+ HEALTHY: "HEALTHY";
1600
+ REJECTED: "REJECTED";
1601
+ UNKNOWN: "UNKNOWN";
1602
+ }>;
1603
+ credentialExpiresAt: z.ZodString;
1604
+ lastObservedAt: z.ZodString;
1605
+ deliveryEligible: z.ZodBoolean;
1606
+ }, z.core.$strict>>;
1607
+ total: z.ZodNumber;
1608
+ }, z.core.$strict>;
1609
+ export declare const CodexV3FullCredentialDeliveryRequestSchema: z.ZodObject<{
1610
+ schemaVersion: z.ZodLiteral<3>;
1611
+ clientRequestId: z.ZodString;
1612
+ clientKey: z.ZodObject<{
1613
+ version: z.ZodLiteral<1>;
1614
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1615
+ publicKey: z.ZodString;
1616
+ }, z.core.$strict>;
1617
+ }, z.core.$strict>;
1618
+ export declare const CodexV3FullCredentialDeliveryResponseSchema: z.ZodObject<{
1619
+ schemaVersion: z.ZodLiteral<3>;
1620
+ delivery: z.ZodObject<{
1621
+ id: z.ZodString;
1622
+ credentialKind: z.ZodLiteral<"FULL">;
1623
+ clientRequestId: z.ZodString;
1624
+ assignmentId: z.ZodString;
1625
+ managedAccountId: z.ZodString;
1626
+ providerAccountId: z.ZodString;
1627
+ subject: z.ZodString;
1628
+ lineageId: z.ZodString;
1629
+ generationVersion: z.ZodNumber;
1630
+ issuedAt: z.ZodString;
1631
+ credentialExpiresAt: z.ZodString;
1632
+ ackExpiresAt: z.ZodString;
1633
+ ackedAt: z.ZodNullable<z.ZodString>;
1634
+ status: z.ZodLiteral<"AWAITING_ACK">;
1635
+ authorityMode: z.ZodLiteral<"DELIVERY_PENDING">;
1636
+ envelope: z.ZodObject<{
1637
+ version: z.ZodLiteral<1>;
1638
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1639
+ ephemeralPublicKey: z.ZodString;
1640
+ salt: z.ZodString;
1641
+ nonce: z.ZodString;
1642
+ ciphertext: z.ZodString;
1643
+ authenticationTag: z.ZodString;
1644
+ }, z.core.$strict>;
1645
+ }, z.core.$strict>;
1646
+ replayed: z.ZodBoolean;
1647
+ }, z.core.$strict>;
1648
+ export declare const CodexV3FullCredentialDeliveryAckInputSchema: z.ZodObject<{
1649
+ generationVersion: z.ZodNumber;
1650
+ installed: z.ZodLiteral<true>;
1651
+ }, z.core.$strict>;
1652
+ export declare const CodexV3FullCredentialDeliveryAckResponseSchema: z.ZodObject<{
1653
+ schemaVersion: z.ZodLiteral<3>;
1654
+ delivery: z.ZodObject<{
1655
+ id: z.ZodString;
1656
+ credentialKind: z.ZodLiteral<"FULL">;
1657
+ clientRequestId: z.ZodString;
1658
+ assignmentId: z.ZodString;
1659
+ managedAccountId: z.ZodString;
1660
+ providerAccountId: z.ZodString;
1661
+ subject: z.ZodString;
1662
+ lineageId: z.ZodString;
1663
+ generationVersion: z.ZodNumber;
1664
+ issuedAt: z.ZodString;
1665
+ credentialExpiresAt: z.ZodString;
1666
+ ackExpiresAt: z.ZodString;
1667
+ status: z.ZodLiteral<"ACKED">;
1668
+ authorityMode: z.ZodLiteral<"CLIENT_MANAGED">;
1669
+ authorityEpoch: z.ZodNumber;
1670
+ ackedAt: z.ZodString;
1671
+ }, z.core.$strict>;
1672
+ replayed: z.ZodBoolean;
1673
+ }, z.core.$strict>;
1674
+ export declare const CodexV3FullCredentialBundleSchema: z.ZodObject<{
1675
+ schemaVersion: z.ZodLiteral<3>;
1676
+ deliveryId: z.ZodString;
1677
+ managedAccountId: z.ZodString;
1678
+ providerAccountId: z.ZodString;
1679
+ lineageId: z.ZodString;
1680
+ generationVersion: z.ZodNumber;
1681
+ refreshToken: z.ZodString;
1682
+ accessToken: z.ZodString;
1683
+ idToken: z.ZodString;
1684
+ expiresAt: z.ZodString;
1685
+ }, z.core.$strict>;
1686
+ export declare const CodexV3GenerationReportInputSchema: z.ZodObject<{
1687
+ clientRequestId: z.ZodString;
1688
+ expectedGenerationVersion: z.ZodNumber;
1689
+ rotationMode: z.ZodEnum<{
1690
+ RETAINED: "RETAINED";
1691
+ ROTATED: "ROTATED";
1692
+ }>;
1693
+ envelope: z.ZodObject<{
1694
+ version: z.ZodLiteral<1>;
1695
+ algorithm: z.ZodLiteral<"X25519-HKDF-SHA256-AES-256-GCM">;
1696
+ keyId: z.ZodString;
1697
+ ephemeralPublicKey: z.ZodString;
1698
+ salt: z.ZodString;
1699
+ nonce: z.ZodString;
1700
+ ciphertext: z.ZodString;
1701
+ authenticationTag: z.ZodString;
1702
+ }, z.core.$strict>;
1703
+ accessTokenHealth: z.ZodEnum<{
1704
+ EXPIRED: "EXPIRED";
1705
+ HEALTHY: "HEALTHY";
1706
+ REJECTED: "REJECTED";
1707
+ UNKNOWN: "UNKNOWN";
1708
+ }>;
1709
+ refreshTokenHealth: z.ZodEnum<{
1710
+ HEALTHY: "HEALTHY";
1711
+ REJECTED: "REJECTED";
1712
+ UNKNOWN: "UNKNOWN";
1713
+ }>;
1714
+ observedAt: z.ZodString;
1715
+ }, z.core.$strict>;
1716
+ export declare const CodexV3GenerationReportResponseSchema: z.ZodObject<{
1717
+ schemaVersion: z.ZodLiteral<3>;
1718
+ report: z.ZodObject<{
1719
+ id: z.ZodString;
1720
+ clientRequestId: z.ZodString;
1721
+ lineageId: z.ZodString;
1722
+ previousGenerationVersion: z.ZodNumber;
1723
+ generationVersion: z.ZodNumber;
1724
+ rotationMode: z.ZodEnum<{
1725
+ RETAINED: "RETAINED";
1726
+ ROTATED: "ROTATED";
1727
+ }>;
1728
+ accessTokenHealth: z.ZodEnum<{
1729
+ EXPIRED: "EXPIRED";
1730
+ HEALTHY: "HEALTHY";
1731
+ REJECTED: "REJECTED";
1732
+ UNKNOWN: "UNKNOWN";
1733
+ }>;
1734
+ refreshTokenHealth: z.ZodEnum<{
1735
+ HEALTHY: "HEALTHY";
1736
+ REJECTED: "REJECTED";
1737
+ UNKNOWN: "UNKNOWN";
1738
+ }>;
1739
+ credentialExpiresAt: z.ZodString;
1740
+ observedAt: z.ZodString;
1741
+ status: z.ZodLiteral<"APPLIED">;
1742
+ authorityMode: z.ZodLiteral<"CLIENT_MANAGED">;
1743
+ authorityEpoch: z.ZodNumber;
1744
+ }, z.core.$strict>;
1745
+ replayed: z.ZodBoolean;
1746
+ }, z.core.$strict>;
733
1747
  export type CodexAccountSummary = z.infer<typeof CodexAccountSummarySchema>;
734
1748
  export type CodexQuotaSnapshotView = z.infer<typeof CodexQuotaSnapshotViewSchema>;
735
1749
  export type CodexAccountListResponse = z.infer<typeof CodexAccountListResponseSchema>;
@@ -746,7 +1760,63 @@ export type CodexAdminAssignment = z.infer<typeof CodexAdminAssignmentSchema>;
746
1760
  export type CodexAdminAssignmentListResponse = z.infer<typeof CodexAdminAssignmentListResponseSchema>;
747
1761
  export type CodexAdminAssignmentMutationResponse = z.infer<typeof CodexAdminAssignmentMutationResponseSchema>;
748
1762
  export type CodexAdminAssignmentDeleteResponse = z.infer<typeof CodexAdminAssignmentDeleteResponseSchema>;
1763
+ export type CodexEnrollmentIntentReason = z.infer<typeof CodexEnrollmentIntentReasonSchema>;
1764
+ export type CodexEnrollmentIntentStatus = z.infer<typeof CodexEnrollmentIntentStatusSchema>;
1765
+ export type CodexEnrollmentIntent = z.infer<typeof CodexEnrollmentIntentSchema>;
1766
+ export type CodexEnrollmentCandidateIngress = z.infer<typeof CodexEnrollmentCandidateIngressSchema>;
1767
+ export type CodexEnrollmentCapabilities = z.infer<typeof CodexEnrollmentCapabilitiesSchema>;
1768
+ export type CodexEnrollmentIntentResponse = z.infer<typeof CodexEnrollmentIntentResponseSchema>;
1769
+ export type CodexEnrollmentMutationInput = z.infer<typeof CodexEnrollmentMutationInputSchema>;
1770
+ export type CodexEnrollmentHeartbeatInput = z.infer<typeof CodexEnrollmentHeartbeatInputSchema>;
1771
+ export type CodexEnrollmentCandidateEnvelope = z.infer<typeof CodexEnrollmentCandidateEnvelopeSchema>;
1772
+ export type CodexEnrollmentCandidateInput = z.infer<typeof CodexEnrollmentCandidateInputSchema>;
1773
+ export type CodexEnrollmentCandidateResponse = z.infer<typeof CodexEnrollmentCandidateResponseSchema>;
1774
+ export type CodexMigrationPlanStatus = z.infer<typeof CodexMigrationPlanStatusSchema>;
1775
+ export type CodexMigrationTarget = z.infer<typeof CodexMigrationTargetSchema>;
1776
+ export type CodexMigrationLoginQueueResponse = z.infer<typeof CodexMigrationLoginQueueResponseSchema>;
1777
+ export type CodexUserCredentialAssignment = z.infer<typeof CodexUserCredentialAssignmentSchema>;
1778
+ export type CodexUserCredentialAssignmentListResponse = z.infer<typeof CodexUserCredentialAssignmentListResponseSchema>;
1779
+ export type CodexShortLivedDeliveryClientKey = z.infer<typeof CodexShortLivedDeliveryClientKeySchema>;
1780
+ export type CodexShortLivedDeliveryRequest = z.infer<typeof CodexShortLivedDeliveryRequestSchema>;
1781
+ export type CodexShortLivedDeliveryResponse = z.infer<typeof CodexShortLivedDeliveryResponseSchema>;
1782
+ export type CodexShortLivedDeliveryAckInput = z.infer<typeof CodexShortLivedDeliveryAckInputSchema>;
1783
+ export type CodexShortLivedDeliveryAckResponse = z.infer<typeof CodexShortLivedDeliveryAckResponseSchema>;
1784
+ export type CodexShortLivedCredentialBundle = z.infer<typeof CodexShortLivedCredentialBundleSchema>;
1785
+ export type CodexAssignmentRetirement = z.infer<typeof CodexAssignmentRetirementSchema>;
1786
+ export type CodexAssignmentRetirementLocalDeleteAckInput = z.infer<typeof CodexAssignmentRetirementLocalDeleteAckInputSchema>;
1787
+ export type CodexAssignmentRetirementPreflightResponse = z.infer<typeof CodexAssignmentRetirementPreflightResponseSchema>;
1788
+ export type CodexAssignmentRetirementLocalDeleteAckResponse = z.infer<typeof CodexAssignmentRetirementLocalDeleteAckResponseSchema>;
1789
+ export type CodexV3CredentialIngress = z.infer<typeof CodexV3CredentialIngressSchema>;
1790
+ export type CodexV3CredentialEnvelope = z.infer<typeof CodexV3CredentialEnvelopeSchema>;
1791
+ export type CodexV3EnrollmentConfiguration = z.infer<typeof CodexV3EnrollmentConfigurationSchema>;
1792
+ export type CodexV3EnrollmentInput = z.infer<typeof CodexV3EnrollmentInputSchema>;
1793
+ export type CodexV3EnrollmentResponse = z.infer<typeof CodexV3EnrollmentResponseSchema>;
1794
+ export type CodexV3CredentialAssignment = z.infer<typeof CodexV3CredentialAssignmentSchema>;
1795
+ export type CodexV3CredentialAssignmentListResponse = z.infer<typeof CodexV3CredentialAssignmentListResponseSchema>;
1796
+ export type CodexV3FullCredentialDeliveryRequest = z.infer<typeof CodexV3FullCredentialDeliveryRequestSchema>;
1797
+ export type CodexV3FullCredentialDeliveryResponse = z.infer<typeof CodexV3FullCredentialDeliveryResponseSchema>;
1798
+ export type CodexV3FullCredentialDeliveryAckInput = z.infer<typeof CodexV3FullCredentialDeliveryAckInputSchema>;
1799
+ export type CodexV3FullCredentialDeliveryAckResponse = z.infer<typeof CodexV3FullCredentialDeliveryAckResponseSchema>;
1800
+ export type CodexV3FullCredentialBundle = z.infer<typeof CodexV3FullCredentialBundleSchema>;
1801
+ export type CodexV3GenerationReportInput = z.infer<typeof CodexV3GenerationReportInputSchema>;
1802
+ export type CodexV3GenerationReportResponse = z.infer<typeof CodexV3GenerationReportResponseSchema>;
749
1803
  export declare function codexAccountLoginCredentialsPath(accountId: string): string;
750
1804
  export declare function codexAdminCredentialVersionsPath(accountId: string): string;
751
1805
  export declare function codexAdminRefreshPath(accountId: string): string;
752
1806
  export declare function codexAdminAssignmentPath(assignmentId: string): string;
1807
+ export declare function codexAdminEnrollmentIntentPath(intentId: string): string;
1808
+ export declare function codexAdminEnrollmentIntentActionPath(intentId: string, action: "claim" | "heartbeat" | "cancel" | "candidate"): string;
1809
+ export declare function codexAdminMigrationLoginQueuePath(planId: string, query: {
1810
+ page: number;
1811
+ pageSize: number;
1812
+ }): string;
1813
+ export declare function codexAssignmentShortLivedDeliveriesPath(assignmentId: string): string;
1814
+ export declare function codexShortLivedDeliveryAckPath(deliveryId: string): string;
1815
+ export declare function codexAssignmentRetirementLocalDeleteAckPath(retirementId: string): string;
1816
+ export declare function codexAssignmentRetirementPath(retirementId: string): string;
1817
+ export declare function codexV3EnrollmentResolvePath(clientRequestId: string): string;
1818
+ export declare function codexV3AssignmentFullCredentialDeliveriesPath(assignmentId: string): string;
1819
+ export declare function codexV3AssignmentFullCredentialDeliveryResolvePath(assignmentId: string, clientRequestId: string): string;
1820
+ export declare function codexV3FullCredentialDeliveryAckPath(deliveryId: string): string;
1821
+ export declare function codexV3LineageGenerationReportsPath(lineageId: string): string;
1822
+ export declare function codexV3LineageGenerationReportResolvePath(lineageId: string, clientRequestId: string): string;