@lunora/auth 1.0.0-alpha.192 → 1.0.0-alpha.194

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.
@@ -1,4 +1,4 @@
1
1
  import 'better-auth/adapters';
2
- export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-BW_ovHul.mjs";
2
+ export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-CaPwF2v3.mjs";
3
3
  import "./sql-store.mjs";
4
4
  import "./store.mjs";
package/dist/adapter.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import 'better-auth/adapters';
2
- export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-BWw-tC_U.js";
2
+ export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-CElAPJ1U.js";
3
3
  import "./sql-store.js";
4
4
  import "./store.js";
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DoStorageLike } from "./packem_shared/adapter.d-BW_ovHul.mjs";
2
- export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-BW_ovHul.mjs";
1
+ import { D as DoStorageLike } from "./packem_shared/adapter.d-CaPwF2v3.mjs";
2
+ export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-CaPwF2v3.mjs";
3
3
  import { LunoraError } from '@lunora/errors';
4
4
  import { L as LunoraAuth, a as LunoraAuthOptions } from "./packem_shared/create-auth.d-D1CKOFWc.mjs";
5
5
  export { c as createAuth, r as resolveAuthOptions } from "./packem_shared/create-auth.d-D1CKOFWc.mjs";
@@ -749,7 +749,6 @@ declare const READ_AUDIT_PATH = "/__lunora/auth/audit";
749
749
  declare const INTERNAL_SECRET_HEADER = "x-lunora-auth-do-secret";
750
750
  /**
751
751
  * Options for the auth DO, beyond the better-auth options themselves.
752
- * @experimental
753
752
  */
