@xylex-group/athena 2.12.1 → 2.13.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.
- package/LICENSE +21 -21
- package/README.md +1190 -1184
- package/bin/athena-js.js +104 -76
- package/dist/admin.cjs +45 -0
- package/dist/admin.cjs.map +1 -0
- package/dist/admin.d.cts +64 -0
- package/dist/admin.d.ts +64 -0
- package/dist/admin.js +41 -0
- package/dist/admin.js.map +1 -0
- package/dist/athena-auth-url-oLux_57a.d.cts +377 -0
- package/dist/athena-auth-url-oLux_57a.d.ts +377 -0
- package/dist/browser.cjs +33 -49
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +12 -10
- package/dist/browser.d.ts +12 -10
- package/dist/browser.js +33 -49
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +150 -51
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +14 -5
- package/dist/cli/index.d.ts +14 -5
- package/dist/cli/index.js +150 -52
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-CMtx5P4D.d.cts → client-BJjUwDSg.d.cts} +109 -1448
- package/dist/{client-Dre8H24u.d.ts → client-DVOKSYDI.d.ts} +109 -1448
- package/dist/cookies.cjs +18 -0
- package/dist/cookies.cjs.map +1 -1
- package/dist/cookies.d.cts +2 -1
- package/dist/cookies.d.ts +2 -1
- package/dist/cookies.js +17 -1
- package/dist/cookies.js.map +1 -1
- package/dist/{index-CVcQCGyG.d.ts → index-CFL9xbFR.d.cts} +2 -0
- package/dist/{index-CVcQCGyG.d.cts → index-UKJpunc6.d.ts} +2 -0
- package/dist/index.cjs +101 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +101 -50
- package/dist/index.js.map +1 -1
- package/dist/{model-form-DfTi8-D1.d.cts → model-form-Dw4zEL5a.d.cts} +2 -2
- package/dist/{model-form-CU0mWrF9.d.ts → model-form-yRg71q3H.d.ts} +2 -2
- package/dist/{module-DBGmbIuh.d.ts → module-DBteUIob.d.ts} +12 -9
- package/dist/{module-GoijrBXV.d.cts → module-yoX49uQC.d.cts} +12 -9
- package/dist/next/client.cjs +452 -49
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +7 -4
- package/dist/next/client.d.ts +7 -4
- package/dist/next/client.js +430 -50
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +292 -49
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +81 -5
- package/dist/next/server.d.ts +81 -5
- package/dist/next/server.js +280 -50
- package/dist/next/server.js.map +1 -1
- package/dist/organization.cjs +72 -0
- package/dist/organization.cjs.map +1 -0
- package/dist/organization.d.cts +43 -0
- package/dist/organization.d.ts +43 -0
- package/dist/organization.js +70 -0
- package/dist/organization.js.map +1 -0
- package/dist/payload-BzVbUgY_.d.cts +219 -0
- package/dist/payload-DEOWN_oo.d.ts +219 -0
- package/dist/{pipeline-DrjU2vNA.d.ts → pipeline-Bj6RWt1A.d.ts} +1 -1
- package/dist/{pipeline-c7Gdm0qv.d.cts → pipeline-Dwck-wZO.d.cts} +1 -1
- package/dist/react.cjs +2 -13
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +26 -7
- package/dist/react.d.ts +26 -7
- package/dist/react.js +2 -13
- package/dist/react.js.map +1 -1
- package/dist/session-cookie-detection-BqOp9mO6.d.cts +46 -0
- package/dist/session-cookie-detection-BqOp9mO6.d.ts +46 -0
- package/dist/social-providers.cjs +4189 -0
- package/dist/social-providers.cjs.map +1 -0
- package/dist/social-providers.d.cts +4948 -0
- package/dist/social-providers.d.ts +4948 -0
- package/dist/social-providers.js +4117 -0
- package/dist/social-providers.js.map +1 -0
- package/dist/{types-Bez4HSbI.d.cts → types-BRP7sfSF.d.ts} +50 -2
- package/dist/{types-kPaHUqUa.d.ts → types-BU8uJH_b.d.cts} +50 -2
- package/dist/{types-BRUHGXo2.d.ts → types-CH78O90i.d.cts} +2 -2
- package/dist/{types-BRUHGXo2.d.cts → types-CH78O90i.d.ts} +2 -2
- package/dist/{types-BLizCLd1.d.cts → types-CjC9_5ZQ.d.cts} +3 -3
- package/dist/{types-DRRb0Fd0.d.ts → types-DPgejxYC.d.ts} +3 -3
- package/dist/types-eAKAh71s.d.cts +1476 -0
- package/dist/types-eAKAh71s.d.ts +1476 -0
- package/dist/utils.cjs +438 -15
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +76 -11
- package/dist/utils.d.ts +76 -11
- package/dist/utils.js +390 -16
- package/dist/utils.js.map +1 -1
- package/package.json +49 -22
- package/dist/shared-DZSGAmXs.d.cts +0 -35
- package/dist/shared-MMnVBBfy.d.ts +0 -35
|
@@ -1,1404 +1,6 @@
|
|
|
1
|
-
import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult,
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type AthenaAuthMethod = 'GET' | 'POST';
|
|
5
|
-
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
6
|
-
type AthenaAuthQueryPrimitive = string | number | boolean;
|
|
7
|
-
type AthenaAuthQueryValue = AthenaAuthQueryPrimitive | AthenaAuthQueryPrimitive[] | null | undefined;
|
|
8
|
-
type AthenaAuthEndpointPath = '/sign-in/social' | '/sign-in/email' | '/sign-in/username' | '/sign-up/email' | '/get-session' | '/sign-out' | '/forget-password' | '/reset-password' | '/verify-email' | '/send-verification-email' | '/change-email' | '/change-email/verify' | '/change-password' | '/set-password' | '/update-user' | '/delete-user' | '/delete-user/verify' | '/delete-user/callback' | '/email-list' | '/email/list' | '/list-sessions' | '/revoke-session' | '/revoke-sessions' | '/revoke-other-sessions' | '/link-social' | '/list-accounts' | '/unlink-account' | '/refresh-token' | '/get-access-token' | '/two-factor/get-totp-uri' | '/two-factor/verify-totp' | '/two-factor/send-otp' | '/two-factor/verify-otp' | '/two-factor/verify-backup-code' | '/two-factor/generate-backup-codes' | '/two-factor/enable' | '/two-factor/disable' | '/passkey/generate-register-options' | '/passkey/generate-authenticate-options' | '/passkey/verify-registration' | '/passkey/verify-authentication' | '/passkey/list-user-passkeys' | '/passkey/delete-passkey' | '/passkey/update-passkey' | '/.well-known/webauthn' | '/admin/set-role' | '/admin/list-users' | '/admin/list-user-sessions' | '/admin/create-user' | '/admin/unban-user' | '/admin/ban-user' | '/admin/impersonate-user' | '/admin/stop-impersonating' | '/admin/revoke-user-session' | '/admin/revoke-user-sessions' | '/admin/remove-user' | '/admin/set-user-password' | '/admin/has-permission' | '/admin/api-key/create' | '/admin/athena-client/create' | '/admin/athena-client/list' | '/admin/audit-log/list' | '/admin/email/get' | '/admin/email/create' | '/admin/email/update' | '/admin/email/delete' | '/admin/email-failure/list' | '/admin/email-failure/get' | '/admin/email-failure/create' | '/admin/email-failure/update' | '/admin/email-failure/delete' | '/admin/email-template/get' | '/admin/email-template/create' | '/admin/email-template/delete' | '/admin/email-template/list' | '/admin/email-template/update' | '/admin/email-template/send' | '/admin/email-event-type/list' | '/admin/email/list' | '/api-key/create' | '/api-key/get' | '/api-key/update' | '/api-key/delete' | '/api-key/list' | '/api-key/verify' | '/api-key/delete-all-expired-api-keys' | '/organization/create' | '/organization/check-slug' | '/organization/list' | '/organization/set-active' | '/organization/get-full-organization' | '/organization/update' | '/organization/delete' | '/organization/invite-member' | '/organization/accept-invitation' | '/organization/cancel-invitation' | '/organization/reject-invitation' | '/organization/get-invitation' | '/organization/list-invitations' | '/organization/list-user-invitations' | '/organization/list-members' | '/organization/remove-member' | '/organization/update-member-role' | '/organization/get-active-member' | '/organization/leave' | '/organization/has-permission' | `/callback/${string}` | '/health' | '/ok' | '/error' | `/reset-password/${string}`;
|
|
9
|
-
type AthenaAuthErrorCode = 'NETWORK_ERROR' | 'HTTP_ERROR' | 'INVALID_JSON' | 'UNKNOWN_ERROR';
|
|
10
|
-
interface AthenaAuthErrorDetails {
|
|
11
|
-
code: AthenaAuthErrorCode;
|
|
12
|
-
message: string;
|
|
13
|
-
status: number;
|
|
14
|
-
endpoint?: AthenaAuthEndpointPath;
|
|
15
|
-
method?: AthenaAuthMethod;
|
|
16
|
-
requestId?: string;
|
|
17
|
-
hint?: string;
|
|
18
|
-
cause?: string;
|
|
19
|
-
}
|
|
20
|
-
interface AthenaAuthResult<T = unknown> {
|
|
21
|
-
ok: boolean;
|
|
22
|
-
status: number;
|
|
23
|
-
data: T | null;
|
|
24
|
-
error: string | null;
|
|
25
|
-
errorDetails?: AthenaAuthErrorDetails | null;
|
|
26
|
-
raw: unknown;
|
|
27
|
-
}
|
|
28
|
-
interface AthenaAuthUser {
|
|
29
|
-
id: string;
|
|
30
|
-
email: string;
|
|
31
|
-
name?: string | null;
|
|
32
|
-
image?: string | null;
|
|
33
|
-
emailVerified?: boolean;
|
|
34
|
-
createdAt?: string;
|
|
35
|
-
updatedAt?: string;
|
|
36
|
-
username?: string | null;
|
|
37
|
-
displayUsername?: string | null;
|
|
38
|
-
twoFactorEnabled?: boolean;
|
|
39
|
-
role?: string | null;
|
|
40
|
-
banned?: boolean;
|
|
41
|
-
banReason?: string | null;
|
|
42
|
-
banExpires?: string | null;
|
|
43
|
-
}
|
|
44
|
-
interface AthenaAuthSession {
|
|
45
|
-
id: string;
|
|
46
|
-
expiresAt?: string;
|
|
47
|
-
token?: string;
|
|
48
|
-
createdAt?: string;
|
|
49
|
-
updatedAt?: string;
|
|
50
|
-
ipAddress?: string | null;
|
|
51
|
-
userAgent?: string | null;
|
|
52
|
-
userId?: string;
|
|
53
|
-
impersonatedBy?: string | null;
|
|
54
|
-
activeOrganizationId?: string | null;
|
|
55
|
-
}
|
|
56
|
-
interface AthenaAuthSessionResponse {
|
|
57
|
-
session: AthenaAuthSession;
|
|
58
|
-
user: AthenaAuthUser;
|
|
59
|
-
}
|
|
60
|
-
interface AthenaAuthGetUserResponse {
|
|
61
|
-
user: AthenaAuthUser | null;
|
|
62
|
-
}
|
|
63
|
-
interface AthenaAuthOrganization {
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
slug: string;
|
|
67
|
-
logo?: string | null;
|
|
68
|
-
metadata?: Record<string, unknown> | null;
|
|
69
|
-
createdAt?: string;
|
|
70
|
-
updatedAt?: string;
|
|
71
|
-
}
|
|
72
|
-
interface AthenaAuthOrganizationMember {
|
|
73
|
-
id: string;
|
|
74
|
-
organizationId?: string;
|
|
75
|
-
userId?: string;
|
|
76
|
-
role?: string | string[] | null;
|
|
77
|
-
createdAt?: string;
|
|
78
|
-
updatedAt?: string;
|
|
79
|
-
user?: AthenaAuthUser;
|
|
80
|
-
}
|
|
81
|
-
interface AthenaAuthOrganizationInvitation {
|
|
82
|
-
id: string;
|
|
83
|
-
email?: string;
|
|
84
|
-
role?: string | string[] | null;
|
|
85
|
-
organizationId?: string;
|
|
86
|
-
inviterId?: string;
|
|
87
|
-
teamId?: string | null;
|
|
88
|
-
status?: string;
|
|
89
|
-
expiresAt?: string;
|
|
90
|
-
createdAt?: string;
|
|
91
|
-
updatedAt?: string;
|
|
92
|
-
}
|
|
93
|
-
interface AthenaEmailSignInRequest {
|
|
94
|
-
email: string;
|
|
95
|
-
password: string;
|
|
96
|
-
callbackURL?: string;
|
|
97
|
-
rememberMe?: boolean;
|
|
98
|
-
}
|
|
99
|
-
interface AthenaUsernameSignInRequest {
|
|
100
|
-
username: string;
|
|
101
|
-
password: string;
|
|
102
|
-
rememberMe?: boolean;
|
|
103
|
-
}
|
|
104
|
-
interface AthenaSocialSignInRequest {
|
|
105
|
-
provider: string;
|
|
106
|
-
callbackURL?: string;
|
|
107
|
-
newUserCallbackURL?: string;
|
|
108
|
-
errorCallbackURL?: string;
|
|
109
|
-
disableRedirect?: boolean;
|
|
110
|
-
idToken?: string;
|
|
111
|
-
scopes?: string[] | string;
|
|
112
|
-
requestSignUp?: boolean;
|
|
113
|
-
loginHint?: string;
|
|
114
|
-
}
|
|
115
|
-
interface AthenaEmailSignUpRequest {
|
|
116
|
-
name: string;
|
|
117
|
-
email: string;
|
|
118
|
-
password: string;
|
|
119
|
-
callbackURL?: string;
|
|
120
|
-
}
|
|
121
|
-
interface AthenaAuthSignInResponse {
|
|
122
|
-
redirect: false;
|
|
123
|
-
token: string;
|
|
124
|
-
url?: string | null;
|
|
125
|
-
user: AthenaAuthUser;
|
|
126
|
-
}
|
|
127
|
-
interface AthenaAuthSocialRedirectResponse {
|
|
128
|
-
url: string;
|
|
129
|
-
redirect: boolean;
|
|
130
|
-
}
|
|
131
|
-
interface AthenaAuthSignOutResponse {
|
|
132
|
-
success: boolean;
|
|
133
|
-
}
|
|
134
|
-
interface AthenaAuthStatusResponse {
|
|
135
|
-
status: boolean;
|
|
136
|
-
}
|
|
137
|
-
interface AthenaAuthRevokeSessionRequest {
|
|
138
|
-
token: string;
|
|
139
|
-
}
|
|
140
|
-
interface AthenaForgetPasswordRequest {
|
|
141
|
-
email: string;
|
|
142
|
-
redirectTo?: string;
|
|
143
|
-
}
|
|
144
|
-
interface AthenaResetPasswordRequest {
|
|
145
|
-
newPassword: string;
|
|
146
|
-
token?: string;
|
|
147
|
-
}
|
|
148
|
-
interface AthenaVerifyEmailRequest {
|
|
149
|
-
token: string;
|
|
150
|
-
callbackURL?: string;
|
|
151
|
-
}
|
|
152
|
-
interface AthenaSendVerificationEmailRequest {
|
|
153
|
-
email: string;
|
|
154
|
-
callbackURL?: string;
|
|
155
|
-
}
|
|
156
|
-
interface AthenaChangeEmailRequest {
|
|
157
|
-
newEmail: string;
|
|
158
|
-
callbackURL?: string;
|
|
159
|
-
}
|
|
160
|
-
interface AthenaChangePasswordRequest {
|
|
161
|
-
newPassword: string;
|
|
162
|
-
currentPassword: string;
|
|
163
|
-
revokeOtherSessions?: boolean;
|
|
164
|
-
}
|
|
165
|
-
interface AthenaUpdateUserRequest {
|
|
166
|
-
name?: string;
|
|
167
|
-
image?: string;
|
|
168
|
-
}
|
|
169
|
-
interface AthenaDeleteUserRequest {
|
|
170
|
-
callbackURL?: string;
|
|
171
|
-
password?: string;
|
|
172
|
-
token?: string;
|
|
173
|
-
}
|
|
174
|
-
interface AthenaDeleteUserCallbackRequest {
|
|
175
|
-
token?: string;
|
|
176
|
-
callbackURL?: string;
|
|
177
|
-
}
|
|
178
|
-
interface AthenaDeleteUserResponse {
|
|
179
|
-
success: boolean;
|
|
180
|
-
message?: string;
|
|
181
|
-
}
|
|
182
|
-
interface AthenaAuthEmailChangeResponse {
|
|
183
|
-
status: boolean;
|
|
184
|
-
message?: string | null;
|
|
185
|
-
}
|
|
186
|
-
interface AthenaLinkSocialRequest {
|
|
187
|
-
provider: string;
|
|
188
|
-
callbackURL?: string;
|
|
189
|
-
scopes?: string[] | string;
|
|
190
|
-
}
|
|
191
|
-
interface AthenaUnlinkAccountRequest {
|
|
192
|
-
providerId: string;
|
|
193
|
-
accountId?: string;
|
|
194
|
-
}
|
|
195
|
-
interface AthenaOAuthAccountTokenRequest {
|
|
196
|
-
providerId: string;
|
|
197
|
-
accountId?: string;
|
|
198
|
-
userId?: string;
|
|
199
|
-
}
|
|
200
|
-
interface AthenaOAuthTokenBundle {
|
|
201
|
-
tokenType?: string;
|
|
202
|
-
idToken?: string;
|
|
203
|
-
accessToken?: string;
|
|
204
|
-
refreshToken?: string;
|
|
205
|
-
accessTokenExpiresAt?: string;
|
|
206
|
-
refreshTokenExpiresAt?: string;
|
|
207
|
-
}
|
|
208
|
-
interface AthenaAuthLinkedAccount {
|
|
209
|
-
id: string;
|
|
210
|
-
provider?: string;
|
|
211
|
-
accountId?: string;
|
|
212
|
-
scopes?: string[];
|
|
213
|
-
createdAt?: string;
|
|
214
|
-
updatedAt?: string;
|
|
215
|
-
}
|
|
216
|
-
type AthenaAuthPermissionSet = Record<string, unknown> | string[];
|
|
217
|
-
type AthenaAuthLooseRecord = Record<string, unknown>;
|
|
218
|
-
type AthenaAuthReactEmailProps = Record<string, unknown>;
|
|
219
|
-
interface AthenaSetPasswordRequest {
|
|
220
|
-
newPassword: string;
|
|
221
|
-
}
|
|
222
|
-
interface AthenaAuthTokenQuery {
|
|
223
|
-
token: string;
|
|
224
|
-
}
|
|
225
|
-
interface AthenaAuthTokenVerificationResponse {
|
|
226
|
-
status: boolean;
|
|
227
|
-
message: string;
|
|
228
|
-
}
|
|
229
|
-
interface AthenaAuthEmailListQuery {
|
|
230
|
-
limit?: number;
|
|
231
|
-
offset?: number;
|
|
232
|
-
}
|
|
233
|
-
interface AthenaAuthEmailListResponse {
|
|
234
|
-
total: number;
|
|
235
|
-
limit: number;
|
|
236
|
-
offset: number;
|
|
237
|
-
emails: AthenaAuthLooseRecord[];
|
|
238
|
-
}
|
|
239
|
-
interface AthenaAuthHealthResponse {
|
|
240
|
-
status?: string;
|
|
241
|
-
service?: string;
|
|
242
|
-
version?: string;
|
|
243
|
-
}
|
|
244
|
-
interface AthenaAuthOkResponse {
|
|
245
|
-
ok: boolean;
|
|
246
|
-
}
|
|
247
|
-
interface AthenaAuthErrorResponse {
|
|
248
|
-
message: string;
|
|
249
|
-
}
|
|
250
|
-
interface AthenaAuthCallbackProviderRequest {
|
|
251
|
-
provider: string;
|
|
252
|
-
code: string;
|
|
253
|
-
state: string;
|
|
254
|
-
}
|
|
255
|
-
interface AthenaAuthCallbackProviderResponse {
|
|
256
|
-
token?: string;
|
|
257
|
-
user?: AthenaAuthLooseRecord;
|
|
258
|
-
}
|
|
259
|
-
interface AthenaTwoFactorGetTotpUriRequest {
|
|
260
|
-
password: string;
|
|
261
|
-
}
|
|
262
|
-
interface AthenaTwoFactorGetTotpUriResponse {
|
|
263
|
-
totpURI?: string;
|
|
264
|
-
}
|
|
265
|
-
interface AthenaTwoFactorVerifyTotpRequest {
|
|
266
|
-
code: string;
|
|
267
|
-
trustDevice?: string;
|
|
268
|
-
}
|
|
269
|
-
interface AthenaTwoFactorVerifyTotpResponse {
|
|
270
|
-
status?: boolean;
|
|
271
|
-
}
|
|
272
|
-
interface AthenaTwoFactorVerifyOtpRequest {
|
|
273
|
-
code: string;
|
|
274
|
-
trustDevice?: string;
|
|
275
|
-
}
|
|
276
|
-
interface AthenaTwoFactorVerifyOtpResponse {
|
|
277
|
-
token: string;
|
|
278
|
-
user: AthenaAuthUser;
|
|
279
|
-
}
|
|
280
|
-
interface AthenaTwoFactorVerifyBackupCodeRequest {
|
|
281
|
-
code: string;
|
|
282
|
-
disableSession?: string;
|
|
283
|
-
trustDevice?: string;
|
|
284
|
-
}
|
|
285
|
-
interface AthenaTwoFactorSessionSnapshot {
|
|
286
|
-
token: string;
|
|
287
|
-
userId: string;
|
|
288
|
-
createdAt: string;
|
|
289
|
-
expiresAt: string;
|
|
290
|
-
}
|
|
291
|
-
interface AthenaTwoFactorVerifyBackupCodeResponse {
|
|
292
|
-
user: AthenaAuthUser;
|
|
293
|
-
session: AthenaTwoFactorSessionSnapshot;
|
|
294
|
-
}
|
|
295
|
-
interface AthenaTwoFactorGenerateBackupCodesRequest {
|
|
296
|
-
password: string;
|
|
297
|
-
}
|
|
298
|
-
interface AthenaTwoFactorGenerateBackupCodesResponse {
|
|
299
|
-
status: true;
|
|
300
|
-
backupCodes: string[];
|
|
301
|
-
}
|
|
302
|
-
interface AthenaTwoFactorEnableRequest {
|
|
303
|
-
password: string;
|
|
304
|
-
issuer?: string;
|
|
305
|
-
}
|
|
306
|
-
interface AthenaTwoFactorEnableResponse {
|
|
307
|
-
totpURI?: string;
|
|
308
|
-
backupCodes?: string[];
|
|
309
|
-
}
|
|
310
|
-
interface AthenaTwoFactorDisableRequest {
|
|
311
|
-
password: string;
|
|
312
|
-
}
|
|
313
|
-
interface AthenaTwoFactorDisableResponse {
|
|
314
|
-
status?: boolean;
|
|
315
|
-
}
|
|
316
|
-
interface AthenaPasskeyCredentialDescriptor {
|
|
317
|
-
id?: string;
|
|
318
|
-
type?: string;
|
|
319
|
-
transports?: string[];
|
|
320
|
-
}
|
|
321
|
-
interface AthenaPasskeyPublicKeyCredentialParam {
|
|
322
|
-
type?: string;
|
|
323
|
-
alg?: number;
|
|
324
|
-
}
|
|
325
|
-
interface AthenaPasskeyUserDescriptor {
|
|
326
|
-
id?: string;
|
|
327
|
-
name?: string;
|
|
328
|
-
displayName?: string;
|
|
329
|
-
}
|
|
330
|
-
interface AthenaPasskeyRelyingParty {
|
|
331
|
-
name?: string;
|
|
332
|
-
id?: string;
|
|
333
|
-
}
|
|
334
|
-
interface AthenaPasskeyAuthenticatorSelection {
|
|
335
|
-
authenticatorAttachment?: string;
|
|
336
|
-
requireResidentKey?: boolean;
|
|
337
|
-
userVerification?: string;
|
|
338
|
-
}
|
|
339
|
-
interface AthenaPasskeyOptionsResponse {
|
|
340
|
-
challenge?: string;
|
|
341
|
-
rp?: AthenaPasskeyRelyingParty;
|
|
342
|
-
user?: AthenaPasskeyUserDescriptor;
|
|
343
|
-
timeout?: number;
|
|
344
|
-
allowCredentials?: AthenaPasskeyCredentialDescriptor[];
|
|
345
|
-
excludeCredentials?: AthenaPasskeyCredentialDescriptor[];
|
|
346
|
-
pubKeyCredParams?: AthenaPasskeyPublicKeyCredentialParam[];
|
|
347
|
-
userVerification?: string;
|
|
348
|
-
authenticatorSelection?: AthenaPasskeyAuthenticatorSelection;
|
|
349
|
-
attestation?: string;
|
|
350
|
-
extensions?: AthenaAuthLooseRecord;
|
|
351
|
-
}
|
|
352
|
-
interface AthenaPasskeyRecord {
|
|
353
|
-
id: string;
|
|
354
|
-
name?: string | null;
|
|
355
|
-
publicKey?: string;
|
|
356
|
-
userId: string;
|
|
357
|
-
credentialID?: string;
|
|
358
|
-
counter?: number;
|
|
359
|
-
deviceType?: string;
|
|
360
|
-
backedUp?: boolean;
|
|
361
|
-
transports?: string;
|
|
362
|
-
createdAt?: string;
|
|
363
|
-
}
|
|
364
|
-
interface AthenaPasskeyVerifyRegistrationRequest {
|
|
365
|
-
response: string;
|
|
366
|
-
name?: string;
|
|
367
|
-
}
|
|
368
|
-
interface AthenaPasskeyVerifyAuthenticationRequest {
|
|
369
|
-
response: string;
|
|
370
|
-
}
|
|
371
|
-
interface AthenaPasskeyVerifyAuthenticationResponse {
|
|
372
|
-
session: AthenaAuthSession;
|
|
373
|
-
user: AthenaAuthUser;
|
|
374
|
-
}
|
|
375
|
-
interface AthenaPasskeyDeleteRequest {
|
|
376
|
-
id: string;
|
|
377
|
-
}
|
|
378
|
-
interface AthenaPasskeyDeleteResponse {
|
|
379
|
-
status: boolean;
|
|
380
|
-
}
|
|
381
|
-
interface AthenaPasskeyUpdateRequest {
|
|
382
|
-
id: string;
|
|
383
|
-
name: string;
|
|
384
|
-
}
|
|
385
|
-
interface AthenaPasskeyUpdateResponse {
|
|
386
|
-
passkey: AthenaPasskeyRecord;
|
|
387
|
-
}
|
|
388
|
-
interface AthenaAdminSetRoleRequest {
|
|
389
|
-
userId: string;
|
|
390
|
-
role: string;
|
|
391
|
-
}
|
|
392
|
-
interface AthenaAdminCreateUserRequest {
|
|
393
|
-
email: string;
|
|
394
|
-
password: string;
|
|
395
|
-
name: string;
|
|
396
|
-
role?: string;
|
|
397
|
-
data?: string;
|
|
398
|
-
}
|
|
399
|
-
interface AthenaAdminTargetUserRequest {
|
|
400
|
-
userId: string;
|
|
401
|
-
}
|
|
402
|
-
interface AthenaAdminBanUserRequest extends AthenaAdminTargetUserRequest {
|
|
403
|
-
banReason?: string;
|
|
404
|
-
banExpiresIn?: string;
|
|
405
|
-
}
|
|
406
|
-
type AthenaAuthSearchOperator = 'contains' | 'starts_with' | 'ends_with';
|
|
407
|
-
type AthenaAuthFilterOperator = 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte' | 'in' | 'not_in' | 'contains' | 'starts_with' | 'ends_with';
|
|
408
|
-
type AthenaAdminListUsersSearchOperator = AthenaAuthSearchOperator;
|
|
409
|
-
type AthenaAdminListUsersFilterOperator = AthenaAuthFilterOperator;
|
|
410
|
-
interface AthenaAdminListUsersQuery {
|
|
411
|
-
searchValue?: string;
|
|
412
|
-
searchField?: string;
|
|
413
|
-
searchOperator?: AthenaAdminListUsersSearchOperator;
|
|
414
|
-
limit?: number | string;
|
|
415
|
-
offset?: number | string;
|
|
416
|
-
sortBy?: string;
|
|
417
|
-
sortDirection?: string;
|
|
418
|
-
filterField?: string;
|
|
419
|
-
filterValue?: string;
|
|
420
|
-
filterOperator?: AthenaAdminListUsersFilterOperator;
|
|
421
|
-
}
|
|
422
|
-
interface AthenaAdminListUsersResponse {
|
|
423
|
-
users: AthenaAuthUser[];
|
|
424
|
-
total: number;
|
|
425
|
-
limit?: number;
|
|
426
|
-
offset?: number;
|
|
427
|
-
}
|
|
428
|
-
interface AthenaAdminListUserSessionsRequest {
|
|
429
|
-
userId: string;
|
|
430
|
-
}
|
|
431
|
-
interface AthenaAdminListUserSessionsResponse {
|
|
432
|
-
sessions: AthenaAuthSession[];
|
|
433
|
-
}
|
|
434
|
-
interface AthenaAdminImpersonateResponse {
|
|
435
|
-
session: AthenaAuthSession;
|
|
436
|
-
user: AthenaAuthUser;
|
|
437
|
-
}
|
|
438
|
-
interface AthenaAdminStopImpersonatingRequest {
|
|
439
|
-
userId?: string;
|
|
440
|
-
}
|
|
441
|
-
interface AthenaAdminRevokeUserSessionRequest {
|
|
442
|
-
sessionToken: string;
|
|
443
|
-
userId: string;
|
|
444
|
-
sessionId?: string;
|
|
445
|
-
}
|
|
446
|
-
interface AthenaAdminRevokeUserSessionsRequest {
|
|
447
|
-
userId: string;
|
|
448
|
-
}
|
|
449
|
-
interface AthenaAdminSetUserPasswordRequest {
|
|
450
|
-
userId: string;
|
|
451
|
-
newPassword: string;
|
|
452
|
-
}
|
|
453
|
-
interface AthenaAdminUserResponse {
|
|
454
|
-
user: AthenaAuthUser;
|
|
455
|
-
}
|
|
456
|
-
interface AthenaAdminSuccessResponse {
|
|
457
|
-
success: boolean;
|
|
458
|
-
}
|
|
459
|
-
interface AthenaAdminHasPermissionRequest {
|
|
460
|
-
permission?: AthenaAuthPermissionSet;
|
|
461
|
-
permissions: AthenaAuthPermissionSet;
|
|
462
|
-
}
|
|
463
|
-
interface AthenaAdminHasPermissionResponse {
|
|
464
|
-
success: boolean;
|
|
465
|
-
error?: string;
|
|
466
|
-
}
|
|
467
|
-
interface AthenaAdminApiKeyCreateRequest {
|
|
468
|
-
name?: string;
|
|
469
|
-
expiresIn?: number;
|
|
470
|
-
athenaClientName?: string;
|
|
471
|
-
permissions?: AthenaAuthLooseRecord;
|
|
472
|
-
metadata?: AthenaAuthLooseRecord;
|
|
473
|
-
}
|
|
474
|
-
interface AthenaAdminApiKeyCreateResponse {
|
|
475
|
-
key?: string;
|
|
476
|
-
apiKey?: AthenaAuthLooseRecord;
|
|
477
|
-
}
|
|
478
|
-
interface AthenaAdminAthenaClientCreateRequest {
|
|
479
|
-
clientName: string;
|
|
480
|
-
description?: string;
|
|
481
|
-
isActive?: boolean;
|
|
482
|
-
pgUriEnvVar?: string;
|
|
483
|
-
metadata?: AthenaAuthLooseRecord;
|
|
484
|
-
}
|
|
485
|
-
interface AthenaAdminAthenaClientListResponse {
|
|
486
|
-
athenaClients?: AthenaAuthLooseRecord[];
|
|
487
|
-
}
|
|
488
|
-
interface AthenaAdminAuditLogListQuery {
|
|
489
|
-
limit?: number;
|
|
490
|
-
offset?: number;
|
|
491
|
-
actorUserId?: string;
|
|
492
|
-
action?: string;
|
|
493
|
-
targetType?: string;
|
|
494
|
-
targetId?: string;
|
|
495
|
-
success?: boolean;
|
|
496
|
-
createdAfter?: string;
|
|
497
|
-
createdBefore?: string;
|
|
498
|
-
}
|
|
499
|
-
interface AthenaAdminAuditLogListResponse {
|
|
500
|
-
total?: number;
|
|
501
|
-
limit?: number;
|
|
502
|
-
offset?: number;
|
|
503
|
-
auditLogs?: AthenaAuthLooseRecord[];
|
|
504
|
-
}
|
|
505
|
-
interface AthenaAdminEmailListQuery {
|
|
506
|
-
limit?: number;
|
|
507
|
-
offset?: number;
|
|
508
|
-
recipientEmail?: string;
|
|
509
|
-
provider?: string;
|
|
510
|
-
flow?: string;
|
|
511
|
-
subjectContains?: string;
|
|
512
|
-
createdAfter?: string;
|
|
513
|
-
createdBefore?: string;
|
|
514
|
-
}
|
|
515
|
-
interface AthenaAdminEmailListResponse {
|
|
516
|
-
total?: number;
|
|
517
|
-
limit?: number;
|
|
518
|
-
offset?: number;
|
|
519
|
-
emails?: AthenaAuthLooseRecord[];
|
|
520
|
-
}
|
|
521
|
-
interface AthenaAdminEmailGetQuery {
|
|
522
|
-
id: string;
|
|
523
|
-
}
|
|
524
|
-
interface AthenaAdminEmailGetResponse {
|
|
525
|
-
email?: AthenaAuthLooseRecord;
|
|
526
|
-
}
|
|
527
|
-
interface AthenaAuthReactEmailRenderInput {
|
|
528
|
-
/**
|
|
529
|
-
* React email element instance (for example: `<WelcomeEmail {...props} />`).
|
|
530
|
-
*/
|
|
531
|
-
element?: unknown;
|
|
532
|
-
/**
|
|
533
|
-
* React email component function. Use with `props` when you prefer component + props inputs.
|
|
534
|
-
*/
|
|
535
|
-
component?: AthenaAuthReactEmailComponent;
|
|
536
|
-
/**
|
|
537
|
-
* Props passed to `component` when `element` is omitted.
|
|
538
|
-
*/
|
|
539
|
-
props?: AthenaAuthReactEmailProps;
|
|
540
|
-
/**
|
|
541
|
-
* When true, run `pretty(...)` on rendered HTML when available.
|
|
542
|
-
*/
|
|
543
|
-
pretty?: boolean;
|
|
544
|
-
/**
|
|
545
|
-
* Override plain-text output. If omitted, text is auto-derived when possible.
|
|
546
|
-
*/
|
|
547
|
-
text?: string;
|
|
548
|
-
/**
|
|
549
|
-
* Disable derived plain-text generation. Defaults to `true`.
|
|
550
|
-
*/
|
|
551
|
-
includePlainText?: boolean;
|
|
552
|
-
}
|
|
553
|
-
type AthenaAuthReactEmailComponent<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> = (props: TProps) => unknown;
|
|
554
|
-
interface AthenaAuthReactEmailRenderOptions {
|
|
555
|
-
pretty?: boolean;
|
|
556
|
-
includePlainText?: boolean;
|
|
557
|
-
}
|
|
558
|
-
type AthenaAuthReactEmailEventPhase = 'render:start' | 'render:success' | 'render:error';
|
|
559
|
-
interface AthenaAuthReactEmailRenderEvent {
|
|
560
|
-
phase: AthenaAuthReactEmailEventPhase;
|
|
561
|
-
timestamp: string;
|
|
562
|
-
route?: string;
|
|
563
|
-
durationMs?: number;
|
|
564
|
-
message?: string;
|
|
565
|
-
error?: string;
|
|
566
|
-
}
|
|
567
|
-
interface AthenaAuthReactEmailConfig {
|
|
568
|
-
/**
|
|
569
|
-
* Optional default render settings used when request payloads omit `pretty` or `includePlainText`.
|
|
570
|
-
*/
|
|
571
|
-
defaults?: AthenaAuthReactEmailRenderOptions;
|
|
572
|
-
/**
|
|
573
|
-
* Optional observer for render lifecycle events.
|
|
574
|
-
*/
|
|
575
|
-
observe?: (event: AthenaAuthReactEmailRenderEvent) => void;
|
|
576
|
-
}
|
|
577
|
-
interface AthenaAdminEmailCreateRequest {
|
|
578
|
-
recipientEmail: string;
|
|
579
|
-
subject: string;
|
|
580
|
-
fromAddress: string;
|
|
581
|
-
fromName?: string;
|
|
582
|
-
textBody?: string;
|
|
583
|
-
htmlBody?: string;
|
|
584
|
-
/**
|
|
585
|
-
* Optional React Email render input. When provided, `htmlBody` is derived automatically.
|
|
586
|
-
*/
|
|
587
|
-
react?: AthenaAuthReactEmailRenderInput;
|
|
588
|
-
provider: string;
|
|
589
|
-
flow?: string;
|
|
590
|
-
metadata?: AthenaAuthLooseRecord;
|
|
591
|
-
}
|
|
592
|
-
interface AthenaAdminEmailUpdateRequest {
|
|
593
|
-
id: string;
|
|
594
|
-
recipientEmail?: string;
|
|
595
|
-
subject?: string;
|
|
596
|
-
fromAddress?: string;
|
|
597
|
-
fromName?: string | null;
|
|
598
|
-
textBody?: string | null;
|
|
599
|
-
htmlBody?: string | null;
|
|
600
|
-
/**
|
|
601
|
-
* Optional React Email render input. When provided, `htmlBody` is derived automatically.
|
|
602
|
-
*/
|
|
603
|
-
react?: AthenaAuthReactEmailRenderInput;
|
|
604
|
-
provider?: string;
|
|
605
|
-
flow?: string | null;
|
|
606
|
-
metadata?: AthenaAuthLooseRecord;
|
|
607
|
-
}
|
|
608
|
-
interface AthenaAdminEmailUpdateResponse {
|
|
609
|
-
email?: AthenaAuthLooseRecord;
|
|
610
|
-
}
|
|
611
|
-
interface AthenaAdminEmailDeleteRequest {
|
|
612
|
-
id: string;
|
|
613
|
-
}
|
|
614
|
-
interface AthenaAdminEmailFailureListQuery {
|
|
615
|
-
limit?: number;
|
|
616
|
-
offset?: number;
|
|
617
|
-
recipientEmail?: string;
|
|
618
|
-
provider?: string;
|
|
619
|
-
flow?: string;
|
|
620
|
-
resolved?: boolean;
|
|
621
|
-
createdAfter?: string;
|
|
622
|
-
createdBefore?: string;
|
|
623
|
-
}
|
|
624
|
-
interface AthenaAdminEmailFailureListResponse {
|
|
625
|
-
total?: number;
|
|
626
|
-
limit?: number;
|
|
627
|
-
offset?: number;
|
|
628
|
-
emailSendFailures?: AthenaAuthLooseRecord[];
|
|
629
|
-
}
|
|
630
|
-
interface AthenaAdminEmailFailureGetQuery {
|
|
631
|
-
id: string;
|
|
632
|
-
}
|
|
633
|
-
interface AthenaAdminEmailFailureGetResponse {
|
|
634
|
-
emailSendFailure?: AthenaAuthLooseRecord;
|
|
635
|
-
}
|
|
636
|
-
interface AthenaAdminEmailFailureCreateRequest {
|
|
637
|
-
userId?: string;
|
|
638
|
-
recipientEmail: string;
|
|
639
|
-
flow: string;
|
|
640
|
-
provider?: string;
|
|
641
|
-
errorMessage: string;
|
|
642
|
-
metadata?: AthenaAuthLooseRecord;
|
|
643
|
-
}
|
|
644
|
-
interface AthenaAdminEmailFailureUpdateRequest {
|
|
645
|
-
id: string;
|
|
646
|
-
resolved?: boolean;
|
|
647
|
-
resolutionNote?: string | null;
|
|
648
|
-
metadata?: AthenaAuthLooseRecord;
|
|
649
|
-
}
|
|
650
|
-
interface AthenaAdminEmailFailureUpdateResponse {
|
|
651
|
-
emailSendFailure?: AthenaAuthLooseRecord;
|
|
652
|
-
}
|
|
653
|
-
interface AthenaAdminEmailFailureDeleteRequest {
|
|
654
|
-
id: string;
|
|
655
|
-
}
|
|
656
|
-
interface AthenaAdminEmailTemplateListQuery {
|
|
657
|
-
limit?: number;
|
|
658
|
-
offset?: number;
|
|
659
|
-
template_key?: string;
|
|
660
|
-
event_type?: string;
|
|
661
|
-
locale?: string;
|
|
662
|
-
is_active?: boolean;
|
|
663
|
-
}
|
|
664
|
-
interface AthenaAuthEmailTemplateVariableBinding {
|
|
665
|
-
name: string;
|
|
666
|
-
source: string;
|
|
667
|
-
required?: boolean;
|
|
668
|
-
}
|
|
669
|
-
interface AthenaAuthEmailTemplateAttachment {
|
|
670
|
-
file_url: string;
|
|
671
|
-
filename?: string;
|
|
672
|
-
}
|
|
673
|
-
interface AthenaAdminEmailTemplateRecord {
|
|
674
|
-
id?: string;
|
|
675
|
-
template_key: string;
|
|
676
|
-
event_type?: string | null;
|
|
677
|
-
subject_template?: string | null;
|
|
678
|
-
text_template?: string | null;
|
|
679
|
-
html_template?: string | null;
|
|
680
|
-
variables?: string[];
|
|
681
|
-
variable_bindings?: AthenaAuthEmailTemplateVariableBinding[];
|
|
682
|
-
attachments?: AthenaAuthEmailTemplateAttachment[];
|
|
683
|
-
attachment_failure_mode?: 'fail' | 'skip' | null;
|
|
684
|
-
is_active?: boolean;
|
|
685
|
-
metadata?: AthenaAuthLooseRecord;
|
|
686
|
-
created_at?: string;
|
|
687
|
-
updated_at?: string;
|
|
688
|
-
}
|
|
689
|
-
interface AthenaAdminEmailTemplateListResponse {
|
|
690
|
-
total?: number;
|
|
691
|
-
limit?: number;
|
|
692
|
-
offset?: number;
|
|
693
|
-
email_templates?: AthenaAdminEmailTemplateRecord[];
|
|
694
|
-
}
|
|
695
|
-
interface AthenaAdminEmailTemplateCreateRequest {
|
|
696
|
-
template_key: string;
|
|
697
|
-
event_type?: string;
|
|
698
|
-
locale?: string;
|
|
699
|
-
subject_template?: string;
|
|
700
|
-
text_template?: string;
|
|
701
|
-
html_template?: string;
|
|
702
|
-
/**
|
|
703
|
-
* Optional React Email render input. When provided, `html_template` is derived automatically.
|
|
704
|
-
*/
|
|
705
|
-
react?: AthenaAuthReactEmailRenderInput;
|
|
706
|
-
variables?: string[];
|
|
707
|
-
variable_bindings?: AthenaAuthEmailTemplateVariableBinding[];
|
|
708
|
-
attachments?: string | AthenaAuthEmailTemplateAttachment | AthenaAuthEmailTemplateAttachment[];
|
|
709
|
-
attachment_failure_mode?: 'fail' | 'skip';
|
|
710
|
-
is_active?: boolean;
|
|
711
|
-
metadata?: AthenaAuthLooseRecord;
|
|
712
|
-
}
|
|
713
|
-
interface AthenaAdminEmailTemplateUpdateRequest {
|
|
714
|
-
id: string;
|
|
715
|
-
template_key?: string;
|
|
716
|
-
event_type?: string;
|
|
717
|
-
locale?: string;
|
|
718
|
-
subject_template?: string;
|
|
719
|
-
text_template?: string | null;
|
|
720
|
-
html_template?: string | null;
|
|
721
|
-
/**
|
|
722
|
-
* Optional React Email render input. When provided, `html_template` is derived automatically.
|
|
723
|
-
*/
|
|
724
|
-
react?: AthenaAuthReactEmailRenderInput;
|
|
725
|
-
variables?: string[];
|
|
726
|
-
variable_bindings?: AthenaAuthEmailTemplateVariableBinding[];
|
|
727
|
-
attachments?: string | AthenaAuthEmailTemplateAttachment | AthenaAuthEmailTemplateAttachment[];
|
|
728
|
-
attachment_failure_mode?: 'fail' | 'skip';
|
|
729
|
-
is_active?: boolean;
|
|
730
|
-
metadata?: AthenaAuthLooseRecord;
|
|
731
|
-
}
|
|
732
|
-
interface AthenaAdminEmailTemplateDeleteRequest {
|
|
733
|
-
id: string;
|
|
734
|
-
}
|
|
735
|
-
interface AthenaAdminEmailTemplateGetQuery {
|
|
736
|
-
id: string;
|
|
737
|
-
}
|
|
738
|
-
interface AthenaAdminEmailTemplateGetResponse {
|
|
739
|
-
email_template?: AthenaAdminEmailTemplateRecord;
|
|
740
|
-
}
|
|
741
|
-
interface AthenaAdminEmailTemplateSendRequest {
|
|
742
|
-
template_id: string;
|
|
743
|
-
recipient_email: string;
|
|
744
|
-
render_variables?: AthenaAuthLooseRecord;
|
|
745
|
-
user_id?: string;
|
|
746
|
-
organization_id?: string;
|
|
747
|
-
session_token?: string;
|
|
748
|
-
attachments?: string | AthenaAuthEmailTemplateAttachment | AthenaAuthEmailTemplateAttachment[];
|
|
749
|
-
attachment_failure_mode?: 'fail' | 'skip';
|
|
750
|
-
metadata?: AthenaAuthLooseRecord;
|
|
751
|
-
}
|
|
752
|
-
interface AthenaAdminEmailTemplateSendResponse {
|
|
753
|
-
success: boolean;
|
|
754
|
-
flow?: string | null;
|
|
755
|
-
template_id?: string | null;
|
|
756
|
-
template_key?: string | null;
|
|
757
|
-
event_type?: string | null;
|
|
758
|
-
recipient_email?: string | null;
|
|
759
|
-
subject?: string | null;
|
|
760
|
-
attachment_count?: number | null;
|
|
761
|
-
delivery_metadata?: AthenaAuthLooseRecord | null;
|
|
762
|
-
email_send_failure_id?: string | null;
|
|
763
|
-
error?: string | null;
|
|
764
|
-
}
|
|
765
|
-
interface AthenaAdminEmailEventTypeRecord {
|
|
766
|
-
event_type: string;
|
|
767
|
-
label?: string | null;
|
|
768
|
-
description?: string | null;
|
|
769
|
-
}
|
|
770
|
-
interface AthenaAdminEmailEventTypeListResponse {
|
|
771
|
-
event_types?: AthenaAdminEmailEventTypeRecord[];
|
|
772
|
-
}
|
|
773
|
-
interface AthenaApiKeyCreateRequest {
|
|
774
|
-
name?: string;
|
|
775
|
-
expiresIn: string;
|
|
776
|
-
userId?: string;
|
|
777
|
-
prefix?: string;
|
|
778
|
-
remaining: string;
|
|
779
|
-
metadata?: string;
|
|
780
|
-
refillAmount?: string;
|
|
781
|
-
refillInterval?: string;
|
|
782
|
-
rateLimitTimeWindow?: string;
|
|
783
|
-
rateLimitMax?: string;
|
|
784
|
-
rateLimitEnabled?: string;
|
|
785
|
-
permissions?: string;
|
|
786
|
-
}
|
|
787
|
-
interface AthenaApiKeyRecord {
|
|
788
|
-
id: string;
|
|
789
|
-
name?: string | null;
|
|
790
|
-
start?: string | null;
|
|
791
|
-
prefix?: string | null;
|
|
792
|
-
userId: string;
|
|
793
|
-
refillInterval?: number | null;
|
|
794
|
-
refillAmount?: number | null;
|
|
795
|
-
lastRefillAt?: string | null;
|
|
796
|
-
enabled: boolean;
|
|
797
|
-
rateLimitEnabled: boolean;
|
|
798
|
-
rateLimitTimeWindow?: number | null;
|
|
799
|
-
rateLimitMax?: number | null;
|
|
800
|
-
requestCount: number;
|
|
801
|
-
remaining?: number | null;
|
|
802
|
-
lastRequest?: string | null;
|
|
803
|
-
expiresAt?: string | null;
|
|
804
|
-
createdAt: string;
|
|
805
|
-
updatedAt: string;
|
|
806
|
-
metadata?: AthenaAuthLooseRecord | null;
|
|
807
|
-
permissions?: string | null;
|
|
808
|
-
key?: string;
|
|
809
|
-
}
|
|
810
|
-
interface AthenaApiKeyGetQuery {
|
|
811
|
-
id?: string;
|
|
812
|
-
}
|
|
813
|
-
interface AthenaApiKeyUpdateRequest {
|
|
814
|
-
keyId: string;
|
|
815
|
-
userId?: string;
|
|
816
|
-
name?: string;
|
|
817
|
-
enabled?: string;
|
|
818
|
-
remaining?: string;
|
|
819
|
-
refillAmount?: string;
|
|
820
|
-
refillInterval?: string;
|
|
821
|
-
metadata?: string;
|
|
822
|
-
expiresIn: string;
|
|
823
|
-
rateLimitEnabled?: string;
|
|
824
|
-
rateLimitTimeWindow?: string;
|
|
825
|
-
rateLimitMax?: string;
|
|
826
|
-
permissions: string;
|
|
827
|
-
}
|
|
828
|
-
interface AthenaApiKeyDeleteRequest {
|
|
829
|
-
keyId: string;
|
|
830
|
-
}
|
|
831
|
-
interface AthenaApiKeyVerifyRequest {
|
|
832
|
-
key: string;
|
|
833
|
-
permissions?: AthenaAuthLooseRecord;
|
|
834
|
-
}
|
|
835
|
-
interface AthenaApiKeyVerifyResponse {
|
|
836
|
-
valid?: boolean;
|
|
837
|
-
error?: {
|
|
838
|
-
message?: string;
|
|
839
|
-
code?: string;
|
|
840
|
-
} | null;
|
|
841
|
-
key?: AthenaAuthLooseRecord | null;
|
|
842
|
-
}
|
|
843
|
-
interface AthenaApiKeyDeleteAllExpiredResponse {
|
|
844
|
-
deleted?: number;
|
|
845
|
-
}
|
|
846
|
-
interface AthenaAuthOrganizationCreateRequest {
|
|
847
|
-
name: string;
|
|
848
|
-
slug: string;
|
|
849
|
-
logo?: string;
|
|
850
|
-
metadata?: Record<string, unknown>;
|
|
851
|
-
userId?: string;
|
|
852
|
-
keepCurrentActiveOrganization?: boolean;
|
|
853
|
-
}
|
|
854
|
-
interface AthenaAuthOrganizationCheckSlugRequest {
|
|
855
|
-
slug: string;
|
|
856
|
-
}
|
|
857
|
-
interface AthenaAuthOrganizationSetActiveRequest {
|
|
858
|
-
organizationId?: string | null;
|
|
859
|
-
organizationSlug?: string | null;
|
|
860
|
-
}
|
|
861
|
-
interface AthenaAuthOrganizationGetFullQuery {
|
|
862
|
-
organizationId?: string;
|
|
863
|
-
organizationSlug?: string;
|
|
864
|
-
membersLimit?: number;
|
|
865
|
-
}
|
|
866
|
-
interface AthenaAuthOrganizationUpdateRequest {
|
|
867
|
-
data: {
|
|
868
|
-
name?: string;
|
|
869
|
-
slug?: string;
|
|
870
|
-
logo?: string;
|
|
871
|
-
metadata?: Record<string, unknown> | null;
|
|
872
|
-
};
|
|
873
|
-
organizationId?: string;
|
|
874
|
-
}
|
|
875
|
-
interface AthenaAuthOrganizationDeleteRequest {
|
|
876
|
-
organizationId: string;
|
|
877
|
-
}
|
|
878
|
-
interface AthenaAuthOrganizationInviteMemberRequest {
|
|
879
|
-
email: string;
|
|
880
|
-
role: string | string[];
|
|
881
|
-
organizationId?: string;
|
|
882
|
-
resend?: boolean;
|
|
883
|
-
teamId?: string;
|
|
884
|
-
}
|
|
885
|
-
interface AthenaAuthOrganizationInvitationActionRequest {
|
|
886
|
-
invitationId: string;
|
|
887
|
-
}
|
|
888
|
-
interface AthenaAuthOrganizationGetInvitationQuery {
|
|
889
|
-
id: string;
|
|
890
|
-
}
|
|
891
|
-
interface AthenaAuthOrganizationListInvitationsQuery {
|
|
892
|
-
organizationId?: string;
|
|
893
|
-
}
|
|
894
|
-
interface AthenaAuthOrganizationListUserInvitationsQuery {
|
|
895
|
-
email?: string;
|
|
896
|
-
}
|
|
897
|
-
type AthenaAuthOrganizationListMembersFilterOperator = AthenaAuthFilterOperator;
|
|
898
|
-
interface AthenaAuthOrganizationListMembersQuery {
|
|
899
|
-
organizationId?: string;
|
|
900
|
-
limit?: number;
|
|
901
|
-
offset?: number;
|
|
902
|
-
sortBy?: string;
|
|
903
|
-
sortDirection?: 'asc' | 'desc';
|
|
904
|
-
filterField?: string;
|
|
905
|
-
filterOperator?: AthenaAuthOrganizationListMembersFilterOperator;
|
|
906
|
-
filterValue?: string | number | boolean | string[] | number[];
|
|
907
|
-
}
|
|
908
|
-
interface AthenaAuthOrganizationRemoveMemberRequest {
|
|
909
|
-
memberIdOrEmail: string;
|
|
910
|
-
organizationId?: string;
|
|
911
|
-
}
|
|
912
|
-
interface AthenaAuthOrganizationUpdateMemberRoleRequest {
|
|
913
|
-
role: string | string[];
|
|
914
|
-
memberId: string;
|
|
915
|
-
organizationId?: string;
|
|
916
|
-
}
|
|
917
|
-
interface AthenaAuthOrganizationLeaveRequest {
|
|
918
|
-
organizationId: string;
|
|
919
|
-
}
|
|
920
|
-
interface AthenaAuthRequestInput {
|
|
921
|
-
endpoint: AthenaAuthEndpointPath;
|
|
922
|
-
method?: AthenaAuthMethod;
|
|
923
|
-
body?: unknown;
|
|
924
|
-
query?: Record<string, AthenaAuthQueryValue>;
|
|
925
|
-
fetchOptions?: AthenaAuthCallOptions;
|
|
926
|
-
}
|
|
927
|
-
interface AthenaAuthCallOptions {
|
|
928
|
-
baseUrl?: string;
|
|
929
|
-
apiKey?: string;
|
|
930
|
-
bearerToken?: string;
|
|
931
|
-
cookie?: string;
|
|
932
|
-
sessionToken?: string;
|
|
933
|
-
forceNoCache?: boolean;
|
|
934
|
-
headers?: Record<string, string>;
|
|
935
|
-
credentials?: AthenaAuthCredentials;
|
|
936
|
-
signal?: AbortSignal;
|
|
937
|
-
}
|
|
938
|
-
interface AthenaAuthFetchCompatibleInput {
|
|
939
|
-
fetchOptions?: AthenaAuthCallOptions;
|
|
940
|
-
}
|
|
941
|
-
interface AthenaAuthClientConfig extends AthenaAuthCallOptions {
|
|
942
|
-
fetch?: typeof fetch;
|
|
943
|
-
reactEmail?: AthenaAuthReactEmailConfig;
|
|
944
|
-
}
|
|
945
|
-
type AthenaAuthGuardReason = 'unauthorized' | 'forbidden' | 'upstream_error';
|
|
946
|
-
interface AthenaAuthGuardSuccess {
|
|
947
|
-
ok: true;
|
|
948
|
-
session: AthenaAuthSessionResponse;
|
|
949
|
-
}
|
|
950
|
-
interface AthenaAuthGuardFailure {
|
|
951
|
-
ok: false;
|
|
952
|
-
reason: AthenaAuthGuardReason;
|
|
953
|
-
status: number;
|
|
954
|
-
error: string;
|
|
955
|
-
sessionResult?: AthenaAuthResult<AthenaAuthSessionResponse>;
|
|
956
|
-
permissionResult?: AthenaAuthResult<AthenaAdminHasPermissionResponse>;
|
|
957
|
-
}
|
|
958
|
-
type AthenaAuthGuardResult = AthenaAuthGuardSuccess | AthenaAuthGuardFailure;
|
|
959
|
-
interface AthenaAuthEmailTemplateDefinition<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> {
|
|
960
|
-
component: AthenaAuthReactEmailComponent<TProps>;
|
|
961
|
-
templateKey?: string;
|
|
962
|
-
subjectTemplate?: string;
|
|
963
|
-
defaults?: AthenaAuthReactEmailRenderOptions;
|
|
964
|
-
}
|
|
965
|
-
interface AthenaAuthEmailTemplateReactOverrides {
|
|
966
|
-
pretty?: boolean;
|
|
967
|
-
text?: string;
|
|
968
|
-
includePlainText?: boolean;
|
|
969
|
-
}
|
|
970
|
-
interface AthenaAuthEmailTemplateCreateFromDefinitionInput<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> extends Omit<AthenaAdminEmailTemplateCreateRequest, 'react' | 'htmlTemplate' | 'textTemplate' | 'variables' | 'templateKey' | 'subjectTemplate'> {
|
|
971
|
-
props: TProps;
|
|
972
|
-
templateKey?: string;
|
|
973
|
-
subjectTemplate?: string;
|
|
974
|
-
react?: AthenaAuthEmailTemplateReactOverrides;
|
|
975
|
-
}
|
|
976
|
-
interface AthenaAuthEmailTemplateUpdateFromDefinitionInput<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> extends Omit<AthenaAdminEmailTemplateUpdateRequest, 'react' | 'htmlTemplate' | 'textTemplate' | 'variables'> {
|
|
977
|
-
props: TProps;
|
|
978
|
-
react?: AthenaAuthEmailTemplateReactOverrides;
|
|
979
|
-
}
|
|
980
|
-
interface AthenaAuthEmailTemplateBuilder<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> {
|
|
981
|
-
component: AthenaAuthReactEmailComponent<TProps>;
|
|
982
|
-
react: (props: TProps, overrides?: AthenaAuthEmailTemplateReactOverrides) => AthenaAuthReactEmailRenderInput;
|
|
983
|
-
toTemplateCreate: (input: AthenaAuthEmailTemplateCreateFromDefinitionInput<TProps>) => AthenaAdminEmailTemplateCreateRequest;
|
|
984
|
-
toTemplateUpdate: (input: AthenaAuthEmailTemplateUpdateFromDefinitionInput<TProps>) => AthenaAdminEmailTemplateUpdateRequest;
|
|
985
|
-
}
|
|
986
|
-
type AthenaAuthGenericInput = AthenaAuthFetchCompatibleInput & Record<string, unknown>;
|
|
987
|
-
type AthenaAuthGenericQueryInput = AthenaAuthFetchCompatibleInput & {
|
|
988
|
-
query?: Record<string, AthenaAuthQueryValue>;
|
|
989
|
-
};
|
|
990
|
-
type AthenaAuthResetPasswordBinding = ((input: AthenaResetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>) & {
|
|
991
|
-
token: (input: {
|
|
992
|
-
token: string;
|
|
993
|
-
callbackURL?: string;
|
|
994
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
995
|
-
token?: string;
|
|
996
|
-
}>>;
|
|
997
|
-
};
|
|
998
|
-
type AthenaAuthSessionRevokeBinding = (input: (AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput) | (AthenaAuthRevokeSessionRequest[] & AthenaAuthFetchCompatibleInput), options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
999
|
-
type AthenaAuthAdminUserSessionRevokeBinding = (input: (AthenaAdminRevokeUserSessionRequest & AthenaAuthFetchCompatibleInput) | (AthenaAdminRevokeUserSessionsRequest & AthenaAuthFetchCompatibleInput) | ({
|
|
1000
|
-
sessions: AthenaAdminRevokeUserSessionRequest[];
|
|
1001
|
-
} & AthenaAuthFetchCompatibleInput) | ((AthenaAdminRevokeUserSessionRequest & AthenaAuthFetchCompatibleInput)[]), options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1002
|
-
interface AthenaAuthOrganizationBindings {
|
|
1003
|
-
/** Create an organization. Route: `POST /organization/create`. */
|
|
1004
|
-
create: (input: AthenaAuthOrganizationCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganization>>;
|
|
1005
|
-
/** Update an organization. Route: `POST /organization/update`. */
|
|
1006
|
-
update: (input: AthenaAuthOrganizationUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganization>>;
|
|
1007
|
-
/** Delete an organization. Route: `POST /organization/delete`. */
|
|
1008
|
-
delete: (input: AthenaAuthOrganizationDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1009
|
-
/** Set active organization for current session. Route: `POST /organization/set-active`. */
|
|
1010
|
-
setActive: (input: AthenaAuthOrganizationSetActiveRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1011
|
-
/** List organizations visible to the current user. Route: `GET /organization/list`. */
|
|
1012
|
-
list: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganization[]>>;
|
|
1013
|
-
/** Get organization details including related members/invitations. Route: `GET /organization/get-full-organization`. */
|
|
1014
|
-
getFull: (input?: {
|
|
1015
|
-
query?: AthenaAuthOrganizationGetFullQuery;
|
|
1016
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
1017
|
-
organization: AthenaAuthOrganization;
|
|
1018
|
-
members?: AthenaAuthOrganizationMember[];
|
|
1019
|
-
invitations?: AthenaAuthOrganizationInvitation[];
|
|
1020
|
-
}>>;
|
|
1021
|
-
/** Check if an organization slug is available. Route: `POST /organization/check-slug`. */
|
|
1022
|
-
checkSlug: (input: AthenaAuthOrganizationCheckSlugRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
1023
|
-
available: boolean;
|
|
1024
|
-
}>>;
|
|
1025
|
-
/** Leave an organization. Route: `POST /organization/leave`. */
|
|
1026
|
-
leave: (input: AthenaAuthOrganizationLeaveRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1027
|
-
/** List invitations for the current user. Route: `GET /organization/list-user-invitations`. */
|
|
1028
|
-
listUserInvitations: (input?: {
|
|
1029
|
-
query?: AthenaAuthOrganizationListUserInvitationsQuery;
|
|
1030
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganizationInvitation[]>>;
|
|
1031
|
-
/** Check organization-level permissions for the current principal. Route: `POST /organization/has-permission`. */
|
|
1032
|
-
hasPermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminHasPermissionResponse>>;
|
|
1033
|
-
/** Resolve the current session and require organization-level permissions in one call. */
|
|
1034
|
-
requirePermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
|
|
1035
|
-
invitation: {
|
|
1036
|
-
/** Cancel an organization invitation. Route: `POST /organization/cancel-invitation`. */
|
|
1037
|
-
cancel: (input: AthenaAuthOrganizationInvitationActionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1038
|
-
/** Accept an organization invitation. Route: `POST /organization/accept-invitation`. */
|
|
1039
|
-
accept: (input: AthenaAuthOrganizationInvitationActionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1040
|
-
/** Get an invitation by id. Route: `GET /organization/get-invitation`. */
|
|
1041
|
-
get: (input: {
|
|
1042
|
-
query: AthenaAuthOrganizationGetInvitationQuery;
|
|
1043
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganizationInvitation>>;
|
|
1044
|
-
/** Reject an organization invitation. Route: `POST /organization/reject-invitation`. */
|
|
1045
|
-
reject: (input: AthenaAuthOrganizationInvitationActionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1046
|
-
/** List invitations for an organization. Route: `GET /organization/list-invitations`. */
|
|
1047
|
-
list: (input?: {
|
|
1048
|
-
query?: AthenaAuthOrganizationListInvitationsQuery;
|
|
1049
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganizationInvitation[]>>;
|
|
1050
|
-
};
|
|
1051
|
-
member: {
|
|
1052
|
-
/** Remove an organization member. Route: `POST /organization/remove-member`. */
|
|
1053
|
-
remove: (input: AthenaAuthOrganizationRemoveMemberRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1054
|
-
/** Update a member role. Route: `POST /organization/update-member-role`. */
|
|
1055
|
-
updateRole: (input: AthenaAuthOrganizationUpdateMemberRoleRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1056
|
-
/** Invite a member to an organization. Route: `POST /organization/invite-member`. */
|
|
1057
|
-
invite: (input: AthenaAuthOrganizationInviteMemberRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganizationInvitation>>;
|
|
1058
|
-
/** Get the active organization member context for the current session. Route: `GET /organization/get-active-member`. */
|
|
1059
|
-
getActive: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganizationMember>>;
|
|
1060
|
-
/** List organization members. Route: `GET /organization/list-members`. */
|
|
1061
|
-
list: (input?: {
|
|
1062
|
-
query?: AthenaAuthOrganizationListMembersQuery;
|
|
1063
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganizationMember[]>>;
|
|
1064
|
-
};
|
|
1065
|
-
}
|
|
1066
|
-
interface AthenaAuthBindings {
|
|
1067
|
-
/** Get current session. Route: `GET /get-session`. */
|
|
1068
|
-
getSession: AthenaAuthSdkClient['getSession'];
|
|
1069
|
-
/** Get current user as a Better Auth-style compatibility projection. Route: `GET /get-session`. */
|
|
1070
|
-
getUser: AthenaAuthSdkClient['getUser'];
|
|
1071
|
-
/** Resolve the current session into a typed guard result. */
|
|
1072
|
-
requireSession: AthenaAuthSdkClient['requireSession'];
|
|
1073
|
-
/** Sign out current session. Route: `POST /sign-out`. */
|
|
1074
|
-
signOut: AthenaAuthSdkClient['signOut'];
|
|
1075
|
-
/** Trigger password reset email flow. Route: `POST /forget-password`. */
|
|
1076
|
-
forgetPassword: AthenaAuthSdkClient['forgetPassword'];
|
|
1077
|
-
/** Reset password (`POST /reset-password`) and token resolver (`GET /reset-password/{token}`). */
|
|
1078
|
-
resetPassword: AthenaAuthResetPasswordBinding;
|
|
1079
|
-
/** Set password for the current authenticated user. Route: `POST /set-password`. */
|
|
1080
|
-
setPassword: (input: AthenaSetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1081
|
-
/** Verify email token. Route: `GET /verify-email`. */
|
|
1082
|
-
verifyEmail: AthenaAuthSdkClient['verifyEmail'];
|
|
1083
|
-
/** Send verification email. Route: `POST /send-verification-email`. */
|
|
1084
|
-
sendVerificationEmail: AthenaAuthSdkClient['sendVerificationEmail'];
|
|
1085
|
-
/** Start change-email flow. Route: `POST /change-email`. */
|
|
1086
|
-
changeEmail: AthenaAuthSdkClient['changeEmail'];
|
|
1087
|
-
/** Verify pending email change. Route: `GET /change-email/verify`. */
|
|
1088
|
-
changeEmailVerify: (input: {
|
|
1089
|
-
query: AthenaAuthTokenQuery;
|
|
1090
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthTokenVerificationResponse>>;
|
|
1091
|
-
/** Verify pending delete-user flow. Route: `GET /delete-user/verify`. */
|
|
1092
|
-
deleteUserVerify: (input: {
|
|
1093
|
-
query: AthenaAuthTokenQuery;
|
|
1094
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthTokenVerificationResponse>>;
|
|
1095
|
-
/** Change current user password. Route: `POST /change-password`. */
|
|
1096
|
-
changePassword: AthenaAuthSdkClient['changePassword'];
|
|
1097
|
-
user: {
|
|
1098
|
-
/** Update current user profile fields. Route: `POST /update-user`. */
|
|
1099
|
-
update: AthenaAuthSdkClient['updateUser'];
|
|
1100
|
-
/** Delete current user. Route: `POST /delete-user`. */
|
|
1101
|
-
delete: AthenaAuthSdkClient['deleteUser'];
|
|
1102
|
-
email: {
|
|
1103
|
-
/**
|
|
1104
|
-
* List email identities for current user.
|
|
1105
|
-
* Routes: primary `GET /email/list`; falls back to `GET /email-list` on `404`.
|
|
1106
|
-
*/
|
|
1107
|
-
list: (input?: {
|
|
1108
|
-
query?: AthenaAuthEmailListQuery;
|
|
1109
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthEmailListResponse>>;
|
|
1110
|
-
};
|
|
1111
|
-
};
|
|
1112
|
-
session: {
|
|
1113
|
-
/** List user sessions. Route: `GET /list-sessions`. */
|
|
1114
|
-
list: AthenaAuthSdkClient['listSessions'];
|
|
1115
|
-
/** Revoke one or multiple sessions; collapses to `/revoke-session` or `/revoke-sessions` by payload shape. */
|
|
1116
|
-
revoke: AthenaAuthSessionRevokeBinding;
|
|
1117
|
-
/** Revoke all other sessions for current user. Route: `POST /revoke-other-sessions`. */
|
|
1118
|
-
revokeOther: AthenaAuthSdkClient['revokeOtherSessions'];
|
|
1119
|
-
};
|
|
1120
|
-
social: {
|
|
1121
|
-
/** Link a social provider to current user. Route: `POST /link-social`. */
|
|
1122
|
-
link: AthenaAuthSdkClient['linkSocial'];
|
|
1123
|
-
};
|
|
1124
|
-
account: {
|
|
1125
|
-
/** List linked provider accounts. Route: `GET /list-accounts`. */
|
|
1126
|
-
list: AthenaAuthSdkClient['listAccounts'];
|
|
1127
|
-
/** Unlink a provider account. Route: `POST /unlink-account`. */
|
|
1128
|
-
unlink: AthenaAuthSdkClient['unlinkAccount'];
|
|
1129
|
-
};
|
|
1130
|
-
deleteUser: {
|
|
1131
|
-
/** Callback endpoint for delete-user verification flows. Route: `GET /delete-user/callback`. */
|
|
1132
|
-
callback: AthenaAuthSdkClient['deleteUserCallback'];
|
|
1133
|
-
};
|
|
1134
|
-
/** Refresh provider token. Route: `POST /refresh-token`. */
|
|
1135
|
-
refreshToken: AthenaAuthSdkClient['refreshToken'];
|
|
1136
|
-
/** Get provider access token. Route: `POST /get-access-token`. */
|
|
1137
|
-
getAccessToken: AthenaAuthSdkClient['getAccessToken'];
|
|
1138
|
-
/** Auth health route. Primary `GET /health`; falls back to `GET /ok` on `404`. */
|
|
1139
|
-
health: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthHealthResponse>>;
|
|
1140
|
-
/** Health route passthrough. Route: `GET /ok`. */
|
|
1141
|
-
ok: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOkResponse>>;
|
|
1142
|
-
/** Error route passthrough. Route: `GET /error`. */
|
|
1143
|
-
error: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthErrorResponse | string>>;
|
|
1144
|
-
twoFactor: {
|
|
1145
|
-
/** Get TOTP URI for setup. Route: `POST /two-factor/get-totp-uri`. */
|
|
1146
|
-
getTotpUri: (input: AthenaTwoFactorGetTotpUriRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaTwoFactorGetTotpUriResponse>>;
|
|
1147
|
-
/** Verify TOTP code. Route: `POST /two-factor/verify-totp`. */
|
|
1148
|
-
verifyTotp: (input: AthenaTwoFactorVerifyTotpRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaTwoFactorVerifyTotpResponse>>;
|
|
1149
|
-
/** Send one-time passcode (OTP). Route: `POST /two-factor/send-otp`. */
|
|
1150
|
-
sendOtp: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1151
|
-
/** Verify OTP code. Route: `POST /two-factor/verify-otp`. */
|
|
1152
|
-
verifyOtp: (input: AthenaTwoFactorVerifyOtpRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaTwoFactorVerifyOtpResponse>>;
|
|
1153
|
-
/** Verify backup code. Route: `POST /two-factor/verify-backup-code`. */
|
|
1154
|
-
verifyBackupCode: (input: AthenaTwoFactorVerifyBackupCodeRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaTwoFactorVerifyBackupCodeResponse>>;
|
|
1155
|
-
/** Generate backup codes. Route: `POST /two-factor/generate-backup-codes`. */
|
|
1156
|
-
generateBackupCodes: (input: AthenaTwoFactorGenerateBackupCodesRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaTwoFactorGenerateBackupCodesResponse>>;
|
|
1157
|
-
/** Enable two-factor auth. Route: `POST /two-factor/enable`. */
|
|
1158
|
-
enable: (input: AthenaTwoFactorEnableRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaTwoFactorEnableResponse>>;
|
|
1159
|
-
/** Disable two-factor auth. Route: `POST /two-factor/disable`. */
|
|
1160
|
-
disable: (input: AthenaTwoFactorDisableRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaTwoFactorDisableResponse>>;
|
|
1161
|
-
};
|
|
1162
|
-
passkey: {
|
|
1163
|
-
/** Generate WebAuthn registration options. Route: `GET /passkey/generate-register-options`. */
|
|
1164
|
-
generateRegisterOptions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaPasskeyOptionsResponse>>;
|
|
1165
|
-
/** Generate WebAuthn authentication options. Route: `POST /passkey/generate-authenticate-options`. */
|
|
1166
|
-
generateAuthenticateOptions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaPasskeyOptionsResponse>>;
|
|
1167
|
-
/** Verify passkey registration response. Route: `POST /passkey/verify-registration`. */
|
|
1168
|
-
verifyRegistration: (input: AthenaPasskeyVerifyRegistrationRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaPasskeyRecord>>;
|
|
1169
|
-
/** Verify passkey authentication response. Route: `POST /passkey/verify-authentication`. */
|
|
1170
|
-
verifyAuthentication: (input: AthenaPasskeyVerifyAuthenticationRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaPasskeyVerifyAuthenticationResponse>>;
|
|
1171
|
-
/** List current user's passkeys. Route: `GET /passkey/list-user-passkeys`. */
|
|
1172
|
-
listUserPasskeys: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaPasskeyRecord[]>>;
|
|
1173
|
-
/** Delete a passkey. Route: `POST /passkey/delete-passkey`. */
|
|
1174
|
-
deletePasskey: (input: AthenaPasskeyDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaPasskeyDeleteResponse>>;
|
|
1175
|
-
/** Update a passkey metadata record. Route: `POST /passkey/update-passkey`. */
|
|
1176
|
-
updatePasskey: (input: AthenaPasskeyUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaPasskeyUpdateResponse>>;
|
|
1177
|
-
/** Return related origins for WebAuthn. Route: `GET /.well-known/webauthn`. */
|
|
1178
|
-
getRelatedOrigins: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
1179
|
-
origins?: string[];
|
|
1180
|
-
}>>;
|
|
1181
|
-
};
|
|
1182
|
-
admin: {
|
|
1183
|
-
role: {
|
|
1184
|
-
/** Set a user role. Route: `POST /admin/set-role`. */
|
|
1185
|
-
set: (input: AthenaAdminSetRoleRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminUserResponse>>;
|
|
1186
|
-
};
|
|
1187
|
-
user: {
|
|
1188
|
-
/** List users. Route: `GET /admin/list-users`. */
|
|
1189
|
-
list: (input?: {
|
|
1190
|
-
query?: AthenaAdminListUsersQuery;
|
|
1191
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminListUsersResponse>>;
|
|
1192
|
-
/** Create user. Route: `POST /admin/create-user`. */
|
|
1193
|
-
create: (input: AthenaAdminCreateUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminUserResponse>>;
|
|
1194
|
-
/** Unban user. Route: `POST /admin/unban-user`. */
|
|
1195
|
-
unban: (input: AthenaAdminTargetUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminUserResponse>>;
|
|
1196
|
-
/** Ban user. Route: `POST /admin/ban-user`. */
|
|
1197
|
-
ban: (input: AthenaAdminBanUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminUserResponse>>;
|
|
1198
|
-
/** Start impersonation. Route: `POST /admin/impersonate-user`. */
|
|
1199
|
-
impersonate: (input: AthenaAdminTargetUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminImpersonateResponse>>;
|
|
1200
|
-
/** Stop impersonation. Route: `POST /admin/stop-impersonating`. */
|
|
1201
|
-
stopImpersonating: (input?: AthenaAdminStopImpersonatingRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthLooseRecord>>;
|
|
1202
|
-
/** Remove user. Route: `POST /admin/remove-user`. */
|
|
1203
|
-
remove: (input: AthenaAdminTargetUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1204
|
-
/** Set user password. Route: `POST /admin/set-user-password`. */
|
|
1205
|
-
setPassword: (input: AthenaAdminSetUserPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1206
|
-
session: {
|
|
1207
|
-
/** List sessions for a target user. Route: `POST /admin/list-user-sessions`. */
|
|
1208
|
-
list: (input: AthenaAdminListUserSessionsRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminListUserSessionsResponse>>;
|
|
1209
|
-
/**
|
|
1210
|
-
* Revoke one or multiple sessions; collapses to `/admin/revoke-user-session` or
|
|
1211
|
-
* `/admin/revoke-user-sessions`. `userId` is required and plural payloads must share one `userId`.
|
|
1212
|
-
*/
|
|
1213
|
-
revoke: AthenaAuthAdminUserSessionRevokeBinding;
|
|
1214
|
-
};
|
|
1215
|
-
};
|
|
1216
|
-
/** Check permission under admin policy. Route: `POST /admin/has-permission`. */
|
|
1217
|
-
hasPermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminHasPermissionResponse>>;
|
|
1218
|
-
/** Resolve the current session and require admin permissions in one call. */
|
|
1219
|
-
requirePermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
|
|
1220
|
-
apiKey: {
|
|
1221
|
-
/** Create admin-scoped API key. Route: `POST /admin/api-key/create`. */
|
|
1222
|
-
create: (input?: AthenaAdminApiKeyCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminApiKeyCreateResponse>>;
|
|
1223
|
-
};
|
|
1224
|
-
athenaClient: {
|
|
1225
|
-
/** Create Athena client credentials. Route: `POST /admin/athena-client/create`. */
|
|
1226
|
-
create: (input: AthenaAdminAthenaClientCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthLooseRecord>>;
|
|
1227
|
-
/** List Athena client credentials. Route: `GET /admin/athena-client/list`. */
|
|
1228
|
-
list: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminAthenaClientListResponse>>;
|
|
1229
|
-
};
|
|
1230
|
-
auditLog: {
|
|
1231
|
-
/** List auth audit events. Route: `GET /admin/audit-log/list`. */
|
|
1232
|
-
list: (input?: {
|
|
1233
|
-
query?: AthenaAdminAuditLogListQuery;
|
|
1234
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminAuditLogListResponse>>;
|
|
1235
|
-
};
|
|
1236
|
-
email: {
|
|
1237
|
-
/** List emails. Route: `GET /admin/email/list`. */
|
|
1238
|
-
list: (input?: {
|
|
1239
|
-
query?: AthenaAdminEmailListQuery;
|
|
1240
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailListResponse>>;
|
|
1241
|
-
/** Get a specific email record. Route: `GET /admin/email/get`. */
|
|
1242
|
-
get: (input: {
|
|
1243
|
-
query: AthenaAdminEmailGetQuery;
|
|
1244
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailGetResponse>>;
|
|
1245
|
-
/** Create an email record. Route: `POST /admin/email/create`. */
|
|
1246
|
-
create: (input: AthenaAdminEmailCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1247
|
-
/** Update an email record. Route: `POST /admin/email/update`. */
|
|
1248
|
-
update: (input: AthenaAdminEmailUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailUpdateResponse>>;
|
|
1249
|
-
/** Delete an email record. Route: `POST /admin/email/delete`. */
|
|
1250
|
-
delete: (input: AthenaAdminEmailDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1251
|
-
failure: {
|
|
1252
|
-
/** List email failure records. Route: `GET /admin/email-failure/list`. */
|
|
1253
|
-
list: (input?: {
|
|
1254
|
-
query?: AthenaAdminEmailFailureListQuery;
|
|
1255
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailFailureListResponse>>;
|
|
1256
|
-
/** Get an email failure record. Route: `GET /admin/email-failure/get`. */
|
|
1257
|
-
get: (input: {
|
|
1258
|
-
query: AthenaAdminEmailFailureGetQuery;
|
|
1259
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailFailureGetResponse>>;
|
|
1260
|
-
/** Create an email failure record. Route: `POST /admin/email-failure/create`. */
|
|
1261
|
-
create: (input: AthenaAdminEmailFailureCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1262
|
-
/** Update an email failure record. Route: `POST /admin/email-failure/update`. */
|
|
1263
|
-
update: (input: AthenaAdminEmailFailureUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailFailureUpdateResponse>>;
|
|
1264
|
-
/** Delete an email failure record. Route: `POST /admin/email-failure/delete`. */
|
|
1265
|
-
delete: (input: AthenaAdminEmailFailureDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1266
|
-
};
|
|
1267
|
-
template: {
|
|
1268
|
-
/** List email templates. Route: `GET /admin/email-template/list`. */
|
|
1269
|
-
list: (input?: {
|
|
1270
|
-
query?: AthenaAdminEmailTemplateListQuery;
|
|
1271
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateListResponse>>;
|
|
1272
|
-
/** Get email template by ID. Route: `GET /admin/email-template/get`. */
|
|
1273
|
-
get: (input: {
|
|
1274
|
-
query: AthenaAdminEmailTemplateGetQuery;
|
|
1275
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateGetResponse>>;
|
|
1276
|
-
/** Create email template. Route: `POST /admin/email-template/create`. */
|
|
1277
|
-
create: (input: AthenaAdminEmailTemplateCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateRecord>>;
|
|
1278
|
-
/** Update email template. Route: `POST /admin/email-template/update`. */
|
|
1279
|
-
update: (input: AthenaAdminEmailTemplateUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateRecord>>;
|
|
1280
|
-
/** Delete email template. Route: `POST /admin/email-template/delete`. */
|
|
1281
|
-
delete: (input: AthenaAdminEmailTemplateDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1282
|
-
/** Send one stored email template. Route: `POST /admin/email-template/send`. */
|
|
1283
|
-
send: (input: AthenaAdminEmailTemplateSendRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateSendResponse>>;
|
|
1284
|
-
};
|
|
1285
|
-
eventType: {
|
|
1286
|
-
/** List canonical admin email event types. Route: `GET /admin/email-event-type/list`. */
|
|
1287
|
-
list: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailEventTypeListResponse>>;
|
|
1288
|
-
};
|
|
1289
|
-
};
|
|
1290
|
-
emailTemplate: {
|
|
1291
|
-
/** Get email template by ID. Route: `GET /admin/email-template/get`. */
|
|
1292
|
-
get: (input: {
|
|
1293
|
-
query: AthenaAdminEmailTemplateGetQuery;
|
|
1294
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateGetResponse>>;
|
|
1295
|
-
/** Create email template. Route: `POST /admin/email-template/create`. */
|
|
1296
|
-
create: (input: AthenaAdminEmailTemplateCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateRecord>>;
|
|
1297
|
-
/** Delete email template. Route: `POST /admin/email-template/delete`. */
|
|
1298
|
-
delete: (input: AthenaAdminEmailTemplateDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1299
|
-
/** List email templates. Route: `GET /admin/email-template/list`. */
|
|
1300
|
-
list: (input?: {
|
|
1301
|
-
query?: AthenaAdminEmailTemplateListQuery;
|
|
1302
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateListResponse>>;
|
|
1303
|
-
/** Update email template. Route: `POST /admin/email-template/update`. */
|
|
1304
|
-
update: (input: AthenaAdminEmailTemplateUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateRecord>>;
|
|
1305
|
-
/** Send one stored email template. Route: `POST /admin/email-template/send`. */
|
|
1306
|
-
send: (input: AthenaAdminEmailTemplateSendRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateSendResponse>>;
|
|
1307
|
-
};
|
|
1308
|
-
emailEventType: {
|
|
1309
|
-
/** List canonical admin email event types. Route: `GET /admin/email-event-type/list`. */
|
|
1310
|
-
list: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailEventTypeListResponse>>;
|
|
1311
|
-
};
|
|
1312
|
-
};
|
|
1313
|
-
apiKey: {
|
|
1314
|
-
/** Create API key. Route: `POST /api-key/create`. */
|
|
1315
|
-
create: (input: AthenaApiKeyCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaApiKeyRecord>>;
|
|
1316
|
-
/** Get API key metadata. Route: `GET /api-key/get`. */
|
|
1317
|
-
get: (input?: {
|
|
1318
|
-
query?: AthenaApiKeyGetQuery;
|
|
1319
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaApiKeyRecord>>;
|
|
1320
|
-
/** Update API key metadata. Route: `POST /api-key/update`. */
|
|
1321
|
-
update: (input: AthenaApiKeyUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaApiKeyRecord>>;
|
|
1322
|
-
/** Delete API key. Route: `POST /api-key/delete`. */
|
|
1323
|
-
delete: (input: AthenaApiKeyDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1324
|
-
/** List API keys. Route: `GET /api-key/list`. */
|
|
1325
|
-
list: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaApiKeyRecord[]>>;
|
|
1326
|
-
/** Verify an API key. Route: `POST /api-key/verify`. */
|
|
1327
|
-
verify: (input: AthenaApiKeyVerifyRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaApiKeyVerifyResponse>>;
|
|
1328
|
-
/** Delete all expired API keys. Route: `POST /api-key/delete-all-expired-api-keys`. */
|
|
1329
|
-
deleteAllExpired: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaApiKeyDeleteAllExpiredResponse>>;
|
|
1330
|
-
};
|
|
1331
|
-
signIn: {
|
|
1332
|
-
/** Sign in with email and password. Route: `POST /sign-in/email`. */
|
|
1333
|
-
email: AthenaAuthSdkClient['signIn']['email'];
|
|
1334
|
-
/** Sign in with username and password. Route: `POST /sign-in/username`. */
|
|
1335
|
-
username: AthenaAuthSdkClient['signIn']['username'];
|
|
1336
|
-
/** Sign in with social provider. Route: `POST /sign-in/social`. */
|
|
1337
|
-
social: AthenaAuthSdkClient['signIn']['social'];
|
|
1338
|
-
};
|
|
1339
|
-
signUp: {
|
|
1340
|
-
/** Sign up with email/password identity. Route: `POST /sign-up/email`. */
|
|
1341
|
-
email: AthenaAuthSdkClient['signUp']['email'];
|
|
1342
|
-
};
|
|
1343
|
-
/** Organization plugin helper surface. Routes: `/organization/*`. */
|
|
1344
|
-
organization: AthenaAuthOrganizationBindings;
|
|
1345
|
-
callback: {
|
|
1346
|
-
/** OAuth provider callback passthrough. Route: `GET /callback/{provider}`. */
|
|
1347
|
-
provider: (input: AthenaAuthCallbackProviderRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthCallbackProviderResponse>>;
|
|
1348
|
-
};
|
|
1349
|
-
}
|
|
1350
|
-
interface AthenaAuthSdkClient {
|
|
1351
|
-
baseUrl: string;
|
|
1352
|
-
request: <T = unknown>(input: AthenaAuthRequestInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<T>>;
|
|
1353
|
-
signIn: {
|
|
1354
|
-
email: (input: AthenaEmailSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
1355
|
-
username: (input: AthenaUsernameSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
1356
|
-
social: (input: AthenaSocialSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSocialRedirectResponse | AthenaAuthSignInResponse>>;
|
|
1357
|
-
};
|
|
1358
|
-
signUp: {
|
|
1359
|
-
email: (input: AthenaEmailSignUpRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
1360
|
-
};
|
|
1361
|
-
signOut: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
|
|
1362
|
-
logout: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
|
|
1363
|
-
getSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSessionResponse>>;
|
|
1364
|
-
getUser: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthGetUserResponse>>;
|
|
1365
|
-
requireSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
|
|
1366
|
-
listSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSession[]>>;
|
|
1367
|
-
revokeSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1368
|
-
clearSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1369
|
-
revokeSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1370
|
-
clearSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1371
|
-
revokeOtherSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1372
|
-
clearOtherSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1373
|
-
forgetPassword: (input: AthenaForgetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1374
|
-
resetPassword: (input: AthenaResetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1375
|
-
resolveResetPasswordToken: (input: {
|
|
1376
|
-
token: string;
|
|
1377
|
-
callbackURL?: string;
|
|
1378
|
-
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
1379
|
-
token?: string;
|
|
1380
|
-
}>>;
|
|
1381
|
-
verifyEmail: (input: AthenaVerifyEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
1382
|
-
user: AthenaAuthUser;
|
|
1383
|
-
status: boolean;
|
|
1384
|
-
}>>;
|
|
1385
|
-
sendVerificationEmail: (input: AthenaSendVerificationEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1386
|
-
changeEmail: (input: AthenaChangeEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthEmailChangeResponse>>;
|
|
1387
|
-
changePassword: (input: AthenaChangePasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
1388
|
-
token?: string | null;
|
|
1389
|
-
user: AthenaAuthUser;
|
|
1390
|
-
}>>;
|
|
1391
|
-
updateUser: (input: AthenaUpdateUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1392
|
-
deleteUser: (input?: AthenaDeleteUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaDeleteUserResponse>>;
|
|
1393
|
-
deleteUserCallback: (input?: AthenaDeleteUserCallbackRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaDeleteUserResponse>>;
|
|
1394
|
-
linkSocial: (input: AthenaLinkSocialRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSocialRedirectResponse>>;
|
|
1395
|
-
listAccounts: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthLinkedAccount[]>>;
|
|
1396
|
-
unlinkAccount: (input: AthenaUnlinkAccountRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1397
|
-
refreshToken: (input: AthenaOAuthAccountTokenRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaOAuthTokenBundle>>;
|
|
1398
|
-
getAccessToken: (input: AthenaOAuthAccountTokenRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaOAuthTokenBundle>>;
|
|
1399
|
-
organization: AthenaAuthOrganizationBindings;
|
|
1400
|
-
auth: AthenaAuthBindings;
|
|
1401
|
-
}
|
|
1
|
+
import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, w as AthenaFetchPayload, s as AthenaGatewayResponse, x as AthenaInsertPayload, y as AthenaUpdatePayload, v as AthenaDeletePayload, n as AthenaRpcPayload, C as AthenaQueryPayload, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, D as AthenaGatewayBaseOptions, E as AthenaConditionValue, F as AthenaConditionArrayValue, G as AthenaGatewayCondition, H as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, I as AthenaConditionOperator } from './types-CH78O90i.js';
|
|
2
|
+
import { F as AthenaAuthClientConfig, D as AthenaAuthBindings } from './types-eAKAh71s.js';
|
|
3
|
+
import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, u as AthenaClientTableName, s as AthenaClientModelForTableName, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata, t as AthenaClientModelsInput } from './types-BRP7sfSF.js';
|
|
1402
4
|
|
|
1403
5
|
type AthenaErrorKind = 'unique_violation' | 'not_found' | 'validation' | 'auth' | 'rate_limit' | 'transient' | 'unknown';
|
|
1404
6
|
declare const AthenaErrorKind: {
|
|
@@ -1587,36 +189,63 @@ type Whitespace = ' ' | '\n' | '\r' | '\t';
|
|
|
1587
189
|
type TrimLeft<TValue extends string> = TValue extends `${Whitespace}${infer TRest}` ? TrimLeft<TRest> : TValue;
|
|
1588
190
|
type TrimRight<TValue extends string> = TValue extends `${infer TRest}${Whitespace}` ? TrimRight<TRest> : TValue;
|
|
1589
191
|
type Trim<TValue extends string> = TrimLeft<TrimRight<TValue>>;
|
|
1590
|
-
type
|
|
192
|
+
/** Known string keys of a row / model type (empty when the shape is untyped). */
|
|
193
|
+
type AthenaColumnKey<Row> = Extract<keyof NonNullable<Row>, string>;
|
|
194
|
+
type KnownSelectColumnKey<Row> = AthenaColumnKey<Row>;
|
|
1591
195
|
type HasKnownSelectColumns<Row> = [KnownSelectColumnKey<Row>] extends [never] ? false : string extends KnownSelectColumnKey<Row> ? false : true;
|
|
1592
196
|
type HasComplexSelectTokenSyntax<TValue extends string> = TValue extends `${string}(${string}` ? true : TValue extends `${string})${string}` ? true : TValue extends `${string}.${string}` ? true : TValue extends `${string}"${string}` ? true : TValue extends `${string}'${string}` ? true : false;
|
|
1593
197
|
type ValidateAliasedBase<Row, TOriginal extends string, TBase extends string> = HasComplexSelectTokenSyntax<Trim<TBase>> extends true ? TOriginal : Trim<TBase> extends KnownSelectColumnKey<Row> ? TOriginal : never;
|
|
1594
198
|
type ValidateSelectToken<Row, TToken extends string> = Trim<TToken> extends infer TTrimmed extends string ? TTrimmed extends '' ? never : TTrimmed extends '*' ? TTrimmed : TTrimmed extends `${string}:${infer TBase}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : TTrimmed extends `${infer TBase} as ${string}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : TTrimmed extends `${infer TBase} AS ${string}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : HasComplexSelectTokenSyntax<TTrimmed> extends true ? TTrimmed : TTrimmed extends KnownSelectColumnKey<Row> ? TTrimmed : never : never;
|
|
1595
199
|
type ValidateSelectList<Row, TValue extends string> = string extends TValue ? TValue : HasComplexSelectTokenSyntax<TValue> extends true ? TValue : TValue extends `${infer THead},${infer TTail}` ? ValidateSelectToken<Row, THead> extends never ? never : ValidateSelectList<Row, TTail> extends never ? never : TValue : ValidateSelectToken<Row, TValue> extends never ? never : TValue;
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
200
|
+
/**
|
|
201
|
+
* Preferred element type for typed array selects.
|
|
202
|
+
* Contextual typing validates each array-literal element against known keys
|
|
203
|
+
* (no `as const` required) and powers IntelliSense on each slot.
|
|
204
|
+
*/
|
|
205
|
+
type AthenaSelectArrayElement<Row> = HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> | '*' : string;
|
|
1600
206
|
type AthenaSelectInput = string | string[] | readonly string[];
|
|
1601
|
-
|
|
1602
|
-
|
|
207
|
+
/**
|
|
208
|
+
* Compile-time validation for `select` / `single` / `maybeSingle` when
|
|
209
|
+
* `experimental.typecheckColumns` is enabled and row keys are known.
|
|
210
|
+
*
|
|
211
|
+
* - Comma-separated strings: validates each simple token (aliases / relation
|
|
212
|
+
* syntax are allowed through).
|
|
213
|
+
* - Arrays: always `readonly (keyof Row | '*')[]` for element IntelliSense and
|
|
214
|
+
* checking without `as const`.
|
|
215
|
+
*/
|
|
216
|
+
type AthenaValidatedSelectInput<Row, TValue extends AthenaSelectInput> = HasKnownSelectColumns<Row> extends true ? TValue extends readonly string[] ? readonly AthenaSelectArrayElement<Row>[] : TValue extends string ? ValidateSelectList<Row, TValue> : never : TValue;
|
|
217
|
+
/**
|
|
218
|
+
* Filter / order / RPC column parameter when `typecheckColumns` is enabled.
|
|
219
|
+
* When disabled, still surfaces known keys for IntelliSense via
|
|
220
|
+
* `Keys | (string & {})` so free-form strings remain assignable.
|
|
221
|
+
*/
|
|
222
|
+
type AthenaTypecheckedColumnKey<Row, TEnabled extends boolean> = TEnabled extends true ? HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> : string : HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> | (string & {}) : string;
|
|
1603
223
|
|
|
1604
224
|
type AthenaRowShape$2 = Record<string, AthenaJsonValue | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* Free-form `from<Row>(table)` table argument.
|
|
227
|
+
* With client `models`, this is the known table-name union (IntelliSense).
|
|
228
|
+
* Without models, plain `string`.
|
|
229
|
+
*/
|
|
230
|
+
type UntypedTableName$1<TModels> = [TModels] extends [never] ? string : [AthenaClientTableName<TModels>] extends [never] ? string : AthenaClientTableName<TModels>;
|
|
231
|
+
type ResolvedClientTableModel$1<TModels, TTableName extends string> = Extract<AthenaClientModelForTableName<TModels, TTableName>, AthenaModelTarget>;
|
|
232
|
+
type ClientTableQueryBuilder$1<TModels, TTableName extends string, TStrict extends boolean> = TableQueryBuilder<RowOf<ResolvedClientTableModel$1<TModels, TTableName>>, InsertOf<ResolvedClientTableModel$1<TModels, TTableName>>, UpdateOf<ResolvedClientTableModel$1<TModels, TTableName>>, unknown, TStrict>;
|
|
1605
233
|
type AthenaUpsertOptions<Update> = AthenaGatewayCallOptions & {
|
|
1606
234
|
updateBody?: Update;
|
|
1607
235
|
onConflict?: string | string[];
|
|
1608
236
|
};
|
|
1609
|
-
interface AthenaDbModule<TStrict extends boolean = false> {
|
|
237
|
+
interface AthenaDbModule<TStrict extends boolean = false, TModels = never> {
|
|
1610
238
|
from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
|
|
1611
|
-
from<
|
|
1612
|
-
|
|
1613
|
-
select(table:
|
|
1614
|
-
|
|
1615
|
-
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table:
|
|
1616
|
-
|
|
1617
|
-
upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table:
|
|
1618
|
-
|
|
1619
|
-
|
|
239
|
+
from<TTableName extends AthenaClientTableName<TModels>>(table: TTableName, options?: AthenaFromOptions): ClientTableQueryBuilder$1<TModels, TTableName, TStrict>;
|
|
240
|
+
from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
|
|
241
|
+
select<Row = AthenaRowShape$2>(table: UntypedTableName$1<TModels>, options?: AthenaGatewayCallOptions): SelectChain<Row, Row, TStrict>;
|
|
242
|
+
select(table: UntypedTableName$1<TModels>, columns: AthenaSelectInput, options?: AthenaGatewayCallOptions): SelectChain<AthenaRowShape$2, AthenaRowShape$2, TStrict>;
|
|
243
|
+
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: UntypedTableName$1<TModels>, values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row, Row, TStrict>;
|
|
244
|
+
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: UntypedTableName$1<TModels>, values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[], Row, TStrict>;
|
|
245
|
+
upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Insert, options?: AthenaUpsertOptions<Update>): MutationQuery<Row, Row, TStrict>;
|
|
246
|
+
upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Insert[], options?: AthenaUpsertOptions<Update>): MutationQuery<Row[], Row, TStrict>;
|
|
247
|
+
update<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Update, options?: AthenaGatewayCallOptions): UpdateChain<Row, TStrict>;
|
|
248
|
+
delete<Row = AthenaRowShape$2>(table: UntypedTableName$1<TModels>, options?: AthenaGatewayCallOptions & {
|
|
1620
249
|
resourceId?: string;
|
|
1621
250
|
}): MutationQuery<Row | null, Row, TStrict>;
|
|
1622
251
|
rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
|
|
@@ -3732,7 +2361,7 @@ interface AthenaRequestOptions {
|
|
|
3732
2361
|
path?: string;
|
|
3733
2362
|
method?: AthenaRequestMethod;
|
|
3734
2363
|
headers?: Record<string, string>;
|
|
3735
|
-
/** Per-request override for
|
|
2364
|
+
/** Per-request override for the canonical `X-Athena-Key` header. */
|
|
3736
2365
|
apiKey?: string | null;
|
|
3737
2366
|
/** Per-request override for `X-Athena-Key` only. */
|
|
3738
2367
|
athenaKey?: string | null;
|
|
@@ -3838,8 +2467,27 @@ type MutationSingleResult<Result> = Result extends Array<infer Item> ? Item | nu
|
|
|
3838
2467
|
type MutationResultRow<Result> = Result extends Array<infer Item> ? Item : Result;
|
|
3839
2468
|
type AthenaRowShape = Record<string, AthenaJsonValue | undefined>;
|
|
3840
2469
|
type FilterColumnKey<Row> = Extract<keyof NonNullable<Row>, string>;
|
|
3841
|
-
|
|
3842
|
-
type
|
|
2470
|
+
/** Known keys when the row shape is concrete; `string` when untyped / index signature. */
|
|
2471
|
+
type ResolvedFilterColumnKey<Row> = [FilterColumnKey<Row>] extends [never] ? string : string extends FilterColumnKey<Row> ? string : FilterColumnKey<Row>;
|
|
2472
|
+
/**
|
|
2473
|
+
* Table-name argument for free-form `from<Row>(table)`.
|
|
2474
|
+
* - No client `models` → `string` (nothing to complete).
|
|
2475
|
+
* - With `models` → known bare/qualified names (IntelliSense + reject unknowns).
|
|
2476
|
+
* Prefer `.from("users")` without a row generic so the row type is inferred from the model.
|
|
2477
|
+
*/
|
|
2478
|
+
type UntypedTableName<TModels> = [TModels] extends [never] ? string : [AthenaClientTableName<TModels>] extends [never] ? string : AthenaClientTableName<TModels>;
|
|
2479
|
+
type ResolvedClientTableModel<TModels, TTableName extends string> = Extract<AthenaClientModelForTableName<TModels, TTableName>, AthenaModelTarget>;
|
|
2480
|
+
type ClientTableQueryBuilder<TModels, TTableName extends string, TStrict extends boolean> = TableQueryBuilder<RowOf<ResolvedClientTableModel<TModels, TTableName>>, InsertOf<ResolvedClientTableModel<TModels, TTableName>>, UpdateOf<ResolvedClientTableModel<TModels, TTableName>>, unknown, TStrict>;
|
|
2481
|
+
/**
|
|
2482
|
+
* Select/returning/single column input.
|
|
2483
|
+
*
|
|
2484
|
+
* - Typed row + `typecheckColumns`: validates string lists; arrays use key union
|
|
2485
|
+
* (IntelliSense + reject unknown elements without `as const`).
|
|
2486
|
+
* - Typed row without strict: free-form strings still allowed; key unions are
|
|
2487
|
+
* included so IDEs can suggest column names on `select` / `single` / etc.
|
|
2488
|
+
* - Untyped row: plain `TValue` (`string | string[]`).
|
|
2489
|
+
*/
|
|
2490
|
+
type SelectColumnsFor<Row, TStrict extends boolean, TValue extends AthenaSelectInput> = TStrict extends true ? AthenaValidatedSelectInput<Row, TValue> : [FilterColumnKey<Row>] extends [never] ? TValue : string extends FilterColumnKey<Row> ? TValue : TValue | FilterColumnKey<Row> | '*' | readonly (FilterColumnKey<Row> | '*')[];
|
|
3843
2491
|
interface MutationQuery<Result, Row = MutationResultRow<Result>, TStrict extends boolean = false> extends PromiseLike<AthenaResult<Result>> {
|
|
3844
2492
|
select<const TColumns extends AthenaSelectInput = string>(columns?: SelectColumnsFor<Row, TStrict, TColumns>, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Result>>;
|
|
3845
2493
|
returning<const TColumns extends AthenaSelectInput = string>(columns?: SelectColumnsFor<Row, TStrict, TColumns>, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Result>>;
|
|
@@ -3923,11 +2571,11 @@ interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>
|
|
|
3923
2571
|
insert(values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[], Row, TStrict>;
|
|
3924
2572
|
upsert(values: Insert, options?: AthenaGatewayCallOptions & {
|
|
3925
2573
|
updateBody?: Update;
|
|
3926
|
-
onConflict?: string | string
|
|
2574
|
+
onConflict?: ResolvedFilterColumnKey<Row> | Array<ResolvedFilterColumnKey<Row>> | (string & {}) | Array<string & {}>;
|
|
3927
2575
|
}): MutationQuery<Row, Row, TStrict>;
|
|
3928
2576
|
upsert(values: Insert[], options?: AthenaGatewayCallOptions & {
|
|
3929
2577
|
updateBody?: Update;
|
|
3930
|
-
onConflict?: string | string
|
|
2578
|
+
onConflict?: ResolvedFilterColumnKey<Row> | Array<ResolvedFilterColumnKey<Row>> | (string & {}) | Array<string & {}>;
|
|
3931
2579
|
}): MutationQuery<Row[], Row, TStrict>;
|
|
3932
2580
|
update(values: Update, options?: AthenaGatewayCallOptions): UpdateChain<Row, TStrict>;
|
|
3933
2581
|
delete(options?: AthenaGatewayCallOptions & {
|
|
@@ -3937,29 +2585,30 @@ interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>
|
|
|
3937
2585
|
maybeSingle<T = Row, const TColumns extends AthenaSelectInput = string>(columns?: SelectColumnsFor<Row, TStrict, TColumns>, options?: AthenaGatewayCallOptions): Promise<AthenaResult<T | null>>;
|
|
3938
2586
|
reset(): TableQueryBuilder<Row, Insert, Update, TContext, TStrict>;
|
|
3939
2587
|
}
|
|
3940
|
-
interface AthenaSdkClient<TStrict extends boolean = false> {
|
|
2588
|
+
interface AthenaSdkClient<TStrict extends boolean = false, TModels = never> {
|
|
3941
2589
|
from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
|
|
3942
|
-
from<
|
|
3943
|
-
|
|
2590
|
+
from<TTableName extends AthenaClientTableName<TModels>>(table: TTableName, options?: AthenaFromOptions): ClientTableQueryBuilder<TModels, TTableName, TStrict>;
|
|
2591
|
+
from<Row = AthenaRowShape, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName<TModels>, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
|
|
2592
|
+
db: AthenaDbModule<TStrict, TModels>;
|
|
3944
2593
|
rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
|
|
3945
2594
|
query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
|
|
3946
2595
|
request<T = unknown>(options: AthenaRequestOptions): Promise<AthenaRequestResponse<T>>;
|
|
3947
2596
|
verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
3948
|
-
withContext(context?: AthenaClientContextOptions): AthenaSdkClient<TStrict>;
|
|
3949
|
-
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClient<TStrict>;
|
|
2597
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClient<TStrict, TModels>;
|
|
2598
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClient<TStrict, TModels>;
|
|
3950
2599
|
}
|
|
3951
|
-
interface AthenaSdkClientWithAuth<TStrict extends boolean = false> extends AthenaSdkClient<TStrict> {
|
|
2600
|
+
interface AthenaSdkClientWithAuth<TStrict extends boolean = false, TModels = never> extends AthenaSdkClient<TStrict, TModels> {
|
|
3952
2601
|
auth: AthenaAuthBindings;
|
|
3953
2602
|
chat: AthenaChatModule;
|
|
3954
|
-
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
3955
|
-
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
3956
|
-
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
2603
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithAuth<TStrict, TModels>;
|
|
2604
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithAuth<TStrict, TModels>;
|
|
2605
|
+
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithAuth<TStrict, TModels>;
|
|
3957
2606
|
}
|
|
3958
|
-
interface AthenaSdkClientWithStorage<TStrict extends boolean = false> extends AthenaSdkClientWithAuth<TStrict> {
|
|
2607
|
+
interface AthenaSdkClientWithStorage<TStrict extends boolean = false, TModels = never> extends AthenaSdkClientWithAuth<TStrict, TModels> {
|
|
3959
2608
|
storage: AthenaStorageModule;
|
|
3960
|
-
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
3961
|
-
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
3962
|
-
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
2609
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithStorage<TStrict, TModels>;
|
|
2610
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithStorage<TStrict, TModels>;
|
|
2611
|
+
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithStorage<TStrict, TModels>;
|
|
3963
2612
|
}
|
|
3964
2613
|
interface AthenaHeaderBag {
|
|
3965
2614
|
get(name: string): string | null;
|
|
@@ -3998,7 +2647,7 @@ interface AthenaCreateClientOptions {
|
|
|
3998
2647
|
pgUri?: string | null | undefined;
|
|
3999
2648
|
/** JDBC/PostgreSQL URI mirrored to `x-athena-jdbc-url` and `x-jdbc-url`. */
|
|
4000
2649
|
jdbcUrl?: string | null | undefined;
|
|
4001
|
-
/** Client-wide override for `X-Athena-Key`
|
|
2650
|
+
/** Client-wide override for the canonical `X-Athena-Key` header. */
|
|
4002
2651
|
athenaKey?: string | null | undefined;
|
|
4003
2652
|
backend?: BackendConfig | BackendType;
|
|
4004
2653
|
db?: AthenaCreateClientServiceUrlConfig;
|
|
@@ -4012,6 +2661,7 @@ interface AthenaCreateClientOptions {
|
|
|
4012
2661
|
chatUrl?: string | null | undefined;
|
|
4013
2662
|
chatWsUrl?: string | null | undefined;
|
|
4014
2663
|
storageUrl?: string | null | undefined;
|
|
2664
|
+
models?: AthenaClientModelsInput;
|
|
4015
2665
|
experimental?: AthenaClientExperimentalOptions;
|
|
4016
2666
|
}
|
|
4017
2667
|
interface AthenaCreateClientOptionsWithStorage extends AthenaCreateClientOptions {
|
|
@@ -4046,7 +2696,7 @@ interface AthenaCreateClientConfigWithStorageAndTypecheckedColumns extends Athen
|
|
|
4046
2696
|
url?: string | null | undefined;
|
|
4047
2697
|
key: string | null | undefined;
|
|
4048
2698
|
}
|
|
4049
|
-
interface AthenaClientOverrideOptions extends Omit<AthenaCreateClientOptions, 'experimental'> {
|
|
2699
|
+
interface AthenaClientOverrideOptions extends Omit<AthenaCreateClientOptions, 'experimental' | 'models'> {
|
|
4050
2700
|
url?: string | null | undefined;
|
|
4051
2701
|
key?: string | null | undefined;
|
|
4052
2702
|
}
|
|
@@ -4096,7 +2746,7 @@ interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict ex
|
|
|
4096
2746
|
pgUri(pgUri: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4097
2747
|
/** Forward a JDBC/PostgreSQL URI to compatibility JDBC headers. */
|
|
4098
2748
|
jdbcUrl(jdbcUrl: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4099
|
-
/** Override `X-Athena-Key` for this client
|
|
2749
|
+
/** Override the canonical `X-Athena-Key` header for this client. */
|
|
4100
2750
|
athenaKey(athenaKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4101
2751
|
/** Configure Athena Auth client behavior for `client.auth.*` methods. */
|
|
4102
2752
|
auth(config: AthenaCreateClientAuthOptions): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
@@ -4130,14 +2780,25 @@ declare class AthenaClient {
|
|
|
4130
2780
|
static fromEnvironment(options: AthenaClientFromEnvironmentOptionsWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
|
|
4131
2781
|
static fromEnvironment(options?: AthenaClientFromEnvironmentOptions): AthenaSdkClientWithAuth<false>;
|
|
4132
2782
|
}
|
|
2783
|
+
type ExtractClientModels<TInput> = TInput extends {
|
|
2784
|
+
models: infer TModels extends AthenaClientModelsInput;
|
|
2785
|
+
} ? TModels : never;
|
|
2786
|
+
type AthenaCreateClientReturn<TInput> = TInput extends {
|
|
2787
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
2788
|
+
athenaStorageBackend: true;
|
|
2789
|
+
typecheckColumns: true;
|
|
2790
|
+
};
|
|
2791
|
+
} ? AthenaSdkClientWithStorage<true, ExtractClientModels<TInput>> : TInput extends {
|
|
2792
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
2793
|
+
athenaStorageBackend: true;
|
|
2794
|
+
};
|
|
2795
|
+
} ? AthenaSdkClientWithStorage<false, ExtractClientModels<TInput>> : TInput extends {
|
|
2796
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
2797
|
+
typecheckColumns: true;
|
|
2798
|
+
};
|
|
2799
|
+
} ? AthenaSdkClientWithAuth<true, ExtractClientModels<TInput>> : AthenaSdkClientWithAuth<false, ExtractClientModels<TInput>>;
|
|
4133
2800
|
/** Create client (convenience wrapper; use AthenaClient.builder() for full control) */
|
|
4134
|
-
declare function createClient(config:
|
|
4135
|
-
declare function createClient(
|
|
4136
|
-
declare function createClient(config: AthenaCreateClientConfigWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
|
|
4137
|
-
declare function createClient(config: AthenaCreateClientConfig): AthenaSdkClientWithAuth<false>;
|
|
4138
|
-
declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options: AthenaCreateClientOptionsWithStorageAndTypecheckedColumns): AthenaSdkClientWithStorage<true>;
|
|
4139
|
-
declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options: AthenaCreateClientOptionsWithStorage): AthenaSdkClientWithStorage<false>;
|
|
4140
|
-
declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options: AthenaCreateClientOptionsWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
|
|
4141
|
-
declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options?: AthenaCreateClientOptions): AthenaSdkClientWithAuth<false>;
|
|
2801
|
+
declare function createClient<TConfig extends AthenaCreateClientConfig>(config: TConfig): AthenaCreateClientReturn<TConfig>;
|
|
2802
|
+
declare function createClient<TOptions extends AthenaCreateClientOptions | undefined>(url: string | null | undefined, apiKey: string | null | undefined, options?: TOptions): TOptions extends AthenaCreateClientOptions ? AthenaCreateClientReturn<TOptions> : AthenaSdkClientWithAuth<false>;
|
|
4142
2803
|
|
|
4143
|
-
export { type AthenaAuthGuardResult as $, type AthenaAdminEmailCreateRequest as A, type AthenaAdminEmailUpdateResponse as B, type AthenaAdminListUsersFilterOperator as C, type AthenaAdminListUsersQuery as D, type AthenaAdminListUsersSearchOperator as E, type AthenaAuthAdminUserSessionRevokeBinding as F, type AthenaAuthBindings as G, type AthenaAuthCallOptions as H, type AthenaAuthClientConfig as I, type AthenaAuthCredentials as J, type AthenaAuthEmailChangeResponse as K, type AthenaAuthEmailTemplateAttachment as L, type AthenaAuthEmailTemplateBuilder as M, type AthenaAuthEmailTemplateCreateFromDefinitionInput as N, type AthenaAuthEmailTemplateDefinition as O, type AthenaAuthEmailTemplateReactOverrides as P, type AthenaAuthEmailTemplateUpdateFromDefinitionInput as Q, type AthenaAuthEmailTemplateVariableBinding as R, type AthenaAuthEndpointPath as S, type AthenaAuthErrorCode as T, type AthenaAuthErrorDetails as U, type AthenaAuthFilterOperator as V, type AthenaAuthGenericInput as W, type AthenaAuthGenericQueryInput as X, type AthenaAuthGetUserResponse as Y, type AthenaAuthGuardFailure as Z, type AthenaAuthGuardReason as _, type AthenaAdminEmailDeleteRequest as a, type AthenaChatSearchHit as a$, type AthenaAuthGuardSuccess as a0, type AthenaAuthLinkedAccount as a1, type AthenaAuthMethod as a2, type AthenaAuthOrganization as a3, type AthenaAuthOrganizationBindings as a4, type AthenaAuthOrganizationInvitation as a5, type AthenaAuthOrganizationMember as a6, type AthenaAuthQueryPrimitive as a7, type AthenaAuthQueryValue as a8, type AthenaAuthReactEmailComponent as a9, type AthenaChatCallOptions as aA, type AthenaChatConnectOptions as aB, type AthenaChatCreateRoomRequest as aC, type AthenaChatDeleteResult as aD, type AthenaChatEditMessageRequest as aE, type AthenaChatListMessagesQuery as aF, type AthenaChatListRoomsQuery as aG, type AthenaChatMarkReadUpToRequest as aH, type AthenaChatMember as aI, type AthenaChatMemberRole as aJ, type AthenaChatMessage as aK, type AthenaChatMessageCreatedResponse as aL, type AthenaChatMessagePage as aM, type AthenaChatModule as aN, type AthenaChatPresenceUser as aO, type AthenaChatReactionCount as aP, type AthenaChatReactionSummary as aQ, type AthenaChatReadCursor as aR, type AthenaChatRealtimeConnection as aS, type AthenaChatRealtimeInfoResponse as aT, type AthenaChatRealtimeModule as aU, type AthenaChatRemoveResult as aV, type AthenaChatResumeRoomCursor as aW, type AthenaChatRoom as aX, type AthenaChatRoomCreatedResponse as aY, type AthenaChatRoomKind as aZ, type AthenaChatRoomPage as a_, type AthenaAuthReactEmailConfig as aa, type AthenaAuthReactEmailEventPhase as ab, type AthenaAuthReactEmailProps as ac, type AthenaAuthReactEmailRenderEvent as ad, type AthenaAuthReactEmailRenderInput as ae, type AthenaAuthReactEmailRenderOptions as af, type AthenaAuthRequestInput as ag, type AthenaAuthResetPasswordBinding as ah, type AthenaAuthResult as ai, type AthenaAuthRevokeSessionRequest as aj, type AthenaAuthSdkClient as ak, type AthenaAuthSearchOperator as al, type AthenaAuthSession as am, type AthenaAuthSessionResponse as an, type AthenaAuthSessionRevokeBinding as ao, type AthenaAuthSignInResponse as ap, type AthenaAuthSignOutResponse as aq, type AthenaAuthSocialRedirectResponse as ar, type AthenaAuthStatusResponse as as, type AthenaAuthUser as at, type AthenaChangeEmailRequest as au, type AthenaChangePasswordRequest as av, type AthenaChatAddMembersRequest as aw, type AthenaChatAddReactionRequest as ax, type AthenaChatAttachmentInput as ay, type AthenaChatAttachmentView as az, type AthenaAdminEmailEventTypeListResponse as b, type AthenaEmailSignUpRequest as b$, type AthenaChatSearchMessagesRequest as b0, type AthenaChatSearchPage as b1, type AthenaChatSendMessageRequest as b2, type AthenaChatUpdateRoomRequest as b3, type AthenaChatWebSocketFactory as b4, type AthenaChatWebSocketLike as b5, type AthenaChatWsAuthHelloCommand as b6, type AthenaChatWsClientCommand as b7, type AthenaChatWsErrorEvent as b8, type AthenaChatWsHelloOkEvent as b9, type AthenaClientBuilder as bA, type AthenaClientContextOptions as bB, type AthenaClientExperimentalOptions as bC, type AthenaClientFromEnvironmentOptions as bD, type AthenaClientFromEnvironmentOptionsWithStorage as bE, type AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns as bF, type AthenaClientFromEnvironmentOptionsWithTypecheckedColumns as bG, type AthenaClientOverrideOptions as bH, type AthenaClientSessionLike as bI, type AthenaClientSessionOptions as bJ, type AthenaCreateClientAuthOptions as bK, type AthenaCreateClientChatOptions as bL, type AthenaCreateClientConfig as bM, type AthenaCreateClientConfigWithStorage as bN, type AthenaCreateClientConfigWithStorageAndTypecheckedColumns as bO, type AthenaCreateClientConfigWithTypecheckedColumns as bP, type AthenaCreateClientOptions as bQ, type AthenaCreateClientOptionsWithStorage as bR, type AthenaCreateClientOptionsWithStorageAndTypecheckedColumns as bS, type AthenaCreateClientOptionsWithTypecheckedColumns as bT, type AthenaCreateClientServiceUrlConfig as bU, type AthenaDbModule as bV, type AthenaDeleteDebugAst as bW, type AthenaDeleteUserCallbackRequest as bX, type AthenaDeleteUserRequest as bY, type AthenaDeleteUserResponse as bZ, type AthenaEmailSignInRequest as b_, type AthenaChatWsMembersUpdatedEvent as ba, type AthenaChatWsMessageCreatedEvent as bb, type AthenaChatWsMessageDeletedEvent as bc, type AthenaChatWsMessageEventBase as bd, type AthenaChatWsMessageUpdatedEvent as be, type AthenaChatWsPingCommand as bf, type AthenaChatWsPongEvent as bg, type AthenaChatWsPresenceHeartbeatCommand as bh, type AthenaChatWsPresenceUpdatedEvent as bi, type AthenaChatWsReactionUpdatedEvent as bj, type AthenaChatWsReadUpToCommand as bk, type AthenaChatWsReadUpdatedEvent as bl, type AthenaChatWsResumeCommand as bm, type AthenaChatWsRoomArchivedEvent as bn, type AthenaChatWsRoomCreatedEvent as bo, type AthenaChatWsRoomEventBase as bp, type AthenaChatWsRoomUpdatedEvent as bq, type AthenaChatWsServerEvent as br, type AthenaChatWsSubscribeCommand as bs, type AthenaChatWsSubscribedEvent as bt, type AthenaChatWsSyncRequiredEvent as bu, type AthenaChatWsTypingStartCommand as bv, type AthenaChatWsTypingStopCommand as bw, type AthenaChatWsTypingUpdatedEvent as bx, type AthenaChatWsUnsubscribeCommand as by, AthenaClient as bz, type AthenaAdminEmailEventTypeRecord as c, type AthenaStorageFileUploadInput as c$, type AthenaEnvelope as c0, AthenaError as c1, AthenaErrorCategory as c2, AthenaErrorCode as c3, type AthenaErrorInput as c4, AthenaErrorKind as c5, type AthenaFindManyDebugAst as c6, type AthenaFindManyOptions as c7, type AthenaFindManyResult as c8, type AthenaForgetPasswordRequest as c9, type AthenaSdkClientWithStorage as cA, type AthenaSelectDebugAst as cB, type AthenaSelectDebugTransport as cC, type AthenaSelectShape as cD, type AthenaSendVerificationEmailRequest as cE, type AthenaSocialSignInRequest as cF, type AthenaStorageAuditNamespace as cG, type AthenaStorageBaseModule as cH, type AthenaStorageBinaryCallOptions as cI, type AthenaStorageBucketCorsNamespace as cJ, type AthenaStorageBucketNamespace as cK, type AthenaStorageCallOptions as cL, type AthenaStorageCatalogNamespace as cM, type AthenaStorageClientConfig as cN, type AthenaStorageCredentialsNamespace as cO, type AthenaStorageEnv as cP, AthenaStorageError as cQ, AthenaStorageErrorCode as cR, type AthenaStorageErrorDetails as cS, type AthenaStorageErrorHandler as cT, type AthenaStorageErrorInput as cU, type AthenaStorageFileConfig as cV, type AthenaStorageFileDeleteInput as cW, type AthenaStorageFileDownloadInput as cX, type AthenaStorageFileListInput as cY, type AthenaStorageFileModule as cZ, type AthenaStorageFileNamespace as c_, type AthenaFromOptions as ca, type AthenaHeaderBag as cb, type AthenaInsertDebugAst as cc, type AthenaLinkSocialRequest as cd, type AthenaOAuthAccountTokenRequest as ce, type AthenaOAuthTokenBundle as cf, type AthenaOperationContext as cg, type AthenaOrderBy as ch, type AthenaQueryDebugAst as ci, type AthenaQueryTraceCallsite as cj, type AthenaQueryTraceEvent as ck, type AthenaQueryTraceOptions as cl, type AthenaRawQueryDebugAst as cm, type AthenaRelationSelectNode as cn, type AthenaRequestMethod as co, type AthenaRequestOptions as cp, type AthenaRequestQueryValueMap as cq, type AthenaRequestResponse as cr, type AthenaRequestService as cs, type AthenaResetPasswordRequest as ct, type AthenaResult as cu, type AthenaResultError as cv, type AthenaRpcBuilderStateAst as cw, type AthenaRpcDebugAst as cx, type AthenaSdkClient as cy, type AthenaSdkClientWithAuth as cz, type AthenaAdminEmailFailureCreateRequest as d, type StorageBucketCorsRuleInput as d$, type AthenaStorageFileUploadManyRequest as d0, type AthenaStorageFileUploadRequest as d1, type AthenaStorageFileUploadResult as d2, type AthenaStorageFolderNamespace as d3, type AthenaStorageManagedUpload as d4, type AthenaStorageModule as d5, type AthenaStorageMultipartNamespace as d6, type AthenaStorageObjectFolderNamespace as d7, type AthenaStorageObjectNamespace as d8, type AthenaStoragePathContext as d9, type CreateStorageUploadUrlsRequest as dA, type DeleteManyStorageFilesRequest as dB, type DeleteStorageFolderRequest as dC, type GetStorageFileUrlQuery as dD, type IntCoercionOptions as dE, type ListStorageFilesRequest as dF, type ListStorageFoldersRequest as dG, type ManagedFileRecord as dH, type MoveStorageFolderRequest as dI, type NormalizedAthenaError as dJ, type PresignedFileUrlResponse as dK, type RequireAffectedOptions as dL, type RetryBackoffStrategy as dM, type RetryConfig as dN, type RpcOrderOptions as dO, type RpcQueryBuilder as dP, type S3CatalogItem as dQ, type S3CredentialListItem as dR, type SearchStorageFilesRequest as dS, type SetManyStorageFileVisibilityRequest as dT, type SetStorageFileVisibilityRequest as dU, type StorageAuditEventRecord as dV, type StorageAuditListResponse as dW, type StorageAuditQueryRequest as dX, type StorageBatchUploadUrlResponse as dY, type StorageBatchUploadUrlResponseWithPut as dZ, type StorageBucketCorsRequest as d_, type AthenaStoragePermissionNamespace as da, type AthenaStoragePrefixPath as db, type AthenaStoragePutBody as dc, type AthenaStoragePutOptions as dd, type AthenaStorageTemplateValue as de, type AthenaStorageTemplateVars as df, type AthenaStorageUploadConstraints as dg, type AthenaStorageUploadProgress as dh, type AthenaStorageUploadProgressHandler as di, type AthenaStorageUploadSource as dj, type AthenaStorageUploadedFile as dk, type AthenaTableBuilderStateAst as dl, type AthenaUnlinkAccountRequest as dm, type AthenaUpdateDebugAst as dn, type AthenaUpdateUserRequest as dp, type AthenaUpsertDebugAst as dq, type AthenaUsernameSignInRequest as dr, type AthenaVerifyEmailRequest as ds, type AthenaWhere as dt, type AthenaWhereBooleanOperand as du, type AthenaWhereOperatorInput as dv, type ConfirmStorageUploadRequest as dw, type CopyStorageFileRequest as dx, type CreateStorageCatalogRequest as dy, type CreateStorageUploadUrlRequest as dz, type AthenaAdminEmailFailureDeleteRequest as e, storageSdkManifest as e$, type StorageBucketLifecycleRequest as e0, type StorageBucketLifecycleRuleInput as e1, type StorageBucketPolicyRequest as e2, type StorageFileAccessPurpose as e3, type StorageFileMutationManyResponse as e4, type StorageFileMutationResponse as e5, type StorageFilePermissionRecord as e6, type StorageFileRetentionRequest as e7, type StorageFileVersionPathRequest as e8, type StorageFolderMutationResponse as e9, type StorageServerSideEncryptionOptions as eA, type StorageSetBucketCorsRequest as eB, type StorageSetBucketLifecycleRequest as eC, type StorageSetBucketPolicyRequest as eD, type StorageSetPublicAccessBlockRequest as eE, type StorageSignedPostPolicyRequest as eF, type StorageUpdateObjectRequest as eG, type StorageUploadUrlResponse as eH, type StorageUploadUrlResponseWithPut as eI, type TableQueryBuilder as eJ, type TreeStorageFoldersRequest as eK, type UnwrapOneOptions as eL, type UnwrapOptions as eM, type UpdateManyStorageFilesRequest as eN, type UpdateStorageCatalogRequest as eO, type UpdateStorageFileRequest as eP, assertInt as eQ, coerceInt as eR, createAthenaStorageError as eS, createClient as eT, createStorageModule as eU, getAthenaDebugAst as eV, isOk as eW, normalizeAthenaError as eX, parseBooleanFlag as eY, requireAffected as eZ, requireSuccess as e_, type StorageListFilesResponse as ea, type StorageListObjectsRequest as eb, type StorageMultipartAbortRequest as ec, type StorageMultipartCompletePartInput as ed, type StorageMultipartCompleteRequest as ee, type StorageMultipartCreateRequest as ef, type StorageMultipartListPartsRequest as eg, type StorageMultipartSignPartRequest as eh, type StorageObjectBaseRequest as ei, type StorageObjectCopyRequest as ej, type StorageObjectFolderCreateRequest as ek, type StorageObjectFolderDeleteRequest as el, type StorageObjectFolderRenameRequest as em, type StorageObjectPublicUrlRequest as en, type StorageObjectRequest as eo, type StorageObjectValidateRequest as ep, type StorageObjectVersionListRequest as eq, type StorageObjectVersionMutationRequest as er, type StoragePermissionCheckRequest as es, type StoragePermissionCheckResponse as et, type StoragePermissionGrantRequest as eu, type StoragePermissionListRequest as ev, type StoragePermissionListResponse as ew, type StoragePermissionRevokeRequest as ex, type StoragePresignUploadRequest as ey, type StoragePublicAccessBlockRequest as ez, type AthenaAdminEmailFailureGetQuery as f, unwrap as f0, unwrapOne as f1, unwrapRows as f2, verifyAthenaGatewayUrl as f3, withRetry as f4, type AthenaAuthFetchCompatibleInput as f5, type AthenaAdminEmailFailureGetResponse as g, type AthenaAdminEmailFailureListQuery as h, type AthenaAdminEmailFailureListResponse as i, type AthenaAdminEmailFailureUpdateRequest as j, type AthenaAdminEmailFailureUpdateResponse as k, type AthenaAdminEmailGetQuery as l, type AthenaAdminEmailGetResponse as m, type AthenaAdminEmailListQuery as n, type AthenaAdminEmailListResponse as o, type AthenaAdminEmailTemplateCreateRequest as p, type AthenaAdminEmailTemplateDeleteRequest as q, type AthenaAdminEmailTemplateGetQuery as r, type AthenaAdminEmailTemplateGetResponse as s, type AthenaAdminEmailTemplateListQuery as t, type AthenaAdminEmailTemplateListResponse as u, type AthenaAdminEmailTemplateRecord as v, type AthenaAdminEmailTemplateSendRequest as w, type AthenaAdminEmailTemplateSendResponse as x, type AthenaAdminEmailTemplateUpdateRequest as y, type AthenaAdminEmailUpdateRequest as z };
|
|
2804
|
+
export { type AthenaChatWsReadUpdatedEvent as $, type AthenaChatAddMembersRequest as A, type AthenaChatRoom as B, type AthenaChatRoomCreatedResponse as C, type AthenaChatRoomKind as D, type AthenaChatRoomPage as E, type AthenaChatSearchHit as F, type AthenaChatSearchMessagesRequest as G, type AthenaChatSearchPage as H, type AthenaChatSendMessageRequest as I, type AthenaChatUpdateRoomRequest as J, type AthenaChatWebSocketFactory as K, type AthenaChatWebSocketLike as L, type AthenaChatWsAuthHelloCommand as M, type AthenaChatWsClientCommand as N, type AthenaChatWsErrorEvent as O, type AthenaChatWsHelloOkEvent as P, type AthenaChatWsMembersUpdatedEvent as Q, type AthenaChatWsMessageCreatedEvent as R, type AthenaChatWsMessageDeletedEvent as S, type AthenaChatWsMessageEventBase as T, type AthenaChatWsMessageUpdatedEvent as U, type AthenaChatWsPingCommand as V, type AthenaChatWsPongEvent as W, type AthenaChatWsPresenceHeartbeatCommand as X, type AthenaChatWsPresenceUpdatedEvent as Y, type AthenaChatWsReactionUpdatedEvent as Z, type AthenaChatWsReadUpToCommand as _, type AthenaChatAddReactionRequest as a, type AthenaStorageBaseModule as a$, type AthenaChatWsResumeCommand as a0, type AthenaChatWsRoomArchivedEvent as a1, type AthenaChatWsRoomCreatedEvent as a2, type AthenaChatWsRoomEventBase as a3, type AthenaChatWsRoomUpdatedEvent as a4, type AthenaChatWsServerEvent as a5, type AthenaChatWsSubscribeCommand as a6, type AthenaChatWsSubscribedEvent as a7, type AthenaChatWsSyncRequiredEvent as a8, type AthenaChatWsTypingStartCommand as a9, type AthenaEnvelope as aA, AthenaError as aB, AthenaErrorCategory as aC, AthenaErrorCode as aD, type AthenaErrorInput as aE, AthenaErrorKind as aF, type AthenaFindManyDebugAst as aG, type AthenaFromOptions as aH, type AthenaHeaderBag as aI, type AthenaInsertDebugAst as aJ, type AthenaOperationContext as aK, type AthenaQueryDebugAst as aL, type AthenaRawQueryDebugAst as aM, type AthenaRequestMethod as aN, type AthenaRequestOptions as aO, type AthenaRequestQueryValueMap as aP, type AthenaRequestResponse as aQ, type AthenaRequestService as aR, type AthenaResult as aS, type AthenaRpcBuilderStateAst as aT, type AthenaRpcDebugAst as aU, type AthenaSdkClient as aV, type AthenaSdkClientWithAuth as aW, type AthenaSdkClientWithStorage as aX, type AthenaSelectDebugAst as aY, type AthenaSelectDebugTransport as aZ, type AthenaStorageAuditNamespace as a_, type AthenaChatWsTypingStopCommand as aa, type AthenaChatWsTypingUpdatedEvent as ab, type AthenaChatWsUnsubscribeCommand as ac, AthenaClient as ad, type AthenaClientContextOptions as ae, type AthenaClientExperimentalOptions as af, type AthenaClientFromEnvironmentOptions as ag, type AthenaClientFromEnvironmentOptionsWithStorage as ah, type AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns as ai, type AthenaClientFromEnvironmentOptionsWithTypecheckedColumns as aj, type AthenaClientOverrideOptions as ak, type AthenaClientSessionLike as al, type AthenaClientSessionOptions as am, type AthenaCreateClientAuthOptions as an, type AthenaCreateClientChatOptions as ao, type AthenaCreateClientConfig as ap, type AthenaCreateClientConfigWithStorage as aq, type AthenaCreateClientConfigWithStorageAndTypecheckedColumns as ar, type AthenaCreateClientConfigWithTypecheckedColumns as as, type AthenaCreateClientOptions as at, type AthenaCreateClientOptionsWithStorage as au, type AthenaCreateClientOptionsWithStorageAndTypecheckedColumns as av, type AthenaCreateClientOptionsWithTypecheckedColumns as aw, type AthenaCreateClientServiceUrlConfig as ax, type AthenaDbModule as ay, type AthenaDeleteDebugAst as az, type AthenaChatAttachmentInput as b, type RpcQueryBuilder as b$, type AthenaStorageBinaryCallOptions as b0, type AthenaStorageBucketCorsNamespace as b1, type AthenaStorageBucketNamespace as b2, type AthenaStorageCallOptions as b3, type AthenaStorageCatalogNamespace as b4, type AthenaStorageClientConfig as b5, type AthenaStorageCredentialsNamespace as b6, type AthenaStorageEnv as b7, AthenaStorageError as b8, AthenaStorageErrorCode as b9, type AthenaStorageUploadConstraints as bA, type AthenaStorageUploadProgress as bB, type AthenaStorageUploadProgressHandler as bC, type AthenaStorageUploadSource as bD, type AthenaStorageUploadedFile as bE, type AthenaTableBuilderStateAst as bF, type AthenaUpdateDebugAst as bG, type AthenaUpsertDebugAst as bH, type ConfirmStorageUploadRequest as bI, type CopyStorageFileRequest as bJ, type CreateStorageCatalogRequest as bK, type CreateStorageUploadUrlRequest as bL, type CreateStorageUploadUrlsRequest as bM, type DeleteManyStorageFilesRequest as bN, type DeleteStorageFolderRequest as bO, type GetStorageFileUrlQuery as bP, type IntCoercionOptions as bQ, type ListStorageFilesRequest as bR, type ListStorageFoldersRequest as bS, type ManagedFileRecord as bT, type MoveStorageFolderRequest as bU, type NormalizedAthenaError as bV, type PresignedFileUrlResponse as bW, type RequireAffectedOptions as bX, type RetryBackoffStrategy as bY, type RetryConfig as bZ, type RpcOrderOptions as b_, type AthenaStorageErrorDetails as ba, type AthenaStorageErrorHandler as bb, type AthenaStorageErrorInput as bc, type AthenaStorageFileConfig as bd, type AthenaStorageFileDeleteInput as be, type AthenaStorageFileDownloadInput as bf, type AthenaStorageFileListInput as bg, type AthenaStorageFileModule as bh, type AthenaStorageFileNamespace as bi, type AthenaStorageFileUploadInput as bj, type AthenaStorageFileUploadManyRequest as bk, type AthenaStorageFileUploadRequest as bl, type AthenaStorageFileUploadResult as bm, type AthenaStorageFolderNamespace as bn, type AthenaStorageManagedUpload as bo, type AthenaStorageModule as bp, type AthenaStorageMultipartNamespace as bq, type AthenaStorageObjectFolderNamespace as br, type AthenaStorageObjectNamespace as bs, type AthenaStoragePathContext as bt, type AthenaStoragePermissionNamespace as bu, type AthenaStoragePrefixPath as bv, type AthenaStoragePutBody as bw, type AthenaStoragePutOptions as bx, type AthenaStorageTemplateValue as by, type AthenaStorageTemplateVars as bz, type AthenaChatAttachmentView as c, type UpdateStorageFileRequest as c$, type S3CatalogItem as c0, type S3CredentialListItem as c1, type SearchStorageFilesRequest as c2, type SetManyStorageFileVisibilityRequest as c3, type SetStorageFileVisibilityRequest as c4, type StorageAuditEventRecord as c5, type StorageAuditListResponse as c6, type StorageAuditQueryRequest as c7, type StorageBatchUploadUrlResponse as c8, type StorageBatchUploadUrlResponseWithPut as c9, type StorageObjectRequest as cA, type StorageObjectValidateRequest as cB, type StorageObjectVersionListRequest as cC, type StorageObjectVersionMutationRequest as cD, type StoragePermissionCheckRequest as cE, type StoragePermissionCheckResponse as cF, type StoragePermissionGrantRequest as cG, type StoragePermissionListRequest as cH, type StoragePermissionListResponse as cI, type StoragePermissionRevokeRequest as cJ, type StoragePresignUploadRequest as cK, type StoragePublicAccessBlockRequest as cL, type StorageServerSideEncryptionOptions as cM, type StorageSetBucketCorsRequest as cN, type StorageSetBucketLifecycleRequest as cO, type StorageSetBucketPolicyRequest as cP, type StorageSetPublicAccessBlockRequest as cQ, type StorageSignedPostPolicyRequest as cR, type StorageUpdateObjectRequest as cS, type StorageUploadUrlResponse as cT, type StorageUploadUrlResponseWithPut as cU, type TableQueryBuilder as cV, type TreeStorageFoldersRequest as cW, type UnwrapOneOptions as cX, type UnwrapOptions as cY, type UpdateManyStorageFilesRequest as cZ, type UpdateStorageCatalogRequest as c_, type StorageBucketCorsRequest as ca, type StorageBucketCorsRuleInput as cb, type StorageBucketLifecycleRequest as cc, type StorageBucketLifecycleRuleInput as cd, type StorageBucketPolicyRequest as ce, type StorageFileAccessPurpose as cf, type StorageFileMutationManyResponse as cg, type StorageFileMutationResponse as ch, type StorageFilePermissionRecord as ci, type StorageFileRetentionRequest as cj, type StorageFileVersionPathRequest as ck, type StorageFolderMutationResponse as cl, type StorageListFilesResponse as cm, type StorageListObjectsRequest as cn, type StorageMultipartAbortRequest as co, type StorageMultipartCompletePartInput as cp, type StorageMultipartCompleteRequest as cq, type StorageMultipartCreateRequest as cr, type StorageMultipartListPartsRequest as cs, type StorageMultipartSignPartRequest as ct, type StorageObjectBaseRequest as cu, type StorageObjectCopyRequest as cv, type StorageObjectFolderCreateRequest as cw, type StorageObjectFolderDeleteRequest as cx, type StorageObjectFolderRenameRequest as cy, type StorageObjectPublicUrlRequest as cz, type AthenaChatCallOptions as d, assertInt as d0, coerceInt as d1, createAthenaStorageError as d2, createClient as d3, createStorageModule as d4, getAthenaDebugAst as d5, isOk as d6, normalizeAthenaError as d7, parseBooleanFlag as d8, requireAffected as d9, requireSuccess as da, storageSdkManifest as db, unwrap as dc, unwrapOne as dd, unwrapRows as de, verifyAthenaGatewayUrl as df, withRetry as dg, type AthenaClientBuilder as dh, type AthenaFindManyOptions as di, type AthenaFindManyResult as dj, type AthenaOrderBy as dk, type AthenaQueryTraceCallsite as dl, type AthenaQueryTraceEvent as dm, type AthenaQueryTraceOptions as dn, type AthenaRelationSelectNode as dp, type AthenaResultError as dq, type AthenaSelectShape as dr, type AthenaWhere as ds, type AthenaWhereBooleanOperand as dt, type AthenaWhereOperatorInput as du, type AthenaChatConnectOptions as e, type AthenaChatCreateRoomRequest as f, type AthenaChatDeleteResult as g, type AthenaChatEditMessageRequest as h, type AthenaChatListMessagesQuery as i, type AthenaChatListRoomsQuery as j, type AthenaChatMarkReadUpToRequest as k, type AthenaChatMember as l, type AthenaChatMemberRole as m, type AthenaChatMessage as n, type AthenaChatMessageCreatedResponse as o, type AthenaChatMessagePage as p, type AthenaChatModule as q, type AthenaChatPresenceUser as r, type AthenaChatReactionCount as s, type AthenaChatReactionSummary as t, type AthenaChatReadCursor as u, type AthenaChatRealtimeConnection as v, type AthenaChatRealtimeInfoResponse as w, type AthenaChatRealtimeModule as x, type AthenaChatRemoveResult as y, type AthenaChatResumeRoomCursor as z };
|