@xylex-group/athena 1.9.0 → 2.1.2

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.
Files changed (45) hide show
  1. package/README.md +86 -68
  2. package/bin/athena-js.js +0 -0
  3. package/dist/browser.cjs +3319 -0
  4. package/dist/browser.cjs.map +1 -0
  5. package/dist/browser.d.cts +25 -0
  6. package/dist/browser.d.ts +25 -0
  7. package/dist/browser.js +3276 -0
  8. package/dist/browser.js.map +1 -0
  9. package/dist/cli/index.cjs +1839 -275
  10. package/dist/cli/index.cjs.map +1 -1
  11. package/dist/cli/index.d.cts +3 -2
  12. package/dist/cli/index.d.ts +3 -2
  13. package/dist/cli/index.js +1840 -276
  14. package/dist/cli/index.js.map +1 -1
  15. package/dist/client-BX0NQqOn.d.ts +435 -0
  16. package/dist/client-dpAp-NZK.d.cts +435 -0
  17. package/dist/cookies.cjs +890 -0
  18. package/dist/cookies.cjs.map +1 -0
  19. package/dist/cookies.d.cts +174 -0
  20. package/dist/cookies.d.ts +174 -0
  21. package/dist/cookies.js +869 -0
  22. package/dist/cookies.js.map +1 -0
  23. package/dist/index.cjs +2724 -1777
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +8 -641
  26. package/dist/index.d.ts +8 -641
  27. package/dist/index.js +2725 -1779
  28. package/dist/index.js.map +1 -1
  29. package/dist/model-form-2hqmoOUX.d.ts +1284 -0
  30. package/dist/model-form-Cy-zaO0u.d.cts +1284 -0
  31. package/dist/pipeline-BOPszLsL.d.ts +8 -0
  32. package/dist/pipeline-E3FDbs4W.d.cts +8 -0
  33. package/dist/react.cjs +93 -0
  34. package/dist/react.cjs.map +1 -1
  35. package/dist/react.d.cts +38 -4
  36. package/dist/react.d.ts +38 -4
  37. package/dist/react.js +93 -1
  38. package/dist/react.js.map +1 -1
  39. package/dist/{types-BnzoaNRC.d.cts → types-BaBzjwXr.d.cts} +1 -1
  40. package/dist/{types-BnzoaNRC.d.ts → types-BaBzjwXr.d.ts} +1 -1
  41. package/dist/{pipeline-CQgV-Yfo.d.ts → types-CeBPrnGj.d.ts} +2 -7
  42. package/dist/{pipeline-C-cN0ACi.d.cts → types-CpqL-pZx.d.cts} +2 -7
  43. package/package.json +36 -17
  44. package/dist/model-form-Bm_kqCn2.d.ts +0 -92
  45. package/dist/model-form-DkS48fsh.d.cts +0 -92