754
753
  interface AuthDoOptions {
755
754
  /**
@@ -778,7 +777,6 @@ interface AuthDoOptions {
778
777
  * }
779
778
  * }
780
779
  * ```
781
- * @experimental
782
780
  */
783
781
  declare class LunoraAuthDO {
784
782
  #private;
@@ -835,7 +833,6 @@ declare const handleAuthDiscoveryRequest: (auth: LunoraAuth, request: Request) =
835
833
  * here is the name better-auth's introspection expects to find.
836
834
  * @param options The better-auth options the DO will run — the plugin list decides which tables exist.
837
835
  * @returns SQL statements to execute in order.
838
- * @experimental
839
836
  */
840
837
  declare const authDoSchemaStatements: (options: LunoraAuthOptions) => string[];
841
838
  /**
@@ -866,7 +863,6 @@ declare const authDoSchemaStatements: (options: LunoraAuthOptions) => string[];
866
863
  * @param options The better-auth options the DO runs, already resolved.
867
864
  * @param existingColumns Physical column names currently present on a table; empty/absent for a table that does not exist yet (it will be created instead).
868
865
  * @returns SQL statements to execute in order; empty when the live schema is current.
869
- * @experimental
870
866
  */
871
867
  declare const authDoColumnAdditions: (options: LunoraAuthOptions, existingColumns: (table: string) => Iterable<string>) => string[];
872
868
  /** What one table looked like after a copy call. */
@@ -1015,7 +1011,6 @@ interface DoAuthWiring {
1015
1011
  * The exception is a `jurisdiction` the namespace cannot express, which throws here.
1016
1012
  * @param options The resolved namespace, secret, and names.
1017
1013
  * @returns The `authHandler` / `resolveIdentity` pair.
1018
- * @experimental
1019
1014
  */
1020
1015
  declare const createDoAuthWiring: (options: DoAuthWiringOptions) => DoAuthWiring;
1021
1016
  /** better-auth's `databaseHooks` shape, derived so a rename upstream fails to compile rather than silently mis-hooking. */
@@ -1082,7 +1077,6 @@ declare const handleAuthRequest: (auth: LunoraAuth, request: Request, basePath?:
1082
1077
  * @param accountTable Physical name of the account table (`account` unless renamed via `account.modelName`).
1083
1078
  * @param indexNames Indexes to drop first, from {@link indexesReferencingIssuer}.
1084
1079
  * @returns The `DROP INDEX` statements followed by the `DROP COLUMN`.
1085
- * @experimental
1086
1080
  */
1087
1081
  declare const legacyIssuerCleanupStatements: (accountTable?: string, indexNames?: Iterable<string>) => string[];
1088
1082
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DoStorageLike } from "./packem_shared/adapter.d-BWw-tC_U.js";
2
- export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-BWw-tC_U.js";
1
+ import { D as DoStorageLike } from "./packem_shared/adapter.d-CElAPJ1U.js";
2
+ export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-CElAPJ1U.js";
3
3
  import { LunoraError } from '@lunora/errors';
4
4
  import { L as LunoraAuth, a as LunoraAuthOptions } from "./packem_shared/create-auth.d-D1CKOFWc.js";
5
5
  export { c as createAuth, r as resolveAuthOptions } from "./packem_shared/create-auth.d-D1CKOFWc.js";
@@ -749,7 +749,6 @@ declare const READ_AUDIT_PATH = "/__lunora/auth/audit";
749
749
  declare const INTERNAL_SECRET_HEADER = "x-lunora-auth-do-secret";
750
750
  /**
751
751
  * Options for the auth DO, beyond the better-auth options themselves.
752
- * @experimental
753
752
  */
754
753
  interface AuthDoOptions {
755
754
  /**
@@ -778,7 +777,6 @@ interface AuthDoOptions {
778
777
  * }
779
778
  * }
780
779
  * ```
781
- * @experimental
782
780
  */
783
781
  declare class LunoraAuthDO {
784
782
  #private;
@@ -835,7 +833,6 @@ declare const handleAuthDiscoveryRequest: (auth: LunoraAuth, request: Request) =
835
833
  * here is the name better-auth's introspection expects to find.
836
834
  * @param options The better-auth options the DO will run — the plugin list decides which tables exist.
837
835
  * @returns SQL statements to execute in order.
838
- * @experimental
839
836
  */
840
837
  declare const authDoSchemaStatements: (options: LunoraAuthOptions) => string[];
841
838
  /**
@@ -866,7 +863,6 @@ declare const authDoSchemaStatements: (options: LunoraAuthOptions) => string[];
866
863
  * @param options The better-auth options the DO runs, already resolved.
867
864
  * @param existingColumns Physical column names currently present on a table; empty/absent for a table that does not exist yet (it will be created instead).
868
865
  * @returns SQL statements to execute in order; empty when the live schema is current.
869
- * @experimental
870
866
  */
871
867
  declare const authDoColumnAdditions: (options: LunoraAuthOptions, existingColumns: (table: string) => Iterable<string>) => string[];
872
868
  /** What one table looked like after a copy call. */
@@ -1015,7 +1011,6 @@ interface DoAuthWiring {
1015
1011
  * The exception is a `jurisdiction` the namespace cannot express, which throws here.
1016
1012
  * @param options The resolved namespace, secret, and names.
1017
1013
  * @returns The `authHandler` / `resolveIdentity` pair.
1018
- * @experimental
1019
1014
  */
1020
1015
  declare const createDoAuthWiring: (options: DoAuthWiringOptions) => DoAuthWiring;
1021
1016
  /** better-auth's `databaseHooks` shape, derived so a rename upstream fails to compile rather than silently mis-hooking. */
@@ -1082,7 +1077,6 @@ declare const handleAuthRequest: (auth: LunoraAuth, request: Request, basePath?:
1082
1077
  * @param accountTable Physical name of the account table (`account` unless renamed via `account.modelName`).
1083
1078
  * @param indexNames Indexes to drop first, from {@link indexesReferencingIssuer}.
1084
1079
  * @returns The `DROP INDEX` statements followed by the `DROP COLUMN`.
1085
- * @experimental
1086
1080
  */
1087
1081
  declare const legacyIssuerCleanupStatements: (accountTable?: string, indexNames?: Iterable<string>) => string[];
1088
1082
  /**
@@ -83,7 +83,6 @@ declare const lunoraD1Adapter: (d1: Parameters<typeof d1Executor>[0]) => ReturnT
83
83
  * before reaching for it: the auth tables then live inside a single Durable Object.
84
84
  *
85
85
  * Schema-checked like {@link lunoraD1Adapter}, against the object's own SQLite.
86
- * @experimental
87
86
  */
88
87
  declare const lunoraDoAdapter: (storage: DoStorageLike) => ReturnType<typeof lunoraAuthAdapter>;
89
88
  export { DoStorageLike as D, lunoraD1Adapter as a, lunoraDoAdapter as b, lunoraAuthAdapter as l };
@@ -83,7 +83,6 @@ declare const lunoraD1Adapter: (d1: Parameters<typeof d1Executor>[0]) => ReturnT
83
83
  * before reaching for it: the auth tables then live inside a single Durable Object.
84
84
  *
85
85
  * Schema-checked like {@link lunoraD1Adapter}, against the object's own SQLite.
86
- * @experimental
87
86
  */
88
87
  declare const lunoraDoAdapter: (storage: DoStorageLike) => ReturnType<typeof lunoraAuthAdapter>;
89
88
  export { DoStorageLike as D, lunoraD1Adapter as a, lunoraDoAdapter as b, lunoraAuthAdapter as l };
@@ -3,13 +3,11 @@ export type {
3
3
  /**
4
4
  * Adds `authClient.signIn.sso({ email | domain | providerId })`. Registering the
5
5
  * server `sso` plugin without this leaves those actions unavailable and untyped.
6
- * @experimental
7
6
  */
8
7
  ssoClient } from '@better-auth/sso/client';
9
8
  /**
10
9
  * The plugin instance `ssoClient()` returns. Exported so an app can type the array it
11
10
  * passes to `createAuthClient` when it assembles plugins conditionally.
12
- * @experimental
13
11
  */
14
12
  type SSOClientPlugin = ReturnType<typeof ssoClient>;
15
13
  export { SSOClientPlugin };
@@ -3,13 +3,11 @@ export type {
3
3
  /**
4
4
  * Adds `authClient.signIn.sso({ email | domain | providerId })`. Registering the
5
5
  * server `sso` plugin without this leaves those actions unavailable and untyped.
6
- * @experimental
7
6
  */
8
7
  ssoClient } from '@better-auth/sso/client';
9
8
  /**
10
9
  * The plugin instance `ssoClient()` returns. Exported so an app can type the array it
11
10
  * passes to `createAuthClient` when it assembles plugins conditionally.
12
- * @experimental
13
11
  */
14
12
  type SSOClientPlugin = ReturnType<typeof ssoClient>;
15
13
  export { SSOClientPlugin };
@@ -1657,7 +1657,6 @@ declare function sso$1<O extends SSOOptions>(options?: O | undefined): {
1657
1657
  *
1658
1658
  * SAML loads on workerd but its assertion-verify path (pure-JS RSA) has not been
1659
1659
  * measured against a Worker CPU budget — treat OIDC/OAuth2 as the supported mode.
1660
- * @experimental
1661
1660
  */
1662
1661
  declare const sso: typeof sso$1;
1663
1662
  export {
@@ -1665,6 +1664,5 @@ export {
1665
1664
  * The OIDC provider configuration accepted by `registerSSOProvider` — exported so a
1666
1665
  * caller can type the config it builds (from env, a tenant record, …) before handing it
1667
1666
  * over.
1668
- * @experimental
1669
1667
  */
1670
1668
  type OIDCConfig, sso };
@@ -1657,7 +1657,6 @@ declare function sso$1<O extends SSOOptions>(options?: O | undefined): {
1657
1657
  *
1658
1658
  * SAML loads on workerd but its assertion-verify path (pure-JS RSA) has not been
1659
1659
  * measured against a Worker CPU budget — treat OIDC/OAuth2 as the supported mode.
1660
- * @experimental
1661
1660
  */
1662
1661
  declare const sso: typeof sso$1;
1663
1662
  export {
@@ -1665,6 +1664,5 @@ export {
1665
1664
  * The OIDC provider configuration accepted by `registerSSOProvider` — exported so a
1666
1665
  * caller can type the config it builds (from env, a tenant record, …) before handing it
1667
1666
  * over.
1668
- * @experimental
1669
1667
  */
1670
1668
  type OIDCConfig, sso };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/auth",
3
- "version": "1.0.0-alpha.192",
3
+ "version": "1.0.0-alpha.194",
4
4
  "description": "Auth for Lunora — a thin better-auth wrapper: email/password, OAuth, plugins, D1-backed",
5
5
  "keywords": [
6
6
  "auth",
@@ -106,16 +106,16 @@
106
106
  "access": "public"
107
107
  },
108
108
  "dependencies": {
109
- "@better-auth/api-key": "1.7.3",
110
- "@better-auth/cimd": "1.7.3",
111
- "@better-auth/mcp": "1.7.3",
112
- "@better-auth/oauth-provider": "1.7.3",
113
- "@better-auth/passkey": "1.7.3",
114
- "@better-auth/scim": "1.7.3",
109
+ "@better-auth/api-key": "1.7.7",
110
+ "@better-auth/cimd": "1.7.7",
111
+ "@better-auth/mcp": "1.7.7",
112
+ "@better-auth/oauth-provider": "1.7.7",
113
+ "@better-auth/passkey": "1.7.7",
114
+ "@better-auth/scim": "1.7.7",
115
115
  "@lunora/errors": "1.0.0-alpha.50",
116
116
  "@lunora/values": "1.0.0-alpha.60",
117
- "@visulima/disposable-email-domains": "1.1.10",
118
- "@visulima/email-verifier": "1.0.21",
117
+ "@visulima/disposable-email-domains": "1.1.14",
118
+ "@visulima/email-verifier": "1.0.30",
119
119
  "@visulima/free-email-domains": "1.0.1",
120
120
  "@visulima/redact": "5.0.0"
121
121
  },