@better-auth-ui/core 1.6.8 → 1.6.9

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 (102) hide show
  1. package/dist/config/additional-fields-config.js +37 -25
  2. package/dist/config/auth-config.d.ts +9 -9
  3. package/dist/config/auth-config.js +33 -31
  4. package/dist/config/avatar-config.js +1 -0
  5. package/dist/config/email-and-password-config.js +1 -0
  6. package/dist/config/index.d.ts +4 -4
  7. package/dist/config/index.js +4 -0
  8. package/dist/index.d.ts +11 -11
  9. package/dist/index.js +11 -11
  10. package/dist/lib/auth-mutation-keys.d.ts +9 -20
  11. package/dist/lib/auth-mutation-keys.js +69 -56
  12. package/dist/lib/auth-plugin.d.ts +6 -7
  13. package/dist/lib/auth-plugin.js +1 -0
  14. package/dist/lib/auth-query-keys.d.ts +6 -6
  15. package/dist/lib/auth-query-keys.js +41 -38
  16. package/dist/lib/base-paths.js +4 -7
  17. package/dist/lib/create-auth-plugin.d.ts +5 -21
  18. package/dist/lib/create-auth-plugin.js +22 -8
  19. package/dist/lib/deep-partial.js +1 -0
  20. package/dist/lib/localization.d.ts +2 -2
  21. package/dist/lib/localization.js +149 -80
  22. package/dist/lib/provider-names.d.ts +1 -1
  23. package/dist/lib/provider-names.js +48 -41
  24. package/dist/lib/utils.d.ts +1 -1
  25. package/dist/lib/utils.js +111 -43
  26. package/dist/lib/view-paths.d.ts +0 -4
  27. package/dist/lib/view-paths.js +12 -15
  28. package/dist/plugins/api-key/api-key-localization.js +23 -15
  29. package/dist/plugins/api-key/api-key-mutation-keys.d.ts +4 -2
  30. package/dist/plugins/api-key/api-key-mutation-keys.js +10 -14
  31. package/dist/plugins/api-key/api-key-plugin.d.ts +24 -3
  32. package/dist/plugins/api-key/api-key-plugin.js +6 -9
  33. package/dist/plugins/api-key/api-key-query-keys.d.ts +6 -0
  34. package/dist/plugins/api-key/api-key-query-keys.js +7 -0
  35. package/dist/plugins/delete-user/delete-user-localization.d.ts +3 -3
  36. package/dist/plugins/delete-user/delete-user-localization.js +9 -8
  37. package/dist/plugins/delete-user/delete-user-mutation-keys.d.ts +7 -0
  38. package/dist/plugins/delete-user/delete-user-mutation-keys.js +7 -0
  39. package/dist/plugins/delete-user/delete-user-plugin.d.ts +5 -5
  40. package/dist/plugins/delete-user/delete-user-plugin.js +5 -11
  41. package/dist/plugins/magic-link/magic-link-localization.js +7 -7
  42. package/dist/plugins/magic-link/magic-link-mutation-keys.js +17 -8
  43. package/dist/plugins/magic-link/magic-link-plugin.d.ts +3 -3
  44. package/dist/plugins/magic-link/magic-link-plugin.js +7 -11
  45. package/dist/plugins/multi-session/multi-session-localization.js +9 -8
  46. package/dist/plugins/multi-session/multi-session-mutation-keys.d.ts +11 -0
  47. package/dist/plugins/multi-session/multi-session-mutation-keys.js +11 -0
  48. package/dist/plugins/multi-session/multi-session-plugin.d.ts +3 -3
  49. package/dist/plugins/multi-session/multi-session-plugin.js +5 -9
  50. package/dist/plugins/multi-session/multi-session-query-keys.d.ts +6 -0
  51. package/dist/plugins/multi-session/multi-session-query-keys.js +7 -0
  52. package/dist/plugins/organization/organization-localization.d.ts +115 -0
  53. package/dist/plugins/organization/organization-localization.js +114 -0
  54. package/dist/plugins/organization/organization-mutation-keys.d.ts +40 -0
  55. package/dist/plugins/organization/organization-mutation-keys.js +40 -0
  56. package/dist/plugins/organization/organization-plugin.d.ts +152 -0
  57. package/dist/plugins/organization/organization-plugin.js +35 -0
  58. package/dist/plugins/organization/organization-query-keys.d.ts +40 -0
  59. package/dist/plugins/organization/organization-query-keys.js +54 -0
  60. package/dist/plugins/organization/organization-view-paths.d.ts +19 -0
  61. package/dist/plugins/organization/organization-view-paths.js +1 -0
  62. package/dist/plugins/passkey/passkey-localization.js +19 -13
  63. package/dist/plugins/passkey/passkey-mutation-keys.js +14 -19
  64. package/dist/plugins/passkey/passkey-plugin.d.ts +3 -3
  65. package/dist/plugins/passkey/passkey-plugin.js +5 -9
  66. package/dist/plugins/passkey/passkey-query-keys.d.ts +6 -0
  67. package/dist/plugins/passkey/passkey-query-keys.js +7 -0
  68. package/dist/plugins/theme/theme-localization.js +11 -9
  69. package/dist/plugins/theme/theme-plugin.d.ts +3 -3
  70. package/dist/plugins/theme/theme-plugin.js +7 -17
  71. package/dist/plugins/username/username-localization.js +15 -11
  72. package/dist/plugins/username/username-mutation-keys.d.ts +17 -0
  73. package/dist/plugins/username/username-mutation-keys.js +17 -0
  74. package/dist/plugins/username/username-plugin.d.ts +4 -4
  75. package/dist/plugins/username/username-plugin.js +35 -32
  76. package/dist/plugins.d.ts +28 -0
  77. package/dist/plugins.js +28 -18
  78. package/package.json +8 -7
  79. package/src/config/auth-config.ts +1 -1
  80. package/src/lib/auth-mutation-keys.ts +11 -24
  81. package/src/lib/auth-plugin.ts +4 -5
  82. package/src/lib/auth-query-keys.ts +6 -23
  83. package/src/lib/create-auth-plugin.ts +9 -26
  84. package/src/lib/localization.ts +4 -4
  85. package/src/lib/view-paths.ts +0 -4
  86. package/src/plugins/api-key/api-key-mutation-keys.ts +4 -2
  87. package/src/plugins/api-key/api-key-plugin.ts +22 -1
  88. package/src/plugins/api-key/api-key-query-keys.ts +13 -0
  89. package/src/plugins/delete-user/delete-user-localization.ts +3 -3
  90. package/src/plugins/delete-user/delete-user-mutation-keys.ts +7 -0
  91. package/src/plugins/multi-session/multi-session-mutation-keys.ts +11 -0
  92. package/src/plugins/multi-session/multi-session-query-keys.ts +13 -0
  93. package/src/plugins/organization/organization-localization.ts +123 -0
  94. package/src/plugins/organization/organization-mutation-keys.ts +52 -0
  95. package/src/plugins/organization/organization-plugin.ts +112 -0
  96. package/src/plugins/organization/organization-query-keys.ts +86 -0
  97. package/src/plugins/organization/organization-view-paths.ts +20 -0
  98. package/src/plugins/passkey/passkey-query-keys.ts +13 -0
  99. package/src/plugins/username/username-mutation-keys.ts +17 -0
  100. package/src/plugins.ts +28 -0
  101. package/dist/plugins/index.d.ts +0 -17
  102. package/src/plugins/index.ts +0 -17
