@xylex-group/athena 3.0.3 → 3.3.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.
Files changed (86) hide show
  1. package/README.md +1 -1
  2. package/dist/admin.cjs +55 -1
  3. package/dist/admin.cjs.map +1 -1
  4. package/dist/admin.d.cts +32 -8
  5. package/dist/admin.d.ts +32 -8
  6. package/dist/admin.js +54 -2
  7. package/dist/admin.js.map +1 -1
  8. package/dist/athena-auth-url-C1FbVmN6.d.cts +200 -0
  9. package/dist/athena-auth-url-C1FbVmN6.d.ts +200 -0
  10. package/dist/{athena-request-headers-C7Jy-c_D.d.ts → athena-request-headers-DzimbvOA.d.ts} +48 -200
  11. package/dist/{athena-request-headers-DujFFyMU.d.cts → athena-request-headers-Lr_m8xCV.d.cts} +48 -200
  12. package/dist/billing.cjs +1 -1
  13. package/dist/billing.cjs.map +1 -1
  14. package/dist/billing.js +1 -1
  15. package/dist/billing.js.map +1 -1
  16. package/dist/browser.cjs +912 -5
  17. package/dist/browser.cjs.map +1 -1
  18. package/dist/browser.d.cts +8 -7
  19. package/dist/browser.d.ts +8 -7
  20. package/dist/browser.js +881 -6
  21. package/dist/browser.js.map +1 -1
  22. package/dist/cli/index.cjs +7909 -7061
  23. package/dist/cli/index.cjs.map +1 -1
  24. package/dist/cli/index.d.cts +17 -10
  25. package/dist/cli/index.d.ts +17 -10
  26. package/dist/cli/index.js +7911 -7063
  27. package/dist/cli/index.js.map +1 -1
  28. package/dist/env.cjs +130 -0
  29. package/dist/env.cjs.map +1 -0
  30. package/dist/env.d.cts +70 -0
  31. package/dist/env.d.ts +70 -0
  32. package/dist/env.js +122 -0
  33. package/dist/env.js.map +1 -0
  34. package/dist/index.cjs +1570 -98
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +31 -8
  37. package/dist/index.d.ts +31 -8
  38. package/dist/index.js +1532 -100
  39. package/dist/index.js.map +1 -1
  40. package/dist/model-form-3Gr8rkdT.d.cts +281 -0
  41. package/dist/model-form-CotpEL7z.d.ts +281 -0
  42. package/dist/{module-CPG3ULxQ.d.cts → module-CQmOaDzP.d.cts} +4 -4
  43. package/dist/{module-BruTcxe0.d.ts → module-CWkUTcUc.d.ts} +4 -4
  44. package/dist/next/client.cjs +123 -7
  45. package/dist/next/client.cjs.map +1 -1
  46. package/dist/next/client.d.cts +4 -3
  47. package/dist/next/client.d.ts +4 -3
  48. package/dist/next/client.js +123 -7
  49. package/dist/next/client.js.map +1 -1
  50. package/dist/next/server.cjs +1130 -364
  51. package/dist/next/server.cjs.map +1 -1
  52. package/dist/next/server.d.cts +121 -8
  53. package/dist/next/server.d.ts +121 -8
  54. package/dist/next/server.js +1120 -365
  55. package/dist/next/server.js.map +1 -1
  56. package/dist/pipeline-BnRKO_Pd.d.cts +93 -0
  57. package/dist/pipeline-sWCmlFqu.d.ts +93 -0
  58. package/dist/{proxy-request-headers-m4D2Tduy.d.ts → proxy-request-headers-CttlcuRb.d.ts} +1 -1
  59. package/dist/{proxy-request-headers-DGxdoyA0.d.cts → proxy-request-headers-pIBSn1Fw.d.cts} +1 -1
  60. package/dist/react.cjs +672 -16
  61. package/dist/react.cjs.map +1 -1
  62. package/dist/react.d.cts +123 -8
  63. package/dist/react.d.ts +123 -8
  64. package/dist/react.js +671 -17
  65. package/dist/react.js.map +1 -1
  66. package/dist/schema-handlers-BtT_IQFi.d.cts +138 -0
  67. package/dist/schema-handlers-VjFDhIMw.d.ts +138 -0
  68. package/dist/social-providers.d.cts +1 -1
  69. package/dist/social-providers.d.ts +1 -1
  70. package/dist/{types-D6tZ9aoq.d.ts → types-BDX8zS7w.d.ts} +40 -1
  71. package/dist/{types-AOY-GLu8.d.cts → types-BVKpQmfY.d.cts} +11 -0
  72. package/dist/{types-AOY-GLu8.d.ts → types-BVKpQmfY.d.ts} +11 -0
  73. package/dist/{types-DFr2cL1N.d.cts → types-D-Am7YSd.d.cts} +40 -1
  74. package/dist/utils.cjs +30 -0
  75. package/dist/utils.cjs.map +1 -1
  76. package/dist/utils.d.cts +3 -2
  77. package/dist/utils.d.ts +3 -2
  78. package/dist/utils.js +30 -1
  79. package/dist/utils.js.map +1 -1
  80. package/dist/{v3-client-CWfZHcKL.d.cts → v3-client-G1SLeHRa.d.cts} +23 -1
  81. package/dist/{v3-client-DZp2NEhK.d.ts → v3-client-ao8BWQ8v.d.ts} +23 -1
  82. package/package.json +16 -2
  83. package/dist/model-form-Dh0sisdL.d.ts +0 -97
  84. package/dist/model-form-oOAJUVd4.d.cts +0 -97
  85. package/dist/pipeline-CIzV9f7b.d.cts +0 -8
  86. package/dist/pipeline-DNlc8Ayn.d.ts +0 -8
