@xylex-group/athena 2.13.0 → 3.0.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 (79) hide show
  1. package/README.md +91 -1398
  2. package/bin/athena-js.js +0 -0
  3. package/dist/admin.d.cts +1 -1
  4. package/dist/admin.d.ts +1 -1
  5. package/dist/billing.cjs +1199 -0
  6. package/dist/billing.cjs.map +1 -0
  7. package/dist/billing.d.cts +230 -0
  8. package/dist/billing.d.ts +230 -0
  9. package/dist/billing.js +1194 -0
  10. package/dist/billing.js.map +1 -0
  11. package/dist/browser.cjs +8934 -8075
  12. package/dist/browser.cjs.map +1 -1
  13. package/dist/browser.d.cts +11 -10
  14. package/dist/browser.d.ts +11 -10
  15. package/dist/browser.js +8931 -8073
  16. package/dist/browser.js.map +1 -1
  17. package/dist/cli/index.cjs +8328 -7062
  18. package/dist/cli/index.cjs.map +1 -1
  19. package/dist/cli/index.d.cts +4 -4
  20. package/dist/cli/index.d.ts +4 -4
  21. package/dist/cli/index.js +8328 -7062
  22. package/dist/cli/index.js.map +1 -1
  23. package/dist/index.cjs +9391 -8526
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +11 -10
  26. package/dist/index.d.ts +11 -10
  27. package/dist/index.js +9384 -8524
  28. package/dist/index.js.map +1 -1
  29. package/dist/{model-form-Dw4zEL5a.d.cts → model-form-BEfCGB5b.d.cts} +2 -2
  30. package/dist/{model-form-yRg71q3H.d.ts → model-form-BKetpu6Q.d.ts} +2 -2
  31. package/dist/module-8dSMcy0K.d.cts +326 -0
  32. package/dist/module-8dSMcy0K.d.ts +326 -0
  33. package/dist/{module-DBteUIob.d.ts → module-Bef_MAPO.d.ts} +6 -52
  34. package/dist/{module-yoX49uQC.d.cts → module-CrrSmpML.d.cts} +6 -52
  35. package/dist/next/client.cjs +2 -8668
  36. package/dist/next/client.cjs.map +1 -1
  37. package/dist/next/client.d.cts +1 -27
  38. package/dist/next/client.d.ts +1 -27
  39. package/dist/next/client.js +3 -8668
  40. package/dist/next/client.js.map +1 -1
  41. package/dist/next/server.cjs +79 -8779
  42. package/dist/next/server.cjs.map +1 -1
  43. package/dist/next/server.d.cts +30 -46
  44. package/dist/next/server.d.ts +30 -46
  45. package/dist/next/server.js +79 -8779
  46. package/dist/next/server.js.map +1 -1
  47. package/dist/{payload-DEOWN_oo.d.ts → payload-DWI1rw-e.d.cts} +1 -35
  48. package/dist/{payload-BzVbUgY_.d.cts → payload-DWI1rw-e.d.ts} +1 -35
  49. package/dist/{pipeline-Bj6RWt1A.d.ts → pipeline-BXFQbsUW.d.ts} +1 -1
  50. package/dist/{pipeline-Dwck-wZO.d.cts → pipeline-Dfsed4VD.d.cts} +1 -1
  51. package/dist/react.cjs +114 -13
  52. package/dist/react.cjs.map +1 -1
  53. package/dist/react.d.cts +46 -16
  54. package/dist/react.d.ts +46 -16
  55. package/dist/react.js +113 -14
  56. package/dist/react.js.map +1 -1
  57. package/dist/social-providers.cjs +33 -24
  58. package/dist/social-providers.cjs.map +1 -1
  59. package/dist/social-providers.d.cts +79 -82
  60. package/dist/social-providers.d.ts +79 -82
  61. package/dist/social-providers.js +33 -24
  62. package/dist/social-providers.js.map +1 -1
  63. package/dist/{types-eAKAh71s.d.cts → types-AOY-GLu8.d.cts} +27 -54
  64. package/dist/{types-eAKAh71s.d.ts → types-AOY-GLu8.d.ts} +27 -54
  65. package/dist/{types-CH78O90i.d.cts → types-Bltx6iL6.d.cts} +4 -6
  66. package/dist/{types-CH78O90i.d.ts → types-Bltx6iL6.d.ts} +4 -6
  67. package/dist/{types-DPgejxYC.d.ts → types-CK7cBQbC.d.ts} +2 -2
  68. package/dist/{types-CjC9_5ZQ.d.cts → types-Z3-rsiM3.d.cts} +2 -2
  69. package/dist/{types-BRP7sfSF.d.ts → types-jClgDy1J.d.ts} +2 -2
  70. package/dist/{types-BU8uJH_b.d.cts → types-kO_Ut5wU.d.cts} +2 -2
  71. package/dist/utils.cjs +7 -8
  72. package/dist/utils.cjs.map +1 -1
  73. package/dist/utils.d.cts +2 -5
  74. package/dist/utils.d.ts +2 -5
  75. package/dist/utils.js +7 -8
  76. package/dist/utils.js.map +1 -1
  77. package/dist/{client-DVOKSYDI.d.ts → v3-client-CuCNy-JJ.d.ts} +532 -470
  78. package/dist/{client-BJjUwDSg.d.cts → v3-client-G8JMOilK.d.cts} +532 -470
  79. package/package.json +31 -21