@@ -2,8 +2,10 @@
2
2
  * Mutation keys contributed by the API key plugin.
3
3
  */
4
4
  export declare const apiKeyMutationKeys: {
5
+ /** Root key for every api key mutation. */
6
+ readonly all: readonly ["auth", "apiKey"];
5
7
  /** Key for `apiKey.create`. */
6
- readonly createApiKey: readonly ["auth", "apiKey", "create"];
8
+ readonly create: readonly ["auth", "apiKey", "create"];
7
9
  /** Key for `apiKey.delete`. */
8
- readonly deleteApiKey: readonly ["auth", "apiKey", "delete"];
10
+ readonly delete: readonly ["auth", "apiKey", "delete"];
9
11
  };
@@ -1,15 +1,11 @@
1
- //#region src/plugins/api-key/api-key-mutation-keys.ts
2
- var e = {
3
- createApiKey: [
4
- "auth",
5
- "apiKey",
6
- "create"
7
- ],
8
- deleteApiKey: [
9
- "auth",
10
- "apiKey",
11
- "delete"
12
- ]
1
+ /**
2
+ * Mutation keys contributed by the API key plugin.
3
+ */
4
+ export const apiKeyMutationKeys = {
5
+ /** Root key for every api key mutation. */
6
+ all: ["auth", "apiKey"],
7
+ /** Key for `apiKey.create`. */
8
+ create: ["auth", "apiKey", "create"],
9
+ /** Key for `apiKey.delete`. */
10
+ delete: ["auth", "apiKey", "delete"]
13
11
  };
14
- //#endregion
15
- export { e as apiKeyMutationKeys };
@@ -1,12 +1,32 @@
1
- import { ApiKeyLocalization } from './api-key-localization';
1
+ import { type ApiKeyLocalization } from "./api-key-localization";
2
2
  export type ApiKeyPluginOptions = {
3
3
  /**
4
4
  * Override the plugin's default localization strings.
5
5
  * @remarks `ApiKeyLocalization`
6
6
  */
7
7
  localization?: Partial<ApiKeyLocalization>;
8
+ /**
9
+ * Enable organization-owned API keys.
10
+ *
11
+ * When `true`, the plugin contributes an organization-scoped API keys card
12
+ * to `<OrganizationSettings />`, and list/create/delete operations made on
13
+ * behalf of an organization send `configId: "organization"`.
14
+ *
15
+ * Requires a matching server-side `apiKey` config entry with
16
+ * `configId: "organization"` and `references: "organization"`:
17
+ *
18
+ * ```ts
19
+ * apiKey([
20
+ * { configId: "default", references: "user" },
21
+ * { configId: "organization", references: "organization" }
22
+ * ])
23
+ * ```
24
+ *
25
+ * @default false
26
+ */
27
+ organization?: boolean;
8
28
  };
9
- export declare const apiKeyPlugin: ((options?: ApiKeyPluginOptions | undefined) => Omit<{
29
+ export declare const apiKeyPlugin: ((options?: ApiKeyPluginOptions | undefined) => {
10
30
  localization: {
11
31
  apiKey: string;
12
32
  apiKeys: string;
@@ -20,7 +40,8 @@ export declare const apiKeyPlugin: ((options?: ApiKeyPluginOptions | undefined)
20
40
  deleteApiKeyWarning: string;
21
41
  dismissNewKey: string;
22
42
  };
23
- }, "id"> & {
43
+ organization: boolean;
44
+ } & {
24
45
  id: "apiKey";
25
46
  }) & {
26
47
  id: "apiKey";
@@ -1,9 +1,6 @@
1
- import { createAuthPlugin as e } from "../../lib/create-auth-plugin.js";
2
- import { apiKeyLocalization as t } from "./api-key-localization.js";
3
- //#region src/plugins/api-key/api-key-plugin.ts
4
- var n = e("apiKey", (e = {}) => ({ localization: {
5
- ...t,
6
- ...e.localization
7
- } }));
8
- //#endregion
9
- export { n as apiKeyPlugin };
1
+ import { createAuthPlugin } from "../../lib/create-auth-plugin";
2
+ import { apiKeyLocalization } from "./api-key-localization";
3
+ export const apiKeyPlugin = createAuthPlugin("apiKey", (options = {}) => ({
4
+ localization: { ...apiKeyLocalization, ...options.localization },
5
+ organization: options.organization ?? false
6
+ }));
@@ -0,0 +1,6 @@
1
+ /** Query key factory for API key queries, scoped per user. */
2
+ export declare const apiKeyQueryKeys: {
3
+ readonly all: (userId: string | undefined) => readonly ["auth", "user", string | undefined, "apiKey"];
4
+ readonly lists: (userId: string | undefined) => readonly ["auth", "user", string | undefined, "apiKey", "list"];
5
+ readonly list: <TQuery = undefined>(userId: string | undefined, query?: TQuery) => readonly ["auth", "user", string | undefined, "apiKey", "list", NonNullable<TQuery> | null];
6
+ };
@@ -0,0 +1,7 @@
1
+ import { authQueryKeys } from "../../lib/auth-query-keys";
2
+ /** Query key factory for API key queries, scoped per user. */
3
+ export const apiKeyQueryKeys = {
4
+ all: (userId) => [...authQueryKeys.user(userId), "apiKey"],
5
+ lists: (userId) => [...apiKeyQueryKeys.all(userId), "list"],
6
+ list: (userId, query) => [...apiKeyQueryKeys.lists(userId), query ?? null]
7
+ };
@@ -1,8 +1,8 @@
1
1
  export declare const deleteUserLocalization: {
2
- /** @remarks `"Delete user"` */
3
- deleteUser: string;
2
+ /** @remarks `"Delete account"` */
3
+ deleteAccount: string;
4
4
  /** @remarks `"Permanently remove your account and all associated data. This cannot be undone."` */
5
- deleteUserDescription: string;
5
+ deleteAccountDescription: string;
6
6
  /** @remarks `"Check your email to confirm account deletion."` */
7
7
  deleteUserVerificationSent: string;
8
8
  /** @remarks `"Your account has been deleted."` */
@@ -1,9 +1,10 @@
1
- //#region src/plugins/delete-user/delete-user-localization.ts
2
- var e = {
3
- deleteUser: "Delete user",
4
- deleteUserDescription: "Permanently remove your account and all associated data. This cannot be undone.",
5
- deleteUserVerificationSent: "Check your email to confirm account deletion.",
6
- deleteUserSuccess: "Your account has been deleted."
1
+ export const deleteUserLocalization = {
2
+ /** @remarks `"Delete account"` */
3
+ deleteAccount: "Delete account",
4
+ /** @remarks `"Permanently remove your account and all associated data. This cannot be undone."` */
5
+ deleteAccountDescription: "Permanently remove your account and all associated data. This cannot be undone.",
6
+ /** @remarks `"Check your email to confirm account deletion."` */
7
+ deleteUserVerificationSent: "Check your email to confirm account deletion.",
8
+ /** @remarks `"Your account has been deleted."` */
9
+ deleteUserSuccess: "Your account has been deleted."
7
10
  };
8
- //#endregion
9
- export { e as deleteUserLocalization };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Mutation keys contributed by the delete-user plugin.
3
+ */
4
+ export declare const deleteUserMutationKeys: {
5
+ /** Key for `deleteUser`. */
6
+ readonly deleteUser: readonly ["auth", "deleteUser"];
7
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Mutation keys contributed by the delete-user plugin.
3
+ */
4
+ export const deleteUserMutationKeys = {
5
+ /** Key for `deleteUser`. */
6
+ deleteUser: ["auth", "deleteUser"]
7
+ };
@@ -1,4 +1,4 @@
1
- import { DeleteUserLocalization } from './delete-user-localization';
1
+ import { type DeleteUserLocalization } from "./delete-user-localization";
2
2
  export type DeleteUserPluginOptions = {
3
3
  /**
4
4
  * When `true`, matches server `sendDeleteAccountVerification`: deletion starts by sending a
@@ -11,15 +11,15 @@ export type DeleteUserPluginOptions = {
11
11
  */
12
12
  localization?: Partial<DeleteUserLocalization>;
13
13
  };
14
- export declare const deleteUserPlugin: ((options?: DeleteUserPluginOptions | undefined) => Omit<{
14
+ export declare const deleteUserPlugin: ((options?: DeleteUserPluginOptions | undefined) => {
15
15
  localization: {
16
- deleteUser: string;
17
- deleteUserDescription: string;
16
+ deleteAccount: string;
17
+ deleteAccountDescription: string;
18
18
  deleteUserVerificationSent: string;
19
19
  deleteUserSuccess: string;
20
20
  };
21
21
  sendDeleteAccountVerification: boolean;
22
- }, "id"> & {
22
+ } & {
23
23
  id: "deleteUser";
24
24
  }) & {
25
25
  id: "deleteUser";
@@ -1,12 +1,6 @@
1
- import { createAuthPlugin as e } from "../../lib/create-auth-plugin.js";
2
- import { deleteUserLocalization as t } from "./delete-user-localization.js";
3
- //#region src/plugins/delete-user/delete-user-plugin.ts
4
- var n = e("deleteUser", (e = {}) => ({
5
- localization: {
6
- ...t,
7
- ...e.localization
8
- },
9
- sendDeleteAccountVerification: e.sendDeleteAccountVerification ?? !1
1
+ import { createAuthPlugin } from "../../lib/create-auth-plugin";
2
+ import { deleteUserLocalization } from "./delete-user-localization";
3
+ export const deleteUserPlugin = createAuthPlugin("deleteUser", (options = {}) => ({
4
+ localization: { ...deleteUserLocalization, ...options.localization },
5
+ sendDeleteAccountVerification: options.sendDeleteAccountVerification ?? false
10
6
  }));
11
- //#endregion
12
- export { n as deleteUserPlugin };
@@ -1,8 +1,8 @@
1
- //#region src/plugins/magic-link/magic-link-localization.ts
2
- var e = {
3
- magicLink: "Magic Link",
4
- sendMagicLink: "Send Magic Link",
5
- magicLinkSent: "Check your email for the magic link"
1
+ export const magicLinkLocalization = {
2
+ /** @remarks `"Magic Link"` */
3
+ magicLink: "Magic Link",
4
+ /** @remarks `"Send Magic Link"` */
5
+ sendMagicLink: "Send Magic Link",
6
+ /** @remarks `"Check your email for the magic link"` */
7
+ magicLinkSent: "Check your email for the magic link"
6
8
  };
7
- //#endregion
8
- export { e as magicLinkLocalization };
@@ -1,8 +1,17 @@
1
- //#region src/plugins/magic-link/magic-link-mutation-keys.ts
2
- var e = { signIn: [
3
- "auth",
4
- "signIn",
5
- "magicLink"
6
- ] };
7
- //#endregion
8
- export { e as magicLinkMutationKeys };
1
+ /**
2
+ * Mutation keys contributed by the magic-link plugin.
3
+ *
4
+ * Kept under the shared `["auth", "signIn", ...]` namespace as the built-in
5
+ * sign-in mutation keys so consumers can match the whole sign-in surface
6
+ * with `useIsMutating({ mutationKey: ["auth", "signIn"] })` regardless of
7
+ * which strategy is in flight.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * useIsMutating({ mutationKey: magicLinkMutationKeys.signIn })
12
+ * ```
13
+ */
14
+ export const magicLinkMutationKeys = {
15
+ /** Key for `signIn.magicLink`. */
16
+ signIn: ["auth", "signIn", "magicLink"]
17
+ };
@@ -1,4 +1,4 @@
1
- import { MagicLinkLocalization } from './magic-link-localization';
1
+ import { type MagicLinkLocalization } from "./magic-link-localization";
2
2
  declare module "../../lib/view-paths" {
3
3
  /** Widens `AuthViewPaths` by adding the `"magicLink"` path when this plugin is imported. */
4
4
  interface AuthViewPaths {
@@ -19,7 +19,7 @@ export type MagicLinkPluginOptions = {
19
19
  */
20
20
  path?: string;
21
21
  };
22
- export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undefined) => Omit<{
22
+ export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undefined) => {
23
23
  localization: {
24
24
  magicLink: string;
25
25
  sendMagicLink: string;
@@ -30,7 +30,7 @@ export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undef
30
30
  magicLink: string;
31
31
  };
32
32
  };
33
- }, "id"> & {
33
+ } & {
34
34
  id: "magicLink";
35
35
  }) & {
36
36
  id: "magicLink";
@@ -1,12 +1,8 @@
1
- import { createAuthPlugin as e } from "../../lib/create-auth-plugin.js";
2
- import { magicLinkLocalization as t } from "./magic-link-localization.js";
3
- //#region src/plugins/magic-link/magic-link-plugin.ts
4
- var n = e("magicLink", (e = {}) => ({
5
- localization: {
6
- ...t,
7
- ...e.localization
8
- },
9
- viewPaths: { auth: { magicLink: e.path ?? "magic-link" } }
1
+ import { createAuthPlugin } from "../../lib/create-auth-plugin";
2
+ import { magicLinkLocalization } from "./magic-link-localization";
3
+ export const magicLinkPlugin = createAuthPlugin("magicLink", (options = {}) => ({
4
+ localization: { ...magicLinkLocalization, ...options.localization },
5
+ viewPaths: {
6
+ auth: { magicLink: options.path ?? "magic-link" }
7
+ }
10
8
  }));
11
- //#endregion
12
- export { n as magicLinkPlugin };
@@ -1,9 +1,10 @@
1
- //#region src/plugins/multi-session/multi-session-localization.ts
2
- var e = {
3
- switchAccount: "Switch Account",
4
- addAccount: "Add Account",
5
- manageAccounts: "Manage accounts",
6
- manageAccountsDescription: "Manage your accounts for secure access."
1
+ export const multiSessionLocalization = {
2
+ /** @remarks `"Switch Account"` */
3
+ switchAccount: "Switch Account",
4
+ /** @remarks `"Add Account"` */
5
+ addAccount: "Add Account",
6
+ /** @remarks `"Manage accounts"` */
7
+ manageAccounts: "Manage accounts",
8
+ /** @remarks `"Manage your accounts for secure access."` */
9
+ manageAccountsDescription: "Manage your accounts for secure access."
7
10
  };
8
- //#endregion
9
- export { e as multiSessionLocalization };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Mutation keys contributed by the multi-session plugin.
3
+ */
4
+ export declare const multiSessionMutationKeys: {
5
+ /** Root key for every multi-session mutation. */
6
+ readonly all: readonly ["auth", "multiSession"];
7
+ /** Key for `multiSession.revoke`. */
8
+ readonly revoke: readonly ["auth", "multiSession", "revoke"];
9
+ /** Key for `multiSession.setActive`. */
10
+ readonly setActive: readonly ["auth", "multiSession", "setActive"];
11
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Mutation keys contributed by the multi-session plugin.
3
+ */
4
+ export const multiSessionMutationKeys = {
5
+ /** Root key for every multi-session mutation. */
6
+ all: ["auth", "multiSession"],
7
+ /** Key for `multiSession.revoke`. */
8
+ revoke: ["auth", "multiSession", "revoke"],
9
+ /** Key for `multiSession.setActive`. */
10
+ setActive: ["auth", "multiSession", "setActive"]
11
+ };
@@ -1,4 +1,4 @@
1
- import { MultiSessionLocalization } from './multi-session-localization';
1
+ import { type MultiSessionLocalization } from "./multi-session-localization";
2
2
  export type MultiSessionPluginOptions = {
3
3
  /**
4
4
  * Override the plugin's default localization strings.
@@ -6,14 +6,14 @@ export type MultiSessionPluginOptions = {
6
6
  */
7
7
  localization?: Partial<MultiSessionLocalization>;
8
8
  };
9
- export declare const multiSessionPlugin: ((options?: MultiSessionPluginOptions | undefined) => Omit<{
9
+ export declare const multiSessionPlugin: ((options?: MultiSessionPluginOptions | undefined) => {
10
10
  localization: {
11
11
  switchAccount: string;
12
12
  addAccount: string;
13
13
  manageAccounts: string;
14
14
  manageAccountsDescription: string;
15
15
  };
16
- }, "id"> & {
16
+ } & {
17
17
  id: "multiSession";
18
18
  }) & {
19
19
  id: "multiSession";
@@ -1,9 +1,5 @@
1
- import { createAuthPlugin as e } from "../../lib/create-auth-plugin.js";
2
- import { multiSessionLocalization as t } from "./multi-session-localization.js";
3
- //#region src/plugins/multi-session/multi-session-plugin.ts
4
- var n = e("multiSession", (e = {}) => ({ localization: {
5
- ...t,
6
- ...e.localization
7
- } }));
8
- //#endregion
9
- export { n as multiSessionPlugin };
1
+ import { createAuthPlugin } from "../../lib/create-auth-plugin";
2
+ import { multiSessionLocalization } from "./multi-session-localization";
3
+ export const multiSessionPlugin = createAuthPlugin("multiSession", (options = {}) => ({
4
+ localization: { ...multiSessionLocalization, ...options.localization }
5
+ }));
@@ -0,0 +1,6 @@
1
+ /** Query key factory for multi-session queries, scoped per user. */
2
+ export declare const multiSessionQueryKeys: {
3
+ readonly all: (userId: string | undefined) => readonly ["auth", "user", string | undefined, "multiSession"];
4
+ readonly lists: (userId: string | undefined) => readonly ["auth", "user", string | undefined, "multiSession", "list"];
5
+ readonly list: <TQuery = undefined>(userId: string | undefined, query?: TQuery) => readonly ["auth", "user", string | undefined, "multiSession", "list", NonNullable<TQuery> | null];
6
+ };
@@ -0,0 +1,7 @@
1
+ import { authQueryKeys } from "../../lib/auth-query-keys";
2
+ /** Query key factory for multi-session queries, scoped per user. */
3
+ export const multiSessionQueryKeys = {
4
+ all: (userId) => [...authQueryKeys.user(userId), "multiSession"],
5
+ lists: (userId) => [...multiSessionQueryKeys.all(userId), "list"],
6
+ list: (userId, query) => [...multiSessionQueryKeys.lists(userId), query ?? null]
7
+ };
@@ -0,0 +1,115 @@
1
+ export declare const organizationLocalization: {
2
+ /** @remarks `"Accept"` */
3
+ accept: string;
4
+ /** @remarks `"Accepted"` */
5
+ accepted: string;
6
+ /** @remarks `"Actions"` */
7
+ actions: string;
8
+ /** @remarks `"Admin"` */
9
+ admin: string;
10
+ /** @remarks `"All"` */
11
+ all: string;
12
+ /** @remarks `"Canceled"` */
13
+ canceled: string;
14
+ /** @remarks `"Cancel invitation"` */
15
+ cancelInvitation: string;
16
+ /** @remarks `"Change logo"` */
17
+ changeLogo: string;
18
+ /** @remarks `"Change role"` */
19
+ changeMemberRole: string;
20
+ /** @remarks `"Clear"` */
21
+ clear: string;
22
+ /** @remarks `"Create organization"` */
23
+ createOrganization: string;
24
+ /** @remarks `"Delete logo"` */
25
+ deleteLogo: string;
26
+ /** @remarks `"Delete organization"` */
27
+ deleteOrganization: string;
28
+ /** @remarks `"Permanently delete this organization and all of its data. All members will lose access and this cannot be undone."` */
29
+ deleteOrganizationDescription: string;
30
+ /** @remarks `"Invitations"` */
31
+ invitations: string;
32
+ /** @remarks `"Invited at"` */
33
+ invitedAt: string;
34
+ /** @remarks `"Invite member"` */
35
+ inviteMember: string;
36
+ /** @remarks `"Member invited successfully"` */
37
+ inviteMemberSuccess: string;
38
+ /** @remarks `"We'll email them a link to join this organization. Choose the role they'll have once they accept."` */
39
+ inviteMemberDescription: string;
40
+ /** @remarks `"You left the organization"` */
41
+ leftOrganization: string;
42
+ /** @remarks `"Leave organization"` */
43
+ leaveOrganization: string;
44
+ /** @remarks `"Leave this organization and lose access to its data and resources. You'll need a new invitation to rejoin."` */
45
+ leaveOrganizationDescription: string;
46
+ /** @remarks `"Logo"` */
47
+ logo: string;
48
+ /** @remarks `"Logo updated successfully"` */
49
+ logoChangedSuccess: string;
50
+ /** @remarks `"Logo removed successfully"` */
51
+ logoDeletedSuccess: string;
52
+ /** @remarks `"Manage"` */
53
+ manage: string;
54
+ /** @remarks `"Member"` */
55
+ member: string;
56
+ /** @remarks `"Member removed"` */
57
+ memberRemoved: string;
58
+ /** @remarks `"Member role updated"` */
59
+ memberRoleUpdated: string;
60
+ /** @remarks `"Members"` */
61
+ members: string;
62
+ /** @remarks `"People"` */
63
+ people: string;
64
+ /** @remarks `"Name"` */
65
+ name: string;
66
+ /** @remarks `"Enter the organization name"` */
67
+ namePlaceholder: string;
68
+ /** @remarks `"No invitations"` */
69
+ noInvitations: string;
70
+ /** @remarks `"No organizations"` */
71
+ noOrganizations: string;
72
+ /** @remarks `"Organization"` */
73
+ organization: string;
74
+ /** @remarks `"Organization deleted"` */
75
+ organizationDeleted: string;
76
+ /** @remarks `"Invite a teammate to collaborate in this organization."` */
77
+ organizationInvitationsEmptyDescription: string;
78
+ /** @remarks `"Organizations"` */
79
+ organizations: string;
80
+ /** @remarks `"Create an organization to collaborate with others and manage shared access."` */
81
+ organizationsDescription: string;
82
+ /** @remarks `"Organization profile"` */
83
+ organizationProfile: string;
84
+ /** @remarks `"Organization updated successfully"` */
85
+ organizationUpdatedSuccess: string;
86
+ /** @remarks `"Owner"` */
87
+ owner: string;
88
+ /** @remarks `"Pending"` */
89
+ pending: string;
90
+ /** @remarks `"Personal account"` */
91
+ personalAccount: string;
92
+ /** @remarks `"Rejected"` */
93
+ rejected: string;
94
+ /** @remarks `"Reject invitation"` */
95
+ rejectInvitation: string;
96
+ /** @remarks `"Remove member"` */
97
+ removeMember: string;
98
+ /** @remarks `"Are you sure you want to remove this member from the organization? They will lose access immediately."` */
99
+ removeMemberWarning: string;
100
+ /** @remarks `"Role"` */
101
+ role: string;
102
+ /** @remarks `"Search..."` */
103
+ search: string;
104
+ /** @remarks `"Slug"` */
105
+ slug: string;
106
+ /** @remarks `"organization-slug"` */
107
+ slugPlaceholder: string;
108
+ /** @remarks `"Status"` */
109
+ status: string;
110
+ /** @remarks `"Upload logo"` */
111
+ uploadLogo: string;
112
+ /** @remarks `"Invitations to join an organization will show up here."` */
113
+ userInvitationsEmptyDescription: string;
114
+ };
115
+ export type OrganizationLocalization = typeof organizationLocalization;
@@ -0,0 +1,114 @@
1
+ export const organizationLocalization = {
2
+ /** @remarks `"Accept"` */
3
+ accept: "Accept",
4
+ /** @remarks `"Accepted"` */
5
+ accepted: "Accepted",
6
+ /** @remarks `"Actions"` */
7
+ actions: "Actions",
8
+ /** @remarks `"Admin"` */
9
+ admin: "Admin",
10
+ /** @remarks `"All"` */
11
+ all: "All",
12
+ /** @remarks `"Canceled"` */
13
+ canceled: "Canceled",
14
+ /** @remarks `"Cancel invitation"` */
15
+ cancelInvitation: "Cancel invitation",
16
+ /** @remarks `"Change logo"` */
17
+ changeLogo: "Change logo",
18
+ /** @remarks `"Change role"` */
19
+ changeMemberRole: "Change role",
20
+ /** @remarks `"Clear"` */
21
+ clear: "Clear",
22
+ /** @remarks `"Create organization"` */
23
+ createOrganization: "Create organization",
24
+ /** @remarks `"Delete logo"` */
25
+ deleteLogo: "Delete logo",
26
+ /** @remarks `"Delete organization"` */
27
+ deleteOrganization: "Delete organization",
28
+ /** @remarks `"Permanently delete this organization and all of its data. All members will lose access and this cannot be undone."` */
29
+ deleteOrganizationDescription: "Permanently delete this organization and all of its data. All members will lose access and this cannot be undone.",
30
+ /** @remarks `"Invitations"` */
31
+ invitations: "Invitations",
32
+ /** @remarks `"Invited at"` */
33
+ invitedAt: "Invited at",
34
+ /** @remarks `"Invite member"` */
35
+ inviteMember: "Invite member",
36
+ /** @remarks `"Member invited successfully"` */
37
+ inviteMemberSuccess: "Member invited successfully",
38
+ /** @remarks `"We'll email them a link to join this organization. Choose the role they'll have once they accept."` */
39
+ inviteMemberDescription: "We'll email them a link to join this organization. Choose the role they'll have once they accept.",
40
+ /** @remarks `"You left the organization"` */
41
+ leftOrganization: "You left the organization",
42
+ /** @remarks `"Leave organization"` */
43
+ leaveOrganization: "Leave organization",
44
+ /** @remarks `"Leave this organization and lose access to its data and resources. You'll need a new invitation to rejoin."` */
45
+ leaveOrganizationDescription: "Leave this organization and lose access to its data and resources. You'll need a new invitation to rejoin.",
46
+ /** @remarks `"Logo"` */
47
+ logo: "Logo",
48
+ /** @remarks `"Logo updated successfully"` */
49
+ logoChangedSuccess: "Logo updated successfully",
50
+ /** @remarks `"Logo removed successfully"` */
51
+ logoDeletedSuccess: "Logo removed successfully",
52
+ /** @remarks `"Manage"` */
53
+ manage: "Manage",
54
+ /** @remarks `"Member"` */
55
+ member: "Member",
56
+ /** @remarks `"Member removed"` */
57
+ memberRemoved: "Member removed",
58
+ /** @remarks `"Member role updated"` */
59
+ memberRoleUpdated: "Member role updated",
60
+ /** @remarks `"Members"` */
61
+ members: "Members",
62
+ /** @remarks `"People"` */
63
+ people: "People",
64
+ /** @remarks `"Name"` */
65
+ name: "Name",
66
+ /** @remarks `"Enter the organization name"` */
67
+ namePlaceholder: "Enter the organization name",
68
+ /** @remarks `"No invitations"` */
69
+ noInvitations: "No invitations",
70
+ /** @remarks `"No organizations"` */
71
+ noOrganizations: "No organizations",
72
+ /** @remarks `"Organization"` */
73
+ organization: "Organization",
74
+ /** @remarks `"Organization deleted"` */
75
+ organizationDeleted: "Organization deleted",
76
+ /** @remarks `"Invite a teammate to collaborate in this organization."` */
77
+ organizationInvitationsEmptyDescription: "Invite a teammate to collaborate in this organization.",
78
+ /** @remarks `"Organizations"` */
79
+ organizations: "Organizations",
80
+ /** @remarks `"Create an organization to collaborate with others and manage shared access."` */
81
+ organizationsDescription: "Create an organization to collaborate with others and manage shared access.",
82
+ /** @remarks `"Organization profile"` */
83
+ organizationProfile: "Organization profile",
84
+ /** @remarks `"Organization updated successfully"` */
85
+ organizationUpdatedSuccess: "Organization updated successfully",
86
+ /** @remarks `"Owner"` */
87
+ owner: "Owner",
88
+ /** @remarks `"Pending"` */
89
+ pending: "Pending",
90
+ /** @remarks `"Personal account"` */
91
+ personalAccount: "Personal account",
92
+ /** @remarks `"Rejected"` */
93
+ rejected: "Rejected",
94
+ /** @remarks `"Reject invitation"` */
95
+ rejectInvitation: "Reject invitation",
96
+ /** @remarks `"Remove member"` */
97
+ removeMember: "Remove member",
98
+ /** @remarks `"Are you sure you want to remove this member from the organization? They will lose access immediately."` */
99
+ removeMemberWarning: "Are you sure you want to remove this member from the organization? They will lose access immediately.",
100
+ /** @remarks `"Role"` */
101
+ role: "Role",
102
+ /** @remarks `"Search..."` */
103
+ search: "Search...",
104
+ /** @remarks `"Slug"` */
105
+ slug: "Slug",
106
+ /** @remarks `"organization-slug"` */
107
+ slugPlaceholder: "organization-slug",
108
+ /** @remarks `"Status"` */
109
+ status: "Status",
110
+ /** @remarks `"Upload logo"` */
111
+ uploadLogo: "Upload logo",
112
+ /** @remarks `"Invitations to join an organization will show up here."` */
113
+ userInvitationsEmptyDescription: "Invitations to join an organization will show up here."
114
+ };