@lunora/auth 1.0.0-alpha.193 → 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.
- package/dist/adapter.d.mts +1 -1
- package/dist/adapter.d.ts +1 -1
- package/dist/index.d.mts +2 -8
- package/dist/index.d.ts +2 -8
- package/dist/packem_shared/{adapter.d-BWw-tC_U.d.ts → adapter.d-CElAPJ1U.d.ts} +0 -1
- package/dist/packem_shared/{adapter.d-BW_ovHul.d.mts → adapter.d-CaPwF2v3.d.mts} +0 -1
- package/dist/plugins-enterprise-client.d.mts +0 -2
- package/dist/plugins-enterprise-client.d.ts +0 -2
- package/dist/plugins-enterprise.d.mts +0 -2
- package/dist/plugins-enterprise.d.ts +0 -2
- package/package.json +1 -1
package/dist/adapter.d.mts
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-
|
|
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-
|
|
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-
|
|
2
|
-
export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-
|
|
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-
|
|
2
|
-
export { l as lunoraAuthAdapter, a as lunoraD1Adapter, b as lunoraDoAdapter } from "./packem_shared/adapter.d-
|
|
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 };
|