@xylex-group/athena 3.1.0 → 3.3.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 (82) hide show
  1. package/README.md +1 -1
  2. package/dist/admin.cjs +55 -1
  3. package/dist/admin.cjs.map +1 -1
  4. package/dist/admin.d.cts +32 -8
  5. package/dist/admin.d.ts +32 -8
  6. package/dist/admin.js +54 -2
  7. package/dist/admin.js.map +1 -1
  8. package/dist/athena-auth-url-C1FbVmN6.d.cts +200 -0
  9. package/dist/athena-auth-url-C1FbVmN6.d.ts +200 -0
  10. package/dist/{athena-request-headers-C7Jy-c_D.d.ts → athena-request-headers-DzimbvOA.d.ts} +48 -200
  11. package/dist/{athena-request-headers-DujFFyMU.d.cts → athena-request-headers-Lr_m8xCV.d.cts} +48 -200
  12. package/dist/billing.cjs +1 -1
  13. package/dist/billing.cjs.map +1 -1
  14. package/dist/billing.js +1 -1
  15. package/dist/billing.js.map +1 -1
  16. package/dist/browser.cjs +602 -16
  17. package/dist/browser.cjs.map +1 -1
  18. package/dist/browser.d.cts +8 -7
  19. package/dist/browser.d.ts +8 -7
  20. package/dist/browser.js +593 -17
  21. package/dist/browser.js.map +1 -1
  22. package/dist/cli/index.cjs +141 -6
  23. package/dist/cli/index.cjs.map +1 -1
  24. package/dist/cli/index.d.cts +2 -2
  25. package/dist/cli/index.d.ts +2 -2
  26. package/dist/cli/index.js +141 -6
  27. package/dist/cli/index.js.map +1 -1
  28. package/dist/env.cjs +130 -0
  29. package/dist/env.cjs.map +1 -0
  30. package/dist/env.d.cts +70 -0
  31. package/dist/env.d.ts +70 -0
  32. package/dist/env.js +122 -0
  33. package/dist/env.js.map +1 -0
  34. package/dist/index.cjs +624 -19
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +8 -7
  37. package/dist/index.d.ts +8 -7
  38. package/dist/index.js +615 -20
  39. package/dist/index.js.map +1 -1
  40. package/dist/{model-form-BhWWsA-7.d.cts → model-form-3Gr8rkdT.d.cts} +24 -2
  41. package/dist/{model-form-BbdzJ9Uh.d.ts → model-form-CotpEL7z.d.ts} +24 -2
  42. package/dist/{module-xFd7_Igv.d.cts → module-CQmOaDzP.d.cts} +4 -4
  43. package/dist/{module-DKkJKOuJ.d.ts → module-CWkUTcUc.d.ts} +4 -4
  44. package/dist/next/client.cjs +123 -7
  45. package/dist/next/client.cjs.map +1 -1
  46. package/dist/next/client.d.cts +4 -3
  47. package/dist/next/client.d.ts +4 -3
  48. package/dist/next/client.js +123 -7
  49. package/dist/next/client.js.map +1 -1
  50. package/dist/next/server.cjs +1130 -364
  51. package/dist/next/server.cjs.map +1 -1
  52. package/dist/next/server.d.cts +121 -8
  53. package/dist/next/server.d.ts +121 -8
  54. package/dist/next/server.js +1120 -365
  55. package/dist/next/server.js.map +1 -1
  56. package/dist/{pipeline-DuKzYGia.d.cts → pipeline-BnRKO_Pd.d.cts} +1 -1
  57. package/dist/{pipeline-wer2G9xW.d.ts → pipeline-sWCmlFqu.d.ts} +1 -1
  58. package/dist/{proxy-request-headers-m4D2Tduy.d.ts → proxy-request-headers-CttlcuRb.d.ts} +1 -1
  59. package/dist/{proxy-request-headers-DGxdoyA0.d.cts → proxy-request-headers-pIBSn1Fw.d.cts} +1 -1
  60. package/dist/react.cjs +290 -31
  61. package/dist/react.cjs.map +1 -1
  62. package/dist/react.d.cts +59 -9
  63. package/dist/react.d.ts +59 -9
  64. package/dist/react.js +290 -32
  65. package/dist/react.js.map +1 -1
  66. package/dist/schema-handlers-BtT_IQFi.d.cts +138 -0
  67. package/dist/schema-handlers-VjFDhIMw.d.ts +138 -0
  68. package/dist/social-providers.d.cts +1 -1
  69. package/dist/social-providers.d.ts +1 -1
  70. package/dist/{types-CccOiXPo.d.ts → types-BDX8zS7w.d.ts} +12 -0
  71. package/dist/{types-AOY-GLu8.d.cts → types-BVKpQmfY.d.cts} +11 -0
  72. package/dist/{types-AOY-GLu8.d.ts → types-BVKpQmfY.d.ts} +11 -0
  73. package/dist/{types-1ztXDgPa.d.cts → types-D-Am7YSd.d.cts} +12 -0
  74. package/dist/utils.cjs +30 -0
  75. package/dist/utils.cjs.map +1 -1
  76. package/dist/utils.d.cts +3 -2
  77. package/dist/utils.d.ts +3 -2
  78. package/dist/utils.js +30 -1
  79. package/dist/utils.js.map +1 -1
  80. package/dist/{v3-client-CWfZHcKL.d.cts → v3-client-G1SLeHRa.d.cts} +23 -1
  81. package/dist/{v3-client-DZp2NEhK.d.ts → v3-client-ao8BWQ8v.d.ts} +23 -1
  82. package/package.json +16 -2
