@xylex-group/athena 2.12.0 → 2.13.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 (96) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1190 -1184
  3. package/bin/athena-js.js +104 -76
  4. package/dist/admin.cjs +45 -0
  5. package/dist/admin.cjs.map +1 -0
  6. package/dist/admin.d.cts +64 -0
  7. package/dist/admin.d.ts +64 -0
  8. package/dist/admin.js +41 -0
  9. package/dist/admin.js.map +1 -0
  10. package/dist/athena-auth-url-oLux_57a.d.cts +377 -0
  11. package/dist/athena-auth-url-oLux_57a.d.ts +377 -0
  12. package/dist/browser.cjs +33 -46
  13. package/dist/browser.cjs.map +1 -1
  14. package/dist/browser.d.cts +12 -10
  15. package/dist/browser.d.ts +12 -10
  16. package/dist/browser.js +33 -46
  17. package/dist/browser.js.map +1 -1
  18. package/dist/cli/index.cjs +150 -48
  19. package/dist/cli/index.cjs.map +1 -1
  20. package/dist/cli/index.d.cts +14 -5
  21. package/dist/cli/index.d.ts +14 -5
  22. package/dist/cli/index.js +150 -49
  23. package/dist/cli/index.js.map +1 -1
  24. package/dist/{client-QUbAs7E8.d.ts → client-BJjUwDSg.d.cts} +109 -1448
  25. package/dist/{client-C3x75Zgn.d.cts → client-DVOKSYDI.d.ts} +109 -1448
  26. package/dist/cookies.cjs +18 -0
  27. package/dist/cookies.cjs.map +1 -1
  28. package/dist/cookies.d.cts +2 -1
  29. package/dist/cookies.d.ts +2 -1
  30. package/dist/cookies.js +17 -1
  31. package/dist/cookies.js.map +1 -1
  32. package/dist/{index-CVcQCGyG.d.ts → index-CFL9xbFR.d.cts} +2 -0
  33. package/dist/{index-CVcQCGyG.d.cts → index-UKJpunc6.d.ts} +2 -0
  34. package/dist/index.cjs +101 -46
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +13 -10
  37. package/dist/index.d.ts +13 -10
  38. package/dist/index.js +101 -47
  39. package/dist/index.js.map +1 -1
  40. package/dist/{model-form-CD1uhWSh.d.cts → model-form-Dw4zEL5a.d.cts} +2 -2
  41. package/dist/{model-form-Dm69I-oO.d.ts → model-form-yRg71q3H.d.ts} +2 -2
  42. package/dist/{module-CW3tWJ10.d.ts → module-DBteUIob.d.ts} +12 -9
  43. package/dist/{module-Cxcurfes.d.cts → module-yoX49uQC.d.cts} +12 -9
  44. package/dist/next/client.cjs +452 -46
  45. package/dist/next/client.cjs.map +1 -1
  46. package/dist/next/client.d.cts +7 -4
  47. package/dist/next/client.d.ts +7 -4
  48. package/dist/next/client.js +430 -47
  49. package/dist/next/client.js.map +1 -1
  50. package/dist/next/server.cjs +292 -46
  51. package/dist/next/server.cjs.map +1 -1
  52. package/dist/next/server.d.cts +81 -5
  53. package/dist/next/server.d.ts +81 -5
  54. package/dist/next/server.js +280 -47
  55. package/dist/next/server.js.map +1 -1
  56. package/dist/organization.cjs +72 -0
  57. package/dist/organization.cjs.map +1 -0
  58. package/dist/organization.d.cts +43 -0
  59. package/dist/organization.d.ts +43 -0
  60. package/dist/organization.js +70 -0
  61. package/dist/organization.js.map +1 -0
  62. package/dist/payload-BzVbUgY_.d.cts +219 -0
  63. package/dist/payload-DEOWN_oo.d.ts +219 -0
  64. package/dist/{pipeline-BAwb6Vzm.d.ts → pipeline-Bj6RWt1A.d.ts} +1 -1
  65. package/dist/{pipeline-B14jVK7J.d.cts → pipeline-Dwck-wZO.d.cts} +1 -1
  66. package/dist/react.cjs +2 -10
  67. package/dist/react.cjs.map +1 -1
  68. package/dist/react.d.cts +26 -7
  69. package/dist/react.d.ts +26 -7
  70. package/dist/react.js +2 -10
  71. package/dist/react.js.map +1 -1
  72. package/dist/session-cookie-detection-BqOp9mO6.d.cts +46 -0
  73. package/dist/session-cookie-detection-BqOp9mO6.d.ts +46 -0
  74. package/dist/social-providers.cjs +4189 -0
  75. package/dist/social-providers.cjs.map +1 -0
  76. package/dist/social-providers.d.cts +4948 -0
  77. package/dist/social-providers.d.ts +4948 -0
  78. package/dist/social-providers.js +4117 -0
  79. package/dist/social-providers.js.map +1 -0
  80. package/dist/{types-Cq4-NoB4.d.ts → types-BRP7sfSF.d.ts} +50 -2
  81. package/dist/{types-Dr849HD6.d.cts → types-BU8uJH_b.d.cts} +50 -2
  82. package/dist/{types-CwJCPpLD.d.ts → types-CH78O90i.d.cts} +2 -2
  83. package/dist/{types-CwJCPpLD.d.cts → types-CH78O90i.d.ts} +2 -2
  84. package/dist/{types-DMOoYnPS.d.cts → types-CjC9_5ZQ.d.cts} +3 -3
  85. package/dist/{types-BcVmPBP-.d.ts → types-DPgejxYC.d.ts} +3 -3
  86. package/dist/types-eAKAh71s.d.cts +1476 -0
  87. package/dist/types-eAKAh71s.d.ts +1476 -0
  88. package/dist/utils.cjs +438 -12
  89. package/dist/utils.cjs.map +1 -1
  90. package/dist/utils.d.cts +76 -11
  91. package/dist/utils.d.ts +76 -11
  92. package/dist/utils.js +390 -13
  93. package/dist/utils.js.map +1 -1
  94. package/package.json +49 -22
  95. package/dist/shared-0Kdc74lu.d.ts +0 -35
  96. package/dist/shared-C0wVICRv.d.cts +0 -35
