@xylex-group/athena 2.3.0 → 2.4.1
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 +195 -106
- package/dist/browser.cjs +870 -154
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +7 -7
- package/dist/browser.d.ts +7 -7
- package/dist/browser.js +869 -155
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +905 -144
- 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 +905 -144
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +870 -154
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +869 -155
- package/dist/index.js.map +1 -1
- package/dist/{model-form-hoE2jHIi.d.cts → model-form-4LPnOPAF.d.cts} +9 -5
- package/dist/{model-form-BpDXlbxb.d.ts → model-form-CO4-LmNC.d.ts} +9 -5
- package/dist/{pipeline-BNIw8pDQ.d.ts → pipeline-CR4V15jF.d.ts} +1 -1
- package/dist/{pipeline-DNIpEsN8.d.cts → pipeline-DZeExYMA.d.cts} +1 -1
- package/dist/{react-email-qPA1wjFV.d.ts → react-email-6mOyxBo4.d.cts} +60 -13
- package/dist/{react-email-BvyCZnfW.d.cts → react-email-Buhcpglm.d.ts} +60 -13
- package/dist/react.cjs +333 -16
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +333 -16
- package/dist/react.js.map +1 -1
- package/dist/{types-A5e97acl.d.cts → types-09Q4D86N.d.cts} +23 -2
- package/dist/{types-A5e97acl.d.ts → types-09Q4D86N.d.ts} +23 -2
- package/dist/{types-bDlr4u7p.d.cts → types-D1JvL21V.d.cts} +1 -1
- package/dist/{types-BnD22-vb.d.ts → types-DU3gNdFv.d.ts} +1 -1
- package/dist/utils.cjs +131 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +42 -1
- package/dist/utils.d.ts +42 -1
- package/dist/utils.js +117 -1
- package/dist/utils.js.map +1 -1
- package/package.json +40 -40
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as AthenaGatewayErrorCode, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, W as AthenaGatewayResponse, L as AnyModelDef, E as RowOf, q as InsertOf, U as UpdateOf } from './types-09Q4D86N.cjs';
|
|
2
2
|
|
|
3
3
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
4
4
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -399,17 +399,21 @@ interface AthenaAdminBanUserRequest extends AthenaAdminTargetUserRequest {
|
|
|
399
399
|
banReason?: string;
|
|
400
400
|
banExpiresIn?: string;
|
|
401
401
|
}
|
|
402
|
+
type AthenaAuthSearchOperator = 'contains' | 'starts_with' | 'ends_with';
|
|
403
|
+
type AthenaAuthFilterOperator = 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte' | 'in' | 'not_in' | 'contains' | 'starts_with' | 'ends_with';
|
|
404
|
+
type AthenaAdminListUsersSearchOperator = AthenaAuthSearchOperator;
|
|
405
|
+
type AthenaAdminListUsersFilterOperator = AthenaAuthFilterOperator;
|
|
402
406
|
interface AthenaAdminListUsersQuery {
|
|
403
407
|
searchValue?: string;
|
|
404
408
|
searchField?: string;
|
|
405
|
-
searchOperator?:
|
|
409
|
+
searchOperator?: AthenaAdminListUsersSearchOperator;
|
|
406
410
|
limit?: number | string;
|
|
407
411
|
offset?: number | string;
|
|
408
412
|
sortBy?: string;
|
|
409
413
|
sortDirection?: string;
|
|
410
414
|
filterField?: string;
|
|
411
415
|
filterValue?: string;
|
|
412
|
-
filterOperator?:
|
|
416
|
+
filterOperator?: AthenaAdminListUsersFilterOperator;
|
|
413
417
|
}
|
|
414
418
|
interface AthenaAdminListUsersResponse {
|
|
415
419
|
users: AthenaAuthUser[];
|
|
@@ -820,7 +824,7 @@ interface AthenaAuthOrganizationListInvitationsQuery {
|
|
|
820
824
|
interface AthenaAuthOrganizationListUserInvitationsQuery {
|
|
821
825
|
email?: string;
|
|
822
826
|
}
|
|
823
|
-
type AthenaAuthOrganizationListMembersFilterOperator =
|
|
827
|
+
type AthenaAuthOrganizationListMembersFilterOperator = AthenaAuthFilterOperator;
|
|
824
828
|
interface AthenaAuthOrganizationListMembersQuery {
|
|
825
829
|
organizationId?: string;
|
|
826
830
|
limit?: number;
|
|
@@ -1376,4 +1380,4 @@ interface ModelFormAdapter<TModel extends AnyModelDef> {
|
|
|
1376
1380
|
*/
|
|
1377
1381
|
declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
|
|
1378
1382
|
|
|
1379
|
-
export { type
|
|
1383
|
+
export { type AthenaDeleteUserResponse 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, type AthenaDeleteUserCallbackRequest as Z, type AthenaDeleteUserRequest as _, type AthenaAdminListUsersQuery as a, type AthenaEmailSignInRequest as a0, type AthenaEmailSignUpRequest as a1, type AthenaForgetPasswordRequest as a2, AthenaGatewayError as a3, type AthenaLinkSocialRequest as a4, type AthenaOAuthAccountTokenRequest as a5, type AthenaOAuthTokenBundle as a6, type AthenaResetPasswordRequest as a7, type AthenaSendVerificationEmailRequest as a8, type AthenaSocialSignInRequest as a9, type AthenaUnlinkAccountRequest as aa, type AthenaUpdateUserRequest as ab, type AthenaUsernameSignInRequest as ac, type AthenaVerifyEmailRequest as ad, type ModelFormAdapter as ae, type ModelFormDefaults as af, type ModelFormNullishMode as ag, type ModelFormValues as ah, type ToModelFormDefaultsOptions as ai, type ToModelPayloadOptions as aj, createModelFormAdapter as ak, isAthenaGatewayError as al, toModelFormDefaults as am, toModelPayload as an, type AthenaAuthFetchCompatibleInput as ao, type AthenaAdminListUsersSearchOperator as b, type AthenaAuthAdminUserSessionRevokeBinding as c, type AthenaAuthBindings as d, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as AthenaGatewayErrorCode, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, W as AthenaGatewayResponse, L as AnyModelDef, E as RowOf, q as InsertOf, U as UpdateOf } from './types-09Q4D86N.js';
|
|
2
2
|
|
|
3
3
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
4
4
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -399,17 +399,21 @@ interface AthenaAdminBanUserRequest extends AthenaAdminTargetUserRequest {
|
|
|
399
399
|
banReason?: string;
|
|
400
400
|
banExpiresIn?: string;
|
|
401
401
|
}
|
|
402
|
+
type AthenaAuthSearchOperator = 'contains' | 'starts_with' | 'ends_with';
|
|
403
|
+
type AthenaAuthFilterOperator = 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte' | 'in' | 'not_in' | 'contains' | 'starts_with' | 'ends_with';
|
|
404
|
+
type AthenaAdminListUsersSearchOperator = AthenaAuthSearchOperator;
|
|
405
|
+
type AthenaAdminListUsersFilterOperator = AthenaAuthFilterOperator;
|
|
402
406
|
interface AthenaAdminListUsersQuery {
|
|
403
407
|
searchValue?: string;
|
|
404
408
|
searchField?: string;
|
|
405
|
-
searchOperator?:
|
|
409
|
+
searchOperator?: AthenaAdminListUsersSearchOperator;
|
|
406
410
|
limit?: number | string;
|
|
407
411
|
offset?: number | string;
|
|
408
412
|
sortBy?: string;
|
|
409
413
|
sortDirection?: string;
|
|
410
414
|
filterField?: string;
|
|
411
415
|
filterValue?: string;
|
|
412
|
-
filterOperator?:
|
|
416
|
+
filterOperator?: AthenaAdminListUsersFilterOperator;
|
|
413
417
|
}
|
|
414
418
|
interface AthenaAdminListUsersResponse {
|
|
415
419
|
users: AthenaAuthUser[];
|
|
@@ -820,7 +824,7 @@ interface AthenaAuthOrganizationListInvitationsQuery {
|
|
|
820
824
|
interface AthenaAuthOrganizationListUserInvitationsQuery {
|
|
821
825
|
email?: string;
|
|
822
826
|
}
|
|
823
|
-
type AthenaAuthOrganizationListMembersFilterOperator =
|
|
827
|
+
type AthenaAuthOrganizationListMembersFilterOperator = AthenaAuthFilterOperator;
|
|
824
828
|
interface AthenaAuthOrganizationListMembersQuery {
|
|
825
829
|
organizationId?: string;
|
|
826
830
|
limit?: number;
|
|
@@ -1376,4 +1380,4 @@ interface ModelFormAdapter<TModel extends AnyModelDef> {
|
|
|
1376
1380
|
*/
|
|
1377
1381
|
declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
|
|
1378
1382
|
|
|
1379
|
-
export { type
|
|
1383
|
+
export { type AthenaDeleteUserResponse 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, type AthenaDeleteUserCallbackRequest as Z, type AthenaDeleteUserRequest as _, type AthenaAdminListUsersQuery as a, type AthenaEmailSignInRequest as a0, type AthenaEmailSignUpRequest as a1, type AthenaForgetPasswordRequest as a2, AthenaGatewayError as a3, type AthenaLinkSocialRequest as a4, type AthenaOAuthAccountTokenRequest as a5, type AthenaOAuthTokenBundle as a6, type AthenaResetPasswordRequest as a7, type AthenaSendVerificationEmailRequest as a8, type AthenaSocialSignInRequest as a9, type AthenaUnlinkAccountRequest as aa, type AthenaUpdateUserRequest as ab, type AthenaUsernameSignInRequest as ac, type AthenaVerifyEmailRequest as ad, type ModelFormAdapter as ae, type ModelFormDefaults as af, type ModelFormNullishMode as ag, type ModelFormValues as ah, type ToModelFormDefaultsOptions as ai, type ToModelPayloadOptions as aj, createModelFormAdapter as ak, isAthenaGatewayError as al, toModelFormDefaults as am, toModelPayload as an, type AthenaAuthFetchCompatibleInput as ao, type AthenaAdminListUsersSearchOperator as b, type AthenaAuthAdminUserSessionRevokeBinding as c, type AthenaAuthBindings as d, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RunGeneratorOptions, l as RunGeneratorResult } from './types-
|
|
1
|
+
import { R as RunGeneratorOptions, l as RunGeneratorResult } from './types-DU3gNdFv.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* End-to-end generator execution: load config, introspect, render, and optionally write files.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RunGeneratorOptions, l as RunGeneratorResult } from './types-
|
|
1
|
+
import { R as RunGeneratorOptions, l as RunGeneratorResult } from './types-D1JvL21V.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* End-to-end generator execution: load config, introspect, render, and optionally write files.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { j as GeneratorSchemaSelection, b as GeneratorProviderConfig } from './types-
|
|
1
|
+
import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, J as AthenaConditionValue, K as AthenaConditionArrayValue, R as RegistryDef, D as DatabaseDef, F as SchemaDef, L as AnyModelDef, x as ModelDef, C as ModelRelationMetadata, E as RowOf, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, N as AthenaConditionOperator, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, y as ModelMetadata, H as TenantKeyMap, T as TenantContext, M as ModelAt, q as InsertOf, U as UpdateOf, S as SchemaIntrospectionProvider, r as IntrospectionColumn } from './types-09Q4D86N.cjs';
|
|
2
|
+
import { f as AthenaAuthClientConfig, d as AthenaAuthBindings, N as AthenaAuthSdkClient, F as AthenaAuthReactEmailProps, C as AthenaAuthReactEmailComponent, H as AthenaAuthReactEmailRenderInput, k as AthenaAuthEmailTemplateDefinition, i as AthenaAuthEmailTemplateBuilder, I as AthenaAuthReactEmailRenderOptions, G as AthenaAuthReactEmailRenderEvent, D as AthenaAuthReactEmailConfig } from './model-form-4LPnOPAF.cjs';
|
|
3
|
+
import { j as GeneratorSchemaSelection, b as GeneratorProviderConfig } from './types-D1JvL21V.cjs';
|
|
4
4
|
|
|
5
5
|
type AthenaErrorKind = 'unique_violation' | 'not_found' | 'validation' | 'auth' | 'rate_limit' | 'transient' | 'unknown';
|
|
6
6
|
declare const AthenaErrorKind: {
|
|
@@ -183,7 +183,7 @@ type AthenaUpsertOptions<Update> = AthenaGatewayCallOptions & {
|
|
|
183
183
|
onConflict?: string | string[];
|
|
184
184
|
};
|
|
185
185
|
interface AthenaDbModule {
|
|
186
|
-
from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: string): TableQueryBuilder<Row, Insert, Update>;
|
|
186
|
+
from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update>;
|
|
187
187
|
select<Row = AthenaRowShape$2, SelectedRow = Row>(table: string, columns?: string | string[], options?: AthenaGatewayCallOptions): SelectChain<Row, SelectedRow>;
|
|
188
188
|
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: string, values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row>;
|
|
189
189
|
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: string, values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[]>;
|
|
@@ -200,6 +200,7 @@ interface AthenaDbModule {
|
|
|
200
200
|
type AthenaRowShape$1 = Record<string, AthenaJsonValue | undefined>;
|
|
201
201
|
type FilterColumnKey$1<Row> = Extract<keyof NonNullable<Row>, string>;
|
|
202
202
|
type ResolvedFilterColumnKey$1<Row> = [FilterColumnKey$1<Row>] extends [never] ? string : FilterColumnKey$1<Row>;
|
|
203
|
+
type AthenaFilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'like' | 'ilike' | 'is' | 'in' | 'contains' | 'containedBy';
|
|
203
204
|
type AthenaWherePrimitive = AthenaConditionValue;
|
|
204
205
|
type AthenaWhereOperatorInput = {
|
|
205
206
|
eq?: AthenaConditionValue;
|
|
@@ -215,17 +216,45 @@ type AthenaWhereOperatorInput = {
|
|
|
215
216
|
contains?: AthenaConditionArrayValue;
|
|
216
217
|
containedBy?: AthenaConditionArrayValue;
|
|
217
218
|
};
|
|
218
|
-
type
|
|
219
|
-
type
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
type AthenaWhereColumnInput<Row = AthenaRowShape$1> = Partial<Record<ResolvedFilterColumnKey$1<Row>, AthenaWherePrimitive | AthenaWhereOperatorInput>>;
|
|
220
|
+
type AthenaBooleanSafeOperator = Exclude<AthenaFilterOperator, 'in' | 'contains' | 'containedBy'>;
|
|
221
|
+
type AthenaWhereBooleanSafeOperatorInput = Partial<Record<AthenaBooleanSafeOperator, AthenaConditionValue>>;
|
|
222
|
+
type AthenaWhereBooleanNotOperatorInput = {
|
|
223
|
+
[K in AthenaBooleanSafeOperator]: {
|
|
224
|
+
[P in K]: AthenaConditionValue;
|
|
225
|
+
} & Partial<Record<Exclude<AthenaBooleanSafeOperator, K>, never>>;
|
|
226
|
+
}[AthenaBooleanSafeOperator];
|
|
227
|
+
type AthenaStrictBooleanOperand<Keys extends string, Value> = {
|
|
228
|
+
[K in Keys]: {
|
|
229
|
+
[P in K]: Value;
|
|
230
|
+
} & Partial<Record<Exclude<Keys, K>, never>>;
|
|
231
|
+
}[Keys];
|
|
232
|
+
type AthenaNonEmptyArray<T> = [T, ...T[]];
|
|
233
|
+
type AthenaWhereBooleanOperand<Row = AthenaRowShape$1> = string extends ResolvedFilterColumnKey$1<Row> ? AthenaWhereColumnInput<Row> : AthenaStrictBooleanOperand<ResolvedFilterColumnKey$1<Row>, AthenaWherePrimitive | AthenaWhereBooleanSafeOperatorInput>;
|
|
234
|
+
type AthenaWhereNotOperand<Row = AthenaRowShape$1> = string extends ResolvedFilterColumnKey$1<Row> ? AthenaWhereColumnInput<Row> : AthenaStrictBooleanOperand<ResolvedFilterColumnKey$1<Row>, AthenaWherePrimitive | AthenaWhereBooleanNotOperatorInput>;
|
|
235
|
+
type AthenaWhere<Row = AthenaRowShape$1> = AthenaWhereColumnInput<Row> & {
|
|
236
|
+
or?: string extends ResolvedFilterColumnKey$1<Row> ? Array<AthenaWhereColumnInput<Row>> : AthenaNonEmptyArray<AthenaWhereBooleanOperand<Row>>;
|
|
237
|
+
not?: AthenaWhereNotOperand<Row>;
|
|
222
238
|
};
|
|
223
239
|
interface AthenaRelationSelectNode<TSelect extends AthenaSelectShape = AthenaSelectShape> {
|
|
224
240
|
select: TSelect;
|
|
225
241
|
as?: string;
|
|
226
242
|
via?: string;
|
|
243
|
+
schema?: string;
|
|
227
244
|
}
|
|
228
245
|
type AthenaSelectShape = Record<string, true | AthenaRelationSelectNode<AthenaSelectShape>>;
|
|
246
|
+
type AthenaAllowedRelationSelectNodeKey = 'select' | 'as' | 'via' | 'schema';
|
|
247
|
+
type AthenaValidatedRelationSelectNode<TNode> = TNode extends {
|
|
248
|
+
select: infer TChild;
|
|
249
|
+
} ? Exclude<keyof TNode, AthenaAllowedRelationSelectNodeKey> extends never ? TNode extends {
|
|
250
|
+
schema: string;
|
|
251
|
+
via: string;
|
|
252
|
+
} ? never : TChild extends Record<string, unknown> ? {
|
|
253
|
+
[K in keyof TNode]: K extends 'select' ? AthenaValidatedSelectShape<TChild> : K extends AthenaAllowedRelationSelectNodeKey ? TNode[K] : never;
|
|
254
|
+
} : never : never : never;
|
|
255
|
+
type AthenaValidatedSelectShape<TSelect> = {
|
|
256
|
+
[K in keyof TSelect]: TSelect[K] extends true ? true : AthenaValidatedRelationSelectNode<TSelect[K]>;
|
|
257
|
+
};
|
|
229
258
|
type GenericRegistryDef = RegistryDef<Record<string, DatabaseDef<Record<string, SchemaDef<Record<string, AnyModelDef>>>>>>;
|
|
230
259
|
type AthenaOrderByDirectionInput = 'asc' | 'desc' | 'ascending' | 'descending' | boolean | {
|
|
231
260
|
ascending?: boolean;
|
|
@@ -314,6 +343,12 @@ interface AthenaClientExperimentalOptions {
|
|
|
314
343
|
* envelopes by default. This flag is retained as a no-op compatibility switch.
|
|
315
344
|
*/
|
|
316
345
|
enableErrorNormalization?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* Retry retryable read failures (`select`, `findMany`, `query`) with a fixed internal policy.
|
|
348
|
+
*
|
|
349
|
+
* Applies two additional attempts with exponential backoff and jitter.
|
|
350
|
+
*/
|
|
351
|
+
retryReads?: boolean;
|
|
317
352
|
/**
|
|
318
353
|
* Emit execution diagnostics for every query/mutation/RPC invocation.
|
|
319
354
|
* Includes payload, synthesized SQL, full outcome, and best-effort callsite metadata.
|
|
@@ -437,9 +472,14 @@ interface RpcQueryBuilder<Row> extends RpcFilterChain<RpcQueryBuilder<Row>>, Pro
|
|
|
437
472
|
offset(count: number): RpcQueryBuilder<Row>;
|
|
438
473
|
range(from: number, to: number): RpcQueryBuilder<Row>;
|
|
439
474
|
}
|
|
475
|
+
interface AthenaFromOptions {
|
|
476
|
+
schema?: string;
|
|
477
|
+
}
|
|
440
478
|
interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>, TContext = unknown> extends FilterChain<TableQueryBuilder<Row, Insert, Update, TContext>, Row> {
|
|
441
479
|
select<T = Row>(columns?: string | string[], options?: AthenaGatewayCallOptions): SelectChain<Row, T>;
|
|
442
|
-
findMany<const TSelect extends AthenaSelectShape>(options: AthenaFindManyOptions<Row, TSelect>
|
|
480
|
+
findMany<const TSelect extends AthenaSelectShape>(options: AthenaFindManyOptions<Row, TSelect> & {
|
|
481
|
+
select: AthenaValidatedSelectShape<TSelect>;
|
|
482
|
+
}): Promise<AthenaResult<Array<AthenaFindManyResult<Row, TSelect, TContext>>>>;
|
|
443
483
|
insert(values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row>;
|
|
444
484
|
insert(values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[]>;
|
|
445
485
|
upsert(values: Insert, options?: AthenaGatewayCallOptions & {
|
|
@@ -459,10 +499,11 @@ interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>
|
|
|
459
499
|
reset(): TableQueryBuilder<Row, Insert, Update, TContext>;
|
|
460
500
|
}
|
|
461
501
|
interface AthenaSdkClient {
|
|
462
|
-
from<Row = AthenaRowShape, Insert = Partial<Row>, Update = Partial<Insert>>(table: string): TableQueryBuilder<Row, Insert, Update>;
|
|
502
|
+
from<Row = AthenaRowShape, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update>;
|
|
463
503
|
db: AthenaDbModule;
|
|
464
504
|
rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row>;
|
|
465
505
|
query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
|
|
506
|
+
verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
466
507
|
}
|
|
467
508
|
interface AthenaSdkClientWithAuth extends AthenaSdkClient {
|
|
468
509
|
auth: AthenaAuthBindings;
|
|
@@ -484,8 +525,6 @@ interface AthenaClientBuilder {
|
|
|
484
525
|
experimental(options: AthenaClientExperimentalOptions): AthenaClientBuilder;
|
|
485
526
|
/** Apply the same options object accepted by `createClient(url, key, options)`. */
|
|
486
527
|
options(options: AthenaCreateClientOptions): AthenaClientBuilder;
|
|
487
|
-
/** Enable or disable health tracking metadata. */
|
|
488
|
-
healthTracking(enabled: boolean): AthenaClientBuilder;
|
|
489
528
|
/** Build the immutable Athena SDK client. */
|
|
490
529
|
build(): AthenaSdkClientWithAuth;
|
|
491
530
|
}
|
|
@@ -503,6 +542,14 @@ interface AthenaCreateClientOptions extends Pick<AthenaGatewayCallOptions, 'clie
|
|
|
503
542
|
/** Create client (convenience wrapper; use AthenaClient.builder() for full control) */
|
|
504
543
|
declare function createClient(url: string, apiKey: string, options?: AthenaCreateClientOptions): AthenaSdkClientWithAuth;
|
|
505
544
|
|
|
545
|
+
declare function verifyAthenaGatewayUrl(baseUrl: string, options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
546
|
+
|
|
547
|
+
interface NormalizeAthenaGatewayBaseUrlOptions {
|
|
548
|
+
defaultBaseUrl?: string;
|
|
549
|
+
label?: string;
|
|
550
|
+
}
|
|
551
|
+
declare function normalizeAthenaGatewayBaseUrl(input: string | null | undefined, options?: NormalizeAthenaGatewayBaseUrlOptions): string;
|
|
552
|
+
|
|
506
553
|
/**
|
|
507
554
|
* Immutable identifier object with consistent SQL rendering.
|
|
508
555
|
*/
|
|
@@ -607,4 +654,4 @@ declare function createAuthReactEmailInput<TProps extends AthenaAuthReactEmailPr
|
|
|
607
654
|
declare function defineAuthEmailTemplate<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps>(definition: AthenaAuthEmailTemplateDefinition<TProps>): AthenaAuthEmailTemplateBuilder<TProps>;
|
|
608
655
|
declare function renderAthenaReactEmail(input: AthenaAuthReactEmailRenderInput, options?: AthenaAuthReactEmailRuntimeOptions | AthenaAuthReactEmailConfig): Promise<AthenaAuthRenderedReactEmail>;
|
|
609
656
|
|
|
610
|
-
export {
|
|
657
|
+
export { isOk as $, AthenaClient as A, type RetryConfig as B, type RpcOrderOptions as C, DEFAULT_POSTGRES_SCHEMAS as D, type RpcQueryBuilder as E, type TypedAthenaClient as F, type TypedClientOptions as G, type UnwrapOptions as H, type IntCoercionOptions as I, assertInt as J, coerceInt as K, createAuthClient as L, createAuthReactEmailInput as M, type NormalizedAthenaError as N, createClient as O, type PostgresIntrospectionProviderOptions as P, createPostgresIntrospectionProvider as Q, type RequireAffectedOptions as R, createTypedClient as S, type TableQueryBuilder as T, type UnwrapOneOptions as U, defineAuthEmailTemplate as V, defineDatabase as W, defineModel as X, defineRegistry as Y, defineSchema as Z, identifier as _, type AthenaClientExperimentalOptions as a, normalizeAthenaError as a0, normalizeAthenaGatewayBaseUrl as a1, normalizeSchemaSelection as a2, parseBooleanFlag as a3, renderAthenaReactEmail as a4, requireAffected as a5, requireSuccess as a6, resolvePostgresColumnType as a7, resolveProviderSchemas as a8, unwrap as a9, unwrapOne as aa, unwrapRows as ab, verifyAthenaGatewayUrl as ac, withRetry as ad, type AthenaCreateClientOptions as b, type AthenaDbModule as c, AthenaError as d, AthenaErrorCategory as e, AthenaErrorCode as f, type AthenaErrorInput as g, AthenaErrorKind as h, type AthenaFindManyOptions as i, type AthenaFindManyResult as j, type AthenaFromOptions as k, type AthenaOperationContext as l, type AthenaOrderBy as m, type AthenaQueryTraceCallsite as n, type AthenaQueryTraceEvent as o, type AthenaQueryTraceOptions as p, type AthenaRelationSelectNode as q, type AthenaResult as r, type AthenaResultError as s, type AthenaSdkClient as t, type AthenaSdkClientWithAuth as u, type AthenaSelectShape as v, type AthenaWhere as w, type AthenaWhereBooleanOperand as x, type AthenaWhereOperatorInput as y, type RetryBackoffStrategy as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { j as GeneratorSchemaSelection, b as GeneratorProviderConfig } from './types-
|
|
1
|
+
import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, J as AthenaConditionValue, K as AthenaConditionArrayValue, R as RegistryDef, D as DatabaseDef, F as SchemaDef, L as AnyModelDef, x as ModelDef, C as ModelRelationMetadata, E as RowOf, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, N as AthenaConditionOperator, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, y as ModelMetadata, H as TenantKeyMap, T as TenantContext, M as ModelAt, q as InsertOf, U as UpdateOf, S as SchemaIntrospectionProvider, r as IntrospectionColumn } from './types-09Q4D86N.js';
|
|
2
|
+
import { f as AthenaAuthClientConfig, d as AthenaAuthBindings, N as AthenaAuthSdkClient, F as AthenaAuthReactEmailProps, C as AthenaAuthReactEmailComponent, H as AthenaAuthReactEmailRenderInput, k as AthenaAuthEmailTemplateDefinition, i as AthenaAuthEmailTemplateBuilder, I as AthenaAuthReactEmailRenderOptions, G as AthenaAuthReactEmailRenderEvent, D as AthenaAuthReactEmailConfig } from './model-form-CO4-LmNC.js';
|
|
3
|
+
import { j as GeneratorSchemaSelection, b as GeneratorProviderConfig } from './types-DU3gNdFv.js';
|
|
4
4
|
|
|
5
5
|
type AthenaErrorKind = 'unique_violation' | 'not_found' | 'validation' | 'auth' | 'rate_limit' | 'transient' | 'unknown';
|
|
6
6
|
declare const AthenaErrorKind: {
|
|
@@ -183,7 +183,7 @@ type AthenaUpsertOptions<Update> = AthenaGatewayCallOptions & {
|
|
|
183
183
|
onConflict?: string | string[];
|
|
184
184
|
};
|
|
185
185
|
interface AthenaDbModule {
|
|
186
|
-
from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: string): TableQueryBuilder<Row, Insert, Update>;
|
|
186
|
+
from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update>;
|
|
187
187
|
select<Row = AthenaRowShape$2, SelectedRow = Row>(table: string, columns?: string | string[], options?: AthenaGatewayCallOptions): SelectChain<Row, SelectedRow>;
|
|
188
188
|
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: string, values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row>;
|
|
189
189
|
insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: string, values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[]>;
|
|
@@ -200,6 +200,7 @@ interface AthenaDbModule {
|
|
|
200
200
|
type AthenaRowShape$1 = Record<string, AthenaJsonValue | undefined>;
|
|
201
201
|
type FilterColumnKey$1<Row> = Extract<keyof NonNullable<Row>, string>;
|
|
202
202
|
type ResolvedFilterColumnKey$1<Row> = [FilterColumnKey$1<Row>] extends [never] ? string : FilterColumnKey$1<Row>;
|
|
203
|
+
type AthenaFilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'like' | 'ilike' | 'is' | 'in' | 'contains' | 'containedBy';
|
|
203
204
|
type AthenaWherePrimitive = AthenaConditionValue;
|
|
204
205
|
type AthenaWhereOperatorInput = {
|
|
205
206
|
eq?: AthenaConditionValue;
|
|
@@ -215,17 +216,45 @@ type AthenaWhereOperatorInput = {
|
|
|
215
216
|
contains?: AthenaConditionArrayValue;
|
|
216
217
|
containedBy?: AthenaConditionArrayValue;
|
|
217
218
|
};
|
|
218
|
-
type
|
|
219
|
-
type
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
type AthenaWhereColumnInput<Row = AthenaRowShape$1> = Partial<Record<ResolvedFilterColumnKey$1<Row>, AthenaWherePrimitive | AthenaWhereOperatorInput>>;
|
|
220
|
+
type AthenaBooleanSafeOperator = Exclude<AthenaFilterOperator, 'in' | 'contains' | 'containedBy'>;
|
|
221
|
+
type AthenaWhereBooleanSafeOperatorInput = Partial<Record<AthenaBooleanSafeOperator, AthenaConditionValue>>;
|
|
222
|
+
type AthenaWhereBooleanNotOperatorInput = {
|
|
223
|
+
[K in AthenaBooleanSafeOperator]: {
|
|
224
|
+
[P in K]: AthenaConditionValue;
|
|
225
|
+
} & Partial<Record<Exclude<AthenaBooleanSafeOperator, K>, never>>;
|
|
226
|
+
}[AthenaBooleanSafeOperator];
|
|
227
|
+
type AthenaStrictBooleanOperand<Keys extends string, Value> = {
|
|
228
|
+
[K in Keys]: {
|
|
229
|
+
[P in K]: Value;
|
|
230
|
+
} & Partial<Record<Exclude<Keys, K>, never>>;
|
|
231
|
+
}[Keys];
|
|
232
|
+
type AthenaNonEmptyArray<T> = [T, ...T[]];
|
|
233
|
+
type AthenaWhereBooleanOperand<Row = AthenaRowShape$1> = string extends ResolvedFilterColumnKey$1<Row> ? AthenaWhereColumnInput<Row> : AthenaStrictBooleanOperand<ResolvedFilterColumnKey$1<Row>, AthenaWherePrimitive | AthenaWhereBooleanSafeOperatorInput>;
|
|
234
|
+
type AthenaWhereNotOperand<Row = AthenaRowShape$1> = string extends ResolvedFilterColumnKey$1<Row> ? AthenaWhereColumnInput<Row> : AthenaStrictBooleanOperand<ResolvedFilterColumnKey$1<Row>, AthenaWherePrimitive | AthenaWhereBooleanNotOperatorInput>;
|
|
235
|
+
type AthenaWhere<Row = AthenaRowShape$1> = AthenaWhereColumnInput<Row> & {
|
|
236
|
+
or?: string extends ResolvedFilterColumnKey$1<Row> ? Array<AthenaWhereColumnInput<Row>> : AthenaNonEmptyArray<AthenaWhereBooleanOperand<Row>>;
|
|
237
|
+
not?: AthenaWhereNotOperand<Row>;
|
|
222
238
|
};
|
|
223
239
|
interface AthenaRelationSelectNode<TSelect extends AthenaSelectShape = AthenaSelectShape> {
|
|
224
240
|
select: TSelect;
|
|
225
241
|
as?: string;
|
|
226
242
|
via?: string;
|
|
243
|
+
schema?: string;
|
|
227
244
|
}
|
|
228
245
|
type AthenaSelectShape = Record<string, true | AthenaRelationSelectNode<AthenaSelectShape>>;
|
|
246
|
+
type AthenaAllowedRelationSelectNodeKey = 'select' | 'as' | 'via' | 'schema';
|
|
247
|
+
type AthenaValidatedRelationSelectNode<TNode> = TNode extends {
|
|
248
|
+
select: infer TChild;
|
|
249
|
+
} ? Exclude<keyof TNode, AthenaAllowedRelationSelectNodeKey> extends never ? TNode extends {
|
|
250
|
+
schema: string;
|
|
251
|
+
via: string;
|
|
252
|
+
} ? never : TChild extends Record<string, unknown> ? {
|
|
253
|
+
[K in keyof TNode]: K extends 'select' ? AthenaValidatedSelectShape<TChild> : K extends AthenaAllowedRelationSelectNodeKey ? TNode[K] : never;
|
|
254
|
+
} : never : never : never;
|
|
255
|
+
type AthenaValidatedSelectShape<TSelect> = {
|
|
256
|
+
[K in keyof TSelect]: TSelect[K] extends true ? true : AthenaValidatedRelationSelectNode<TSelect[K]>;
|
|
257
|
+
};
|
|
229
258
|
type GenericRegistryDef = RegistryDef<Record<string, DatabaseDef<Record<string, SchemaDef<Record<string, AnyModelDef>>>>>>;
|
|
230
259
|
type AthenaOrderByDirectionInput = 'asc' | 'desc' | 'ascending' | 'descending' | boolean | {
|
|
231
260
|
ascending?: boolean;
|
|
@@ -314,6 +343,12 @@ interface AthenaClientExperimentalOptions {
|
|
|
314
343
|
* envelopes by default. This flag is retained as a no-op compatibility switch.
|
|
315
344
|
*/
|
|
316
345
|
enableErrorNormalization?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* Retry retryable read failures (`select`, `findMany`, `query`) with a fixed internal policy.
|
|
348
|
+
*
|
|
349
|
+
* Applies two additional attempts with exponential backoff and jitter.
|
|
350
|
+
*/
|
|
351
|
+
retryReads?: boolean;
|
|
317
352
|
/**
|
|
318
353
|
* Emit execution diagnostics for every query/mutation/RPC invocation.
|
|
319
354
|
* Includes payload, synthesized SQL, full outcome, and best-effort callsite metadata.
|
|
@@ -437,9 +472,14 @@ interface RpcQueryBuilder<Row> extends RpcFilterChain<RpcQueryBuilder<Row>>, Pro
|
|
|
437
472
|
offset(count: number): RpcQueryBuilder<Row>;
|
|
438
473
|
range(from: number, to: number): RpcQueryBuilder<Row>;
|
|
439
474
|
}
|
|
475
|
+
interface AthenaFromOptions {
|
|
476
|
+
schema?: string;
|
|
477
|
+
}
|
|
440
478
|
interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>, TContext = unknown> extends FilterChain<TableQueryBuilder<Row, Insert, Update, TContext>, Row> {
|
|
441
479
|
select<T = Row>(columns?: string | string[], options?: AthenaGatewayCallOptions): SelectChain<Row, T>;
|
|
442
|
-
findMany<const TSelect extends AthenaSelectShape>(options: AthenaFindManyOptions<Row, TSelect>
|
|
480
|
+
findMany<const TSelect extends AthenaSelectShape>(options: AthenaFindManyOptions<Row, TSelect> & {
|
|
481
|
+
select: AthenaValidatedSelectShape<TSelect>;
|
|
482
|
+
}): Promise<AthenaResult<Array<AthenaFindManyResult<Row, TSelect, TContext>>>>;
|
|
443
483
|
insert(values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row>;
|
|
444
484
|
insert(values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[]>;
|
|
445
485
|
upsert(values: Insert, options?: AthenaGatewayCallOptions & {
|
|
@@ -459,10 +499,11 @@ interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>
|
|
|
459
499
|
reset(): TableQueryBuilder<Row, Insert, Update, TContext>;
|
|
460
500
|
}
|
|
461
501
|
interface AthenaSdkClient {
|
|
462
|
-
from<Row = AthenaRowShape, Insert = Partial<Row>, Update = Partial<Insert>>(table: string): TableQueryBuilder<Row, Insert, Update>;
|
|
502
|
+
from<Row = AthenaRowShape, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update>;
|
|
463
503
|
db: AthenaDbModule;
|
|
464
504
|
rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row>;
|
|
465
505
|
query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
|
|
506
|
+
verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
466
507
|
}
|
|
467
508
|
interface AthenaSdkClientWithAuth extends AthenaSdkClient {
|
|
468
509
|
auth: AthenaAuthBindings;
|
|
@@ -484,8 +525,6 @@ interface AthenaClientBuilder {
|
|
|
484
525
|
experimental(options: AthenaClientExperimentalOptions): AthenaClientBuilder;
|
|
485
526
|
/** Apply the same options object accepted by `createClient(url, key, options)`. */
|
|
486
527
|
options(options: AthenaCreateClientOptions): AthenaClientBuilder;
|
|
487
|
-
/** Enable or disable health tracking metadata. */
|
|
488
|
-
healthTracking(enabled: boolean): AthenaClientBuilder;
|
|
489
528
|
/** Build the immutable Athena SDK client. */
|
|
490
529
|
build(): AthenaSdkClientWithAuth;
|
|
491
530
|
}
|
|
@@ -503,6 +542,14 @@ interface AthenaCreateClientOptions extends Pick<AthenaGatewayCallOptions, 'clie
|
|
|
503
542
|
/** Create client (convenience wrapper; use AthenaClient.builder() for full control) */
|
|
504
543
|
declare function createClient(url: string, apiKey: string, options?: AthenaCreateClientOptions): AthenaSdkClientWithAuth;
|
|
505
544
|
|
|
545
|
+
declare function verifyAthenaGatewayUrl(baseUrl: string, options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
|
|
546
|
+
|
|
547
|
+
interface NormalizeAthenaGatewayBaseUrlOptions {
|
|
548
|
+
defaultBaseUrl?: string;
|
|
549
|
+
label?: string;
|
|
550
|
+
}
|
|
551
|
+
declare function normalizeAthenaGatewayBaseUrl(input: string | null | undefined, options?: NormalizeAthenaGatewayBaseUrlOptions): string;
|
|
552
|
+
|
|
506
553
|
/**
|
|
507
554
|
* Immutable identifier object with consistent SQL rendering.
|
|
508
555
|
*/
|
|
@@ -607,4 +654,4 @@ declare function createAuthReactEmailInput<TProps extends AthenaAuthReactEmailPr
|
|
|
607
654
|
declare function defineAuthEmailTemplate<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps>(definition: AthenaAuthEmailTemplateDefinition<TProps>): AthenaAuthEmailTemplateBuilder<TProps>;
|
|
608
655
|
declare function renderAthenaReactEmail(input: AthenaAuthReactEmailRenderInput, options?: AthenaAuthReactEmailRuntimeOptions | AthenaAuthReactEmailConfig): Promise<AthenaAuthRenderedReactEmail>;
|
|
609
656
|
|
|
610
|
-
export {
|
|
657
|
+
export { isOk as $, AthenaClient as A, type RetryConfig as B, type RpcOrderOptions as C, DEFAULT_POSTGRES_SCHEMAS as D, type RpcQueryBuilder as E, type TypedAthenaClient as F, type TypedClientOptions as G, type UnwrapOptions as H, type IntCoercionOptions as I, assertInt as J, coerceInt as K, createAuthClient as L, createAuthReactEmailInput as M, type NormalizedAthenaError as N, createClient as O, type PostgresIntrospectionProviderOptions as P, createPostgresIntrospectionProvider as Q, type RequireAffectedOptions as R, createTypedClient as S, type TableQueryBuilder as T, type UnwrapOneOptions as U, defineAuthEmailTemplate as V, defineDatabase as W, defineModel as X, defineRegistry as Y, defineSchema as Z, identifier as _, type AthenaClientExperimentalOptions as a, normalizeAthenaError as a0, normalizeAthenaGatewayBaseUrl as a1, normalizeSchemaSelection as a2, parseBooleanFlag as a3, renderAthenaReactEmail as a4, requireAffected as a5, requireSuccess as a6, resolvePostgresColumnType as a7, resolveProviderSchemas as a8, unwrap as a9, unwrapOne as aa, unwrapRows as ab, verifyAthenaGatewayUrl as ac, withRetry as ad, type AthenaCreateClientOptions as b, type AthenaDbModule as c, AthenaError as d, AthenaErrorCategory as e, AthenaErrorCode as f, type AthenaErrorInput as g, AthenaErrorKind as h, type AthenaFindManyOptions as i, type AthenaFindManyResult as j, type AthenaFromOptions as k, type AthenaOperationContext as l, type AthenaOrderBy as m, type AthenaQueryTraceCallsite as n, type AthenaQueryTraceEvent as o, type AthenaQueryTraceOptions as p, type AthenaRelationSelectNode as q, type AthenaResult as r, type AthenaResultError as s, type AthenaSdkClient as t, type AthenaSdkClientWithAuth as u, type AthenaSelectShape as v, type AthenaWhere as w, type AthenaWhereBooleanOperand as x, type AthenaWhereOperatorInput as y, type RetryBackoffStrategy as z };
|