@@ -77,6 +77,53 @@ interface ClearAuthCookiesOptions {
77
77
  * }
78
78
  * ```
79
79
  */
80
+ interface SignOutAndClearAthenaSessionOptions {
81
+ /**
82
+ * Call the auth client's sign-out (or equivalent). Failures are swallowed so
83
+ * cookies still clear; rethrow by setting `throwOnSignOutError`.
84
+ */
85
+ signOut: () => Promise<unknown> | unknown;
86
+ /**
87
+ * Optional app-host session bridge clear
88
+ * (`clearAthenaAuthSessionOnAppHost` from `@xylex-group/athena/next/client`).
89
+ */
90
+ clearBridge?: () => Promise<unknown> | unknown;
91
+ /**
92
+ * When set and running in a browser, hard-redirect after clearing cookies.
93
+ * Pass `null` / omit to skip navigation (caller uses soft navigate).
94
+ */
95
+ redirectTo?: string | null;
96
+ /**
97
+ * When false, skip `window.location` even if `redirectTo` is set.
98
+ * @default true when `redirectTo` is a non-empty string
99
+ */
100
+ hardRedirect?: boolean;
101
+ clearCookieOptions?: ClearAuthCookiesOptions;
102
+ throwOnSignOutError?: boolean;
103
+ }
104
+ interface SignOutAndClearAthenaSessionResult {
105
+ clearedCookies: string[];
106
+ signOutError: unknown | null;
107
+ }
108
+ /**
109
+ * Sign out, clear Athena/Better Auth cookies, optionally clear the app-host
110
+ * session bridge cookie, then optionally hard-redirect.
111
+ *
112
+ * Prefer this over per-app `try/finally` copy-paste of clear + redirect.
113
+ *
114
+ * @example
115
+ * ```ts
116
+ * import { signOutAndClearAthenaSession } from "@xylex-group/athena/utils"
117
+ * import { clearAthenaAuthSessionOnAppHost } from "@xylex-group/athena/next/client"
118
+ *
119
+ * await signOutAndClearAthenaSession({
120
+ * signOut: () => authClient.signOut({ fetchOptions: { throw: true } }),
121
+ * clearBridge: () => clearAthenaAuthSessionOnAppHost(),
122
+ * redirectTo: "/sign-in",
123
+ * })
124
+ * ```
125
+ */
126
+ declare function signOutAndClearAthenaSession(options: SignOutAndClearAthenaSessionOptions): Promise<SignOutAndClearAthenaSessionResult>;
80
127
  declare function clearAuthCookies(options?: ClearAuthCookiesOptions): string[];
81
128
 
82
129
  /**
@@ -177,205 +224,6 @@ declare function shouldRedirectAuthenticatedAuthMode(mode: AuthMode): boolean;
177
224
  */
178
225
  declare function resolveAuthModeRedirect(mode: string | undefined, redirects?: AuthModeRedirects): string | null;
179
226
 
180
- /**
181
- * Resolve Athena Auth base / upstream URLs from env or explicit config.
182
- *
183
- * Mirrors the Athena Auth UI base-url contract so apps and the SDK share one
184
- * precedence order for `ATHENA_AUTH_*` environment variables.
185
- */
186
- /** Default browser/proxy path for same-origin auth routing. */
187
- declare const ATHENA_AUTH_PATH = "/api/auth";
188
- /** Fallback origin when no absolute upstream is configured (server-side). */
189
- declare const LOCAL_DEV_ORIGIN = "http://localhost:3000";
190
- /**
191
- * Hosted Athena Auth origin used when no upstream override is supplied.
192
- * Origin only — no `/api/auth` suffix.
193
- */
194
- declare const DEFAULT_ATHENA_AUTH_ORIGIN = "https://auth.athena-auth.com";
195
- /**
196
- * @deprecated Prefer {@link DEFAULT_ATHENA_AUTH_ORIGIN}.
197
- * Kept for callers that used the older name.
198
- */
199
- declare const DEFAULT_ATHENA_AUTH_UPSTREAM_URL = "https://auth.athena-auth.com";
200
- /**
201
- * Environment keys checked (in order) for the Athena Auth upstream URL.
202
- *
203
- * Prefer server-only keys first so private upstream hosts are not forced to
204
- * rely on `NEXT_PUBLIC_*` values.
205
- */
206
- declare const ATHENA_AUTH_UPSTREAM_ENV_KEYS: readonly ["ATHENA_AUTH_UPSTREAM_URL", "ATHENA_AUTH_URL", "NEXT_PUBLIC_ATHENA_AUTH_UPSTREAM_URL", "NEXT_PUBLIC_ATHENA_AUTH_URL"];
207
- /**
208
- * Auth UI naming parity (`base-url.ts`).
209
- * Same ordered list as {@link ATHENA_AUTH_UPSTREAM_ENV_KEYS}.
210
- */
211
- declare const ATHENA_AUTH_UPSTREAM_URL_ENV_NAMES: readonly ["ATHENA_AUTH_UPSTREAM_URL", "ATHENA_AUTH_URL", "NEXT_PUBLIC_ATHENA_AUTH_UPSTREAM_URL", "NEXT_PUBLIC_ATHENA_AUTH_URL"];
212
- type AthenaAuthUpstreamEnvKey = (typeof ATHENA_AUTH_UPSTREAM_ENV_KEYS)[number];
213
- /** Loose env map (Node `process.env` or a test fixture). */
214
- type EnvLike = Record<string, string | undefined>;
215
- type AthenaAuthUpstreamEnv = Partial<Record<AthenaAuthUpstreamEnvKey, string | undefined>> & EnvLike;
216
- interface AthenaAuthClientBaseUrlOptions {
217
- /**
218
- * When `true` (default), ensure the client base ends with `/api/auth`.
219
- * Set `false` when the auth server is mounted at a custom path or root.
220
- */
221
- appendAuthPath?: boolean;
222
- }
223
- /**
224
- * Returns `true` when the value is an absolute `http://` or `https://` URL.
225
- */
226
- declare function isAbsoluteUrl(value: string): boolean;
227
- /**
228
- * Read the first non-empty Athena Auth upstream URL from an env-like map.
229
- *
230
- * @returns Trimmed URL string, or `undefined` when none of the keys are set
231
- */
232
- declare function readAthenaAuthUpstreamUrlFromEnv(env: EnvLike): string | undefined;
233
- /**
234
- * Normalize a consumer-supplied auth base URL so it targets `/api/auth`
235
- * (unless the path already ends with that segment).
236
- *
237
- * Absolute URLs keep origin and rewrite pathname; relative paths are ensured
238
- * to end with `/api/auth`.
239
- *
240
- * @example
241
- * ```ts
242
- * normalizeAthenaAuthBaseUrl('https://auth.example.com')
243
- * // => 'https://auth.example.com/api/auth'
244
- *
245
- * normalizeAthenaAuthBaseUrl('/api/auth')
246
- * // => '/api/auth'
247
- * ```
248
- */
249
- declare function normalizeAthenaAuthBaseUrl(urlOrPath: string): string;
250
- /**
251
- * Resolve the **server-side** Athena Auth upstream origin (no `/api/auth` suffix).
252
- *
253
- * Used when proxying or calling the auth host directly from Node / edge.
254
- *
255
- * @param rawUpstreamUrl - Explicit URL, env map, or omit to read `process.env`
256
- * @returns Origin like `https://auth.example.com` (no trailing slash)
257
- */
258
- declare function resolveAthenaAuthUpstreamUrl(rawUpstreamUrl?: string | AthenaAuthUpstreamEnv): string;
259
- /**
260
- * Resolve the **browser-facing** auth client base URL.
261
- *
262
- * Default behavior appends `/api/auth` for same-origin proxying. Pass
263
- * `{ appendAuthPath: false }` to keep a custom path or root mount.
264
- *
265
- * Overloads match common call styles from Athena Auth UI and app code:
266
- * - `resolveAthenaAuthClientBaseUrl("https://auth.example.com")`
267
- * - `resolveAthenaAuthClientBaseUrl(process.env)`
268
- * - `resolveAthenaAuthClientBaseUrl(undefined)` → env + defaults
269
- * - `resolveAthenaAuthClientBaseUrl(path, upstream, { appendAuthPath: false })`
270
- */
271
- declare function resolveAthenaAuthClientBaseUrl(configuredAuthBaseUrl?: string | EnvLike, rawUpstreamUrl?: string | AthenaAuthUpstreamEnv, options?: AthenaAuthClientBaseUrlOptions): string;
272
- declare function resolveAthenaAuthClientBaseUrl(configuredAuthBaseUrl: string, rawUpstreamUrl?: string | AthenaAuthUpstreamEnv, options?: AthenaAuthClientBaseUrlOptions): string;
273
- /**
274
- * Build an absolute Athena Auth request URL for a path under the client base.
275
- *
276
- * Resolves at **call time** (reads env when `rawBaseUrl` is omitted) so module
277
- * load order does not freeze a stale URL.
278
- *
279
- * @param path - Path relative to the auth base (leading slashes stripped)
280
- * @param rawBaseUrl - Optional base string or env map
281
- *
282
- * @example
283
- * ```ts
284
- * resolveAthenaAuthRequestUrl('get-session', 'https://auth.example.com')
285
- * // => 'https://auth.example.com/api/auth/get-session'
286
- * ```
287
- */
288
- declare function resolveAthenaAuthRequestUrl(path: string, rawBaseUrl?: string | EnvLike): string;
289
- /** Relative auth path for email verification (`GET /verify-email`). */
290
- declare const ATHENA_AUTH_VERIFY_EMAIL_PATH = "verify-email";
291
- /**
292
- * Relative segment for session lookup (`GET /get-session`).
293
- * Prefer with {@link resolveAthenaAuthRequestUrl} when `base` already ends in `/api/auth`.
294
- */
295
- declare const ATHENA_AUTH_GET_SESSION_PATH = "get-session";
296
- /**
297
- * Absolute app/proxy path for session lookup.
298
- * Use with `new URL(ATHENA_AUTH_GET_SESSION_ABSOLUTE_PATH, appOrigin)` when
299
- * `baseUrl` is the **app origin** (e.g. `https://app.example.com`), not the auth client base.
300
- */
301
- declare const ATHENA_AUTH_GET_SESSION_ABSOLUTE_PATH = "/api/auth/get-session";
302
- /**
303
- * @deprecated Alias of {@link ATHENA_AUTH_GET_SESSION_ABSOLUTE_PATH} for drop-in
304
- * replacement of app-local `AUTH_SESSION_PATH` constants. Prefer the `ATHENA_` name.
305
- */
306
- declare const AUTH_SESSION_PATH = "/api/auth/get-session";
307
- /**
308
- * Query param that forces Athena Auth / Better Auth style session handlers to
309
- * skip cookie cache and re-read the live session cookie.
310
- */
311
- declare const ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_PARAM = "disableCookieCache";
312
- /**
313
- * @deprecated Alias of {@link ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_PARAM}.
314
- */
315
- declare const DISABLE_COOKIE_CACHE_QUERY_PARAM = "disableCookieCache";
316
- /** Value paired with {@link ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_PARAM}. */
317
- declare const ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_VALUE = "true";
318
- /**
319
- * @deprecated Alias of {@link ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_VALUE}.
320
- */
321
- declare const DISABLE_COOKIE_CACHE_QUERY_VALUE = "true";
322
- /**
323
- * Optional request/response header some apps use to pass serialized session
324
- * payload between edge middleware and the app (not set by the SDK itself).
325
- */
326
- declare const ATHENA_SESSION_DATA_HEADER = "x-session-data";
327
- /**
328
- * @deprecated Alias of {@link ATHENA_SESSION_DATA_HEADER}.
329
- */
330
- declare const SESSION_DATA_HEADER = "x-session-data";
331
- /**
332
- * Absolute callback URL for email verification.
333
- *
334
- * Equivalent to `resolveAthenaAuthRequestUrl("verify-email")` — use this in
335
- * sign-up / send-verification payloads as `callbackURL` instead of a local
336
- * wrapper around Auth UI `base-url` helpers.
337
- *
338
- * @param rawBaseUrl - Optional base string or env map (defaults to process env)
339
- * @returns e.g. `https://auth.example.com/api/auth/verify-email`
340
- *
341
- * @example
342
- * ```ts
343
- * import { resolveEmailVerificationCallbackUrl } from "@xylex-group/athena/utils"
344
- *
345
- * await client.auth.signUp.email({
346
- * email,
347
- * password,
348
- * name,
349
- * callbackURL: resolveEmailVerificationCallbackUrl(),
350
- * })
351
- * ```
352
- */
353
- declare function resolveEmailVerificationCallbackUrl(rawBaseUrl?: string | EnvLike): string;
354
- /**
355
- * Build a same-origin (or absolute) **fresh** get-session URL.
356
- *
357
- * Appends `disableCookieCache=true` so middleware / RSC session probes do not
358
- * reuse a stale cookie-cache entry.
359
- *
360
- * @param baseUrl - App origin (`https://app.example.com`) or any base accepted by
361
- * the `URL` constructor. Resolves {@link ATHENA_AUTH_GET_SESSION_ABSOLUTE_PATH}
362
- * (`/api/auth/get-session`) against that base.
363
- * @returns URL such as `https://app.example.com/api/auth/get-session?disableCookieCache=true`
364
- *
365
- * @example
366
- * ```ts
367
- * import { createFreshSessionLookupUrl } from "@xylex-group/athena/utils"
368
- *
369
- * const url = createFreshSessionLookupUrl("https://app.example.com")
370
- * await fetch(url, { headers: { cookie: requestHeaders.get("cookie") ?? "" } })
371
- * ```
372
- *
373
- * For auth-client base URLs that already include `/api/auth`, prefer:
374
- * `resolveAthenaAuthRequestUrl("get-session", authBase) + "?disableCookieCache=true"`
375
- * or pass the **app** origin into this helper when you proxy `/api/auth/*` locally.
376
- */
377
- declare function createFreshSessionLookupUrl(baseUrl: string | URL): URL;
378
-
379
227
  declare function asString(value: unknown): string | null;
