@effect-auth/core 0.1.0-alpha.3 → 0.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -13
- package/dist/ApiKey.d.ts +207 -0
- package/dist/ApiKey.d.ts.map +1 -0
- package/dist/ApiKey.js +275 -0
- package/dist/ApiKey.js.map +1 -0
- package/dist/AuditLog.d.ts +204 -1
- package/dist/AuditLog.d.ts.map +1 -1
- package/dist/AuditLog.js +170 -0
- package/dist/AuditLog.js.map +1 -1
- package/dist/AuthConfig.d.ts +0 -9
- package/dist/AuthConfig.d.ts.map +1 -1
- package/dist/AuthConfig.js +1 -14
- package/dist/AuthConfig.js.map +1 -1
- package/dist/AuthFlow.d.ts +220 -51
- package/dist/AuthFlow.d.ts.map +1 -1
- package/dist/AuthFlow.js +550 -22
- package/dist/AuthFlow.js.map +1 -1
- package/dist/AuthKernel.d.ts +1 -1
- package/dist/Challenge.d.ts +5 -1
- package/dist/Challenge.d.ts.map +1 -1
- package/dist/Challenge.js +58 -48
- package/dist/Challenge.js.map +1 -1
- package/dist/Client.d.ts +263 -1
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +533 -1
- package/dist/Client.js.map +1 -1
- package/dist/D1Kysely.d.ts +1 -1
- package/dist/D1Kysely.d.ts.map +1 -1
- package/dist/EffectQbSqliteStorage.d.ts +115 -3
- package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
- package/dist/EffectQbSqliteStorage.js +314 -4
- package/dist/EffectQbSqliteStorage.js.map +1 -1
- package/dist/EmailOtp.d.ts +5 -2
- package/dist/EmailOtp.d.ts.map +1 -1
- package/dist/EmailOtp.js +11 -4
- package/dist/EmailOtp.js.map +1 -1
- package/dist/EmailVerification.d.ts +2 -2
- package/dist/EmailVerification.d.ts.map +1 -1
- package/dist/EmailVerification.js +2 -3
- package/dist/EmailVerification.js.map +1 -1
- package/dist/HttpApi/Api.d.ts +1363 -19
- package/dist/HttpApi/Api.d.ts.map +1 -1
- package/dist/HttpApi/Api.js +1625 -20
- package/dist/HttpApi/Api.js.map +1 -1
- package/dist/HttpApi/Endpoints.d.ts +682 -0
- package/dist/HttpApi/Endpoints.d.ts.map +1 -1
- package/dist/HttpApi/Endpoints.js +252 -1
- package/dist/HttpApi/Endpoints.js.map +1 -1
- package/dist/HttpApi/Schemas.d.ts +841 -0
- package/dist/HttpApi/Schemas.d.ts.map +1 -1
- package/dist/HttpApi/Schemas.js +513 -1
- package/dist/HttpApi/Schemas.js.map +1 -1
- package/dist/HttpApi/Security.d.ts +13 -1
- package/dist/HttpApi/Security.d.ts.map +1 -1
- package/dist/HttpApi/Security.js +107 -16
- package/dist/HttpApi/Security.js.map +1 -1
- package/dist/HttpApi/Transport.d.ts +36 -2
- package/dist/HttpApi/Transport.d.ts.map +1 -1
- package/dist/HttpApi/Transport.js +151 -9
- package/dist/HttpApi/Transport.js.map +1 -1
- package/dist/Jwt.d.ts +271 -0
- package/dist/Jwt.d.ts.map +1 -0
- package/dist/Jwt.js +512 -0
- package/dist/Jwt.js.map +1 -0
- package/dist/KyselyStorage.d.ts +151 -1
- package/dist/KyselyStorage.d.ts.map +1 -1
- package/dist/KyselyStorage.js +1021 -4
- package/dist/KyselyStorage.js.map +1 -1
- package/dist/LoginApproval.d.ts +314 -0
- package/dist/LoginApproval.d.ts.map +1 -0
- package/dist/LoginApproval.js +551 -0
- package/dist/LoginApproval.js.map +1 -0
- package/dist/LoginNotification.d.ts +183 -0
- package/dist/LoginNotification.d.ts.map +1 -0
- package/dist/LoginNotification.js +329 -0
- package/dist/LoginNotification.js.map +1 -0
- package/dist/LoginRisk.d.ts +73 -0
- package/dist/LoginRisk.d.ts.map +1 -0
- package/dist/LoginRisk.js +57 -0
- package/dist/LoginRisk.js.map +1 -0
- package/dist/MagicLink.d.ts +85 -0
- package/dist/MagicLink.d.ts.map +1 -0
- package/dist/MagicLink.js +206 -0
- package/dist/MagicLink.js.map +1 -0
- package/dist/Mailer.d.ts +33 -2
- package/dist/Mailer.d.ts.map +1 -1
- package/dist/Mailer.js +107 -0
- package/dist/Mailer.js.map +1 -1
- package/dist/OAuth.d.ts +742 -0
- package/dist/OAuth.d.ts.map +1 -0
- package/dist/OAuth.js +1387 -0
- package/dist/OAuth.js.map +1 -0
- package/dist/Passkey.d.ts +334 -0
- package/dist/Passkey.d.ts.map +1 -0
- package/dist/Passkey.js +422 -0
- package/dist/Passkey.js.map +1 -0
- package/dist/Password.d.ts +138 -8
- package/dist/Password.d.ts.map +1 -1
- package/dist/Password.js +397 -8
- package/dist/Password.js.map +1 -1
- package/dist/RecoveryCode.d.ts +169 -0
- package/dist/RecoveryCode.d.ts.map +1 -0
- package/dist/RecoveryCode.js +299 -0
- package/dist/RecoveryCode.js.map +1 -0
- package/dist/RefreshToken.d.ts +222 -0
- package/dist/RefreshToken.d.ts.map +1 -0
- package/dist/RefreshToken.js +342 -0
- package/dist/RefreshToken.js.map +1 -0
- package/dist/Sessions.d.ts +52 -2
- package/dist/Sessions.d.ts.map +1 -1
- package/dist/Sessions.js +123 -1
- package/dist/Sessions.js.map +1 -1
- package/dist/StepUp.d.ts +44 -0
- package/dist/StepUp.d.ts.map +1 -0
- package/dist/StepUp.js +82 -0
- package/dist/StepUp.js.map +1 -0
- package/dist/Storage.d.ts +14 -1
- package/dist/Storage.d.ts.map +1 -1
- package/dist/Storage.js.map +1 -1
- package/dist/StorageMigrations.d.ts +10 -1
- package/dist/StorageMigrations.d.ts.map +1 -1
- package/dist/StorageMigrations.js +179 -0
- package/dist/StorageMigrations.js.map +1 -1
- package/dist/Testing.d.ts +1 -1
- package/dist/Totp.d.ts +220 -0
- package/dist/Totp.d.ts.map +1 -0
- package/dist/Totp.js +477 -0
- package/dist/Totp.js.map +1 -0
- package/dist/TrustedDevice.d.ts +115 -0
- package/dist/TrustedDevice.d.ts.map +1 -0
- package/dist/TrustedDevice.js +222 -0
- package/dist/TrustedDevice.js.map +1 -0
- package/dist/Webhook.d.ts +72 -0
- package/dist/Webhook.d.ts.map +1 -0
- package/dist/Webhook.js +82 -0
- package/dist/Webhook.js.map +1 -0
- package/dist/alchemy/cloudflare/Email.d.ts +25 -0
- package/dist/alchemy/cloudflare/Email.d.ts.map +1 -0
- package/dist/alchemy/cloudflare/Email.js +117 -0
- package/dist/alchemy/cloudflare/Email.js.map +1 -0
- package/dist/cloudflare/Email.d.ts +25 -0
- package/dist/cloudflare/Email.d.ts.map +1 -0
- package/dist/cloudflare/Email.js +153 -0
- package/dist/cloudflare/Email.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/migrations/0003_auth_login_approval_review.sql +22 -0
- package/migrations/0004_auth_trusted_device.sql +12 -0
- package/migrations/0005_auth_passkey.sql +17 -0
- package/migrations/0006_auth_totp_factor.sql +17 -0
- package/migrations/0007_auth_recovery_code.sql +13 -0
- package/migrations/0008_auth_api_key.sql +17 -0
- package/migrations/0009_auth_refresh_token.sql +21 -0
- package/migrations/0010_auth_jwt_revocation.sql +8 -0
- package/migrations/0011_auth_oauth_account.sql +16 -0
- package/package.json +65 -1
|
@@ -9,6 +9,25 @@ export declare const PasswordSignUpBody: Schema.Struct<{
|
|
|
9
9
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
10
10
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
11
11
|
}>;
|
|
12
|
+
export declare const PasswordResetStartBody: Schema.Struct<{
|
|
13
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
14
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
15
|
+
readonly locale: Schema.optional<Schema.String>;
|
|
16
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const PasswordResetVerifyBody: Schema.Struct<{
|
|
19
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
20
|
+
readonly secret: Schema.String;
|
|
21
|
+
readonly password: Schema.String;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const PasswordSetBody: Schema.Struct<{
|
|
24
|
+
readonly password: Schema.String;
|
|
25
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const PasswordChangeBody: Schema.Struct<{
|
|
28
|
+
readonly currentPassword: Schema.String;
|
|
29
|
+
readonly newPassword: Schema.String;
|
|
30
|
+
}>;
|
|
12
31
|
export declare const EmailVerificationStartBody: Schema.Struct<{
|
|
13
32
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
14
33
|
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
@@ -19,6 +38,685 @@ export declare const EmailVerificationVerifyBody: Schema.Struct<{
|
|
|
19
38
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
20
39
|
readonly secret: Schema.optional<Schema.String>;
|
|
21
40
|
}>;
|
|
41
|
+
export declare const EmailOtpStartBody: Schema.Struct<{
|
|
42
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
43
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
44
|
+
readonly locale: Schema.optional<Schema.String>;
|
|
45
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const EmailOtpStartedBody: Schema.Struct<{
|
|
48
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
49
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
50
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const EmailOtpVerifyBody: Schema.Struct<{
|
|
53
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
54
|
+
readonly secret: Schema.String;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const MagicLinkStartBody: Schema.Struct<{
|
|
57
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
58
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
59
|
+
readonly locale: Schema.optional<Schema.String>;
|
|
60
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
61
|
+
}>;
|
|
62
|
+
export declare const MagicLinkStartedBody: Schema.Struct<{
|
|
63
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
64
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const MagicLinkVerifyBody: Schema.Struct<{
|
|
67
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
68
|
+
readonly secret: Schema.String;
|
|
69
|
+
}>;
|
|
70
|
+
export declare const OAuthAuthorizationStartBody: Schema.Struct<{
|
|
71
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
72
|
+
readonly redirectUri: Schema.optional<Schema.String>;
|
|
73
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
74
|
+
readonly authorizationParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
75
|
+
readonly codeVerifier: Schema.optional<Schema.String>;
|
|
76
|
+
readonly includeNonce: Schema.optional<Schema.Boolean>;
|
|
77
|
+
readonly nonce: Schema.optional<Schema.String>;
|
|
78
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const OAuthAuthorizationStartedBody: Schema.Struct<{
|
|
81
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
82
|
+
readonly authorizationUrl: Schema.String;
|
|
83
|
+
readonly state: Schema.String;
|
|
84
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
85
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
86
|
+
readonly codeChallenge: Schema.String;
|
|
87
|
+
readonly codeChallengeMethod: Schema.Literal<"S256">;
|
|
88
|
+
readonly nonce: Schema.optional<Schema.String>;
|
|
89
|
+
readonly redirectUri: Schema.String;
|
|
90
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
91
|
+
}>;
|
|
92
|
+
export declare const OAuthAuthorizationCallbackBody: Schema.Struct<{
|
|
93
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
94
|
+
readonly state: Schema.String;
|
|
95
|
+
readonly code: Schema.optional<Schema.String>;
|
|
96
|
+
readonly error: Schema.optional<Schema.String>;
|
|
97
|
+
readonly errorDescription: Schema.optional<Schema.String>;
|
|
98
|
+
readonly errorUri: Schema.optional<Schema.String>;
|
|
99
|
+
readonly authorizationUser: Schema.optional<Schema.Unknown>;
|
|
100
|
+
}>;
|
|
101
|
+
export declare const OAuthAccountUnlinkBody: Schema.Struct<{
|
|
102
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
103
|
+
readonly providerAccountId: Schema.String;
|
|
104
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const OAuthLinkedAccountHttpBody: Schema.Struct<{
|
|
107
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
108
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
109
|
+
readonly providerAccountId: Schema.String;
|
|
110
|
+
}>;
|
|
111
|
+
export declare const OAuthAccountUnlinkAllowedBody: Schema.Struct<{
|
|
112
|
+
readonly type: Schema.Literal<"allow">;
|
|
113
|
+
readonly reason: Schema.Literal<"owned-account">;
|
|
114
|
+
readonly account: Schema.Struct<{
|
|
115
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
116
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
117
|
+
readonly providerAccountId: Schema.String;
|
|
118
|
+
}>;
|
|
119
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
120
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
121
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
122
|
+
readonly providerAccountId: Schema.String;
|
|
123
|
+
}>>;
|
|
124
|
+
readonly unlinked: Schema.Boolean;
|
|
125
|
+
}>;
|
|
126
|
+
export declare const OAuthAccountUnlinkRequiresStepUpBody: Schema.Struct<{
|
|
127
|
+
readonly type: Schema.Literal<"requires-step-up">;
|
|
128
|
+
readonly reason: Schema.Literal<"step-up-required">;
|
|
129
|
+
readonly account: Schema.Struct<{
|
|
130
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
131
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
132
|
+
readonly providerAccountId: Schema.String;
|
|
133
|
+
}>;
|
|
134
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
135
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
136
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
137
|
+
readonly providerAccountId: Schema.String;
|
|
138
|
+
}>>;
|
|
139
|
+
}>;
|
|
140
|
+
export declare const OAuthAccountUnlinkDenyNotFoundBody: Schema.Struct<{
|
|
141
|
+
readonly type: Schema.Literal<"deny-not-found">;
|
|
142
|
+
readonly reason: Schema.Literal<"provider-account-not-found">;
|
|
143
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
144
|
+
readonly providerAccountId: Schema.String;
|
|
145
|
+
}>;
|
|
146
|
+
export declare const OAuthAccountUnlinkDenyNotOwnerBody: Schema.Struct<{
|
|
147
|
+
readonly type: Schema.Literal<"deny-not-owner">;
|
|
148
|
+
readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
|
|
149
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
150
|
+
readonly providerAccountId: Schema.String;
|
|
151
|
+
}>;
|
|
152
|
+
export declare const OAuthAccountUnlinkDenyLastAccountBody: Schema.Struct<{
|
|
153
|
+
readonly type: Schema.Literal<"deny-last-account">;
|
|
154
|
+
readonly reason: Schema.Literal<"last-linked-account">;
|
|
155
|
+
readonly account: Schema.Struct<{
|
|
156
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
157
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
158
|
+
readonly providerAccountId: Schema.String;
|
|
159
|
+
}>;
|
|
160
|
+
}>;
|
|
161
|
+
export declare const OAuthAccountUnlinkResolutionBody: Schema.Union<readonly [Schema.Struct<{
|
|
162
|
+
readonly type: Schema.Literal<"allow">;
|
|
163
|
+
readonly reason: Schema.Literal<"owned-account">;
|
|
164
|
+
readonly account: Schema.Struct<{
|
|
165
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
166
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
167
|
+
readonly providerAccountId: Schema.String;
|
|
168
|
+
}>;
|
|
169
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
170
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
171
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
172
|
+
readonly providerAccountId: Schema.String;
|
|
173
|
+
}>>;
|
|
174
|
+
readonly unlinked: Schema.Boolean;
|
|
175
|
+
}>, Schema.Struct<{
|
|
176
|
+
readonly type: Schema.Literal<"requires-step-up">;
|
|
177
|
+
readonly reason: Schema.Literal<"step-up-required">;
|
|
178
|
+
readonly account: Schema.Struct<{
|
|
179
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
180
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
181
|
+
readonly providerAccountId: Schema.String;
|
|
182
|
+
}>;
|
|
183
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
184
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
185
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
186
|
+
readonly providerAccountId: Schema.String;
|
|
187
|
+
}>>;
|
|
188
|
+
}>, Schema.Struct<{
|
|
189
|
+
readonly type: Schema.Literal<"deny-not-found">;
|
|
190
|
+
readonly reason: Schema.Literal<"provider-account-not-found">;
|
|
191
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
192
|
+
readonly providerAccountId: Schema.String;
|
|
193
|
+
}>, Schema.Struct<{
|
|
194
|
+
readonly type: Schema.Literal<"deny-not-owner">;
|
|
195
|
+
readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
|
|
196
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
197
|
+
readonly providerAccountId: Schema.String;
|
|
198
|
+
}>, Schema.Struct<{
|
|
199
|
+
readonly type: Schema.Literal<"deny-last-account">;
|
|
200
|
+
readonly reason: Schema.Literal<"last-linked-account">;
|
|
201
|
+
readonly account: Schema.Struct<{
|
|
202
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
203
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
204
|
+
readonly providerAccountId: Schema.String;
|
|
205
|
+
}>;
|
|
206
|
+
}>]>;
|
|
207
|
+
export declare const PasskeyClientCredentialBody: Schema.Struct<{
|
|
208
|
+
readonly id: Schema.String;
|
|
209
|
+
readonly rawId: Schema.optional<Schema.String>;
|
|
210
|
+
readonly type: Schema.Literal<"public-key">;
|
|
211
|
+
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
212
|
+
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
213
|
+
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
214
|
+
}>;
|
|
215
|
+
export declare const PasskeyRegistrationStartBody: Schema.Struct<{
|
|
216
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
217
|
+
readonly userName: Schema.String;
|
|
218
|
+
readonly userDisplayName: Schema.String;
|
|
219
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
220
|
+
}>;
|
|
221
|
+
export declare const PasskeyRegistrationFinishBody: Schema.Struct<{
|
|
222
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
223
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
224
|
+
readonly credential: Schema.Struct<{
|
|
225
|
+
readonly id: Schema.String;
|
|
226
|
+
readonly rawId: Schema.optional<Schema.String>;
|
|
227
|
+
readonly type: Schema.Literal<"public-key">;
|
|
228
|
+
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
229
|
+
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
230
|
+
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
231
|
+
}>;
|
|
232
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
233
|
+
}>;
|
|
234
|
+
export declare const PasskeyAuthenticationStartBody: Schema.Struct<{
|
|
235
|
+
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
236
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
237
|
+
}>;
|
|
238
|
+
export declare const PasskeyAuthenticationFinishBody: Schema.Struct<{
|
|
239
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
240
|
+
readonly credential: Schema.Struct<{
|
|
241
|
+
readonly id: Schema.String;
|
|
242
|
+
readonly rawId: Schema.optional<Schema.String>;
|
|
243
|
+
readonly type: Schema.Literal<"public-key">;
|
|
244
|
+
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
245
|
+
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
246
|
+
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
247
|
+
}>;
|
|
248
|
+
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
249
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
250
|
+
}>;
|
|
251
|
+
export declare const PasskeyMfaStartBody: Schema.Struct<{
|
|
252
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
253
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
254
|
+
}>;
|
|
255
|
+
export declare const PasskeyMfaVerifyBody: Schema.Struct<{
|
|
256
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
257
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
258
|
+
readonly credential: Schema.Struct<{
|
|
259
|
+
readonly id: Schema.String;
|
|
260
|
+
readonly rawId: Schema.optional<Schema.String>;
|
|
261
|
+
readonly type: Schema.Literal<"public-key">;
|
|
262
|
+
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
263
|
+
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
264
|
+
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
265
|
+
}>;
|
|
266
|
+
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
267
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
268
|
+
}>;
|
|
269
|
+
export declare const PasskeyCredentialDescriptorHttpBody: Schema.Struct<{
|
|
270
|
+
readonly type: Schema.Literal<"public-key">;
|
|
271
|
+
readonly id: Schema.String;
|
|
272
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
273
|
+
}>;
|
|
274
|
+
export declare const PasskeyPublicKeyCredentialParametersHttpBody: Schema.Struct<{
|
|
275
|
+
readonly type: Schema.Literal<"public-key">;
|
|
276
|
+
readonly alg: Schema.Number;
|
|
277
|
+
}>;
|
|
278
|
+
export declare const PasskeyAuthenticatorSelectionHttpBody: Schema.Struct<{
|
|
279
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
280
|
+
readonly residentKey: Schema.optional<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
281
|
+
readonly requireResidentKey: Schema.optional<Schema.Boolean>;
|
|
282
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
283
|
+
}>;
|
|
284
|
+
export declare const PasskeyRegistrationPublicKeyOptionsHttpBody: Schema.Struct<{
|
|
285
|
+
readonly challenge: Schema.String;
|
|
286
|
+
readonly rp: Schema.Struct<{
|
|
287
|
+
readonly id: Schema.String;
|
|
288
|
+
readonly name: Schema.String;
|
|
289
|
+
}>;
|
|
290
|
+
readonly user: Schema.Struct<{
|
|
291
|
+
readonly id: Schema.String;
|
|
292
|
+
readonly name: Schema.String;
|
|
293
|
+
readonly displayName: Schema.String;
|
|
294
|
+
}>;
|
|
295
|
+
readonly pubKeyCredParams: Schema.$Array<Schema.Struct<{
|
|
296
|
+
readonly type: Schema.Literal<"public-key">;
|
|
297
|
+
readonly alg: Schema.Number;
|
|
298
|
+
}>>;
|
|
299
|
+
readonly timeout: Schema.optional<Schema.Number>;
|
|
300
|
+
readonly excludeCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
301
|
+
readonly type: Schema.Literal<"public-key">;
|
|
302
|
+
readonly id: Schema.String;
|
|
303
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
304
|
+
}>>>;
|
|
305
|
+
readonly authenticatorSelection: Schema.optional<Schema.Struct<{
|
|
306
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
307
|
+
readonly residentKey: Schema.optional<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
308
|
+
readonly requireResidentKey: Schema.optional<Schema.Boolean>;
|
|
309
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
310
|
+
}>>;
|
|
311
|
+
readonly attestation: Schema.optional<Schema.Literals<readonly ["none", "indirect", "direct", "enterprise"]>>;
|
|
312
|
+
}>;
|
|
313
|
+
export declare const PasskeyAuthenticationPublicKeyOptionsHttpBody: Schema.Struct<{
|
|
314
|
+
readonly challenge: Schema.String;
|
|
315
|
+
readonly rpId: Schema.String;
|
|
316
|
+
readonly timeout: Schema.optional<Schema.Number>;
|
|
317
|
+
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
318
|
+
readonly type: Schema.Literal<"public-key">;
|
|
319
|
+
readonly id: Schema.String;
|
|
320
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
321
|
+
}>>>;
|
|
322
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
323
|
+
}>;
|
|
324
|
+
export declare const PasskeyRegistrationStartedBody: Schema.Struct<{
|
|
325
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
326
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
327
|
+
readonly publicKey: Schema.Struct<{
|
|
328
|
+
readonly challenge: Schema.String;
|
|
329
|
+
readonly rp: Schema.Struct<{
|
|
330
|
+
readonly id: Schema.String;
|
|
331
|
+
readonly name: Schema.String;
|
|
332
|
+
}>;
|
|
333
|
+
readonly user: Schema.Struct<{
|
|
334
|
+
readonly id: Schema.String;
|
|
335
|
+
readonly name: Schema.String;
|
|
336
|
+
readonly displayName: Schema.String;
|
|
337
|
+
}>;
|
|
338
|
+
readonly pubKeyCredParams: Schema.$Array<Schema.Struct<{
|
|
339
|
+
readonly type: Schema.Literal<"public-key">;
|
|
340
|
+
readonly alg: Schema.Number;
|
|
341
|
+
}>>;
|
|
342
|
+
readonly timeout: Schema.optional<Schema.Number>;
|
|
343
|
+
readonly excludeCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
344
|
+
readonly type: Schema.Literal<"public-key">;
|
|
345
|
+
readonly id: Schema.String;
|
|
346
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
347
|
+
}>>>;
|
|
348
|
+
readonly authenticatorSelection: Schema.optional<Schema.Struct<{
|
|
349
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
350
|
+
readonly residentKey: Schema.optional<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
351
|
+
readonly requireResidentKey: Schema.optional<Schema.Boolean>;
|
|
352
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
353
|
+
}>>;
|
|
354
|
+
readonly attestation: Schema.optional<Schema.Literals<readonly ["none", "indirect", "direct", "enterprise"]>>;
|
|
355
|
+
}>;
|
|
356
|
+
}>;
|
|
357
|
+
export declare const PasskeyAuthenticationStartedBody: Schema.Struct<{
|
|
358
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
359
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
360
|
+
readonly publicKey: Schema.Struct<{
|
|
361
|
+
readonly challenge: Schema.String;
|
|
362
|
+
readonly rpId: Schema.String;
|
|
363
|
+
readonly timeout: Schema.optional<Schema.Number>;
|
|
364
|
+
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
365
|
+
readonly type: Schema.Literal<"public-key">;
|
|
366
|
+
readonly id: Schema.String;
|
|
367
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
368
|
+
}>>>;
|
|
369
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
370
|
+
}>;
|
|
371
|
+
}>;
|
|
372
|
+
export declare const PasskeyRegisteredBody: Schema.Struct<{
|
|
373
|
+
readonly credentialId: Schema.String;
|
|
374
|
+
}>;
|
|
375
|
+
export declare const PasskeyCredentialHttpBody: Schema.Struct<{
|
|
376
|
+
readonly credentialId: Schema.String;
|
|
377
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
378
|
+
readonly backedUp: Schema.optional<Schema.Boolean>;
|
|
379
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
380
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
381
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
382
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
383
|
+
}>;
|
|
384
|
+
export declare const PasskeyCredentialsBody: Schema.Struct<{
|
|
385
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
386
|
+
readonly credentialId: Schema.String;
|
|
387
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
388
|
+
readonly backedUp: Schema.optional<Schema.Boolean>;
|
|
389
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
390
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
391
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
392
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
393
|
+
}>>;
|
|
394
|
+
}>;
|
|
395
|
+
export declare const PasskeyCredentialRevokeBody: Schema.Struct<{
|
|
396
|
+
readonly credentialId: Schema.String;
|
|
397
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
398
|
+
}>;
|
|
399
|
+
export declare const TotpAlgorithmHttpBody: Schema.Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
400
|
+
export declare const TotpEnrollmentStartBody: Schema.Struct<{
|
|
401
|
+
readonly accountName: Schema.String;
|
|
402
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
403
|
+
}>;
|
|
404
|
+
export declare const TotpEnrollmentConfirmBody: Schema.Struct<{
|
|
405
|
+
readonly factorId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
406
|
+
readonly code: Schema.String;
|
|
407
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
408
|
+
}>;
|
|
409
|
+
export declare const TotpVerifyBody: Schema.Struct<{
|
|
410
|
+
readonly code: Schema.String;
|
|
411
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
412
|
+
}>;
|
|
413
|
+
export declare const TotpFactorRevokeBody: Schema.Struct<{
|
|
414
|
+
readonly factorId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
415
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
416
|
+
}>;
|
|
417
|
+
export declare const TotpFactorHttpBody: Schema.Struct<{
|
|
418
|
+
readonly factorId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
419
|
+
readonly algorithm: Schema.Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
420
|
+
readonly digits: Schema.Number;
|
|
421
|
+
readonly period: Schema.Number;
|
|
422
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
423
|
+
readonly confirmedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
424
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
425
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
426
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
427
|
+
}>;
|
|
428
|
+
export declare const TotpEnrollmentStartedBody: Schema.Struct<{
|
|
429
|
+
readonly factor: Schema.Struct<{
|
|
430
|
+
readonly factorId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
431
|
+
readonly algorithm: Schema.Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
432
|
+
readonly digits: Schema.Number;
|
|
433
|
+
readonly period: Schema.Number;
|
|
434
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
435
|
+
readonly confirmedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
436
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
437
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
438
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
439
|
+
}>;
|
|
440
|
+
readonly secret: Schema.String;
|
|
441
|
+
readonly uri: Schema.String;
|
|
442
|
+
}>;
|
|
443
|
+
export declare const TotpVerifyResultBody: Schema.Struct<{
|
|
444
|
+
readonly valid: Schema.Boolean;
|
|
445
|
+
readonly factor: Schema.optional<Schema.Struct<{
|
|
446
|
+
readonly factorId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
447
|
+
readonly algorithm: Schema.Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
448
|
+
readonly digits: Schema.Number;
|
|
449
|
+
readonly period: Schema.Number;
|
|
450
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
451
|
+
readonly confirmedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
452
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
453
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
454
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
455
|
+
}>>;
|
|
456
|
+
readonly delta: Schema.optional<Schema.Number>;
|
|
457
|
+
}>;
|
|
458
|
+
export declare const TotpFactorsBody: Schema.Struct<{
|
|
459
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
460
|
+
readonly factorId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
461
|
+
readonly algorithm: Schema.Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
462
|
+
readonly digits: Schema.Number;
|
|
463
|
+
readonly period: Schema.Number;
|
|
464
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
465
|
+
readonly confirmedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
466
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
467
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
468
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
469
|
+
}>>;
|
|
470
|
+
}>;
|
|
471
|
+
export declare const RecoveryCodeGenerateBody: Schema.Struct<{
|
|
472
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
473
|
+
}>;
|
|
474
|
+
export declare const RecoveryCodeVerifyBody: Schema.Struct<{
|
|
475
|
+
readonly code: Schema.String;
|
|
476
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
477
|
+
}>;
|
|
478
|
+
export declare const RecoveryCodeRevokeBody: Schema.Struct<{
|
|
479
|
+
readonly codeId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
480
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
481
|
+
}>;
|
|
482
|
+
export declare const RecoveryCodeHttpBody: Schema.Struct<{
|
|
483
|
+
readonly codeId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
484
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
485
|
+
readonly usedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
486
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
487
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
488
|
+
}>;
|
|
489
|
+
export declare const RecoveryCodesGeneratedBody: Schema.Struct<{
|
|
490
|
+
readonly codes: Schema.$Array<Schema.String>;
|
|
491
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
492
|
+
readonly codeId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
493
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
494
|
+
readonly usedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
495
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
496
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
497
|
+
}>>;
|
|
498
|
+
}>;
|
|
499
|
+
export declare const RecoveryCodeVerifyResultBody: Schema.Struct<{
|
|
500
|
+
readonly valid: Schema.Boolean;
|
|
501
|
+
readonly code: Schema.optional<Schema.Struct<{
|
|
502
|
+
readonly codeId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
503
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
504
|
+
readonly usedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
505
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
506
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
507
|
+
}>>;
|
|
508
|
+
}>;
|
|
509
|
+
export declare const RecoveryCodesBody: Schema.Struct<{
|
|
510
|
+
readonly codes: Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly codeId: Schema.brand<Schema.String, "auth/CredentialId">;
|
|
512
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
513
|
+
readonly usedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
514
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
515
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
516
|
+
}>>;
|
|
517
|
+
}>;
|
|
518
|
+
export declare const ApiKeyCreateBody: Schema.Struct<{
|
|
519
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
520
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
521
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
522
|
+
}>;
|
|
523
|
+
export declare const ApiKeyRevokeBody: Schema.Struct<{
|
|
524
|
+
readonly keyId: Schema.String;
|
|
525
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
526
|
+
}>;
|
|
527
|
+
export declare const ApiKeyHttpBody: Schema.Struct<{
|
|
528
|
+
readonly keyId: Schema.String;
|
|
529
|
+
readonly prefix: Schema.String;
|
|
530
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
531
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
532
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
533
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
534
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
535
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
536
|
+
}>;
|
|
537
|
+
export declare const ApiKeyCreatedBody: Schema.Struct<{
|
|
538
|
+
readonly secret: Schema.String;
|
|
539
|
+
readonly key: Schema.Struct<{
|
|
540
|
+
readonly keyId: Schema.String;
|
|
541
|
+
readonly prefix: Schema.String;
|
|
542
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
543
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
544
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
545
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
546
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
547
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
548
|
+
}>;
|
|
549
|
+
}>;
|
|
550
|
+
export declare const ApiKeysBody: Schema.Struct<{
|
|
551
|
+
readonly keys: Schema.$Array<Schema.Struct<{
|
|
552
|
+
readonly keyId: Schema.String;
|
|
553
|
+
readonly prefix: Schema.String;
|
|
554
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
555
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
556
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
557
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
558
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
559
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
560
|
+
}>>;
|
|
561
|
+
}>;
|
|
562
|
+
export declare const RefreshTokenRefreshBody: Schema.Struct<{
|
|
563
|
+
readonly refreshToken: Schema.String;
|
|
564
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
565
|
+
}>;
|
|
566
|
+
export declare const RefreshTokenHttpBody: Schema.Struct<{
|
|
567
|
+
readonly tokenId: Schema.String;
|
|
568
|
+
readonly familyId: Schema.String;
|
|
569
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
570
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
571
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
572
|
+
readonly rotatedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
573
|
+
readonly replacedById: Schema.optional<Schema.String>;
|
|
574
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
575
|
+
readonly reuseDetectedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
576
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
577
|
+
}>;
|
|
578
|
+
export declare const RefreshTokenRefreshedBody: Schema.Struct<{
|
|
579
|
+
readonly accessToken: Schema.String;
|
|
580
|
+
readonly accessTokenExpiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
581
|
+
readonly refreshToken: Schema.String;
|
|
582
|
+
readonly refreshTokenRecord: Schema.Struct<{
|
|
583
|
+
readonly tokenId: Schema.String;
|
|
584
|
+
readonly familyId: Schema.String;
|
|
585
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
586
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
587
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
588
|
+
readonly rotatedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
589
|
+
readonly replacedById: Schema.optional<Schema.String>;
|
|
590
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
591
|
+
readonly reuseDetectedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
592
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
593
|
+
}>;
|
|
594
|
+
}>;
|
|
595
|
+
export declare const JwtIntrospectBody: Schema.Struct<{
|
|
596
|
+
readonly token: Schema.String;
|
|
597
|
+
}>;
|
|
598
|
+
export declare const JwtRevokeBody: Schema.Struct<{
|
|
599
|
+
readonly jwtId: Schema.String;
|
|
600
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
601
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
602
|
+
}>;
|
|
603
|
+
export declare const JwtHeaderHttpBody: Schema.Struct<{
|
|
604
|
+
readonly typ: Schema.Literal<"JWT">;
|
|
605
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
606
|
+
readonly kid: Schema.String;
|
|
607
|
+
}>;
|
|
608
|
+
export declare const JwtKeyHttpBody: Schema.Struct<{
|
|
609
|
+
readonly keyId: Schema.String;
|
|
610
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
611
|
+
readonly status: Schema.Literals<readonly ["active", "retired", "disabled"]>;
|
|
612
|
+
readonly createdAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
613
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
614
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
615
|
+
}>;
|
|
616
|
+
export declare const JwtIntrospectionInactiveReasonBody: Schema.Literals<readonly ["malformed", "unsupported_alg", "unknown_key", "invalid_signature", "expired", "not_yet_valid", "issuer_mismatch", "audience_mismatch", "revoked"]>;
|
|
617
|
+
export declare const JwtIntrospectionActiveBody: Schema.Struct<{
|
|
618
|
+
readonly active: Schema.Literal<true>;
|
|
619
|
+
readonly header: Schema.Struct<{
|
|
620
|
+
readonly typ: Schema.Literal<"JWT">;
|
|
621
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
622
|
+
readonly kid: Schema.String;
|
|
623
|
+
}>;
|
|
624
|
+
readonly claims: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
625
|
+
readonly key: Schema.Struct<{
|
|
626
|
+
readonly keyId: Schema.String;
|
|
627
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
628
|
+
readonly status: Schema.Literals<readonly ["active", "retired", "disabled"]>;
|
|
629
|
+
readonly createdAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
630
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
631
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
632
|
+
}>;
|
|
633
|
+
readonly jwtId: Schema.optional<Schema.String>;
|
|
634
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
635
|
+
readonly revoked: Schema.Literal<false>;
|
|
636
|
+
}>;
|
|
637
|
+
export declare const JwtIntrospectionInactiveBody: Schema.Struct<{
|
|
638
|
+
readonly active: Schema.Literal<false>;
|
|
639
|
+
readonly reason: Schema.Literals<readonly ["malformed", "unsupported_alg", "unknown_key", "invalid_signature", "expired", "not_yet_valid", "issuer_mismatch", "audience_mismatch", "revoked"]>;
|
|
640
|
+
readonly jwtId: Schema.optional<Schema.String>;
|
|
641
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
642
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
643
|
+
readonly revokedReason: Schema.optional<Schema.String>;
|
|
644
|
+
}>;
|
|
645
|
+
export declare const JwtIntrospectionBody: Schema.Union<readonly [Schema.Struct<{
|
|
646
|
+
readonly active: Schema.Literal<true>;
|
|
647
|
+
readonly header: Schema.Struct<{
|
|
648
|
+
readonly typ: Schema.Literal<"JWT">;
|
|
649
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
650
|
+
readonly kid: Schema.String;
|
|
651
|
+
}>;
|
|
652
|
+
readonly claims: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
653
|
+
readonly key: Schema.Struct<{
|
|
654
|
+
readonly keyId: Schema.String;
|
|
655
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
656
|
+
readonly status: Schema.Literals<readonly ["active", "retired", "disabled"]>;
|
|
657
|
+
readonly createdAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
658
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
659
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
660
|
+
}>;
|
|
661
|
+
readonly jwtId: Schema.optional<Schema.String>;
|
|
662
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
663
|
+
readonly revoked: Schema.Literal<false>;
|
|
664
|
+
}>, Schema.Struct<{
|
|
665
|
+
readonly active: Schema.Literal<false>;
|
|
666
|
+
readonly reason: Schema.Literals<readonly ["malformed", "unsupported_alg", "unknown_key", "invalid_signature", "expired", "not_yet_valid", "issuer_mismatch", "audience_mismatch", "revoked"]>;
|
|
667
|
+
readonly jwtId: Schema.optional<Schema.String>;
|
|
668
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
669
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
670
|
+
readonly revokedReason: Schema.optional<Schema.String>;
|
|
671
|
+
}>]>;
|
|
672
|
+
export declare const MfaOptionsBody: Schema.Struct<{
|
|
673
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
674
|
+
}>;
|
|
675
|
+
export declare const MfaFactorOptionBody: Schema.Struct<{
|
|
676
|
+
readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
677
|
+
}>;
|
|
678
|
+
export declare const MfaOptionsResultBody: Schema.Struct<{
|
|
679
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
680
|
+
readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
681
|
+
}>>;
|
|
682
|
+
}>;
|
|
683
|
+
export declare const TotpMfaVerifyBody: Schema.Struct<{
|
|
684
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
685
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
686
|
+
readonly code: Schema.String;
|
|
687
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
688
|
+
}>;
|
|
689
|
+
export declare const TotpMfaVerifyForFlowBody: Schema.Struct<{
|
|
690
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
691
|
+
readonly code: Schema.String;
|
|
692
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
693
|
+
}>;
|
|
694
|
+
export declare const RecoveryCodeMfaVerifyBody: Schema.Struct<{
|
|
695
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
696
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
697
|
+
readonly code: Schema.String;
|
|
698
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
699
|
+
}>;
|
|
700
|
+
export declare const RecoveryCodeMfaVerifyForFlowBody: Schema.Struct<{
|
|
701
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
702
|
+
readonly code: Schema.String;
|
|
703
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
704
|
+
}>;
|
|
705
|
+
export declare const LoginApprovalApproveBody: Schema.Struct<{
|
|
706
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
707
|
+
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
708
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
709
|
+
readonly rememberDevice: Schema.optional<Schema.Boolean>;
|
|
710
|
+
}>;
|
|
711
|
+
export declare const LoginApprovalReviewStatusBody: Schema.Struct<{
|
|
712
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
713
|
+
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
714
|
+
}>;
|
|
715
|
+
export declare const LoginApprovalFinalizeBody: Schema.Struct<{
|
|
716
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
717
|
+
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
718
|
+
readonly rememberDevice: Schema.optional<Schema.Boolean>;
|
|
719
|
+
}>;
|
|
22
720
|
export declare const SessionClaimsHttpBody: Schema.Struct<{
|
|
23
721
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
24
722
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
@@ -28,6 +726,7 @@ export declare const AuthenticatedHttpBody: Schema.Struct<{
|
|
|
28
726
|
readonly expiresAt: Schema.Number;
|
|
29
727
|
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
30
728
|
readonly amr: Schema.$Array<Schema.String>;
|
|
729
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
31
730
|
readonly claims: Schema.optional<Schema.Struct<{
|
|
32
731
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
33
732
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
@@ -41,11 +740,69 @@ export declare const CurrentSessionHttpBody: Schema.Struct<{
|
|
|
41
740
|
readonly expiresAt: Schema.Number;
|
|
42
741
|
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
43
742
|
readonly amr: Schema.$Array<Schema.String>;
|
|
743
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
44
744
|
readonly claims: Schema.optional<Schema.Struct<{
|
|
45
745
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
46
746
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
47
747
|
}>>;
|
|
48
748
|
}>;
|
|
749
|
+
export declare const ActiveSessionHttpBody: Schema.Struct<{
|
|
750
|
+
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
751
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
752
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
753
|
+
readonly authTime: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
754
|
+
readonly lastSeenAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
755
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
756
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
757
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
758
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
759
|
+
readonly current: Schema.Boolean;
|
|
760
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
761
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
762
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
763
|
+
}>>;
|
|
764
|
+
readonly ip: Schema.optional<Schema.String>;
|
|
765
|
+
readonly userAgent: Schema.optional<Schema.String>;
|
|
766
|
+
readonly country: Schema.optional<Schema.String>;
|
|
767
|
+
readonly region: Schema.optional<Schema.String>;
|
|
768
|
+
readonly city: Schema.optional<Schema.String>;
|
|
769
|
+
readonly latitude: Schema.optional<Schema.Number>;
|
|
770
|
+
readonly longitude: Schema.optional<Schema.Number>;
|
|
771
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
772
|
+
}>;
|
|
773
|
+
export declare const ActiveSessionsHttpBody: Schema.Struct<{
|
|
774
|
+
readonly sessions: Schema.$Array<Schema.Struct<{
|
|
775
|
+
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
776
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
777
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
778
|
+
readonly authTime: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
779
|
+
readonly lastSeenAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
780
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
781
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
782
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
783
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
784
|
+
readonly current: Schema.Boolean;
|
|
785
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
786
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
787
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
788
|
+
}>>;
|
|
789
|
+
readonly ip: Schema.optional<Schema.String>;
|
|
790
|
+
readonly userAgent: Schema.optional<Schema.String>;
|
|
791
|
+
readonly country: Schema.optional<Schema.String>;
|
|
792
|
+
readonly region: Schema.optional<Schema.String>;
|
|
793
|
+
readonly city: Schema.optional<Schema.String>;
|
|
794
|
+
readonly latitude: Schema.optional<Schema.Number>;
|
|
795
|
+
readonly longitude: Schema.optional<Schema.Number>;
|
|
796
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
797
|
+
}>>;
|
|
798
|
+
}>;
|
|
799
|
+
export declare const SessionRevokeBody: Schema.Struct<{
|
|
800
|
+
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
801
|
+
}>;
|
|
802
|
+
export declare const LoginNotificationReportBody: Schema.Struct<{
|
|
803
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
804
|
+
readonly secret: Schema.String;
|
|
805
|
+
}>;
|
|
49
806
|
export declare const RequiresMfaHttpBody: Schema.Struct<{
|
|
50
807
|
readonly type: Schema.Literal<"requires_mfa">;
|
|
51
808
|
readonly flowId: Schema.String;
|
|
@@ -57,6 +814,19 @@ export declare const RequiresEmailVerificationHttpBody: Schema.Struct<{
|
|
|
57
814
|
readonly type: Schema.Literal<"requires_email_verification">;
|
|
58
815
|
readonly flowId: Schema.String;
|
|
59
816
|
}>;
|
|
817
|
+
export declare const RequiresLoginApprovalHttpBody: Schema.Struct<{
|
|
818
|
+
readonly type: Schema.Literal<"requires_login_approval">;
|
|
819
|
+
readonly flowId: Schema.String;
|
|
820
|
+
readonly approvalChallengeId: Schema.String;
|
|
821
|
+
readonly channel: Schema.String;
|
|
822
|
+
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
823
|
+
readonly sameDeviceRequired: Schema.Boolean;
|
|
824
|
+
readonly reason: Schema.String;
|
|
825
|
+
}>;
|
|
826
|
+
export declare const LoginApprovalReviewStatusHttpBody: Schema.Struct<{
|
|
827
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied", "expired"]>;
|
|
828
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
829
|
+
}>;
|
|
60
830
|
export declare const RequiresPasskeyEnrollmentHttpBody: Schema.Struct<{
|
|
61
831
|
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
62
832
|
readonly flowId: Schema.String;
|
|
@@ -66,6 +836,38 @@ export declare const PasswordAuthSuccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
66
836
|
readonly expiresAt: Schema.Number;
|
|
67
837
|
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
68
838
|
readonly amr: Schema.$Array<Schema.String>;
|
|
839
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
840
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
841
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
842
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
843
|
+
}>>;
|
|
844
|
+
}>, Schema.Struct<{
|
|
845
|
+
readonly type: Schema.Literal<"requires_mfa">;
|
|
846
|
+
readonly flowId: Schema.String;
|
|
847
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
848
|
+
readonly type: Schema.String;
|
|
849
|
+
}>>;
|
|
850
|
+
}>, Schema.Struct<{
|
|
851
|
+
readonly type: Schema.Literal<"requires_email_verification">;
|
|
852
|
+
readonly flowId: Schema.String;
|
|
853
|
+
}>, Schema.Struct<{
|
|
854
|
+
readonly type: Schema.Literal<"requires_login_approval">;
|
|
855
|
+
readonly flowId: Schema.String;
|
|
856
|
+
readonly approvalChallengeId: Schema.String;
|
|
857
|
+
readonly channel: Schema.String;
|
|
858
|
+
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
859
|
+
readonly sameDeviceRequired: Schema.Boolean;
|
|
860
|
+
readonly reason: Schema.String;
|
|
861
|
+
}>, Schema.Struct<{
|
|
862
|
+
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
863
|
+
readonly flowId: Schema.String;
|
|
864
|
+
}>]>;
|
|
865
|
+
export declare const EmailOtpAuthSuccess: Schema.Union<readonly [Schema.Struct<{
|
|
866
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
867
|
+
readonly expiresAt: Schema.Number;
|
|
868
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
869
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
870
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
69
871
|
readonly claims: Schema.optional<Schema.Struct<{
|
|
70
872
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
71
873
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
@@ -79,6 +881,45 @@ export declare const PasswordAuthSuccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
79
881
|
}>, Schema.Struct<{
|
|
80
882
|
readonly type: Schema.Literal<"requires_email_verification">;
|
|
81
883
|
readonly flowId: Schema.String;
|
|
884
|
+
}>, Schema.Struct<{
|
|
885
|
+
readonly type: Schema.Literal<"requires_login_approval">;
|
|
886
|
+
readonly flowId: Schema.String;
|
|
887
|
+
readonly approvalChallengeId: Schema.String;
|
|
888
|
+
readonly channel: Schema.String;
|
|
889
|
+
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
890
|
+
readonly sameDeviceRequired: Schema.Boolean;
|
|
891
|
+
readonly reason: Schema.String;
|
|
892
|
+
}>, Schema.Struct<{
|
|
893
|
+
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
894
|
+
readonly flowId: Schema.String;
|
|
895
|
+
}>]>;
|
|
896
|
+
export declare const MagicLinkAuthSuccess: Schema.Union<readonly [Schema.Struct<{
|
|
897
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
898
|
+
readonly expiresAt: Schema.Number;
|
|
899
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
900
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
901
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
902
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
903
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
904
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
905
|
+
}>>;
|
|
906
|
+
}>, Schema.Struct<{
|
|
907
|
+
readonly type: Schema.Literal<"requires_mfa">;
|
|
908
|
+
readonly flowId: Schema.String;
|
|
909
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
910
|
+
readonly type: Schema.String;
|
|
911
|
+
}>>;
|
|
912
|
+
}>, Schema.Struct<{
|
|
913
|
+
readonly type: Schema.Literal<"requires_email_verification">;
|
|
914
|
+
readonly flowId: Schema.String;
|
|
915
|
+
}>, Schema.Struct<{
|
|
916
|
+
readonly type: Schema.Literal<"requires_login_approval">;
|
|
917
|
+
readonly flowId: Schema.String;
|
|
918
|
+
readonly approvalChallengeId: Schema.String;
|
|
919
|
+
readonly channel: Schema.String;
|
|
920
|
+
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
921
|
+
readonly sameDeviceRequired: Schema.Boolean;
|
|
922
|
+
readonly reason: Schema.String;
|
|
82
923
|
}>, Schema.Struct<{
|
|
83
924
|
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
84
925
|
readonly flowId: Schema.String;
|