@@ -1,11 +1,10 @@
1
- import { o as SchemaDef, r as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, q as TenantKeyMap, T as TenantContext, A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, M as ModelAt, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-BRP7sfSF.js';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-yRg71q3H.js';
1
+ import { o as SchemaDef, r 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-jClgDy1J.js';
2
+ import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-BKetpu6Q.js';
3
3
  import { ZodType } from 'zod';
4
- import { aV as AthenaSdkClient, cV as TableQueryBuilder, aH as AthenaFromOptions, ae as AthenaClientContextOptions, al as AthenaClientSessionLike, am as AthenaClientSessionOptions, an as AthenaCreateClientAuthOptions, af as AthenaClientExperimentalOptions, o as AthenaChatMessageCreatedResponse, n as AthenaChatMessage, C as AthenaChatRoomCreatedResponse, B as AthenaChatRoom } from './client-DVOKSYDI.js';
5
- import { a as AthenaGatewayCallOptions } from './types-CH78O90i.js';
6
- import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-DPgejxYC.js';
7
- import { F as AthenaAuthClientConfig, ac as AthenaAuthSdkClient, aS 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-eAKAh71s.js';
4
+ import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-CK7cBQbC.js';
8
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-CuCNy-JJ.js';
9
8
 
10
9
  interface NormalizeAthenaGatewayBaseUrlOptions {
11
10
  defaultBaseUrl?: string;
@@ -156,46 +155,6 @@ interface AthenaTableColumnsBuilder<TName extends string, TMappedName extends st
156
155
  }
157
156
  declare function table<TName extends string>(name: TName): AthenaTableBuilder<TName, undefined>;
158
157
 
159
- type RegistryConstraint = RegistryDef<Record<string, DatabaseDef<Record<string, SchemaDef<Record<string, AnyModelDef>>>>>>;
160
- /**
161
- * Options for creating typed Athena clients.
162
- */
163
- interface TypedClientOptions<TMap extends TenantKeyMap = TenantKeyMap> extends Pick<AthenaGatewayCallOptions, 'backend' | 'client' | 'headers' | 'forceNoCache' | 'userId' | 'organizationId'> {
164
- auth?: Omit<AthenaCreateClientAuthOptions, 'url' | 'baseUrl' | 'apiKey'>;
165
- tenantKeyMap?: TMap;
166
- tenantContext?: TenantContext<TMap>;
167
- experimental?: AthenaClientExperimentalOptions;
168
- }
169
- interface TypedClientOptionsWithTypecheckedColumns<TMap extends TenantKeyMap = TenantKeyMap> extends TypedClientOptions<TMap> {
170
- experimental: AthenaClientExperimentalOptions & {
171
- typecheckColumns: true;
172
- };
173
- }
174
- /**
175
- * Typed Athena client with registry-driven model resolution and tenant-context propagation.
176
- */
177
- interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>, TStrict extends boolean = false> extends Omit<AthenaSdkClient<TStrict>, 'from' | 'withContext' | 'withSession'> {
178
- readonly registry: TRegistry;
179
- readonly tenantKeyMap: Readonly<TTenantMap>;
180
- readonly tenantContext: TenantContext<TTenantMap>;
181
- from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
182
- from<Row = Record<string, unknown>, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
183
- withContext(context?: AthenaClientContextOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
184
- withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
185
- withTenantContext(context: TenantContext<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
186
- 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>>, {
187
- registry: TRegistry;
188
- database: TDatabase;
189
- schema: TSchema;
190
- model: ModelAt<TRegistry, TDatabase, TSchema, TModel>;
191
- }, TStrict>;
192
- }
193
- /**
194
- * Creates a typed client bound to a registry contract and optional tenant header mapping.
195
- */
196
- declare function createTypedClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>>(registry: TRegistry, url: string, apiKey: string, options: TypedClientOptionsWithTypecheckedColumns<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, true>;
197
- declare function createTypedClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>>(registry: TRegistry, url: string, apiKey: string, options?: TypedClientOptions<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, false>;
198
-
199
158
  /**
200
159
  * Constructor options for the PostgreSQL introspection provider.
201
160
  */
@@ -265,11 +224,6 @@ declare function resolveProviderSchemas(providerConfig: GeneratorProviderConfig)
265
224
  declare function normalizeTableSelection(value: GeneratorTableSelection | undefined): string[];
266
225
  declare function filterIntrospectionSnapshot(snapshot: IntrospectionSnapshot, filter: NormalizedGeneratorFilterConfig): IntrospectionSnapshot;
267
226
 
268
- /**
269
- * @deprecated Prefer `createClient(...).auth` from `@xylex-group/athena`.
270
- */
271
- declare function createAuthClient(config?: AthenaAuthClientConfig): AthenaAuthSdkClient;
272
-
273
227
  interface AthenaAuthAdminLimits {
274
228
  maxAdminJsonBytes: number;
275
229
  maxAdminJsonDepth: number;
@@ -541,4 +495,4 @@ declare const chatSdkManifest: {
541
495
  declare function unwrapChatRoom(payload: AthenaChatRoomCreatedResponse): AthenaChatRoom;
542
496
  declare function unwrapChatMessage(payload: AthenaChatMessageCreatedResponse): AthenaChatMessage;
543
497
 
544
- export { type AthenaAuthDatabaseFactory as $, ATHENA_AUTH_ADMIN_LIMITS as A, filterIntrospectionSnapshot as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, generatorEnv as E, type FormValuesFromColumns as F, identifier as G, json as H, type InsertFromColumns as I, normalizeAthenaGatewayBaseUrl as J, normalizeSchemaSelection as K, normalizeTableSelection as L, number as M, renderAthenaReactEmail as N, resolvePostgresColumnType as O, type PostgresIntrospectionProviderOptions as P, resolveProviderSchemas as Q, type RowFromColumns as R, string as S, type TypedAthenaClient as T, type UpdateFromColumns as U, table as V, unwrapChatMessage as W, unwrapChatRoom as X, type AthenaAuthBaseURLConfig as Y, type AthenaAuthContext as Z, type AthenaAuthCookieRuntimeInput as _, ATHENA_AUTH_BASE_ERROR_CODES as a, type AthenaAuthHandlerResult as a0, type AthenaAuthPlugin as a1, type AthenaAuthPluginContext as a2, type AthenaAuthPluginHandlerContext as a3, type AthenaAuthRequestContext as a4, type AthenaAuthServer as a5, type AthenaAuthServerApi as a6, type AthenaAuthServerConfig as a7, type AthenaAuthServerRuntimeOptions as a8, type AthenaAuthSocialProviderConfig as a9, type AthenaAuthTrustedOrigins as aa, type AthenaAuthTrustedProviders as ab, type GeneratorEnvBooleanOptions as ac, type GeneratorEnvJsonOptions as ad, type GeneratorEnvListOptions as ae, type GeneratorEnvOneOfOptions as af, type GeneratorEnvStringOptions as ag, createPostgresIntrospectionProvider 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, AthenaChatError as h, type AthenaColumnBuilder as i, type AthenaTableDef as j, type AthenaTableSchemaBundle as k, type TypedClientOptions as l, type TypedClientOptionsWithTypecheckedColumns as m, athenaAuth as n, boolean as o, chatSdkManifest as p, createAuthClient as q, createAuthReactEmailInput as r, createTypedClient as s, defineAthenaAuthConfig as t, defineAuthEmailTemplate as u, defineDatabase as v, defineModel as w, defineRegistry as x, defineSchema as y, enumeration as z };
498
+ export { type AthenaAuthRequestContext as $, ATHENA_AUTH_ADMIN_LIMITS as A, normalizeAthenaGatewayBaseUrl as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, normalizeSchemaSelection as E, type FormValuesFromColumns as F, normalizeTableSelection as G, number as H, type InsertFromColumns as I, renderAthenaReactEmail as J, resolvePostgresColumnType as K, resolveProviderSchemas as L, string as M, table as N, unwrapChatMessage as O, type PostgresIntrospectionProviderOptions as P, unwrapChatRoom as Q, type RowFromColumns as R, type AthenaAuthBaseURLConfig as S, type AthenaAuthContext as T, type UpdateFromColumns as U, type AthenaAuthCookieRuntimeInput as V, type AthenaAuthDatabaseFactory as W, type AthenaAuthHandlerResult as X, type AthenaAuthPlugin as Y, type AthenaAuthPluginContext as Z, type AthenaAuthPluginHandlerContext as _, ATHENA_AUTH_BASE_ERROR_CODES as a, type AthenaAuthServer as a0, type AthenaAuthServerApi as a1, type AthenaAuthServerConfig as a2, type AthenaAuthServerRuntimeOptions as a3, type AthenaAuthSocialProviderConfig as a4, type AthenaAuthTrustedOrigins as a5, type AthenaAuthTrustedProviders as a6, type GeneratorEnvBooleanOptions as a7, type GeneratorEnvJsonOptions as a8, type GeneratorEnvListOptions as a9, type GeneratorEnvOneOfOptions as aa, type GeneratorEnvStringOptions as ab, createPostgresIntrospectionProvider as ac, 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, AthenaChatError as h, type AthenaColumnBuilder as i, type AthenaTableDef as j, type AthenaTableSchemaBundle as k, athenaAuth as l, boolean as m, chatSdkManifest as n, createAuthReactEmailInput as o, defineAthenaAuthConfig as p, defineAuthEmailTemplate as q, defineDatabase as r, defineModel as s, defineRegistry as t, defineSchema as u, enumeration as v, filterIntrospectionSnapshot as w, generatorEnv as x, identifier as y, json as z };
@@ -1,11 +1,10 @@
1
- import { o as SchemaDef, r as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, q as TenantKeyMap, T as TenantContext, A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, M as ModelAt, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-BU8uJH_b.cjs';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-Dw4zEL5a.cjs';
1
+ import { o as SchemaDef, r 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-kO_Ut5wU.cjs';
2
+ import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-BEfCGB5b.cjs';
3
3
  import { ZodType } from 'zod';
4
- import { aV as AthenaSdkClient, cV as TableQueryBuilder, aH as AthenaFromOptions, ae as AthenaClientContextOptions, al as AthenaClientSessionLike, am as AthenaClientSessionOptions, an as AthenaCreateClientAuthOptions, af as AthenaClientExperimentalOptions, o as AthenaChatMessageCreatedResponse, n as AthenaChatMessage, C as AthenaChatRoomCreatedResponse, B as AthenaChatRoom } from './client-BJjUwDSg.cjs';
5
- import { a as AthenaGatewayCallOptions } from './types-CH78O90i.cjs';
6
- import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-CjC9_5ZQ.cjs';
7
- import { F as AthenaAuthClientConfig, ac as AthenaAuthSdkClient, aS 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-eAKAh71s.cjs';
4
+ import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-Z3-rsiM3.cjs';
8
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-G8JMOilK.cjs';
9
8
 
10
9
  interface NormalizeAthenaGatewayBaseUrlOptions {
11
10
  defaultBaseUrl?: string;
@@ -156,46 +155,6 @@ interface AthenaTableColumnsBuilder<TName extends string, TMappedName extends st
156
155
  }
157
156
  declare function table<TName extends string>(name: TName): AthenaTableBuilder<TName, undefined>;
158
157
 
159
- type RegistryConstraint = RegistryDef<Record<string, DatabaseDef<Record<string, SchemaDef<Record<string, AnyModelDef>>>>>>;
160
- /**
161
- * Options for creating typed Athena clients.
162
- */
163
- interface TypedClientOptions<TMap extends TenantKeyMap = TenantKeyMap> extends Pick<AthenaGatewayCallOptions, 'backend' | 'client' | 'headers' | 'forceNoCache' | 'userId' | 'organizationId'> {
164
- auth?: Omit<AthenaCreateClientAuthOptions, 'url' | 'baseUrl' | 'apiKey'>;
165
- tenantKeyMap?: TMap;
166
- tenantContext?: TenantContext<TMap>;
167
- experimental?: AthenaClientExperimentalOptions;
168
- }
169
- interface TypedClientOptionsWithTypecheckedColumns<TMap extends TenantKeyMap = TenantKeyMap> extends TypedClientOptions<TMap> {
170
- experimental: AthenaClientExperimentalOptions & {
171
- typecheckColumns: true;
172
- };
173
- }
174
- /**
175
- * Typed Athena client with registry-driven model resolution and tenant-context propagation.
176
- */
177
- interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>, TStrict extends boolean = false> extends Omit<AthenaSdkClient<TStrict>, 'from' | 'withContext' | 'withSession'> {
178
- readonly registry: TRegistry;
179
- readonly tenantKeyMap: Readonly<TTenantMap>;
180
- readonly tenantContext: TenantContext<TTenantMap>;
181
- from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
182
- from<Row = Record<string, unknown>, Insert = Partial<Row>, Update = Partial<Insert>>(table: string, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
183
- withContext(context?: AthenaClientContextOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
184
- withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
185
- withTenantContext(context: TenantContext<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
186
- 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>>, {
187
- registry: TRegistry;
188
- database: TDatabase;
189
- schema: TSchema;
190
- model: ModelAt<TRegistry, TDatabase, TSchema, TModel>;
191
- }, TStrict>;
192
- }
193
- /**
194
- * Creates a typed client bound to a registry contract and optional tenant header mapping.
195
- */
196
- declare function createTypedClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>>(registry: TRegistry, url: string, apiKey: string, options: TypedClientOptionsWithTypecheckedColumns<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, true>;
197
- declare function createTypedClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>>(registry: TRegistry, url: string, apiKey: string, options?: TypedClientOptions<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, false>;
198
-
199
158
  /**
200
159
  * Constructor options for the PostgreSQL introspection provider.
201
160
  */
@@ -265,11 +224,6 @@ declare function resolveProviderSchemas(providerConfig: GeneratorProviderConfig)
265
224
  declare function normalizeTableSelection(value: GeneratorTableSelection | undefined): string[];
266
225
  declare function filterIntrospectionSnapshot(snapshot: IntrospectionSnapshot, filter: NormalizedGeneratorFilterConfig): IntrospectionSnapshot;
267
226
 
268
- /**
269
- * @deprecated Prefer `createClient(...).auth` from `@xylex-group/athena`.
270
- */
271
- declare function createAuthClient(config?: AthenaAuthClientConfig): AthenaAuthSdkClient;
272
-
273
227
  interface AthenaAuthAdminLimits {
274
228
  maxAdminJsonBytes: number;
275
229
  maxAdminJsonDepth: number;
@@ -541,4 +495,4 @@ declare const chatSdkManifest: {
541
495
  declare function unwrapChatRoom(payload: AthenaChatRoomCreatedResponse): AthenaChatRoom;
542
496
  declare function unwrapChatMessage(payload: AthenaChatMessageCreatedResponse): AthenaChatMessage;
543
497
 
544
- export { type AthenaAuthDatabaseFactory as $, ATHENA_AUTH_ADMIN_LIMITS as A, filterIntrospectionSnapshot as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, generatorEnv as E, type FormValuesFromColumns as F, identifier as G, json as H, type InsertFromColumns as I, normalizeAthenaGatewayBaseUrl as J, normalizeSchemaSelection as K, normalizeTableSelection as L, number as M, renderAthenaReactEmail as N, resolvePostgresColumnType as O, type PostgresIntrospectionProviderOptions as P, resolveProviderSchemas as Q, type RowFromColumns as R, string as S, type TypedAthenaClient as T, type UpdateFromColumns as U, table as V, unwrapChatMessage as W, unwrapChatRoom as X, type AthenaAuthBaseURLConfig as Y, type AthenaAuthContext as Z, type AthenaAuthCookieRuntimeInput as _, ATHENA_AUTH_BASE_ERROR_CODES as a, type AthenaAuthHandlerResult as a0, type AthenaAuthPlugin as a1, type AthenaAuthPluginContext as a2, type AthenaAuthPluginHandlerContext as a3, type AthenaAuthRequestContext as a4, type AthenaAuthServer as a5, type AthenaAuthServerApi as a6, type AthenaAuthServerConfig as a7, type AthenaAuthServerRuntimeOptions as a8, type AthenaAuthSocialProviderConfig as a9, type AthenaAuthTrustedOrigins as aa, type AthenaAuthTrustedProviders as ab, type GeneratorEnvBooleanOptions as ac, type GeneratorEnvJsonOptions as ad, type GeneratorEnvListOptions as ae, type GeneratorEnvOneOfOptions as af, type GeneratorEnvStringOptions as ag, createPostgresIntrospectionProvider 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, AthenaChatError as h, type AthenaColumnBuilder as i, type AthenaTableDef as j, type AthenaTableSchemaBundle as k, type TypedClientOptions as l, type TypedClientOptionsWithTypecheckedColumns as m, athenaAuth as n, boolean as o, chatSdkManifest as p, createAuthClient as q, createAuthReactEmailInput as r, createTypedClient as s, defineAthenaAuthConfig as t, defineAuthEmailTemplate as u, defineDatabase as v, defineModel as w, defineRegistry as x, defineSchema as y, enumeration as z };
498
+ export { type AthenaAuthRequestContext as $, ATHENA_AUTH_ADMIN_LIMITS as A, normalizeAthenaGatewayBaseUrl as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, normalizeSchemaSelection as E, type FormValuesFromColumns as F, normalizeTableSelection as G, number as H, type InsertFromColumns as I, renderAthenaReactEmail as J, resolvePostgresColumnType as K, resolveProviderSchemas as L, string as M, table as N, unwrapChatMessage as O, type PostgresIntrospectionProviderOptions as P, unwrapChatRoom as Q, type RowFromColumns as R, type AthenaAuthBaseURLConfig as S, type AthenaAuthContext as T, type UpdateFromColumns as U, type AthenaAuthCookieRuntimeInput as V, type AthenaAuthDatabaseFactory as W, type AthenaAuthHandlerResult as X, type AthenaAuthPlugin as Y, type AthenaAuthPluginContext as Z, type AthenaAuthPluginHandlerContext as _, ATHENA_AUTH_BASE_ERROR_CODES as a, type AthenaAuthServer as a0, type AthenaAuthServerApi as a1, type AthenaAuthServerConfig as a2, type AthenaAuthServerRuntimeOptions as a3, type AthenaAuthSocialProviderConfig as a4, type AthenaAuthTrustedOrigins as a5, type AthenaAuthTrustedProviders as a6, type GeneratorEnvBooleanOptions as a7, type GeneratorEnvJsonOptions as a8, type GeneratorEnvListOptions as a9, type GeneratorEnvOneOfOptions as aa, type GeneratorEnvStringOptions as ab, createPostgresIntrospectionProvider as ac, 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, AthenaChatError as h, type AthenaColumnBuilder as i, type AthenaTableDef as j, type AthenaTableSchemaBundle as k, athenaAuth as l, boolean as m, chatSdkManifest as n, createAuthReactEmailInput as o, defineAthenaAuthConfig as p, defineAuthEmailTemplate as q, defineDatabase as r, defineModel as s, defineRegistry as t, defineSchema as u, enumeration as v, filterIntrospectionSnapshot as w, generatorEnv as x, identifier as y, json as z };