380
228
  declare function asBoolean(value: unknown): boolean;
381
229
  declare function asBooleanOrNull(value: unknown): boolean | null;
@@ -458,4 +306,4 @@ declare function buildAthenaGatewayHeaders(input: {
458
306
  }): Record<string, string>;
459
307
  declare function buildAthenaRequestHeaders(input: BuildAthenaRequestHeadersInput): Record<string, string>;
460
308
 
461
- export { resolveAuthModeRedirect as $, ATHENA_AUTH_COOKIE_PREFIXES as A, type AuthView as B, type BuildAthenaRequestHeadersInput as C, type ClearAuthCookiesOptions as D, DEFAULT_ATHENA_AUTH_ORIGIN as E, DEFAULT_ATHENA_AUTH_UPSTREAM_URL as F, DISABLE_COOKIE_CACHE_QUERY_PARAM as G, DISABLE_COOKIE_CACHE_QUERY_VALUE as H, type EnvLike as I, asNonEmptyString as J, asString as K, LOCAL_DEV_ORIGIN as L, buildAthenaGatewayHeaders as M, buildAthenaRequestHeaders as N, clearAuthCookies as O, createAuthModeRedirects as P, createAuthRoutes as Q, createFreshSessionLookupUrl as R, SESSION_DATA_HEADER as S, isAbsoluteUrl as T, isAuthMode as U, normalizeAthenaAuthBaseUrl as V, readAthenaAuthUpstreamUrlFromEnv as W, readTrimmedString as X, resolveAthenaAuthClientBaseUrl as Y, resolveAthenaAuthRequestUrl as Z, resolveAthenaAuthUpstreamUrl as _, ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_PARAM as a, resolveAuthViewFromSegment as a0, resolveEmailVerificationCallbackUrl as a1, shouldRedirectAuthenticatedAuthMode as a2, shouldRedirectAuthenticatedAuthView as a3, type ResolvedRequestHeaderOverrides as a4, applyAthenaApiKeyHeaders as a5, applyAthenaAuthContextHeaders as a6, applyAthenaPgUriHeaders as a7, buildServiceRequestHeaders as a8, hasHeaderIgnoreCase as a9, resolveHeaderValue as aa, resolveRequestHeaderOverrides as ab, DEFAULT_AUTH_COOKIE_PREFIXES as ac, asBoolean as ad, asBooleanOrNull as ae, asIdentifier as af, asNumber as ag, asRecord as ah, asStringArray as ai, firstString as aj, ATHENA_AUTH_DISABLE_COOKIE_CACHE_QUERY_VALUE as b, ATHENA_AUTH_GET_SESSION_ABSOLUTE_PATH as c, ATHENA_AUTH_GET_SESSION_PATH as d, ATHENA_AUTH_PATH as e, ATHENA_AUTH_UPSTREAM_ENV_KEYS as f, ATHENA_AUTH_UPSTREAM_URL_ENV_NAMES as g, ATHENA_AUTH_VERIFY_EMAIL_PATH as h, ATHENA_SESSION_DATA_HEADER as i, AUTHENTICATED_REDIRECT_MODE_SET as j, AUTHENTICATED_REDIRECT_VIEW_SET as k, AUTH_DEFAULT_VIEW as l, AUTH_MODE_REDIRECTS as m, AUTH_MODE_SET as n, AUTH_ROUTES as o, AUTH_SESSION_PATH as p, AUTH_TWO_FACTOR_SEGMENT as q, AUTH_VIEW_BY_SEGMENT as r, type AthenaAuthClientBaseUrlOptions as s, type AthenaAuthUpstreamEnv as t, type AthenaAuthUpstreamEnvKey as u, type AthenaRequestHeaderOverrideFields as v, type AthenaRequestHeaderProfile as w, type AuthMode as x, type AuthModeRedirects as y, type AuthRoutes as z };
309
+ export { ATHENA_AUTH_COOKIE_PREFIXES as A, type BuildAthenaRequestHeadersInput as B, type ClearAuthCookiesOptions as C, shouldRedirectAuthenticatedAuthView as D, applyAthenaApiKeyHeaders as E, applyAthenaAuthContextHeaders as F, applyAthenaPgUriHeaders as G, buildServiceRequestHeaders as H, hasHeaderIgnoreCase as I, resolveHeaderValue as J, resolveRequestHeaderOverrides as K, DEFAULT_AUTH_COOKIE_PREFIXES as L, type SignOutAndClearAthenaSessionResult as M, asBoolean as N, asBooleanOrNull as O, asIdentifier as P, asNumber as Q, type ResolvedRequestHeaderOverrides as R, type SignOutAndClearAthenaSessionOptions as S, asRecord as T, asStringArray as U, firstString as V, signOutAndClearAthenaSession as W, AUTHENTICATED_REDIRECT_MODE_SET as a, AUTHENTICATED_REDIRECT_VIEW_SET as b, AUTH_DEFAULT_VIEW as c, AUTH_MODE_REDIRECTS as d, AUTH_MODE_SET as e, AUTH_ROUTES as f, AUTH_TWO_FACTOR_SEGMENT as g, AUTH_VIEW_BY_SEGMENT as h, type AthenaRequestHeaderOverrideFields as i, type AthenaRequestHeaderProfile as j, type AuthMode as k, type AuthModeRedirects as l, type AuthRoutes as m, type AuthView as n, asNonEmptyString as o, asString as p, buildAthenaGatewayHeaders as q, buildAthenaRequestHeaders as r, clearAuthCookies as s, createAuthModeRedirects as t, createAuthRoutes as u, isAuthMode as v, readTrimmedString as w, resolveAuthModeRedirect as x, resolveAuthViewFromSegment as y, shouldRedirectAuthenticatedAuthMode as z };
package/dist/billing.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // package.json
4
4
  var package_default = {
5
- version: "3.1.0"
5
+ version: "3.3.0"
6
6
  };
7
7
 
8
8
  // src/sdk-version.ts