@xylex-group/athena 2.8.2 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +154 -64
  2. package/dist/browser.cjs +1550 -181
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.d.cts +8 -7
  5. package/dist/browser.d.ts +8 -7
  6. package/dist/browser.js +1540 -182
  7. package/dist/browser.js.map +1 -1
  8. package/dist/cli/index.cjs +1337 -67
  9. package/dist/cli/index.cjs.map +1 -1
  10. package/dist/cli/index.d.cts +3 -3
  11. package/dist/cli/index.d.ts +3 -3
  12. package/dist/cli/index.js +1337 -67
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/{model-form-Cx3wtvi8.d.ts → client-B7EQ_hPV.d.cts} +606 -118
  15. package/dist/{model-form-_ugfOXao.d.cts → client-BYii6dU9.d.ts} +606 -118
  16. package/dist/index.cjs +1540 -113
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +8 -7
  19. package/dist/index.d.ts +8 -7
  20. package/dist/index.js +1530 -114
  21. package/dist/index.js.map +1 -1
  22. package/dist/model-form-ByvyyvxB.d.ts +96 -0
  23. package/dist/model-form-DACdBLYG.d.cts +96 -0
  24. package/dist/{react-email-CiiSVa9F.d.cts → module-DC96HJa3.d.cts} +130 -5
  25. package/dist/{react-email-WN8UU3AL.d.ts → module-DbHlxpeR.d.ts} +130 -5
  26. package/dist/next/client.cjs +8591 -0
  27. package/dist/next/client.cjs.map +1 -0
  28. package/dist/next/client.d.cts +24 -0
  29. package/dist/next/client.d.ts +24 -0
  30. package/dist/next/client.js +8589 -0
  31. package/dist/next/client.js.map +1 -0
  32. package/dist/next/server.cjs +8709 -0
  33. package/dist/next/server.cjs.map +1 -0
  34. package/dist/next/server.d.cts +52 -0
  35. package/dist/next/server.d.ts +52 -0
  36. package/dist/next/server.js +8706 -0
  37. package/dist/next/server.js.map +1 -0
  38. package/dist/{pipeline-BtD-Uo5X.d.cts → pipeline-CmUZsXsi.d.cts} +1 -1
  39. package/dist/{pipeline-yCIZNJHE.d.ts → pipeline-DZMsPxUg.d.ts} +1 -1
  40. package/dist/react.cjs +30 -1
  41. package/dist/react.cjs.map +1 -1
  42. package/dist/react.d.cts +38 -10
  43. package/dist/react.d.ts +38 -10
  44. package/dist/react.js +30 -2
  45. package/dist/react.js.map +1 -1
  46. package/dist/shared-BMVGMnti.d.cts +35 -0
  47. package/dist/shared-DRptGBWP.d.ts +35 -0
  48. package/dist/{types-g8G6J0xE.d.cts → types-BeZIHduP.d.cts} +2 -1
  49. package/dist/{types-g8G6J0xE.d.ts → types-BeZIHduP.d.ts} +2 -1
  50. package/dist/{types-C2kiTt6-.d.ts → types-C-YvfgYh.d.cts} +26 -2
  51. package/dist/{types-89EfjLjV.d.cts → types-CRjDwmtJ.d.ts} +26 -2
  52. package/package.json +32 -14
