@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.
- package/README.md +91 -1398
- package/bin/athena-js.js +0 -0
- package/dist/admin.d.cts +1 -1
- package/dist/admin.d.ts +1 -1
- package/dist/billing.cjs +1199 -0
- package/dist/billing.cjs.map +1 -0
- package/dist/billing.d.cts +230 -0
- package/dist/billing.d.ts +230 -0
- package/dist/billing.js +1194 -0
- package/dist/billing.js.map +1 -0
- package/dist/browser.cjs +8934 -8075
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +11 -10
- package/dist/browser.d.ts +11 -10
- package/dist/browser.js +8931 -8073
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +8328 -7062
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +4 -4
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +8328 -7062
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +9391 -8526
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.js +9384 -8524
- package/dist/index.js.map +1 -1
- package/dist/{model-form-Dw4zEL5a.d.cts → model-form-BEfCGB5b.d.cts} +2 -2
- package/dist/{model-form-yRg71q3H.d.ts → model-form-BKetpu6Q.d.ts} +2 -2
- package/dist/module-8dSMcy0K.d.cts +326 -0
- package/dist/module-8dSMcy0K.d.ts +326 -0
- package/dist/{module-DBteUIob.d.ts → module-Bef_MAPO.d.ts} +6 -52
- package/dist/{module-yoX49uQC.d.cts → module-CrrSmpML.d.cts} +6 -52
- package/dist/next/client.cjs +2 -8668
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +1 -27
- package/dist/next/client.d.ts +1 -27
- package/dist/next/client.js +3 -8668
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +79 -8779
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +30 -46
- package/dist/next/server.d.ts +30 -46
- package/dist/next/server.js +79 -8779
- package/dist/next/server.js.map +1 -1
- package/dist/{payload-DEOWN_oo.d.ts → payload-DWI1rw-e.d.cts} +1 -35
- package/dist/{payload-BzVbUgY_.d.cts → payload-DWI1rw-e.d.ts} +1 -35
- package/dist/{pipeline-Bj6RWt1A.d.ts → pipeline-BXFQbsUW.d.ts} +1 -1
- package/dist/{pipeline-Dwck-wZO.d.cts → pipeline-Dfsed4VD.d.cts} +1 -1
- package/dist/react.cjs +114 -13
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +46 -16
- package/dist/react.d.ts +46 -16
- package/dist/react.js +113 -14
- package/dist/react.js.map +1 -1
- package/dist/social-providers.cjs +33 -24
- package/dist/social-providers.cjs.map +1 -1
- package/dist/social-providers.d.cts +79 -82
- package/dist/social-providers.d.ts +79 -82
- package/dist/social-providers.js +33 -24
- package/dist/social-providers.js.map +1 -1
- package/dist/{types-eAKAh71s.d.cts → types-AOY-GLu8.d.cts} +27 -54
- package/dist/{types-eAKAh71s.d.ts → types-AOY-GLu8.d.ts} +27 -54
- package/dist/{types-CH78O90i.d.cts → types-Bltx6iL6.d.cts} +4 -6
- package/dist/{types-CH78O90i.d.ts → types-Bltx6iL6.d.ts} +4 -6
- package/dist/{types-DPgejxYC.d.ts → types-CK7cBQbC.d.ts} +2 -2
- package/dist/{types-CjC9_5ZQ.d.cts → types-Z3-rsiM3.d.cts} +2 -2
- package/dist/{types-BRP7sfSF.d.ts → types-jClgDy1J.d.ts} +2 -2
- package/dist/{types-BU8uJH_b.d.cts → types-kO_Ut5wU.d.cts} +2 -2
- package/dist/utils.cjs +7 -8
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -5
- package/dist/utils.d.ts +2 -5
- package/dist/utils.js +7 -8
- package/dist/utils.js.map +1 -1
- package/dist/{client-DVOKSYDI.d.ts → v3-client-CuCNy-JJ.d.ts} +532 -470
- package/dist/{client-BJjUwDSg.d.cts → v3-client-G8JMOilK.d.cts} +532 -470
- 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,
|
|
2
|
-
import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-
|
|
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 {
|
|
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
|
|
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,
|
|
2
|
-
import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-
|
|
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 {
|
|
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
|
|
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 };
|