@xylex-group/athena 2.8.2 → 2.10.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 +154 -64
- package/dist/browser.cjs +1550 -181
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +8 -7
- package/dist/browser.d.ts +8 -7
- package/dist/browser.js +1540 -182
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +1337 -67
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +3 -3
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +1337 -67
- package/dist/cli/index.js.map +1 -1
- package/dist/{model-form-Cx3wtvi8.d.ts → client-B7EQ_hPV.d.cts} +606 -118
- package/dist/{model-form-_ugfOXao.d.cts → client-BYii6dU9.d.ts} +606 -118
- package/dist/index.cjs +1540 -113
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +1530 -114
- package/dist/index.js.map +1 -1
- package/dist/model-form-ByvyyvxB.d.ts +96 -0
- package/dist/model-form-DACdBLYG.d.cts +96 -0
- package/dist/{react-email-CiiSVa9F.d.cts → module-DC96HJa3.d.cts} +130 -5
- package/dist/{react-email-WN8UU3AL.d.ts → module-DbHlxpeR.d.ts} +130 -5
- package/dist/next/client.cjs +8591 -0
- package/dist/next/client.cjs.map +1 -0
- package/dist/next/client.d.cts +24 -0
- package/dist/next/client.d.ts +24 -0
- package/dist/next/client.js +8589 -0
- package/dist/next/client.js.map +1 -0
- package/dist/next/server.cjs +8709 -0
- package/dist/next/server.cjs.map +1 -0
- package/dist/next/server.d.cts +52 -0
- package/dist/next/server.d.ts +52 -0
- package/dist/next/server.js +8706 -0
- package/dist/next/server.js.map +1 -0
- package/dist/{pipeline-BtD-Uo5X.d.cts → pipeline-CmUZsXsi.d.cts} +1 -1
- package/dist/{pipeline-yCIZNJHE.d.ts → pipeline-DZMsPxUg.d.ts} +1 -1
- package/dist/react.cjs +30 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +38 -10
- package/dist/react.d.ts +38 -10
- package/dist/react.js +30 -2
- package/dist/react.js.map +1 -1
- package/dist/shared-BMVGMnti.d.cts +35 -0
- package/dist/shared-DRptGBWP.d.ts +35 -0
- package/dist/{types-g8G6J0xE.d.cts → types-BeZIHduP.d.cts} +2 -1
- package/dist/{types-g8G6J0xE.d.ts → types-BeZIHduP.d.ts} +2 -1
- package/dist/{types-C2kiTt6-.d.ts → types-C-YvfgYh.d.cts} +26 -2
- package/dist/{types-89EfjLjV.d.cts → types-CRjDwmtJ.d.ts} +26 -2
- package/package.json +32 -14
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as AthenaModelTarget, H as RowOf, r as InsertOf, U as UpdateOf, i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, k as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, V as AthenaFetchPayload, W as AthenaGatewayResponse, X as AthenaInsertPayload, Y as AthenaUpdatePayload, Q as AthenaDeletePayload, o as AthenaRpcPayload,
|
|
1
|
+
import { j as AthenaModelTarget, H as RowOf, r as InsertOf, U as UpdateOf, i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, k as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, V as AthenaFetchPayload, W as AthenaGatewayResponse, X as AthenaInsertPayload, Y as AthenaUpdatePayload, Q as AthenaDeletePayload, o as AthenaRpcPayload, $ as AthenaQueryPayload, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, a0 as AthenaConditionValue, a1 as AthenaConditionArrayValue, R as RegistryDef, D as DatabaseDef, J as SchemaDef, N as AnyModelDef, C as ModelDef, G as ModelRelationMetadata, a2 as AthenaGatewayCondition, a3 as AthenaSortBy, l as AthenaRpcFilter, p as BackendConfig, q as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, a4 as AthenaConditionOperator } from './types-BeZIHduP.cjs';
|
|
2
2
|
|
|
3
3
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
4
4
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
5
5
|
type AthenaAuthQueryPrimitive = string | number | boolean;
|
|
6
6
|
type AthenaAuthQueryValue = AthenaAuthQueryPrimitive | AthenaAuthQueryPrimitive[] | null | undefined;
|
|
7
|
-
type AthenaAuthEndpointPath = '/sign-in/social' | '/sign-in/email' | '/sign-in/username' | '/sign-up/email' | '/get-session' | '/sign-out' | '/forget-password' | '/reset-password' | '/verify-email' | '/send-verification-email' | '/change-email' | '/change-email/verify' | '/change-password' | '/set-password' | '/update-user' | '/delete-user' | '/delete-user/verify' | '/delete-user/callback' | '/email-list' | '/email/list' | '/list-sessions' | '/revoke-session' | '/revoke-sessions' | '/revoke-other-sessions' | '/link-social' | '/list-accounts' | '/unlink-account' | '/refresh-token' | '/get-access-token' | '/two-factor/get-totp-uri' | '/two-factor/verify-totp' | '/two-factor/send-otp' | '/two-factor/verify-otp' | '/two-factor/verify-backup-code' | '/two-factor/generate-backup-codes' | '/two-factor/enable' | '/two-factor/disable' | '/passkey/generate-register-options' | '/passkey/generate-authenticate-options' | '/passkey/verify-registration' | '/passkey/verify-authentication' | '/passkey/list-user-passkeys' | '/passkey/delete-passkey' | '/passkey/update-passkey' | '/.well-known/webauthn' | '/admin/set-role' | '/admin/list-users' | '/admin/list-user-sessions' | '/admin/create-user' | '/admin/unban-user' | '/admin/ban-user' | '/admin/impersonate-user' | '/admin/stop-impersonating' | '/admin/revoke-user-session' | '/admin/revoke-user-sessions' | '/admin/remove-user' | '/admin/set-user-password' | '/admin/has-permission' | '/admin/api-key/create' | '/admin/athena-client/create' | '/admin/athena-client/list' | '/admin/audit-log/list' | '/admin/email/get' | '/admin/email/create' | '/admin/email/update' | '/admin/email/delete' | '/admin/email-failure/list' | '/admin/email-failure/get' | '/admin/email-failure/create' | '/admin/email-failure/update' | '/admin/email-failure/delete' | '/admin/email-template/get' | '/admin/email-template/create' | '/admin/email-template/delete' | '/admin/email-template/list' | '/admin/email-template/update' | '/admin/email/list' | '/api-key/create' | '/api-key/get' | '/api-key/update' | '/api-key/delete' | '/api-key/list' | '/api-key/verify' | '/api-key/delete-all-expired-api-keys' | '/organization/create' | '/organization/check-slug' | '/organization/list' | '/organization/set-active' | '/organization/get-full-organization' | '/organization/update' | '/organization/delete' | '/organization/invite-member' | '/organization/accept-invitation' | '/organization/cancel-invitation' | '/organization/reject-invitation' | '/organization/get-invitation' | '/organization/list-invitations' | '/organization/list-user-invitations' | '/organization/list-members' | '/organization/remove-member' | '/organization/update-member-role' | '/organization/get-active-member' | '/organization/leave' | '/organization/has-permission' | `/callback/${string}` | '/health' | '/ok' | '/error' | `/reset-password/${string}`;
|
|
7
|
+
type AthenaAuthEndpointPath = '/sign-in/social' | '/sign-in/email' | '/sign-in/username' | '/sign-up/email' | '/get-session' | '/sign-out' | '/forget-password' | '/reset-password' | '/verify-email' | '/send-verification-email' | '/change-email' | '/change-email/verify' | '/change-password' | '/set-password' | '/update-user' | '/delete-user' | '/delete-user/verify' | '/delete-user/callback' | '/email-list' | '/email/list' | '/list-sessions' | '/revoke-session' | '/revoke-sessions' | '/revoke-other-sessions' | '/link-social' | '/list-accounts' | '/unlink-account' | '/refresh-token' | '/get-access-token' | '/two-factor/get-totp-uri' | '/two-factor/verify-totp' | '/two-factor/send-otp' | '/two-factor/verify-otp' | '/two-factor/verify-backup-code' | '/two-factor/generate-backup-codes' | '/two-factor/enable' | '/two-factor/disable' | '/passkey/generate-register-options' | '/passkey/generate-authenticate-options' | '/passkey/verify-registration' | '/passkey/verify-authentication' | '/passkey/list-user-passkeys' | '/passkey/delete-passkey' | '/passkey/update-passkey' | '/.well-known/webauthn' | '/admin/set-role' | '/admin/list-users' | '/admin/list-user-sessions' | '/admin/create-user' | '/admin/unban-user' | '/admin/ban-user' | '/admin/impersonate-user' | '/admin/stop-impersonating' | '/admin/revoke-user-session' | '/admin/revoke-user-sessions' | '/admin/remove-user' | '/admin/set-user-password' | '/admin/has-permission' | '/admin/api-key/create' | '/admin/athena-client/create' | '/admin/athena-client/list' | '/admin/audit-log/list' | '/admin/email/get' | '/admin/email/create' | '/admin/email/update' | '/admin/email/delete' | '/admin/email-failure/list' | '/admin/email-failure/get' | '/admin/email-failure/create' | '/admin/email-failure/update' | '/admin/email-failure/delete' | '/admin/email-template/get' | '/admin/email-template/create' | '/admin/email-template/delete' | '/admin/email-template/list' | '/admin/email-template/update' | '/admin/email-template/send' | '/admin/email-event-type/list' | '/admin/email/list' | '/api-key/create' | '/api-key/get' | '/api-key/update' | '/api-key/delete' | '/api-key/list' | '/api-key/verify' | '/api-key/delete-all-expired-api-keys' | '/organization/create' | '/organization/check-slug' | '/organization/list' | '/organization/set-active' | '/organization/get-full-organization' | '/organization/update' | '/organization/delete' | '/organization/invite-member' | '/organization/accept-invitation' | '/organization/cancel-invitation' | '/organization/reject-invitation' | '/organization/get-invitation' | '/organization/list-invitations' | '/organization/list-user-invitations' | '/organization/list-members' | '/organization/remove-member' | '/organization/update-member-role' | '/organization/get-active-member' | '/organization/leave' | '/organization/has-permission' | `/callback/${string}` | '/health' | '/ok' | '/error' | `/reset-password/${string}`;
|
|
8
8
|
type AthenaAuthErrorCode = 'NETWORK_ERROR' | 'HTTP_ERROR' | 'INVALID_JSON' | 'UNKNOWN_ERROR';
|
|
9
9
|
interface AthenaAuthErrorDetails {
|
|
10
10
|
code: AthenaAuthErrorCode;
|
|
@@ -56,6 +56,9 @@ interface AthenaAuthSessionResponse {
|
|
|
56
56
|
session: AthenaAuthSession;
|
|
57
57
|
user: AthenaAuthUser;
|
|
58
58
|
}
|
|
59
|
+
interface AthenaAuthGetUserResponse {
|
|
60
|
+
user: AthenaAuthUser | null;
|
|
61
|
+
}
|
|
59
62
|
interface AthenaAuthOrganization {
|
|
60
63
|
id: string;
|
|
61
64
|
name: string;
|
|
@@ -652,43 +655,77 @@ interface AthenaAdminEmailFailureDeleteRequest {
|
|
|
652
655
|
interface AthenaAdminEmailTemplateListQuery {
|
|
653
656
|
limit?: number;
|
|
654
657
|
offset?: number;
|
|
655
|
-
|
|
658
|
+
template_key?: string;
|
|
659
|
+
event_type?: string;
|
|
656
660
|
locale?: string;
|
|
657
|
-
|
|
661
|
+
is_active?: boolean;
|
|
662
|
+
}
|
|
663
|
+
interface AthenaAuthEmailTemplateVariableBinding {
|
|
664
|
+
name: string;
|
|
665
|
+
source: string;
|
|
666
|
+
required?: boolean;
|
|
667
|
+
}
|
|
668
|
+
interface AthenaAuthEmailTemplateAttachment {
|
|
669
|
+
file_url: string;
|
|
670
|
+
filename?: string;
|
|
671
|
+
}
|
|
672
|
+
interface AthenaAdminEmailTemplateRecord {
|
|
673
|
+
id?: string;
|
|
674
|
+
template_key: string;
|
|
675
|
+
event_type?: string | null;
|
|
676
|
+
subject_template?: string | null;
|
|
677
|
+
text_template?: string | null;
|
|
678
|
+
html_template?: string | null;
|
|
679
|
+
variables?: string[];
|
|
680
|
+
variable_bindings?: AthenaAuthEmailTemplateVariableBinding[];
|
|
681
|
+
attachments?: AthenaAuthEmailTemplateAttachment[];
|
|
682
|
+
attachment_failure_mode?: 'fail' | 'skip' | null;
|
|
683
|
+
is_active?: boolean;
|
|
684
|
+
metadata?: AthenaAuthLooseRecord;
|
|
685
|
+
created_at?: string;
|
|
686
|
+
updated_at?: string;
|
|
658
687
|
}
|
|
659
688
|
interface AthenaAdminEmailTemplateListResponse {
|
|
660
689
|
total?: number;
|
|
661
690
|
limit?: number;
|
|
662
691
|
offset?: number;
|
|
663
|
-
|
|
692
|
+
email_templates?: AthenaAdminEmailTemplateRecord[];
|
|
664
693
|
}
|
|
665
694
|
interface AthenaAdminEmailTemplateCreateRequest {
|
|
666
|
-
|
|
695
|
+
template_key: string;
|
|
696
|
+
event_type?: string;
|
|
667
697
|
locale?: string;
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
698
|
+
subject_template?: string;
|
|
699
|
+
text_template?: string;
|
|
700
|
+
html_template?: string;
|
|
671
701
|
/**
|
|
672
|
-
* Optional React Email render input. When provided, `
|
|
702
|
+
* Optional React Email render input. When provided, `html_template` is derived automatically.
|
|
673
703
|
*/
|
|
674
704
|
react?: AthenaAuthReactEmailRenderInput;
|
|
675
705
|
variables?: string[];
|
|
676
|
-
|
|
706
|
+
variable_bindings?: AthenaAuthEmailTemplateVariableBinding[];
|
|
707
|
+
attachments?: string | AthenaAuthEmailTemplateAttachment | AthenaAuthEmailTemplateAttachment[];
|
|
708
|
+
attachment_failure_mode?: 'fail' | 'skip';
|
|
709
|
+
is_active?: boolean;
|
|
677
710
|
metadata?: AthenaAuthLooseRecord;
|
|
678
711
|
}
|
|
679
712
|
interface AthenaAdminEmailTemplateUpdateRequest {
|
|
680
713
|
id: string;
|
|
681
|
-
|
|
714
|
+
template_key?: string;
|
|
715
|
+
event_type?: string;
|
|
682
716
|
locale?: string;
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
717
|
+
subject_template?: string;
|
|
718
|
+
text_template?: string | null;
|
|
719
|
+
html_template?: string | null;
|
|
686
720
|
/**
|
|
687
|
-
* Optional React Email render input. When provided, `
|
|
721
|
+
* Optional React Email render input. When provided, `html_template` is derived automatically.
|
|
688
722
|
*/
|
|
689
723
|
react?: AthenaAuthReactEmailRenderInput;
|
|
690
724
|
variables?: string[];
|
|
691
|
-
|
|
725
|
+
variable_bindings?: AthenaAuthEmailTemplateVariableBinding[];
|
|
726
|
+
attachments?: string | AthenaAuthEmailTemplateAttachment | AthenaAuthEmailTemplateAttachment[];
|
|
727
|
+
attachment_failure_mode?: 'fail' | 'skip';
|
|
728
|
+
is_active?: boolean;
|
|
692
729
|
metadata?: AthenaAuthLooseRecord;
|
|
693
730
|
}
|
|
694
731
|
interface AthenaAdminEmailTemplateDeleteRequest {
|
|
@@ -698,7 +735,37 @@ interface AthenaAdminEmailTemplateGetQuery {
|
|
|
698
735
|
id: string;
|
|
699
736
|
}
|
|
700
737
|
interface AthenaAdminEmailTemplateGetResponse {
|
|
701
|
-
|
|
738
|
+
email_template?: AthenaAdminEmailTemplateRecord;
|
|
739
|
+
}
|
|
740
|
+
interface AthenaAdminEmailTemplateSendRequest {
|
|
741
|
+
template_id: string;
|
|
742
|
+
recipient_email: string;
|
|
743
|
+
render_variables?: AthenaAuthLooseRecord;
|
|
744
|
+
user_id?: string;
|
|
745
|
+
organization_id?: string;
|
|
746
|
+
session_token?: string;
|
|
747
|
+
metadata?: AthenaAuthLooseRecord;
|
|
748
|
+
}
|
|
749
|
+
interface AthenaAdminEmailTemplateSendResponse {
|
|
750
|
+
success: boolean;
|
|
751
|
+
flow?: string | null;
|
|
752
|
+
template_id?: string | null;
|
|
753
|
+
template_key?: string | null;
|
|
754
|
+
event_type?: string | null;
|
|
755
|
+
recipient_email?: string | null;
|
|
756
|
+
subject?: string | null;
|
|
757
|
+
attachment_count?: number | null;
|
|
758
|
+
delivery_metadata?: AthenaAuthLooseRecord | null;
|
|
759
|
+
email_send_failure_id?: string | null;
|
|
760
|
+
error?: string | null;
|
|
761
|
+
}
|
|
762
|
+
interface AthenaAdminEmailEventTypeRecord {
|
|
763
|
+
event_type: string;
|
|
764
|
+
label?: string | null;
|
|
765
|
+
description?: string | null;
|
|
766
|
+
}
|
|
767
|
+
interface AthenaAdminEmailEventTypeListResponse {
|
|
768
|
+
event_types?: AthenaAdminEmailEventTypeRecord[];
|
|
702
769
|
}
|
|
703
770
|
interface AthenaApiKeyCreateRequest {
|
|
704
771
|
name?: string;
|
|
@@ -858,6 +925,9 @@ interface AthenaAuthCallOptions {
|
|
|
858
925
|
baseUrl?: string;
|
|
859
926
|
apiKey?: string;
|
|
860
927
|
bearerToken?: string;
|
|
928
|
+
cookie?: string;
|
|
929
|
+
sessionToken?: string;
|
|
930
|
+
forceNoCache?: boolean;
|
|
861
931
|
headers?: Record<string, string>;
|
|
862
932
|
credentials?: AthenaAuthCredentials;
|
|
863
933
|
signal?: AbortSignal;
|
|
@@ -869,6 +939,20 @@ interface AthenaAuthClientConfig extends AthenaAuthCallOptions {
|
|
|
869
939
|
fetch?: typeof fetch;
|
|
870
940
|
reactEmail?: AthenaAuthReactEmailConfig;
|
|
871
941
|
}
|
|
942
|
+
type AthenaAuthGuardReason = 'unauthorized' | 'forbidden' | 'upstream_error';
|
|
943
|
+
interface AthenaAuthGuardSuccess {
|
|
944
|
+
ok: true;
|
|
945
|
+
session: AthenaAuthSessionResponse;
|
|
946
|
+
}
|
|
947
|
+
interface AthenaAuthGuardFailure {
|
|
948
|
+
ok: false;
|
|
949
|
+
reason: AthenaAuthGuardReason;
|
|
950
|
+
status: number;
|
|
951
|
+
error: string;
|
|
952
|
+
sessionResult?: AthenaAuthResult<AthenaAuthSessionResponse>;
|
|
953
|
+
permissionResult?: AthenaAuthResult<AthenaAdminHasPermissionResponse>;
|
|
954
|
+
}
|
|
955
|
+
type AthenaAuthGuardResult = AthenaAuthGuardSuccess | AthenaAuthGuardFailure;
|
|
872
956
|
interface AthenaAuthEmailTemplateDefinition<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> {
|
|
873
957
|
component: AthenaAuthReactEmailComponent<TProps>;
|
|
874
958
|
templateKey?: string;
|
|
@@ -943,6 +1027,8 @@ interface AthenaAuthOrganizationBindings {
|
|
|
943
1027
|
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganizationInvitation[]>>;
|
|
944
1028
|
/** Check organization-level permissions for the current principal. Route: `POST /organization/has-permission`. */
|
|
945
1029
|
hasPermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminHasPermissionResponse>>;
|
|
1030
|
+
/** Resolve the current session and require organization-level permissions in one call. */
|
|
1031
|
+
requirePermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
|
|
946
1032
|
invitation: {
|
|
947
1033
|
/** Cancel an organization invitation. Route: `POST /organization/cancel-invitation`. */
|
|
948
1034
|
cancel: (input: AthenaAuthOrganizationInvitationActionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
@@ -977,6 +1063,10 @@ interface AthenaAuthOrganizationBindings {
|
|
|
977
1063
|
interface AthenaAuthBindings {
|
|
978
1064
|
/** Get current session. Route: `GET /get-session`. */
|
|
979
1065
|
getSession: AthenaAuthSdkClient['getSession'];
|
|
1066
|
+
/** Get current user as a Better Auth-style compatibility projection. Route: `GET /get-session`. */
|
|
1067
|
+
getUser: AthenaAuthSdkClient['getUser'];
|
|
1068
|
+
/** Resolve the current session into a typed guard result. */
|
|
1069
|
+
requireSession: AthenaAuthSdkClient['requireSession'];
|
|
980
1070
|
/** Sign out current session. Route: `POST /sign-out`. */
|
|
981
1071
|
signOut: AthenaAuthSdkClient['signOut'];
|
|
982
1072
|
/** Trigger password reset email flow. Route: `POST /forget-password`. */
|
|
@@ -1122,6 +1212,8 @@ interface AthenaAuthBindings {
|
|
|
1122
1212
|
};
|
|
1123
1213
|
/** Check permission under admin policy. Route: `POST /admin/has-permission`. */
|
|
1124
1214
|
hasPermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminHasPermissionResponse>>;
|
|
1215
|
+
/** Resolve the current session and require admin permissions in one call. */
|
|
1216
|
+
requirePermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
|
|
1125
1217
|
apiKey: {
|
|
1126
1218
|
/** Create admin-scoped API key. Route: `POST /admin/api-key/create`. */
|
|
1127
1219
|
create: (input?: AthenaAdminApiKeyCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminApiKeyCreateResponse>>;
|
|
@@ -1179,11 +1271,17 @@ interface AthenaAuthBindings {
|
|
|
1179
1271
|
query: AthenaAdminEmailTemplateGetQuery;
|
|
1180
1272
|
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateGetResponse>>;
|
|
1181
1273
|
/** Create email template. Route: `POST /admin/email-template/create`. */
|
|
1182
|
-
create: (input: AthenaAdminEmailTemplateCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<
|
|
1274
|
+
create: (input: AthenaAdminEmailTemplateCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateRecord>>;
|
|
1183
1275
|
/** Update email template. Route: `POST /admin/email-template/update`. */
|
|
1184
|
-
update: (input: AthenaAdminEmailTemplateUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<
|
|
1276
|
+
update: (input: AthenaAdminEmailTemplateUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateRecord>>;
|
|
1185
1277
|
/** Delete email template. Route: `POST /admin/email-template/delete`. */
|
|
1186
1278
|
delete: (input: AthenaAdminEmailTemplateDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1279
|
+
/** Send one stored email template. Route: `POST /admin/email-template/send`. */
|
|
1280
|
+
send: (input: AthenaAdminEmailTemplateSendRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateSendResponse>>;
|
|
1281
|
+
};
|
|
1282
|
+
eventType: {
|
|
1283
|
+
/** List canonical admin email event types. Route: `GET /admin/email-event-type/list`. */
|
|
1284
|
+
list: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailEventTypeListResponse>>;
|
|
1187
1285
|
};
|
|
1188
1286
|
};
|
|
1189
1287
|
emailTemplate: {
|
|
@@ -1192,7 +1290,7 @@ interface AthenaAuthBindings {
|
|
|
1192
1290
|
query: AthenaAdminEmailTemplateGetQuery;
|
|
1193
1291
|
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateGetResponse>>;
|
|
1194
1292
|
/** Create email template. Route: `POST /admin/email-template/create`. */
|
|
1195
|
-
create: (input: AthenaAdminEmailTemplateCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<
|
|
1293
|
+
create: (input: AthenaAdminEmailTemplateCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateRecord>>;
|
|
1196
1294
|
/** Delete email template. Route: `POST /admin/email-template/delete`. */
|
|
1197
1295
|
delete: (input: AthenaAdminEmailTemplateDeleteRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminSuccessResponse>>;
|
|
1198
1296
|
/** List email templates. Route: `GET /admin/email-template/list`. */
|
|
@@ -1200,7 +1298,13 @@ interface AthenaAuthBindings {
|
|
|
1200
1298
|
query?: AthenaAdminEmailTemplateListQuery;
|
|
1201
1299
|
} & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateListResponse>>;
|
|
1202
1300
|
/** Update email template. Route: `POST /admin/email-template/update`. */
|
|
1203
|
-
update: (input: AthenaAdminEmailTemplateUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<
|
|
1301
|
+
update: (input: AthenaAdminEmailTemplateUpdateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateRecord>>;
|
|
1302
|
+
/** Send one stored email template. Route: `POST /admin/email-template/send`. */
|
|
1303
|
+
send: (input: AthenaAdminEmailTemplateSendRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailTemplateSendResponse>>;
|
|
1304
|
+
};
|
|
1305
|
+
emailEventType: {
|
|
1306
|
+
/** List canonical admin email event types. Route: `GET /admin/email-event-type/list`. */
|
|
1307
|
+
list: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminEmailEventTypeListResponse>>;
|
|
1204
1308
|
};
|
|
1205
1309
|
};
|
|
1206
1310
|
apiKey: {
|
|
@@ -1254,6 +1358,8 @@ interface AthenaAuthSdkClient {
|
|
|
1254
1358
|
signOut: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
|
|
1255
1359
|
logout: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
|
|
1256
1360
|
getSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSessionResponse>>;
|
|
1361
|
+
getUser: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthGetUserResponse>>;
|
|
1362
|
+
requireSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
|
|
1257
1363
|
listSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSession[]>>;
|
|
1258
1364
|
revokeSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
1259
1365
|
clearSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
|
|
@@ -1463,6 +1569,10 @@ declare function coerceInt(value: unknown, options?: IntCoercionOptions): number
|
|
|
1463
1569
|
*/
|
|
1464
1570
|
declare function assertInt(value: unknown, label?: string, options?: IntCoercionOptions): number;
|
|
1465
1571
|
/**
|
|
1572
|
+
* @deprecated Prefer `experimental.retryReads` for standard SDK-managed read
|
|
1573
|
+
* retries, or a call-site retry policy when you need custom write/replay
|
|
1574
|
+
* behavior. This helper is retained for compatibility.
|
|
1575
|
+
*
|
|
1466
1576
|
* Retries an async operation with configurable backoff and retry policy.
|
|
1467
1577
|
*
|
|
1468
1578
|
* `retries` represents additional attempts after the first failure.
|
|
@@ -2935,6 +3045,380 @@ interface AthenaStorageModule extends AthenaStorageBaseModule {
|
|
|
2935
3045
|
declare function createAthenaStorageError(input: AthenaStorageErrorInput): AthenaStorageError;
|
|
2936
3046
|
declare function createStorageModule(gateway: AthenaGatewayClient, runtimeOptions?: AthenaStorageClientConfig): AthenaStorageModule;
|
|
2937
3047
|
|
|
3048
|
+
type AthenaChatRoomKind = 'dm' | 'group' | 'channel';
|
|
3049
|
+
type AthenaChatMemberRole = 'owner' | 'admin' | 'member';
|
|
3050
|
+
interface AthenaChatAttachmentInput {
|
|
3051
|
+
file_id: string;
|
|
3052
|
+
ordinal: number;
|
|
3053
|
+
}
|
|
3054
|
+
interface AthenaChatAttachmentView extends AthenaChatAttachmentInput {
|
|
3055
|
+
file_name?: string | null;
|
|
3056
|
+
original_name?: string | null;
|
|
3057
|
+
content_type?: string | null;
|
|
3058
|
+
mime_type?: string | null;
|
|
3059
|
+
extension?: string | null;
|
|
3060
|
+
size_bytes?: number | null;
|
|
3061
|
+
status?: string | null;
|
|
3062
|
+
visibility?: string | null;
|
|
3063
|
+
file_url?: string | null;
|
|
3064
|
+
bucket?: string | null;
|
|
3065
|
+
storage_key?: string | null;
|
|
3066
|
+
authorized_url_path: string;
|
|
3067
|
+
proxy_url_path: string;
|
|
3068
|
+
public_url_path: string;
|
|
3069
|
+
}
|
|
3070
|
+
interface AthenaChatReactionCount {
|
|
3071
|
+
emoji: string;
|
|
3072
|
+
count: number;
|
|
3073
|
+
reacted: boolean;
|
|
3074
|
+
}
|
|
3075
|
+
interface AthenaChatReactionSummary {
|
|
3076
|
+
message_id: string;
|
|
3077
|
+
reactions: AthenaChatReactionCount[];
|
|
3078
|
+
}
|
|
3079
|
+
interface AthenaChatMessage {
|
|
3080
|
+
id: string;
|
|
3081
|
+
room_id: string;
|
|
3082
|
+
room_seq: number;
|
|
3083
|
+
sender_id: string;
|
|
3084
|
+
client_message_id?: string | null;
|
|
3085
|
+
body_text?: string | null;
|
|
3086
|
+
body_json?: Record<string, unknown> | null;
|
|
3087
|
+
reply_to_message_id?: string | null;
|
|
3088
|
+
created_at: string;
|
|
3089
|
+
edited_at?: string | null;
|
|
3090
|
+
deleted_at?: string | null;
|
|
3091
|
+
metadata_json?: Record<string, unknown> | null;
|
|
3092
|
+
attachments: AthenaChatAttachmentView[];
|
|
3093
|
+
reactions: AthenaChatReactionCount[];
|
|
3094
|
+
}
|
|
3095
|
+
interface AthenaChatMessagePage {
|
|
3096
|
+
items: AthenaChatMessage[];
|
|
3097
|
+
next_before_seq?: number | null;
|
|
3098
|
+
}
|
|
3099
|
+
interface AthenaChatRoom {
|
|
3100
|
+
id: string;
|
|
3101
|
+
organization_id: string;
|
|
3102
|
+
kind: AthenaChatRoomKind;
|
|
3103
|
+
title?: string | null;
|
|
3104
|
+
created_by: string;
|
|
3105
|
+
created_at: string;
|
|
3106
|
+
updated_at: string;
|
|
3107
|
+
archived_at?: string | null;
|
|
3108
|
+
last_message_id?: string | null;
|
|
3109
|
+
last_message_seq: number;
|
|
3110
|
+
last_message_at?: string | null;
|
|
3111
|
+
version: number;
|
|
3112
|
+
}
|
|
3113
|
+
interface AthenaChatRoomPage {
|
|
3114
|
+
items: AthenaChatRoom[];
|
|
3115
|
+
}
|
|
3116
|
+
interface AthenaChatMember {
|
|
3117
|
+
room_id: string;
|
|
3118
|
+
user_id: string;
|
|
3119
|
+
role: AthenaChatMemberRole;
|
|
3120
|
+
joined_at: string;
|
|
3121
|
+
last_read_seq: number;
|
|
3122
|
+
last_read_message_id?: string | null;
|
|
3123
|
+
muted: boolean;
|
|
3124
|
+
notification_mode?: string | null;
|
|
3125
|
+
hidden_at?: string | null;
|
|
3126
|
+
}
|
|
3127
|
+
interface AthenaChatReadCursor {
|
|
3128
|
+
room_id: string;
|
|
3129
|
+
user_id: string;
|
|
3130
|
+
last_read_seq: number;
|
|
3131
|
+
last_read_message_id?: string | null;
|
|
3132
|
+
}
|
|
3133
|
+
interface AthenaChatDeleteResult {
|
|
3134
|
+
ok: boolean;
|
|
3135
|
+
message_id: string;
|
|
3136
|
+
}
|
|
3137
|
+
interface AthenaChatRemoveResult {
|
|
3138
|
+
ok: boolean;
|
|
3139
|
+
user_id: string;
|
|
3140
|
+
}
|
|
3141
|
+
interface AthenaChatSearchHit {
|
|
3142
|
+
room_id: string;
|
|
3143
|
+
message: AthenaChatMessage;
|
|
3144
|
+
}
|
|
3145
|
+
interface AthenaChatSearchPage {
|
|
3146
|
+
items: AthenaChatSearchHit[];
|
|
3147
|
+
}
|
|
3148
|
+
interface AthenaChatCreateRoomRequest {
|
|
3149
|
+
kind: AthenaChatRoomKind;
|
|
3150
|
+
title?: string | null;
|
|
3151
|
+
member_user_ids?: string[];
|
|
3152
|
+
}
|
|
3153
|
+
interface AthenaChatUpdateRoomRequest {
|
|
3154
|
+
title?: string | null;
|
|
3155
|
+
}
|
|
3156
|
+
interface AthenaChatSendMessageRequest {
|
|
3157
|
+
client_message_id?: string | null;
|
|
3158
|
+
body_text?: string | null;
|
|
3159
|
+
body_json?: Record<string, unknown> | null;
|
|
3160
|
+
reply_to_message_id?: string | null;
|
|
3161
|
+
metadata_json?: Record<string, unknown> | null;
|
|
3162
|
+
attachments?: AthenaChatAttachmentInput[];
|
|
3163
|
+
}
|
|
3164
|
+
interface AthenaChatEditMessageRequest {
|
|
3165
|
+
body_text?: string | null;
|
|
3166
|
+
body_json?: Record<string, unknown> | null;
|
|
3167
|
+
metadata_json?: Record<string, unknown> | null;
|
|
3168
|
+
}
|
|
3169
|
+
interface AthenaChatMarkReadUpToRequest {
|
|
3170
|
+
message_id?: string | null;
|
|
3171
|
+
seq?: number | null;
|
|
3172
|
+
}
|
|
3173
|
+
interface AthenaChatAddMembersRequest {
|
|
3174
|
+
user_ids: string[];
|
|
3175
|
+
role?: AthenaChatMemberRole | null;
|
|
3176
|
+
}
|
|
3177
|
+
interface AthenaChatAddReactionRequest {
|
|
3178
|
+
emoji: string;
|
|
3179
|
+
}
|
|
3180
|
+
interface AthenaChatSearchMessagesRequest {
|
|
3181
|
+
query: string;
|
|
3182
|
+
room_id?: string | null;
|
|
3183
|
+
limit?: number | null;
|
|
3184
|
+
}
|
|
3185
|
+
interface AthenaChatRoomCreatedResponse {
|
|
3186
|
+
status: 'success';
|
|
3187
|
+
message: string;
|
|
3188
|
+
data: AthenaChatRoom;
|
|
3189
|
+
}
|
|
3190
|
+
interface AthenaChatMessageCreatedResponse {
|
|
3191
|
+
status: 'success';
|
|
3192
|
+
message: string;
|
|
3193
|
+
data: AthenaChatMessage;
|
|
3194
|
+
}
|
|
3195
|
+
interface AthenaChatListRoomsQuery {
|
|
3196
|
+
limit?: number;
|
|
3197
|
+
offset?: number;
|
|
3198
|
+
include_archived?: boolean;
|
|
3199
|
+
}
|
|
3200
|
+
interface AthenaChatListMessagesQuery {
|
|
3201
|
+
limit?: number;
|
|
3202
|
+
before_seq?: number;
|
|
3203
|
+
after_seq?: number;
|
|
3204
|
+
}
|
|
3205
|
+
interface AthenaChatRealtimeInfoResponse {
|
|
3206
|
+
status?: string;
|
|
3207
|
+
message?: string;
|
|
3208
|
+
data?: {
|
|
3209
|
+
transport?: string;
|
|
3210
|
+
path?: string;
|
|
3211
|
+
api_base?: string;
|
|
3212
|
+
actions?: string[];
|
|
3213
|
+
};
|
|
3214
|
+
}
|
|
3215
|
+
interface AthenaChatResumeRoomCursor {
|
|
3216
|
+
room_id: string;
|
|
3217
|
+
last_seq: number;
|
|
3218
|
+
}
|
|
3219
|
+
interface AthenaChatPresenceUser {
|
|
3220
|
+
user_id: string;
|
|
3221
|
+
state: string;
|
|
3222
|
+
active_room_id?: string | null;
|
|
3223
|
+
at?: string | null;
|
|
3224
|
+
}
|
|
3225
|
+
interface AthenaChatWsAuthHelloCommand {
|
|
3226
|
+
type: 'auth.hello';
|
|
3227
|
+
token?: string | null;
|
|
3228
|
+
room_subscriptions?: string[] | null;
|
|
3229
|
+
}
|
|
3230
|
+
interface AthenaChatWsSubscribeCommand {
|
|
3231
|
+
type: 'chat.subscribe';
|
|
3232
|
+
room_id: string;
|
|
3233
|
+
from_seq?: number | null;
|
|
3234
|
+
}
|
|
3235
|
+
interface AthenaChatWsUnsubscribeCommand {
|
|
3236
|
+
type: 'chat.unsubscribe';
|
|
3237
|
+
room_id: string;
|
|
3238
|
+
}
|
|
3239
|
+
interface AthenaChatWsResumeCommand {
|
|
3240
|
+
type: 'chat.resume';
|
|
3241
|
+
rooms: AthenaChatResumeRoomCursor[];
|
|
3242
|
+
}
|
|
3243
|
+
interface AthenaChatWsTypingStartCommand {
|
|
3244
|
+
type: 'chat.typing.start';
|
|
3245
|
+
room_id: string;
|
|
3246
|
+
}
|
|
3247
|
+
interface AthenaChatWsTypingStopCommand {
|
|
3248
|
+
type: 'chat.typing.stop';
|
|
3249
|
+
room_id: string;
|
|
3250
|
+
}
|
|
3251
|
+
interface AthenaChatWsPresenceHeartbeatCommand {
|
|
3252
|
+
type: 'chat.presence.heartbeat';
|
|
3253
|
+
active_room_id?: string | null;
|
|
3254
|
+
}
|
|
3255
|
+
interface AthenaChatWsReadUpToCommand {
|
|
3256
|
+
type: 'chat.read.up_to';
|
|
3257
|
+
room_id: string;
|
|
3258
|
+
message_id?: string | null;
|
|
3259
|
+
seq?: number | null;
|
|
3260
|
+
}
|
|
3261
|
+
interface AthenaChatWsPingCommand {
|
|
3262
|
+
type: 'ping';
|
|
3263
|
+
at: string;
|
|
3264
|
+
}
|
|
3265
|
+
type AthenaChatWsClientCommand = AthenaChatWsAuthHelloCommand | AthenaChatWsSubscribeCommand | AthenaChatWsUnsubscribeCommand | AthenaChatWsResumeCommand | AthenaChatWsTypingStartCommand | AthenaChatWsTypingStopCommand | AthenaChatWsPresenceHeartbeatCommand | AthenaChatWsReadUpToCommand | AthenaChatWsPingCommand;
|
|
3266
|
+
interface AthenaChatWsHelloOkEvent {
|
|
3267
|
+
type: 'hello.ok';
|
|
3268
|
+
connection_id: string;
|
|
3269
|
+
server_time: string;
|
|
3270
|
+
}
|
|
3271
|
+
interface AthenaChatWsSubscribedEvent {
|
|
3272
|
+
type: 'chat.subscribed';
|
|
3273
|
+
room_id: string;
|
|
3274
|
+
from_seq?: number | null;
|
|
3275
|
+
}
|
|
3276
|
+
interface AthenaChatWsRoomEventBase {
|
|
3277
|
+
room_id: string;
|
|
3278
|
+
room: AthenaChatRoom;
|
|
3279
|
+
}
|
|
3280
|
+
interface AthenaChatWsRoomCreatedEvent extends AthenaChatWsRoomEventBase {
|
|
3281
|
+
type: 'chat.room.created';
|
|
3282
|
+
}
|
|
3283
|
+
interface AthenaChatWsRoomUpdatedEvent extends AthenaChatWsRoomEventBase {
|
|
3284
|
+
type: 'chat.room.updated';
|
|
3285
|
+
}
|
|
3286
|
+
interface AthenaChatWsRoomArchivedEvent extends AthenaChatWsRoomEventBase {
|
|
3287
|
+
type: 'chat.room.archived';
|
|
3288
|
+
}
|
|
3289
|
+
interface AthenaChatWsMessageEventBase {
|
|
3290
|
+
room_id: string;
|
|
3291
|
+
message: AthenaChatMessage;
|
|
3292
|
+
}
|
|
3293
|
+
interface AthenaChatWsMessageCreatedEvent extends AthenaChatWsMessageEventBase {
|
|
3294
|
+
type: 'chat.message.created';
|
|
3295
|
+
}
|
|
3296
|
+
interface AthenaChatWsMessageUpdatedEvent extends AthenaChatWsMessageEventBase {
|
|
3297
|
+
type: 'chat.message.updated';
|
|
3298
|
+
}
|
|
3299
|
+
interface AthenaChatWsMessageDeletedEvent {
|
|
3300
|
+
type: 'chat.message.deleted';
|
|
3301
|
+
room_id: string;
|
|
3302
|
+
message_id: string;
|
|
3303
|
+
room_seq: number;
|
|
3304
|
+
}
|
|
3305
|
+
interface AthenaChatWsReadUpdatedEvent {
|
|
3306
|
+
type: 'chat.read.updated';
|
|
3307
|
+
room_id: string;
|
|
3308
|
+
read_cursor: AthenaChatReadCursor;
|
|
3309
|
+
}
|
|
3310
|
+
interface AthenaChatWsMembersUpdatedEvent {
|
|
3311
|
+
type: 'chat.members.updated';
|
|
3312
|
+
room_id: string;
|
|
3313
|
+
members: AthenaChatMember[];
|
|
3314
|
+
}
|
|
3315
|
+
interface AthenaChatWsTypingUpdatedEvent {
|
|
3316
|
+
type: 'chat.typing.updated';
|
|
3317
|
+
room_id: string;
|
|
3318
|
+
user_ids: string[];
|
|
3319
|
+
}
|
|
3320
|
+
interface AthenaChatWsPresenceUpdatedEvent {
|
|
3321
|
+
type: 'chat.presence.updated';
|
|
3322
|
+
room_id?: string | null;
|
|
3323
|
+
users: AthenaChatPresenceUser[];
|
|
3324
|
+
}
|
|
3325
|
+
interface AthenaChatWsSyncRequiredEvent {
|
|
3326
|
+
type: 'chat.sync.required';
|
|
3327
|
+
room_id?: string | null;
|
|
3328
|
+
reason?: string | null;
|
|
3329
|
+
}
|
|
3330
|
+
interface AthenaChatWsReactionUpdatedEvent {
|
|
3331
|
+
type: 'chat.reaction.updated';
|
|
3332
|
+
room_id: string;
|
|
3333
|
+
summary: AthenaChatReactionSummary;
|
|
3334
|
+
}
|
|
3335
|
+
interface AthenaChatWsPongEvent {
|
|
3336
|
+
type: 'pong';
|
|
3337
|
+
at: string;
|
|
3338
|
+
}
|
|
3339
|
+
interface AthenaChatWsErrorEvent {
|
|
3340
|
+
type: 'error';
|
|
3341
|
+
error: string;
|
|
3342
|
+
code?: string | null;
|
|
3343
|
+
}
|
|
3344
|
+
type AthenaChatWsServerEvent = AthenaChatWsHelloOkEvent | AthenaChatWsSubscribedEvent | AthenaChatWsRoomCreatedEvent | AthenaChatWsRoomUpdatedEvent | AthenaChatWsRoomArchivedEvent | AthenaChatWsMessageCreatedEvent | AthenaChatWsMessageUpdatedEvent | AthenaChatWsMessageDeletedEvent | AthenaChatWsReadUpdatedEvent | AthenaChatWsMembersUpdatedEvent | AthenaChatWsTypingUpdatedEvent | AthenaChatWsPresenceUpdatedEvent | AthenaChatWsSyncRequiredEvent | AthenaChatWsReactionUpdatedEvent | AthenaChatWsPongEvent | AthenaChatWsErrorEvent;
|
|
3345
|
+
interface AthenaChatCallOptions {
|
|
3346
|
+
headers?: Record<string, string>;
|
|
3347
|
+
signal?: AbortSignal;
|
|
3348
|
+
client?: string;
|
|
3349
|
+
bearerToken?: string | null;
|
|
3350
|
+
cookie?: string | null;
|
|
3351
|
+
sessionToken?: string | null;
|
|
3352
|
+
forceNoCache?: boolean;
|
|
3353
|
+
}
|
|
3354
|
+
interface AthenaChatWebSocketLike {
|
|
3355
|
+
close(code?: number, reason?: string): void;
|
|
3356
|
+
send(data: string): void;
|
|
3357
|
+
addEventListener?(type: 'open' | 'message' | 'error' | 'close', listener: (event: unknown) => void): void;
|
|
3358
|
+
removeEventListener?(type: 'open' | 'message' | 'error' | 'close', listener: (event: unknown) => void): void;
|
|
3359
|
+
onopen?: ((event: unknown) => void) | null;
|
|
3360
|
+
onmessage?: ((event: {
|
|
3361
|
+
data?: string | ArrayBuffer | Uint8Array | Blob;
|
|
3362
|
+
}) => void) | null;
|
|
3363
|
+
onerror?: ((event: unknown) => void) | null;
|
|
3364
|
+
onclose?: ((event: unknown) => void) | null;
|
|
3365
|
+
}
|
|
3366
|
+
type AthenaChatWebSocketFactory = ((url: string, protocols?: string | string[]) => AthenaChatWebSocketLike) | (new (url: string, protocols?: string | string[]) => AthenaChatWebSocketLike);
|
|
3367
|
+
interface AthenaChatConnectOptions {
|
|
3368
|
+
protocols?: string | string[];
|
|
3369
|
+
hello?: AthenaChatWsAuthHelloCommand;
|
|
3370
|
+
onMessage?: (message: AthenaChatWsServerEvent | Record<string, unknown>) => void;
|
|
3371
|
+
}
|
|
3372
|
+
interface AthenaChatRealtimeConnection {
|
|
3373
|
+
readonly socket: AthenaChatWebSocketLike;
|
|
3374
|
+
send(command: AthenaChatWsClientCommand): void;
|
|
3375
|
+
hello(command?: Omit<AthenaChatWsAuthHelloCommand, 'type'>): void;
|
|
3376
|
+
subscribe(roomId: string, fromSeq?: number | null): void;
|
|
3377
|
+
unsubscribe(roomId: string): void;
|
|
3378
|
+
resume(rooms: AthenaChatResumeRoomCursor[]): void;
|
|
3379
|
+
typingStart(roomId: string): void;
|
|
3380
|
+
typingStop(roomId: string): void;
|
|
3381
|
+
presenceHeartbeat(activeRoomId?: string | null): void;
|
|
3382
|
+
readUpTo(roomId: string, input?: Omit<AthenaChatMarkReadUpToRequest, never>): void;
|
|
3383
|
+
ping(at?: string): void;
|
|
3384
|
+
close(code?: number, reason?: string): void;
|
|
3385
|
+
}
|
|
3386
|
+
interface AthenaChatRealtimeModule {
|
|
3387
|
+
info(options?: AthenaChatCallOptions): Promise<AthenaChatRealtimeInfoResponse>;
|
|
3388
|
+
connect(options?: AthenaChatConnectOptions): AthenaChatRealtimeConnection;
|
|
3389
|
+
}
|
|
3390
|
+
interface AthenaChatModule {
|
|
3391
|
+
room: {
|
|
3392
|
+
list(query?: AthenaChatListRoomsQuery, options?: AthenaChatCallOptions): Promise<AthenaChatRoomPage>;
|
|
3393
|
+
create(input: AthenaChatCreateRoomRequest, options?: AthenaChatCallOptions): Promise<AthenaChatRoomCreatedResponse>;
|
|
3394
|
+
get(roomId: string, options?: AthenaChatCallOptions): Promise<AthenaChatRoom>;
|
|
3395
|
+
update(roomId: string, input: AthenaChatUpdateRoomRequest, options?: AthenaChatCallOptions): Promise<AthenaChatRoom>;
|
|
3396
|
+
archive(roomId: string, options?: AthenaChatCallOptions): Promise<AthenaChatRoom>;
|
|
3397
|
+
readCursor: {
|
|
3398
|
+
upTo(roomId: string, input?: AthenaChatMarkReadUpToRequest, options?: AthenaChatCallOptions): Promise<AthenaChatReadCursor>;
|
|
3399
|
+
};
|
|
3400
|
+
member: {
|
|
3401
|
+
list(roomId: string, options?: AthenaChatCallOptions): Promise<AthenaChatMember[]>;
|
|
3402
|
+
add(roomId: string, input: AthenaChatAddMembersRequest, options?: AthenaChatCallOptions): Promise<AthenaChatMember[]>;
|
|
3403
|
+
remove(roomId: string, userId: string, options?: AthenaChatCallOptions): Promise<AthenaChatRemoveResult>;
|
|
3404
|
+
};
|
|
3405
|
+
message: {
|
|
3406
|
+
list(roomId: string, query?: AthenaChatListMessagesQuery, options?: AthenaChatCallOptions): Promise<AthenaChatMessagePage>;
|
|
3407
|
+
send(roomId: string, input: AthenaChatSendMessageRequest, options?: AthenaChatCallOptions): Promise<AthenaChatMessageCreatedResponse>;
|
|
3408
|
+
update(roomId: string, messageId: string, input: AthenaChatEditMessageRequest, options?: AthenaChatCallOptions): Promise<AthenaChatMessage>;
|
|
3409
|
+
delete(roomId: string, messageId: string, options?: AthenaChatCallOptions): Promise<AthenaChatDeleteResult>;
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
message: {
|
|
3413
|
+
reaction: {
|
|
3414
|
+
add(messageId: string, input: AthenaChatAddReactionRequest, options?: AthenaChatCallOptions): Promise<AthenaChatReactionSummary>;
|
|
3415
|
+
remove(messageId: string, emoji: string, options?: AthenaChatCallOptions): Promise<AthenaChatReactionSummary>;
|
|
3416
|
+
};
|
|
3417
|
+
search(input: AthenaChatSearchMessagesRequest, options?: AthenaChatCallOptions): Promise<AthenaChatSearchPage>;
|
|
3418
|
+
};
|
|
3419
|
+
realtime: AthenaChatRealtimeModule;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
2938
3422
|
type AthenaRowShape$1 = Record<string, AthenaJsonValue | undefined>;
|
|
2939
3423
|
type FilterColumnKey$1<Row> = Extract<keyof NonNullable<Row>, string>;
|
|
2940
3424
|
type ResolvedFilterColumnKey$1<Row> = [FilterColumnKey$1<Row>] extends [never] ? string : FilterColumnKey$1<Row>;
|
|
@@ -3240,6 +3724,31 @@ interface AthenaResultError {
|
|
|
3240
3724
|
cause?: string;
|
|
3241
3725
|
raw: unknown;
|
|
3242
3726
|
}
|
|
3727
|
+
type AthenaRequestService = 'db' | 'auth' | 'chat' | 'storage';
|
|
3728
|
+
type AthenaRequestMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
3729
|
+
interface AthenaRequestQueryValueMap {
|
|
3730
|
+
[key: string]: string | number | boolean | null | undefined | Array<string | number | boolean | null | undefined>;
|
|
3731
|
+
}
|
|
3732
|
+
interface AthenaRequestOptions {
|
|
3733
|
+
service?: AthenaRequestService;
|
|
3734
|
+
url?: string;
|
|
3735
|
+
path?: string;
|
|
3736
|
+
method?: AthenaRequestMethod;
|
|
3737
|
+
headers?: Record<string, string>;
|
|
3738
|
+
query?: AthenaRequestQueryValueMap;
|
|
3739
|
+
body?: RequestInit['body'] | Record<string, unknown> | unknown[] | null;
|
|
3740
|
+
signal?: AbortSignal;
|
|
3741
|
+
credentials?: RequestInit['credentials'];
|
|
3742
|
+
responseType?: 'json' | 'text' | 'response';
|
|
3743
|
+
}
|
|
3744
|
+
interface AthenaRequestResponse<T = unknown> {
|
|
3745
|
+
ok: boolean;
|
|
3746
|
+
status: number;
|
|
3747
|
+
statusText: string;
|
|
3748
|
+
headers: Headers;
|
|
3749
|
+
data: T | string | null;
|
|
3750
|
+
raw: Response;
|
|
3751
|
+
}
|
|
3243
3752
|
interface AthenaClientExperimentalOptions {
|
|
3244
3753
|
/**
|
|
3245
3754
|
* @deprecated Failed `AthenaResult` values now include normalized structured `error`
|
|
@@ -3433,34 +3942,68 @@ interface AthenaSdkClient<TStrict extends boolean = false> {
|
|
|
3433
3942
|
db: AthenaDbModule<TStrict>;
|
|
3434
3943
|
rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
|
|
3435
3944
|
query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
|
|
3945
|
+
request<T = unknown>(options: AthenaRequestOptions): Promise<AthenaRequestResponse<T>>;
|
|
3436
3946
|
verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
3947
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClient<TStrict>;
|
|
3948
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClient<TStrict>;
|
|
3437
3949
|
}
|
|
3438
3950
|
interface AthenaSdkClientWithAuth<TStrict extends boolean = false> extends AthenaSdkClient<TStrict> {
|
|
3439
3951
|
auth: AthenaAuthBindings;
|
|
3952
|
+
chat: AthenaChatModule;
|
|
3953
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
3954
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
3955
|
+
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithAuth<TStrict>;
|
|
3440
3956
|
}
|
|
3441
3957
|
interface AthenaSdkClientWithStorage<TStrict extends boolean = false> extends AthenaSdkClientWithAuth<TStrict> {
|
|
3442
3958
|
storage: AthenaStorageModule;
|
|
3959
|
+
withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
3960
|
+
withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
3961
|
+
withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithStorage<TStrict>;
|
|
3962
|
+
}
|
|
3963
|
+
interface AthenaHeaderBag {
|
|
3964
|
+
get(name: string): string | null;
|
|
3965
|
+
}
|
|
3966
|
+
interface AthenaClientSessionLike {
|
|
3967
|
+
user?: {
|
|
3968
|
+
id?: string | null | undefined;
|
|
3969
|
+
} | null | undefined;
|
|
3970
|
+
session?: {
|
|
3971
|
+
token?: string | null | undefined;
|
|
3972
|
+
activeOrganizationId?: string | null | undefined;
|
|
3973
|
+
} | null | undefined;
|
|
3443
3974
|
}
|
|
3444
3975
|
interface AthenaCreateClientServiceUrlConfig {
|
|
3445
3976
|
url?: string | null | undefined;
|
|
3446
3977
|
}
|
|
3447
|
-
interface
|
|
3978
|
+
interface AthenaCreateClientChatOptions extends AthenaCreateClientServiceUrlConfig {
|
|
3979
|
+
wsUrl?: string | null | undefined;
|
|
3980
|
+
webSocketFactory?: AthenaChatWebSocketFactory | null | undefined;
|
|
3981
|
+
}
|
|
3982
|
+
interface AthenaCreateClientAuthOptions extends Omit<AthenaAuthClientConfig, 'baseUrl' | 'apiKey' | 'bearerToken' | 'cookie' | 'sessionToken'> {
|
|
3448
3983
|
url?: string | null | undefined;
|
|
3449
3984
|
baseUrl?: string | null | undefined;
|
|
3450
3985
|
apiKey?: string | null | undefined;
|
|
3451
3986
|
bearerToken?: string | null | undefined;
|
|
3987
|
+
cookie?: string | null | undefined;
|
|
3988
|
+
sessionToken?: string | null | undefined;
|
|
3452
3989
|
}
|
|
3453
3990
|
interface AthenaCreateClientOptions {
|
|
3454
3991
|
client?: string | null | undefined;
|
|
3992
|
+
userId?: string | null | undefined;
|
|
3993
|
+
organizationId?: string | null | undefined;
|
|
3994
|
+
forceNoCache?: boolean;
|
|
3455
3995
|
headers?: Record<string, string>;
|
|
3456
3996
|
backend?: BackendConfig | BackendType;
|
|
3457
3997
|
db?: AthenaCreateClientServiceUrlConfig;
|
|
3458
3998
|
gateway?: AthenaCreateClientServiceUrlConfig;
|
|
3459
3999
|
auth?: AthenaCreateClientAuthOptions;
|
|
4000
|
+
chat?: AthenaCreateClientChatOptions;
|
|
3460
4001
|
storage?: AthenaCreateClientServiceUrlConfig;
|
|
3461
4002
|
dbUrl?: string | null | undefined;
|
|
3462
4003
|
gatewayUrl?: string | null | undefined;
|
|
3463
4004
|
authUrl?: string | null | undefined;
|
|
4005
|
+
chatUrl?: string | null | undefined;
|
|
4006
|
+
chatWsUrl?: string | null | undefined;
|
|
3464
4007
|
storageUrl?: string | null | undefined;
|
|
3465
4008
|
experimental?: AthenaClientExperimentalOptions;
|
|
3466
4009
|
}
|
|
@@ -3496,6 +4039,41 @@ interface AthenaCreateClientConfigWithStorageAndTypecheckedColumns extends Athen
|
|
|
3496
4039
|
url?: string | null | undefined;
|
|
3497
4040
|
key: string | null | undefined;
|
|
3498
4041
|
}
|
|
4042
|
+
interface AthenaClientOverrideOptions extends Omit<AthenaCreateClientOptions, 'experimental'> {
|
|
4043
|
+
url?: string | null | undefined;
|
|
4044
|
+
key?: string | null | undefined;
|
|
4045
|
+
}
|
|
4046
|
+
interface AthenaClientContextOptions {
|
|
4047
|
+
userId?: string | null | undefined;
|
|
4048
|
+
organizationId?: string | null | undefined;
|
|
4049
|
+
forceNoCache?: boolean;
|
|
4050
|
+
headers?: Record<string, string>;
|
|
4051
|
+
auth?: Omit<AthenaCreateClientAuthOptions, 'url' | 'baseUrl' | 'apiKey'>;
|
|
4052
|
+
}
|
|
4053
|
+
interface AthenaClientSessionOptions extends AthenaClientContextOptions {
|
|
4054
|
+
requestHeaders?: AthenaHeaderBag | Record<string, string | null | undefined>;
|
|
4055
|
+
}
|
|
4056
|
+
interface AthenaClientFromEnvironmentOptions extends AthenaCreateClientOptions {
|
|
4057
|
+
env?: Record<string, string | undefined>;
|
|
4058
|
+
url?: string | null | undefined;
|
|
4059
|
+
key?: string | null | undefined;
|
|
4060
|
+
}
|
|
4061
|
+
interface AthenaClientFromEnvironmentOptionsWithStorage extends AthenaClientFromEnvironmentOptions {
|
|
4062
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
4063
|
+
athenaStorageBackend: true;
|
|
4064
|
+
};
|
|
4065
|
+
}
|
|
4066
|
+
interface AthenaClientFromEnvironmentOptionsWithTypecheckedColumns extends AthenaClientFromEnvironmentOptions {
|
|
4067
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
4068
|
+
typecheckColumns: true;
|
|
4069
|
+
};
|
|
4070
|
+
}
|
|
4071
|
+
interface AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns extends AthenaClientFromEnvironmentOptions {
|
|
4072
|
+
experimental: AthenaClientExperimentalOptions & {
|
|
4073
|
+
athenaStorageBackend: true;
|
|
4074
|
+
typecheckColumns: true;
|
|
4075
|
+
};
|
|
4076
|
+
}
|
|
3499
4077
|
interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict extends boolean = false> {
|
|
3500
4078
|
/** Set the public Athena base URL. */
|
|
3501
4079
|
url(url: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
@@ -3534,7 +4112,10 @@ declare class AthenaClient {
|
|
|
3534
4112
|
/** Create a fluent builder for a strongly-typed Athena SDK client. */
|
|
3535
4113
|
static builder(): AthenaClientBuilder<false, false>;
|
|
3536
4114
|
/** Build a client from process environment variables. */
|
|
3537
|
-
static fromEnvironment():
|
|
4115
|
+
static fromEnvironment(options: AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns): AthenaSdkClientWithStorage<true>;
|
|
4116
|
+
static fromEnvironment(options: AthenaClientFromEnvironmentOptionsWithStorage): AthenaSdkClientWithStorage<false>;
|
|
4117
|
+
static fromEnvironment(options: AthenaClientFromEnvironmentOptionsWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
|
|
4118
|
+
static fromEnvironment(options?: AthenaClientFromEnvironmentOptions): AthenaSdkClientWithAuth<false>;
|
|
3538
4119
|
}
|
|
3539
4120
|
/** Create client (convenience wrapper; use AthenaClient.builder() for full control) */
|
|
3540
4121
|
declare function createClient(config: AthenaCreateClientConfigWithStorageAndTypecheckedColumns): AthenaSdkClientWithStorage<true>;
|
|
@@ -3546,97 +4127,4 @@ declare function createClient(url: string | null | undefined, apiKey: string | n
|
|
|
3546
4127
|
declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options: AthenaCreateClientOptionsWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
|
|
3547
4128
|
declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options?: AthenaCreateClientOptions): AthenaSdkClientWithAuth<false>;
|
|
3548
4129
|
|
|
3549
|
-
interface AthenaGatewayErrorInput {
|
|
3550
|
-
code: AthenaGatewayErrorCode;
|
|
3551
|
-
message: string;
|
|
3552
|
-
status?: number;
|
|
3553
|
-
endpoint?: AthenaGatewayEndpointPath;
|
|
3554
|
-
method?: AthenaGatewayMethod;
|
|
3555
|
-
requestId?: string;
|
|
3556
|
-
hint?: string;
|
|
3557
|
-
cause?: string;
|
|
3558
|
-
}
|
|
3559
|
-
/**
|
|
3560
|
-
* Canonical error for gateway failures.
|
|
3561
|
-
* Holds request context and machine-readable classification.
|
|
3562
|
-
*/
|
|
3563
|
-
declare class AthenaGatewayError extends Error {
|
|
3564
|
-
readonly code: AthenaGatewayErrorCode;
|
|
3565
|
-
readonly status: number;
|
|
3566
|
-
readonly endpoint?: AthenaGatewayEndpointPath;
|
|
3567
|
-
readonly method?: AthenaGatewayMethod;
|
|
3568
|
-
readonly requestId?: string;
|
|
3569
|
-
readonly hint?: string;
|
|
3570
|
-
readonly causeDetail?: string;
|
|
3571
|
-
constructor(input: AthenaGatewayErrorInput);
|
|
3572
|
-
toDetails(): AthenaGatewayErrorDetails;
|
|
3573
|
-
static fromResponse<T>(response: AthenaGatewayResponse<T>, fallback: Omit<AthenaGatewayErrorInput, 'code' | 'message' | 'status'>): AthenaGatewayError;
|
|
3574
|
-
}
|
|
3575
|
-
declare function isAthenaGatewayError(error: unknown): error is AthenaGatewayError;
|
|
3576
|
-
|
|
3577
|
-
type ModelFormNullishMode = 'empty-string' | 'undefined' | 'null';
|
|
3578
|
-
type NullishValueByMode = {
|
|
3579
|
-
'empty-string': '';
|
|
3580
|
-
undefined: undefined;
|
|
3581
|
-
null: null;
|
|
3582
|
-
};
|
|
3583
|
-
type MapNullableToFormValue<TField, TMode extends ModelFormNullishMode> = null extends TField ? Exclude<TField, null> | NullishValueByMode[TMode] : TField;
|
|
3584
|
-
/**
|
|
3585
|
-
* Form value shape derived from a model insert payload.
|
|
3586
|
-
* Nullable fields are remapped to the selected nullish representation.
|
|
3587
|
-
*/
|
|
3588
|
-
type ModelFormValues<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = {
|
|
3589
|
-
[K in keyof InsertOf<TModel>]: MapNullableToFormValue<InsertOf<TModel>[K], TMode>;
|
|
3590
|
-
};
|
|
3591
|
-
/**
|
|
3592
|
-
* Alias for deriving form value types from any model contract.
|
|
3593
|
-
*/
|
|
3594
|
-
type FormValuesOf<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = ModelFormValues<TModel, TMode>;
|
|
3595
|
-
/**
|
|
3596
|
-
* Default value shape for form initialization.
|
|
3597
|
-
*/
|
|
3598
|
-
type ModelFormDefaults<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = Partial<ModelFormValues<TModel, TMode>>;
|
|
3599
|
-
interface ToModelFormDefaultsOptions<TMode extends ModelFormNullishMode = 'empty-string'> {
|
|
3600
|
-
/**
|
|
3601
|
-
* Controls how nullable model values are represented in form defaults.
|
|
3602
|
-
* - `empty-string` (default): `null -> ""`
|
|
3603
|
-
* - `undefined`: `null -> undefined`
|
|
3604
|
-
* - `null`: keeps `null`
|
|
3605
|
-
*/
|
|
3606
|
-
nullishMode?: TMode;
|
|
3607
|
-
}
|
|
3608
|
-
interface ToModelPayloadOptions {
|
|
3609
|
-
/**
|
|
3610
|
-
* Converts `""` into `null` for nullable model fields.
|
|
3611
|
-
* Defaults to `true`.
|
|
3612
|
-
*/
|
|
3613
|
-
emptyStringAsNull?: boolean;
|
|
3614
|
-
/**
|
|
3615
|
-
* Omits `undefined` keys from the outgoing payload.
|
|
3616
|
-
* Defaults to `true`.
|
|
3617
|
-
*/
|
|
3618
|
-
stripUndefined?: boolean;
|
|
3619
|
-
}
|
|
3620
|
-
/**
|
|
3621
|
-
* Normalizes model data into form-safe defaults using model nullability metadata.
|
|
3622
|
-
*/
|
|
3623
|
-
declare function toModelFormDefaults<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'>(model: TModel, values?: Partial<RowOf<TModel>> | Partial<InsertOf<TModel>> | null, options?: ToModelFormDefaultsOptions<TMode>): ModelFormDefaults<TModel, TMode>;
|
|
3624
|
-
/**
|
|
3625
|
-
* Normalizes form values back into model-compatible insert/update payloads.
|
|
3626
|
-
*/
|
|
3627
|
-
declare function toModelPayload<TModel extends AnyModelDef>(model: TModel, formValues: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
|
|
3628
|
-
/**
|
|
3629
|
-
* Runtime form adapter bound to a model contract.
|
|
3630
|
-
*/
|
|
3631
|
-
interface ModelFormAdapter<TModel extends AnyModelDef> {
|
|
3632
|
-
model: TModel;
|
|
3633
|
-
toDefaults<TMode extends ModelFormNullishMode = 'empty-string'>(values?: Partial<RowOf<TModel>> | Partial<InsertOf<TModel>> | null, options?: ToModelFormDefaultsOptions<TMode>): ModelFormDefaults<TModel, TMode>;
|
|
3634
|
-
toInsert(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
|
|
3635
|
-
toUpdate(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<UpdateOf<TModel>>;
|
|
3636
|
-
}
|
|
3637
|
-
/**
|
|
3638
|
-
* Creates a small model-aware adapter for form defaults and payload normalization.
|
|
3639
|
-
*/
|
|
3640
|
-
declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
|
|
3641
|
-
|
|
3642
|
-
export { type AthenaClientExperimentalOptions as $, type AthenaAdminListUsersFilterOperator as A, type AthenaAuthQueryValue as B, type AthenaAuthReactEmailComponent as C, type AthenaAuthReactEmailConfig as D, type AthenaAuthReactEmailEventPhase as E, type AthenaAuthReactEmailProps as F, type AthenaAuthReactEmailRenderEvent as G, type AthenaAuthReactEmailRenderInput as H, type AthenaAuthReactEmailRenderOptions as I, type AthenaAuthRequestInput as J, type AthenaAuthResetPasswordBinding as K, type AthenaAuthResult as L, type AthenaAuthRevokeSessionRequest as M, type AthenaAuthSdkClient as N, type AthenaAuthSearchOperator as O, type AthenaAuthSession as P, type AthenaAuthSessionResponse as Q, type AthenaAuthSessionRevokeBinding as R, type AthenaAuthSignInResponse as S, type AthenaAuthSignOutResponse as T, type AthenaAuthSocialRedirectResponse as U, type AthenaAuthStatusResponse as V, type AthenaAuthUser as W, type AthenaChangeEmailRequest as X, type AthenaChangePasswordRequest as Y, AthenaClient as Z, type AthenaClientBuilder as _, type AthenaAdminListUsersQuery as a, type AthenaStorageEnv as a$, type AthenaCreateClientAuthOptions as a0, type AthenaCreateClientConfig as a1, type AthenaCreateClientConfigWithStorage as a2, type AthenaCreateClientConfigWithStorageAndTypecheckedColumns as a3, type AthenaCreateClientConfigWithTypecheckedColumns as a4, type AthenaCreateClientOptions as a5, type AthenaCreateClientOptionsWithStorage as a6, type AthenaCreateClientOptionsWithStorageAndTypecheckedColumns as a7, type AthenaCreateClientOptionsWithTypecheckedColumns as a8, type AthenaCreateClientServiceUrlConfig as a9, type AthenaQueryTraceCallsite as aA, type AthenaQueryTraceEvent as aB, type AthenaQueryTraceOptions as aC, type AthenaRawQueryDebugAst as aD, type AthenaRelationSelectNode as aE, type AthenaResetPasswordRequest as aF, type AthenaResult as aG, type AthenaResultError as aH, type AthenaRpcBuilderStateAst as aI, type AthenaRpcDebugAst as aJ, type AthenaSdkClient as aK, type AthenaSdkClientWithAuth as aL, type AthenaSdkClientWithStorage as aM, type AthenaSelectDebugAst as aN, type AthenaSelectDebugTransport as aO, type AthenaSelectShape as aP, type AthenaSendVerificationEmailRequest as aQ, type AthenaSocialSignInRequest as aR, type AthenaStorageAuditNamespace as aS, type AthenaStorageBaseModule as aT, type AthenaStorageBinaryCallOptions as aU, type AthenaStorageBucketCorsNamespace as aV, type AthenaStorageBucketNamespace as aW, type AthenaStorageCallOptions as aX, type AthenaStorageCatalogNamespace as aY, type AthenaStorageClientConfig as aZ, type AthenaStorageCredentialsNamespace as a_, type AthenaDbModule as aa, type AthenaDeleteDebugAst as ab, type AthenaDeleteUserCallbackRequest as ac, type AthenaDeleteUserRequest as ad, type AthenaDeleteUserResponse as ae, type AthenaEmailSignInRequest as af, type AthenaEmailSignUpRequest as ag, type AthenaEnvelope as ah, AthenaError as ai, AthenaErrorCategory as aj, AthenaErrorCode as ak, type AthenaErrorInput as al, AthenaErrorKind as am, type AthenaFindManyDebugAst as an, type AthenaFindManyOptions as ao, type AthenaFindManyResult as ap, type AthenaForgetPasswordRequest as aq, type AthenaFromOptions as ar, AthenaGatewayError as as, type AthenaInsertDebugAst as at, type AthenaLinkSocialRequest as au, type AthenaOAuthAccountTokenRequest as av, type AthenaOAuthTokenBundle as aw, type AthenaOperationContext as ax, type AthenaOrderBy as ay, type AthenaQueryDebugAst as az, type AthenaAdminListUsersSearchOperator as b, type RequireAffectedOptions as b$, AthenaStorageError as b0, AthenaStorageErrorCode as b1, type AthenaStorageErrorDetails as b2, type AthenaStorageErrorHandler as b3, type AthenaStorageErrorInput as b4, type AthenaStorageFileConfig as b5, type AthenaStorageFileDeleteInput as b6, type AthenaStorageFileDownloadInput as b7, type AthenaStorageFileListInput as b8, type AthenaStorageFileModule as b9, type AthenaUpdateUserRequest as bA, type AthenaUpsertDebugAst as bB, type AthenaUsernameSignInRequest as bC, type AthenaVerifyEmailRequest as bD, type AthenaWhere as bE, type AthenaWhereBooleanOperand as bF, type AthenaWhereOperatorInput as bG, type ConfirmStorageUploadRequest as bH, type CopyStorageFileRequest as bI, type CreateStorageCatalogRequest as bJ, type CreateStorageUploadUrlRequest as bK, type CreateStorageUploadUrlsRequest as bL, type DeleteManyStorageFilesRequest as bM, type DeleteStorageFolderRequest as bN, type FormValuesOf as bO, type GetStorageFileUrlQuery as bP, type IntCoercionOptions as bQ, type ListStorageFilesRequest as bR, type ListStorageFoldersRequest as bS, type ManagedFileRecord as bT, type ModelFormAdapter as bU, type ModelFormDefaults as bV, type ModelFormNullishMode as bW, type ModelFormValues as bX, type MoveStorageFolderRequest as bY, type NormalizedAthenaError as bZ, type PresignedFileUrlResponse as b_, type AthenaStorageFileNamespace as ba, type AthenaStorageFileUploadInput as bb, type AthenaStorageFileUploadManyRequest as bc, type AthenaStorageFileUploadRequest as bd, type AthenaStorageFileUploadResult as be, type AthenaStorageFolderNamespace as bf, type AthenaStorageManagedUpload as bg, type AthenaStorageModule as bh, type AthenaStorageMultipartNamespace as bi, type AthenaStorageObjectFolderNamespace as bj, type AthenaStorageObjectNamespace as bk, type AthenaStoragePathContext as bl, type AthenaStoragePermissionNamespace as bm, type AthenaStoragePrefixPath as bn, type AthenaStoragePutBody as bo, type AthenaStoragePutOptions as bp, type AthenaStorageTemplateValue as bq, type AthenaStorageTemplateVars as br, type AthenaStorageUploadConstraints as bs, type AthenaStorageUploadProgress as bt, type AthenaStorageUploadProgressHandler as bu, type AthenaStorageUploadSource as bv, type AthenaStorageUploadedFile as bw, type AthenaTableBuilderStateAst as bx, type AthenaUnlinkAccountRequest as by, type AthenaUpdateDebugAst as bz, type AthenaAuthAdminUserSessionRevokeBinding as c, type ToModelPayloadOptions as c$, type RetryBackoffStrategy as c0, type RetryConfig as c1, type RpcOrderOptions as c2, type RpcQueryBuilder as c3, type S3CatalogItem as c4, type S3CredentialListItem as c5, type SearchStorageFilesRequest as c6, type SetManyStorageFileVisibilityRequest as c7, type SetStorageFileVisibilityRequest as c8, type StorageAuditEventRecord as c9, type StorageObjectFolderCreateRequest as cA, type StorageObjectFolderDeleteRequest as cB, type StorageObjectFolderRenameRequest as cC, type StorageObjectPublicUrlRequest as cD, type StorageObjectRequest as cE, type StorageObjectValidateRequest as cF, type StorageObjectVersionListRequest as cG, type StorageObjectVersionMutationRequest as cH, type StoragePermissionCheckRequest as cI, type StoragePermissionCheckResponse as cJ, type StoragePermissionGrantRequest as cK, type StoragePermissionListRequest as cL, type StoragePermissionListResponse as cM, type StoragePermissionRevokeRequest as cN, type StoragePresignUploadRequest as cO, type StoragePublicAccessBlockRequest as cP, type StorageServerSideEncryptionOptions as cQ, type StorageSetBucketCorsRequest as cR, type StorageSetBucketLifecycleRequest as cS, type StorageSetBucketPolicyRequest as cT, type StorageSetPublicAccessBlockRequest as cU, type StorageSignedPostPolicyRequest as cV, type StorageUpdateObjectRequest as cW, type StorageUploadUrlResponse as cX, type StorageUploadUrlResponseWithPut as cY, type TableQueryBuilder as cZ, type ToModelFormDefaultsOptions as c_, type StorageAuditListResponse as ca, type StorageAuditQueryRequest as cb, type StorageBatchUploadUrlResponse as cc, type StorageBatchUploadUrlResponseWithPut as cd, type StorageBucketCorsRequest as ce, type StorageBucketCorsRuleInput as cf, type StorageBucketLifecycleRequest as cg, type StorageBucketLifecycleRuleInput as ch, type StorageBucketPolicyRequest as ci, type StorageFileAccessPurpose as cj, type StorageFileMutationManyResponse as ck, type StorageFileMutationResponse as cl, type StorageFilePermissionRecord as cm, type StorageFileRetentionRequest as cn, type StorageFileVersionPathRequest as co, type StorageFolderMutationResponse as cp, type StorageListFilesResponse as cq, type StorageListObjectsRequest as cr, type StorageMultipartAbortRequest as cs, type StorageMultipartCompletePartInput as ct, type StorageMultipartCompleteRequest as cu, type StorageMultipartCreateRequest as cv, type StorageMultipartListPartsRequest as cw, type StorageMultipartSignPartRequest as cx, type StorageObjectBaseRequest as cy, type StorageObjectCopyRequest as cz, type AthenaAuthBindings as d, type TreeStorageFoldersRequest as d0, type UnwrapOneOptions as d1, type UnwrapOptions as d2, type UpdateManyStorageFilesRequest as d3, type UpdateStorageCatalogRequest as d4, type UpdateStorageFileRequest as d5, assertInt as d6, coerceInt as d7, createAthenaStorageError as d8, createClient as d9, createModelFormAdapter as da, createStorageModule as db, getAthenaDebugAst as dc, isAthenaGatewayError as dd, isOk as de, normalizeAthenaError as df, parseBooleanFlag as dg, requireAffected as dh, requireSuccess as di, storageSdkManifest as dj, toModelFormDefaults as dk, toModelPayload as dl, unwrap as dm, unwrapOne as dn, unwrapRows as dp, verifyAthenaGatewayUrl as dq, withRetry as dr, type AthenaAuthFetchCompatibleInput as ds, type AthenaAuthCallOptions as e, type AthenaAuthClientConfig as f, type AthenaAuthCredentials as g, type AthenaAuthEmailChangeResponse as h, type AthenaAuthEmailTemplateBuilder as i, type AthenaAuthEmailTemplateCreateFromDefinitionInput as j, type AthenaAuthEmailTemplateDefinition as k, type AthenaAuthEmailTemplateReactOverrides as l, type AthenaAuthEmailTemplateUpdateFromDefinitionInput as m, type AthenaAuthEndpointPath as n, type AthenaAuthErrorCode as o, type AthenaAuthErrorDetails as p, type AthenaAuthFilterOperator as q, type AthenaAuthGenericInput as r, type AthenaAuthGenericQueryInput as s, type AthenaAuthLinkedAccount as t, type AthenaAuthMethod as u, type AthenaAuthOrganization as v, type AthenaAuthOrganizationBindings as w, type AthenaAuthOrganizationInvitation as x, type AthenaAuthOrganizationMember as y, type AthenaAuthQueryPrimitive as z };
|
|
4130
|
+
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 };
|