@@ -0,0 +1,52 @@
1
+ import { an as AthenaAuthSessionResponse, bI as AthenaClientSessionLike, cA as AthenaSdkClientWithStorage, cz as AthenaSdkClientWithAuth } from '../client-B7EQ_hPV.cjs';
2
+ import { A as AthenaAdapterBaseOptions, b as AthenaServerRequestOptions, a as AthenaAdapterExperimentalOptions } from '../shared-BMVGMnti.cjs';
3
+ import '../types-BeZIHduP.cjs';
4
+
5
+ interface AthenaServerClientOptions extends AthenaAdapterBaseOptions, AthenaServerRequestOptions {
6
+ session?: AthenaClientSessionLike | AthenaAuthSessionResponse | null;
7
+ }
8
+ interface AthenaServerContextOptions extends AthenaAdapterBaseOptions, AthenaServerRequestOptions {
9
+ session?: AthenaAuthSessionResponse | null;
10
+ }
11
+ interface AthenaResolvedServerContext<TClient> {
12
+ client: TClient;
13
+ session: AthenaAuthSessionResponse | null;
14
+ userId: string | null;
15
+ organizationId: string | null;
16
+ }
17
+ type AthenaServerClientOptionsWithStorage = AthenaServerClientOptions & {
18
+ storage: true;
19
+ };
20
+ type AthenaServerClientOptionsWithTypecheckedColumns = AthenaServerClientOptions & {
21
+ experimental: AthenaAdapterExperimentalOptions & {
22
+ typecheckColumns: true;
23
+ };
24
+ };
25
+ type AthenaServerClientOptionsWithStorageAndTypecheckedColumns = AthenaServerClientOptionsWithStorage & {
26
+ experimental: AthenaAdapterExperimentalOptions & {
27
+ typecheckColumns: true;
28
+ };
29
+ };
30
+ type AthenaServerContextOptionsWithStorage = AthenaServerContextOptions & {
31
+ storage: true;
32
+ };
33
+ type AthenaServerContextOptionsWithTypecheckedColumns = AthenaServerContextOptions & {
34
+ experimental: AthenaAdapterExperimentalOptions & {
35
+ typecheckColumns: true;
36
+ };
37
+ };
38
+ type AthenaServerContextOptionsWithStorageAndTypecheckedColumns = AthenaServerContextOptionsWithStorage & {
39
+ experimental: AthenaAdapterExperimentalOptions & {
40
+ typecheckColumns: true;
41
+ };
42
+ };
43
+ declare function createAthenaServerClient(options: AthenaServerClientOptionsWithStorageAndTypecheckedColumns): Promise<AthenaSdkClientWithStorage<true>>;
44
+ declare function createAthenaServerClient(options: AthenaServerClientOptionsWithStorage): Promise<AthenaSdkClientWithStorage<false>>;
45
+ declare function createAthenaServerClient(options: AthenaServerClientOptionsWithTypecheckedColumns): Promise<AthenaSdkClientWithAuth<true>>;
46
+ declare function createAthenaServerClient(options?: AthenaServerClientOptions): Promise<AthenaSdkClientWithAuth<false>>;
47
+ declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithStorageAndTypecheckedColumns): Promise<AthenaResolvedServerContext<AthenaSdkClientWithStorage<true>>>;
48
+ declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithStorage): Promise<AthenaResolvedServerContext<AthenaSdkClientWithStorage<false>>>;
49
+ declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithTypecheckedColumns): Promise<AthenaResolvedServerContext<AthenaSdkClientWithAuth<true>>>;
50
+ declare function resolveAthenaServerContext(options?: AthenaServerContextOptions): Promise<AthenaResolvedServerContext<AthenaSdkClientWithAuth<false>>>;
51
+
52
+ export { type AthenaResolvedServerContext, type AthenaServerClientOptions, type AthenaServerContextOptions, createAthenaServerClient, resolveAthenaServerContext };
@@ -0,0 +1,52 @@
1
+ import { an as AthenaAuthSessionResponse, bI as AthenaClientSessionLike, cA as AthenaSdkClientWithStorage, cz as AthenaSdkClientWithAuth } from '../client-BYii6dU9.js';
2
+ import { A as AthenaAdapterBaseOptions, b as AthenaServerRequestOptions, a as AthenaAdapterExperimentalOptions } from '../shared-DRptGBWP.js';
3
+ import '../types-BeZIHduP.js';
4
+
5
+ interface AthenaServerClientOptions extends AthenaAdapterBaseOptions, AthenaServerRequestOptions {
6
+ session?: AthenaClientSessionLike | AthenaAuthSessionResponse | null;
7
+ }
8
+ interface AthenaServerContextOptions extends AthenaAdapterBaseOptions, AthenaServerRequestOptions {
9
+ session?: AthenaAuthSessionResponse | null;
10
+ }
11
+ interface AthenaResolvedServerContext<TClient> {
12
+ client: TClient;
13
+ session: AthenaAuthSessionResponse | null;
14
+ userId: string | null;
15
+ organizationId: string | null;
16
+ }
17
+ type AthenaServerClientOptionsWithStorage = AthenaServerClientOptions & {
18
+ storage: true;
19
+ };
20
+ type AthenaServerClientOptionsWithTypecheckedColumns = AthenaServerClientOptions & {
21
+ experimental: AthenaAdapterExperimentalOptions & {
22
+ typecheckColumns: true;
23
+ };
24
+ };
25
+ type AthenaServerClientOptionsWithStorageAndTypecheckedColumns = AthenaServerClientOptionsWithStorage & {
26
+ experimental: AthenaAdapterExperimentalOptions & {
27
+ typecheckColumns: true;
28
+ };
29
+ };
30
+ type AthenaServerContextOptionsWithStorage = AthenaServerContextOptions & {
31
+ storage: true;
32
+ };
33
+ type AthenaServerContextOptionsWithTypecheckedColumns = AthenaServerContextOptions & {
34
+ experimental: AthenaAdapterExperimentalOptions & {
35
+ typecheckColumns: true;
36
+ };
37
+ };
38
+ type AthenaServerContextOptionsWithStorageAndTypecheckedColumns = AthenaServerContextOptionsWithStorage & {
39
+ experimental: AthenaAdapterExperimentalOptions & {
40
+ typecheckColumns: true;
41
+ };
42
+ };
43
+ declare function createAthenaServerClient(options: AthenaServerClientOptionsWithStorageAndTypecheckedColumns): Promise<AthenaSdkClientWithStorage<true>>;
44
+ declare function createAthenaServerClient(options: AthenaServerClientOptionsWithStorage): Promise<AthenaSdkClientWithStorage<false>>;
45
+ declare function createAthenaServerClient(options: AthenaServerClientOptionsWithTypecheckedColumns): Promise<AthenaSdkClientWithAuth<true>>;
46
+ declare function createAthenaServerClient(options?: AthenaServerClientOptions): Promise<AthenaSdkClientWithAuth<false>>;
47
+ declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithStorageAndTypecheckedColumns): Promise<AthenaResolvedServerContext<AthenaSdkClientWithStorage<true>>>;
48
+ declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithStorage): Promise<AthenaResolvedServerContext<AthenaSdkClientWithStorage<false>>>;
49
+ declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithTypecheckedColumns): Promise<AthenaResolvedServerContext<AthenaSdkClientWithAuth<true>>>;
50
+ declare function resolveAthenaServerContext(options?: AthenaServerContextOptions): Promise<AthenaResolvedServerContext<AthenaSdkClientWithAuth<false>>>;
51
+
52
+ export { type AthenaResolvedServerContext, type AthenaServerClientOptions, type AthenaServerContextOptions, createAthenaServerClient, resolveAthenaServerContext };