@xylex-group/athena 1.6.2 → 1.7.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/README.md +47 -1
- package/dist/cli/index.cjs +77 -18
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +77 -18
- package/dist/cli/index.js.map +1 -1
- package/dist/{errors-BYRK5phv.d.cts → errors-BJGgjHcI.d.cts} +1 -1
- package/dist/{errors-1b-LSTum.d.ts → errors-Bcf5Sftv.d.ts} +1 -1
- package/dist/index.cjs +572 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +269 -6
- package/dist/index.d.ts +269 -6
- package/dist/index.js +569 -19
- package/dist/index.js.map +1 -1
- package/dist/{pipeline-CA2aexDl.d.cts → pipeline-BsKuBqmE.d.cts} +9 -4
- package/dist/{pipeline-BQzpSLD3.d.ts → pipeline-xQSjGbqF.d.ts} +9 -4
- package/dist/react.d.cts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/{types-v6UyGg-x.d.cts → types-wPA1Z4vQ.d.cts} +1 -1
- package/dist/{types-v6UyGg-x.d.ts → types-wPA1Z4vQ.d.ts} +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-
|
|
4
|
-
import { S as SchemaDef, A as AnyModelDef, D as DatabaseDef, M as ModelMetadata, a as ModelDef, R as RegistryDef, T as TenantKeyMap, b as TenantContext, c as RowOf, d as ModelAt, e as SchemaIntrospectionProvider, f as AthenaGeneratorConfig, L as LoadGeneratorConfigOptions, g as LoadedGeneratorConfig, N as NormalizedAthenaGeneratorConfig, I as IntrospectionSnapshot, G as GeneratedArtifacts, h as IntrospectionColumn, i as GeneratorProviderConfig, j as GeneratorExperimentalFlags } from './pipeline-
|
|
5
|
-
export {
|
|
1
|
+
import { B as BackendConfig, a as BackendType, A as AthenaConditionValue, b as AthenaConditionCastType, c as AthenaConditionArrayValue, d as AthenaConditionOperator, e as AthenaGatewayCallOptions, f as AthenaGatewayErrorDetails, g as AthenaRpcCallOptions } from './types-wPA1Z4vQ.cjs';
|
|
2
|
+
export { h as AthenaGatewayErrorCode, i as AthenaRpcFilter, j as AthenaRpcFilterOperator, k as AthenaRpcOrder, l as AthenaRpcPayload, m as Backend } from './types-wPA1Z4vQ.cjs';
|
|
3
|
+
export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-BJGgjHcI.cjs';
|
|
4
|
+
import { S as SchemaDef, A as AnyModelDef, D as DatabaseDef, M as ModelMetadata, a as ModelDef, R as RegistryDef, T as TenantKeyMap, b as TenantContext, c as RowOf, d as ModelAt, e as SchemaIntrospectionProvider, f as AthenaGeneratorConfig, L as LoadGeneratorConfigOptions, g as LoadedGeneratorConfig, N as NormalizedAthenaGeneratorConfig, I as IntrospectionSnapshot, G as GeneratedArtifacts, h as IntrospectionColumn, i as GeneratorProviderConfig, j as GeneratorExperimentalFlags, k as GeneratorSchemaSelection } from './pipeline-BsKuBqmE.cjs';
|
|
5
|
+
export { l as GeneratedArtifact, m as GeneratorArtifactKind, n as GeneratorFeatureFlags, o as GeneratorNamingConfig, p as GeneratorOutputConfig, q as GeneratorOutputTargets, r as InsertOf, s as IntrospectionInspectOptions, t as IntrospectionRelation, u as IntrospectionSchema, v as IntrospectionTable, w as IntrospectionTypeKind, x as ModelRelationKind, y as ModelRelationMetadata, z as NamingStyle, B as RunGeneratorOptions, C as RunGeneratorResult, E as TenantContextValue, U as UpdateOf, F as runSchemaGenerator } from './pipeline-BsKuBqmE.cjs';
|
|
6
6
|
|
|
7
7
|
interface AthenaResult<T> {
|
|
8
8
|
data: T | null;
|
|
@@ -365,6 +365,7 @@ declare function createTypedClient<TRegistry extends RegistryConstraint, TTenant
|
|
|
365
365
|
interface PostgresIntrospectionProviderOptions {
|
|
366
366
|
connectionString: string;
|
|
367
367
|
database?: string;
|
|
368
|
+
schemas?: readonly string[];
|
|
368
369
|
}
|
|
369
370
|
/**
|
|
370
371
|
* Creates a PostgreSQL-backed schema introspection provider.
|
|
@@ -397,4 +398,266 @@ declare function resolvePostgresColumnType(column: IntrospectionColumn): string;
|
|
|
397
398
|
*/
|
|
398
399
|
declare function resolveGeneratorProvider(providerConfig: GeneratorProviderConfig, experimentalFlags: GeneratorExperimentalFlags): SchemaIntrospectionProvider;
|
|
399
400
|
|
|
400
|
-
|
|
401
|
+
declare const DEFAULT_POSTGRES_SCHEMAS: readonly ["public"];
|
|
402
|
+
/**
|
|
403
|
+
* Normalizes schema selection from config or env-backed strings into a stable,
|
|
404
|
+
* deduplicated list. Empty selections fall back to PostgreSQL's public schema.
|
|
405
|
+
*/
|
|
406
|
+
declare function normalizeSchemaSelection(input: GeneratorSchemaSelection | undefined): string[];
|
|
407
|
+
/**
|
|
408
|
+
* Resolves the effective schema list for provider-backed generator runs.
|
|
409
|
+
*/
|
|
410
|
+
declare function resolveProviderSchemas(providerConfig: GeneratorProviderConfig): string[];
|
|
411
|
+
|
|
412
|
+
type AthenaAuthMethod = 'GET' | 'POST';
|
|
413
|
+
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
414
|
+
type AthenaAuthQueryPrimitive = string | number | boolean;
|
|
415
|
+
type AthenaAuthQueryValue = AthenaAuthQueryPrimitive | AthenaAuthQueryPrimitive[] | null | undefined;
|
|
416
|
+
type AthenaAuthEndpointPath = '/sign-in/social' | '/sign-in/email' | '/sign-in/username' | '/sign-up/email' | '/get-session' | '/sign-out' | '/forget-password' | '/reset-password' | '/verify-email' | '/send-verification-email' | '/change-email' | '/change-password' | '/update-user' | '/delete-user' | '/delete-user/callback' | '/list-sessions' | '/revoke-session' | '/revoke-sessions' | '/revoke-other-sessions' | '/link-social' | '/list-accounts' | '/unlink-account' | '/refresh-token' | '/get-access-token' | '/ok' | '/error' | `/reset-password/${string}`;
|
|
417
|
+
type AthenaAuthErrorCode = 'NETWORK_ERROR' | 'HTTP_ERROR' | 'INVALID_JSON' | 'UNKNOWN_ERROR';
|
|
418
|
+
interface AthenaAuthErrorDetails {
|
|
419
|
+
code: AthenaAuthErrorCode;
|
|
420
|
+
message: string;
|
|
421
|
+
status: number;
|
|
422
|
+
endpoint?: AthenaAuthEndpointPath;
|
|
423
|
+
method?: AthenaAuthMethod;
|
|
424
|
+
requestId?: string;
|
|
425
|
+
hint?: string;
|
|
426
|
+
cause?: string;
|
|
427
|
+
}
|
|
428
|
+
interface AthenaAuthResult<T = unknown> {
|
|
429
|
+
ok: boolean;
|
|
430
|
+
status: number;
|
|
431
|
+
data: T | null;
|
|
432
|
+
error: string | null;
|
|
433
|
+
errorDetails?: AthenaAuthErrorDetails | null;
|
|
434
|
+
raw: unknown;
|
|
435
|
+
}
|
|
436
|
+
interface AthenaAuthUser {
|
|
437
|
+
id: string;
|
|
438
|
+
email: string;
|
|
439
|
+
name?: string | null;
|
|
440
|
+
image?: string | null;
|
|
441
|
+
emailVerified?: boolean;
|
|
442
|
+
createdAt?: string;
|
|
443
|
+
updatedAt?: string;
|
|
444
|
+
username?: string | null;
|
|
445
|
+
displayUsername?: string | null;
|
|
446
|
+
twoFactorEnabled?: boolean;
|
|
447
|
+
role?: string | null;
|
|
448
|
+
banned?: boolean;
|
|
449
|
+
banReason?: string | null;
|
|
450
|
+
banExpires?: string | null;
|
|
451
|
+
}
|
|
452
|
+
interface AthenaAuthSession {
|
|
453
|
+
id: string;
|
|
454
|
+
expiresAt?: string;
|
|
455
|
+
token?: string;
|
|
456
|
+
createdAt?: string;
|
|
457
|
+
updatedAt?: string;
|
|
458
|
+
ipAddress?: string | null;
|
|
459
|
+
userAgent?: string | null;
|
|
460
|
+
userId?: string;
|
|
461
|
+
impersonatedBy?: string | null;
|
|
462
|
+
activeOrganizationId?: string | null;
|
|
463
|
+
}
|
|
464
|
+
interface AthenaAuthSessionResponse {
|
|
465
|
+
session: AthenaAuthSession;
|
|
466
|
+
user: AthenaAuthUser;
|
|
467
|
+
}
|
|
468
|
+
interface AthenaEmailSignInRequest {
|
|
469
|
+
email: string;
|
|
470
|
+
password: string;
|
|
471
|
+
callbackURL?: string;
|
|
472
|
+
rememberMe?: boolean;
|
|
473
|
+
}
|
|
474
|
+
interface AthenaUsernameSignInRequest {
|
|
475
|
+
username: string;
|
|
476
|
+
password: string;
|
|
477
|
+
rememberMe?: boolean;
|
|
478
|
+
}
|
|
479
|
+
interface AthenaSocialSignInRequest {
|
|
480
|
+
provider: string;
|
|
481
|
+
callbackURL?: string;
|
|
482
|
+
newUserCallbackURL?: string;
|
|
483
|
+
errorCallbackURL?: string;
|
|
484
|
+
disableRedirect?: boolean;
|
|
485
|
+
idToken?: string;
|
|
486
|
+
scopes?: string[] | string;
|
|
487
|
+
requestSignUp?: boolean;
|
|
488
|
+
loginHint?: string;
|
|
489
|
+
}
|
|
490
|
+
interface AthenaEmailSignUpRequest {
|
|
491
|
+
name: string;
|
|
492
|
+
email: string;
|
|
493
|
+
password: string;
|
|
494
|
+
callbackURL?: string;
|
|
495
|
+
}
|
|
496
|
+
interface AthenaAuthSignInResponse {
|
|
497
|
+
redirect: false;
|
|
498
|
+
token: string;
|
|
499
|
+
url?: string | null;
|
|
500
|
+
user: AthenaAuthUser;
|
|
501
|
+
}
|
|
502
|
+
interface AthenaAuthSocialRedirectResponse {
|
|
503
|
+
url: string;
|
|
504
|
+
redirect: boolean;
|
|
505
|
+
}
|
|
506
|
+
interface AthenaAuthSignOutResponse {
|
|
507
|
+
success: boolean;
|
|
508
|
+
}
|
|
509
|
+
interface AthenaAuthStatusResponse {
|
|
510
|
+
status: boolean;
|
|
511
|
+
}
|
|
512
|
+
interface AthenaAuthRevokeSessionRequest {
|
|
513
|
+
token: string;
|
|
514
|
+
}
|
|
515
|
+
interface AthenaForgetPasswordRequest {
|
|
516
|
+
email: string;
|
|
517
|
+
redirectTo?: string;
|
|
518
|
+
}
|
|
519
|
+
interface AthenaResetPasswordRequest {
|
|
520
|
+
newPassword: string;
|
|
521
|
+
token?: string;
|
|
522
|
+
}
|
|
523
|
+
interface AthenaVerifyEmailRequest {
|
|
524
|
+
token: string;
|
|
525
|
+
callbackURL?: string;
|
|
526
|
+
}
|
|
527
|
+
interface AthenaSendVerificationEmailRequest {
|
|
528
|
+
email: string;
|
|
529
|
+
callbackURL?: string;
|
|
530
|
+
}
|
|
531
|
+
interface AthenaChangeEmailRequest {
|
|
532
|
+
newEmail: string;
|
|
533
|
+
callbackURL?: string;
|
|
534
|
+
}
|
|
535
|
+
interface AthenaChangePasswordRequest {
|
|
536
|
+
newPassword: string;
|
|
537
|
+
currentPassword: string;
|
|
538
|
+
revokeOtherSessions?: boolean;
|
|
539
|
+
}
|
|
540
|
+
interface AthenaUpdateUserRequest {
|
|
541
|
+
name?: string;
|
|
542
|
+
image?: string;
|
|
543
|
+
}
|
|
544
|
+
interface AthenaDeleteUserRequest {
|
|
545
|
+
callbackURL?: string;
|
|
546
|
+
password?: string;
|
|
547
|
+
token?: string;
|
|
548
|
+
}
|
|
549
|
+
interface AthenaDeleteUserCallbackRequest {
|
|
550
|
+
token?: string;
|
|
551
|
+
callbackURL?: string;
|
|
552
|
+
}
|
|
553
|
+
interface AthenaDeleteUserResponse {
|
|
554
|
+
success: boolean;
|
|
555
|
+
message?: string;
|
|
556
|
+
}
|
|
557
|
+
interface AthenaAuthEmailChangeResponse {
|
|
558
|
+
status: boolean;
|
|
559
|
+
message?: string | null;
|
|
560
|
+
}
|
|
561
|
+
interface AthenaLinkSocialRequest {
|
|
562
|
+
provider: string;
|
|
563
|
+
callbackURL?: string;
|
|
564
|
+
scopes?: string[] | string;
|
|
565
|
+
}
|
|
566
|
+
interface AthenaUnlinkAccountRequest {
|
|
567
|
+
providerId: string;
|
|
568
|
+
accountId?: string;
|
|
569
|
+
}
|
|
570
|
+
interface AthenaOAuthAccountTokenRequest {
|
|
571
|
+
providerId: string;
|
|
572
|
+
accountId?: string;
|
|
573
|
+
userId?: string;
|
|
574
|
+
}
|
|
575
|
+
interface AthenaOAuthTokenBundle {
|
|
576
|
+
tokenType?: string;
|
|
577
|
+
idToken?: string;
|
|
578
|
+
accessToken?: string;
|
|
579
|
+
refreshToken?: string;
|
|
580
|
+
accessTokenExpiresAt?: string;
|
|
581
|
+
refreshTokenExpiresAt?: string;
|
|
582
|
+
}
|
|
583
|
+
interface AthenaAuthLinkedAccount {
|
|
584
|
+
id: string;
|
|
585
|
+
provider?: string;
|
|
586
|
+
accountId?: string;
|
|
587
|
+
scopes?: string[];
|
|
588
|
+
createdAt?: string;
|
|
589
|
+
updatedAt?: string;
|
|
590
|
+
}
|
|
591
|
+
interface AthenaAuthRequestInput {
|
|
592
|
+
endpoint: AthenaAuthEndpointPath;
|
|
593
|
+
method?: AthenaAuthMethod;
|
|
594
|
+
body?: unknown;
|
|
595
|
+
query?: Record<string, AthenaAuthQueryValue>;
|
|
596
|
+
fetchOptions?: AthenaAuthCallOptions;
|
|
597
|
+
}
|
|
598
|
+
interface AthenaAuthCallOptions {
|
|
599
|
+
baseUrl?: string;
|
|
600
|
+
apiKey?: string;
|
|
601
|
+
bearerToken?: string;
|
|
602
|
+
headers?: Record<string, string>;
|
|
603
|
+
credentials?: AthenaAuthCredentials;
|
|
604
|
+
signal?: AbortSignal;
|
|
605
|
+
}
|
|
606
|
+
interface AthenaAuthFetchCompatibleInput {
|
|
607
|
+
fetchOptions?: AthenaAuthCallOptions;
|
|
608
|
+
}
|
|
609
|
+
interface AthenaAuthClientConfig extends AthenaAuthCallOptions {
|
|
610
|
+
fetch?: typeof fetch;
|
|
611
|
+
}
|
|
612
|
+
interface AthenaAuthSdkClient {
|
|
613
|
+
baseUrl: string;
|
|
614
|
+
request: <T = unknown>(input: AthenaAuthRequestInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<T>>;
|
|
615
|
+
signIn: {
|
|
616
|
+
email: (input: AthenaEmailSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
617
|
+
username: (input: AthenaUsernameSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
618
|
+
social: (input: AthenaSocialSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSocialRedirectResponse | AthenaAuthSignInResponse>>;
|
|
619
|
+
};
|
|
620
|
+
signUp: {
|
|
621
|
+
email: (input: AthenaEmailSignUpRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
622
|
+
};
|
|
623
|
+
signOut: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
|
|
624
|
+
logout: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
|
|
625
|
+
getSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSessionResponse>>;
|
|
626
|
+
listSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSession[]>>;
|
|
627
|
+
revokeSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
628
|
+
clearSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
629
|
+
revokeSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
630
|
+
clearSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
631
|
+
revokeOtherSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
632
|
+
clearOtherSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
633
|
+
forgetPassword: (input: AthenaForgetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
634
|
+
resetPassword: (input: AthenaResetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
635
|
+
resolveResetPasswordToken: (input: {
|
|
636
|
+
token: string;
|
|
637
|
+
callbackURL?: string;
|
|
638
|
+
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
639
|
+
token?: string;
|
|
640
|
+
}>>;
|
|
641
|
+
verifyEmail: (input: AthenaVerifyEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
642
|
+
user: AthenaAuthUser;
|
|
643
|
+
status: boolean;
|
|
644
|
+
}>>;
|
|
645
|
+
sendVerificationEmail: (input: AthenaSendVerificationEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
646
|
+
changeEmail: (input: AthenaChangeEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthEmailChangeResponse>>;
|
|
647
|
+
changePassword: (input: AthenaChangePasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
648
|
+
token?: string | null;
|
|
649
|
+
user: AthenaAuthUser;
|
|
650
|
+
}>>;
|
|
651
|
+
updateUser: (input: AthenaUpdateUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
652
|
+
deleteUser: (input?: AthenaDeleteUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaDeleteUserResponse>>;
|
|
653
|
+
deleteUserCallback: (input?: AthenaDeleteUserCallbackRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaDeleteUserResponse>>;
|
|
654
|
+
linkSocial: (input: AthenaLinkSocialRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSocialRedirectResponse>>;
|
|
655
|
+
listAccounts: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthLinkedAccount[]>>;
|
|
656
|
+
unlinkAccount: (input: AthenaUnlinkAccountRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
657
|
+
refreshToken: (input: AthenaOAuthAccountTokenRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaOAuthTokenBundle>>;
|
|
658
|
+
getAccessToken: (input: AthenaOAuthAccountTokenRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaOAuthTokenBundle>>;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare function createAuthClient(config?: AthenaAuthClientConfig): AthenaAuthSdkClient;
|
|
662
|
+
|
|
663
|
+
export { type AthenaAuthCallOptions, type AthenaAuthClientConfig, type AthenaAuthCredentials, type AthenaAuthEmailChangeResponse, type AthenaAuthEndpointPath, type AthenaAuthErrorCode, type AthenaAuthErrorDetails, type AthenaAuthLinkedAccount, type AthenaAuthMethod, type AthenaAuthQueryPrimitive, type AthenaAuthQueryValue, type AthenaAuthRequestInput, type AthenaAuthResult, type AthenaAuthRevokeSessionRequest, type AthenaAuthSdkClient, type AthenaAuthSession, type AthenaAuthSessionResponse, type AthenaAuthSignInResponse, type AthenaAuthSignOutResponse, type AthenaAuthSocialRedirectResponse, type AthenaAuthStatusResponse, type AthenaAuthUser, type AthenaChangeEmailRequest, type AthenaChangePasswordRequest, AthenaClient, AthenaConditionCastType, type AthenaDeleteUserCallbackRequest, type AthenaDeleteUserRequest, type AthenaDeleteUserResponse, type AthenaEmailSignInRequest, type AthenaEmailSignUpRequest, AthenaError, AthenaErrorCategory, AthenaErrorCode, type AthenaErrorInput, AthenaErrorKind, type AthenaForgetPasswordRequest, AthenaGatewayCallOptions, AthenaGatewayErrorDetails, AthenaGeneratorConfig, type AthenaLinkSocialRequest, type AthenaOAuthAccountTokenRequest, type AthenaOAuthTokenBundle, type AthenaOperationContext, type AthenaResetPasswordRequest, type AthenaResult, AthenaRpcCallOptions, type AthenaSdkClient, type AthenaSendVerificationEmailRequest, type AthenaSocialSignInRequest, type AthenaUnlinkAccountRequest, type AthenaUpdateUserRequest, type AthenaUsernameSignInRequest, type AthenaVerifyEmailRequest, BackendConfig, BackendType, DEFAULT_POSTGRES_SCHEMAS, DatabaseDef, GeneratedArtifacts, GeneratorExperimentalFlags, GeneratorProviderConfig, GeneratorSchemaSelection, type IntCoercionOptions, IntrospectionColumn, IntrospectionSnapshot, LoadGeneratorConfigOptions, LoadedGeneratorConfig, ModelAt, ModelDef, ModelMetadata, type NormalizedAthenaError, NormalizedAthenaGeneratorConfig, type PostgresIntrospectionProviderOptions, RegistryDef, type RequireAffectedOptions, type RetryBackoffStrategy, type RetryConfig, RowOf, type RpcOrderOptions, type RpcQueryBuilder, SchemaDef, SchemaIntrospectionProvider, type TableQueryBuilder, TenantContext, TenantKeyMap, type TypedAthenaClient, type TypedClientOptions, type UnwrapOneOptions, type UnwrapOptions, assertInt, coerceInt, createAuthClient, createClient, createPostgresIntrospectionProvider, createTypedClient, defineDatabase, defineGeneratorConfig, defineModel, defineRegistry, defineSchema, findGeneratorConfigPath, generateArtifactsFromSnapshot, identifier, isOk, loadGeneratorConfig, normalizeAthenaError, normalizeGeneratorConfig, normalizeSchemaSelection, requireAffected, requireSuccess, resolveGeneratorProvider, resolvePostgresColumnType, resolveProviderSchemas, unwrap, unwrapOne, unwrapRows, withRetry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-
|
|
4
|
-
import { S as SchemaDef, A as AnyModelDef, D as DatabaseDef, M as ModelMetadata, a as ModelDef, R as RegistryDef, T as TenantKeyMap, b as TenantContext, c as RowOf, d as ModelAt, e as SchemaIntrospectionProvider, f as AthenaGeneratorConfig, L as LoadGeneratorConfigOptions, g as LoadedGeneratorConfig, N as NormalizedAthenaGeneratorConfig, I as IntrospectionSnapshot, G as GeneratedArtifacts, h as IntrospectionColumn, i as GeneratorProviderConfig, j as GeneratorExperimentalFlags } from './pipeline-
|
|
5
|
-
export {
|
|
1
|
+
import { B as BackendConfig, a as BackendType, A as AthenaConditionValue, b as AthenaConditionCastType, c as AthenaConditionArrayValue, d as AthenaConditionOperator, e as AthenaGatewayCallOptions, f as AthenaGatewayErrorDetails, g as AthenaRpcCallOptions } from './types-wPA1Z4vQ.js';
|
|
2
|
+
export { h as AthenaGatewayErrorCode, i as AthenaRpcFilter, j as AthenaRpcFilterOperator, k as AthenaRpcOrder, l as AthenaRpcPayload, m as Backend } from './types-wPA1Z4vQ.js';
|
|
3
|
+
export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-Bcf5Sftv.js';
|
|
4
|
+
import { S as SchemaDef, A as AnyModelDef, D as DatabaseDef, M as ModelMetadata, a as ModelDef, R as RegistryDef, T as TenantKeyMap, b as TenantContext, c as RowOf, d as ModelAt, e as SchemaIntrospectionProvider, f as AthenaGeneratorConfig, L as LoadGeneratorConfigOptions, g as LoadedGeneratorConfig, N as NormalizedAthenaGeneratorConfig, I as IntrospectionSnapshot, G as GeneratedArtifacts, h as IntrospectionColumn, i as GeneratorProviderConfig, j as GeneratorExperimentalFlags, k as GeneratorSchemaSelection } from './pipeline-xQSjGbqF.js';
|
|
5
|
+
export { l as GeneratedArtifact, m as GeneratorArtifactKind, n as GeneratorFeatureFlags, o as GeneratorNamingConfig, p as GeneratorOutputConfig, q as GeneratorOutputTargets, r as InsertOf, s as IntrospectionInspectOptions, t as IntrospectionRelation, u as IntrospectionSchema, v as IntrospectionTable, w as IntrospectionTypeKind, x as ModelRelationKind, y as ModelRelationMetadata, z as NamingStyle, B as RunGeneratorOptions, C as RunGeneratorResult, E as TenantContextValue, U as UpdateOf, F as runSchemaGenerator } from './pipeline-xQSjGbqF.js';
|
|
6
6
|
|
|
7
7
|
interface AthenaResult<T> {
|
|
8
8
|
data: T | null;
|
|
@@ -365,6 +365,7 @@ declare function createTypedClient<TRegistry extends RegistryConstraint, TTenant
|
|
|
365
365
|
interface PostgresIntrospectionProviderOptions {
|
|
366
366
|
connectionString: string;
|
|
367
367
|
database?: string;
|
|
368
|
+
schemas?: readonly string[];
|
|
368
369
|
}
|
|
369
370
|
/**
|
|
370
371
|
* Creates a PostgreSQL-backed schema introspection provider.
|
|
@@ -397,4 +398,266 @@ declare function resolvePostgresColumnType(column: IntrospectionColumn): string;
|
|
|
397
398
|
*/
|
|
398
399
|
declare function resolveGeneratorProvider(providerConfig: GeneratorProviderConfig, experimentalFlags: GeneratorExperimentalFlags): SchemaIntrospectionProvider;
|
|
399
400
|
|
|
400
|
-
|
|
401
|
+
declare const DEFAULT_POSTGRES_SCHEMAS: readonly ["public"];
|
|
402
|
+
/**
|
|
403
|
+
* Normalizes schema selection from config or env-backed strings into a stable,
|
|
404
|
+
* deduplicated list. Empty selections fall back to PostgreSQL's public schema.
|
|
405
|
+
*/
|
|
406
|
+
declare function normalizeSchemaSelection(input: GeneratorSchemaSelection | undefined): string[];
|
|
407
|
+
/**
|
|
408
|
+
* Resolves the effective schema list for provider-backed generator runs.
|
|
409
|
+
*/
|
|
410
|
+
declare function resolveProviderSchemas(providerConfig: GeneratorProviderConfig): string[];
|
|
411
|
+
|
|
412
|
+
type AthenaAuthMethod = 'GET' | 'POST';
|
|
413
|
+
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
414
|
+
type AthenaAuthQueryPrimitive = string | number | boolean;
|
|
415
|
+
type AthenaAuthQueryValue = AthenaAuthQueryPrimitive | AthenaAuthQueryPrimitive[] | null | undefined;
|
|
416
|
+
type AthenaAuthEndpointPath = '/sign-in/social' | '/sign-in/email' | '/sign-in/username' | '/sign-up/email' | '/get-session' | '/sign-out' | '/forget-password' | '/reset-password' | '/verify-email' | '/send-verification-email' | '/change-email' | '/change-password' | '/update-user' | '/delete-user' | '/delete-user/callback' | '/list-sessions' | '/revoke-session' | '/revoke-sessions' | '/revoke-other-sessions' | '/link-social' | '/list-accounts' | '/unlink-account' | '/refresh-token' | '/get-access-token' | '/ok' | '/error' | `/reset-password/${string}`;
|
|
417
|
+
type AthenaAuthErrorCode = 'NETWORK_ERROR' | 'HTTP_ERROR' | 'INVALID_JSON' | 'UNKNOWN_ERROR';
|
|
418
|
+
interface AthenaAuthErrorDetails {
|
|
419
|
+
code: AthenaAuthErrorCode;
|
|
420
|
+
message: string;
|
|
421
|
+
status: number;
|
|
422
|
+
endpoint?: AthenaAuthEndpointPath;
|
|
423
|
+
method?: AthenaAuthMethod;
|
|
424
|
+
requestId?: string;
|
|
425
|
+
hint?: string;
|
|
426
|
+
cause?: string;
|
|
427
|
+
}
|
|
428
|
+
interface AthenaAuthResult<T = unknown> {
|
|
429
|
+
ok: boolean;
|
|
430
|
+
status: number;
|
|
431
|
+
data: T | null;
|
|
432
|
+
error: string | null;
|
|
433
|
+
errorDetails?: AthenaAuthErrorDetails | null;
|
|
434
|
+
raw: unknown;
|
|
435
|
+
}
|
|
436
|
+
interface AthenaAuthUser {
|
|
437
|
+
id: string;
|
|
438
|
+
email: string;
|
|
439
|
+
name?: string | null;
|
|
440
|
+
image?: string | null;
|
|
441
|
+
emailVerified?: boolean;
|
|
442
|
+
createdAt?: string;
|
|
443
|
+
updatedAt?: string;
|
|
444
|
+
username?: string | null;
|
|
445
|
+
displayUsername?: string | null;
|
|
446
|
+
twoFactorEnabled?: boolean;
|
|
447
|
+
role?: string | null;
|
|
448
|
+
banned?: boolean;
|
|
449
|
+
banReason?: string | null;
|
|
450
|
+
banExpires?: string | null;
|
|
451
|
+
}
|
|
452
|
+
interface AthenaAuthSession {
|
|
453
|
+
id: string;
|
|
454
|
+
expiresAt?: string;
|
|
455
|
+
token?: string;
|
|
456
|
+
createdAt?: string;
|
|
457
|
+
updatedAt?: string;
|
|
458
|
+
ipAddress?: string | null;
|
|
459
|
+
userAgent?: string | null;
|
|
460
|
+
userId?: string;
|
|
461
|
+
impersonatedBy?: string | null;
|
|
462
|
+
activeOrganizationId?: string | null;
|
|
463
|
+
}
|
|
464
|
+
interface AthenaAuthSessionResponse {
|
|
465
|
+
session: AthenaAuthSession;
|
|
466
|
+
user: AthenaAuthUser;
|
|
467
|
+
}
|
|
468
|
+
interface AthenaEmailSignInRequest {
|
|
469
|
+
email: string;
|
|
470
|
+
password: string;
|
|
471
|
+
callbackURL?: string;
|
|
472
|
+
rememberMe?: boolean;
|
|
473
|
+
}
|
|
474
|
+
interface AthenaUsernameSignInRequest {
|
|
475
|
+
username: string;
|
|
476
|
+
password: string;
|
|
477
|
+
rememberMe?: boolean;
|
|
478
|
+
}
|
|
479
|
+
interface AthenaSocialSignInRequest {
|
|
480
|
+
provider: string;
|
|
481
|
+
callbackURL?: string;
|
|
482
|
+
newUserCallbackURL?: string;
|
|
483
|
+
errorCallbackURL?: string;
|
|
484
|
+
disableRedirect?: boolean;
|
|
485
|
+
idToken?: string;
|
|
486
|
+
scopes?: string[] | string;
|
|
487
|
+
requestSignUp?: boolean;
|
|
488
|
+
loginHint?: string;
|
|
489
|
+
}
|
|
490
|
+
interface AthenaEmailSignUpRequest {
|
|
491
|
+
name: string;
|
|
492
|
+
email: string;
|
|
493
|
+
password: string;
|
|
494
|
+
callbackURL?: string;
|
|
495
|
+
}
|
|
496
|
+
interface AthenaAuthSignInResponse {
|
|
497
|
+
redirect: false;
|
|
498
|
+
token: string;
|
|
499
|
+
url?: string | null;
|
|
500
|
+
user: AthenaAuthUser;
|
|
501
|
+
}
|
|
502
|
+
interface AthenaAuthSocialRedirectResponse {
|
|
503
|
+
url: string;
|
|
504
|
+
redirect: boolean;
|
|
505
|
+
}
|
|
506
|
+
interface AthenaAuthSignOutResponse {
|
|
507
|
+
success: boolean;
|
|
508
|
+
}
|
|
509
|
+
interface AthenaAuthStatusResponse {
|
|
510
|
+
status: boolean;
|
|
511
|
+
}
|
|
512
|
+
interface AthenaAuthRevokeSessionRequest {
|
|
513
|
+
token: string;
|
|
514
|
+
}
|
|
515
|
+
interface AthenaForgetPasswordRequest {
|
|
516
|
+
email: string;
|
|
517
|
+
redirectTo?: string;
|
|
518
|
+
}
|
|
519
|
+
interface AthenaResetPasswordRequest {
|
|
520
|
+
newPassword: string;
|
|
521
|
+
token?: string;
|
|
522
|
+
}
|
|
523
|
+
interface AthenaVerifyEmailRequest {
|
|
524
|
+
token: string;
|
|
525
|
+
callbackURL?: string;
|
|
526
|
+
}
|
|
527
|
+
interface AthenaSendVerificationEmailRequest {
|
|
528
|
+
email: string;
|
|
529
|
+
callbackURL?: string;
|
|
530
|
+
}
|
|
531
|
+
interface AthenaChangeEmailRequest {
|
|
532
|
+
newEmail: string;
|
|
533
|
+
callbackURL?: string;
|
|
534
|
+
}
|
|
535
|
+
interface AthenaChangePasswordRequest {
|
|
536
|
+
newPassword: string;
|
|
537
|
+
currentPassword: string;
|
|
538
|
+
revokeOtherSessions?: boolean;
|
|
539
|
+
}
|
|
540
|
+
interface AthenaUpdateUserRequest {
|
|
541
|
+
name?: string;
|
|
542
|
+
image?: string;
|
|
543
|
+
}
|
|
544
|
+
interface AthenaDeleteUserRequest {
|
|
545
|
+
callbackURL?: string;
|
|
546
|
+
password?: string;
|
|
547
|
+
token?: string;
|
|
548
|
+
}
|
|
549
|
+
interface AthenaDeleteUserCallbackRequest {
|
|
550
|
+
token?: string;
|
|
551
|
+
callbackURL?: string;
|
|
552
|
+
}
|
|
553
|
+
interface AthenaDeleteUserResponse {
|
|
554
|
+
success: boolean;
|
|
555
|
+
message?: string;
|
|
556
|
+
}
|
|
557
|
+
interface AthenaAuthEmailChangeResponse {
|
|
558
|
+
status: boolean;
|
|
559
|
+
message?: string | null;
|
|
560
|
+
}
|
|
561
|
+
interface AthenaLinkSocialRequest {
|
|
562
|
+
provider: string;
|
|
563
|
+
callbackURL?: string;
|
|
564
|
+
scopes?: string[] | string;
|
|
565
|
+
}
|
|
566
|
+
interface AthenaUnlinkAccountRequest {
|
|
567
|
+
providerId: string;
|
|
568
|
+
accountId?: string;
|
|
569
|
+
}
|
|
570
|
+
interface AthenaOAuthAccountTokenRequest {
|
|
571
|
+
providerId: string;
|
|
572
|
+
accountId?: string;
|
|
573
|
+
userId?: string;
|
|
574
|
+
}
|
|
575
|
+
interface AthenaOAuthTokenBundle {
|
|
576
|
+
tokenType?: string;
|
|
577
|
+
idToken?: string;
|
|
578
|
+
accessToken?: string;
|
|
579
|
+
refreshToken?: string;
|
|
580
|
+
accessTokenExpiresAt?: string;
|
|
581
|
+
refreshTokenExpiresAt?: string;
|
|
582
|
+
}
|
|
583
|
+
interface AthenaAuthLinkedAccount {
|
|
584
|
+
id: string;
|
|
585
|
+
provider?: string;
|
|
586
|
+
accountId?: string;
|
|
587
|
+
scopes?: string[];
|
|
588
|
+
createdAt?: string;
|
|
589
|
+
updatedAt?: string;
|
|
590
|
+
}
|
|
591
|
+
interface AthenaAuthRequestInput {
|
|
592
|
+
endpoint: AthenaAuthEndpointPath;
|
|
593
|
+
method?: AthenaAuthMethod;
|
|
594
|
+
body?: unknown;
|
|
595
|
+
query?: Record<string, AthenaAuthQueryValue>;
|
|
596
|
+
fetchOptions?: AthenaAuthCallOptions;
|
|
597
|
+
}
|
|
598
|
+
interface AthenaAuthCallOptions {
|
|
599
|
+
baseUrl?: string;
|
|
600
|
+
apiKey?: string;
|
|
601
|
+
bearerToken?: string;
|
|
602
|
+
headers?: Record<string, string>;
|
|
603
|
+
credentials?: AthenaAuthCredentials;
|
|
604
|
+
signal?: AbortSignal;
|
|
605
|
+
}
|
|
606
|
+
interface AthenaAuthFetchCompatibleInput {
|
|
607
|
+
fetchOptions?: AthenaAuthCallOptions;
|
|
608
|
+
}
|
|
609
|
+
interface AthenaAuthClientConfig extends AthenaAuthCallOptions {
|
|
610
|
+
fetch?: typeof fetch;
|
|
611
|
+
}
|
|
612
|
+
interface AthenaAuthSdkClient {
|
|
613
|
+
baseUrl: string;
|
|
614
|
+
request: <T = unknown>(input: AthenaAuthRequestInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<T>>;
|
|
615
|
+
signIn: {
|
|
616
|
+
email: (input: AthenaEmailSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
617
|
+
username: (input: AthenaUsernameSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
618
|
+
social: (input: AthenaSocialSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSocialRedirectResponse | AthenaAuthSignInResponse>>;
|
|
619
|
+
};
|
|
620
|
+
signUp: {
|
|
621
|
+
email: (input: AthenaEmailSignUpRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
|
|
622
|
+
};
|
|
623
|
+
signOut: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
|
|
624
|
+
logout: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
|
|
625
|
+
getSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSessionResponse>>;
|
|
626
|
+
listSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSession[]>>;
|
|
627
|
+
revokeSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
628
|
+
clearSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
629
|
+
revokeSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
630
|
+
clearSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
631
|
+
revokeOtherSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
632
|
+
clearOtherSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
633
|
+
forgetPassword: (input: AthenaForgetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
634
|
+
resetPassword: (input: AthenaResetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
635
|
+
resolveResetPasswordToken: (input: {
|
|
636
|
+
token: string;
|
|
637
|
+
callbackURL?: string;
|
|
638
|
+
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
639
|
+
token?: string;
|
|
640
|
+
}>>;
|
|
641
|
+
verifyEmail: (input: AthenaVerifyEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
642
|
+
user: AthenaAuthUser;
|
|
643
|
+
status: boolean;
|
|
644
|
+
}>>;
|
|
645
|
+
sendVerificationEmail: (input: AthenaSendVerificationEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
646
|
+
changeEmail: (input: AthenaChangeEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthEmailChangeResponse>>;
|
|
647
|
+
changePassword: (input: AthenaChangePasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
|
|
648
|
+
token?: string | null;
|
|
649
|
+
user: AthenaAuthUser;
|
|
650
|
+
}>>;
|
|
651
|
+
updateUser: (input: AthenaUpdateUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
652
|
+
deleteUser: (input?: AthenaDeleteUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaDeleteUserResponse>>;
|
|
653
|
+
deleteUserCallback: (input?: AthenaDeleteUserCallbackRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaDeleteUserResponse>>;
|
|
654
|
+
linkSocial: (input: AthenaLinkSocialRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSocialRedirectResponse>>;
|
|
655
|
+
listAccounts: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthLinkedAccount[]>>;
|
|
656
|
+
unlinkAccount: (input: AthenaUnlinkAccountRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
657
|
+
refreshToken: (input: AthenaOAuthAccountTokenRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaOAuthTokenBundle>>;
|
|
658
|
+
getAccessToken: (input: AthenaOAuthAccountTokenRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaOAuthTokenBundle>>;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare function createAuthClient(config?: AthenaAuthClientConfig): AthenaAuthSdkClient;
|
|
662
|
+
|
|
663
|
+
export { type AthenaAuthCallOptions, type AthenaAuthClientConfig, type AthenaAuthCredentials, type AthenaAuthEmailChangeResponse, type AthenaAuthEndpointPath, type AthenaAuthErrorCode, type AthenaAuthErrorDetails, type AthenaAuthLinkedAccount, type AthenaAuthMethod, type AthenaAuthQueryPrimitive, type AthenaAuthQueryValue, type AthenaAuthRequestInput, type AthenaAuthResult, type AthenaAuthRevokeSessionRequest, type AthenaAuthSdkClient, type AthenaAuthSession, type AthenaAuthSessionResponse, type AthenaAuthSignInResponse, type AthenaAuthSignOutResponse, type AthenaAuthSocialRedirectResponse, type AthenaAuthStatusResponse, type AthenaAuthUser, type AthenaChangeEmailRequest, type AthenaChangePasswordRequest, AthenaClient, AthenaConditionCastType, type AthenaDeleteUserCallbackRequest, type AthenaDeleteUserRequest, type AthenaDeleteUserResponse, type AthenaEmailSignInRequest, type AthenaEmailSignUpRequest, AthenaError, AthenaErrorCategory, AthenaErrorCode, type AthenaErrorInput, AthenaErrorKind, type AthenaForgetPasswordRequest, AthenaGatewayCallOptions, AthenaGatewayErrorDetails, AthenaGeneratorConfig, type AthenaLinkSocialRequest, type AthenaOAuthAccountTokenRequest, type AthenaOAuthTokenBundle, type AthenaOperationContext, type AthenaResetPasswordRequest, type AthenaResult, AthenaRpcCallOptions, type AthenaSdkClient, type AthenaSendVerificationEmailRequest, type AthenaSocialSignInRequest, type AthenaUnlinkAccountRequest, type AthenaUpdateUserRequest, type AthenaUsernameSignInRequest, type AthenaVerifyEmailRequest, BackendConfig, BackendType, DEFAULT_POSTGRES_SCHEMAS, DatabaseDef, GeneratedArtifacts, GeneratorExperimentalFlags, GeneratorProviderConfig, GeneratorSchemaSelection, type IntCoercionOptions, IntrospectionColumn, IntrospectionSnapshot, LoadGeneratorConfigOptions, LoadedGeneratorConfig, ModelAt, ModelDef, ModelMetadata, type NormalizedAthenaError, NormalizedAthenaGeneratorConfig, type PostgresIntrospectionProviderOptions, RegistryDef, type RequireAffectedOptions, type RetryBackoffStrategy, type RetryConfig, RowOf, type RpcOrderOptions, type RpcQueryBuilder, SchemaDef, SchemaIntrospectionProvider, type TableQueryBuilder, TenantContext, TenantKeyMap, type TypedAthenaClient, type TypedClientOptions, type UnwrapOneOptions, type UnwrapOptions, assertInt, coerceInt, createAuthClient, createClient, createPostgresIntrospectionProvider, createTypedClient, defineDatabase, defineGeneratorConfig, defineModel, defineRegistry, defineSchema, findGeneratorConfigPath, generateArtifactsFromSnapshot, identifier, isOk, loadGeneratorConfig, normalizeAthenaError, normalizeGeneratorConfig, normalizeSchemaSelection, requireAffected, requireSuccess, resolveGeneratorProvider, resolvePostgresColumnType, resolveProviderSchemas, unwrap, unwrapOne, unwrapRows, withRetry };
|