@@ -0,0 +1,281 @@
1
+ import { d as AthenaGatewayErrorCode, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, s as AthenaGatewayResponse } from './types-Bltx6iL6.cjs';
2
+ import { ag as AthenaClient, av as AthenaQueryDebugAst } from './v3-client-G1SLeHRa.cjs';
3
+ import { s as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-CgCv5o6R.cjs';
4
+
5
+ interface AthenaGatewayErrorInput {
6
+ code: AthenaGatewayErrorCode;
7
+ message: string;
8
+ status?: number;
9
+ endpoint?: AthenaGatewayEndpointPath;
10
+ method?: AthenaGatewayMethod;
11
+ requestId?: string;
12
+ hint?: string;
13
+ cause?: string;
14
+ }
15
+ /**
16
+ * Canonical error for gateway failures.
17
+ * Holds request context and machine-readable classification.
18
+ */
19
+ declare class AthenaGatewayError extends Error {
20
+ readonly code: AthenaGatewayErrorCode;
21
+ readonly status: number;
22
+ readonly endpoint?: AthenaGatewayEndpointPath;
23
+ readonly method?: AthenaGatewayMethod;
24
+ readonly requestId?: string;
25
+ readonly hint?: string;
26
+ readonly causeDetail?: string;
27
+ constructor(input: AthenaGatewayErrorInput);
28
+ toDetails(): AthenaGatewayErrorDetails;
29
+ static fromResponse<T>(response: AthenaGatewayResponse<T>, fallback: Omit<AthenaGatewayErrorInput, 'code' | 'message' | 'status'>): AthenaGatewayError;
30
+ }
31
+ declare function isAthenaGatewayError(error: unknown): error is AthenaGatewayError;
32
+
33
+ /**
34
+ * Portable Athena read-query definition and executor.
35
+ *
36
+ * Runs findMany / select page queries against `createClient(...).db` with
37
+ * expression columns, display aliases, filters, order, and total-count handling.
38
+ * UI hooks (pagination, dataProxy, TanStack) live in consumer packages such as
39
+ * athena-auth-ui — this module is the SDK contract only.
40
+ */
41
+
42
+ type AthenaReadQueryMode = 'findMany' | 'select';
43
+ type AthenaReadQueryFilterOperator = 'eq' | 'gt' | 'gte' | 'ilike' | 'in' | 'is' | 'like' | 'lt' | 'lte' | 'neq';
44
+ type AthenaReadQueryOrderDirection = 'asc' | 'desc';
45
+ interface AthenaReadQueryRelationRef {
46
+ name: string;
47
+ schema?: string;
48
+ table: string;
49
+ }
50
+ /**
51
+ * One projected field: `column` is the Athena select expression (or base column),
52
+ * `key` is the flat-row alias after execution.
53
+ */
54
+ interface AthenaReadQueryColumn {
55
+ column: string;
56
+ key: string;
57
+ label?: string;
58
+ relation?: AthenaReadQueryRelationRef;
59
+ }
60
+ type AthenaReadQueryFilterValue = boolean | number | null | readonly (boolean | number | string | null)[] | string;
61
+ interface AthenaReadQueryFilter {
62
+ column: string;
63
+ operator?: AthenaReadQueryFilterOperator;
64
+ value: AthenaReadQueryFilterValue;
65
+ }
66
+ interface AthenaReadQueryOrder {
67
+ column: string;
68
+ direction?: AthenaReadQueryOrderDirection;
69
+ }
70
+ type AthenaReadQueryOrderByInput = AthenaReadQueryOrder | readonly AthenaReadQueryOrder[];
71
+ /**
72
+ * Portable read definition shared by SDK callers, app data proxies, and UI hooks.
73
+ */
74
+ interface AthenaReadQueryDefinition {
75
+ columns: readonly AthenaReadQueryColumn[];
76
+ countColumn: string;
77
+ filters?: readonly AthenaReadQueryFilter[];
78
+ /**
79
+ * Optional max total rows to expose from the result set.
80
+ * Caps reported `totalItems` and shortens the last page under that window.
81
+ * Does **not** replace `pageSize` for per-request page sizing — those fight
82
+ * when both are applied as SQL LIMIT.
83
+ */
84
+ limit?: number;
85
+ mode?: AthenaReadQueryMode;
86
+ /** Single order or multi-column order list. */
87
+ orderBy?: AthenaReadQueryOrderByInput;
88
+ rowKey?: string;
89
+ schema?: string;
90
+ table: string;
91
+ }
92
+ declare function normalizeAthenaReadQueryOrderBy(orderBy: AthenaReadQueryOrderByInput | undefined): AthenaReadQueryOrder[];
93
+ type AthenaReadQueryFlatRow = Record<string, unknown> & {
94
+ __rowKey: string;
95
+ };
96
+ /** Minimal client shape: any `createClient(...)` result (or scoped view) with `.db`. */
97
+ interface AthenaReadQueryClient {
98
+ readonly db: AthenaClient['db'] | object;
99
+ }
100
+ interface AthenaReadQueryExecutionInput {
101
+ client: AthenaReadQueryClient;
102
+ page: number;
103
+ pageSize: number;
104
+ query: AthenaReadQueryDefinition;
105
+ }
106
+ interface AthenaReadQueryExecutionResult {
107
+ debugAst?: AthenaQueryDebugAst;
108
+ rows: AthenaReadQueryFlatRow[];
109
+ totalItems: number;
110
+ }
111
+ /** @deprecated Prefer {@link AthenaReadQueryMode}. */
112
+ type AthenaTableQueryMode = AthenaReadQueryMode;
113
+ /** @deprecated Prefer {@link AthenaReadQueryFilterOperator}. */
114
+ type AthenaTableFilterOperator = AthenaReadQueryFilterOperator;
115
+ /** @deprecated Prefer {@link AthenaReadQueryOrderDirection}. */
116
+ type AthenaTableOrderDirection = AthenaReadQueryOrderDirection;
117
+ /** @deprecated Prefer {@link AthenaReadQueryRelationRef}. */
118
+ type AthenaTableRelationRef = AthenaReadQueryRelationRef;
119
+ /** @deprecated Prefer {@link AthenaReadQueryColumn}. */
120
+ type AthenaTableQueryColumn = AthenaReadQueryColumn;
121
+ /** @deprecated Prefer {@link AthenaReadQueryFilterValue}. */
122
+ type AthenaTableFilterValue = AthenaReadQueryFilterValue;
123
+ /** @deprecated Prefer {@link AthenaReadQueryFilter}. */
124
+ type AthenaTableFilter = AthenaReadQueryFilter;
125
+ /** @deprecated Prefer {@link AthenaReadQueryOrder}. */
126
+ type AthenaTableOrder = AthenaReadQueryOrder;
127
+ /** @deprecated Prefer {@link AthenaReadQueryOrderByInput}. */
128
+ type AthenaTableOrderByInput = AthenaReadQueryOrderByInput;
129
+ /** @deprecated Prefer {@link AthenaReadQueryDefinition}. */
130
+ type AthenaTableQueryDefinition = AthenaReadQueryDefinition;
131
+ /** @deprecated Prefer {@link AthenaReadQueryFlatRow}. */
132
+ type AthenaTableFlatRow = AthenaReadQueryFlatRow;
133
+ /** @deprecated Prefer {@link AthenaReadQueryClient}. */
134
+ type AthenaTableQueryClient = AthenaReadQueryClient;
135
+ /** @deprecated Prefer {@link AthenaReadQueryExecutionInput}. */
136
+ type AthenaTableQueryExecutionInput = AthenaReadQueryExecutionInput;
137
+ /** @deprecated Prefer {@link AthenaReadQueryExecutionResult}. */
138
+ type AthenaTableQueryExecutionResult = AthenaReadQueryExecutionResult;
139
+ interface AthenaSelectRelationNode {
140
+ schema?: string;
141
+ select: AthenaSelectShape;
142
+ }
143
+ type AthenaSelectShape = Record<string, true | AthenaSelectRelationNode>;
144
+ declare function flattenAthenaReadQueryRows(rows: readonly unknown[], columns: readonly AthenaReadQueryColumn[], preferredKey: string | undefined): AthenaReadQueryFlatRow[];
145
+ /** @deprecated Prefer {@link flattenAthenaReadQueryRows}. */
146
+ declare const flattenAthenaRows: typeof flattenAthenaReadQueryRows;
147
+ declare function buildAthenaReadQuerySelectString(columns: readonly AthenaReadQueryColumn[]): string;
148
+ /** @deprecated Prefer {@link buildAthenaReadQuerySelectString}. */
149
+ declare const buildAthenaTableSelectString: typeof buildAthenaReadQuerySelectString;
150
+ declare function buildAthenaReadQueryFindManySelect(columns: readonly AthenaReadQueryColumn[]): AthenaSelectShape;
151
+ /** @deprecated Prefer {@link buildAthenaReadQueryFindManySelect}. */
152
+ declare const buildAthenaTableFindManySelect: typeof buildAthenaReadQueryFindManySelect;
153
+ declare function buildAthenaReadQueryFindManyWhere(filters: readonly AthenaReadQueryFilter[] | undefined): Record<string, object | AthenaReadQueryFilterValue> | undefined;
154
+ /** @deprecated Prefer {@link buildAthenaReadQueryFindManyWhere}. */
155
+ declare const buildAthenaTableFindManyWhere: typeof buildAthenaReadQueryFindManyWhere;
156
+ /**
157
+ * Builds findMany `orderBy` in the Athena SDK object shape.
158
+ * Single-order keeps the legacy `{ column, ascending }` form for back-compat.
159
+ */
160
+ declare function buildAthenaReadQueryFindManyOrderBy(orderBy: AthenaReadQueryOrderByInput | undefined): Record<string, 'asc' | 'desc' | {
161
+ ascending: boolean;
162
+ }> | {
163
+ ascending: boolean;
164
+ column: string;
165
+ } | undefined;
166
+ /** @deprecated Prefer {@link buildAthenaReadQueryFindManyOrderBy}. */
167
+ declare const buildAthenaTableFindManyOrderBy: typeof buildAthenaReadQueryFindManyOrderBy;
168
+ /** @deprecated Prefer {@link normalizeAthenaReadQueryOrderBy}. */
169
+ declare const normalizeAthenaTableOrderBy: typeof normalizeAthenaReadQueryOrderBy;
170
+ declare function applyAthenaReadQueryFilters<T extends object>(queryBuilder: T, filters: readonly AthenaReadQueryFilter[] | undefined): T;
171
+ /** @deprecated Prefer {@link applyAthenaReadQueryFilters}. */
172
+ declare const applyAthenaTableFilters: typeof applyAthenaReadQueryFilters;
173
+ declare function applyAthenaReadQuerySelectOrder<T extends {
174
+ order: (column: string, options: {
175
+ ascending: boolean;
176
+ }) => T;
177
+ }>(queryBuilder: T, orderBy: AthenaReadQueryOrderByInput | undefined): T;
178
+ /** @deprecated Prefer {@link applyAthenaReadQuerySelectOrder}. */
179
+ declare const applyAthenaTableSelectOrder: typeof applyAthenaReadQuerySelectOrder;
180
+ declare function applyAthenaReadQuerySelectLimit<T extends {
181
+ limit: (value: number) => T;
182
+ }>(queryBuilder: T, limit: number | undefined): T;
183
+ /** @deprecated Prefer {@link applyAthenaReadQuerySelectLimit}. */
184
+ declare const applyAthenaTableSelectLimit: typeof applyAthenaReadQuerySelectLimit;
185
+ declare function clampAthenaReadQueryTotalItems(totalItems: number, limit: number | undefined): number;
186
+ /** @deprecated Prefer {@link clampAthenaReadQueryTotalItems}. */
187
+ declare const clampAthenaTableTotalItems: typeof clampAthenaReadQueryTotalItems;
188
+ /**
189
+ * Resolves the page window for a paged read under an optional total-row cap.
190
+ *
191
+ * - `pageSize` owns the per-request fetch size.
192
+ * - `query.limit` (when set) is a max total window, not a second LIMIT that
193
+ * overrides pageSize (which previously made the two controls fight).
194
+ */
195
+ declare function resolveAthenaReadQueryPageFetch({ page, pageSize, limit, }: {
196
+ page: number;
197
+ pageSize: number;
198
+ limit?: number;
199
+ }): {
200
+ page: number;
201
+ pageSize: number;
202
+ shouldFetch: boolean;
203
+ };
204
+ /**
205
+ * Execute a portable {@link AthenaReadQueryDefinition} against a v3 Athena client.
206
+ *
207
+ * Pass `createClient({ url, key })` or a `withContext` / session-scoped view.
208
+ * Does not construct clients and does not perform HTTP proxy routing.
209
+ */
210
+ declare function executeAthenaReadQuery({ client, page, pageSize, query, }: AthenaReadQueryExecutionInput): Promise<AthenaReadQueryExecutionResult>;
211
+ /**
212
+ * @deprecated Prefer {@link executeAthenaReadQuery}. Same implementation.
213
+ */
214
+ declare const executeAthenaTableQuery: typeof executeAthenaReadQuery;
215
+
216
+ type ModelFormNullishMode = 'empty-string' | 'undefined' | 'null';
217
+ type NullishValueByMode = {
218
+ 'empty-string': '';
219
+ undefined: undefined;
220
+ null: null;
221
+ };
222
+ type MapNullableToFormValue<TField, TMode extends ModelFormNullishMode> = null extends TField ? Exclude<TField, null> | NullishValueByMode[TMode] : TField;
223
+ /**
224
+ * Form value shape derived from a model insert payload.
225
+ * Nullable fields are remapped to the selected nullish representation.
226
+ */
227
+ type ModelFormValues<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = {
228
+ [K in keyof InsertOf<TModel>]: MapNullableToFormValue<InsertOf<TModel>[K], TMode>;
229
+ };
230
+ /**
231
+ * Alias for deriving form value types from any model contract.
232
+ */
233
+ type FormValuesOf<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = ModelFormValues<TModel, TMode>;
234
+ /**
235
+ * Default value shape for form initialization.
236
+ */
237
+ type ModelFormDefaults<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = Partial<ModelFormValues<TModel, TMode>>;
238
+ interface ToModelFormDefaultsOptions<TMode extends ModelFormNullishMode = 'empty-string'> {
239
+ /**
240
+ * Controls how nullable model values are represented in form defaults.
241
+ * - `empty-string` (default): `null -> ""`
242
+ * - `undefined`: `null -> undefined`
243
+ * - `null`: keeps `null`
244
+ */
245
+ nullishMode?: TMode;
246
+ }
247
+ interface ToModelPayloadOptions {
248
+ /**
249
+ * Converts `""` into `null` for nullable model fields.
250
+ * Defaults to `true`.
251
+ */
252
+ emptyStringAsNull?: boolean;
253
+ /**
254
+ * Omits `undefined` keys from the outgoing payload.
255
+ * Defaults to `true`.
256
+ */
257
+ stripUndefined?: boolean;
258
+ }
259
+ /**
260
+ * Normalizes model data into form-safe defaults using model nullability metadata.
261
+ */
262
+ 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>;
263
+ /**
264
+ * Normalizes form values back into model-compatible insert/update payloads.
265
+ */
266
+ declare function toModelPayload<TModel extends AnyModelDef>(model: TModel, formValues: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
267
+ /**
268
+ * Runtime form adapter bound to a model contract.
269
+ */
270
+ interface ModelFormAdapter<TModel extends AnyModelDef> {
271
+ model: TModel;
272
+ toDefaults<TMode extends ModelFormNullishMode = 'empty-string'>(values?: Partial<RowOf<TModel>> | Partial<InsertOf<TModel>> | null, options?: ToModelFormDefaultsOptions<TMode>): ModelFormDefaults<TModel, TMode>;
273
+ toInsert(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
274
+ toUpdate(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<UpdateOf<TModel>>;
275
+ }
276
+ /**
277
+ * Creates a small model-aware adapter for form defaults and payload normalization.
278
+ */
279
+ declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
280
+
281
+ export { executeAthenaReadQuery as $, AthenaGatewayError as A, type AthenaTableQueryMode as B, type AthenaTableRelationRef as C, type ModelFormDefaults as D, type ModelFormNullishMode as E, type FormValuesOf as F, type ModelFormValues as G, type ToModelPayloadOptions as H, applyAthenaReadQueryFilters as I, applyAthenaReadQuerySelectLimit as J, applyAthenaReadQuerySelectOrder as K, applyAthenaTableFilters as L, type ModelFormAdapter as M, applyAthenaTableSelectLimit as N, applyAthenaTableSelectOrder as O, buildAthenaReadQueryFindManyOrderBy as P, buildAthenaReadQueryFindManySelect as Q, buildAthenaReadQueryFindManyWhere as R, buildAthenaReadQuerySelectString as S, type ToModelFormDefaultsOptions as T, buildAthenaTableFindManyOrderBy as U, buildAthenaTableFindManySelect as V, buildAthenaTableFindManyWhere as W, buildAthenaTableSelectString as X, clampAthenaReadQueryTotalItems as Y, clampAthenaTableTotalItems as Z, createModelFormAdapter as _, type AthenaReadQueryClient as a, executeAthenaTableQuery as a0, flattenAthenaReadQueryRows as a1, flattenAthenaRows as a2, isAthenaGatewayError as a3, normalizeAthenaReadQueryOrderBy as a4, normalizeAthenaTableOrderBy as a5, resolveAthenaReadQueryPageFetch as a6, toModelFormDefaults as a7, toModelPayload as a8, type AthenaReadQueryColumn as b, type AthenaReadQueryDefinition as c, type AthenaReadQueryExecutionInput as d, type AthenaReadQueryExecutionResult as e, type AthenaReadQueryFilter as f, type AthenaReadQueryFilterOperator as g, type AthenaReadQueryFilterValue as h, type AthenaReadQueryFlatRow as i, type AthenaReadQueryMode as j, type AthenaReadQueryOrder as k, type AthenaReadQueryOrderByInput as l, type AthenaReadQueryOrderDirection as m, type AthenaReadQueryRelationRef as n, type AthenaTableFilter as o, type AthenaTableFilterOperator as p, type AthenaTableFilterValue as q, type AthenaTableFlatRow as r, type AthenaTableOrder as s, type AthenaTableOrderByInput as t, type AthenaTableOrderDirection as u, type AthenaTableQueryClient as v, type AthenaTableQueryColumn as w, type AthenaTableQueryDefinition as x, type AthenaTableQueryExecutionInput as y, type AthenaTableQueryExecutionResult as z };
@@ -0,0 +1,281 @@
1
+ import { d as AthenaGatewayErrorCode, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, s as AthenaGatewayResponse } from './types-Bltx6iL6.js';
2
+ import { ag as AthenaClient, av as AthenaQueryDebugAst } from './v3-client-ao8BWQ8v.js';
3
+ import { s as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-B75PdABb.js';
4
+
5
+ interface AthenaGatewayErrorInput {
6
+ code: AthenaGatewayErrorCode;
7
+ message: string;
8
+ status?: number;
9
+ endpoint?: AthenaGatewayEndpointPath;
10
+ method?: AthenaGatewayMethod;
11
+ requestId?: string;
12
+ hint?: string;
13
+ cause?: string;
14
+ }
15
+ /**
16
+ * Canonical error for gateway failures.
17
+ * Holds request context and machine-readable classification.
18
+ */
19
+ declare class AthenaGatewayError extends Error {
20
+ readonly code: AthenaGatewayErrorCode;
21
+ readonly status: number;
22
+ readonly endpoint?: AthenaGatewayEndpointPath;
23
+ readonly method?: AthenaGatewayMethod;
24
+ readonly requestId?: string;
25
+ readonly hint?: string;
26
+ readonly causeDetail?: string;
27
+ constructor(input: AthenaGatewayErrorInput);
28
+ toDetails(): AthenaGatewayErrorDetails;
29
+ static fromResponse<T>(response: AthenaGatewayResponse<T>, fallback: Omit<AthenaGatewayErrorInput, 'code' | 'message' | 'status'>): AthenaGatewayError;
30
+ }
31
+ declare function isAthenaGatewayError(error: unknown): error is AthenaGatewayError;
32
+
33
+ /**
34
+ * Portable Athena read-query definition and executor.
35
+ *
36
+ * Runs findMany / select page queries against `createClient(...).db` with
37
+ * expression columns, display aliases, filters, order, and total-count handling.
38
+ * UI hooks (pagination, dataProxy, TanStack) live in consumer packages such as
39
+ * athena-auth-ui — this module is the SDK contract only.
40
+ */
41
+
42
+ type AthenaReadQueryMode = 'findMany' | 'select';
43
+ type AthenaReadQueryFilterOperator = 'eq' | 'gt' | 'gte' | 'ilike' | 'in' | 'is' | 'like' | 'lt' | 'lte' | 'neq';
44
+ type AthenaReadQueryOrderDirection = 'asc' | 'desc';
45
+ interface AthenaReadQueryRelationRef {
46
+ name: string;
47
+ schema?: string;
48
+ table: string;
49
+ }
50
+ /**
51
+ * One projected field: `column` is the Athena select expression (or base column),
52
+ * `key` is the flat-row alias after execution.
53
+ */
54
+ interface AthenaReadQueryColumn {
55
+ column: string;
56
+ key: string;
57
+ label?: string;
58
+ relation?: AthenaReadQueryRelationRef;
59
+ }
60
+ type AthenaReadQueryFilterValue = boolean | number | null | readonly (boolean | number | string | null)[] | string;
61
+ interface AthenaReadQueryFilter {
62
+ column: string;
63
+ operator?: AthenaReadQueryFilterOperator;
64
+ value: AthenaReadQueryFilterValue;
65
+ }
66
+ interface AthenaReadQueryOrder {
67
+ column: string;
68
+ direction?: AthenaReadQueryOrderDirection;
69
+ }
70
+ type AthenaReadQueryOrderByInput = AthenaReadQueryOrder | readonly AthenaReadQueryOrder[];
71
+ /**
72
+ * Portable read definition shared by SDK callers, app data proxies, and UI hooks.
73
+ */
74
+ interface AthenaReadQueryDefinition {
75
+ columns: readonly AthenaReadQueryColumn[];
76
+ countColumn: string;
77
+ filters?: readonly AthenaReadQueryFilter[];
78
+ /**
79
+ * Optional max total rows to expose from the result set.
80
+ * Caps reported `totalItems` and shortens the last page under that window.
81
+ * Does **not** replace `pageSize` for per-request page sizing — those fight
82
+ * when both are applied as SQL LIMIT.
83
+ */
84
+ limit?: number;
85
+ mode?: AthenaReadQueryMode;
86
+ /** Single order or multi-column order list. */
87
+ orderBy?: AthenaReadQueryOrderByInput;
88
+ rowKey?: string;
89
+ schema?: string;
90
+ table: string;
91
+ }
92
+ declare function normalizeAthenaReadQueryOrderBy(orderBy: AthenaReadQueryOrderByInput | undefined): AthenaReadQueryOrder[];
93
+ type AthenaReadQueryFlatRow = Record<string, unknown> & {
94
+ __rowKey: string;
95
+ };
96
+ /** Minimal client shape: any `createClient(...)` result (or scoped view) with `.db`. */
97
+ interface AthenaReadQueryClient {
98
+ readonly db: AthenaClient['db'] | object;
99
+ }
100
+ interface AthenaReadQueryExecutionInput {
101
+ client: AthenaReadQueryClient;
102
+ page: number;
103
+ pageSize: number;
104
+ query: AthenaReadQueryDefinition;
105
+ }
106
+ interface AthenaReadQueryExecutionResult {
107
+ debugAst?: AthenaQueryDebugAst;
108
+ rows: AthenaReadQueryFlatRow[];
109
+ totalItems: number;
110
+ }
111
+ /** @deprecated Prefer {@link AthenaReadQueryMode}. */
112
+ type AthenaTableQueryMode = AthenaReadQueryMode;
113
+ /** @deprecated Prefer {@link AthenaReadQueryFilterOperator}. */
114
+ type AthenaTableFilterOperator = AthenaReadQueryFilterOperator;
115
+ /** @deprecated Prefer {@link AthenaReadQueryOrderDirection}. */
116
+ type AthenaTableOrderDirection = AthenaReadQueryOrderDirection;
117
+ /** @deprecated Prefer {@link AthenaReadQueryRelationRef}. */
118
+ type AthenaTableRelationRef = AthenaReadQueryRelationRef;
119
+ /** @deprecated Prefer {@link AthenaReadQueryColumn}. */
120
+ type AthenaTableQueryColumn = AthenaReadQueryColumn;
121
+ /** @deprecated Prefer {@link AthenaReadQueryFilterValue}. */
122
+ type AthenaTableFilterValue = AthenaReadQueryFilterValue;
123
+ /** @deprecated Prefer {@link AthenaReadQueryFilter}. */
124
+ type AthenaTableFilter = AthenaReadQueryFilter;
125
+ /** @deprecated Prefer {@link AthenaReadQueryOrder}. */
126
+ type AthenaTableOrder = AthenaReadQueryOrder;
127
+ /** @deprecated Prefer {@link AthenaReadQueryOrderByInput}. */
128
+ type AthenaTableOrderByInput = AthenaReadQueryOrderByInput;
129
+ /** @deprecated Prefer {@link AthenaReadQueryDefinition}. */
130
+ type AthenaTableQueryDefinition = AthenaReadQueryDefinition;
131
+ /** @deprecated Prefer {@link AthenaReadQueryFlatRow}. */
132
+ type AthenaTableFlatRow = AthenaReadQueryFlatRow;
133
+ /** @deprecated Prefer {@link AthenaReadQueryClient}. */
134
+ type AthenaTableQueryClient = AthenaReadQueryClient;
135
+ /** @deprecated Prefer {@link AthenaReadQueryExecutionInput}. */
136
+ type AthenaTableQueryExecutionInput = AthenaReadQueryExecutionInput;
137
+ /** @deprecated Prefer {@link AthenaReadQueryExecutionResult}. */
138
+ type AthenaTableQueryExecutionResult = AthenaReadQueryExecutionResult;
139
+ interface AthenaSelectRelationNode {
140
+ schema?: string;
141
+ select: AthenaSelectShape;
142
+ }
143
+ type AthenaSelectShape = Record<string, true | AthenaSelectRelationNode>;
144
+ declare function flattenAthenaReadQueryRows(rows: readonly unknown[], columns: readonly AthenaReadQueryColumn[], preferredKey: string | undefined): AthenaReadQueryFlatRow[];
145
+ /** @deprecated Prefer {@link flattenAthenaReadQueryRows}. */
146
+ declare const flattenAthenaRows: typeof flattenAthenaReadQueryRows;
147
+ declare function buildAthenaReadQuerySelectString(columns: readonly AthenaReadQueryColumn[]): string;
148
+ /** @deprecated Prefer {@link buildAthenaReadQuerySelectString}. */
149
+ declare const buildAthenaTableSelectString: typeof buildAthenaReadQuerySelectString;
150
+ declare function buildAthenaReadQueryFindManySelect(columns: readonly AthenaReadQueryColumn[]): AthenaSelectShape;
151
+ /** @deprecated Prefer {@link buildAthenaReadQueryFindManySelect}. */
152
+ declare const buildAthenaTableFindManySelect: typeof buildAthenaReadQueryFindManySelect;
153
+ declare function buildAthenaReadQueryFindManyWhere(filters: readonly AthenaReadQueryFilter[] | undefined): Record<string, object | AthenaReadQueryFilterValue> | undefined;
154
+ /** @deprecated Prefer {@link buildAthenaReadQueryFindManyWhere}. */
155
+ declare const buildAthenaTableFindManyWhere: typeof buildAthenaReadQueryFindManyWhere;
156
+ /**
157
+ * Builds findMany `orderBy` in the Athena SDK object shape.
158
+ * Single-order keeps the legacy `{ column, ascending }` form for back-compat.
159
+ */
160
+ declare function buildAthenaReadQueryFindManyOrderBy(orderBy: AthenaReadQueryOrderByInput | undefined): Record<string, 'asc' | 'desc' | {
161
+ ascending: boolean;
162
+ }> | {
163
+ ascending: boolean;
164
+ column: string;
165
+ } | undefined;
166
+ /** @deprecated Prefer {@link buildAthenaReadQueryFindManyOrderBy}. */
167
+ declare const buildAthenaTableFindManyOrderBy: typeof buildAthenaReadQueryFindManyOrderBy;
168
+ /** @deprecated Prefer {@link normalizeAthenaReadQueryOrderBy}. */
169
+ declare const normalizeAthenaTableOrderBy: typeof normalizeAthenaReadQueryOrderBy;
170
+ declare function applyAthenaReadQueryFilters<T extends object>(queryBuilder: T, filters: readonly AthenaReadQueryFilter[] | undefined): T;
171
+ /** @deprecated Prefer {@link applyAthenaReadQueryFilters}. */
172
+ declare const applyAthenaTableFilters: typeof applyAthenaReadQueryFilters;
173
+ declare function applyAthenaReadQuerySelectOrder<T extends {
174
+ order: (column: string, options: {
175
+ ascending: boolean;
176
+ }) => T;
177
+ }>(queryBuilder: T, orderBy: AthenaReadQueryOrderByInput | undefined): T;
178
+ /** @deprecated Prefer {@link applyAthenaReadQuerySelectOrder}. */
179
+ declare const applyAthenaTableSelectOrder: typeof applyAthenaReadQuerySelectOrder;
180
+ declare function applyAthenaReadQuerySelectLimit<T extends {
181
+ limit: (value: number) => T;
182
+ }>(queryBuilder: T, limit: number | undefined): T;
183
+ /** @deprecated Prefer {@link applyAthenaReadQuerySelectLimit}. */
184
+ declare const applyAthenaTableSelectLimit: typeof applyAthenaReadQuerySelectLimit;
185
+ declare function clampAthenaReadQueryTotalItems(totalItems: number, limit: number | undefined): number;
186
+ /** @deprecated Prefer {@link clampAthenaReadQueryTotalItems}. */
187
+ declare const clampAthenaTableTotalItems: typeof clampAthenaReadQueryTotalItems;
188
+ /**
189
+ * Resolves the page window for a paged read under an optional total-row cap.
190
+ *
191
+ * - `pageSize` owns the per-request fetch size.
192
+ * - `query.limit` (when set) is a max total window, not a second LIMIT that
193
+ * overrides pageSize (which previously made the two controls fight).
194
+ */
195
+ declare function resolveAthenaReadQueryPageFetch({ page, pageSize, limit, }: {
196
+ page: number;
197
+ pageSize: number;
198
+ limit?: number;
199
+ }): {
200
+ page: number;
201
+ pageSize: number;
202
+ shouldFetch: boolean;
203
+ };
204
+ /**
205
+ * Execute a portable {@link AthenaReadQueryDefinition} against a v3 Athena client.
206
+ *
207
+ * Pass `createClient({ url, key })` or a `withContext` / session-scoped view.
208
+ * Does not construct clients and does not perform HTTP proxy routing.
209
+ */
210
+ declare function executeAthenaReadQuery({ client, page, pageSize, query, }: AthenaReadQueryExecutionInput): Promise<AthenaReadQueryExecutionResult>;
211
+ /**
212
+ * @deprecated Prefer {@link executeAthenaReadQuery}. Same implementation.
213
+ */
214
+ declare const executeAthenaTableQuery: typeof executeAthenaReadQuery;
215
+
216
+ type ModelFormNullishMode = 'empty-string' | 'undefined' | 'null';
217
+ type NullishValueByMode = {
218
+ 'empty-string': '';
219
+ undefined: undefined;
220
+ null: null;
221
+ };
222
+ type MapNullableToFormValue<TField, TMode extends ModelFormNullishMode> = null extends TField ? Exclude<TField, null> | NullishValueByMode[TMode] : TField;
223
+ /**
224
+ * Form value shape derived from a model insert payload.
225
+ * Nullable fields are remapped to the selected nullish representation.
226
+ */
227
+ type ModelFormValues<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = {
228
+ [K in keyof InsertOf<TModel>]: MapNullableToFormValue<InsertOf<TModel>[K], TMode>;
229
+ };
230
+ /**
231
+ * Alias for deriving form value types from any model contract.
232
+ */
233
+ type FormValuesOf<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = ModelFormValues<TModel, TMode>;
234
+ /**
235
+ * Default value shape for form initialization.
236
+ */
237
+ type ModelFormDefaults<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = Partial<ModelFormValues<TModel, TMode>>;
238
+ interface ToModelFormDefaultsOptions<TMode extends ModelFormNullishMode = 'empty-string'> {
239
+ /**
240
+ * Controls how nullable model values are represented in form defaults.
241
+ * - `empty-string` (default): `null -> ""`
242
+ * - `undefined`: `null -> undefined`
243
+ * - `null`: keeps `null`
244
+ */
245
+ nullishMode?: TMode;
246
+ }
247
+ interface ToModelPayloadOptions {
248
+ /**
249
+ * Converts `""` into `null` for nullable model fields.
250
+ * Defaults to `true`.
251
+ */
252
+ emptyStringAsNull?: boolean;
253
+ /**
254
+ * Omits `undefined` keys from the outgoing payload.
255
+ * Defaults to `true`.
256
+ */
257
+ stripUndefined?: boolean;
258
+ }
259
+ /**
260
+ * Normalizes model data into form-safe defaults using model nullability metadata.
261
+ */
262
+ 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>;
263
+ /**
264
+ * Normalizes form values back into model-compatible insert/update payloads.
265
+ */
266
+ declare function toModelPayload<TModel extends AnyModelDef>(model: TModel, formValues: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
267
+ /**
268
+ * Runtime form adapter bound to a model contract.
269
+ */
270
+ interface ModelFormAdapter<TModel extends AnyModelDef> {
271
+ model: TModel;
272
+ toDefaults<TMode extends ModelFormNullishMode = 'empty-string'>(values?: Partial<RowOf<TModel>> | Partial<InsertOf<TModel>> | null, options?: ToModelFormDefaultsOptions<TMode>): ModelFormDefaults<TModel, TMode>;
273
+ toInsert(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
274
+ toUpdate(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<UpdateOf<TModel>>;
275
+ }
276
+ /**
277
+ * Creates a small model-aware adapter for form defaults and payload normalization.
278
+ */
279
+ declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
280
+
281
+ export { executeAthenaReadQuery as $, AthenaGatewayError as A, type AthenaTableQueryMode as B, type AthenaTableRelationRef as C, type ModelFormDefaults as D, type ModelFormNullishMode as E, type FormValuesOf as F, type ModelFormValues as G, type ToModelPayloadOptions as H, applyAthenaReadQueryFilters as I, applyAthenaReadQuerySelectLimit as J, applyAthenaReadQuerySelectOrder as K, applyAthenaTableFilters as L, type ModelFormAdapter as M, applyAthenaTableSelectLimit as N, applyAthenaTableSelectOrder as O, buildAthenaReadQueryFindManyOrderBy as P, buildAthenaReadQueryFindManySelect as Q, buildAthenaReadQueryFindManyWhere as R, buildAthenaReadQuerySelectString as S, type ToModelFormDefaultsOptions as T, buildAthenaTableFindManyOrderBy as U, buildAthenaTableFindManySelect as V, buildAthenaTableFindManyWhere as W, buildAthenaTableSelectString as X, clampAthenaReadQueryTotalItems as Y, clampAthenaTableTotalItems as Z, createModelFormAdapter as _, type AthenaReadQueryClient as a, executeAthenaTableQuery as a0, flattenAthenaReadQueryRows as a1, flattenAthenaRows as a2, isAthenaGatewayError as a3, normalizeAthenaReadQueryOrderBy as a4, normalizeAthenaTableOrderBy as a5, resolveAthenaReadQueryPageFetch as a6, toModelFormDefaults as a7, toModelPayload as a8, type AthenaReadQueryColumn as b, type AthenaReadQueryDefinition as c, type AthenaReadQueryExecutionInput as d, type AthenaReadQueryExecutionResult as e, type AthenaReadQueryFilter as f, type AthenaReadQueryFilterOperator as g, type AthenaReadQueryFilterValue as h, type AthenaReadQueryFlatRow as i, type AthenaReadQueryMode as j, type AthenaReadQueryOrder as k, type AthenaReadQueryOrderByInput as l, type AthenaReadQueryOrderDirection as m, type AthenaReadQueryRelationRef as n, type AthenaTableFilter as o, type AthenaTableFilterOperator as p, type AthenaTableFilterValue as q, type AthenaTableFlatRow as r, type AthenaTableOrder as s, type AthenaTableOrderByInput as t, type AthenaTableOrderDirection as u, type AthenaTableQueryClient as v, type AthenaTableQueryColumn as w, type AthenaTableQueryDefinition as x, type AthenaTableQueryExecutionInput as y, type AthenaTableQueryExecutionResult as z };
@@ -1,10 +1,10 @@
1
1
  import { o as SchemaDef, s as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-CgCv5o6R.cjs';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-oOAJUVd4.cjs';
2
+ import { E as ModelFormNullishMode, G as ModelFormValues } from './model-form-3Gr8rkdT.cjs';
3
3
  import { ZodType } from 'zod';
4
- import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-DFr2cL1N.cjs';
4
+ import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-D-Am7YSd.cjs';
5
5
  import { A as AthenaCookiesOptions, a as AthenaSessionPair, b as AthenaCookieOptions, c as AthenaAuthCookies, g as getCookieCache, d as getSessionCookie, e as AthenaCookieContextRuntime } from './index-CFL9xbFR.cjs';
6
- import { aQ as AuthSocialProvider, a4 as AthenaAuthReactEmailProps, a1 as AthenaAuthReactEmailComponent, a6 as AthenaAuthReactEmailRenderInput, L as AthenaAuthEmailTemplateDefinition, J as AthenaAuthEmailTemplateBuilder, a7 as AthenaAuthReactEmailRenderOptions, a5 as AthenaAuthReactEmailRenderEvent, a2 as AthenaAuthReactEmailConfig } from './types-AOY-GLu8.cjs';
7
- import { r as AthenaChatMessageCreatedResponse, q as AthenaChatMessage, F as AthenaChatRoomCreatedResponse, E as AthenaChatRoom } from './v3-client-CWfZHcKL.cjs';
6
+ import { aQ as AuthSocialProvider, a4 as AthenaAuthReactEmailProps, a1 as AthenaAuthReactEmailComponent, a6 as AthenaAuthReactEmailRenderInput, L as AthenaAuthEmailTemplateDefinition, J as AthenaAuthEmailTemplateBuilder, a7 as AthenaAuthReactEmailRenderOptions, a5 as AthenaAuthReactEmailRenderEvent, a2 as AthenaAuthReactEmailConfig } from './types-BVKpQmfY.cjs';
7
+ import { r as AthenaChatMessageCreatedResponse, q as AthenaChatMessage, F as AthenaChatRoomCreatedResponse, E as AthenaChatRoom } from './v3-client-G1SLeHRa.cjs';
8
8
 
9
9
  type AthenaService = 'db' | 'auth' | 'chat' | 'storage' | 'billing';
10
10
  type AthenaConfigurationErrorCode = 'ATHENA_NO_SERVICE_CONFIGURED' | 'ATHENA_SERVICE_NOT_CONFIGURED' | 'ATHENA_API_KEY_REQUIRED' | 'ATHENA_INVALID_URL' | 'ATHENA_NEXT_SERVER_RUNTIME_REQUIRED';
@@ -1,10 +1,10 @@
1
1
  import { o as SchemaDef, s as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-B75PdABb.js';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-Dh0sisdL.js';
2
+ import { E as ModelFormNullishMode, G as ModelFormValues } from './model-form-CotpEL7z.js';
3
3
  import { ZodType } from 'zod';
4
- import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-D6tZ9aoq.js';
4
+ import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-BDX8zS7w.js';
5
5
  import { A as AthenaCookiesOptions, a as AthenaSessionPair, b as AthenaCookieOptions, c as AthenaAuthCookies, g as getCookieCache, d as getSessionCookie, e as AthenaCookieContextRuntime } from './index-UKJpunc6.js';
6
- import { aQ as AuthSocialProvider, a4 as AthenaAuthReactEmailProps, a1 as AthenaAuthReactEmailComponent, a6 as AthenaAuthReactEmailRenderInput, L as AthenaAuthEmailTemplateDefinition, J as AthenaAuthEmailTemplateBuilder, a7 as AthenaAuthReactEmailRenderOptions, a5 as AthenaAuthReactEmailRenderEvent, a2 as AthenaAuthReactEmailConfig } from './types-AOY-GLu8.js';
7
- import { r as AthenaChatMessageCreatedResponse, q as AthenaChatMessage, F as AthenaChatRoomCreatedResponse, E as AthenaChatRoom } from './v3-client-DZp2NEhK.js';
6
+ import { aQ as AuthSocialProvider, a4 as AthenaAuthReactEmailProps, a1 as AthenaAuthReactEmailComponent, a6 as AthenaAuthReactEmailRenderInput, L as AthenaAuthEmailTemplateDefinition, J as AthenaAuthEmailTemplateBuilder, a7 as AthenaAuthReactEmailRenderOptions, a5 as AthenaAuthReactEmailRenderEvent, a2 as AthenaAuthReactEmailConfig } from './types-BVKpQmfY.js';
7
+ import { r as AthenaChatMessageCreatedResponse, q as AthenaChatMessage, F as AthenaChatRoomCreatedResponse, E as AthenaChatRoom } from './v3-client-ao8BWQ8v.js';
8
8
 
9
9
  type AthenaService = 'db' | 'auth' | 'chat' | 'storage' | 'billing';
10
10
  type AthenaConfigurationErrorCode = 'ATHENA_NO_SERVICE_CONFIGURED' | 'ATHENA_SERVICE_NOT_CONFIGURED' | 'ATHENA_API_KEY_REQUIRED' | 'ATHENA_INVALID_URL' | 'ATHENA_NEXT_SERVER_RUNTIME_REQUIRED';