@xylex-group/athena 2.9.0 → 2.11.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 +112 -28
- package/dist/browser.cjs +865 -74
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +862 -75
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +785 -40
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +785 -40
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-D6EIJdQS.d.ts → client-DD_UeF3Q.d.ts} +508 -22
- package/dist/{client-CfAE_QOj.d.cts → client-WqBuu60O.d.cts} +508 -22
- package/dist/index.cjs +865 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +862 -75
- package/dist/index.js.map +1 -1
- package/dist/{react-email-BvJ3fj_F.d.cts → module-BFMyVmwX.d.cts} +97 -2
- package/dist/{react-email-PLAJuZuO.d.ts → module-DRkIHtY-.d.ts} +97 -2
- package/dist/next/client.cjs +793 -40
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +3 -4
- package/dist/next/client.d.ts +3 -4
- package/dist/next/client.js +793 -40
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +793 -40
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +2 -2
- package/dist/next/server.d.ts +2 -2
- package/dist/next/server.js +793 -40
- package/dist/next/server.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -3
- package/dist/react.d.ts +2 -3
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/{shared-BW6hoLBY.d.cts → shared-B1ueL-Ox.d.cts} +3 -1
- package/dist/{shared-BiJvoURI.d.ts → shared-GPAprhBb.d.ts} +3 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-DACdBLYG.cjs';
|
|
3
3
|
import { ZodType } from 'zod';
|
|
4
|
-
import {
|
|
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-WqBuu60O.cjs';
|
|
5
5
|
import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-C-YvfgYh.cjs';
|
|
6
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';
|
|
7
7
|
|
|
@@ -442,4 +442,99 @@ declare function createAuthReactEmailInput<TProps extends AthenaAuthReactEmailPr
|
|
|
442
442
|
declare function defineAuthEmailTemplate<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps>(definition: AthenaAuthEmailTemplateDefinition<TProps>): AthenaAuthEmailTemplateBuilder<TProps>;
|
|
443
443
|
declare function renderAthenaReactEmail(input: AthenaAuthReactEmailRenderInput, options?: AthenaAuthReactEmailRuntimeOptions | AthenaAuthReactEmailConfig): Promise<AthenaAuthRenderedReactEmail>;
|
|
444
444
|
|
|
445
|
-
|
|
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,7 @@
|
|
|
1
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
2
|
import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-ByvyyvxB.js';
|
|
3
3
|
import { ZodType } from 'zod';
|
|
4
|
-
import {
|
|
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-DD_UeF3Q.js';
|
|
5
5
|
import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-CRjDwmtJ.js';
|
|
6
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';
|
|
7
7
|
|
|
@@ -442,4 +442,99 @@ declare function createAuthReactEmailInput<TProps extends AthenaAuthReactEmailPr
|
|
|
442
442
|
declare function defineAuthEmailTemplate<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps>(definition: AthenaAuthEmailTemplateDefinition<TProps>): AthenaAuthEmailTemplateBuilder<TProps>;
|
|
443
443
|
declare function renderAthenaReactEmail(input: AthenaAuthReactEmailRenderInput, options?: AthenaAuthReactEmailRuntimeOptions | AthenaAuthReactEmailConfig): Promise<AthenaAuthRenderedReactEmail>;
|
|
444
444
|
|
|
445
|
-
|
|
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 };
|