@@ -1,5 +1,5 @@
1
- import { d as AthenaGatewayErrorCode, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, u as AthenaGatewayResponse } from './types-CwJCPpLD.cjs';
2
- import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-Dr849HD6.cjs';
1
+ import { d as AthenaGatewayErrorCode, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, s as AthenaGatewayResponse } from './types-CH78O90i.cjs';
2
+ import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-BU8uJH_b.cjs';
3
3
 
4
4
  interface AthenaGatewayErrorInput {
5
5
  code: AthenaGatewayErrorCode;
@@ -1,5 +1,5 @@
1
- import { d as AthenaGatewayErrorCode, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, u as AthenaGatewayResponse } from './types-CwJCPpLD.js';
2
- import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-Cq4-NoB4.js';
1
+ import { d as AthenaGatewayErrorCode, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, s as AthenaGatewayResponse } from './types-CH78O90i.js';
2
+ import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-BRP7sfSF.js';
3
3
 
4
4
  interface AthenaGatewayErrorInput {
5
5
  code: AthenaGatewayErrorCode;
@@ -1,10 +1,11 @@
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, n as RowOf, M as ModelAt, a as InsertOf, U as UpdateOf, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-Cq4-NoB4.js';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-Dm69I-oO.js';
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';
3
3
  import { ZodType } from 'zod';
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-QUbAs7E8.js';
5
- import { a as AthenaGatewayCallOptions } from './types-CwJCPpLD.js';
6
- import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-BcVmPBP-.js';
7
- 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';
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';
8
+ 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';
8
9
 
9
10
  interface NormalizeAthenaGatewayBaseUrlOptions {
10
11
  defaultBaseUrl?: string;
@@ -173,10 +174,12 @@ interface TypedClientOptionsWithTypecheckedColumns<TMap extends TenantKeyMap = T
173
174
  /**
174
175
  * Typed Athena client with registry-driven model resolution and tenant-context propagation.
175
176
  */
176
- interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>, TStrict extends boolean = false> extends AthenaSdkClient<TStrict> {
177
+ interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>, TStrict extends boolean = false> extends Omit<AthenaSdkClient<TStrict>, 'from' | 'withContext' | 'withSession'> {
177
178
  readonly registry: TRegistry;
178
179
  readonly tenantKeyMap: Readonly<TTenantMap>;
179
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>;
180
183
  withContext(context?: AthenaClientContextOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
181
184
  withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
182
185
  withTenantContext(context: TenantContext<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
@@ -358,7 +361,7 @@ interface AthenaAuthServerConfig<TDatabase = unknown> extends AthenaAuthServerCo
358
361
  basePath?: string;
359
362
  secret: string;
360
363
  database: TDatabase | AthenaAuthDatabaseFactory<TDatabase>;
361
- socialProviders?: Record<string, AthenaAuthSocialProviderConfig>;
364
+ socialProviders?: Partial<Record<AuthSocialProvider, AthenaAuthSocialProviderConfig>>;
362
365
  trustedOrigins?: AthenaAuthTrustedOrigins;
363
366
  trustedProviders?: AthenaAuthTrustedProviders;
364
367
  api?: Record<string, unknown>;
@@ -538,4 +541,4 @@ declare const chatSdkManifest: {
538
541
  declare function unwrapChatRoom(payload: AthenaChatRoomCreatedResponse): AthenaChatRoom;
539
542
  declare function unwrapChatMessage(payload: AthenaChatMessageCreatedResponse): AthenaChatMessage;
540
543
 
541
- 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 };
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 };
@@ -1,10 +1,11 @@
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, n as RowOf, M as ModelAt, a as InsertOf, U as UpdateOf, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-Dr849HD6.cjs';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-CD1uhWSh.cjs';
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';
3
3
  import { ZodType } from 'zod';
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-C3x75Zgn.cjs';
5
- import { a as AthenaGatewayCallOptions } from './types-CwJCPpLD.cjs';
6
- import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-DMOoYnPS.cjs';
7
- 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';
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';
8
+ 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';
8
9
 
9
10
  interface NormalizeAthenaGatewayBaseUrlOptions {
10
11
  defaultBaseUrl?: string;
@@ -173,10 +174,12 @@ interface TypedClientOptionsWithTypecheckedColumns<TMap extends TenantKeyMap = T
173
174
  /**
174
175
  * Typed Athena client with registry-driven model resolution and tenant-context propagation.
175
176
  */
176
- interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>, TStrict extends boolean = false> extends AthenaSdkClient<TStrict> {
177
+ interface TypedAthenaClient<TRegistry extends RegistryConstraint, TTenantMap extends TenantKeyMap = Record<never, string>, TStrict extends boolean = false> extends Omit<AthenaSdkClient<TStrict>, 'from' | 'withContext' | 'withSession'> {
177
178
  readonly registry: TRegistry;
178
179
  readonly tenantKeyMap: Readonly<TTenantMap>;
179
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>;
180
183
  withContext(context?: AthenaClientContextOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
181
184
  withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
182
185
  withTenantContext(context: TenantContext<TTenantMap>): TypedAthenaClient<TRegistry, TTenantMap, TStrict>;
@@ -358,7 +361,7 @@ interface AthenaAuthServerConfig<TDatabase = unknown> extends AthenaAuthServerCo
358
361
  basePath?: string;
359
362
  secret: string;
360
363
  database: TDatabase | AthenaAuthDatabaseFactory<TDatabase>;
361
- socialProviders?: Record<string, AthenaAuthSocialProviderConfig>;
364
+ socialProviders?: Partial<Record<AuthSocialProvider, AthenaAuthSocialProviderConfig>>;
362
365
  trustedOrigins?: AthenaAuthTrustedOrigins;
363
366
  trustedProviders?: AthenaAuthTrustedProviders;
364
367
  api?: Record<string, unknown>;
@@ -538,4 +541,4 @@ declare const chatSdkManifest: {
538
541
  declare function unwrapChatRoom(payload: AthenaChatRoomCreatedResponse): AthenaChatRoom;
539
542
  declare function unwrapChatMessage(payload: AthenaChatMessageCreatedResponse): AthenaChatMessage;
540
543
 
541
- 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 };
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 };