@xylex-group/athena 2.8.2 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +154 -64
  2. package/dist/browser.cjs +1550 -181
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.d.cts +8 -7
  5. package/dist/browser.d.ts +8 -7
  6. package/dist/browser.js +1540 -182
  7. package/dist/browser.js.map +1 -1
  8. package/dist/cli/index.cjs +1337 -67
  9. package/dist/cli/index.cjs.map +1 -1
  10. package/dist/cli/index.d.cts +3 -3
  11. package/dist/cli/index.d.ts +3 -3
  12. package/dist/cli/index.js +1337 -67
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/{model-form-Cx3wtvi8.d.ts → client-B7EQ_hPV.d.cts} +606 -118
  15. package/dist/{model-form-_ugfOXao.d.cts → client-BYii6dU9.d.ts} +606 -118
  16. package/dist/index.cjs +1540 -113
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +8 -7
  19. package/dist/index.d.ts +8 -7
  20. package/dist/index.js +1530 -114
  21. package/dist/index.js.map +1 -1
  22. package/dist/model-form-ByvyyvxB.d.ts +96 -0
  23. package/dist/model-form-DACdBLYG.d.cts +96 -0
  24. package/dist/{react-email-CiiSVa9F.d.cts → module-DC96HJa3.d.cts} +130 -5
  25. package/dist/{react-email-WN8UU3AL.d.ts → module-DbHlxpeR.d.ts} +130 -5
  26. package/dist/next/client.cjs +8591 -0
  27. package/dist/next/client.cjs.map +1 -0
  28. package/dist/next/client.d.cts +24 -0
  29. package/dist/next/client.d.ts +24 -0
  30. package/dist/next/client.js +8589 -0
  31. package/dist/next/client.js.map +1 -0
  32. package/dist/next/server.cjs +8709 -0
  33. package/dist/next/server.cjs.map +1 -0
  34. package/dist/next/server.d.cts +52 -0
  35. package/dist/next/server.d.ts +52 -0
  36. package/dist/next/server.js +8706 -0
  37. package/dist/next/server.js.map +1 -0
  38. package/dist/{pipeline-BtD-Uo5X.d.cts → pipeline-CmUZsXsi.d.cts} +1 -1
  39. package/dist/{pipeline-yCIZNJHE.d.ts → pipeline-DZMsPxUg.d.ts} +1 -1
  40. package/dist/react.cjs +30 -1
  41. package/dist/react.cjs.map +1 -1
  42. package/dist/react.d.cts +38 -10
  43. package/dist/react.d.ts +38 -10
  44. package/dist/react.js +30 -2
  45. package/dist/react.js.map +1 -1
  46. package/dist/shared-BMVGMnti.d.cts +35 -0
  47. package/dist/shared-DRptGBWP.d.ts +35 -0
  48. package/dist/{types-g8G6J0xE.d.cts → types-BeZIHduP.d.cts} +2 -1
  49. package/dist/{types-g8G6J0xE.d.ts → types-BeZIHduP.d.ts} +2 -1
  50. package/dist/{types-C2kiTt6-.d.ts → types-C-YvfgYh.d.cts} +26 -2
  51. package/dist/{types-89EfjLjV.d.cts → types-CRjDwmtJ.d.ts} +26 -2
  52. package/package.json +32 -14
