@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
package/dist/next/server.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { ad as AthenaAuthSessionResponse } from '../types-AOY-GLu8.cjs';
|
|
2
|
+
import { ay as AthenaRequestContext } from '../v3-client-G8JMOilK.cjs';
|
|
3
|
+
import { g as AthenaAuthSessionBridgeOptions, h as AthenaAuthSessionBridgePathOptions } from '../payload-DWI1rw-e.cjs';
|
|
4
|
+
export { A as ATHENA_AUTH_SESSION_BRIDGE_ROUTE, a as ATHENA_AUTH_SESSION_COOKIE_NAME, b as ATHENA_AUTH_SESSION_COOKIE_NAMES, c as AthenaAuthSessionBridgeClientOptions, d as AthenaAuthSessionBridgePayload, e as AthenaAuthSessionBridgeSource, f as clearAthenaAuthSessionOnAppHost, p as persistAthenaAuthSessionOnAppHost, r as resolveSessionBridgePayload } from '../payload-DWI1rw-e.cjs';
|
|
5
5
|
export { S as SESSION_COOKIE_PATTERNS, h as hasAuthSessionCookie } from '../session-cookie-detection-BqOp9mO6.cjs';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../types-
|
|
6
|
+
import '../types-Bltx6iL6.cjs';
|
|
7
|
+
import '../types-kO_Ut5wU.cjs';
|
|
8
|
+
import '../module-8dSMcy0K.cjs';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Handle bridge `POST` — set an httpOnly session cookie from JSON body.
|
|
@@ -79,51 +80,34 @@ declare function createAthenaAuthSessionBridgePathHandlers(options?: AthenaAuthS
|
|
|
79
80
|
DELETE: (request: Request) => Response;
|
|
80
81
|
};
|
|
81
82
|
|
|
82
|
-
interface
|
|
83
|
-
|
|
83
|
+
interface AthenaRequestHeadersBag {
|
|
84
|
+
get(name: string): string | null;
|
|
84
85
|
}
|
|
85
|
-
interface
|
|
86
|
+
interface AthenaRequestCookiesBag {
|
|
87
|
+
getAll(): Array<{
|
|
88
|
+
name: string;
|
|
89
|
+
value: string;
|
|
90
|
+
}>;
|
|
91
|
+
}
|
|
92
|
+
type AthenaRequestHeadersInput = AthenaRequestHeadersBag | Record<string, string | null | undefined>;
|
|
93
|
+
type AthenaRequestCookiesInput = AthenaRequestCookiesBag | string | null | undefined;
|
|
94
|
+
interface AthenaServerRequestOptions {
|
|
95
|
+
requestHeaders?: AthenaRequestHeadersInput;
|
|
96
|
+
requestCookies?: AthenaRequestCookiesInput;
|
|
97
|
+
forceNoCache?: boolean;
|
|
98
|
+
headers?: Record<string, string>;
|
|
99
|
+
}
|
|
100
|
+
declare function resolveNextRequestContext(options?: AthenaServerRequestOptions): Promise<AthenaRequestContext>;
|
|
101
|
+
|
|
102
|
+
interface AthenaServerContextOptions extends AthenaServerRequestOptions {
|
|
86
103
|
session?: AthenaAuthSessionResponse | null;
|
|
87
104
|
}
|
|
88
|
-
interface AthenaResolvedServerContext
|
|
89
|
-
|
|
105
|
+
interface AthenaResolvedServerContext {
|
|
106
|
+
request: AthenaRequestContext;
|
|
90
107
|
session: AthenaAuthSessionResponse | null;
|
|
91
108
|
userId: string | null;
|
|
92
109
|
organizationId: string | null;
|
|
93
110
|
}
|
|
94
|
-
|
|
95
|
-
storage: true;
|
|
96
|
-
};
|
|
97
|
-
type AthenaServerClientOptionsWithTypecheckedColumns = AthenaServerClientOptions & {
|
|
98
|
-
experimental: AthenaAdapterExperimentalOptions & {
|
|
99
|
-
typecheckColumns: true;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
type AthenaServerClientOptionsWithStorageAndTypecheckedColumns = AthenaServerClientOptionsWithStorage & {
|
|
103
|
-
experimental: AthenaAdapterExperimentalOptions & {
|
|
104
|
-
typecheckColumns: true;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
type AthenaServerContextOptionsWithStorage = AthenaServerContextOptions & {
|
|
108
|
-
storage: true;
|
|
109
|
-
};
|
|
110
|
-
type AthenaServerContextOptionsWithTypecheckedColumns = AthenaServerContextOptions & {
|
|
111
|
-
experimental: AthenaAdapterExperimentalOptions & {
|
|
112
|
-
typecheckColumns: true;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
type AthenaServerContextOptionsWithStorageAndTypecheckedColumns = AthenaServerContextOptionsWithStorage & {
|
|
116
|
-
experimental: AthenaAdapterExperimentalOptions & {
|
|
117
|
-
typecheckColumns: true;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
declare function createAthenaServerClient(options: AthenaServerClientOptionsWithStorageAndTypecheckedColumns): Promise<AthenaSdkClientWithStorage<true>>;
|
|
121
|
-
declare function createAthenaServerClient(options: AthenaServerClientOptionsWithStorage): Promise<AthenaSdkClientWithStorage<false>>;
|
|
122
|
-
declare function createAthenaServerClient(options: AthenaServerClientOptionsWithTypecheckedColumns): Promise<AthenaSdkClientWithAuth<true>>;
|
|
123
|
-
declare function createAthenaServerClient(options?: AthenaServerClientOptions): Promise<AthenaSdkClientWithAuth<false>>;
|
|
124
|
-
declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithStorageAndTypecheckedColumns): Promise<AthenaResolvedServerContext<AthenaSdkClientWithStorage<true>>>;
|
|
125
|
-
declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithStorage): Promise<AthenaResolvedServerContext<AthenaSdkClientWithStorage<false>>>;
|
|
126
|
-
declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithTypecheckedColumns): Promise<AthenaResolvedServerContext<AthenaSdkClientWithAuth<true>>>;
|
|
127
|
-
declare function resolveAthenaServerContext(options?: AthenaServerContextOptions): Promise<AthenaResolvedServerContext<AthenaSdkClientWithAuth<false>>>;
|
|
111
|
+
declare function resolveAthenaServerContext(options?: AthenaServerContextOptions): Promise<AthenaResolvedServerContext>;
|
|
128
112
|
|
|
129
|
-
export { AthenaAuthSessionBridgeOptions, AthenaAuthSessionBridgePathOptions, type
|
|
113
|
+
export { AthenaAuthSessionBridgeOptions, AthenaAuthSessionBridgePathOptions, type AthenaRequestCookiesBag, type AthenaRequestCookiesInput, type AthenaRequestHeadersBag, type AthenaRequestHeadersInput, type AthenaResolvedServerContext, type AthenaServerContextOptions, type AthenaServerRequestOptions, createAthenaAuthSessionBridgeHandlers, createAthenaAuthSessionBridgePathHandlers, handleAthenaAuthSessionBridgeDelete, handleAthenaAuthSessionBridgePost, isAthenaAuthSessionBridgePath, resolveAthenaServerContext, resolveNextRequestContext };
|
package/dist/next/server.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { ad as AthenaAuthSessionResponse } from '../types-AOY-GLu8.js';
|
|
2
|
+
import { ay as AthenaRequestContext } from '../v3-client-CuCNy-JJ.js';
|
|
3
|
+
import { g as AthenaAuthSessionBridgeOptions, h as AthenaAuthSessionBridgePathOptions } from '../payload-DWI1rw-e.js';
|
|
4
|
+
export { A as ATHENA_AUTH_SESSION_BRIDGE_ROUTE, a as ATHENA_AUTH_SESSION_COOKIE_NAME, b as ATHENA_AUTH_SESSION_COOKIE_NAMES, c as AthenaAuthSessionBridgeClientOptions, d as AthenaAuthSessionBridgePayload, e as AthenaAuthSessionBridgeSource, f as clearAthenaAuthSessionOnAppHost, p as persistAthenaAuthSessionOnAppHost, r as resolveSessionBridgePayload } from '../payload-DWI1rw-e.js';
|
|
5
5
|
export { S as SESSION_COOKIE_PATTERNS, h as hasAuthSessionCookie } from '../session-cookie-detection-BqOp9mO6.js';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../types-
|
|
6
|
+
import '../types-Bltx6iL6.js';
|
|
7
|
+
import '../types-jClgDy1J.js';
|
|
8
|
+
import '../module-8dSMcy0K.js';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Handle bridge `POST` — set an httpOnly session cookie from JSON body.
|
|
@@ -79,51 +80,34 @@ declare function createAthenaAuthSessionBridgePathHandlers(options?: AthenaAuthS
|
|
|
79
80
|
DELETE: (request: Request) => Response;
|
|
80
81
|
};
|
|
81
82
|
|
|
82
|
-
interface
|
|
83
|
-
|
|
83
|
+
interface AthenaRequestHeadersBag {
|
|
84
|
+
get(name: string): string | null;
|
|
84
85
|
}
|
|
85
|
-
interface
|
|
86
|
+
interface AthenaRequestCookiesBag {
|
|
87
|
+
getAll(): Array<{
|
|
88
|
+
name: string;
|
|
89
|
+
value: string;
|
|
90
|
+
}>;
|
|
91
|
+
}
|
|
92
|
+
type AthenaRequestHeadersInput = AthenaRequestHeadersBag | Record<string, string | null | undefined>;
|
|
93
|
+
type AthenaRequestCookiesInput = AthenaRequestCookiesBag | string | null | undefined;
|
|
94
|
+
interface AthenaServerRequestOptions {
|
|
95
|
+
requestHeaders?: AthenaRequestHeadersInput;
|
|
96
|
+
requestCookies?: AthenaRequestCookiesInput;
|
|
97
|
+
forceNoCache?: boolean;
|
|
98
|
+
headers?: Record<string, string>;
|
|
99
|
+
}
|
|
100
|
+
declare function resolveNextRequestContext(options?: AthenaServerRequestOptions): Promise<AthenaRequestContext>;
|
|
101
|
+
|
|
102
|
+
interface AthenaServerContextOptions extends AthenaServerRequestOptions {
|
|
86
103
|
session?: AthenaAuthSessionResponse | null;
|
|
87
104
|
}
|
|
88
|
-
interface AthenaResolvedServerContext
|
|
89
|
-
|
|
105
|
+
interface AthenaResolvedServerContext {
|
|
106
|
+
request: AthenaRequestContext;
|
|
90
107
|
session: AthenaAuthSessionResponse | null;
|
|
91
108
|
userId: string | null;
|
|
92
109
|
organizationId: string | null;
|
|
93
110
|
}
|
|
94
|
-
|
|
95
|
-
storage: true;
|
|
96
|
-
};
|
|
97
|
-
type AthenaServerClientOptionsWithTypecheckedColumns = AthenaServerClientOptions & {
|
|
98
|
-
experimental: AthenaAdapterExperimentalOptions & {
|
|
99
|
-
typecheckColumns: true;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
type AthenaServerClientOptionsWithStorageAndTypecheckedColumns = AthenaServerClientOptionsWithStorage & {
|
|
103
|
-
experimental: AthenaAdapterExperimentalOptions & {
|
|
104
|
-
typecheckColumns: true;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
type AthenaServerContextOptionsWithStorage = AthenaServerContextOptions & {
|
|
108
|
-
storage: true;
|
|
109
|
-
};
|
|
110
|
-
type AthenaServerContextOptionsWithTypecheckedColumns = AthenaServerContextOptions & {
|
|
111
|
-
experimental: AthenaAdapterExperimentalOptions & {
|
|
112
|
-
typecheckColumns: true;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
type AthenaServerContextOptionsWithStorageAndTypecheckedColumns = AthenaServerContextOptionsWithStorage & {
|
|
116
|
-
experimental: AthenaAdapterExperimentalOptions & {
|
|
117
|
-
typecheckColumns: true;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
declare function createAthenaServerClient(options: AthenaServerClientOptionsWithStorageAndTypecheckedColumns): Promise<AthenaSdkClientWithStorage<true>>;
|
|
121
|
-
declare function createAthenaServerClient(options: AthenaServerClientOptionsWithStorage): Promise<AthenaSdkClientWithStorage<false>>;
|
|
122
|
-
declare function createAthenaServerClient(options: AthenaServerClientOptionsWithTypecheckedColumns): Promise<AthenaSdkClientWithAuth<true>>;
|
|
123
|
-
declare function createAthenaServerClient(options?: AthenaServerClientOptions): Promise<AthenaSdkClientWithAuth<false>>;
|
|
124
|
-
declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithStorageAndTypecheckedColumns): Promise<AthenaResolvedServerContext<AthenaSdkClientWithStorage<true>>>;
|
|
125
|
-
declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithStorage): Promise<AthenaResolvedServerContext<AthenaSdkClientWithStorage<false>>>;
|
|
126
|
-
declare function resolveAthenaServerContext(options: AthenaServerContextOptionsWithTypecheckedColumns): Promise<AthenaResolvedServerContext<AthenaSdkClientWithAuth<true>>>;
|
|
127
|
-
declare function resolveAthenaServerContext(options?: AthenaServerContextOptions): Promise<AthenaResolvedServerContext<AthenaSdkClientWithAuth<false>>>;
|
|
111
|
+
declare function resolveAthenaServerContext(options?: AthenaServerContextOptions): Promise<AthenaResolvedServerContext>;
|
|
128
112
|
|
|
129
|
-
export { AthenaAuthSessionBridgeOptions, AthenaAuthSessionBridgePathOptions, type
|
|
113
|
+
export { AthenaAuthSessionBridgeOptions, AthenaAuthSessionBridgePathOptions, type AthenaRequestCookiesBag, type AthenaRequestCookiesInput, type AthenaRequestHeadersBag, type AthenaRequestHeadersInput, type AthenaResolvedServerContext, type AthenaServerContextOptions, type AthenaServerRequestOptions, createAthenaAuthSessionBridgeHandlers, createAthenaAuthSessionBridgePathHandlers, handleAthenaAuthSessionBridgeDelete, handleAthenaAuthSessionBridgePost, isAthenaAuthSessionBridgePath, resolveAthenaServerContext, resolveNextRequestContext };
|