package/dist/index.d.cts CHANGED
@@ -1,379 +1,10 @@
1
- import { B as BackendConfig, a as BackendType, A as AthenaJsonValue, b as AthenaConditionValue, c as AthenaConditionCastType, d as AthenaConditionArrayValue, e as AthenaConditionOperator, f as AthenaGatewayCallOptions, g as AthenaGatewayErrorDetails, h as AthenaJsonObject, i as AthenaRpcCallOptions, S as SchemaDef, j as AnyModelDef, D as DatabaseDef, M as ModelMetadata, k as ModelDef, R as RegistryDef, T as TenantKeyMap, l as TenantContext, m as RowOf, n as ModelAt, I as InsertOf, U as UpdateOf, o as SchemaIntrospectionProvider, p as IntrospectionSnapshot, q as IntrospectionColumn } from './types-BnzoaNRC.cjs';
2
- export { r as AthenaGatewayErrorCode, s as AthenaJsonArray, t as AthenaJsonPrimitive, u as AthenaRpcFilter, v as AthenaRpcFilterOperator, w as AthenaRpcOrder, x as AthenaRpcPayload, y as Backend, z as IntrospectionInspectOptions, C as IntrospectionRelation, E as IntrospectionSchema, F as IntrospectionTable, G as IntrospectionTypeKind, H as ModelRelationKind, J as ModelRelationMetadata, K as TenantContextValue } from './types-BnzoaNRC.cjs';
3
- export { A as AthenaGatewayError, M as ModelFormAdapter, a as ModelFormDefaults, b as ModelFormNullishMode, c as ModelFormValues, T as ToModelFormDefaultsOptions, d as ToModelPayloadOptions, e as createModelFormAdapter, i as isAthenaGatewayError, t as toModelFormDefaults, f as toModelPayload } from './model-form-DkS48fsh.cjs';
4
- import { A as AthenaGeneratorConfig, L as LoadGeneratorConfigOptions, a as LoadedGeneratorConfig, N as NormalizedAthenaGeneratorConfig, G as GeneratedArtifacts, b as GeneratorProviderConfig, c as GeneratorExperimentalFlags, d as GeneratorSchemaSelection } from './pipeline-C-cN0ACi.cjs';
5
- export { e as GeneratedArtifact, f as GeneratorArtifactKind, g as GeneratorFeatureFlags, h as GeneratorNamingConfig, i as GeneratorOutputConfig, j as GeneratorOutputTargets, k as NamingStyle, R as RunGeneratorOptions, l as RunGeneratorResult, r as runSchemaGenerator } from './pipeline-C-cN0ACi.cjs';
6
-
7
- interface AthenaResult<T> {
8
- data: T | null;
9
- error: string | null;
10
- errorDetails?: AthenaGatewayErrorDetails | null;
11
- status: number;
12
- count?: number | null;
13
- raw: unknown;
14
- }
15
- type MutationSingleResult<Result> = Result extends Array<infer Item> ? Item | null : Result | null;
16
- type AthenaRowShape = Record<string, AthenaJsonValue | undefined>;
17
- type FilterColumnKey<Row> = Extract<keyof NonNullable<Row>, string>;
18
- type ResolvedFilterColumnKey<Row> = [FilterColumnKey<Row>] extends [never] ? string : FilterColumnKey<Row>;
19
- interface MutationQuery<Result> extends PromiseLike<AthenaResult<Result>> {
20
- select(columns?: string | string[], options?: AthenaGatewayCallOptions): Promise<AthenaResult<Result>>;
21
- returning(columns?: string | string[], options?: AthenaGatewayCallOptions): Promise<AthenaResult<Result>>;
22
- single(columns?: string | string[], options?: AthenaGatewayCallOptions): Promise<AthenaResult<MutationSingleResult<Result>>>;
23
- maybeSingle(columns?: string | string[], options?: AthenaGatewayCallOptions): Promise<AthenaResult<MutationSingleResult<Result>>>;
24
- then<TResult1 = AthenaResult<Result>, TResult2 = never>(onfulfilled?: ((value: AthenaResult<Result>) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
25
- catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | undefined | null): Promise<AthenaResult<Result> | TResult>;
26
- finally(onfinally?: (() => void) | undefined | null): Promise<AthenaResult<Result>>;
27
- }
28
- interface OrderOptions {
29
- ascending?: boolean;
30
- }
31
- /** Shared filter chain - supports eq, limit, etc. in any order relative to select/update */
32
- interface FilterChain<Self, Row> {
33
- eq(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
34
- eqCast(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue, cast: AthenaConditionCastType): Self;
35
- eqUuid(column: ResolvedFilterColumnKey<Row>, value: string): Self;
36
- match(filters: Partial<Record<ResolvedFilterColumnKey<Row>, AthenaConditionValue>>): Self;
37
- range(from: number, to: number): Self;
38
- limit(count: number): Self;
39
- offset(count: number): Self;
40
- currentPage(value: number): Self;
41
- pageSize(value: number): Self;
42
- totalPages(value: number): Self;
43
- order(column: ResolvedFilterColumnKey<Row>, options?: OrderOptions): Self;
44
- gt(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
45
- gte(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
46
- lt(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
47
- lte(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
48
- neq(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
49
- like(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
50
- ilike(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
51
- is(column: ResolvedFilterColumnKey<Row>, value: AthenaConditionValue): Self;
52
- in(column: ResolvedFilterColumnKey<Row>, values: AthenaConditionArrayValue): Self;
53
- contains(column: ResolvedFilterColumnKey<Row>, values: AthenaConditionArrayValue): Self;
54
- containedBy(column: ResolvedFilterColumnKey<Row>, values: AthenaConditionArrayValue): Self;
55
- not(columnOrExpression: ResolvedFilterColumnKey<Row> | string, operator?: AthenaConditionOperator, value?: AthenaConditionValue): Self;
56
- or(expression: string): Self;
57
- }
58
- /** Chain returned by select() - supports filters and single/maybeSingle before execution */
59
- interface SelectChain<Row, SelectedRow = Row> extends FilterChain<SelectChain<Row, SelectedRow>, Row>, PromiseLike<AthenaResult<SelectedRow[]>> {
60
- single<T = SelectedRow>(columns?: string | string[], options?: AthenaGatewayCallOptions): Promise<AthenaResult<T | null>>;
61
- maybeSingle<T = SelectedRow>(columns?: string | string[], options?: AthenaGatewayCallOptions): Promise<AthenaResult<T | null>>;
62
- }
63
- /** Chain returned by update() - supports filters before execution, plus select/returning */
64
- interface UpdateChain<Row> extends FilterChain<UpdateChain<Row>, Row>, MutationQuery<Row[]> {
65
- }
66
- interface RpcFilterChain<Self> {
67
- eq(column: string, value: AthenaConditionValue): Self;
68
- neq(column: string, value: AthenaConditionValue): Self;
69
- gt(column: string, value: AthenaConditionValue): Self;
70
- gte(column: string, value: AthenaConditionValue): Self;
71
- lt(column: string, value: AthenaConditionValue): Self;
72
- lte(column: string, value: AthenaConditionValue): Self;
73
- like(column: string, value: AthenaConditionValue): Self;
74
- ilike(column: string, value: AthenaConditionValue): Self;
75
- is(column: string, value: AthenaConditionValue): Self;
76
- in(column: string, values: AthenaConditionArrayValue): Self;
77
- }
78
- interface RpcOrderOptions {
79
- ascending?: boolean;
80
- }
81
- interface RpcQueryBuilder<Row> extends RpcFilterChain<RpcQueryBuilder<Row>>, PromiseLike<AthenaResult<Row[]>> {
82
- select(columns?: string | string[], options?: AthenaRpcCallOptions): Promise<AthenaResult<Row[]>>;
83
- single<T = Row>(columns?: string | string[], options?: AthenaRpcCallOptions): Promise<AthenaResult<T | null>>;
84
- maybeSingle<T = Row>(columns?: string | string[], options?: AthenaRpcCallOptions): Promise<AthenaResult<T | null>>;
85
- order(column: string, options?: RpcOrderOptions): RpcQueryBuilder<Row>;
86
- limit(count: number): RpcQueryBuilder<Row>;
87
- offset(count: number): RpcQueryBuilder<Row>;
88
- range(from: number, to: number): RpcQueryBuilder<Row>;
89
- }
90
- interface TableQueryBuilder<Row, Insert = Partial<Row>, Update = Partial<Insert>> extends FilterChain<TableQueryBuilder<Row, Insert, Update>, Row> {
91
- select<T = Row>(columns?: string | string[], options?: AthenaGatewayCallOptions): SelectChain<Row, T>;
92
- insert(values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row>;
93
- insert(values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[]>;
94
- upsert(values: Insert, options?: AthenaGatewayCallOptions & {
95
- updateBody?: Update;
96
- onConflict?: string | string[];
97
- }): MutationQuery<Row>;
98
- upsert(values: Insert[], options?: AthenaGatewayCallOptions & {
99
- updateBody?: Update;
100
- onConflict?: string | string[];
101
- }): MutationQuery<Row[]>;
102
- update(values: Update, options?: AthenaGatewayCallOptions): UpdateChain<Row>;
103
- delete(options?: AthenaGatewayCallOptions & {
104
- resourceId?: string;
105
- }): MutationQuery<Row | null>;
106
- single<T = Row>(columns?: string | string[], options?: AthenaGatewayCallOptions): Promise<AthenaResult<T | null>>;
107
- maybeSingle<T = Row>(columns?: string | string[], options?: AthenaGatewayCallOptions): Promise<AthenaResult<T | null>>;
108
- reset(): TableQueryBuilder<Row, Insert, Update>;
109
- }
110
- interface AthenaSdkClient {
111
- from<Row = AthenaRowShape, Insert = Partial<Row>, Update = Partial<Insert>>(table: string): TableQueryBuilder<Row, Insert, Update>;
112
- rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row>;
113
- query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
114
- }
115
- interface AthenaClientBuilder {
116
- /** Set the gateway base URL. */
117
- url(url: string): AthenaClientBuilder;
118
- /** Set the API key used for all requests. */
119
- key(apiKey: string): AthenaClientBuilder;
120
- /** Set the default backend routing strategy. */
121
- backend(backend: BackendConfig | BackendType): AthenaClientBuilder;
122
- /** Set the default Athena client routing key. */
123
- client(clientName: string): AthenaClientBuilder;
124
- /** Attach static headers to every request. */
125
- headers(headers: Record<string, string>): AthenaClientBuilder;
126
- /** Enable or disable health tracking metadata. */
127
- healthTracking(enabled: boolean): AthenaClientBuilder;
128
- /** Build the immutable Athena SDK client. */
129
- build(): AthenaSdkClient;
130
- }
131
- /** Canonical Athena client factory with builder-based configuration. */
132
- declare class AthenaClient {
133
- /** Create a fluent builder for a strongly-typed Athena SDK client. */
134
- static builder(): AthenaClientBuilder;
135
- /** Build a client from process environment variables. */
136
- static fromEnvironment(): AthenaSdkClient;
137
- }
138
- /** Create client (convenience wrapper; use AthenaClient.builder() for full control) */
139
- declare function createClient(url: string, apiKey: string, options?: Pick<AthenaGatewayCallOptions, 'client' | 'headers' | 'backend'>): AthenaSdkClient;
140
-
141
- type AthenaErrorKind = 'unique_violation' | 'not_found' | 'validation' | 'auth' | 'rate_limit' | 'transient' | 'unknown';
142
- declare const AthenaErrorKind: {
143
- readonly UniqueViolation: "unique_violation";
144
- readonly NotFound: "not_found";
145
- readonly Validation: "validation";
146
- readonly Auth: "auth";
147
- readonly RateLimit: "rate_limit";
148
- readonly Transient: "transient";
149
- readonly Unknown: "unknown";
150
- };
151
- type AthenaErrorCode = 'UNIQUE_VIOLATION' | 'NOT_FOUND' | 'VALIDATION_FAILED' | 'AUTH_UNAUTHORIZED' | 'AUTH_FORBIDDEN' | 'RATE_LIMITED' | 'NETWORK_UNAVAILABLE' | 'TRANSIENT_FAILURE' | 'HTTP_FAILURE' | 'UNKNOWN';
152
- declare const AthenaErrorCode: {
153
- readonly UniqueViolation: "UNIQUE_VIOLATION";
154
- readonly NotFound: "NOT_FOUND";
155
- readonly ValidationFailed: "VALIDATION_FAILED";
156
- readonly AuthUnauthorized: "AUTH_UNAUTHORIZED";
157
- readonly AuthForbidden: "AUTH_FORBIDDEN";
158
- readonly RateLimited: "RATE_LIMITED";
159
- readonly NetworkUnavailable: "NETWORK_UNAVAILABLE";
160
- readonly TransientFailure: "TRANSIENT_FAILURE";
161
- readonly HttpFailure: "HTTP_FAILURE";
162
- readonly Unknown: "UNKNOWN";
163
- };
164
- type AthenaErrorCategory = 'transport' | 'client' | 'server' | 'database' | 'unknown';
165
- declare const AthenaErrorCategory: {
166
- readonly Transport: "transport";
167
- readonly Client: "client";
168
- readonly Server: "server";
169
- readonly Database: "database";
170
- readonly Unknown: "unknown";
171
- };
172
- interface AthenaOperationContext {
173
- table?: string;
174
- operation?: string;
175
- identity?: string | Record<string, unknown>;
176
- }
177
- interface NormalizedAthenaError {
178
- kind: AthenaErrorKind;
179
- code: AthenaErrorCode;
180
- category: AthenaErrorCategory;
181
- retryable: boolean;
182
- status?: number;
183
- constraint?: string;
184
- table?: string;
185
- operation?: string;
186
- message: string;
187
- raw: unknown;
188
- }
189
- interface AthenaErrorInput {
190
- code: AthenaErrorCode;
191
- kind: AthenaErrorKind;
192
- category: AthenaErrorCategory;
193
- message: string;
194
- status?: number;
195
- retryable?: boolean;
196
- requestId?: string;
197
- context?: AthenaOperationContext;
198
- raw?: unknown;
199
- }
200
- interface UnwrapOptions {
201
- allowNull?: boolean;
202
- context?: AthenaOperationContext;
203
- }
204
- interface UnwrapOneOptions extends UnwrapOptions {
205
- requireExactlyOne?: boolean;
206
- }
207
- interface IntCoercionOptions {
208
- strictBigInt?: boolean;
209
- min?: number;
210
- max?: number;
211
- }
212
- type RetryBackoffStrategy = 'linear' | 'exponential' | ((attempt: number, error: unknown) => number);
213
- interface RetryConfig {
214
- retries: number;
215
- baseDelayMs?: number;
216
- maxDelayMs?: number;
217
- backoff?: RetryBackoffStrategy;
218
- jitter?: boolean | number;
219
- shouldRetry?: (error: unknown, attempt: number) => boolean | Promise<boolean>;
220
- }
221
- interface RequireAffectedOptions {
222
- min?: number;
223
- }
224
- declare class AthenaError extends Error {
225
- readonly code: AthenaErrorCode;
226
- readonly kind: AthenaErrorKind;
227
- readonly category: AthenaErrorCategory;
228
- readonly status?: number;
229
- readonly retryable: boolean;
230
- readonly requestId?: string;
231
- readonly context?: AthenaOperationContext;
232
- readonly raw?: unknown;
233
- constructor(input: AthenaErrorInput);
234
- }
235
- /**
236
- * Returns `true` when a result is successful (`2xx` status and no `error`).
237
- */
238
- declare function isOk<T>(result: AthenaResult<T>): boolean;
239
- /**
240
- * Normalizes any Athena failure shape into a stable, typed error envelope.
241
- *
242
- * Accepts `AthenaResult`, `AthenaGatewayError`, native `Error`, or unknown values.
243
- * Optional `context` can override inferred table/operation metadata for clearer diagnostics.
244
- */
245
- declare function normalizeAthenaError(resultOrError: unknown, context?: AthenaOperationContext): NormalizedAthenaError;
246
- /**
247
- * Unwraps a successful result into a row array.
248
- *
249
- * - Throws on failed results.
250
- * - Converts `null` data to an empty array.
251
- * - Wraps scalar data in a single-element array.
252
- */
253
- declare function unwrapRows<T>(result: AthenaResult<T[] | T | null>, options?: UnwrapOptions): T[];
254
- /**
255
- * Unwraps successful result data from `AthenaResult<T | null>`.
256
- *
257
- * By default, `null` data throws. Pass `{ allowNull: true }` to permit nullable payloads.
258
- */
259
- declare function unwrap<T>(result: AthenaResult<T | null>, options: UnwrapOptions & {
260
- allowNull: true;
261
- }): T | null;
262
- declare function unwrap<T>(result: AthenaResult<T | null>, options?: UnwrapOptions): T;
263
- /**
264
- * Unwraps the first row from a successful result that may contain arrays/scalars/null.
265
- *
266
- * - Throws on failed results.
267
- * - Throws when no row exists unless `allowNull: true` is provided.
268
- * - Optionally enforces exact cardinality via `requireExactlyOne`.
269
- */
270
- declare function unwrapOne<T>(result: AthenaResult<T[] | T | null>, options: UnwrapOneOptions & {
271
- allowNull: true;
272
- }): T | null;
273
- declare function unwrapOne<T>(result: AthenaResult<T[] | T | null>, options?: UnwrapOneOptions): T;
274
- /**
275
- * Asserts that an Athena result is successful.
276
- *
277
- * Returns the original result for fluent composition and throws `AthenaGatewayError` on failure.
278
- */
279
- declare function requireSuccess<T>(result: AthenaResult<T>, context?: AthenaOperationContext): AthenaResult<T>;
280
- /**
281
- * Enforces mutation postconditions based on `result.count`.
282
- *
283
- * - Validates success first.
284
- * - Requires a non-null count in the response.
285
- * - Validates `count >= min` (default: `1`).
286
- *
287
- * Useful for guaranteeing that critical writes actually affected rows.
288
- */
289
- declare function requireAffected<T>(result: AthenaResult<T>, options?: RequireAffectedOptions, context?: AthenaOperationContext): number;
290
- /**
291
- * Safely coerces `unknown` values into finite integers.
292
- *
293
- * Returns `null` when coercion fails or bounds/strict bigint checks are violated.
294
- */
295
- declare function coerceInt(value: unknown, options?: IntCoercionOptions): number | null;
296
- /**
297
- * Strict integer assertion wrapper around `coerceInt`.
298
- *
299
- * Throws a `TypeError` with the provided label when coercion fails.
300
- */
301
- declare function assertInt(value: unknown, label?: string, options?: IntCoercionOptions): number;
302
- /**
303
- * Retries an async operation with configurable backoff and retry policy.
304
- *
305
- * `retries` represents additional attempts after the first failure.
306
- * By default, transient and rate-limit errors are retried.
307
- */
308
- declare function withRetry<T>(config: RetryConfig, fn: () => Promise<T>): Promise<T>;
309
-
310
- /**
311
- * Immutable identifier object with consistent SQL rendering.
312
- */
313
- interface SqlIdentifier {
314
- readonly segments: string[];
315
- toSql(): string;
316
- toString(): string;
317
- }
318
- /**
319
- * Creates a quoted identifier object from segment or dotted inputs.
320
- */
321
- declare function identifier(...segments: string[]): SqlIdentifier;
322
-
323
- /**
324
- * Declares a model contract with explicit metadata and typed row/insert/update shapes.
325
- */
326
- declare function defineModel<Row, Insert = Partial<Row>, Update = Partial<Insert>, Meta extends ModelMetadata<Row> = ModelMetadata<Row>>(input: {
327
- meta: Meta;
328
- }): ModelDef<Row, Insert, Update, Meta>;
329
- /**
330
- * Declares a schema-level model map.
331
- */
332
- declare function defineSchema<Models extends Record<string, AnyModelDef>>(models: Models): SchemaDef<Models>;
333
- /**
334
- * Declares a database-level schema map.
335
- */
336
- declare function defineDatabase<Schemas extends Record<string, SchemaDef<Record<string, AnyModelDef>>>>(schemas: Schemas): DatabaseDef<Schemas>;
337
- /**
338
- * Declares a top-level multi-database registry.
339
- */
340
- declare function defineRegistry<Databases extends Record<string, DatabaseDef<Record<string, SchemaDef<Record<string, AnyModelDef>>>>>>(databases: Databases): RegistryDef<Databases>;
341
-
342
- type RegistryConstraint = RegistryDef<Record<string, DatabaseDef<Record<string, SchemaDef<Record<string, AnyModelDef>>>>>>;
343
- /**
344
- * Options for creating typed Athena clients.
345
- */
346
- interface TypedClientOptions<TMap extends TenantKeyMap = TenantKeyMap> extends Pick<AthenaGatewayCallOptions, 'backend' | 'client' | 'headers'> {
347
- tenantKeyMap?: TMap;
348
- tenantContext?: TenantContext<TMap>;
349
- }
350
- /**
351
- * Typed Athena client with registry-driven model resolution and tenant-context propagation.
352
- */
353
- interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>> extends AthenaSdkClient {
354
- readonly registry: TRegistry;
355
- readonly tenantKeyMap: Readonly<TTenantMap>;
356
- readonly tenantContext: TenantContext<TTenantMap>;
357
- withTenantContext(context: TenantContext<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap>;
358
- fromModel<TDatabase extends keyof TRegistry & string, TSchema extends keyof TRegistry[TDatabase]['schemas'] & string, TModel extends keyof TRegistry[TDatabase]['schemas'][TSchema]['models'] & string>(database: TDatabase, schema: TSchema, model: TModel): TableQueryBuilder<RowOf<ModelAt<TRegistry, TDatabase, TSchema, TModel>>, InsertOf<ModelAt<TRegistry, TDatabase, TSchema, TModel>>, UpdateOf<ModelAt<TRegistry, TDatabase, TSchema, TModel>>>;
359
- }
360
- /**
361
- * Creates a typed client bound to a registry contract and optional tenant header mapping.
362
- */
363
- declare function createTypedClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>>(registry: TRegistry, url: string, apiKey: string, options?: TypedClientOptions<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap>;
364
-
365
- /**
366
- * Constructor options for the PostgreSQL introspection provider.
367
- */
368
- interface PostgresIntrospectionProviderOptions {
369
- connectionString: string;
370
- database?: string;
371
- schemas?: readonly string[];
372
- }
373
- /**
374
- * Creates a PostgreSQL-backed schema introspection provider.
375
- */
376
- declare function createPostgresIntrospectionProvider(options: PostgresIntrospectionProviderOptions): SchemaIntrospectionProvider;
1
+ export { A as AthenaClient, a as AthenaClientExperimentalOptions, b as AthenaCreateClientOptions, c as AthenaDbModule, d as AthenaError, e as AthenaErrorCategory, f as AthenaErrorCode, g as AthenaErrorInput, h as AthenaErrorKind, i as AthenaOperationContext, j as AthenaResult, k as AthenaSdkClient, l as AthenaSdkClientWithAuth, D as DEFAULT_POSTGRES_SCHEMAS, I as IntCoercionOptions, N as NormalizedAthenaError, P as PostgresIntrospectionProviderOptions, R as RequireAffectedOptions, m as RetryBackoffStrategy, n as RetryConfig, o as RpcOrderOptions, p as RpcQueryBuilder, T as TableQueryBuilder, q as TypedAthenaClient, r as TypedClientOptions, U as UnwrapOneOptions, s as UnwrapOptions, t as assertInt, u as coerceInt, v as createAuthClient, w as createClient, x as createPostgresIntrospectionProvider, y as createTypedClient, z as defineDatabase, B as defineModel, C as defineRegistry, E as defineSchema, F as identifier, G as isOk, H as normalizeAthenaError, J as normalizeSchemaSelection, K as parseBooleanFlag, L as requireAffected, M as requireSuccess, O as resolvePostgresColumnType, Q as resolveProviderSchemas, S as unwrap, V as unwrapOne, W as unwrapRows, X as withRetry } from './client-dpAp-NZK.cjs';
2
+ import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-BaBzjwXr.cjs';
3
+ export { A as AthenaConditionCastType, a as AthenaGatewayCallOptions, b as AthenaGatewayErrorCode, c as AthenaGatewayErrorDetails, d as AthenaJsonArray, e as AthenaJsonObject, f as AthenaJsonPrimitive, g as AthenaJsonValue, h as AthenaRpcCallOptions, i as AthenaRpcFilter, j as AthenaRpcFilterOperator, k as AthenaRpcOrder, l as AthenaRpcPayload, B as Backend, m as BackendConfig, n as BackendType, D as DatabaseDef, o as InsertOf, p as IntrospectionColumn, q as IntrospectionInspectOptions, r as IntrospectionRelation, s as IntrospectionSchema, t as IntrospectionTable, u as IntrospectionTypeKind, M as ModelAt, v as ModelDef, w as ModelMetadata, x as ModelRelationKind, y as ModelRelationMetadata, R as RegistryDef, z as RowOf, C as SchemaDef, T as TenantContext, E as TenantContextValue, F as TenantKeyMap, U as UpdateOf } from './types-BaBzjwXr.cjs';
4
+ export { A as AthenaAuthAdminUserSessionRevokeBinding, a as AthenaAuthBindings, b as AthenaAuthCallOptions, c as AthenaAuthClientConfig, d as AthenaAuthCredentials, e as AthenaAuthEmailChangeResponse, f as AthenaAuthEndpointPath, g as AthenaAuthErrorCode, h as AthenaAuthErrorDetails, i as AthenaAuthGenericInput, j as AthenaAuthGenericQueryInput, k as AthenaAuthLinkedAccount, l as AthenaAuthMethod, m as AthenaAuthOrganization, n as AthenaAuthOrganizationBindings, o as AthenaAuthOrganizationInvitation, p as AthenaAuthOrganizationMember, q as AthenaAuthQueryPrimitive, r as AthenaAuthQueryValue, s as AthenaAuthRequestInput, t as AthenaAuthResetPasswordBinding, u as AthenaAuthResult, v as AthenaAuthRevokeSessionRequest, w as AthenaAuthSdkClient, x as AthenaAuthSession, y as AthenaAuthSessionResponse, z as AthenaAuthSessionRevokeBinding, B as AthenaAuthSignInResponse, C as AthenaAuthSignOutResponse, D as AthenaAuthSocialRedirectResponse, E as AthenaAuthStatusResponse, F as AthenaAuthUser, G as AthenaChangeEmailRequest, H as AthenaChangePasswordRequest, I as AthenaDeleteUserCallbackRequest, J as AthenaDeleteUserRequest, K as AthenaDeleteUserResponse, L as AthenaEmailSignInRequest, M as AthenaEmailSignUpRequest, N as AthenaForgetPasswordRequest, O as AthenaGatewayError, P as AthenaLinkSocialRequest, Q as AthenaOAuthAccountTokenRequest, R as AthenaOAuthTokenBundle, S as AthenaResetPasswordRequest, T as AthenaSendVerificationEmailRequest, U as AthenaSocialSignInRequest, V as AthenaUnlinkAccountRequest, W as AthenaUpdateUserRequest, X as AthenaUsernameSignInRequest, Y as AthenaVerifyEmailRequest, Z as ModelFormAdapter, _ as ModelFormDefaults, $ as ModelFormNullishMode, a0 as ModelFormValues, a1 as ToModelFormDefaultsOptions, a2 as ToModelPayloadOptions, a3 as createModelFormAdapter, a4 as isAthenaGatewayError, a5 as toModelFormDefaults, a6 as toModelPayload } from './model-form-Cy-zaO0u.cjs';
5
+ import { A as AthenaGeneratorConfig, L as LoadGeneratorConfigOptions, a as LoadedGeneratorConfig, N as NormalizedAthenaGeneratorConfig, G as GeneratedArtifacts, b as GeneratorProviderConfig, c as GeneratorExperimentalFlags } from './types-CpqL-pZx.cjs';
6
+ export { d as GeneratedArtifact, e as GeneratorArtifactKind, f as GeneratorFeatureFlags, g as GeneratorNamingConfig, h as GeneratorOutputConfig, i as GeneratorOutputTargets, j as GeneratorSchemaSelection, k as NamingStyle, R as RunGeneratorOptions, l as RunGeneratorResult } from './types-CpqL-pZx.cjs';
7
+ export { r as runSchemaGenerator } from './pipeline-E3FDbs4W.cjs';
377
8
 
378
9
  declare function normalizeGeneratorConfig(input: AthenaGeneratorConfig): NormalizedAthenaGeneratorConfig;
379
10
  /**
@@ -394,273 +25,9 @@ declare function loadGeneratorConfig(options?: LoadGeneratorConfigOptions): Prom
394
25
  */
395
26
  declare function generateArtifactsFromSnapshot(snapshot: IntrospectionSnapshot, config: AthenaGeneratorConfig | NormalizedAthenaGeneratorConfig): GeneratedArtifacts;
396
27
 
397
- declare function resolvePostgresColumnType(column: IntrospectionColumn): string;
398
-
399
28
  /**
400
29
  * Resolves a runtime introspection provider from generator config.
401
30
  */
402
31
  declare function resolveGeneratorProvider(providerConfig: GeneratorProviderConfig, experimentalFlags: GeneratorExperimentalFlags): SchemaIntrospectionProvider;
403
32
 
404
- declare const DEFAULT_POSTGRES_SCHEMAS: readonly ["public"];
405
- /**
406
- * Normalizes schema selection from config or env-backed strings into a stable,
407
- * deduplicated list. Empty selections fall back to PostgreSQL's public schema.
408
- */
409
- declare function normalizeSchemaSelection(input: GeneratorSchemaSelection | undefined): string[];
410
- /**
411
- * Resolves the effective schema list for provider-backed generator runs.
412
- */
413
- declare function resolveProviderSchemas(providerConfig: GeneratorProviderConfig): string[];
414
-
415
- type AthenaAuthMethod = 'GET' | 'POST';
416
- type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
417
- type AthenaAuthQueryPrimitive = string | number | boolean;
418
- type AthenaAuthQueryValue = AthenaAuthQueryPrimitive | AthenaAuthQueryPrimitive[] | null | undefined;
419
- type AthenaAuthEndpointPath = '/sign-in/social' | '/sign-in/email' | '/sign-in/username' | '/sign-up/email' | '/get-session' | '/sign-out' | '/forget-password' | '/reset-password' | '/verify-email' | '/send-verification-email' | '/change-email' | '/change-password' | '/update-user' | '/delete-user' | '/delete-user/callback' | '/list-sessions' | '/revoke-session' | '/revoke-sessions' | '/revoke-other-sessions' | '/link-social' | '/list-accounts' | '/unlink-account' | '/refresh-token' | '/get-access-token' | '/ok' | '/error' | `/reset-password/${string}`;
420
- type AthenaAuthErrorCode = 'NETWORK_ERROR' | 'HTTP_ERROR' | 'INVALID_JSON' | 'UNKNOWN_ERROR';
421
- interface AthenaAuthErrorDetails {
422
- code: AthenaAuthErrorCode;
423
- message: string;
424
- status: number;
425
- endpoint?: AthenaAuthEndpointPath;
426
- method?: AthenaAuthMethod;
427
- requestId?: string;
428
- hint?: string;
429
- cause?: string;
430
- }
431
- interface AthenaAuthResult<T = unknown> {
432
- ok: boolean;
433
- status: number;
434
- data: T | null;
435
- error: string | null;
436
- errorDetails?: AthenaAuthErrorDetails | null;
437
- raw: unknown;
438
- }
439
- interface AthenaAuthUser {
440
- id: string;
441
- email: string;
442
- name?: string | null;
443
- image?: string | null;
444
- emailVerified?: boolean;
445
- createdAt?: string;
446
- updatedAt?: string;
447
- username?: string | null;
448
- displayUsername?: string | null;
449
- twoFactorEnabled?: boolean;
450
- role?: string | null;
451
- banned?: boolean;
452
- banReason?: string | null;
453
- banExpires?: string | null;
454
- }
455
- interface AthenaAuthSession {
456
- id: string;
457
- expiresAt?: string;
458
- token?: string;
459
- createdAt?: string;
460
- updatedAt?: string;
461
- ipAddress?: string | null;
462
- userAgent?: string | null;
463
- userId?: string;
464
- impersonatedBy?: string | null;
465
- activeOrganizationId?: string | null;
466
- }
467
- interface AthenaAuthSessionResponse {
468
- session: AthenaAuthSession;
469
- user: AthenaAuthUser;
470
- }
471
- interface AthenaEmailSignInRequest {
472
- email: string;
473
- password: string;
474
- callbackURL?: string;
475
- rememberMe?: boolean;
476
- }
477
- interface AthenaUsernameSignInRequest {
478
- username: string;
479
- password: string;
480
- rememberMe?: boolean;
481
- }
482
- interface AthenaSocialSignInRequest {
483
- provider: string;
484
- callbackURL?: string;
485
- newUserCallbackURL?: string;
486
- errorCallbackURL?: string;
487
- disableRedirect?: boolean;
488
- idToken?: string;
489
- scopes?: string[] | string;
490
- requestSignUp?: boolean;
491
- loginHint?: string;
492
- }
493
- interface AthenaEmailSignUpRequest {
494
- name: string;
495
- email: string;
496
- password: string;
497
- callbackURL?: string;
498
- }
499
- interface AthenaAuthSignInResponse {
500
- redirect: false;
501
- token: string;
502
- url?: string | null;
503
- user: AthenaAuthUser;
504
- }
505
- interface AthenaAuthSocialRedirectResponse {
506
- url: string;
507
- redirect: boolean;
508
- }
509
- interface AthenaAuthSignOutResponse {
510
- success: boolean;
511
- }
512
- interface AthenaAuthStatusResponse {
513
- status: boolean;
514
- }
515
- interface AthenaAuthRevokeSessionRequest {
516
- token: string;
517
- }
518
- interface AthenaForgetPasswordRequest {
519
- email: string;
520
- redirectTo?: string;
521
- }
522
- interface AthenaResetPasswordRequest {
523
- newPassword: string;
524
- token?: string;
525
- }
526
- interface AthenaVerifyEmailRequest {
527
- token: string;
528
- callbackURL?: string;
529
- }
530
- interface AthenaSendVerificationEmailRequest {
531
- email: string;
532
- callbackURL?: string;
533
- }
534
- interface AthenaChangeEmailRequest {
535
- newEmail: string;
536
- callbackURL?: string;
537
- }
538
- interface AthenaChangePasswordRequest {
539
- newPassword: string;
540
- currentPassword: string;
541
- revokeOtherSessions?: boolean;
542
- }
543
- interface AthenaUpdateUserRequest {
544
- name?: string;
545
- image?: string;
546
- }
547
- interface AthenaDeleteUserRequest {
548
- callbackURL?: string;
549
- password?: string;
550
- token?: string;
551
- }
552
- interface AthenaDeleteUserCallbackRequest {
553
- token?: string;
554
- callbackURL?: string;
555
- }
556
- interface AthenaDeleteUserResponse {
557
- success: boolean;
558
- message?: string;
559
- }
560
- interface AthenaAuthEmailChangeResponse {
561
- status: boolean;
562
- message?: string | null;
563
- }
564
- interface AthenaLinkSocialRequest {
565
- provider: string;
566
- callbackURL?: string;
567
- scopes?: string[] | string;
568
- }
569
- interface AthenaUnlinkAccountRequest {
570
- providerId: string;
571
- accountId?: string;
572
- }
573
- interface AthenaOAuthAccountTokenRequest {
574
- providerId: string;
575
- accountId?: string;
576
- userId?: string;
577
- }
578
- interface AthenaOAuthTokenBundle {
579
- tokenType?: string;
580
- idToken?: string;
581
- accessToken?: string;
582
- refreshToken?: string;
583
- accessTokenExpiresAt?: string;
584
- refreshTokenExpiresAt?: string;
585
- }
586
- interface AthenaAuthLinkedAccount {
587
- id: string;
588
- provider?: string;
589
- accountId?: string;
590
- scopes?: string[];
591
- createdAt?: string;
592
- updatedAt?: string;
593
- }
594
- interface AthenaAuthRequestInput {
595
- endpoint: AthenaAuthEndpointPath;
596
- method?: AthenaAuthMethod;
597
- body?: unknown;
598
- query?: Record<string, AthenaAuthQueryValue>;
599
- fetchOptions?: AthenaAuthCallOptions;
600
- }
601
- interface AthenaAuthCallOptions {
602
- baseUrl?: string;
603
- apiKey?: string;
604
- bearerToken?: string;
605
- headers?: Record<string, string>;
606
- credentials?: AthenaAuthCredentials;
607
- signal?: AbortSignal;
608
- }
609
- interface AthenaAuthFetchCompatibleInput {
610
- fetchOptions?: AthenaAuthCallOptions;
611
- }
612
- interface AthenaAuthClientConfig extends AthenaAuthCallOptions {
613
- fetch?: typeof fetch;
614
- }
615
- interface AthenaAuthSdkClient {
616
- baseUrl: string;
617
- request: <T = unknown>(input: AthenaAuthRequestInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<T>>;
618
- signIn: {
619
- email: (input: AthenaEmailSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
620
- username: (input: AthenaUsernameSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
621
- social: (input: AthenaSocialSignInRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSocialRedirectResponse | AthenaAuthSignInResponse>>;
622
- };
623
- signUp: {
624
- email: (input: AthenaEmailSignUpRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignInResponse>>;
625
- };
626
- signOut: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
627
- logout: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
628
- getSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSessionResponse>>;
629
- listSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSession[]>>;
630
- revokeSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
631
- clearSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
632
- revokeSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
633
- clearSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
634
- revokeOtherSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
635
- clearOtherSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
636
- forgetPassword: (input: AthenaForgetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
637
- resetPassword: (input: AthenaResetPasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
638
- resolveResetPasswordToken: (input: {
639
- token: string;
640
- callbackURL?: string;
641
- } & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
642
- token?: string;
643
- }>>;
644
- verifyEmail: (input: AthenaVerifyEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
645
- user: AthenaAuthUser;
646
- status: boolean;
647
- }>>;
648
- sendVerificationEmail: (input: AthenaSendVerificationEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
649
- changeEmail: (input: AthenaChangeEmailRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthEmailChangeResponse>>;
650
- changePassword: (input: AthenaChangePasswordRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<{
651
- token?: string | null;
652
- user: AthenaAuthUser;
653
- }>>;
654
- updateUser: (input: AthenaUpdateUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
655
- deleteUser: (input?: AthenaDeleteUserRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaDeleteUserResponse>>;
656
- deleteUserCallback: (input?: AthenaDeleteUserCallbackRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaDeleteUserResponse>>;
657
- linkSocial: (input: AthenaLinkSocialRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSocialRedirectResponse>>;
658
- listAccounts: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthLinkedAccount[]>>;
659
- unlinkAccount: (input: AthenaUnlinkAccountRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
660
- refreshToken: (input: AthenaOAuthAccountTokenRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaOAuthTokenBundle>>;
661
- getAccessToken: (input: AthenaOAuthAccountTokenRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaOAuthTokenBundle>>;
662
- }
663
-
664
- declare function createAuthClient(config?: AthenaAuthClientConfig): AthenaAuthSdkClient;
665
-
666
- export { type AthenaAuthCallOptions, type AthenaAuthClientConfig, type AthenaAuthCredentials, type AthenaAuthEmailChangeResponse, type AthenaAuthEndpointPath, type AthenaAuthErrorCode, type AthenaAuthErrorDetails, type AthenaAuthLinkedAccount, type AthenaAuthMethod, type AthenaAuthQueryPrimitive, type AthenaAuthQueryValue, type AthenaAuthRequestInput, type AthenaAuthResult, type AthenaAuthRevokeSessionRequest, type AthenaAuthSdkClient, type AthenaAuthSession, type AthenaAuthSessionResponse, type AthenaAuthSignInResponse, type AthenaAuthSignOutResponse, type AthenaAuthSocialRedirectResponse, type AthenaAuthStatusResponse, type AthenaAuthUser, type AthenaChangeEmailRequest, type AthenaChangePasswordRequest, AthenaClient, AthenaConditionCastType, type AthenaDeleteUserCallbackRequest, type AthenaDeleteUserRequest, type AthenaDeleteUserResponse, type AthenaEmailSignInRequest, type AthenaEmailSignUpRequest, AthenaError, AthenaErrorCategory, AthenaErrorCode, type AthenaErrorInput, AthenaErrorKind, type AthenaForgetPasswordRequest, AthenaGatewayCallOptions, AthenaGatewayErrorDetails, AthenaGeneratorConfig, AthenaJsonObject, AthenaJsonValue, type AthenaLinkSocialRequest, type AthenaOAuthAccountTokenRequest, type AthenaOAuthTokenBundle, type AthenaOperationContext, type AthenaResetPasswordRequest, type AthenaResult, AthenaRpcCallOptions, type AthenaSdkClient, type AthenaSendVerificationEmailRequest, type AthenaSocialSignInRequest, type AthenaUnlinkAccountRequest, type AthenaUpdateUserRequest, type AthenaUsernameSignInRequest, type AthenaVerifyEmailRequest, BackendConfig, BackendType, DEFAULT_POSTGRES_SCHEMAS, DatabaseDef, GeneratedArtifacts, GeneratorExperimentalFlags, GeneratorProviderConfig, GeneratorSchemaSelection, InsertOf, type IntCoercionOptions, IntrospectionColumn, IntrospectionSnapshot, LoadGeneratorConfigOptions, LoadedGeneratorConfig, ModelAt, ModelDef, ModelMetadata, type NormalizedAthenaError, NormalizedAthenaGeneratorConfig, type PostgresIntrospectionProviderOptions, RegistryDef, type RequireAffectedOptions, type RetryBackoffStrategy, type RetryConfig, RowOf, type RpcOrderOptions, type RpcQueryBuilder, SchemaDef, SchemaIntrospectionProvider, type TableQueryBuilder, TenantContext, TenantKeyMap, type TypedAthenaClient, type TypedClientOptions, type UnwrapOneOptions, type UnwrapOptions, UpdateOf, assertInt, coerceInt, createAuthClient, createClient, createPostgresIntrospectionProvider, createTypedClient, defineDatabase, defineGeneratorConfig, defineModel, defineRegistry, defineSchema, findGeneratorConfigPath, generateArtifactsFromSnapshot, identifier, isOk, loadGeneratorConfig, normalizeAthenaError, normalizeGeneratorConfig, normalizeSchemaSelection, requireAffected, requireSuccess, resolveGeneratorProvider, resolvePostgresColumnType, resolveProviderSchemas, unwrap, unwrapOne, unwrapRows, withRetry };
33
+ export { AthenaGeneratorConfig, GeneratedArtifacts, GeneratorExperimentalFlags, GeneratorProviderConfig, IntrospectionSnapshot, LoadGeneratorConfigOptions, LoadedGeneratorConfig, NormalizedAthenaGeneratorConfig, SchemaIntrospectionProvider, defineGeneratorConfig, findGeneratorConfigPath, generateArtifactsFromSnapshot, loadGeneratorConfig, normalizeGeneratorConfig, resolveGeneratorProvider };