@@ -0,0 +1,96 @@
1
+ import { d as AthenaGatewayErrorCode, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, W as AthenaGatewayResponse, N as AnyModelDef, r as InsertOf, H as RowOf, U as UpdateOf } from './types-BeZIHduP.js';
2
+
3
+ interface AthenaGatewayErrorInput {
4
+ code: AthenaGatewayErrorCode;
5
+ message: string;
6
+ status?: number;
7
+ endpoint?: AthenaGatewayEndpointPath;
8
+ method?: AthenaGatewayMethod;
9
+ requestId?: string;
10
+ hint?: string;
11
+ cause?: string;
12
+ }
13
+ /**
14
+ * Canonical error for gateway failures.
15
+ * Holds request context and machine-readable classification.
16
+ */
17
+ declare class AthenaGatewayError extends Error {
18
+ readonly code: AthenaGatewayErrorCode;
19
+ readonly status: number;
20
+ readonly endpoint?: AthenaGatewayEndpointPath;
21
+ readonly method?: AthenaGatewayMethod;
22
+ readonly requestId?: string;
23
+ readonly hint?: string;
24
+ readonly causeDetail?: string;
25
+ constructor(input: AthenaGatewayErrorInput);
26
+ toDetails(): AthenaGatewayErrorDetails;
27
+ static fromResponse<T>(response: AthenaGatewayResponse<T>, fallback: Omit<AthenaGatewayErrorInput, 'code' | 'message' | 'status'>): AthenaGatewayError;
28
+ }
29
+ declare function isAthenaGatewayError(error: unknown): error is AthenaGatewayError;
30
+
31
+ type ModelFormNullishMode = 'empty-string' | 'undefined' | 'null';
32
+ type NullishValueByMode = {
33
+ 'empty-string': '';
34
+ undefined: undefined;
35
+ null: null;
36
+ };
37
+ type MapNullableToFormValue<TField, TMode extends ModelFormNullishMode> = null extends TField ? Exclude<TField, null> | NullishValueByMode[TMode] : TField;
38
+ /**
39
+ * Form value shape derived from a model insert payload.
40
+ * Nullable fields are remapped to the selected nullish representation.
41
+ */
42
+ type ModelFormValues<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = {
43
+ [K in keyof InsertOf<TModel>]: MapNullableToFormValue<InsertOf<TModel>[K], TMode>;
44
+ };
45
+ /**
46
+ * Alias for deriving form value types from any model contract.
47
+ */
48
+ type FormValuesOf<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = ModelFormValues<TModel, TMode>;
49
+ /**
50
+ * Default value shape for form initialization.
51
+ */
52
+ type ModelFormDefaults<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = Partial<ModelFormValues<TModel, TMode>>;
53
+ interface ToModelFormDefaultsOptions<TMode extends ModelFormNullishMode = 'empty-string'> {
54
+ /**
55
+ * Controls how nullable model values are represented in form defaults.
56
+ * - `empty-string` (default): `null -> ""`
57
+ * - `undefined`: `null -> undefined`
58
+ * - `null`: keeps `null`
59
+ */
60
+ nullishMode?: TMode;
61
+ }
62
+ interface ToModelPayloadOptions {
63
+ /**
64
+ * Converts `""` into `null` for nullable model fields.
65
+ * Defaults to `true`.
66
+ */
67
+ emptyStringAsNull?: boolean;
68
+ /**
69
+ * Omits `undefined` keys from the outgoing payload.
70
+ * Defaults to `true`.
71
+ */
72
+ stripUndefined?: boolean;
73
+ }
74
+ /**
75
+ * Normalizes model data into form-safe defaults using model nullability metadata.
76
+ */
77
+ 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>;
78
+ /**
79
+ * Normalizes form values back into model-compatible insert/update payloads.
80
+ */
81
+ declare function toModelPayload<TModel extends AnyModelDef>(model: TModel, formValues: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
82
+ /**
83
+ * Runtime form adapter bound to a model contract.
84
+ */
85
+ interface ModelFormAdapter<TModel extends AnyModelDef> {
86
+ model: TModel;
87
+ toDefaults<TMode extends ModelFormNullishMode = 'empty-string'>(values?: Partial<RowOf<TModel>> | Partial<InsertOf<TModel>> | null, options?: ToModelFormDefaultsOptions<TMode>): ModelFormDefaults<TModel, TMode>;
88
+ toInsert(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
89
+ toUpdate(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<UpdateOf<TModel>>;
90
+ }
91
+ /**
92
+ * Creates a small model-aware adapter for form defaults and payload normalization.
93
+ */
94
+ declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
95
+
96
+ export { AthenaGatewayError as A, type FormValuesOf as F, type ModelFormAdapter as M, type ToModelFormDefaultsOptions as T, type ModelFormDefaults as a, type ModelFormNullishMode as b, type ModelFormValues as c, type ToModelPayloadOptions as d, createModelFormAdapter as e, toModelPayload as f, isAthenaGatewayError as i, toModelFormDefaults as t };
@@ -0,0 +1,96 @@
1
+ import { d as AthenaGatewayErrorCode, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, W as AthenaGatewayResponse, N as AnyModelDef, r as InsertOf, H as RowOf, U as UpdateOf } from './types-BeZIHduP.cjs';
2
+
3
+ interface AthenaGatewayErrorInput {
4
+ code: AthenaGatewayErrorCode;
5
+ message: string;
6
+ status?: number;
7
+ endpoint?: AthenaGatewayEndpointPath;
8
+ method?: AthenaGatewayMethod;
9
+ requestId?: string;
10
+ hint?: string;
11
+ cause?: string;
12
+ }
13
+ /**
14
+ * Canonical error for gateway failures.
15
+ * Holds request context and machine-readable classification.
16
+ */
17
+ declare class AthenaGatewayError extends Error {
18
+ readonly code: AthenaGatewayErrorCode;
19
+ readonly status: number;
20
+ readonly endpoint?: AthenaGatewayEndpointPath;
21
+ readonly method?: AthenaGatewayMethod;
22
+ readonly requestId?: string;
23
+ readonly hint?: string;
24
+ readonly causeDetail?: string;
25
+ constructor(input: AthenaGatewayErrorInput);
26
+ toDetails(): AthenaGatewayErrorDetails;
27
+ static fromResponse<T>(response: AthenaGatewayResponse<T>, fallback: Omit<AthenaGatewayErrorInput, 'code' | 'message' | 'status'>): AthenaGatewayError;
28
+ }
29
+ declare function isAthenaGatewayError(error: unknown): error is AthenaGatewayError;
30
+
31
+ type ModelFormNullishMode = 'empty-string' | 'undefined' | 'null';
32
+ type NullishValueByMode = {
33
+ 'empty-string': '';
34
+ undefined: undefined;
35
+ null: null;
36
+ };
37
+ type MapNullableToFormValue<TField, TMode extends ModelFormNullishMode> = null extends TField ? Exclude<TField, null> | NullishValueByMode[TMode] : TField;
38
+ /**
39
+ * Form value shape derived from a model insert payload.
40
+ * Nullable fields are remapped to the selected nullish representation.
41
+ */
42
+ type ModelFormValues<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = {
43
+ [K in keyof InsertOf<TModel>]: MapNullableToFormValue<InsertOf<TModel>[K], TMode>;
44
+ };
45
+ /**
46
+ * Alias for deriving form value types from any model contract.
47
+ */
48
+ type FormValuesOf<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = ModelFormValues<TModel, TMode>;
49
+ /**
50
+ * Default value shape for form initialization.
51
+ */
52
+ type ModelFormDefaults<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = Partial<ModelFormValues<TModel, TMode>>;
53
+ interface ToModelFormDefaultsOptions<TMode extends ModelFormNullishMode = 'empty-string'> {
54
+ /**
55
+ * Controls how nullable model values are represented in form defaults.
56
+ * - `empty-string` (default): `null -> ""`
57
+ * - `undefined`: `null -> undefined`
58
+ * - `null`: keeps `null`
59
+ */
60
+ nullishMode?: TMode;
61
+ }
62
+ interface ToModelPayloadOptions {
63
+ /**
64
+ * Converts `""` into `null` for nullable model fields.
65
+ * Defaults to `true`.
66
+ */
67
+ emptyStringAsNull?: boolean;
68
+ /**
69
+ * Omits `undefined` keys from the outgoing payload.
70
+ * Defaults to `true`.
71
+ */
72
+ stripUndefined?: boolean;
73
+ }
74
+ /**
75
+ * Normalizes model data into form-safe defaults using model nullability metadata.
76
+ */
77
+ 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>;
78
+ /**
79
+ * Normalizes form values back into model-compatible insert/update payloads.
80
+ */
81
+ declare function toModelPayload<TModel extends AnyModelDef>(model: TModel, formValues: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
82
+ /**
83
+ * Runtime form adapter bound to a model contract.
84
+ */
85
+ interface ModelFormAdapter<TModel extends AnyModelDef> {
86
+ model: TModel;
87
+ toDefaults<TMode extends ModelFormNullishMode = 'empty-string'>(values?: Partial<RowOf<TModel>> | Partial<InsertOf<TModel>> | null, options?: ToModelFormDefaultsOptions<TMode>): ModelFormDefaults<TModel, TMode>;
88
+ toInsert(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
89
+ toUpdate(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<UpdateOf<TModel>>;
90
+ }
91
+ /**
92
+ * Creates a small model-aware adapter for form defaults and payload normalization.
93
+ */
94
+ declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
95
+
96
+ export { AthenaGatewayError as A, type FormValuesOf as F, type ModelFormAdapter as M, type ToModelFormDefaultsOptions as T, type ModelFormDefaults as a, type ModelFormNullishMode as b, type ModelFormValues as c, type ToModelPayloadOptions as d, createModelFormAdapter as e, toModelPayload as f, isAthenaGatewayError as i, toModelFormDefaults as t };
@@ -1,7 +1,8 @@
1
- import { J as SchemaDef, N as AnyModelDef, D as DatabaseDef, E as ModelMetadata, C as ModelDef, R as RegistryDef, y as ModelColumnKind, L as TenantKeyMap, T as TenantContext, H as RowOf, M as ModelAt, r as InsertOf, U as UpdateOf, a as AthenaGatewayCallOptions, S as SchemaIntrospectionProvider, s as IntrospectionColumn } from './types-g8G6J0xE.cjs';
2
- import { bW as ModelFormNullishMode, bX as ModelFormValues, aK as AthenaSdkClient, cZ as TableQueryBuilder, $ as AthenaClientExperimentalOptions, f as AthenaAuthClientConfig, 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-_ugfOXao.cjs';
1
+ import { J as SchemaDef, N as AnyModelDef, D as DatabaseDef, E as ModelMetadata, C as ModelDef, R as RegistryDef, y as ModelColumnKind, L as TenantKeyMap, T as TenantContext, H as RowOf, M as ModelAt, r as InsertOf, U as UpdateOf, a as AthenaGatewayCallOptions, S as SchemaIntrospectionProvider, s as IntrospectionColumn, I as IntrospectionSnapshot } from './types-BeZIHduP.cjs';
2
+ import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-DACdBLYG.cjs';
3
3
  import { ZodType } from 'zod';
4
- import { l as GeneratorSchemaSelection, b as GeneratorProviderConfig } from './types-89EfjLjV.cjs';
4
+ import { cy as AthenaSdkClient, bB as AthenaClientContextOptions, bI as AthenaClientSessionLike, bJ as AthenaClientSessionOptions, eJ as TableQueryBuilder, bK as AthenaCreateClientAuthOptions, bC as AthenaClientExperimentalOptions, I as AthenaAuthClientConfig, ak as AthenaAuthSdkClient, ac as AthenaAuthReactEmailProps, a9 as AthenaAuthReactEmailComponent, ae as AthenaAuthReactEmailRenderInput, O as AthenaAuthEmailTemplateDefinition, M as AthenaAuthEmailTemplateBuilder, af as AthenaAuthReactEmailRenderOptions, ad as AthenaAuthReactEmailRenderEvent, aa as AthenaAuthReactEmailConfig, aL as AthenaChatMessageCreatedResponse, aK as AthenaChatMessage, aY as AthenaChatRoomCreatedResponse, aX as AthenaChatRoom } from './client-B7EQ_hPV.cjs';
5
+ import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-C-YvfgYh.cjs';
5
6
  import { A as AthenaCookiesOptions, a as AthenaSessionPair, b as AthenaCookieOptions, c as AthenaAuthCookies, g as getCookieCache, d as getSessionCookie, e as AthenaCookieContextRuntime } from './index-CVcQCGyG.cjs';
6
7
 
7
8
  interface NormalizeAthenaGatewayBaseUrlOptions {
@@ -24,6 +25,10 @@ interface SqlIdentifier {
24
25
  declare function identifier(...segments: string[]): SqlIdentifier;
25
26
 
26
27
  /**
28
+ * @deprecated Prefer `table(...).schema(...).columns(...).primaryKey(...)` for
29
+ * new model contracts. `defineModel(...)` is retained for legacy compatibility,
30
+ * manual low-level contracts, and legacy generator output.
31
+ *
27
32
  * Declares a model contract with explicit metadata and typed row/insert/update shapes.
28
33
  */
29
34
  declare function defineModel<Row, Insert = Partial<Row>, Update = Partial<Insert>, Meta extends ModelMetadata<Row> = ModelMetadata<Row>>(input: {
@@ -140,6 +145,8 @@ interface AthenaTableColumnsBuilder<TName extends string, TMappedName extends st
140
145
  readonly columns: Readonly<TColumns>;
141
146
  from<TNextMappedName extends string>(tableName: TNextMappedName): AthenaTableColumnsBuilder<TName, TNextMappedName, TSchemaName, TColumns>;
142
147
  schema<TNextSchemaName extends string>(schemaName: TNextSchemaName): AthenaTableColumnsBuilder<TName, TMappedName, TNextSchemaName, TColumns>;
148
+ withoutPrimaryKey(): AthenaTableDef<TColumns, TName, TMappedName, TSchemaName>;
149
+ primaryKey(): AthenaTableDef<TColumns, TName, TMappedName, TSchemaName>;
143
150
  primaryKey<TPrimaryKey extends readonly [
144
151
  Extract<keyof TColumns, string>,
145
152
  ...Array<Extract<keyof TColumns, string>>
@@ -151,7 +158,8 @@ type RegistryConstraint = RegistryDef<Record<string, DatabaseDef<Record<string,
151
158
  /**
152
159
  * Options for creating typed Athena clients.
153
160
  */
154
- interface TypedClientOptions<TMap extends TenantKeyMap = TenantKeyMap> extends Pick<AthenaGatewayCallOptions, 'backend' | 'client' | 'headers'> {
161
+ interface TypedClientOptions<TMap extends TenantKeyMap = TenantKeyMap> extends Pick<AthenaGatewayCallOptions, 'backend' | 'client' | 'headers' | 'forceNoCache' | 'userId' | 'organizationId'> {
162
+ auth?: Omit<AthenaCreateClientAuthOptions, 'url' | 'baseUrl' | 'apiKey'>;
155
163
  tenantKeyMap?: TMap;
156
164
  tenantContext?: TenantContext<TMap>;
157
165
  experimental?: AthenaClientExperimentalOptions;
@@ -168,6 +176,8 @@ interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap ext
168
176
  readonly registry: TRegistry;
169
177
  readonly tenantKeyMap: Readonly<TTenantMap>;
170
178
  readonly tenantContext: TenantContext<TTenantMap>;
179
+ withContext(context?: AthenaClientContextOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
180
+ withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
171
181
  withTenantContext(context: TenantContext<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
172
182
  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>>, {
173
183
  registry: TRegistry;
@@ -248,11 +258,31 @@ declare function normalizeSchemaSelection(input: GeneratorSchemaSelection | unde
248
258
  */
249
259
  declare function resolveProviderSchemas(providerConfig: GeneratorProviderConfig): string[];
250
260
 
261
+ declare function normalizeTableSelection(value: GeneratorTableSelection | undefined): string[];
262
+ declare function filterIntrospectionSnapshot(snapshot: IntrospectionSnapshot, filter: NormalizedGeneratorFilterConfig): IntrospectionSnapshot;
263
+
251
264
  /**
252
265
  * @deprecated Prefer `createClient(...).auth` from `@xylex-group/athena`.
253
266
  */
254
267
  declare function createAuthClient(config?: AthenaAuthClientConfig): AthenaAuthSdkClient;
255
268
 
269
+ interface AthenaAuthAdminLimits {
270
+ maxAdminJsonBytes: number;
271
+ maxAdminJsonDepth: number;
272
+ maxTemplateVariables: number;
273
+ maxTemplateVariableLength: number;
274
+ }
275
+ declare const ATHENA_AUTH_MAX_ADMIN_JSON_BYTES: number;
276
+ declare const ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH = 8;
277
+ declare const ATHENA_AUTH_MAX_TEMPLATE_VARIABLES = 64;
278
+ declare const ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH = 128;
279
+ declare const ATHENA_AUTH_ADMIN_LIMITS: {
280
+ readonly maxAdminJsonBytes: number;
281
+ readonly maxAdminJsonDepth: 8;
282
+ readonly maxTemplateVariables: 64;
283
+ readonly maxTemplateVariableLength: 128;
284
+ };
285
+
256
286
  type AthenaMaybePromise<T> = T | Promise<T>;
257
287
  type AthenaAuthServerCookieOptions = Pick<AthenaCookiesOptions, 'session' | 'advanced'>;
258
288
  declare const ATHENA_AUTH_BASE_ERROR_CODES: {
@@ -412,4 +442,99 @@ declare function createAuthReactEmailInput<TProps extends AthenaAuthReactEmailPr
412
442
  declare function defineAuthEmailTemplate<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps>(definition: AthenaAuthEmailTemplateDefinition<TProps>): AthenaAuthEmailTemplateBuilder<TProps>;
413
443
  declare function renderAthenaReactEmail(input: AthenaAuthReactEmailRenderInput, options?: AthenaAuthReactEmailRuntimeOptions | AthenaAuthReactEmailConfig): Promise<AthenaAuthRenderedReactEmail>;
414
444
 
415
- export { normalizeSchemaSelection as $, ATHENA_AUTH_BASE_ERROR_CODES as A, athenaAuth as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, boolean as E, type FormValuesFromColumns as F, type GeneratorEnvBooleanOptions as G, createAuthClient as H, type InsertFromColumns as I, createAuthReactEmailInput as J, createPostgresIntrospectionProvider as K, createTypedClient as L, defineAthenaAuthConfig as M, defineAuthEmailTemplate as N, defineDatabase as O, type PostgresIntrospectionProviderOptions as P, defineModel as Q, type RowFromColumns as R, defineRegistry as S, type TypedAthenaClient as T, type UpdateFromColumns as U, defineSchema as V, enumeration as W, generatorEnv as X, identifier as Y, json as Z, normalizeAthenaGatewayBaseUrl as _, type AnyColumnBuilder as a, number as a0, renderAthenaReactEmail as a1, resolvePostgresColumnType as a2, resolveProviderSchemas as a3, string as a4, table as a5, type AthenaAuthBaseURLConfig as b, type AthenaAuthContext as c, type AthenaAuthCookieRuntimeInput as d, type AthenaAuthDatabaseFactory as e, type AthenaAuthHandlerResult as f, type AthenaAuthPlugin as g, type AthenaAuthPluginContext as h, type AthenaAuthPluginHandlerContext as i, type AthenaAuthRequestContext as j, type AthenaAuthServer as k, type AthenaAuthServerApi as l, type AthenaAuthServerConfig as m, type AthenaAuthServerRuntimeOptions as n, type AthenaAuthSocialProviderConfig as o, type AthenaAuthTrustedOrigins as p, type AthenaAuthTrustedProviders as q, type AthenaColumnBuilder as r, type AthenaTableDef as s, type AthenaTableSchemaBundle as t, type GeneratorEnvJsonOptions as u, type GeneratorEnvListOptions as v, type GeneratorEnvOneOfOptions as w, type GeneratorEnvStringOptions as x, type TypedClientOptions as y, type TypedClientOptionsWithTypecheckedColumns as z };
445
+ declare class AthenaChatError extends Error {
446
+ status: number;
447
+ endpoint: string;
448
+ method: string;
449
+ requestId?: string;
450
+ body: unknown;
451
+ constructor(input: {
452
+ message: string;
453
+ status: number;
454
+ endpoint: string;
455
+ method: string;
456
+ requestId?: string;
457
+ body: unknown;
458
+ });
459
+ }
460
+ declare const chatSdkManifest: {
461
+ readonly namespace: "chat";
462
+ readonly basePath: "/chat";
463
+ readonly methods: readonly [{
464
+ readonly name: "listRooms";
465
+ readonly method: "GET";
466
+ readonly path: "/chat/rooms";
467
+ }, {
468
+ readonly name: "createRoom";
469
+ readonly method: "POST";
470
+ readonly path: "/chat/rooms";
471
+ }, {
472
+ readonly name: "getRoom";
473
+ readonly method: "GET";
474
+ readonly path: "/chat/rooms/{room_id}";
475
+ }, {
476
+ readonly name: "updateRoom";
477
+ readonly method: "PATCH";
478
+ readonly path: "/chat/rooms/{room_id}";
479
+ }, {
480
+ readonly name: "archiveRoom";
481
+ readonly method: "POST";
482
+ readonly path: "/chat/rooms/{room_id}/archive";
483
+ }, {
484
+ readonly name: "listRoomMessages";
485
+ readonly method: "GET";
486
+ readonly path: "/chat/rooms/{room_id}/messages";
487
+ }, {
488
+ readonly name: "sendRoomMessage";
489
+ readonly method: "POST";
490
+ readonly path: "/chat/rooms/{room_id}/messages";
491
+ }, {
492
+ readonly name: "updateRoomMessage";
493
+ readonly method: "PATCH";
494
+ readonly path: "/chat/rooms/{room_id}/messages/{message_id}";
495
+ }, {
496
+ readonly name: "deleteRoomMessage";
497
+ readonly method: "DELETE";
498
+ readonly path: "/chat/rooms/{room_id}/messages/{message_id}";
499
+ }, {
500
+ readonly name: "advanceReadCursor";
501
+ readonly method: "POST";
502
+ readonly path: "/chat/rooms/{room_id}/read-cursor";
503
+ }, {
504
+ readonly name: "listRoomMembers";
505
+ readonly method: "GET";
506
+ readonly path: "/chat/rooms/{room_id}/members";
507
+ }, {
508
+ readonly name: "addRoomMembers";
509
+ readonly method: "POST";
510
+ readonly path: "/chat/rooms/{room_id}/members";
511
+ }, {
512
+ readonly name: "removeRoomMember";
513
+ readonly method: "DELETE";
514
+ readonly path: "/chat/rooms/{room_id}/members/{user_id}";
515
+ }, {
516
+ readonly name: "addReaction";
517
+ readonly method: "POST";
518
+ readonly path: "/chat/messages/{message_id}/reactions";
519
+ }, {
520
+ readonly name: "removeReaction";
521
+ readonly method: "DELETE";
522
+ readonly path: "/chat/messages/{message_id}/reactions/{emoji}";
523
+ }, {
524
+ readonly name: "searchMessages";
525
+ readonly method: "POST";
526
+ readonly path: "/chat/messages/search";
527
+ }, {
528
+ readonly name: "getRealtimeInfo";
529
+ readonly method: "GET";
530
+ readonly path: "/wss/info";
531
+ }, {
532
+ readonly name: "connectRealtime";
533
+ readonly method: "GET";
534
+ readonly path: "/wss/gateway";
535
+ }];
536
+ };
537
+ declare function unwrapChatRoom(payload: AthenaChatRoomCreatedResponse): AthenaChatRoom;
538
+ declare function unwrapChatMessage(payload: AthenaChatMessageCreatedResponse): AthenaChatMessage;
539
+
540
+ export { defineModel as $, ATHENA_AUTH_ADMIN_LIMITS as A, type AthenaTableSchemaBundle as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, type GeneratorEnvJsonOptions as E, type FormValuesFromColumns as F, type GeneratorEnvBooleanOptions as G, type GeneratorEnvListOptions as H, type GeneratorEnvOneOfOptions as I, type GeneratorEnvStringOptions as J, type InsertFromColumns as K, type TypedClientOptions as L, type TypedClientOptionsWithTypecheckedColumns as M, athenaAuth as N, boolean as O, type PostgresIntrospectionProviderOptions as P, chatSdkManifest as Q, type RowFromColumns as R, createAuthClient as S, type TypedAthenaClient as T, type UpdateFromColumns as U, createAuthReactEmailInput as V, createPostgresIntrospectionProvider as W, createTypedClient as X, defineAthenaAuthConfig as Y, defineAuthEmailTemplate as Z, defineDatabase as _, ATHENA_AUTH_BASE_ERROR_CODES as a, defineRegistry as a0, defineSchema as a1, enumeration as a2, filterIntrospectionSnapshot as a3, generatorEnv as a4, identifier as a5, json as a6, normalizeAthenaGatewayBaseUrl as a7, normalizeSchemaSelection as a8, normalizeTableSelection as a9, number as aa, renderAthenaReactEmail as ab, resolvePostgresColumnType as ac, resolveProviderSchemas as ad, string as ae, table as af, unwrapChatMessage as ag, unwrapChatRoom as ah, ATHENA_AUTH_MAX_ADMIN_JSON_BYTES as b, ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH as c, ATHENA_AUTH_MAX_TEMPLATE_VARIABLES as d, ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH as e, type AnyColumnBuilder as f, type AthenaAuthAdminLimits as g, type AthenaAuthBaseURLConfig as h, type AthenaAuthContext as i, type AthenaAuthCookieRuntimeInput as j, type AthenaAuthDatabaseFactory as k, type AthenaAuthHandlerResult as l, type AthenaAuthPlugin as m, type AthenaAuthPluginContext as n, type AthenaAuthPluginHandlerContext as o, type AthenaAuthRequestContext as p, type AthenaAuthServer as q, type AthenaAuthServerApi as r, type AthenaAuthServerConfig as s, type AthenaAuthServerRuntimeOptions as t, type AthenaAuthSocialProviderConfig as u, type AthenaAuthTrustedOrigins as v, type AthenaAuthTrustedProviders as w, AthenaChatError as x, type AthenaColumnBuilder as y, type AthenaTableDef as z };
@@ -1,7 +1,8 @@
1
- import { J as SchemaDef, N as AnyModelDef, D as DatabaseDef, E as ModelMetadata, C as ModelDef, R as RegistryDef, y as ModelColumnKind, L as TenantKeyMap, T as TenantContext, H as RowOf, M as ModelAt, r as InsertOf, U as UpdateOf, a as AthenaGatewayCallOptions, S as SchemaIntrospectionProvider, s as IntrospectionColumn } from './types-g8G6J0xE.js';
2
- import { bW as ModelFormNullishMode, bX as ModelFormValues, aK as AthenaSdkClient, cZ as TableQueryBuilder, $ as AthenaClientExperimentalOptions, f as AthenaAuthClientConfig, 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-Cx3wtvi8.js';
1
+ import { J as SchemaDef, N as AnyModelDef, D as DatabaseDef, E as ModelMetadata, C as ModelDef, R as RegistryDef, y as ModelColumnKind, L as TenantKeyMap, T as TenantContext, H as RowOf, M as ModelAt, r as InsertOf, U as UpdateOf, a as AthenaGatewayCallOptions, S as SchemaIntrospectionProvider, s as IntrospectionColumn, I as IntrospectionSnapshot } from './types-BeZIHduP.js';
2
+ import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-ByvyyvxB.js';
3
3
  import { ZodType } from 'zod';
4
- import { l as GeneratorSchemaSelection, b as GeneratorProviderConfig } from './types-C2kiTt6-.js';
4
+ import { cy as AthenaSdkClient, bB as AthenaClientContextOptions, bI as AthenaClientSessionLike, bJ as AthenaClientSessionOptions, eJ as TableQueryBuilder, bK as AthenaCreateClientAuthOptions, bC as AthenaClientExperimentalOptions, I as AthenaAuthClientConfig, ak as AthenaAuthSdkClient, ac as AthenaAuthReactEmailProps, a9 as AthenaAuthReactEmailComponent, ae as AthenaAuthReactEmailRenderInput, O as AthenaAuthEmailTemplateDefinition, M as AthenaAuthEmailTemplateBuilder, af as AthenaAuthReactEmailRenderOptions, ad as AthenaAuthReactEmailRenderEvent, aa as AthenaAuthReactEmailConfig, aL as AthenaChatMessageCreatedResponse, aK as AthenaChatMessage, aY as AthenaChatRoomCreatedResponse, aX as AthenaChatRoom } from './client-BYii6dU9.js';
5
+ import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-CRjDwmtJ.js';
5
6
  import { A as AthenaCookiesOptions, a as AthenaSessionPair, b as AthenaCookieOptions, c as AthenaAuthCookies, g as getCookieCache, d as getSessionCookie, e as AthenaCookieContextRuntime } from './index-CVcQCGyG.js';
6
7
 
7
8
  interface NormalizeAthenaGatewayBaseUrlOptions {
@@ -24,6 +25,10 @@ interface SqlIdentifier {
24
25
  declare function identifier(...segments: string[]): SqlIdentifier;
25
26
 
26
27
  /**
28
+ * @deprecated Prefer `table(...).schema(...).columns(...).primaryKey(...)` for
29
+ * new model contracts. `defineModel(...)` is retained for legacy compatibility,
30
+ * manual low-level contracts, and legacy generator output.
31
+ *
27
32
  * Declares a model contract with explicit metadata and typed row/insert/update shapes.
28
33
  */
29
34
  declare function defineModel<Row, Insert = Partial<Row>, Update = Partial<Insert>, Meta extends ModelMetadata<Row> = ModelMetadata<Row>>(input: {
@@ -140,6 +145,8 @@ interface AthenaTableColumnsBuilder<TName extends string, TMappedName extends st
140
145
  readonly columns: Readonly<TColumns>;
141
146
  from<TNextMappedName extends string>(tableName: TNextMappedName): AthenaTableColumnsBuilder<TName, TNextMappedName, TSchemaName, TColumns>;
142
147
  schema<TNextSchemaName extends string>(schemaName: TNextSchemaName): AthenaTableColumnsBuilder<TName, TMappedName, TNextSchemaName, TColumns>;
148
+ withoutPrimaryKey(): AthenaTableDef<TColumns, TName, TMappedName, TSchemaName>;
149
+ primaryKey(): AthenaTableDef<TColumns, TName, TMappedName, TSchemaName>;
143
150
  primaryKey<TPrimaryKey extends readonly [
144
151
  Extract<keyof TColumns, string>,
145
152
  ...Array<Extract<keyof TColumns, string>>
@@ -151,7 +158,8 @@ type RegistryConstraint = RegistryDef<Record<string, DatabaseDef<Record<string,
151
158
  /**
152
159
  * Options for creating typed Athena clients.
153
160
  */
154
- interface TypedClientOptions<TMap extends TenantKeyMap = TenantKeyMap> extends Pick<AthenaGatewayCallOptions, 'backend' | 'client' | 'headers'> {
161
+ interface TypedClientOptions<TMap extends TenantKeyMap = TenantKeyMap> extends Pick<AthenaGatewayCallOptions, 'backend' | 'client' | 'headers' | 'forceNoCache' | 'userId' | 'organizationId'> {
162
+ auth?: Omit<AthenaCreateClientAuthOptions, 'url' | 'baseUrl' | 'apiKey'>;
155
163
  tenantKeyMap?: TMap;
156
164
  tenantContext?: TenantContext<TMap>;
157
165
  experimental?: AthenaClientExperimentalOptions;
@@ -168,6 +176,8 @@ interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap ext
168
176
  readonly registry: TRegistry;
169
177
  readonly tenantKeyMap: Readonly<TTenantMap>;
170
178
  readonly tenantContext: TenantContext<TTenantMap>;
179
+ withContext(context?: AthenaClientContextOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
180
+ withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
171
181
  withTenantContext(context: TenantContext<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
172
182
  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>>, {
173
183
  registry: TRegistry;
@@ -248,11 +258,31 @@ declare function normalizeSchemaSelection(input: GeneratorSchemaSelection | unde
248
258
  */
249
259
  declare function resolveProviderSchemas(providerConfig: GeneratorProviderConfig): string[];
250
260
 
261
+ declare function normalizeTableSelection(value: GeneratorTableSelection | undefined): string[];
262
+ declare function filterIntrospectionSnapshot(snapshot: IntrospectionSnapshot, filter: NormalizedGeneratorFilterConfig): IntrospectionSnapshot;
263
+
251
264
  /**
252
265
  * @deprecated Prefer `createClient(...).auth` from `@xylex-group/athena`.
253
266
  */
254
267
  declare function createAuthClient(config?: AthenaAuthClientConfig): AthenaAuthSdkClient;
255
268
 
269
+ interface AthenaAuthAdminLimits {
270
+ maxAdminJsonBytes: number;
271
+ maxAdminJsonDepth: number;
272
+ maxTemplateVariables: number;
273
+ maxTemplateVariableLength: number;
274
+ }
275
+ declare const ATHENA_AUTH_MAX_ADMIN_JSON_BYTES: number;
276
+ declare const ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH = 8;
277
+ declare const ATHENA_AUTH_MAX_TEMPLATE_VARIABLES = 64;
278
+ declare const ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH = 128;
279
+ declare const ATHENA_AUTH_ADMIN_LIMITS: {
280
+ readonly maxAdminJsonBytes: number;
281
+ readonly maxAdminJsonDepth: 8;
282
+ readonly maxTemplateVariables: 64;
283
+ readonly maxTemplateVariableLength: 128;
284
+ };
285
+
256
286
  type AthenaMaybePromise<T> = T | Promise<T>;
257
287
  type AthenaAuthServerCookieOptions = Pick<AthenaCookiesOptions, 'session' | 'advanced'>;
258
288
  declare const ATHENA_AUTH_BASE_ERROR_CODES: {
@@ -412,4 +442,99 @@ declare function createAuthReactEmailInput<TProps extends AthenaAuthReactEmailPr
412
442
  declare function defineAuthEmailTemplate<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps>(definition: AthenaAuthEmailTemplateDefinition<TProps>): AthenaAuthEmailTemplateBuilder<TProps>;
413
443
  declare function renderAthenaReactEmail(input: AthenaAuthReactEmailRenderInput, options?: AthenaAuthReactEmailRuntimeOptions | AthenaAuthReactEmailConfig): Promise<AthenaAuthRenderedReactEmail>;
414
444
 
415
- export { normalizeSchemaSelection as $, ATHENA_AUTH_BASE_ERROR_CODES as A, athenaAuth as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, boolean as E, type FormValuesFromColumns as F, type GeneratorEnvBooleanOptions as G, createAuthClient as H, type InsertFromColumns as I, createAuthReactEmailInput as J, createPostgresIntrospectionProvider as K, createTypedClient as L, defineAthenaAuthConfig as M, defineAuthEmailTemplate as N, defineDatabase as O, type PostgresIntrospectionProviderOptions as P, defineModel as Q, type RowFromColumns as R, defineRegistry as S, type TypedAthenaClient as T, type UpdateFromColumns as U, defineSchema as V, enumeration as W, generatorEnv as X, identifier as Y, json as Z, normalizeAthenaGatewayBaseUrl as _, type AnyColumnBuilder as a, number as a0, renderAthenaReactEmail as a1, resolvePostgresColumnType as a2, resolveProviderSchemas as a3, string as a4, table as a5, type AthenaAuthBaseURLConfig as b, type AthenaAuthContext as c, type AthenaAuthCookieRuntimeInput as d, type AthenaAuthDatabaseFactory as e, type AthenaAuthHandlerResult as f, type AthenaAuthPlugin as g, type AthenaAuthPluginContext as h, type AthenaAuthPluginHandlerContext as i, type AthenaAuthRequestContext as j, type AthenaAuthServer as k, type AthenaAuthServerApi as l, type AthenaAuthServerConfig as m, type AthenaAuthServerRuntimeOptions as n, type AthenaAuthSocialProviderConfig as o, type AthenaAuthTrustedOrigins as p, type AthenaAuthTrustedProviders as q, type AthenaColumnBuilder as r, type AthenaTableDef as s, type AthenaTableSchemaBundle as t, type GeneratorEnvJsonOptions as u, type GeneratorEnvListOptions as v, type GeneratorEnvOneOfOptions as w, type GeneratorEnvStringOptions as x, type TypedClientOptions as y, type TypedClientOptionsWithTypecheckedColumns as z };
445
+ declare class AthenaChatError extends Error {
446
+ status: number;
447
+ endpoint: string;
448
+ method: string;
449
+ requestId?: string;
450
+ body: unknown;
451
+ constructor(input: {
452
+ message: string;
453
+ status: number;
454
+ endpoint: string;
455
+ method: string;
456
+ requestId?: string;
457
+ body: unknown;
458
+ });
459
+ }
460
+ declare const chatSdkManifest: {
461
+ readonly namespace: "chat";
462
+ readonly basePath: "/chat";
463
+ readonly methods: readonly [{
464
+ readonly name: "listRooms";
465
+ readonly method: "GET";
466
+ readonly path: "/chat/rooms";
467
+ }, {
468
+ readonly name: "createRoom";
469
+ readonly method: "POST";
470
+ readonly path: "/chat/rooms";
471
+ }, {
472
+ readonly name: "getRoom";
473
+ readonly method: "GET";
474
+ readonly path: "/chat/rooms/{room_id}";
475
+ }, {
476
+ readonly name: "updateRoom";
477
+ readonly method: "PATCH";
478
+ readonly path: "/chat/rooms/{room_id}";
479
+ }, {
480
+ readonly name: "archiveRoom";
481
+ readonly method: "POST";
482
+ readonly path: "/chat/rooms/{room_id}/archive";
483
+ }, {
484
+ readonly name: "listRoomMessages";
485
+ readonly method: "GET";
486
+ readonly path: "/chat/rooms/{room_id}/messages";
487
+ }, {
488
+ readonly name: "sendRoomMessage";
489
+ readonly method: "POST";
490
+ readonly path: "/chat/rooms/{room_id}/messages";
491
+ }, {
492
+ readonly name: "updateRoomMessage";
493
+ readonly method: "PATCH";
494
+ readonly path: "/chat/rooms/{room_id}/messages/{message_id}";
495
+ }, {
496
+ readonly name: "deleteRoomMessage";
497
+ readonly method: "DELETE";
498
+ readonly path: "/chat/rooms/{room_id}/messages/{message_id}";
499
+ }, {
500
+ readonly name: "advanceReadCursor";
501
+ readonly method: "POST";
502
+ readonly path: "/chat/rooms/{room_id}/read-cursor";
503
+ }, {
504
+ readonly name: "listRoomMembers";
505
+ readonly method: "GET";
506
+ readonly path: "/chat/rooms/{room_id}/members";
507
+ }, {
508
+ readonly name: "addRoomMembers";
509
+ readonly method: "POST";
510
+ readonly path: "/chat/rooms/{room_id}/members";
511
+ }, {
512
+ readonly name: "removeRoomMember";
513
+ readonly method: "DELETE";
514
+ readonly path: "/chat/rooms/{room_id}/members/{user_id}";
515
+ }, {
516
+ readonly name: "addReaction";
517
+ readonly method: "POST";
518
+ readonly path: "/chat/messages/{message_id}/reactions";
519
+ }, {
520
+ readonly name: "removeReaction";
521
+ readonly method: "DELETE";
522
+ readonly path: "/chat/messages/{message_id}/reactions/{emoji}";
523
+ }, {
524
+ readonly name: "searchMessages";
525
+ readonly method: "POST";
526
+ readonly path: "/chat/messages/search";
527
+ }, {
528
+ readonly name: "getRealtimeInfo";
529
+ readonly method: "GET";
530
+ readonly path: "/wss/info";
531
+ }, {
532
+ readonly name: "connectRealtime";
533
+ readonly method: "GET";
534
+ readonly path: "/wss/gateway";
535
+ }];
536
+ };
537
+ declare function unwrapChatRoom(payload: AthenaChatRoomCreatedResponse): AthenaChatRoom;
538
+ declare function unwrapChatMessage(payload: AthenaChatMessageCreatedResponse): AthenaChatMessage;
539
+
540
+ export { defineModel as $, ATHENA_AUTH_ADMIN_LIMITS as A, type AthenaTableSchemaBundle as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, type GeneratorEnvJsonOptions as E, type FormValuesFromColumns as F, type GeneratorEnvBooleanOptions as G, type GeneratorEnvListOptions as H, type GeneratorEnvOneOfOptions as I, type GeneratorEnvStringOptions as J, type InsertFromColumns as K, type TypedClientOptions as L, type TypedClientOptionsWithTypecheckedColumns as M, athenaAuth as N, boolean as O, type PostgresIntrospectionProviderOptions as P, chatSdkManifest as Q, type RowFromColumns as R, createAuthClient as S, type TypedAthenaClient as T, type UpdateFromColumns as U, createAuthReactEmailInput as V, createPostgresIntrospectionProvider as W, createTypedClient as X, defineAthenaAuthConfig as Y, defineAuthEmailTemplate as Z, defineDatabase as _, ATHENA_AUTH_BASE_ERROR_CODES as a, defineRegistry as a0, defineSchema as a1, enumeration as a2, filterIntrospectionSnapshot as a3, generatorEnv as a4, identifier as a5, json as a6, normalizeAthenaGatewayBaseUrl as a7, normalizeSchemaSelection as a8, normalizeTableSelection as a9, number as aa, renderAthenaReactEmail as ab, resolvePostgresColumnType as ac, resolveProviderSchemas as ad, string as ae, table as af, unwrapChatMessage as ag, unwrapChatRoom as ah, ATHENA_AUTH_MAX_ADMIN_JSON_BYTES as b, ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH as c, ATHENA_AUTH_MAX_TEMPLATE_VARIABLES as d, ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH as e, type AnyColumnBuilder as f, type AthenaAuthAdminLimits as g, type AthenaAuthBaseURLConfig as h, type AthenaAuthContext as i, type AthenaAuthCookieRuntimeInput as j, type AthenaAuthDatabaseFactory as k, type AthenaAuthHandlerResult as l, type AthenaAuthPlugin as m, type AthenaAuthPluginContext as n, type AthenaAuthPluginHandlerContext as o, type AthenaAuthRequestContext as p, type AthenaAuthServer as q, type AthenaAuthServerApi as r, type AthenaAuthServerConfig as s, type AthenaAuthServerRuntimeOptions as t, type AthenaAuthSocialProviderConfig as u, type AthenaAuthTrustedOrigins as v, type AthenaAuthTrustedProviders as w, AthenaChatError as x, type AthenaColumnBuilder as y, type AthenaTableDef as z };