better-auth-ui 3.2.5
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/LICENSE +21 -0
- package/README.md +53 -0
- package/dist/auth-hooks-IOEvlYYv.d.cts +6966 -0
- package/dist/auth-hooks-IOEvlYYv.d.ts +6966 -0
- package/dist/auth-mutators-DdqOmQ32.d.cts +29 -0
- package/dist/auth-mutators-DdqOmQ32.d.ts +29 -0
- package/dist/auth-ui-provider-BsH3xJDw.d.ts +697 -0
- package/dist/auth-ui-provider-DhZfncd3.d.cts +697 -0
- package/dist/chunk-BDFQSFBU.js +750 -0
- package/dist/chunk-CRAHKL2C.cjs +801 -0
- package/dist/chunk-MJPOA6PK.js +801 -0
- package/dist/chunk-SV64DXGW.cjs +750 -0
- package/dist/index.cjs +12618 -0
- package/dist/index.d.cts +771 -0
- package/dist/index.d.ts +771 -0
- package/dist/index.js +12618 -0
- package/dist/instantdb.cjs +189 -0
- package/dist/instantdb.d.cts +36 -0
- package/dist/instantdb.d.ts +36 -0
- package/dist/instantdb.js +189 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/server.cjs +194 -0
- package/dist/server.d.cts +35 -0
- package/dist/server.d.ts +35 -0
- package/dist/server.js +194 -0
- package/dist/style.css +1 -0
- package/dist/tanstack.cjs +153 -0
- package/dist/tanstack.d.cts +18 -0
- package/dist/tanstack.d.ts +18 -0
- package/dist/tanstack.js +153 -0
- package/dist/triplit.cjs +201 -0
- package/dist/triplit.d.cts +31 -0
- package/dist/triplit.d.ts +31 -0
- package/dist/triplit.js +201 -0
- package/dist/utils-C5R37WDe.d.cts +3 -0
- package/dist/utils-C5R37WDe.d.ts +3 -0
- package/dist/view-paths-CHSJf5dv.d.cts +645 -0
- package/dist/view-paths-CHSJf5dv.d.ts +645 -0
- package/package.json +156 -0
- package/src/components/account/account-view.tsx +220 -0
- package/src/components/auth/auth-callback.tsx +36 -0
- package/src/components/auth/auth-form.tsx +277 -0
- package/src/components/auth/auth-view.tsx +389 -0
- package/src/components/auth/email-otp-button.tsx +53 -0
- package/src/components/auth/forms/email-otp-form.tsx +288 -0
- package/src/components/auth/forms/forgot-password-form.tsx +168 -0
- package/src/components/auth/forms/magic-link-form.tsx +191 -0
- package/src/components/auth/forms/recover-account-form.tsx +138 -0
- package/src/components/auth/forms/reset-password-form.tsx +215 -0
- package/src/components/auth/forms/sign-in-form.tsx +289 -0
- package/src/components/auth/forms/sign-up-form.tsx +788 -0
- package/src/components/auth/forms/two-factor-form.tsx +372 -0
- package/src/components/auth/magic-link-button.tsx +54 -0
- package/src/components/auth/one-tap.tsx +48 -0
- package/src/components/auth/otp-input-group.tsx +65 -0
- package/src/components/auth/passkey-button.tsx +85 -0
- package/src/components/auth/provider-button.tsx +141 -0
- package/src/components/auth/sign-out.tsx +25 -0
- package/src/components/auth-loading.tsx +21 -0
- package/src/components/captcha/captcha.tsx +79 -0
- package/src/components/captcha/recaptcha-badge.tsx +61 -0
- package/src/components/captcha/recaptcha-v2.tsx +58 -0
- package/src/components/captcha/recaptcha-v3.tsx +73 -0
- package/src/components/email/email-template.tsx +216 -0
- package/src/components/form-error.tsx +27 -0
- package/src/components/organization/accept-invitation-card.tsx +362 -0
- package/src/components/organization/create-organization-dialog.tsx +395 -0
- package/src/components/organization/delete-organization-card.tsx +101 -0
- package/src/components/organization/delete-organization-dialog.tsx +209 -0
- package/src/components/organization/invitation-cell.tsx +156 -0
- package/src/components/organization/invite-member-dialog.tsx +258 -0
- package/src/components/organization/leave-organization-dialog.tsx +150 -0
- package/src/components/organization/member-cell.tsx +187 -0
- package/src/components/organization/organization-cell-view.tsx +122 -0
- package/src/components/organization/organization-cell.tsx +154 -0
- package/src/components/organization/organization-invitations-card.tsx +94 -0
- package/src/components/organization/organization-logo-card.tsx +308 -0
- package/src/components/organization/organization-logo.tsx +120 -0
- package/src/components/organization/organization-members-card.tsx +155 -0
- package/src/components/organization/organization-name-card.tsx +204 -0
- package/src/components/organization/organization-settings-cards.tsx +67 -0
- package/src/components/organization/organization-slug-card.tsx +223 -0
- package/src/components/organization/organization-switcher.tsx +512 -0
- package/src/components/organization/organization-view.tsx +228 -0
- package/src/components/organization/organizations-card.tsx +72 -0
- package/src/components/organization/personal-account-view.tsx +115 -0
- package/src/components/organization/remove-member-dialog.tsx +144 -0
- package/src/components/organization/update-member-role-dialog.tsx +213 -0
- package/src/components/organization/user-invitations-card.tsx +238 -0
- package/src/components/password-input.tsx +56 -0
- package/src/components/provider-icons.tsx +385 -0
- package/src/components/redirect-to-sign-in.tsx +16 -0
- package/src/components/redirect-to-sign-up.tsx +16 -0
- package/src/components/settings/account/account-cell.tsx +158 -0
- package/src/components/settings/account/accounts-card.tsx +75 -0
- package/src/components/settings/account/delete-account-card.tsx +65 -0
- package/src/components/settings/account/delete-account-dialog.tsx +231 -0
- package/src/components/settings/account/update-avatar-card.tsx +198 -0
- package/src/components/settings/account/update-field-card.tsx +282 -0
- package/src/components/settings/account/update-name-card.tsx +39 -0
- package/src/components/settings/account/update-username-card.tsx +42 -0
- package/src/components/settings/account-settings-cards.tsx +123 -0
- package/src/components/settings/api-key/api-key-cell.tsx +108 -0
- package/src/components/settings/api-key/api-key-delete-dialog.tsx +162 -0
- package/src/components/settings/api-key/api-key-display-dialog.tsx +110 -0
- package/src/components/settings/api-key/api-keys-card.tsx +98 -0
- package/src/components/settings/api-key/create-api-key-dialog.tsx +376 -0
- package/src/components/settings/passkey/passkey-cell.tsx +113 -0
- package/src/components/settings/passkey/passkeys-card.tsx +111 -0
- package/src/components/settings/providers/provider-cell.tsx +152 -0
- package/src/components/settings/providers/providers-card.tsx +108 -0
- package/src/components/settings/security/change-email-card.tsx +200 -0
- package/src/components/settings/security/change-password-card.tsx +326 -0
- package/src/components/settings/security/session-cell.tsx +120 -0
- package/src/components/settings/security/sessions-card.tsx +58 -0
- package/src/components/settings/security-settings-cards.tsx +111 -0
- package/src/components/settings/shared/session-freshness-dialog.tsx +97 -0
- package/src/components/settings/shared/settings-action-button.tsx +51 -0
- package/src/components/settings/shared/settings-card-footer.tsx +94 -0
- package/src/components/settings/shared/settings-card-header.tsx +67 -0
- package/src/components/settings/shared/settings-card.tsx +106 -0
- package/src/components/settings/skeletons/input-field-skeleton.tsx +18 -0
- package/src/components/settings/skeletons/settings-cell-skeleton.tsx +37 -0
- package/src/components/settings/two-factor/backup-codes-dialog.tsx +113 -0
- package/src/components/settings/two-factor/two-factor-card.tsx +63 -0
- package/src/components/settings/two-factor/two-factor-password-dialog.tsx +226 -0
- package/src/components/signed-in.tsx +20 -0
- package/src/components/signed-out.tsx +20 -0
- package/src/components/ui/alert.tsx +66 -0
- package/src/components/ui/avatar.tsx +53 -0
- package/src/components/ui/button.tsx +59 -0
- package/src/components/ui/card.tsx +92 -0
- package/src/components/ui/checkbox.tsx +32 -0
- package/src/components/ui/dialog.tsx +143 -0
- package/src/components/ui/drawer.tsx +135 -0
- package/src/components/ui/dropdown-menu.tsx +257 -0
- package/src/components/ui/form.tsx +167 -0
- package/src/components/ui/input-otp.tsx +77 -0
- package/src/components/ui/input.tsx +21 -0
- package/src/components/ui/label.tsx +24 -0
- package/src/components/ui/select.tsx +185 -0
- package/src/components/ui/separator.tsx +28 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/tabs.tsx +66 -0
- package/src/components/ui/textarea.tsx +18 -0
- package/src/components/user-avatar.tsx +147 -0
- package/src/components/user-button.tsx +409 -0
- package/src/components/user-view.tsx +138 -0
- package/src/hooks/use-auth-data.ts +184 -0
- package/src/hooks/use-authenticate.ts +62 -0
- package/src/hooks/use-captcha.tsx +138 -0
- package/src/hooks/use-current-organization.ts +59 -0
- package/src/hooks/use-hydrated.ts +13 -0
- package/src/hooks/use-lang.ts +32 -0
- package/src/hooks/use-success-transition.ts +51 -0
- package/src/hooks/use-theme.ts +39 -0
- package/src/index.ts +65 -0
- package/src/instantdb.ts +1 -0
- package/src/lib/auth-data-cache.ts +90 -0
- package/src/lib/auth-ui-provider.tsx +658 -0
- package/src/lib/gravatar-utils.ts +58 -0
- package/src/lib/image-utils.ts +55 -0
- package/src/lib/instantdb/model-names.ts +24 -0
- package/src/lib/instantdb/use-instant-options.ts +98 -0
- package/src/lib/instantdb/use-list-accounts.ts +38 -0
- package/src/lib/instantdb/use-list-sessions.ts +53 -0
- package/src/lib/instantdb/use-session.ts +55 -0
- package/src/lib/organization-refetcher.tsx +56 -0
- package/src/lib/social-providers.ts +144 -0
- package/src/lib/tanstack/auth-ui-provider-tanstack.tsx +49 -0
- package/src/lib/tanstack/use-tanstack-options.ts +112 -0
- package/src/lib/triplit/model-names.ts +24 -0
- package/src/lib/triplit/use-conditional-query.ts +82 -0
- package/src/lib/triplit/use-list-accounts.ts +31 -0
- package/src/lib/triplit/use-list-sessions.ts +33 -0
- package/src/lib/triplit/use-session.ts +42 -0
- package/src/lib/triplit/use-triplit-hooks.ts +68 -0
- package/src/lib/triplit/use-triplit-token.ts +44 -0
- package/src/lib/utils.ts +105 -0
- package/src/lib/view-paths.ts +55 -0
- package/src/localization/admin-error-codes.ts +20 -0
- package/src/localization/anonymous-error-codes.ts +6 -0
- package/src/localization/api-key-error-codes.ts +32 -0
- package/src/localization/auth-localization.ts +740 -0
- package/src/localization/base-error-codes.ts +27 -0
- package/src/localization/captcha-error-codes.ts +17 -0
- package/src/localization/email-otp-error-codes.ts +7 -0
- package/src/localization/generic-oauth-error-codes.ts +3 -0
- package/src/localization/haveibeenpwned-error-codes.ts +4 -0
- package/src/localization/multi-session-error-codes.ts +3 -0
- package/src/localization/organization-error-codes.ts +57 -0
- package/src/localization/passkey-error-codes.ts +10 -0
- package/src/localization/phone-number-error-codes.ts +10 -0
- package/src/localization/stripe-localization.ts +12 -0
- package/src/localization/two-factor-error-codes.ts +12 -0
- package/src/localization/username-error-codes.ts +9 -0
- package/src/server.ts +4 -0
- package/src/style.css +1 -0
- package/src/tanstack.ts +1 -0
- package/src/triplit.ts +1 -0
- package/src/types/account-options.ts +35 -0
- package/src/types/additional-fields.ts +21 -0
- package/src/types/any-auth-client.ts +6 -0
- package/src/types/api-key.ts +9 -0
- package/src/types/auth-client.ts +37 -0
- package/src/types/auth-hooks.ts +61 -0
- package/src/types/auth-mutators.ts +17 -0
- package/src/types/avatar-options.ts +29 -0
- package/src/types/captcha-options.ts +32 -0
- package/src/types/captcha-provider.ts +6 -0
- package/src/types/credentials-options.ts +32 -0
- package/src/types/delete-user-options.ts +7 -0
- package/src/types/fetch-error.ts +6 -0
- package/src/types/generic-oauth-options.ts +16 -0
- package/src/types/gravatar-options.ts +21 -0
- package/src/types/image.ts +7 -0
- package/src/types/invitation.ts +10 -0
- package/src/types/link.ts +7 -0
- package/src/types/organization-options.ts +106 -0
- package/src/types/password-validation.ts +16 -0
- package/src/types/profile.ts +15 -0
- package/src/types/refetch.ts +1 -0
- package/src/types/render-toast.ts +9 -0
- package/src/types/sign-up-options.ts +7 -0
- package/src/types/social-options.ts +16 -0
|
@@ -0,0 +1,801 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/lib/utils.ts
|
|
2
|
+
var _clsx = require('clsx');
|
|
3
|
+
var _tailwindmerge = require('tailwind-merge');
|
|
4
|
+
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
5
|
+
function cn(...inputs) {
|
|
6
|
+
return _tailwindmerge.twMerge.call(void 0, _clsx.clsx.call(void 0, inputs));
|
|
7
|
+
}
|
|
8
|
+
function isValidEmail(email) {
|
|
9
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
10
|
+
return emailRegex.test(email);
|
|
11
|
+
}
|
|
12
|
+
function getLocalizedError({
|
|
13
|
+
error,
|
|
14
|
+
localization
|
|
15
|
+
}) {
|
|
16
|
+
if (typeof error === "string") {
|
|
17
|
+
if (localization == null ? void 0 : localization[error])
|
|
18
|
+
return localization[error];
|
|
19
|
+
}
|
|
20
|
+
if (error == null ? void 0 : error.error) {
|
|
21
|
+
if (error.error.code) {
|
|
22
|
+
const errorCode = error.error.code;
|
|
23
|
+
if (localization == null ? void 0 : localization[errorCode]) return localization[errorCode];
|
|
24
|
+
}
|
|
25
|
+
return error.error.message || error.error.code || error.error.statusText || (localization == null ? void 0 : localization.REQUEST_FAILED);
|
|
26
|
+
}
|
|
27
|
+
return (error == null ? void 0 : error.message) || (localization == null ? void 0 : localization.REQUEST_FAILED) || "Request failed";
|
|
28
|
+
}
|
|
29
|
+
function getSearchParam(paramName) {
|
|
30
|
+
return typeof window !== "undefined" ? new URLSearchParams(window.location.search).get(paramName) : null;
|
|
31
|
+
}
|
|
32
|
+
function getViewByPath(viewPaths, path) {
|
|
33
|
+
for (const key in viewPaths) {
|
|
34
|
+
if (viewPaths[key] === path) {
|
|
35
|
+
return key;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function getPasswordSchema(passwordValidation, localization) {
|
|
40
|
+
let schema = z.string().min(1, {
|
|
41
|
+
message: localization == null ? void 0 : localization.PASSWORD_REQUIRED
|
|
42
|
+
});
|
|
43
|
+
if (passwordValidation == null ? void 0 : passwordValidation.minLength) {
|
|
44
|
+
schema = schema.min(passwordValidation.minLength, {
|
|
45
|
+
message: localization == null ? void 0 : localization.PASSWORD_TOO_SHORT
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (passwordValidation == null ? void 0 : passwordValidation.maxLength) {
|
|
49
|
+
schema = schema.max(passwordValidation.maxLength, {
|
|
50
|
+
message: localization == null ? void 0 : localization.PASSWORD_TOO_LONG
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (passwordValidation == null ? void 0 : passwordValidation.regex) {
|
|
54
|
+
schema = schema.regex(passwordValidation.regex, {
|
|
55
|
+
message: localization == null ? void 0 : localization.INVALID_PASSWORD
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return schema;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// src/localization/admin-error-codes.ts
|
|
62
|
+
var ADMIN_ERROR_CODES = {
|
|
63
|
+
FAILED_TO_CREATE_USER: "Failed to create user",
|
|
64
|
+
USER_ALREADY_EXISTS: "User already exists",
|
|
65
|
+
YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself",
|
|
66
|
+
YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role",
|
|
67
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users",
|
|
68
|
+
YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users",
|
|
69
|
+
YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions",
|
|
70
|
+
YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users",
|
|
71
|
+
YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users",
|
|
72
|
+
YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions",
|
|
73
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users",
|
|
74
|
+
YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password",
|
|
75
|
+
BANNED_USER: "You have been banned from this application"
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// src/localization/anonymous-error-codes.ts
|
|
79
|
+
var ANONYMOUS_ERROR_CODES = {
|
|
80
|
+
FAILED_TO_CREATE_USER: "Failed to create user",
|
|
81
|
+
COULD_NOT_CREATE_SESSION: "Could not create session",
|
|
82
|
+
ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY: "Anonymous users cannot sign in again anonymously"
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// src/localization/api-key-error-codes.ts
|
|
86
|
+
var API_KEY_ERROR_CODES = {
|
|
87
|
+
INVALID_METADATA_TYPE: "metadata must be an object or undefined",
|
|
88
|
+
REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided",
|
|
89
|
+
REFILL_INTERVAL_AND_AMOUNT_REQUIRED: "refillInterval is required when refillAmount is provided",
|
|
90
|
+
USER_BANNED: "User is banned",
|
|
91
|
+
UNAUTHORIZED_SESSION: "Unauthorized or invalid session",
|
|
92
|
+
KEY_NOT_FOUND: "API Key not found",
|
|
93
|
+
KEY_DISABLED: "API Key is disabled",
|
|
94
|
+
KEY_EXPIRED: "API Key has expired",
|
|
95
|
+
USAGE_EXCEEDED: "API Key has reached its usage limit",
|
|
96
|
+
KEY_NOT_RECOVERABLE: "API Key is not recoverable",
|
|
97
|
+
EXPIRES_IN_IS_TOO_SMALL: "The expiresIn is smaller than the predefined minimum value.",
|
|
98
|
+
EXPIRES_IN_IS_TOO_LARGE: "The expiresIn is larger than the predefined maximum value.",
|
|
99
|
+
INVALID_REMAINING: "The remaining count is either too large or too small.",
|
|
100
|
+
INVALID_PREFIX_LENGTH: "The prefix length is either too large or too small.",
|
|
101
|
+
INVALID_NAME_LENGTH: "The name length is either too large or too small.",
|
|
102
|
+
METADATA_DISABLED: "Metadata is disabled.",
|
|
103
|
+
RATE_LIMIT_EXCEEDED: "Rate limit exceeded.",
|
|
104
|
+
NO_VALUES_TO_UPDATE: "No values to update.",
|
|
105
|
+
KEY_DISABLED_EXPIRATION: "Custom key expiration values are disabled.",
|
|
106
|
+
INVALID_API_KEY: "Invalid API key.",
|
|
107
|
+
INVALID_USER_ID_FROM_API_KEY: "The user id from the API key is invalid.",
|
|
108
|
+
INVALID_API_KEY_GETTER_RETURN_TYPE: "API Key getter returned an invalid key type. Expected string.",
|
|
109
|
+
SERVER_ONLY_PROPERTY: "The property you're trying to set can only be set from the server auth instance only."
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// src/localization/base-error-codes.ts
|
|
113
|
+
var BASE_ERROR_CODES = {
|
|
114
|
+
USER_NOT_FOUND: "User not found",
|
|
115
|
+
FAILED_TO_CREATE_USER: "Failed to create user",
|
|
116
|
+
FAILED_TO_CREATE_SESSION: "Failed to create session",
|
|
117
|
+
FAILED_TO_UPDATE_USER: "Failed to update user",
|
|
118
|
+
FAILED_TO_GET_SESSION: "Failed to get session",
|
|
119
|
+
INVALID_PASSWORD: "Invalid password",
|
|
120
|
+
INVALID_EMAIL: "Invalid email",
|
|
121
|
+
INVALID_EMAIL_OR_PASSWORD: "Invalid email or password",
|
|
122
|
+
SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked",
|
|
123
|
+
PROVIDER_NOT_FOUND: "Provider not found",
|
|
124
|
+
INVALID_TOKEN: "Invalid token",
|
|
125
|
+
ID_TOKEN_NOT_SUPPORTED: "id_token not supported",
|
|
126
|
+
FAILED_TO_GET_USER_INFO: "Failed to get user info",
|
|
127
|
+
USER_EMAIL_NOT_FOUND: "User email not found",
|
|
128
|
+
EMAIL_NOT_VERIFIED: "Email not verified",
|
|
129
|
+
PASSWORD_TOO_SHORT: "Password too short",
|
|
130
|
+
PASSWORD_TOO_LONG: "Password too long",
|
|
131
|
+
USER_ALREADY_EXISTS: "User already exists",
|
|
132
|
+
EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated",
|
|
133
|
+
CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found",
|
|
134
|
+
SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.",
|
|
135
|
+
FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account",
|
|
136
|
+
ACCOUNT_NOT_FOUND: "Account not found",
|
|
137
|
+
USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account."
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// src/localization/captcha-error-codes.ts
|
|
141
|
+
var EXTERNAL_ERROR_CODES = {
|
|
142
|
+
VERIFICATION_FAILED: "Captcha verification failed",
|
|
143
|
+
MISSING_RESPONSE: "Missing CAPTCHA response",
|
|
144
|
+
UNKNOWN_ERROR: "Something went wrong"
|
|
145
|
+
};
|
|
146
|
+
var INTERNAL_ERROR_CODES = {
|
|
147
|
+
MISSING_SECRET_KEY: "Missing secret key",
|
|
148
|
+
SERVICE_UNAVAILABLE: "CAPTCHA service unavailable"
|
|
149
|
+
};
|
|
150
|
+
var CAPTCHA_ERROR_CODES = {
|
|
151
|
+
...EXTERNAL_ERROR_CODES,
|
|
152
|
+
...INTERNAL_ERROR_CODES
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// src/localization/email-otp-error-codes.ts
|
|
156
|
+
var EMAIL_OTP_ERROR_CODES = {
|
|
157
|
+
OTP_EXPIRED: "otp expired",
|
|
158
|
+
INVALID_OTP: "Invalid OTP",
|
|
159
|
+
INVALID_EMAIL: "Invalid email",
|
|
160
|
+
USER_NOT_FOUND: "User not found",
|
|
161
|
+
TOO_MANY_ATTEMPTS: "Too many attempts"
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// src/localization/generic-oauth-error-codes.ts
|
|
165
|
+
var GENERIC_OAUTH_ERROR_CODES = {
|
|
166
|
+
INVALID_OAUTH_CONFIGURATION: "Invalid OAuth configuration"
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
// src/localization/haveibeenpwned-error-codes.ts
|
|
170
|
+
var HAVEIBEENPWNED_ERROR_CODES = {
|
|
171
|
+
PASSWORD_COMPROMISED: "The password you entered has been compromised. Please choose a different password."
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
// src/localization/multi-session-error-codes.ts
|
|
175
|
+
var MULTI_SESSION_ERROR_CODES = {
|
|
176
|
+
INVALID_SESSION_TOKEN: "Invalid session token"
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// src/localization/organization-error-codes.ts
|
|
180
|
+
var ORGANIZATION_ERROR_CODES = {
|
|
181
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization",
|
|
182
|
+
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations",
|
|
183
|
+
ORGANIZATION_ALREADY_EXISTS: "Organization already exists",
|
|
184
|
+
ORGANIZATION_NOT_FOUND: "Organization not found",
|
|
185
|
+
USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: "User is not a member of the organization",
|
|
186
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: "You are not allowed to update this organization",
|
|
187
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: "You are not allowed to delete this organization",
|
|
188
|
+
NO_ACTIVE_ORGANIZATION: "No active organization",
|
|
189
|
+
USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: "User is already a member of this organization",
|
|
190
|
+
MEMBER_NOT_FOUND: "Member not found",
|
|
191
|
+
ROLE_NOT_FOUND: "Role not found",
|
|
192
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: "You are not allowed to create a new team",
|
|
193
|
+
TEAM_ALREADY_EXISTS: "Team already exists",
|
|
194
|
+
TEAM_NOT_FOUND: "Team not found",
|
|
195
|
+
YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: "You cannot leave the organization as the only owner",
|
|
196
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: "You are not allowed to delete this member",
|
|
197
|
+
YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: "You are not allowed to invite users to this organization",
|
|
198
|
+
USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: "User is already invited to this organization",
|
|
199
|
+
INVITATION_NOT_FOUND: "Invitation not found",
|
|
200
|
+
YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: "You are not the recipient of the invitation",
|
|
201
|
+
YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: "You are not allowed to cancel this invitation",
|
|
202
|
+
INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: "Inviter is no longer a member of the organization",
|
|
203
|
+
YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: "you are not allowed to invite user with this role",
|
|
204
|
+
FAILED_TO_RETRIEVE_INVITATION: "Failed to retrieve invitation",
|
|
205
|
+
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: "You have reached the maximum number of teams",
|
|
206
|
+
UNABLE_TO_REMOVE_LAST_TEAM: "Unable to remove last team",
|
|
207
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: "You are not allowed to update this member",
|
|
208
|
+
ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: "Organization membership limit reached",
|
|
209
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to create teams in this organization",
|
|
210
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to delete teams in this organization",
|
|
211
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: "You are not allowed to update this team",
|
|
212
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: "You are not allowed to delete this team",
|
|
213
|
+
INVITATION_LIMIT_REACHED: "Invitation limit reached"
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
// src/localization/passkey-error-codes.ts
|
|
217
|
+
var PASSKEY_ERROR_CODES = {
|
|
218
|
+
CHALLENGE_NOT_FOUND: "Challenge not found",
|
|
219
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: "You are not allowed to register this passkey",
|
|
220
|
+
FAILED_TO_VERIFY_REGISTRATION: "Failed to verify registration",
|
|
221
|
+
PASSKEY_NOT_FOUND: "Passkey not found",
|
|
222
|
+
AUTHENTICATION_FAILED: "Authentication failed",
|
|
223
|
+
UNABLE_TO_CREATE_SESSION: "Unable to create session",
|
|
224
|
+
FAILED_TO_UPDATE_PASSKEY: "Failed to update passkey"
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
// src/localization/phone-number-error-codes.ts
|
|
228
|
+
var PHONE_NUMBER_ERROR_CODES = {
|
|
229
|
+
INVALID_PHONE_NUMBER: "Invalid phone number",
|
|
230
|
+
PHONE_NUMBER_EXIST: "Phone number already exists",
|
|
231
|
+
INVALID_PHONE_NUMBER_OR_PASSWORD: "Invalid phone number or password",
|
|
232
|
+
UNEXPECTED_ERROR: "Unexpected error",
|
|
233
|
+
OTP_NOT_FOUND: "OTP not found",
|
|
234
|
+
OTP_EXPIRED: "OTP expired",
|
|
235
|
+
INVALID_OTP: "Invalid OTP",
|
|
236
|
+
PHONE_NUMBER_NOT_VERIFIED: "Phone number not verified"
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
// src/localization/stripe-localization.ts
|
|
240
|
+
var STRIPE_ERROR_CODES = {
|
|
241
|
+
SUBSCRIPTION_NOT_FOUND: "Subscription not found",
|
|
242
|
+
SUBSCRIPTION_PLAN_NOT_FOUND: "Subscription plan not found",
|
|
243
|
+
ALREADY_SUBSCRIBED_PLAN: "You're already subscribed to this plan",
|
|
244
|
+
UNABLE_TO_CREATE_CUSTOMER: "Unable to create customer",
|
|
245
|
+
FAILED_TO_FETCH_PLANS: "Failed to fetch plans",
|
|
246
|
+
EMAIL_VERIFICATION_REQUIRED: "Email verification is required before you can subscribe to a plan",
|
|
247
|
+
SUBSCRIPTION_NOT_ACTIVE: "Subscription is not active",
|
|
248
|
+
SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION: "Subscription is not scheduled for cancellation"
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
// src/localization/two-factor-error-codes.ts
|
|
252
|
+
var TWO_FACTOR_ERROR_CODES = {
|
|
253
|
+
OTP_NOT_ENABLED: "OTP not enabled",
|
|
254
|
+
OTP_HAS_EXPIRED: "OTP has expired",
|
|
255
|
+
TOTP_NOT_ENABLED: "TOTP not enabled",
|
|
256
|
+
TWO_FACTOR_NOT_ENABLED: "Two factor isn't enabled",
|
|
257
|
+
BACKUP_CODES_NOT_ENABLED: "Backup codes aren't enabled",
|
|
258
|
+
INVALID_BACKUP_CODE: "Invalid backup code",
|
|
259
|
+
INVALID_CODE: "Invalid code",
|
|
260
|
+
TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: "Too many attempts. Please request a new code.",
|
|
261
|
+
INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie"
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
// src/localization/username-error-codes.ts
|
|
265
|
+
var USERNAME_ERROR_CODES = {
|
|
266
|
+
INVALID_USERNAME_OR_PASSWORD: "invalid username or password",
|
|
267
|
+
EMAIL_NOT_VERIFIED: "email not verified",
|
|
268
|
+
UNEXPECTED_ERROR: "unexpected error",
|
|
269
|
+
USERNAME_IS_ALREADY_TAKEN: "username is already taken. please try another.",
|
|
270
|
+
USERNAME_TOO_SHORT: "username is too short",
|
|
271
|
+
USERNAME_TOO_LONG: "username is too long",
|
|
272
|
+
INVALID_USERNAME: "username is invalid"
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
// src/localization/auth-localization.ts
|
|
276
|
+
var authLocalization = {
|
|
277
|
+
/** @default "App" */
|
|
278
|
+
APP: "App",
|
|
279
|
+
/** @default "Account" */
|
|
280
|
+
ACCOUNT: "Account",
|
|
281
|
+
/** @default "Accounts" */
|
|
282
|
+
ACCOUNTS: "Accounts",
|
|
283
|
+
/** @default "Manage your currently signed in accounts." */
|
|
284
|
+
ACCOUNTS_DESCRIPTION: "Switch between your currently signed in accounts.",
|
|
285
|
+
/** @default "Sign in to an additional account." */
|
|
286
|
+
ACCOUNTS_INSTRUCTIONS: "Sign in to an additional account.",
|
|
287
|
+
/** @default "Add Account" */
|
|
288
|
+
ADD_ACCOUNT: "Add Account",
|
|
289
|
+
/** @default "Add Passkey" */
|
|
290
|
+
ADD_PASSKEY: "Add Passkey",
|
|
291
|
+
/** @default "Already have an account?" */
|
|
292
|
+
ALREADY_HAVE_AN_ACCOUNT: "Already have an account?",
|
|
293
|
+
/** @default "Avatar" */
|
|
294
|
+
AVATAR: "Avatar",
|
|
295
|
+
/** @default "Click on the avatar to upload a custom one from your files." */
|
|
296
|
+
AVATAR_DESCRIPTION: "Click on the avatar to upload a custom one from your files.",
|
|
297
|
+
/** @default "An avatar is optional but strongly recommended." */
|
|
298
|
+
AVATAR_INSTRUCTIONS: "An avatar is optional but strongly recommended.",
|
|
299
|
+
/** @default "Backup code is required" */
|
|
300
|
+
BACKUP_CODE_REQUIRED: "Backup code is required",
|
|
301
|
+
/** @default "Backup Codes" */
|
|
302
|
+
BACKUP_CODES: "Backup Codes",
|
|
303
|
+
/** @default "Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method." */
|
|
304
|
+
BACKUP_CODES_DESCRIPTION: "Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",
|
|
305
|
+
/** @default "Backup Code." */
|
|
306
|
+
BACKUP_CODE_PLACEHOLDER: "Backup Code",
|
|
307
|
+
/** @default "Backup Code" */
|
|
308
|
+
BACKUP_CODE: "Backup Code",
|
|
309
|
+
/** @default "Cancel" */
|
|
310
|
+
CANCEL: "Cancel",
|
|
311
|
+
/** @default "Change Password" */
|
|
312
|
+
CHANGE_PASSWORD: "Change Password",
|
|
313
|
+
/** @default "Enter your current password and a new password." */
|
|
314
|
+
CHANGE_PASSWORD_DESCRIPTION: "Enter your current password and a new password.",
|
|
315
|
+
/** @default "Please use 8 characters at minimum." */
|
|
316
|
+
CHANGE_PASSWORD_INSTRUCTIONS: "Please use 8 characters at minimum.",
|
|
317
|
+
/** @default "Your password has been changed." */
|
|
318
|
+
CHANGE_PASSWORD_SUCCESS: "Your password has been changed.",
|
|
319
|
+
/** @default "Confirm Password" */
|
|
320
|
+
CONFIRM_PASSWORD: "Confirm Password",
|
|
321
|
+
/** @default "Confirm Password" */
|
|
322
|
+
CONFIRM_PASSWORD_PLACEHOLDER: "Confirm Password",
|
|
323
|
+
/** @default "Confirm password is required" */
|
|
324
|
+
CONFIRM_PASSWORD_REQUIRED: "Confirm password is required",
|
|
325
|
+
/** @default "Continue with Authenticator" */
|
|
326
|
+
CONTINUE_WITH_AUTHENTICATOR: "Continue with Authenticator",
|
|
327
|
+
/** @default "Copied to clipboard" */
|
|
328
|
+
COPIED_TO_CLIPBOARD: "Copied to clipboard",
|
|
329
|
+
/** @default "Copy to clipboard" */
|
|
330
|
+
COPY_TO_CLIPBOARD: "Copy to clipboard",
|
|
331
|
+
/** @default "Copy all codes" */
|
|
332
|
+
COPY_ALL_CODES: "Copy all codes",
|
|
333
|
+
/** @default "Continue" */
|
|
334
|
+
CONTINUE: "Continue",
|
|
335
|
+
/** @default "Current Password" */
|
|
336
|
+
CURRENT_PASSWORD: "Current Password",
|
|
337
|
+
/** @default "Current Password" */
|
|
338
|
+
CURRENT_PASSWORD_PLACEHOLDER: "Current Password",
|
|
339
|
+
/** @default "Current Session" */
|
|
340
|
+
CURRENT_SESSION: "Current Session",
|
|
341
|
+
/** @default "Delete" */
|
|
342
|
+
DELETE: "Delete",
|
|
343
|
+
/** @default "Delete Avatar" */
|
|
344
|
+
DELETE_AVATAR: "Delete Avatar",
|
|
345
|
+
/** @default "Delete Account" */
|
|
346
|
+
DELETE_ACCOUNT: "Delete Account",
|
|
347
|
+
/** @default "Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution." */
|
|
348
|
+
DELETE_ACCOUNT_DESCRIPTION: "Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",
|
|
349
|
+
/** @default "Please confirm the deletion of your account. This action is not reversible, so please continue with caution." */
|
|
350
|
+
DELETE_ACCOUNT_INSTRUCTIONS: "Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",
|
|
351
|
+
/** @default "Please check your email to verify the deletion of your account." */
|
|
352
|
+
DELETE_ACCOUNT_VERIFY: "Please check your email to verify the deletion of your account.",
|
|
353
|
+
/** @default "Your account has been deleted." */
|
|
354
|
+
DELETE_ACCOUNT_SUCCESS: "Your account has been deleted.",
|
|
355
|
+
/** @default "Disable Two-Factor" */
|
|
356
|
+
DISABLE_TWO_FACTOR: "Disable Two-Factor",
|
|
357
|
+
/** @default "Choose a provider to login to your account" */
|
|
358
|
+
DISABLED_CREDENTIALS_DESCRIPTION: "Choose a provider to login to your account",
|
|
359
|
+
/** @default "Don't have an account?" */
|
|
360
|
+
DONT_HAVE_AN_ACCOUNT: "Don't have an account?",
|
|
361
|
+
/** @default "Done" */
|
|
362
|
+
DONE: "Done",
|
|
363
|
+
/** @default "Email" */
|
|
364
|
+
EMAIL: "Email",
|
|
365
|
+
/** @default "Enter the email address you want to use to log in." */
|
|
366
|
+
EMAIL_DESCRIPTION: "Enter the email address you want to use to log in.",
|
|
367
|
+
/** @default "Please enter a valid email address." */
|
|
368
|
+
EMAIL_INSTRUCTIONS: "Please enter a valid email address.",
|
|
369
|
+
/** @default "Email is the same" */
|
|
370
|
+
EMAIL_IS_THE_SAME: "Email is the same",
|
|
371
|
+
/** @default "m@example.com" */
|
|
372
|
+
EMAIL_PLACEHOLDER: "m@example.com",
|
|
373
|
+
/** @default "Email address is required" */
|
|
374
|
+
EMAIL_REQUIRED: "Email address is required",
|
|
375
|
+
/** @default "Please check your email to verify the change." */
|
|
376
|
+
EMAIL_VERIFY_CHANGE: "Please check your email to verify the change.",
|
|
377
|
+
/** @default "Please check your email for the verification link." */
|
|
378
|
+
EMAIL_VERIFICATION: "Please check your email for the verification link.",
|
|
379
|
+
/** @default "Enable Two-Factor" */
|
|
380
|
+
ENABLE_TWO_FACTOR: "Enable Two-Factor",
|
|
381
|
+
/** @default "is invalid" */
|
|
382
|
+
IS_INVALID: "is invalid",
|
|
383
|
+
/** @default "is required" */
|
|
384
|
+
IS_REQUIRED: "is required",
|
|
385
|
+
/** @default "is the same" */
|
|
386
|
+
IS_THE_SAME: "is the same",
|
|
387
|
+
/** @default "Forgot authenticator?" */
|
|
388
|
+
FORGOT_AUTHENTICATOR: "Forgot authenticator?",
|
|
389
|
+
/** @default "Forgot Password" */
|
|
390
|
+
FORGOT_PASSWORD: "Forgot Password",
|
|
391
|
+
/** @default "Send reset link" */
|
|
392
|
+
FORGOT_PASSWORD_ACTION: "Send reset link",
|
|
393
|
+
/** @default "Enter your email to reset your password" */
|
|
394
|
+
FORGOT_PASSWORD_DESCRIPTION: "Enter your email to reset your password",
|
|
395
|
+
/** @default "Check your email for the password reset link." */
|
|
396
|
+
FORGOT_PASSWORD_EMAIL: "Check your email for the password reset link.",
|
|
397
|
+
/** @default "Forgot your password?" */
|
|
398
|
+
FORGOT_PASSWORD_LINK: "Forgot your password?",
|
|
399
|
+
/** @default "Link" */
|
|
400
|
+
LINK: "Link",
|
|
401
|
+
/** @default "Magic Link" */
|
|
402
|
+
MAGIC_LINK: "Magic Link",
|
|
403
|
+
/** @default "Send magic link" */
|
|
404
|
+
MAGIC_LINK_ACTION: "Send magic link",
|
|
405
|
+
/** @default "Enter your email to receive a magic link" */
|
|
406
|
+
MAGIC_LINK_DESCRIPTION: "Enter your email to receive a magic link",
|
|
407
|
+
/** @default "Check your email for the magic link" */
|
|
408
|
+
MAGIC_LINK_EMAIL: "Check your email for the magic link",
|
|
409
|
+
/** @default "Email Code" */
|
|
410
|
+
EMAIL_OTP: "Email Code",
|
|
411
|
+
/** @default "Send code" */
|
|
412
|
+
EMAIL_OTP_SEND_ACTION: "Send code",
|
|
413
|
+
/** @default "Verify code" */
|
|
414
|
+
EMAIL_OTP_VERIFY_ACTION: "Verify code",
|
|
415
|
+
/** @default "Enter your email to receive a code" */
|
|
416
|
+
EMAIL_OTP_DESCRIPTION: "Enter your email to receive a code",
|
|
417
|
+
/** @default "Please check your email for the verification code." */
|
|
418
|
+
EMAIL_OTP_VERIFICATION_SENT: "Please check your email for the verification code.",
|
|
419
|
+
/** @default "Name" */
|
|
420
|
+
NAME: "Name",
|
|
421
|
+
/** @default "Please enter your full name, or a display name." */
|
|
422
|
+
NAME_DESCRIPTION: "Please enter your full name, or a display name.",
|
|
423
|
+
/** @default "Please use 32 characters at maximum." */
|
|
424
|
+
NAME_INSTRUCTIONS: "Please use 32 characters at maximum.",
|
|
425
|
+
/** @default "Name" */
|
|
426
|
+
NAME_PLACEHOLDER: "Name",
|
|
427
|
+
/** @default "New Password" */
|
|
428
|
+
NEW_PASSWORD: "New Password",
|
|
429
|
+
/** @default "New Password" */
|
|
430
|
+
NEW_PASSWORD_PLACEHOLDER: "New Password",
|
|
431
|
+
/** @default "New password is required" */
|
|
432
|
+
NEW_PASSWORD_REQUIRED: "New password is required",
|
|
433
|
+
/** @default "One-Time Password" */
|
|
434
|
+
ONE_TIME_PASSWORD: "One-Time Password",
|
|
435
|
+
/** @default "Or continue with" */
|
|
436
|
+
OR_CONTINUE_WITH: "Or continue with",
|
|
437
|
+
/** @default "Passkey" */
|
|
438
|
+
PASSKEY: "Passkey",
|
|
439
|
+
/** @default "Passkeys" */
|
|
440
|
+
PASSKEYS: "Passkeys",
|
|
441
|
+
/** @default "Manage your passkeys for secure access." */
|
|
442
|
+
PASSKEYS_DESCRIPTION: "Manage your passkeys for secure access.",
|
|
443
|
+
/** @default "Securely access your account without a password." */
|
|
444
|
+
PASSKEYS_INSTRUCTIONS: "Securely access your account without a password.",
|
|
445
|
+
/** @default "Personal Account" */
|
|
446
|
+
PERSONAL_ACCOUNT: "Personal Account",
|
|
447
|
+
/** @default "API Keys" */
|
|
448
|
+
API_KEYS: "API Keys",
|
|
449
|
+
/** @default "Manage your API keys for secure access." */
|
|
450
|
+
API_KEYS_DESCRIPTION: "Manage your API keys for secure access.",
|
|
451
|
+
/** @default "Generate API keys to access your account programmatically." */
|
|
452
|
+
API_KEYS_INSTRUCTIONS: "Generate API keys to access your account programmatically.",
|
|
453
|
+
/** @default "Create API Key" */
|
|
454
|
+
CREATE_API_KEY: "Create API Key",
|
|
455
|
+
/** @default "Enter a unique name for your API key to differentiate it from other keys." */
|
|
456
|
+
CREATE_API_KEY_DESCRIPTION: "Enter a unique name for your API key to differentiate it from other keys.",
|
|
457
|
+
/** @default "New API Key" */
|
|
458
|
+
API_KEY_NAME_PLACEHOLDER: "New API Key",
|
|
459
|
+
/** @default "API Key Created" */
|
|
460
|
+
API_KEY_CREATED: "API Key Created",
|
|
461
|
+
/** @default "Please copy your API key and store it in a safe place. For security reasons we cannot show it again." */
|
|
462
|
+
CREATE_API_KEY_SUCCESS: "Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",
|
|
463
|
+
/** @default "Never Expires" */
|
|
464
|
+
NEVER_EXPIRES: "Never Expires",
|
|
465
|
+
/** @default "Expires" */
|
|
466
|
+
EXPIRES: "Expires",
|
|
467
|
+
/** @default "No Expiration" */
|
|
468
|
+
NO_EXPIRATION: "No Expiration",
|
|
469
|
+
/** @default "Create Organization" */
|
|
470
|
+
CREATE_ORGANIZATION: "Create Organization",
|
|
471
|
+
/** @default "Organization" */
|
|
472
|
+
ORGANIZATION: "Organization",
|
|
473
|
+
/** @default "Name" */
|
|
474
|
+
ORGANIZATION_NAME: "Name",
|
|
475
|
+
/** @default "Acme Inc." */
|
|
476
|
+
ORGANIZATION_NAME_PLACEHOLDER: "Acme Inc.",
|
|
477
|
+
/** @default "This is your organization's visible name." */
|
|
478
|
+
ORGANIZATION_NAME_DESCRIPTION: "This is your organization's visible name.",
|
|
479
|
+
/** @default "Please use 32 characters at maximum." */
|
|
480
|
+
ORGANIZATION_NAME_INSTRUCTIONS: "Please use 32 characters at maximum.",
|
|
481
|
+
/** @default "Slug URL" */
|
|
482
|
+
ORGANIZATION_SLUG: "Slug URL",
|
|
483
|
+
/** @default "This is your organization's URL namespace." */
|
|
484
|
+
ORGANIZATION_SLUG_DESCRIPTION: "This is your organization's URL namespace.",
|
|
485
|
+
/** @default "Please use 48 characters at maximum." */
|
|
486
|
+
ORGANIZATION_SLUG_INSTRUCTIONS: "Please use 48 characters at maximum.",
|
|
487
|
+
/** @default "acme-inc" */
|
|
488
|
+
ORGANIZATION_SLUG_PLACEHOLDER: "acme-inc",
|
|
489
|
+
/** @default "Organization created successfully" */
|
|
490
|
+
CREATE_ORGANIZATION_SUCCESS: "Organization created successfully",
|
|
491
|
+
/** @default "Password" */
|
|
492
|
+
PASSWORD: "Password",
|
|
493
|
+
/** @default "Password" */
|
|
494
|
+
PASSWORD_PLACEHOLDER: "Password",
|
|
495
|
+
/** @default "Password is required" */
|
|
496
|
+
PASSWORD_REQUIRED: "Password is required",
|
|
497
|
+
/** @default "Passwords do not match" */
|
|
498
|
+
PASSWORDS_DO_NOT_MATCH: "Passwords do not match",
|
|
499
|
+
/** @default "Providers" */
|
|
500
|
+
PROVIDERS: "Providers",
|
|
501
|
+
/** @default "Connect your account with a third-party service." */
|
|
502
|
+
PROVIDERS_DESCRIPTION: "Connect your account with a third-party service.",
|
|
503
|
+
/** @default "Recover Account" */
|
|
504
|
+
RECOVER_ACCOUNT: "Recover Account",
|
|
505
|
+
/** @default "Recover account" */
|
|
506
|
+
RECOVER_ACCOUNT_ACTION: "Recover account",
|
|
507
|
+
/** @default "Please enter a backup code to access your account" */
|
|
508
|
+
RECOVER_ACCOUNT_DESCRIPTION: "Please enter a backup code to access your account",
|
|
509
|
+
/** @default "Remember me" */
|
|
510
|
+
REMEMBER_ME: "Remember me",
|
|
511
|
+
/** @default "Resend code" */
|
|
512
|
+
RESEND_CODE: "Resend code",
|
|
513
|
+
/** @default "Resend verification email" */
|
|
514
|
+
RESEND_VERIFICATION_EMAIL: "Resend Verification Email",
|
|
515
|
+
/** @default "Reset Password" */
|
|
516
|
+
RESET_PASSWORD: "Reset Password",
|
|
517
|
+
/** @default "Save new password" */
|
|
518
|
+
RESET_PASSWORD_ACTION: "Save new password",
|
|
519
|
+
/** @default "Enter your new password below" */
|
|
520
|
+
RESET_PASSWORD_DESCRIPTION: "Enter your new password below",
|
|
521
|
+
/** @default "Password reset successfully" */
|
|
522
|
+
RESET_PASSWORD_SUCCESS: "Password reset successfully",
|
|
523
|
+
/** @default "Request failed" */
|
|
524
|
+
REQUEST_FAILED: "Request failed",
|
|
525
|
+
/** @default "Revoke" */
|
|
526
|
+
REVOKE: "Revoke",
|
|
527
|
+
/** @default "Delete API Key" */
|
|
528
|
+
DELETE_API_KEY: "Delete API Key",
|
|
529
|
+
/** @default "Are you sure you want to delete this API key?" */
|
|
530
|
+
DELETE_API_KEY_CONFIRM: "Are you sure you want to delete this API key?",
|
|
531
|
+
/** @default "API Key" */
|
|
532
|
+
API_KEY: "API Key",
|
|
533
|
+
/** @default "Sign In" */
|
|
534
|
+
SIGN_IN: "Sign In",
|
|
535
|
+
/** @default "Login" */
|
|
536
|
+
SIGN_IN_ACTION: "Login",
|
|
537
|
+
/** @default "Enter your email below to login to your account" */
|
|
538
|
+
SIGN_IN_DESCRIPTION: "Enter your email below to login to your account",
|
|
539
|
+
/** @default "Enter your username or email below to login to your account" */
|
|
540
|
+
SIGN_IN_USERNAME_DESCRIPTION: "Enter your username or email to login to your account",
|
|
541
|
+
/** @default "Sign in with" */
|
|
542
|
+
SIGN_IN_WITH: "Sign in with",
|
|
543
|
+
/** @default "Sign Out" */
|
|
544
|
+
SIGN_OUT: "Sign Out",
|
|
545
|
+
/** @default "Sign Up" */
|
|
546
|
+
SIGN_UP: "Sign Up",
|
|
547
|
+
/** @default "Create an account" */
|
|
548
|
+
SIGN_UP_ACTION: "Create an account",
|
|
549
|
+
/** @default "Enter your information to create an account" */
|
|
550
|
+
SIGN_UP_DESCRIPTION: "Enter your information to create an account",
|
|
551
|
+
/** @default "Check your email for the verification link." */
|
|
552
|
+
SIGN_UP_EMAIL: "Check your email for the verification link.",
|
|
553
|
+
/** @default "Sessions" */
|
|
554
|
+
SESSIONS: "Sessions",
|
|
555
|
+
/** @default "Manage your active sessions and revoke access." */
|
|
556
|
+
SESSIONS_DESCRIPTION: "Manage your active sessions and revoke access.",
|
|
557
|
+
/** @default "Set Password" */
|
|
558
|
+
SET_PASSWORD: "Set Password",
|
|
559
|
+
/** @default "Click the button below to receive an email to set up a password for your account." */
|
|
560
|
+
SET_PASSWORD_DESCRIPTION: "Click the button below to receive an email to set up a password for your account.",
|
|
561
|
+
/** @default "Settings" */
|
|
562
|
+
SETTINGS: "Settings",
|
|
563
|
+
/** @default "Save" */
|
|
564
|
+
SAVE: "Save",
|
|
565
|
+
/** @default "Security" */
|
|
566
|
+
SECURITY: "Security",
|
|
567
|
+
/** @default "Switch Account" */
|
|
568
|
+
SWITCH_ACCOUNT: "Switch Account",
|
|
569
|
+
/** @default "Trust this device" */
|
|
570
|
+
TRUST_DEVICE: "Trust this device",
|
|
571
|
+
/** @default "Two-Factor" */
|
|
572
|
+
TWO_FACTOR: "Two-Factor",
|
|
573
|
+
/** @default "Verify code" */
|
|
574
|
+
TWO_FACTOR_ACTION: "Verify code",
|
|
575
|
+
/** @default "Please enter your one-time password to continue" */
|
|
576
|
+
TWO_FACTOR_DESCRIPTION: "Please enter your one-time password to continue",
|
|
577
|
+
/** @default "Add an extra layer of security to your account." */
|
|
578
|
+
TWO_FACTOR_CARD_DESCRIPTION: "Add an extra layer of security to your account.",
|
|
579
|
+
/** @default "Please enter your password to disable 2FA." */
|
|
580
|
+
TWO_FACTOR_DISABLE_INSTRUCTIONS: "Please enter your password to disable 2FA.",
|
|
581
|
+
/** @default "Please enter your password to enable 2FA" */
|
|
582
|
+
TWO_FACTOR_ENABLE_INSTRUCTIONS: "Please enter your password to enable 2FA.",
|
|
583
|
+
/** @default "Two-factor authentication has been enabled" */
|
|
584
|
+
TWO_FACTOR_ENABLED: "Two-factor authentication has been enabled",
|
|
585
|
+
/** @default "Two-Factor Authentication has been disabled" */
|
|
586
|
+
TWO_FACTOR_DISABLED: "Two-Factor Authentication has been disabled",
|
|
587
|
+
/** @default "Two-Factor Authentication" */
|
|
588
|
+
TWO_FACTOR_PROMPT: "Two-Factor Authentication",
|
|
589
|
+
/** @default "Scan the QR Code with your Authenticator" */
|
|
590
|
+
TWO_FACTOR_TOTP_LABEL: "Scan the QR Code with your Authenticator",
|
|
591
|
+
/** @default "Send verification code" */
|
|
592
|
+
SEND_VERIFICATION_CODE: "Send verification code",
|
|
593
|
+
/** @default "Unlink" */
|
|
594
|
+
UNLINK: "Unlink",
|
|
595
|
+
/** @default "Updated successfully" */
|
|
596
|
+
UPDATED_SUCCESSFULLY: "updated successfully",
|
|
597
|
+
/** @default "Username" */
|
|
598
|
+
USERNAME: "Username",
|
|
599
|
+
/** @default "Enter the username you want to use to log in." */
|
|
600
|
+
USERNAME_DESCRIPTION: "Enter the username you want to use to log in.",
|
|
601
|
+
/** @default "Please use 32 characters at maximum." */
|
|
602
|
+
USERNAME_INSTRUCTIONS: "Please use 32 characters at maximum.",
|
|
603
|
+
/** @default "Username" */
|
|
604
|
+
USERNAME_PLACEHOLDER: "Username",
|
|
605
|
+
/** @default "Username or email" */
|
|
606
|
+
SIGN_IN_USERNAME_PLACEHOLDER: "Username or email",
|
|
607
|
+
/** @default "Verify Your Email" */
|
|
608
|
+
VERIFY_YOUR_EMAIL: "Verify Your Email",
|
|
609
|
+
/** @default "Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend." */
|
|
610
|
+
VERIFY_YOUR_EMAIL_DESCRIPTION: "Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",
|
|
611
|
+
/** @default "Go back" */
|
|
612
|
+
GO_BACK: "Go back",
|
|
613
|
+
/** @default "Your session is not fresh. Please sign in again." */
|
|
614
|
+
SESSION_NOT_FRESH: "Your session is not fresh. Please sign in again.",
|
|
615
|
+
/** @default "Upload Avatar" */
|
|
616
|
+
UPLOAD_AVATAR: "Upload Avatar",
|
|
617
|
+
/** @default "Logo" */
|
|
618
|
+
LOGO: "Logo",
|
|
619
|
+
/** @default "Click on the logo to upload a custom one from your files." */
|
|
620
|
+
LOGO_DESCRIPTION: "Click on the logo to upload a custom one from your files.",
|
|
621
|
+
/** @default "A logo is optional but strongly recommended." */
|
|
622
|
+
LOGO_INSTRUCTIONS: "A logo is optional but strongly recommended.",
|
|
623
|
+
/** @default "Upload" */
|
|
624
|
+
UPLOAD: "Upload",
|
|
625
|
+
/** @default "Upload Logo" */
|
|
626
|
+
UPLOAD_LOGO: "Upload Logo",
|
|
627
|
+
/** @default "Delete Logo" */
|
|
628
|
+
DELETE_LOGO: "Delete Logo",
|
|
629
|
+
/** @default "Privacy Policy" */
|
|
630
|
+
PRIVACY_POLICY: "Privacy Policy",
|
|
631
|
+
/** @default "Terms of Service" */
|
|
632
|
+
TERMS_OF_SERVICE: "Terms of Service",
|
|
633
|
+
/** @default "This site is protected by reCAPTCHA." */
|
|
634
|
+
PROTECTED_BY_RECAPTCHA: "This site is protected by reCAPTCHA.",
|
|
635
|
+
/** @default "By continuing, you agree to the" */
|
|
636
|
+
BY_CONTINUING_YOU_AGREE: "By continuing, you agree to the",
|
|
637
|
+
/** @default "User" */
|
|
638
|
+
USER: "User",
|
|
639
|
+
/** @default "Organizations" */
|
|
640
|
+
ORGANIZATIONS: "Organizations",
|
|
641
|
+
/** @default "Manage your organizations and memberships." */
|
|
642
|
+
ORGANIZATIONS_DESCRIPTION: "Manage your organizations and memberships.",
|
|
643
|
+
/** @default "Create an organization to collaborate with other users." */
|
|
644
|
+
ORGANIZATIONS_INSTRUCTIONS: "Create an organization to collaborate with other users.",
|
|
645
|
+
/** @default "Leave Organization" */
|
|
646
|
+
LEAVE_ORGANIZATION: "Leave Organization",
|
|
647
|
+
/** @default "Are you sure you want to leave this organization?" */
|
|
648
|
+
LEAVE_ORGANIZATION_CONFIRM: "Are you sure you want to leave this organization?",
|
|
649
|
+
/** @default "You have successfully left the organization." */
|
|
650
|
+
LEAVE_ORGANIZATION_SUCCESS: "You have successfully left the organization.",
|
|
651
|
+
/** @default "Manage Organization" */
|
|
652
|
+
MANAGE_ORGANIZATION: "Manage Organization",
|
|
653
|
+
/** @default "Remove Member" */
|
|
654
|
+
REMOVE_MEMBER: "Remove Member",
|
|
655
|
+
/** @default "Are you sure you want to remove this member from the organization?" */
|
|
656
|
+
REMOVE_MEMBER_CONFIRM: "Are you sure you want to remove this member from the organization?",
|
|
657
|
+
/** @default "Member removed successfully" */
|
|
658
|
+
REMOVE_MEMBER_SUCCESS: "Member removed successfully",
|
|
659
|
+
/** @default "Invite Member" */
|
|
660
|
+
INVITE_MEMBER: "Invite Member",
|
|
661
|
+
/** @default "Members" */
|
|
662
|
+
MEMBERS: "Members",
|
|
663
|
+
/** @default "Add or remove members and manage their roles." */
|
|
664
|
+
MEMBERS_DESCRIPTION: "Add or remove members and manage their roles.",
|
|
665
|
+
/** @default "Invite new members to your organization." */
|
|
666
|
+
MEMBERS_INSTRUCTIONS: "Invite new members to your organization.",
|
|
667
|
+
/** @default "Send an invitation to add a new member to your organization." */
|
|
668
|
+
INVITE_MEMBER_DESCRIPTION: "Send an invitation to add a new member to your organization.",
|
|
669
|
+
/** @default "Role" */
|
|
670
|
+
ROLE: "Role",
|
|
671
|
+
/** @default "Select a role" */
|
|
672
|
+
SELECT_ROLE: "Select a role",
|
|
673
|
+
/** @default "Admin" */
|
|
674
|
+
ADMIN: "Admin",
|
|
675
|
+
/** @default "Member" */
|
|
676
|
+
MEMBER: "Member",
|
|
677
|
+
/** @default "Guest" */
|
|
678
|
+
GUEST: "Guest",
|
|
679
|
+
/** @default "Owner" */
|
|
680
|
+
OWNER: "Owner",
|
|
681
|
+
/** @default "Update the role for this member" */
|
|
682
|
+
UPDATE_ROLE_DESCRIPTION: "Update the role for this member",
|
|
683
|
+
/** @default "Update Role" */
|
|
684
|
+
UPDATE_ROLE: "Update Role",
|
|
685
|
+
/** @default "Member role updated successfully" */
|
|
686
|
+
MEMBER_ROLE_UPDATED: "Member role updated successfully",
|
|
687
|
+
/** @default "Send Invitation" */
|
|
688
|
+
SEND_INVITATION: "Send Invitation",
|
|
689
|
+
/** @default "Invitation sent successfully" */
|
|
690
|
+
SEND_INVITATION_SUCCESS: "Invitation sent successfully",
|
|
691
|
+
/** @default "Pending Invitations" */
|
|
692
|
+
PENDING_INVITATIONS: "Pending Invitations",
|
|
693
|
+
/** @default "Manage pending invitations to your organization." */
|
|
694
|
+
PENDING_INVITATIONS_DESCRIPTION: "Manage pending invitations to your organization.",
|
|
695
|
+
/** @default "Invitations you've received from organizations." */
|
|
696
|
+
PENDING_USER_INVITATIONS_DESCRIPTION: "Invitations you've received from organizations.",
|
|
697
|
+
/** @default "Cancel Invitation" */
|
|
698
|
+
CANCEL_INVITATION: "Cancel Invitation",
|
|
699
|
+
/** @default "Invitation cancelled successfully" */
|
|
700
|
+
INVITATION_CANCELLED: "Invitation cancelled successfully",
|
|
701
|
+
/** @default "Accept Invitation" */
|
|
702
|
+
ACCEPT_INVITATION: "Accept Invitation",
|
|
703
|
+
/** @default "You have been invited to join an organization." */
|
|
704
|
+
ACCEPT_INVITATION_DESCRIPTION: "You have been invited to join an organization.",
|
|
705
|
+
/** @default "Invitation accepted successfully" */
|
|
706
|
+
INVITATION_ACCEPTED: "Invitation accepted successfully",
|
|
707
|
+
/** @default "Invitation rejected successfully" */
|
|
708
|
+
INVITATION_REJECTED: "Invitation rejected successfully",
|
|
709
|
+
/** @default "Accept" */
|
|
710
|
+
ACCEPT: "Accept",
|
|
711
|
+
/** @default "Reject" */
|
|
712
|
+
REJECT: "Reject",
|
|
713
|
+
/** @default "This invitation has expired" */
|
|
714
|
+
INVITATION_EXPIRED: "This invitation has expired",
|
|
715
|
+
/** @default "Delete Organization" */
|
|
716
|
+
DELETE_ORGANIZATION: "Delete Organization",
|
|
717
|
+
/** @default "Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution." */
|
|
718
|
+
DELETE_ORGANIZATION_DESCRIPTION: "Permanently remove your organization and all of its contents. This action is not reversible \u2014 please continue with caution.",
|
|
719
|
+
/** @default "Organization deleted successfully" */
|
|
720
|
+
DELETE_ORGANIZATION_SUCCESS: "Organization deleted successfully",
|
|
721
|
+
/** @default "Enter the organization slug to continue:" */
|
|
722
|
+
DELETE_ORGANIZATION_INSTRUCTIONS: "Enter the organization slug to continue:",
|
|
723
|
+
/** @default "Organization slug is required" */
|
|
724
|
+
SLUG_REQUIRED: "Organization slug is required",
|
|
725
|
+
/** @default "The slug does not match" */
|
|
726
|
+
SLUG_DOES_NOT_MATCH: "The slug does not match",
|
|
727
|
+
/** @default "Unknown" */
|
|
728
|
+
UNKNOWN: "Unknown",
|
|
729
|
+
...BASE_ERROR_CODES,
|
|
730
|
+
...ADMIN_ERROR_CODES,
|
|
731
|
+
...ANONYMOUS_ERROR_CODES,
|
|
732
|
+
...API_KEY_ERROR_CODES,
|
|
733
|
+
...CAPTCHA_ERROR_CODES,
|
|
734
|
+
...EMAIL_OTP_ERROR_CODES,
|
|
735
|
+
...GENERIC_OAUTH_ERROR_CODES,
|
|
736
|
+
...HAVEIBEENPWNED_ERROR_CODES,
|
|
737
|
+
...MULTI_SESSION_ERROR_CODES,
|
|
738
|
+
...ORGANIZATION_ERROR_CODES,
|
|
739
|
+
...PASSKEY_ERROR_CODES,
|
|
740
|
+
...PHONE_NUMBER_ERROR_CODES,
|
|
741
|
+
...STRIPE_ERROR_CODES,
|
|
742
|
+
...TWO_FACTOR_ERROR_CODES,
|
|
743
|
+
...USERNAME_ERROR_CODES
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
// src/lib/view-paths.ts
|
|
747
|
+
var authViewPaths = {
|
|
748
|
+
/** @default "callback" */
|
|
749
|
+
CALLBACK: "callback",
|
|
750
|
+
/** @default "email-otp" */
|
|
751
|
+
EMAIL_OTP: "email-otp",
|
|
752
|
+
/** @default "forgot-password" */
|
|
753
|
+
FORGOT_PASSWORD: "forgot-password",
|
|
754
|
+
/** @default "magic-link" */
|
|
755
|
+
MAGIC_LINK: "magic-link",
|
|
756
|
+
/** @default "recover-account" */
|
|
757
|
+
RECOVER_ACCOUNT: "recover-account",
|
|
758
|
+
/** @default "reset-password" */
|
|
759
|
+
RESET_PASSWORD: "reset-password",
|
|
760
|
+
/** @default "sign-in" */
|
|
761
|
+
SIGN_IN: "sign-in",
|
|
762
|
+
/** @default "sign-out" */
|
|
763
|
+
SIGN_OUT: "sign-out",
|
|
764
|
+
/** @default "sign-up" */
|
|
765
|
+
SIGN_UP: "sign-up",
|
|
766
|
+
/** @default "two-factor" */
|
|
767
|
+
TWO_FACTOR: "two-factor",
|
|
768
|
+
/** @default "accept-invitation" */
|
|
769
|
+
ACCEPT_INVITATION: "accept-invitation"
|
|
770
|
+
};
|
|
771
|
+
var accountViewPaths = {
|
|
772
|
+
/** @default "settings" */
|
|
773
|
+
SETTINGS: "settings",
|
|
774
|
+
/** @default "security" */
|
|
775
|
+
SECURITY: "security",
|
|
776
|
+
/** @default "api-keys" */
|
|
777
|
+
API_KEYS: "api-keys",
|
|
778
|
+
/** @default "organizations" */
|
|
779
|
+
ORGANIZATIONS: "organizations"
|
|
780
|
+
};
|
|
781
|
+
var organizationViewPaths = {
|
|
782
|
+
/** @default "settings" */
|
|
783
|
+
SETTINGS: "settings",
|
|
784
|
+
/** @default "members" */
|
|
785
|
+
MEMBERS: "members",
|
|
786
|
+
/** @default "api-keys" */
|
|
787
|
+
API_KEYS: "api-keys"
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
exports.cn = cn; exports.isValidEmail = isValidEmail; exports.getLocalizedError = getLocalizedError; exports.getSearchParam = getSearchParam; exports.getViewByPath = getViewByPath; exports.getPasswordSchema = getPasswordSchema; exports.authLocalization = authLocalization; exports.authViewPaths = authViewPaths; exports.accountViewPaths = accountViewPaths; exports.organizationViewPaths = organizationViewPaths;
|