@xylex-group/athena 2.12.1 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +580 -96
- 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 +580 -96
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +690 -91
- 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 +690 -92
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-CMtx5P4D.d.cts → client-uthENhaf.d.ts} +346 -1488
- package/dist/{client-Dre8H24u.d.ts → client-wU2J9yqb.d.cts} +346 -1488
- 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 +648 -96
- 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 +648 -97
- package/dist/index.js.map +1 -1
- package/dist/{model-form-DfTi8-D1.d.cts → model-form-BE1_Bmdd.d.cts} +2 -2
- package/dist/{model-form-CU0mWrF9.d.ts → model-form-DcH3R7WD.d.ts} +2 -2
- package/dist/{module-DBGmbIuh.d.ts → module-Ca3_OQqR.d.ts} +12 -9
- package/dist/{module-GoijrBXV.d.cts → module-DFGZXCtt.d.cts} +12 -9
- package/dist/next/client.cjs +992 -89
- 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 +970 -90
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +832 -89
- 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 +820 -90
- 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-BbSCmILD.d.ts +219 -0
- package/dist/payload-zXIwKTQf.d.cts +219 -0
- package/dist/{pipeline-c7Gdm0qv.d.cts → pipeline-CwQoD5G9.d.cts} +1 -1
- package/dist/{pipeline-DrjU2vNA.d.ts → pipeline-DqwehoQV.d.ts} +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 +4198 -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 +4126 -0
- package/dist/social-providers.js.map +1 -0
- package/dist/{types-kPaHUqUa.d.ts → types-6H575ITc.d.cts} +50 -2
- package/dist/{types-DRRb0Fd0.d.ts → types-C1swabT5.d.ts} +3 -3
- package/dist/{types-Bez4HSbI.d.cts → types-CD6K05JQ.d.ts} +50 -2
- package/dist/{types-BRUHGXo2.d.ts → types-YQUR7wu0.d.cts} +3 -3
- package/dist/{types-BRUHGXo2.d.cts → types-YQUR7wu0.d.ts} +3 -3
- package/dist/{types-BLizCLd1.d.cts → types-dHnjluBC.d.cts} +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 +29 -1
- package/dist/shared-DZSGAmXs.d.cts +0 -35
- package/dist/shared-MMnVBBfy.d.ts +0 -35
|
@@ -1,1403 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as AthenaGatewayCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, w as AthenaFetchPayload, s as AthenaGatewayResponse, x as AthenaInsertPayload, y as AthenaUpdatePayload, v as AthenaDeletePayload, n as AthenaRpcPayload, j as AthenaRpcCallOptions, C as AthenaQueryPayload, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, i as AthenaJsonValue, g as AthenaJsonObject, 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-YQUR7wu0.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-CD6K05JQ.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
5
|
+
interface AthenaFindManyAstPayload$1 {
|
|
6
|
+
table_name: string;
|
|
7
|
+
select: Record<string, unknown>;
|
|
8
|
+
where?: Record<string, unknown>;
|
|
9
|
+
orderBy?: Record<string, unknown>;
|
|
900
10
|
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
11
|
}
|
|
1350
|
-
|
|
12
|
+
declare function verifyAthenaGatewayUrl(baseUrl: string, options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
13
|
+
interface AthenaGatewayClient {
|
|
1351
14
|
baseUrl: string;
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
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;
|
|
15
|
+
buildHeaders(options?: AthenaGatewayCallOptions): Record<string, string>;
|
|
16
|
+
verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
17
|
+
fetchGateway<T>(payload: AthenaFetchPayload | AthenaFindManyAstPayload$1, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
18
|
+
insertGateway<T>(payload: AthenaInsertPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
19
|
+
updateGateway<T>(payload: AthenaUpdatePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
20
|
+
deleteGateway<T>(payload: AthenaDeletePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
21
|
+
rpcGateway<T>(payload: AthenaRpcPayload, options?: AthenaRpcCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
22
|
+
queryGateway<T>(payload: AthenaQueryPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
1401
23
|
}
|
|
1402
24
|
|
|
1403
25
|
type AthenaErrorKind = 'unique_violation' | 'not_found' | 'validation' | 'auth' | 'rate_limit' | 'transient' | 'unknown';
|
|
@@ -1583,66 +205,6 @@ declare function assertInt(value: unknown, label?: string, options?: IntCoercion
|
|
|
1583
205
|
*/
|
|
1584
206
|
declare function withRetry<T>(config: RetryConfig, fn: () => Promise<T>): Promise<T>;
|
|
1585
207
|
|
|
1586
|
-
type Whitespace = ' ' | '\n' | '\r' | '\t';
|
|
1587
|
-
type TrimLeft<TValue extends string> = TValue extends `${Whitespace}${infer TRest}` ? TrimLeft<TRest> : TValue;
|
|
1588
|
-
type TrimRight<TValue extends string> = TValue extends `${infer TRest}${Whitespace}` ? TrimRight<TRest> : TValue;
|
|
1589
|
-
type Trim<TValue extends string> = TrimLeft<TrimRight<TValue>>;
|
|
1590
|
-
type KnownSelectColumnKey<Row> = Extract<keyof NonNullable<Row>, string>;
|
|
1591
|
-
type HasKnownSelectColumns<Row> = [KnownSelectColumnKey<Row>] extends [never] ? false : string extends KnownSelectColumnKey<Row> ? false : true;
|
|
1592
|
-
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
|
-
type ValidateAliasedBase<Row, TOriginal extends string, TBase extends string> = HasComplexSelectTokenSyntax<Trim<TBase>> extends true ? TOriginal : Trim<TBase> extends KnownSelectColumnKey<Row> ? TOriginal : never;
|
|
1594
|
-
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
|
-
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
|
-
type ValidateSelectArray<Row, TValue extends readonly string[]> = string extends TValue[number] ? TValue : TValue extends readonly [
|
|
1597
|
-
infer THead extends string,
|
|
1598
|
-
...infer TTail extends readonly string[]
|
|
1599
|
-
] ? ValidateSelectToken<Row, THead> extends never ? never : ValidateSelectArray<Row, TTail> extends never ? never : TValue : TValue;
|
|
1600
|
-
type AthenaSelectInput = string | string[] | readonly string[];
|
|
1601
|
-
type AthenaValidatedSelectInput<Row, TValue extends AthenaSelectInput> = HasKnownSelectColumns<Row> extends true ? TValue extends string ? ValidateSelectList<Row, TValue> : TValue extends readonly string[] ? ValidateSelectArray<Row, TValue> : never : TValue;
|
|
1602
|
-
type AthenaTypecheckedColumnKey<Row, TEnabled extends boolean> = TEnabled extends true ? HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> : string : string;
|
|
1603
|
-
|
|
1604
|
-
type AthenaRowShape$2 = Record<string, AthenaJsonValue | undefined>;
|
|
1605
|
-
type AthenaUpsertOptions<Update> = AthenaGatewayCallOptions & {
|
|
1606
|
-
updateBody?: Update;
|
|
1607
|
-
onConflict?: string | string[];
|
|
1608
|
-
};
|
|
1609
|
-
interface AthenaDbModule<TStrict extends boolean = false> {
|
|
1610
|
-
from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
|
|
1611
|
-
from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
|
|
1612
|
-
select<Row = AthenaRowShape$2>(table: string, options?: AthenaGatewayCallOptions): SelectChain<Row, Row, TStrict>;
|
|
1613
|
-
select(table: string, columns: AthenaSelectInput, options?: AthenaGatewayCallOptions): SelectChain<AthenaRowShape$2, AthenaRowShape$2, TStrict>;
|
|
1614
|
-
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: string, values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row, Row, TStrict>;
|
|
1615
|
-
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: string, values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[], Row, TStrict>;
|
|
1616
|
-
upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, values: Insert, options?: AthenaUpsertOptions<Update>): MutationQuery<Row, Row, TStrict>;
|
|
1617
|
-
upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, values: Insert[], options?: AthenaUpsertOptions<Update>): MutationQuery<Row[], Row, TStrict>;
|
|
1618
|
-
update<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, values: Update, options?: AthenaGatewayCallOptions): UpdateChain<Row, TStrict>;
|
|
1619
|
-
delete<Row = AthenaRowShape$2>(table: string, options?: AthenaGatewayCallOptions & {
|
|
1620
|
-
resourceId?: string;
|
|
1621
|
-
}): MutationQuery<Row | null, Row, TStrict>;
|
|
1622
|
-
rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
|
|
1623
|
-
query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
interface AthenaFindManyAstPayload$1 {
|
|
1627
|
-
table_name: string;
|
|
1628
|
-
select: Record<string, unknown>;
|
|
1629
|
-
where?: Record<string, unknown>;
|
|
1630
|
-
orderBy?: Record<string, unknown>;
|
|
1631
|
-
limit?: number;
|
|
1632
|
-
}
|
|
1633
|
-
declare function verifyAthenaGatewayUrl(baseUrl: string, options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
1634
|
-
interface AthenaGatewayClient {
|
|
1635
|
-
baseUrl: string;
|
|
1636
|
-
buildHeaders(options?: AthenaGatewayCallOptions): Record<string, string>;
|
|
1637
|
-
verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
1638
|
-
fetchGateway<T>(payload: AthenaFetchPayload | AthenaFindManyAstPayload$1, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
1639
|
-
insertGateway<T>(payload: AthenaInsertPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
1640
|
-
updateGateway<T>(payload: AthenaUpdatePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
1641
|
-
deleteGateway<T>(payload: AthenaDeletePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
1642
|
-
rpcGateway<T>(payload: AthenaRpcPayload, options?: AthenaRpcCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
1643
|
-
queryGateway<T>(payload: AthenaQueryPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
208
|
type AthenaStorageTemplateValue = string | number | boolean | null | undefined;
|
|
1647
209
|
type AthenaStorageTemplateVars = Record<string, AthenaStorageTemplateValue>;
|
|
1648
210
|
type AthenaStorageEnv = Record<string, string | undefined>;
|
|
@@ -1667,6 +229,7 @@ interface AthenaStorageFileConfig {
|
|
|
1667
229
|
prefixPath?: AthenaStoragePrefixPath;
|
|
1668
230
|
vars?: AthenaStorageTemplateVars;
|
|
1669
231
|
env?: AthenaStorageEnv;
|
|
232
|
+
directUpload?: AthenaStorageDirectUploadConfig;
|
|
1670
233
|
}
|
|
1671
234
|
type AthenaStorageUploadSource = Blob | ArrayBuffer | Uint8Array;
|
|
1672
235
|
interface AthenaStorageUploadConstraints {
|
|
@@ -1754,6 +317,119 @@ interface AthenaStorageFileModule {
|
|
|
1754
317
|
delete(fileIds: readonly string[], options?: AthenaStorageCallOptions): Promise<StorageFileMutationResponse[]>;
|
|
1755
318
|
}
|
|
1756
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Admin backup surface exposed under `client.storage.backup.*`.
|
|
322
|
+
*
|
|
323
|
+
* Routes live at `/admin/backups*` (admin / elevated key). Archives land in the
|
|
324
|
+
* server-configured S3 or R2 profile (`ATHENA_BACKUP_S3_*` including provider + account_id).
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
type BackupRecoveryStrategy = 'none' | 'repair_missing_role_oids';
|
|
328
|
+
interface StorageBackupRecord {
|
|
329
|
+
job_id: number;
|
|
330
|
+
s3_bucket: string;
|
|
331
|
+
s3_key: string;
|
|
332
|
+
/** Alias of s3_key for convenience */
|
|
333
|
+
key: string;
|
|
334
|
+
client_name: string;
|
|
335
|
+
label?: string | null;
|
|
336
|
+
size_bytes: number;
|
|
337
|
+
execution_daemon_id?: string | null;
|
|
338
|
+
completed_at: string;
|
|
339
|
+
}
|
|
340
|
+
interface StorageBackupListPage {
|
|
341
|
+
backups: StorageBackupRecord[];
|
|
342
|
+
next_cursor: string | null;
|
|
343
|
+
}
|
|
344
|
+
interface StorageBackupListQuery {
|
|
345
|
+
client_name?: string;
|
|
346
|
+
cursor?: string | null;
|
|
347
|
+
limit?: number;
|
|
348
|
+
}
|
|
349
|
+
interface StorageBackupCreateRequest {
|
|
350
|
+
client_name: string;
|
|
351
|
+
label?: string;
|
|
352
|
+
pg_uri?: string;
|
|
353
|
+
recovery_strategy?: BackupRecoveryStrategy;
|
|
354
|
+
}
|
|
355
|
+
interface StorageBackupQueuedJob {
|
|
356
|
+
job_id: number;
|
|
357
|
+
client_name: string;
|
|
358
|
+
status: string;
|
|
359
|
+
key?: string;
|
|
360
|
+
}
|
|
361
|
+
interface StorageBackupRestoreRequest {
|
|
362
|
+
client_name: string;
|
|
363
|
+
pg_uri?: string;
|
|
364
|
+
}
|
|
365
|
+
interface StorageBackupJob {
|
|
366
|
+
id: number;
|
|
367
|
+
job_type: string;
|
|
368
|
+
client_name?: string | null;
|
|
369
|
+
status: string;
|
|
370
|
+
progress_pct?: number | null;
|
|
371
|
+
progress_stage?: string | null;
|
|
372
|
+
s3_bucket?: string | null;
|
|
373
|
+
s3_key?: string | null;
|
|
374
|
+
label?: string | null;
|
|
375
|
+
error_message?: string | null;
|
|
376
|
+
created_at?: string;
|
|
377
|
+
updated_at?: string;
|
|
378
|
+
completed_at?: string | null;
|
|
379
|
+
[key: string]: unknown;
|
|
380
|
+
}
|
|
381
|
+
interface StorageBackupSchedule {
|
|
382
|
+
id: number;
|
|
383
|
+
client_name: string;
|
|
384
|
+
frequency?: string;
|
|
385
|
+
enabled?: boolean;
|
|
386
|
+
label?: string | null;
|
|
387
|
+
[key: string]: unknown;
|
|
388
|
+
}
|
|
389
|
+
interface StorageBackupScheduleCreateRequest {
|
|
390
|
+
client_name: string;
|
|
391
|
+
frequency: string;
|
|
392
|
+
time_of_day?: string;
|
|
393
|
+
day_of_week?: number;
|
|
394
|
+
day_of_month?: number;
|
|
395
|
+
label?: string;
|
|
396
|
+
execution_daemon_id?: string;
|
|
397
|
+
enabled?: boolean;
|
|
398
|
+
[key: string]: unknown;
|
|
399
|
+
}
|
|
400
|
+
interface AthenaStorageBackupNamespace {
|
|
401
|
+
/** `GET /admin/backups` */
|
|
402
|
+
list(query?: StorageBackupListQuery, options?: AthenaStorageCallOptions): Promise<StorageBackupListPage>;
|
|
403
|
+
/** `POST /admin/backups` — queue a backup job */
|
|
404
|
+
create(input: StorageBackupCreateRequest, options?: AthenaStorageCallOptions): Promise<StorageBackupQueuedJob>;
|
|
405
|
+
/** `POST /admin/backups/{key}/restore` */
|
|
406
|
+
restore(key: string, input: StorageBackupRestoreRequest, options?: AthenaStorageCallOptions): Promise<StorageBackupQueuedJob>;
|
|
407
|
+
/** `DELETE /admin/backups/{key}` */
|
|
408
|
+
delete(key: string, options?: AthenaStorageCallOptions): Promise<void>;
|
|
409
|
+
/** Build a browser download URL for `GET /admin/backups/{key}/download` */
|
|
410
|
+
downloadUrl(key: string, options?: {
|
|
411
|
+
apiKey?: string;
|
|
412
|
+
}): string;
|
|
413
|
+
jobs: {
|
|
414
|
+
list(query?: {
|
|
415
|
+
limit?: number;
|
|
416
|
+
status?: string;
|
|
417
|
+
client_name?: string;
|
|
418
|
+
}, options?: AthenaStorageCallOptions): Promise<StorageBackupJob[]>;
|
|
419
|
+
get(jobId: number | string, options?: AthenaStorageCallOptions): Promise<StorageBackupJob>;
|
|
420
|
+
cancel(jobId: number | string, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
|
|
421
|
+
delete(jobId: number | string, options?: AthenaStorageCallOptions): Promise<void>;
|
|
422
|
+
/** Presigned/console open link for the job archive object (S3 or R2) */
|
|
423
|
+
openObjectUrl(jobId: number | string, options?: AthenaStorageCallOptions): Promise<string>;
|
|
424
|
+
};
|
|
425
|
+
schedules: {
|
|
426
|
+
list(options?: AthenaStorageCallOptions): Promise<StorageBackupSchedule[]>;
|
|
427
|
+
create(input: StorageBackupScheduleCreateRequest, options?: AthenaStorageCallOptions): Promise<StorageBackupSchedule>;
|
|
428
|
+
update(id: number | string, input: Partial<StorageBackupScheduleCreateRequest>, options?: AthenaStorageCallOptions): Promise<StorageBackupSchedule>;
|
|
429
|
+
delete(id: number | string, options?: AthenaStorageCallOptions): Promise<void>;
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
|
|
1757
433
|
declare const storageSdkManifest: {
|
|
1758
434
|
readonly namespace: "storage";
|
|
1759
435
|
readonly basePath: "/storage";
|
|
@@ -1795,6 +471,47 @@ declare const storageSdkManifest: {
|
|
|
1795
471
|
readonly path: "/storage/credentials";
|
|
1796
472
|
readonly responseEnvelope: "raw";
|
|
1797
473
|
readonly responseType: "{ data: S3CredentialListItem[] }";
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "backup.list";
|
|
476
|
+
readonly method: "GET";
|
|
477
|
+
readonly path: "/admin/backups";
|
|
478
|
+
readonly responseEnvelope: "athena";
|
|
479
|
+
readonly responseType: "StorageBackupListPage";
|
|
480
|
+
readonly note: "Admin backup archives on server S3/R2 profile";
|
|
481
|
+
}, {
|
|
482
|
+
readonly name: "backup.create";
|
|
483
|
+
readonly method: "POST";
|
|
484
|
+
readonly path: "/admin/backups";
|
|
485
|
+
readonly requestType: "StorageBackupCreateRequest";
|
|
486
|
+
readonly responseEnvelope: "athena";
|
|
487
|
+
readonly responseType: "StorageBackupQueuedJob";
|
|
488
|
+
}, {
|
|
489
|
+
readonly name: "backup.restore";
|
|
490
|
+
readonly method: "POST";
|
|
491
|
+
readonly path: "/admin/backups/{key}/restore";
|
|
492
|
+
readonly pathParams: readonly ["key"];
|
|
493
|
+
readonly requestType: "StorageBackupRestoreRequest";
|
|
494
|
+
readonly responseEnvelope: "athena";
|
|
495
|
+
readonly responseType: "StorageBackupQueuedJob";
|
|
496
|
+
}, {
|
|
497
|
+
readonly name: "backup.delete";
|
|
498
|
+
readonly method: "DELETE";
|
|
499
|
+
readonly path: "/admin/backups/{key}";
|
|
500
|
+
readonly pathParams: readonly ["key"];
|
|
501
|
+
readonly responseEnvelope: "athena";
|
|
502
|
+
readonly responseType: "void";
|
|
503
|
+
}, {
|
|
504
|
+
readonly name: "backup.jobs.list";
|
|
505
|
+
readonly method: "GET";
|
|
506
|
+
readonly path: "/admin/backups/jobs";
|
|
507
|
+
readonly responseEnvelope: "athena";
|
|
508
|
+
readonly responseType: "StorageBackupJob[]";
|
|
509
|
+
}, {
|
|
510
|
+
readonly name: "backup.schedules.list";
|
|
511
|
+
readonly method: "GET";
|
|
512
|
+
readonly path: "/admin/backups/schedules";
|
|
513
|
+
readonly responseEnvelope: "athena";
|
|
514
|
+
readonly responseType: "StorageBackupSchedule[]";
|
|
1798
515
|
}, {
|
|
1799
516
|
readonly name: "createStorageUploadUrl";
|
|
1800
517
|
readonly method: "POST";
|
|
@@ -2390,10 +1107,24 @@ interface StorageServerSideEncryptionOptions {
|
|
|
2390
1107
|
}
|
|
2391
1108
|
interface CreateStorageCatalogRequest {
|
|
2392
1109
|
name: string;
|
|
2393
|
-
|
|
2394
|
-
|
|
1110
|
+
/**
|
|
1111
|
+
* S3-compatible API endpoint.
|
|
1112
|
+
* Optional when `provider` is R2 and `account_id` (or `metadata.account_id`) is set;
|
|
1113
|
+
* the Athena server derives `https://{account_id}.r2.cloudflarestorage.com`.
|
|
1114
|
+
*/
|
|
1115
|
+
endpoint?: string;
|
|
1116
|
+
/**
|
|
1117
|
+
* Region. Optional for R2 (server defaults to `auto` after normalize).
|
|
1118
|
+
*/
|
|
1119
|
+
region?: string;
|
|
2395
1120
|
bucket: string;
|
|
1121
|
+
/** Storage provider: `s3`, `r2`, or `cloudflare_r2` (and free-form S3-compatible labels). */
|
|
2396
1122
|
provider?: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* Cloudflare account ID for R2 catalogs when endpoint is omitted.
|
|
1125
|
+
* Also accepted under `metadata.account_id`.
|
|
1126
|
+
*/
|
|
1127
|
+
account_id?: string;
|
|
2397
1128
|
force_path_style?: boolean;
|
|
2398
1129
|
default_prefix?: string;
|
|
2399
1130
|
public_base_url?: string;
|
|
@@ -2408,6 +1139,8 @@ interface UpdateStorageCatalogRequest {
|
|
|
2408
1139
|
region?: string;
|
|
2409
1140
|
bucket?: string;
|
|
2410
1141
|
provider?: string;
|
|
1142
|
+
/** Cloudflare account ID for R2 (merged into metadata / endpoint derivation). */
|
|
1143
|
+
account_id?: string;
|
|
2411
1144
|
force_path_style?: boolean;
|
|
2412
1145
|
default_prefix?: string | null;
|
|
2413
1146
|
public_base_url?: string | null;
|
|
@@ -2789,6 +1522,21 @@ type AthenaStorageErrorHandler = (error: AthenaStorageError) => void | Promise<v
|
|
|
2789
1522
|
interface AthenaStorageClientConfig extends AthenaStorageFileConfig {
|
|
2790
1523
|
onError?: AthenaStorageErrorHandler;
|
|
2791
1524
|
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Experimental credentials for signing the upload PUT in the client.
|
|
1527
|
+
* The Athena API still creates managed-file metadata so the public upload
|
|
1528
|
+
* result remains unchanged; file bytes go directly to this S3-compatible endpoint.
|
|
1529
|
+
*/
|
|
1530
|
+
interface AthenaStorageDirectUploadConfig {
|
|
1531
|
+
endpoint: string;
|
|
1532
|
+
bucket?: string;
|
|
1533
|
+
region?: string;
|
|
1534
|
+
accessKeyId: string;
|
|
1535
|
+
secretAccessKey: string;
|
|
1536
|
+
sessionToken?: string;
|
|
1537
|
+
/** R2 uses path-style addressing by default. */
|
|
1538
|
+
forcePathStyle?: boolean;
|
|
1539
|
+
}
|
|
2792
1540
|
interface AthenaStorageCallOptions extends AthenaGatewayCallOptions {
|
|
2793
1541
|
signal?: AbortSignal;
|
|
2794
1542
|
onError?: AthenaStorageErrorHandler;
|
|
@@ -3043,11 +1791,83 @@ interface AthenaStorageModule extends AthenaStorageBaseModule {
|
|
|
3043
1791
|
bucket: AthenaStorageBucketNamespace;
|
|
3044
1792
|
multipart: AthenaStorageMultipartNamespace;
|
|
3045
1793
|
audit: AthenaStorageAuditNamespace;
|
|
1794
|
+
/**
|
|
1795
|
+
* Database backup / restore admin API (`/admin/backups*`).
|
|
1796
|
+
* Archives are stored in the server S3 or R2 profile (`ATHENA_BACKUP_S3_*`).
|
|
1797
|
+
*/
|
|
1798
|
+
backup: AthenaStorageBackupNamespace;
|
|
3046
1799
|
delete: AthenaStorageFileModule['delete'];
|
|
3047
1800
|
}
|
|
3048
1801
|
declare function createAthenaStorageError(input: AthenaStorageErrorInput): AthenaStorageError;
|
|
3049
1802
|
declare function createStorageModule(gateway: AthenaGatewayClient, runtimeOptions?: AthenaStorageClientConfig): AthenaStorageModule;
|
|
3050
1803
|
|
|
1804
|
+
type Whitespace = ' ' | '\n' | '\r' | '\t';
|
|
1805
|
+
type TrimLeft<TValue extends string> = TValue extends `${Whitespace}${infer TRest}` ? TrimLeft<TRest> : TValue;
|
|
1806
|
+
type TrimRight<TValue extends string> = TValue extends `${infer TRest}${Whitespace}` ? TrimRight<TRest> : TValue;
|
|
1807
|
+
type Trim<TValue extends string> = TrimLeft<TrimRight<TValue>>;
|
|
1808
|
+
/** Known string keys of a row / model type (empty when the shape is untyped). */
|
|
1809
|
+
type AthenaColumnKey<Row> = Extract<keyof NonNullable<Row>, string>;
|
|
1810
|
+
type KnownSelectColumnKey<Row> = AthenaColumnKey<Row>;
|
|
1811
|
+
type HasKnownSelectColumns<Row> = [KnownSelectColumnKey<Row>] extends [never] ? false : string extends KnownSelectColumnKey<Row> ? false : true;
|
|
1812
|
+
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;
|
|
1813
|
+
type ValidateAliasedBase<Row, TOriginal extends string, TBase extends string> = HasComplexSelectTokenSyntax<Trim<TBase>> extends true ? TOriginal : Trim<TBase> extends KnownSelectColumnKey<Row> ? TOriginal : never;
|
|
1814
|
+
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;
|
|
1815
|
+
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;
|
|
1816
|
+
/**
|
|
1817
|
+
* Preferred element type for typed array selects.
|
|
1818
|
+
* Contextual typing validates each array-literal element against known keys
|
|
1819
|
+
* (no `as const` required) and powers IntelliSense on each slot.
|
|
1820
|
+
*/
|
|
1821
|
+
type AthenaSelectArrayElement<Row> = HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> | '*' : string;
|
|
1822
|
+
type AthenaSelectInput = string | string[] | readonly string[];
|
|
1823
|
+
/**
|
|
1824
|
+
* Compile-time validation for `select` / `single` / `maybeSingle` when
|
|
1825
|
+
* `experimental.typecheckColumns` is enabled and row keys are known.
|
|
1826
|
+
*
|
|
1827
|
+
* - Comma-separated strings: validates each simple token (aliases / relation
|
|
1828
|
+
* syntax are allowed through).
|
|
1829
|
+
* - Arrays: always `readonly (keyof Row | '*')[]` for element IntelliSense and
|
|
1830
|
+
* checking without `as const`.
|
|
1831
|
+
*/
|
|
1832
|
+
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;
|
|
1833
|
+
/**
|
|
1834
|
+
* Filter / order / RPC column parameter when `typecheckColumns` is enabled.
|
|
1835
|
+
* When disabled, still surfaces known keys for IntelliSense via
|
|
1836
|
+
* `Keys | (string & {})` so free-form strings remain assignable.
|
|
1837
|
+
*/
|
|
1838
|
+
type AthenaTypecheckedColumnKey<Row, TEnabled extends boolean> = TEnabled extends true ? HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> : string : HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> | (string & {}) : string;
|
|
1839
|
+
|
|
1840
|
+
type AthenaRowShape$2 = Record<string, AthenaJsonValue | undefined>;
|
|
1841
|
+
/**
|
|
1842
|
+
* Free-form `from<Row>(table)` table argument.
|
|
1843
|
+
* With client `models`, this is the known table-name union (IntelliSense).
|
|
1844
|
+
* Without models, plain `string`.
|
|
1845
|
+
*/
|
|
1846
|
+
type UntypedTableName$1<TModels> = [TModels] extends [never] ? string : [AthenaClientTableName<TModels>] extends [never] ? string : AthenaClientTableName<TModels>;
|
|
1847
|
+
type ResolvedClientTableModel$1<TModels, TTableName extends string> = Extract<AthenaClientModelForTableName<TModels, TTableName>, AthenaModelTarget>;
|
|
1848
|
+
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>;
|
|
1849
|
+
type AthenaUpsertOptions<Update> = AthenaGatewayCallOptions & {
|
|
1850
|
+
updateBody?: Update;
|
|
1851
|
+
onConflict?: string | string[];
|
|
1852
|
+
};
|
|
1853
|
+
interface AthenaDbModule<TStrict extends boolean = false, TModels = never> {
|
|
1854
|
+
from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
|
|
1855
|
+
from<TTableName extends AthenaClientTableName<TModels>>(table: TTableName, options?: AthenaFromOptions): ClientTableQueryBuilder$1<TModels, TTableName, TStrict>;
|
|
1856
|
+
from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
|
|
1857
|
+
select<Row = AthenaRowShape$2>(table: UntypedTableName$1<TModels>, options?: AthenaGatewayCallOptions): SelectChain<Row, Row, TStrict>;
|
|
1858
|
+
select(table: UntypedTableName$1<TModels>, columns: AthenaSelectInput, options?: AthenaGatewayCallOptions): SelectChain<AthenaRowShape$2, AthenaRowShape$2, TStrict>;
|
|
1859
|
+
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: UntypedTableName$1<TModels>, values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row, Row, TStrict>;
|
|
1860
|
+
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: UntypedTableName$1<TModels>, values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[], Row, TStrict>;
|
|
1861
|
+
upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Insert, options?: AthenaUpsertOptions<Update>): MutationQuery<Row, Row, TStrict>;
|
|
1862
|
+
upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Insert[], options?: AthenaUpsertOptions<Update>): MutationQuery<Row[], Row, TStrict>;
|
|
1863
|
+
update<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Update, options?: AthenaGatewayCallOptions): UpdateChain<Row, TStrict>;
|
|
1864
|
+
delete<Row = AthenaRowShape$2>(table: UntypedTableName$1<TModels>, options?: AthenaGatewayCallOptions & {
|
|
1865
|
+
resourceId?: string;
|
|
1866
|
+
}): MutationQuery<Row | null, Row, TStrict>;
|
|
1867
|
+
rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
|
|
1868
|
+
query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
3051
1871
|
type AthenaChatRoomKind = 'dm' | 'group' | 'channel';
|
|
3052
1872
|
type AthenaChatMemberRole = 'owner' | 'admin' | 'member';
|
|
3053
1873
|
interface AthenaChatAttachmentInput {
|
|
@@ -3732,7 +2552,7 @@ interface AthenaRequestOptions {
|
|
|
3732
2552
|
path?: string;
|
|
3733
2553
|
method?: AthenaRequestMethod;
|
|
3734
2554
|
headers?: Record<string, string>;
|
|
3735
|
-
/** Per-request override for
|
|
2555
|
+
/** Per-request override for the canonical `X-Athena-Key` header. */
|
|
3736
2556
|
apiKey?: string | null;
|
|
3737
2557
|
/** Per-request override for `X-Athena-Key` only. */
|
|
3738
2558
|
athenaKey?: string | null;
|
|
@@ -3793,6 +2613,12 @@ interface AthenaClientExperimentalOptions {
|
|
|
3793
2613
|
* Expose the experimental `client.storage.*` bindings for Athena storage APIs.
|
|
3794
2614
|
*/
|
|
3795
2615
|
athenaStorageBackend?: boolean;
|
|
2616
|
+
/**
|
|
2617
|
+
* Sign high-level `storage.file.upload(...)` PUTs in the client and send
|
|
2618
|
+
* file bytes directly to the configured S3-compatible storage endpoint.
|
|
2619
|
+
* Athena still creates managed-file metadata, preserving the upload result contract.
|
|
2620
|
+
*/
|
|
2621
|
+
directStorageUpload?: AthenaStorageDirectUploadConfig;
|
|
3796
2622
|
/**
|
|
3797
2623
|
* Optional storage SDK runtime hooks. Only used when `athenaStorageBackend` is enabled.
|
|
3798
2624
|
*/
|
|
@@ -3838,8 +2664,27 @@ type MutationSingleResult<Result> = Result extends Array<infer Item> ? Item | nu
|
|
|
3838
2664
|
type MutationResultRow<Result> = Result extends Array<infer Item> ? Item : Result;
|
|
3839
2665
|
type AthenaRowShape = Record<string, AthenaJsonValue | undefined>;
|
|
3840
2666
|
type FilterColumnKey<Row> = Extract<keyof NonNullable<Row>, string>;
|
|
3841
|
-
|
|
3842
|
-
type
|
|
2667
|
+
/** Known keys when the row shape is concrete; `string` when untyped / index signature. */
|
|
2668
|
+
type ResolvedFilterColumnKey<Row> = [FilterColumnKey<Row>] extends [never] ? string : string extends FilterColumnKey<Row> ? string : FilterColumnKey<Row>;
|
|
2669
|
+
/**
|
|
2670
|
+
* Table-name argument for free-form `from<Row>(table)`.
|
|
2671
|
+
* - No client `models` → `string` (nothing to complete).
|
|
2672
|
+
* - With `models` → known bare/qualified names (IntelliSense + reject unknowns).
|
|
2673
|
+
* Prefer `.from("users")` without a row generic so the row type is inferred from the model.
|
|
2674
|
+
*/
|
|
2675
|
+
type UntypedTableName<TModels> = [TModels] extends [never] ? string : [AthenaClientTableName<TModels>] extends [never] ? string : AthenaClientTableName<TModels>;
|
|
2676
|
+
type ResolvedClientTableModel<TModels, TTableName extends string> = Extract<AthenaClientModelForTableName<TModels, TTableName>, AthenaModelTarget>;
|
|
2677
|
+
type ClientTableQueryBuilder<TModels, TTableName extends string, TStrict extends boolean> = TableQueryBuilder<RowOf<ResolvedClientTableModel<TModels, TTableName>>, InsertOf<ResolvedClientTableModel<TModels, TTableName>>, UpdateOf<ResolvedClientTableModel<TModels, TTableName>>, unknown, TStrict>;
|
|
2678
|
+
/**
|
|
2679
|
+
* Select/returning/single column input.
|
|
2680
|
+
*
|
|
2681
|
+
* - Typed row + `typecheckColumns`: validates string lists; arrays use key union
|
|
2682
|
+
* (IntelliSense + reject unknown elements without `as const`).
|
|
2683
|
+
* - Typed row without strict: free-form strings still allowed; key unions are
|
|
2684
|
+
* included so IDEs can suggest column names on `select` / `single` / etc.
|
|
2685
|
+
* - Untyped row: plain `TValue` (`string | string[]`).
|
|
2686
|
+
*/
|
|
2687
|
+
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
2688
|
interface MutationQuery<Result, Row = MutationResultRow<Result>, TStrict extends boolean = false> extends PromiseLike<AthenaResult<Result>> {
|
|
3844
2689
|
select<const TColumns extends AthenaSelectInput = string>(columns?: SelectColumnsFor<Row, TStrict, TColumns>, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Result>>;
|
|
3845
2690
|
returning<const TColumns extends AthenaSelectInput = string>(columns?: SelectColumnsFor<Row, TStrict, TColumns>, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Result>>;
|
|
@@ -3923,11 +2768,11 @@ interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>
|
|
|
3923
2768
|
insert(values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[], Row, TStrict>;
|
|
3924
2769
|
upsert(values: Insert, options?: AthenaGatewayCallOptions & {
|
|
3925
2770
|
updateBody?: Update;
|
|
3926
|
-
onConflict?: string | string
|
|
2771
|
+
onConflict?: ResolvedFilterColumnKey<Row> | Array<ResolvedFilterColumnKey<Row>> | (string & {}) | Array<string & {}>;
|
|
3927
2772
|
}): MutationQuery<Row, Row, TStrict>;
|
|
3928
2773
|
upsert(values: Insert[], options?: AthenaGatewayCallOptions & {
|
|
3929
2774
|
updateBody?: Update;
|
|
3930
|
-
onConflict?: string | string
|
|
2775
|
+
onConflict?: ResolvedFilterColumnKey<Row> | Array<ResolvedFilterColumnKey<Row>> | (string & {}) | Array<string & {}>;
|
|
3931
2776
|
}): MutationQuery<Row[], Row, TStrict>;
|
|
3932
2777
|
update(values: Update, options?: AthenaGatewayCallOptions): UpdateChain<Row, TStrict>;
|
|
3933
2778
|
delete(options?: AthenaGatewayCallOptions & {
|
|
@@ -3937,29 +2782,30 @@ interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>
|
|
|
3937
2782
|
maybeSingle<T = Row, const TColumns extends AthenaSelectInput = string>(columns?: SelectColumnsFor<Row, TStrict, TColumns>, options?: AthenaGatewayCallOptions): Promise<AthenaResult<T | null>>;
|
|
3938
2783
|
reset(): TableQueryBuilder<Row, Insert, Update, TContext, TStrict>;
|
|
3939
2784
|
}
|
|
3940
|
-
interface AthenaSdkClient<TStrict extends boolean = false> {
|
|
2785
|
+
interface AthenaSdkClient<TStrict extends boolean = false, TModels = never> {
|
|
3941
2786
|
from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
|
|
3942
|
-
from<
|
|
3943
|
-
|
|
2787
|
+
from<TTableName extends AthenaClientTableName<TModels>>(table: TTableName, options?: AthenaFromOptions): ClientTableQueryBuilder<TModels, TTableName, TStrict>;
|
|
2788
|
+
from<Row = AthenaRowShape, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName<TModels>, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
|
|
2789
|
+
db: AthenaDbModule<TStrict, TModels>;
|
|
3944
2790
|
rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
|
|
3945
2791
|
query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
|
|
3946
2792
|
request<T = unknown>(options: AthenaRequestOptions): Promise<AthenaRequestResponse<T>>;
|
|
3947
2793
|
verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
3948
|
-
withContext(context?: AthenaClientContextOptions): AthenaSdkClient<TStrict>;
|
|
3949
|
-
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClient<TStrict>;
|
|
2794
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClient<TStrict, TModels>;
|
|
2795
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClient<TStrict, TModels>;
|
|
3950
2796
|
}
|
|
3951
|
-
interface AthenaSdkClientWithAuth<TStrict extends boolean = false> extends AthenaSdkClient<TStrict> {
|
|
2797
|
+
interface AthenaSdkClientWithAuth<TStrict extends boolean = false, TModels = never> extends AthenaSdkClient<TStrict, TModels> {
|
|
3952
2798
|
auth: AthenaAuthBindings;
|
|
3953
2799
|
chat: AthenaChatModule;
|
|
3954
|
-
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
3955
|
-
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
3956
|
-
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
2800
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithAuth<TStrict, TModels>;
|
|
2801
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithAuth<TStrict, TModels>;
|
|
2802
|
+
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithAuth<TStrict, TModels>;
|
|
3957
2803
|
}
|
|
3958
|
-
interface AthenaSdkClientWithStorage<TStrict extends boolean = false> extends AthenaSdkClientWithAuth<TStrict> {
|
|
2804
|
+
interface AthenaSdkClientWithStorage<TStrict extends boolean = false, TModels = never> extends AthenaSdkClientWithAuth<TStrict, TModels> {
|
|
3959
2805
|
storage: AthenaStorageModule;
|
|
3960
|
-
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
3961
|
-
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
3962
|
-
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
2806
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithStorage<TStrict, TModels>;
|
|
2807
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithStorage<TStrict, TModels>;
|
|
2808
|
+
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithStorage<TStrict, TModels>;
|
|
3963
2809
|
}
|
|
3964
2810
|
interface AthenaHeaderBag {
|
|
3965
2811
|
get(name: string): string | null;
|
|
@@ -3998,7 +2844,7 @@ interface AthenaCreateClientOptions {
|
|
|
3998
2844
|
pgUri?: string | null | undefined;
|
|
3999
2845
|
/** JDBC/PostgreSQL URI mirrored to `x-athena-jdbc-url` and `x-jdbc-url`. */
|
|
4000
2846
|
jdbcUrl?: string | null | undefined;
|
|
4001
|
-
/** Client-wide override for `X-Athena-Key`
|
|
2847
|
+
/** Client-wide override for the canonical `X-Athena-Key` header. */
|
|
4002
2848
|
athenaKey?: string | null | undefined;
|
|
4003
2849
|
backend?: BackendConfig | BackendType;
|
|
4004
2850
|
db?: AthenaCreateClientServiceUrlConfig;
|
|
@@ -4012,6 +2858,7 @@ interface AthenaCreateClientOptions {
|
|
|
4012
2858
|
chatUrl?: string | null | undefined;
|
|
4013
2859
|
chatWsUrl?: string | null | undefined;
|
|
4014
2860
|
storageUrl?: string | null | undefined;
|
|
2861
|
+
models?: AthenaClientModelsInput;
|
|
4015
2862
|
experimental?: AthenaClientExperimentalOptions;
|
|
4016
2863
|
}
|
|
4017
2864
|
interface AthenaCreateClientOptionsWithStorage extends AthenaCreateClientOptions {
|
|
@@ -4046,7 +2893,7 @@ interface AthenaCreateClientConfigWithStorageAndTypecheckedColumns extends Athen
|
|
|
4046
2893
|
url?: string | null | undefined;
|
|
4047
2894
|
key: string | null | undefined;
|
|
4048
2895
|
}
|
|
4049
|
-
interface AthenaClientOverrideOptions extends Omit<AthenaCreateClientOptions, 'experimental'> {
|
|
2896
|
+
interface AthenaClientOverrideOptions extends Omit<AthenaCreateClientOptions, 'experimental' | 'models'> {
|
|
4050
2897
|
url?: string | null | undefined;
|
|
4051
2898
|
key?: string | null | undefined;
|
|
4052
2899
|
}
|
|
@@ -4096,7 +2943,7 @@ interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict ex
|
|
|
4096
2943
|
pgUri(pgUri: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4097
2944
|
/** Forward a JDBC/PostgreSQL URI to compatibility JDBC headers. */
|
|
4098
2945
|
jdbcUrl(jdbcUrl: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4099
|
-
/** Override `X-Athena-Key` for this client
|
|
2946
|
+
/** Override the canonical `X-Athena-Key` header for this client. */
|
|
4100
2947
|
athenaKey(athenaKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4101
2948
|
/** Configure Athena Auth client behavior for `client.auth.*` methods. */
|
|
4102
2949
|
auth(config: AthenaCreateClientAuthOptions): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
@@ -4130,14 +2977,25 @@ declare class AthenaClient {
|
|
|
4130
2977
|
static fromEnvironment(options: AthenaClientFromEnvironmentOptionsWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
|
|
4131
2978
|
static fromEnvironment(options?: AthenaClientFromEnvironmentOptions): AthenaSdkClientWithAuth<false>;
|
|
4132
2979
|
}
|
|
2980
|
+
type ExtractClientModels<TInput> = TInput extends {
|
|
2981
|
+
models: infer TModels extends AthenaClientModelsInput;
|
|
2982
|
+
} ? TModels : never;
|
|
2983
|
+
type AthenaCreateClientReturn<TInput> = TInput extends {
|
|
2984
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
2985
|
+
athenaStorageBackend: true;
|
|
2986
|
+
typecheckColumns: true;
|
|
2987
|
+
};
|
|
2988
|
+
} ? AthenaSdkClientWithStorage<true, ExtractClientModels<TInput>> : TInput extends {
|
|
2989
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
2990
|
+
athenaStorageBackend: true;
|
|
2991
|
+
};
|
|
2992
|
+
} ? AthenaSdkClientWithStorage<false, ExtractClientModels<TInput>> : TInput extends {
|
|
2993
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
2994
|
+
typecheckColumns: true;
|
|
2995
|
+
};
|
|
2996
|
+
} ? AthenaSdkClientWithAuth<true, ExtractClientModels<TInput>> : AthenaSdkClientWithAuth<false, ExtractClientModels<TInput>>;
|
|
4133
2997
|
/** 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>;
|
|
2998
|
+
declare function createClient<TConfig extends AthenaCreateClientConfig>(config: TConfig): AthenaCreateClientReturn<TConfig>;
|
|
2999
|
+
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
3000
|
|
|
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 };
|
|
3001
|
+
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 AthenaStorageBackupNamespace 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 RetryBackoffStrategy as b$, type AthenaStorageBaseModule as b0, type AthenaStorageBinaryCallOptions as b1, type AthenaStorageBucketCorsNamespace as b2, type AthenaStorageBucketNamespace as b3, type AthenaStorageCallOptions as b4, type AthenaStorageCatalogNamespace as b5, type AthenaStorageClientConfig as b6, type AthenaStorageCredentialsNamespace as b7, type AthenaStorageDirectUploadConfig as b8, type AthenaStorageEnv as b9, type AthenaStorageTemplateValue as bA, type AthenaStorageTemplateVars as bB, type AthenaStorageUploadConstraints as bC, type AthenaStorageUploadProgress as bD, type AthenaStorageUploadProgressHandler as bE, type AthenaStorageUploadSource as bF, type AthenaStorageUploadedFile as bG, type AthenaTableBuilderStateAst as bH, type AthenaUpdateDebugAst as bI, type AthenaUpsertDebugAst as bJ, type BackupRecoveryStrategy as bK, type ConfirmStorageUploadRequest as bL, type CopyStorageFileRequest as bM, type CreateStorageCatalogRequest as bN, type CreateStorageUploadUrlRequest as bO, type CreateStorageUploadUrlsRequest as bP, type DeleteManyStorageFilesRequest as bQ, type DeleteStorageFolderRequest as bR, type GetStorageFileUrlQuery as bS, type IntCoercionOptions as bT, type ListStorageFilesRequest as bU, type ListStorageFoldersRequest as bV, type ManagedFileRecord as bW, type MoveStorageFolderRequest as bX, type NormalizedAthenaError as bY, type PresignedFileUrlResponse as bZ, type RequireAffectedOptions as b_, AthenaStorageError as ba, AthenaStorageErrorCode as bb, type AthenaStorageErrorDetails as bc, type AthenaStorageErrorHandler as bd, type AthenaStorageErrorInput as be, type AthenaStorageFileConfig as bf, type AthenaStorageFileDeleteInput as bg, type AthenaStorageFileDownloadInput as bh, type AthenaStorageFileListInput as bi, type AthenaStorageFileModule as bj, type AthenaStorageFileNamespace as bk, type AthenaStorageFileUploadInput as bl, type AthenaStorageFileUploadManyRequest as bm, type AthenaStorageFileUploadRequest as bn, type AthenaStorageFileUploadResult as bo, type AthenaStorageFolderNamespace as bp, type AthenaStorageManagedUpload as bq, type AthenaStorageModule as br, type AthenaStorageMultipartNamespace as bs, type AthenaStorageObjectFolderNamespace as bt, type AthenaStorageObjectNamespace as bu, type AthenaStoragePathContext as bv, type AthenaStoragePermissionNamespace as bw, type AthenaStoragePrefixPath as bx, type AthenaStoragePutBody as by, type AthenaStoragePutOptions as bz, type AthenaChatAttachmentView as c, type StorageSetBucketPolicyRequest as c$, type RetryConfig as c0, type RpcOrderOptions as c1, type RpcQueryBuilder as c2, type S3CatalogItem as c3, type S3CredentialListItem as c4, type SearchStorageFilesRequest as c5, type SetManyStorageFileVisibilityRequest as c6, type SetStorageFileVisibilityRequest as c7, type StorageAuditEventRecord as c8, type StorageAuditListResponse as c9, type StorageMultipartAbortRequest as cA, type StorageMultipartCompletePartInput as cB, type StorageMultipartCompleteRequest as cC, type StorageMultipartCreateRequest as cD, type StorageMultipartListPartsRequest as cE, type StorageMultipartSignPartRequest as cF, type StorageObjectBaseRequest as cG, type StorageObjectCopyRequest as cH, type StorageObjectFolderCreateRequest as cI, type StorageObjectFolderDeleteRequest as cJ, type StorageObjectFolderRenameRequest as cK, type StorageObjectPublicUrlRequest as cL, type StorageObjectRequest as cM, type StorageObjectValidateRequest as cN, type StorageObjectVersionListRequest as cO, type StorageObjectVersionMutationRequest as cP, type StoragePermissionCheckRequest as cQ, type StoragePermissionCheckResponse as cR, type StoragePermissionGrantRequest as cS, type StoragePermissionListRequest as cT, type StoragePermissionListResponse as cU, type StoragePermissionRevokeRequest as cV, type StoragePresignUploadRequest as cW, type StoragePublicAccessBlockRequest as cX, type StorageServerSideEncryptionOptions as cY, type StorageSetBucketCorsRequest as cZ, type StorageSetBucketLifecycleRequest as c_, type StorageAuditQueryRequest as ca, type StorageBackupCreateRequest as cb, type StorageBackupJob as cc, type StorageBackupListPage as cd, type StorageBackupListQuery as ce, type StorageBackupQueuedJob as cf, type StorageBackupRecord as cg, type StorageBackupRestoreRequest as ch, type StorageBackupSchedule as ci, type StorageBackupScheduleCreateRequest as cj, type StorageBatchUploadUrlResponse as ck, type StorageBatchUploadUrlResponseWithPut as cl, type StorageBucketCorsRequest as cm, type StorageBucketCorsRuleInput as cn, type StorageBucketLifecycleRequest as co, type StorageBucketLifecycleRuleInput as cp, type StorageBucketPolicyRequest as cq, type StorageFileAccessPurpose as cr, type StorageFileMutationManyResponse as cs, type StorageFileMutationResponse as ct, type StorageFilePermissionRecord as cu, type StorageFileRetentionRequest as cv, type StorageFileVersionPathRequest as cw, type StorageFolderMutationResponse as cx, type StorageListFilesResponse as cy, type StorageListObjectsRequest as cz, type AthenaChatCallOptions as d, type StorageSetPublicAccessBlockRequest as d0, type StorageSignedPostPolicyRequest as d1, type StorageUpdateObjectRequest as d2, type StorageUploadUrlResponse as d3, type StorageUploadUrlResponseWithPut as d4, type TableQueryBuilder as d5, type TreeStorageFoldersRequest as d6, type UnwrapOneOptions as d7, type UnwrapOptions as d8, type UpdateManyStorageFilesRequest as d9, type AthenaQueryTraceOptions as dA, type AthenaRelationSelectNode as dB, type AthenaResultError as dC, type AthenaSelectShape as dD, type AthenaWhere as dE, type AthenaWhereBooleanOperand as dF, type AthenaWhereOperatorInput as dG, type UpdateStorageCatalogRequest as da, type UpdateStorageFileRequest as db, assertInt as dc, coerceInt as dd, createAthenaStorageError as de, createClient as df, createStorageModule as dg, getAthenaDebugAst as dh, isOk as di, normalizeAthenaError as dj, parseBooleanFlag as dk, requireAffected as dl, requireSuccess as dm, storageSdkManifest as dn, unwrap as dp, unwrapOne as dq, unwrapRows as dr, verifyAthenaGatewayUrl as ds, withRetry as dt, type AthenaClientBuilder as du, type AthenaFindManyOptions as dv, type AthenaFindManyResult as dw, type AthenaOrderBy as dx, type AthenaQueryTraceCallsite as dy, type AthenaQueryTraceEvent as dz, 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 };
|