@settlemint/dalp-cli 2.1.7-main.23509105634 → 2.1.7-main.23511062166
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/dalp.js +101 -101
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -79509,7 +79509,7 @@ var timestampSerializer = {
|
|
|
79509
79509
|
};
|
|
79510
79510
|
var package_default = {
|
|
79511
79511
|
name: "@settlemint/dalp-sdk",
|
|
79512
|
-
version: "2.1.7-main.
|
|
79512
|
+
version: "2.1.7-main.23511062166",
|
|
79513
79513
|
private: false,
|
|
79514
79514
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
79515
79515
|
homepage: "https://settlemint.com",
|
|
@@ -79652,7 +79652,7 @@ function createDalpClient(config3) {
|
|
|
79652
79652
|
// package.json
|
|
79653
79653
|
var package_default2 = {
|
|
79654
79654
|
name: "@settlemint/dalp-cli",
|
|
79655
|
-
version: "2.1.7-main.
|
|
79655
|
+
version: "2.1.7-main.23511062166",
|
|
79656
79656
|
private: false,
|
|
79657
79657
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
79658
79658
|
homepage: "https://settlemint.com",
|
|
@@ -83578,7 +83578,7 @@ var whoamiCommand = exports_Cli.create("whoami", {
|
|
|
83578
83578
|
}
|
|
83579
83579
|
});
|
|
83580
83580
|
|
|
83581
|
-
// ../../node_modules/.bun/@better-auth+api-key@1.5.5+
|
|
83581
|
+
// ../../node_modules/.bun/@better-auth+api-key@1.5.5+e6141e43777f5000/node_modules/@better-auth/api-key/dist/error-codes-vwTWW2ez.mjs
|
|
83582
83582
|
init_error_codes();
|
|
83583
83583
|
var API_KEY_ERROR_CODES = defineErrorCodes({
|
|
83584
83584
|
INVALID_METADATA_TYPE: "metadata must be an object or undefined",
|
|
@@ -83614,7 +83614,7 @@ var API_KEY_ERROR_CODES = defineErrorCodes({
|
|
|
83614
83614
|
ORGANIZATION_PLUGIN_REQUIRED: "Organization plugin is required for organization-owned API keys. Please install and configure the organization plugin."
|
|
83615
83615
|
});
|
|
83616
83616
|
|
|
83617
|
-
// ../../node_modules/.bun/@better-auth+api-key@1.5.5+
|
|
83617
|
+
// ../../node_modules/.bun/@better-auth+api-key@1.5.5+e6141e43777f5000/node_modules/@better-auth/api-key/dist/client.mjs
|
|
83618
83618
|
var apiKeyClient = () => {
|
|
83619
83619
|
return {
|
|
83620
83620
|
id: "api-key",
|
|
@@ -83628,7 +83628,7 @@ var apiKeyClient = () => {
|
|
|
83628
83628
|
};
|
|
83629
83629
|
};
|
|
83630
83630
|
|
|
83631
|
-
// ../../node_modules/.bun/@better-auth+passkey@1.5.5+
|
|
83631
|
+
// ../../node_modules/.bun/@better-auth+passkey@1.5.5+e6141e43777f5000/node_modules/@better-auth/passkey/dist/error-codes-Dvu2mv33.mjs
|
|
83632
83632
|
init_error_codes();
|
|
83633
83633
|
var PASSKEY_ERROR_CODES = defineErrorCodes({
|
|
83634
83634
|
CHALLENGE_NOT_FOUND: "Challenge not found",
|
|
@@ -84046,7 +84046,7 @@ async function startAuthentication(options) {
|
|
|
84046
84046
|
authenticatorAttachment: toAuthenticatorAttachment(credential.authenticatorAttachment)
|
|
84047
84047
|
};
|
|
84048
84048
|
}
|
|
84049
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84049
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/broadcast-channel.mjs
|
|
84050
84050
|
var kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
84051
84051
|
var now = () => Math.floor(Date.now() / 1000);
|
|
84052
84052
|
var WindowBroadcastChannel = class {
|
|
@@ -84094,7 +84094,7 @@ function getGlobalBroadcastChannel(name = "better-auth.message") {
|
|
|
84094
84094
|
return globalThis[kBroadcastChannel];
|
|
84095
84095
|
}
|
|
84096
84096
|
|
|
84097
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84097
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/focus-manager.mjs
|
|
84098
84098
|
var kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
84099
84099
|
var WindowFocusManager = class {
|
|
84100
84100
|
listeners = /* @__PURE__ */ new Set;
|
|
@@ -84126,7 +84126,7 @@ function getGlobalFocusManager() {
|
|
|
84126
84126
|
return globalThis[kFocusManager];
|
|
84127
84127
|
}
|
|
84128
84128
|
|
|
84129
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84129
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/online-manager.mjs
|
|
84130
84130
|
var kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
84131
84131
|
var WindowOnlineManager = class {
|
|
84132
84132
|
listeners = /* @__PURE__ */ new Set;
|
|
@@ -84160,7 +84160,7 @@ function getGlobalOnlineManager() {
|
|
|
84160
84160
|
return globalThis[kOnlineManager];
|
|
84161
84161
|
}
|
|
84162
84162
|
|
|
84163
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84163
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/parser.mjs
|
|
84164
84164
|
var PROTO_POLLUTION_PATTERNS = {
|
|
84165
84165
|
proto: /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,
|
|
84166
84166
|
constructor: /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
|
|
@@ -84386,7 +84386,7 @@ var onMount = ($store, initialize) => {
|
|
|
84386
84386
|
};
|
|
84387
84387
|
});
|
|
84388
84388
|
};
|
|
84389
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84389
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/query.mjs
|
|
84390
84390
|
var isServer = () => typeof window === "undefined";
|
|
84391
84391
|
var useAuthQuery = (initializedAtom, path4, $fetch, options) => {
|
|
84392
84392
|
const value3 = atom({
|
|
@@ -84485,7 +84485,7 @@ var useAuthQuery = (initializedAtom, path4, $fetch, options) => {
|
|
|
84485
84485
|
return value3;
|
|
84486
84486
|
};
|
|
84487
84487
|
|
|
84488
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84488
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/session-refresh.mjs
|
|
84489
84489
|
var now2 = () => Math.floor(Date.now() / 1000);
|
|
84490
84490
|
var FOCUS_REFETCH_RATE_LIMIT_SECONDS = 5;
|
|
84491
84491
|
function createSessionRefreshManager(opts) {
|
|
@@ -84619,7 +84619,7 @@ function createSessionRefreshManager(opts) {
|
|
|
84619
84619
|
};
|
|
84620
84620
|
}
|
|
84621
84621
|
|
|
84622
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84622
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/wildcard.mjs
|
|
84623
84623
|
function escapeRegExpChar(char) {
|
|
84624
84624
|
if (char === "-" || char === "^" || char === "$" || char === "+" || char === "." || char === "(" || char === ")" || char === "|" || char === "[" || char === "]" || char === "{" || char === "}" || char === "*" || char === "?" || char === "\\")
|
|
84625
84625
|
return `\\${char}`;
|
|
@@ -84717,7 +84717,7 @@ function wildcardMatch(pattern, options) {
|
|
|
84717
84717
|
return fn;
|
|
84718
84718
|
}
|
|
84719
84719
|
|
|
84720
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84720
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/url.mjs
|
|
84721
84721
|
init_env();
|
|
84722
84722
|
init_error2();
|
|
84723
84723
|
function checkHasPath(url2) {
|
|
@@ -84817,7 +84817,7 @@ function getHost(url2) {
|
|
|
84817
84817
|
}
|
|
84818
84818
|
}
|
|
84819
84819
|
|
|
84820
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84820
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/fetch-plugins.mjs
|
|
84821
84821
|
var redirectPlugin = {
|
|
84822
84822
|
id: "redirect",
|
|
84823
84823
|
name: "Redirect",
|
|
@@ -84833,7 +84833,7 @@ var redirectPlugin = {
|
|
|
84833
84833
|
} }
|
|
84834
84834
|
};
|
|
84835
84835
|
|
|
84836
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
84836
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/session-atom.mjs
|
|
84837
84837
|
function getSessionAtom($fetch, options) {
|
|
84838
84838
|
const $signal = atom(false);
|
|
84839
84839
|
const session = useAuthQuery($signal, "/get-session", $fetch, { method: "GET" });
|
|
@@ -85489,7 +85489,7 @@ var betterFetch = async (url2, options) => {
|
|
|
85489
85489
|
};
|
|
85490
85490
|
};
|
|
85491
85491
|
|
|
85492
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85492
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/config.mjs
|
|
85493
85493
|
var resolvePublicAuthUrl = (basePath) => {
|
|
85494
85494
|
if (typeof process === "undefined")
|
|
85495
85495
|
return;
|
|
@@ -85599,12 +85599,12 @@ var getClientConfig = (options, loadEnv) => {
|
|
|
85599
85599
|
};
|
|
85600
85600
|
};
|
|
85601
85601
|
|
|
85602
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85602
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/is-atom.mjs
|
|
85603
85603
|
function isAtom(value3) {
|
|
85604
85604
|
return typeof value3 === "object" && value3 !== null && "get" in value3 && typeof value3.get === "function" && "lc" in value3 && typeof value3.lc === "number";
|
|
85605
85605
|
}
|
|
85606
85606
|
|
|
85607
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85607
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/proxy.mjs
|
|
85608
85608
|
function getMethod2(path4, knownPathMethods, args) {
|
|
85609
85609
|
const method = knownPathMethods[path4];
|
|
85610
85610
|
const { fetchOptions, query: _query, ...body } = args || {};
|
|
@@ -85686,7 +85686,7 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
|
|
|
85686
85686
|
return createProxy();
|
|
85687
85687
|
}
|
|
85688
85688
|
|
|
85689
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85689
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/vanilla.mjs
|
|
85690
85690
|
init_string2();
|
|
85691
85691
|
function createAuthClient(options) {
|
|
85692
85692
|
const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, atomListeners, $store } = getClientConfig(options);
|
|
@@ -85701,7 +85701,7 @@ function createAuthClient(options) {
|
|
|
85701
85701
|
}, $fetch, pluginPathMethods, pluginsAtoms, atomListeners);
|
|
85702
85702
|
}
|
|
85703
85703
|
|
|
85704
|
-
// ../../node_modules/.bun/@better-auth+passkey@1.5.5+
|
|
85704
|
+
// ../../node_modules/.bun/@better-auth+passkey@1.5.5+e6141e43777f5000/node_modules/@better-auth/passkey/dist/client.mjs
|
|
85705
85705
|
var getPasskeyActions = ($fetch, { $listPasskeys, $store }) => {
|
|
85706
85706
|
const signInPasskey = async (opts, options) => {
|
|
85707
85707
|
const response = await $fetch("/passkey/generate-authenticate-options", {
|
|
@@ -85848,7 +85848,7 @@ var passkeyClient = () => {
|
|
|
85848
85848
|
};
|
|
85849
85849
|
};
|
|
85850
85850
|
|
|
85851
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85851
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/additional-fields/client.mjs
|
|
85852
85852
|
var inferAdditionalFields = (schema) => {
|
|
85853
85853
|
return {
|
|
85854
85854
|
id: "additional-fields-client",
|
|
@@ -85856,7 +85856,7 @@ var inferAdditionalFields = (schema) => {
|
|
|
85856
85856
|
};
|
|
85857
85857
|
};
|
|
85858
85858
|
|
|
85859
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85859
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/admin/error-codes.mjs
|
|
85860
85860
|
init_error_codes();
|
|
85861
85861
|
var ADMIN_ERROR_CODES = defineErrorCodes({
|
|
85862
85862
|
FAILED_TO_CREATE_USER: "Failed to create user",
|
|
@@ -85882,7 +85882,7 @@ var ADMIN_ERROR_CODES = defineErrorCodes({
|
|
|
85882
85882
|
INVALID_ROLE_TYPE: "Invalid role type"
|
|
85883
85883
|
});
|
|
85884
85884
|
|
|
85885
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85885
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/access/access.mjs
|
|
85886
85886
|
init_error2();
|
|
85887
85887
|
function role(statements) {
|
|
85888
85888
|
return {
|
|
@@ -85932,7 +85932,7 @@ function createAccessControl(s) {
|
|
|
85932
85932
|
};
|
|
85933
85933
|
}
|
|
85934
85934
|
|
|
85935
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85935
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/admin/access/statement.mjs
|
|
85936
85936
|
var defaultStatements = {
|
|
85937
85937
|
user: [
|
|
85938
85938
|
"create",
|
|
@@ -85980,7 +85980,7 @@ var defaultRoles = {
|
|
|
85980
85980
|
user: userAc
|
|
85981
85981
|
};
|
|
85982
85982
|
|
|
85983
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85983
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/admin/has-permission.mjs
|
|
85984
85984
|
var hasPermission = (input) => {
|
|
85985
85985
|
if (input.userId && input.options?.adminUserIds?.includes(input.userId))
|
|
85986
85986
|
return true;
|
|
@@ -85994,7 +85994,7 @@ var hasPermission = (input) => {
|
|
|
85994
85994
|
return false;
|
|
85995
85995
|
};
|
|
85996
85996
|
|
|
85997
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
85997
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/admin/client.mjs
|
|
85998
85998
|
var adminClient = (options) => {
|
|
85999
85999
|
const roles3 = {
|
|
86000
86000
|
admin: adminAc,
|
|
@@ -86022,7 +86022,7 @@ var adminClient = (options) => {
|
|
|
86022
86022
|
};
|
|
86023
86023
|
};
|
|
86024
86024
|
|
|
86025
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86025
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/anonymous/error-codes.mjs
|
|
86026
86026
|
init_error_codes();
|
|
86027
86027
|
var ANONYMOUS_ERROR_CODES = defineErrorCodes({
|
|
86028
86028
|
INVALID_EMAIL_FORMAT: "Email was not generated in a valid format",
|
|
@@ -86034,7 +86034,7 @@ var ANONYMOUS_ERROR_CODES = defineErrorCodes({
|
|
|
86034
86034
|
DELETE_ANONYMOUS_USER_DISABLED: "Deleting anonymous users is disabled"
|
|
86035
86035
|
});
|
|
86036
86036
|
|
|
86037
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86037
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/client/plugins/infer-plugin.mjs
|
|
86038
86038
|
var InferServerPlugin = () => {
|
|
86039
86039
|
return {
|
|
86040
86040
|
id: "infer-server-plugin",
|
|
@@ -86042,12 +86042,12 @@ var InferServerPlugin = () => {
|
|
|
86042
86042
|
};
|
|
86043
86043
|
};
|
|
86044
86044
|
|
|
86045
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86045
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/custom-session/client.mjs
|
|
86046
86046
|
var customSessionClient = () => {
|
|
86047
86047
|
return InferServerPlugin();
|
|
86048
86048
|
};
|
|
86049
86049
|
|
|
86050
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86050
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/device-authorization/client.mjs
|
|
86051
86051
|
var deviceAuthorizationClient = () => {
|
|
86052
86052
|
return {
|
|
86053
86053
|
id: "device-authorization",
|
|
@@ -86062,7 +86062,7 @@ var deviceAuthorizationClient = () => {
|
|
|
86062
86062
|
};
|
|
86063
86063
|
};
|
|
86064
86064
|
|
|
86065
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86065
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/email-otp/error-codes.mjs
|
|
86066
86066
|
init_error_codes();
|
|
86067
86067
|
var EMAIL_OTP_ERROR_CODES = defineErrorCodes({
|
|
86068
86068
|
OTP_EXPIRED: "OTP expired",
|
|
@@ -86070,7 +86070,7 @@ var EMAIL_OTP_ERROR_CODES = defineErrorCodes({
|
|
|
86070
86070
|
TOO_MANY_ATTEMPTS: "Too many attempts"
|
|
86071
86071
|
});
|
|
86072
86072
|
|
|
86073
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86073
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/generic-oauth/error-codes.mjs
|
|
86074
86074
|
init_error_codes();
|
|
86075
86075
|
var GENERIC_OAUTH_ERROR_CODES = defineErrorCodes({
|
|
86076
86076
|
INVALID_OAUTH_CONFIGURATION: "Invalid OAuth configuration",
|
|
@@ -86083,11 +86083,11 @@ var GENERIC_OAUTH_ERROR_CODES = defineErrorCodes({
|
|
|
86083
86083
|
ISSUER_MISSING: "OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207)."
|
|
86084
86084
|
});
|
|
86085
86085
|
|
|
86086
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86086
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/multi-session/error-codes.mjs
|
|
86087
86087
|
init_error_codes();
|
|
86088
86088
|
var MULTI_SESSION_ERROR_CODES = defineErrorCodes({ INVALID_SESSION_TOKEN: "Invalid session token" });
|
|
86089
86089
|
|
|
86090
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86090
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/organization/error-codes.mjs
|
|
86091
86091
|
init_error_codes();
|
|
86092
86092
|
var ORGANIZATION_ERROR_CODES = defineErrorCodes({
|
|
86093
86093
|
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization",
|
|
@@ -86149,7 +86149,7 @@ var ORGANIZATION_ERROR_CODES = defineErrorCodes({
|
|
|
86149
86149
|
ROLE_IS_ASSIGNED_TO_MEMBERS: "Cannot delete a role that is assigned to members. Please reassign the members to a different role first"
|
|
86150
86150
|
});
|
|
86151
86151
|
|
|
86152
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86152
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/organization/access/statement.mjs
|
|
86153
86153
|
var defaultStatements2 = {
|
|
86154
86154
|
organization: ["update", "delete"],
|
|
86155
86155
|
member: [
|
|
@@ -86224,7 +86224,7 @@ var defaultRoles2 = {
|
|
|
86224
86224
|
member: memberAc
|
|
86225
86225
|
};
|
|
86226
86226
|
|
|
86227
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86227
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/organization/permission.mjs
|
|
86228
86228
|
var hasPermissionFn = (input, acRoles) => {
|
|
86229
86229
|
if (!input.permissions)
|
|
86230
86230
|
return false;
|
|
@@ -86240,7 +86240,7 @@ var hasPermissionFn = (input, acRoles) => {
|
|
|
86240
86240
|
return false;
|
|
86241
86241
|
};
|
|
86242
86242
|
|
|
86243
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86243
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/organization/client.mjs
|
|
86244
86244
|
var clientSideHasPermission = (input) => {
|
|
86245
86245
|
return hasPermissionFn(input, input.options.roles || defaultRoles2);
|
|
86246
86246
|
};
|
|
@@ -86330,7 +86330,7 @@ var organizationClient = (options) => {
|
|
|
86330
86330
|
};
|
|
86331
86331
|
};
|
|
86332
86332
|
|
|
86333
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86333
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/phone-number/error-codes.mjs
|
|
86334
86334
|
init_error_codes();
|
|
86335
86335
|
var PHONE_NUMBER_ERROR_CODES = defineErrorCodes({
|
|
86336
86336
|
INVALID_PHONE_NUMBER: "Invalid phone number",
|
|
@@ -86347,7 +86347,7 @@ var PHONE_NUMBER_ERROR_CODES = defineErrorCodes({
|
|
|
86347
86347
|
TOO_MANY_ATTEMPTS: "Too many attempts"
|
|
86348
86348
|
});
|
|
86349
86349
|
|
|
86350
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86350
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/two-factor/error-code.mjs
|
|
86351
86351
|
init_error_codes();
|
|
86352
86352
|
var TWO_FACTOR_ERROR_CODES = defineErrorCodes({
|
|
86353
86353
|
OTP_NOT_ENABLED: "OTP not enabled",
|
|
@@ -86361,7 +86361,7 @@ var TWO_FACTOR_ERROR_CODES = defineErrorCodes({
|
|
|
86361
86361
|
INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie"
|
|
86362
86362
|
});
|
|
86363
86363
|
|
|
86364
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86364
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/two-factor/client.mjs
|
|
86365
86365
|
var twoFactorClient = (options) => {
|
|
86366
86366
|
return {
|
|
86367
86367
|
id: "two-factor",
|
|
@@ -86394,7 +86394,7 @@ var twoFactorClient = (options) => {
|
|
|
86394
86394
|
};
|
|
86395
86395
|
};
|
|
86396
86396
|
|
|
86397
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86397
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/plugins/username/error-codes.mjs
|
|
86398
86398
|
init_error_codes();
|
|
86399
86399
|
var USERNAME_ERROR_CODES = defineErrorCodes({
|
|
86400
86400
|
INVALID_USERNAME_OR_PASSWORD: "Invalid username or password",
|
|
@@ -86407,7 +86407,7 @@ var USERNAME_ERROR_CODES = defineErrorCodes({
|
|
|
86407
86407
|
INVALID_DISPLAY_USERNAME: "Display username is invalid"
|
|
86408
86408
|
});
|
|
86409
86409
|
|
|
86410
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
86410
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/crypto/random.mjs
|
|
86411
86411
|
init_random();
|
|
86412
86412
|
var generateRandomString = createRandomStringGenerator("a-z", "0-9", "A-Z", "-_");
|
|
86413
86413
|
|
|
@@ -90185,7 +90185,7 @@ function decodeJwt(jwt2) {
|
|
|
90185
90185
|
throw new JWTInvalid("Invalid JWT Claims Set");
|
|
90186
90186
|
return result;
|
|
90187
90187
|
}
|
|
90188
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
90188
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/crypto/jwt.mjs
|
|
90189
90189
|
async function signJWT(payload, secret, expiresIn = 3600) {
|
|
90190
90190
|
return await new SignJWT(payload).setProtectedHeader({ alg: "HS256" }).setIssuedAt().setExpirationTime(Math.floor(Date.now() / 1000) + expiresIn).sign(new TextEncoder().encode(secret));
|
|
90191
90191
|
}
|
|
@@ -90333,7 +90333,7 @@ async function symmetricDecodeJWT(token, secret, salt) {
|
|
|
90333
90333
|
}
|
|
90334
90334
|
}
|
|
90335
90335
|
|
|
90336
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
90336
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/crypto/password.mjs
|
|
90337
90337
|
init_error2();
|
|
90338
90338
|
|
|
90339
90339
|
// ../../node_modules/.bun/@better-auth+utils@0.3.1/node_modules/@better-auth/utils/dist/hex.mjs
|
|
@@ -91305,7 +91305,7 @@ var _poly1305_aead = (xorStream) => (key, nonce3, AAD) => {
|
|
|
91305
91305
|
var chacha20poly1305 = /* @__PURE__ */ wrapCipher({ blockSize: 64, nonceLength: 12, tagLength: 16 }, _poly1305_aead(chacha20));
|
|
91306
91306
|
var xchacha20poly1305 = /* @__PURE__ */ wrapCipher({ blockSize: 64, nonceLength: 24, tagLength: 16 }, _poly1305_aead(xchacha20));
|
|
91307
91307
|
|
|
91308
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91308
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/crypto/index.mjs
|
|
91309
91309
|
var ENVELOPE_PREFIX = "$ba$";
|
|
91310
91310
|
function parseEnvelope(data2) {
|
|
91311
91311
|
if (!data2.startsWith(ENVELOPE_PREFIX))
|
|
@@ -91360,7 +91360,7 @@ var symmetricDecrypt = async ({ key, data: data2 }) => {
|
|
|
91360
91360
|
throw new Error("Cannot decrypt legacy bare-hex payload: no legacy secret available. Set BETTER_AUTH_SECRET for backwards compatibility.");
|
|
91361
91361
|
};
|
|
91362
91362
|
|
|
91363
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91363
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/date.mjs
|
|
91364
91364
|
var getDate = (span, unit = "ms") => {
|
|
91365
91365
|
return new Date(Date.now() + (unit === "sec" ? span * 1000 : span));
|
|
91366
91366
|
};
|
|
@@ -91436,7 +91436,7 @@ var verificationSchema = coreSchema.extend({
|
|
|
91436
91436
|
identifier: string2()
|
|
91437
91437
|
});
|
|
91438
91438
|
|
|
91439
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91439
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/schema.mjs
|
|
91440
91440
|
init_error2();
|
|
91441
91441
|
|
|
91442
91442
|
// ../../node_modules/.bun/@better-auth+core@1.5.5+9ce0b2c039e580c5/node_modules/@better-auth/core/dist/utils/db.mjs
|
|
@@ -91450,7 +91450,7 @@ function filterOutputFields(data2, additionalFields) {
|
|
|
91450
91450
|
}), {});
|
|
91451
91451
|
}
|
|
91452
91452
|
|
|
91453
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91453
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/schema.mjs
|
|
91454
91454
|
var cache2 = /* @__PURE__ */ new WeakMap;
|
|
91455
91455
|
function getFields(options, modelName, mode) {
|
|
91456
91456
|
const cacheKey = `${modelName}:${mode}`;
|
|
@@ -91583,12 +91583,12 @@ function mergeSchema(schema, newSchema) {
|
|
|
91583
91583
|
return schema;
|
|
91584
91584
|
}
|
|
91585
91585
|
|
|
91586
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91586
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/is-promise.mjs
|
|
91587
91587
|
function isPromise(obj) {
|
|
91588
91588
|
return !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";
|
|
91589
91589
|
}
|
|
91590
91590
|
|
|
91591
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91591
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/cookies/session-store.mjs
|
|
91592
91592
|
init_json();
|
|
91593
91593
|
init_zod();
|
|
91594
91594
|
var ALLOWED_COOKIE_SIZE = 4096;
|
|
@@ -91772,7 +91772,7 @@ var getSessionQuerySchema = optional(object({
|
|
|
91772
91772
|
disableRefresh: exports_coerce.boolean().meta({ description: "Disable session refresh. Useful for checking session status, without updating the session" }).optional()
|
|
91773
91773
|
}));
|
|
91774
91774
|
|
|
91775
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91775
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/time.mjs
|
|
91776
91776
|
var SEC = 1000;
|
|
91777
91777
|
var MIN = SEC * 60;
|
|
91778
91778
|
var HOUR = MIN * 60;
|
|
@@ -91781,7 +91781,7 @@ var WEEK = DAY * 7;
|
|
|
91781
91781
|
var MONTH = DAY * 30;
|
|
91782
91782
|
var YEAR = DAY * 365.25;
|
|
91783
91783
|
|
|
91784
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91784
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/cookies/index.mjs
|
|
91785
91785
|
init_env();
|
|
91786
91786
|
init_error2();
|
|
91787
91787
|
init_json();
|
|
@@ -91837,7 +91837,7 @@ var createHMAC = (algorithm = "SHA-256", encoding = "none") => {
|
|
|
91837
91837
|
return hmac2;
|
|
91838
91838
|
};
|
|
91839
91839
|
|
|
91840
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91840
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/cookies/index.mjs
|
|
91841
91841
|
async function setCookieCache(ctx, session, dontRememberMe) {
|
|
91842
91842
|
if (!ctx.context.options.session?.cookieCache?.enabled)
|
|
91843
91843
|
return;
|
|
@@ -91936,7 +91936,7 @@ function deleteSessionCookie(ctx, skipDontRememberMe) {
|
|
|
91936
91936
|
expireCookie(ctx, ctx.context.authCookies.dontRememberToken);
|
|
91937
91937
|
}
|
|
91938
91938
|
|
|
91939
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
91939
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/state.mjs
|
|
91940
91940
|
init_error2();
|
|
91941
91941
|
init_zod();
|
|
91942
91942
|
var stateDataSchema = looseObject({
|
|
@@ -92195,10 +92195,10 @@ var queueAfterTransactionHook = async (hook) => {
|
|
|
92195
92195
|
});
|
|
92196
92196
|
};
|
|
92197
92197
|
|
|
92198
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
92198
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/state/oauth.mjs
|
|
92199
92199
|
var { get: getOAuthState, set: setOAuthState } = defineRequestState(() => null);
|
|
92200
92200
|
|
|
92201
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
92201
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/oauth2/state.mjs
|
|
92202
92202
|
init_error2();
|
|
92203
92203
|
async function generateState(c, link, additionalData) {
|
|
92204
92204
|
const callbackURL = c.body?.callbackURL || c.context.options.baseURL;
|
|
@@ -92245,10 +92245,10 @@ async function parseState(c) {
|
|
|
92245
92245
|
return parsedData;
|
|
92246
92246
|
}
|
|
92247
92247
|
|
|
92248
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
92248
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/hide-metadata.mjs
|
|
92249
92249
|
var HIDE_METADATA = { scope: "server" };
|
|
92250
92250
|
|
|
92251
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
92251
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/is-api-error.mjs
|
|
92252
92252
|
init_error2();
|
|
92253
92253
|
|
|
92254
92254
|
// ../../node_modules/.bun/better-call@1.3.2+3c5d820c62823f0b/node_modules/better-call/dist/index.mjs
|
|
@@ -92796,12 +92796,12 @@ createMiddleware.create = (opts) => {
|
|
|
92796
92796
|
return fn;
|
|
92797
92797
|
};
|
|
92798
92798
|
|
|
92799
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
92799
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/is-api-error.mjs
|
|
92800
92800
|
function isAPIError2(error48) {
|
|
92801
92801
|
return error48 instanceof APIError || error48 instanceof APIError2 || error48?.name === "APIError";
|
|
92802
92802
|
}
|
|
92803
92803
|
|
|
92804
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
92804
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/auth/trusted-origins.mjs
|
|
92805
92805
|
var matchesOriginPattern = (url2, pattern, settings) => {
|
|
92806
92806
|
if (url2.startsWith("/")) {
|
|
92807
92807
|
if (settings?.allowRelativePaths)
|
|
@@ -92820,7 +92820,7 @@ var matchesOriginPattern = (url2, pattern, settings) => {
|
|
|
92820
92820
|
return protocol === "http:" || protocol === "https:" || !protocol ? pattern === getOrigin(url2) : url2.startsWith(pattern);
|
|
92821
92821
|
};
|
|
92822
92822
|
|
|
92823
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
92823
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/middlewares/origin-check.mjs
|
|
92824
92824
|
init_error2();
|
|
92825
92825
|
|
|
92826
92826
|
// ../../node_modules/.bun/@better-auth+core@1.5.5+9ce0b2c039e580c5/node_modules/@better-auth/core/dist/utils/url.mjs
|
|
@@ -92875,7 +92875,7 @@ function deprecate(fn, message2, logger2) {
|
|
|
92875
92875
|
};
|
|
92876
92876
|
}
|
|
92877
92877
|
|
|
92878
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
92878
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/middlewares/origin-check.mjs
|
|
92879
92879
|
function shouldSkipCSRFForBackwardCompat(ctx) {
|
|
92880
92880
|
return ctx.context.skipOriginCheck === true && ctx.context.options.advanced?.disableCSRFCheck === undefined;
|
|
92881
92881
|
}
|
|
@@ -93010,7 +93010,7 @@ async function validateFormCsrf(ctx) {
|
|
|
93010
93010
|
}
|
|
93011
93011
|
}
|
|
93012
93012
|
|
|
93013
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93013
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/get-request-ip.mjs
|
|
93014
93014
|
init_env();
|
|
93015
93015
|
|
|
93016
93016
|
// ../../node_modules/.bun/@better-auth+core@1.5.5+9ce0b2c039e580c5/node_modules/@better-auth/core/dist/utils/ip.mjs
|
|
@@ -93087,7 +93087,7 @@ function normalizeIP(ip, options = {}) {
|
|
|
93087
93087
|
return normalizeIPv6(ip, options.ipv6Subnet || 64);
|
|
93088
93088
|
}
|
|
93089
93089
|
|
|
93090
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93090
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/get-request-ip.mjs
|
|
93091
93091
|
var LOCALHOST_IP = "127.0.0.1";
|
|
93092
93092
|
function getIp(req, options) {
|
|
93093
93093
|
if (options.advanced?.ipAddress?.disableIpTracking)
|
|
@@ -93107,13 +93107,13 @@ function getIp(req, options) {
|
|
|
93107
93107
|
return null;
|
|
93108
93108
|
}
|
|
93109
93109
|
|
|
93110
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93110
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/rate-limiter/index.mjs
|
|
93111
93111
|
init_json();
|
|
93112
93112
|
|
|
93113
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93113
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/state/should-session-refresh.mjs
|
|
93114
93114
|
var { get: getShouldSkipSessionRefresh, set: setShouldSkipSessionRefresh } = defineRequestState(() => false);
|
|
93115
93115
|
|
|
93116
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93116
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/_virtual/_rolldown/runtime.mjs
|
|
93117
93117
|
var __defProp3 = Object.defineProperty;
|
|
93118
93118
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
93119
93119
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -93147,7 +93147,7 @@ var __copyProps = (to, from2, except, desc) => {
|
|
|
93147
93147
|
};
|
|
93148
93148
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
93149
93149
|
|
|
93150
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93150
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/get-schema.mjs
|
|
93151
93151
|
function getSchema(config3) {
|
|
93152
93152
|
const tables = getAuthTables(config3);
|
|
93153
93153
|
const schema = {};
|
|
@@ -93182,7 +93182,7 @@ function getSchema(config3) {
|
|
|
93182
93182
|
return schema;
|
|
93183
93183
|
}
|
|
93184
93184
|
|
|
93185
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93185
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/field-converter.mjs
|
|
93186
93186
|
function convertToDB(fields, values) {
|
|
93187
93187
|
const result = values.id ? { id: values.id } : {};
|
|
93188
93188
|
for (const key in fields) {
|
|
@@ -93203,7 +93203,7 @@ function convertFromDB(fields, values) {
|
|
|
93203
93203
|
return result;
|
|
93204
93204
|
}
|
|
93205
93205
|
|
|
93206
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93206
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/with-hooks.mjs
|
|
93207
93207
|
function getWithHooks(adapter, ctx) {
|
|
93208
93208
|
const hooks = ctx.hooks;
|
|
93209
93209
|
async function createWithHooks(data2, model, customCreateFn) {
|
|
@@ -93376,7 +93376,7 @@ function getWithHooks(adapter, ctx) {
|
|
|
93376
93376
|
};
|
|
93377
93377
|
}
|
|
93378
93378
|
|
|
93379
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93379
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/verification-token-storage.mjs
|
|
93380
93380
|
var defaultKeyHasher = async (identifier) => {
|
|
93381
93381
|
const hash4 = await createHash2("SHA-256").digest(new TextEncoder().encode(identifier));
|
|
93382
93382
|
return base64Url.encode(new Uint8Array(hash4), { padding: false });
|
|
@@ -93404,7 +93404,7 @@ function getStorageOption(identifier, config3) {
|
|
|
93404
93404
|
return config3;
|
|
93405
93405
|
}
|
|
93406
93406
|
|
|
93407
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
93407
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/internal-adapter.mjs
|
|
93408
93408
|
init_id2();
|
|
93409
93409
|
init_json();
|
|
93410
93410
|
function getTTLSeconds(expiresAt, now4 = Date.now()) {
|
|
@@ -94081,7 +94081,7 @@ var createInternalAdapter = (adapter, ctx) => {
|
|
|
94081
94081
|
};
|
|
94082
94082
|
};
|
|
94083
94083
|
|
|
94084
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
94084
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/to-zod.mjs
|
|
94085
94085
|
init_zod();
|
|
94086
94086
|
function toZodSchema({ fields, isClientSide }) {
|
|
94087
94087
|
const zodFields = Object.keys(fields).reduce((acc, key) => {
|
|
@@ -94110,7 +94110,7 @@ function toZodSchema({ fields, isClientSide }) {
|
|
|
94110
94110
|
}, {});
|
|
94111
94111
|
return object(zodFields);
|
|
94112
94112
|
}
|
|
94113
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
94113
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/index.mjs
|
|
94114
94114
|
var db_exports = /* @__PURE__ */ __exportAll({
|
|
94115
94115
|
convertFromDB: () => convertFromDB,
|
|
94116
94116
|
convertToDB: () => convertToDB,
|
|
@@ -94131,7 +94131,7 @@ var db_exports = /* @__PURE__ */ __exportAll({
|
|
|
94131
94131
|
});
|
|
94132
94132
|
__reExport(db_exports, exports_db);
|
|
94133
94133
|
|
|
94134
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
94134
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/session.mjs
|
|
94135
94135
|
init_error2();
|
|
94136
94136
|
init_json();
|
|
94137
94137
|
init_zod();
|
|
@@ -94550,7 +94550,7 @@ var revokeOtherSessions = createAuthEndpoint("/revoke-other-sessions", {
|
|
|
94550
94550
|
return ctx.json({ status: true });
|
|
94551
94551
|
});
|
|
94552
94552
|
|
|
94553
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
94553
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/context/helpers.mjs
|
|
94554
94554
|
init_env();
|
|
94555
94555
|
async function getAwaitableValue(arr, item) {
|
|
94556
94556
|
if (!arr)
|
|
@@ -94562,7 +94562,7 @@ async function getAwaitableValue(arr, item) {
|
|
|
94562
94562
|
}
|
|
94563
94563
|
}
|
|
94564
94564
|
|
|
94565
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
94565
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/oauth2/utils.mjs
|
|
94566
94566
|
function isLikelyEncrypted(token) {
|
|
94567
94567
|
if (token.startsWith("$ba$"))
|
|
94568
94568
|
return true;
|
|
@@ -94590,7 +94590,7 @@ function setTokenUtil(token, ctx) {
|
|
|
94590
94590
|
return token;
|
|
94591
94591
|
}
|
|
94592
94592
|
|
|
94593
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
94593
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/account.mjs
|
|
94594
94594
|
init_error2();
|
|
94595
94595
|
|
|
94596
94596
|
// ../../node_modules/.bun/@better-auth+core@1.5.5+9ce0b2c039e580c5/node_modules/@better-auth/core/dist/social-providers/apple.mjs
|
|
@@ -97699,7 +97699,7 @@ var socialProviders = {
|
|
|
97699
97699
|
var socialProviderList = Object.keys(socialProviders);
|
|
97700
97700
|
var SocialProviderListEnum = _enum2(socialProviderList).or(string2());
|
|
97701
97701
|
|
|
97702
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
97702
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/account.mjs
|
|
97703
97703
|
init_zod();
|
|
97704
97704
|
var listUserAccounts = createAuthEndpoint("/list-accounts", {
|
|
97705
97705
|
method: "GET",
|
|
@@ -98215,7 +98215,7 @@ var accountInfo = createAuthEndpoint("/account-info", {
|
|
|
98215
98215
|
return ctx.json(info2);
|
|
98216
98216
|
});
|
|
98217
98217
|
|
|
98218
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
98218
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/email-verification.mjs
|
|
98219
98219
|
init_error2();
|
|
98220
98220
|
init_zod();
|
|
98221
98221
|
async function createEmailVerificationToken(secret, email3, updateTo, expiresIn = 3600, extraPayload) {
|
|
@@ -98518,7 +98518,7 @@ var verifyEmail = createAuthEndpoint("/verify-email", {
|
|
|
98518
98518
|
});
|
|
98519
98519
|
});
|
|
98520
98520
|
|
|
98521
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
98521
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/oauth2/link-account.mjs
|
|
98522
98522
|
init_env();
|
|
98523
98523
|
async function handleOAuthUserInfo(c, opts) {
|
|
98524
98524
|
const { userInfo, account: account3, callbackURL, disableSignUp, overrideUserInfo } = opts;
|
|
@@ -98663,7 +98663,7 @@ Error: `, e);
|
|
|
98663
98663
|
};
|
|
98664
98664
|
}
|
|
98665
98665
|
|
|
98666
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
98666
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/callback.mjs
|
|
98667
98667
|
init_json();
|
|
98668
98668
|
init_zod();
|
|
98669
98669
|
var schema = object({
|
|
@@ -98842,7 +98842,7 @@ var callbackOAuth = createAuthEndpoint("/callback/:id", {
|
|
|
98842
98842
|
throw c.redirect(toRedirectTo);
|
|
98843
98843
|
});
|
|
98844
98844
|
|
|
98845
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
98845
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/error.mjs
|
|
98846
98846
|
init_env();
|
|
98847
98847
|
function sanitize(input) {
|
|
98848
98848
|
return input.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/&(?!amp;|lt;|gt;|quot;|#39;|#x[0-9a-fA-F]+;|#[0-9]+;)/g, "&");
|
|
@@ -99225,7 +99225,7 @@ var error48 = createAuthEndpoint("/error", {
|
|
|
99225
99225
|
return new Response(html(c.context.options, safeCode, safeDescription), { headers: { "Content-Type": "text/html" } });
|
|
99226
99226
|
});
|
|
99227
99227
|
|
|
99228
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99228
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/ok.mjs
|
|
99229
99229
|
var ok = createAuthEndpoint("/ok", {
|
|
99230
99230
|
method: "GET",
|
|
99231
99231
|
metadata: {
|
|
@@ -99249,7 +99249,7 @@ var ok = createAuthEndpoint("/ok", {
|
|
|
99249
99249
|
return ctx.json({ ok: true });
|
|
99250
99250
|
});
|
|
99251
99251
|
|
|
99252
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99252
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/utils/password.mjs
|
|
99253
99253
|
init_error2();
|
|
99254
99254
|
async function validatePassword(ctx, data2) {
|
|
99255
99255
|
const credentialAccount = (await ctx.context.internalAdapter.findAccounts(data2.userId))?.find((account3) => account3.providerId === "credential");
|
|
@@ -99262,7 +99262,7 @@ async function validatePassword(ctx, data2) {
|
|
|
99262
99262
|
});
|
|
99263
99263
|
}
|
|
99264
99264
|
|
|
99265
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99265
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/password.mjs
|
|
99266
99266
|
init_error2();
|
|
99267
99267
|
init_id2();
|
|
99268
99268
|
init_zod();
|
|
@@ -99460,7 +99460,7 @@ var verifyPassword2 = createAuthEndpoint("/verify-password", {
|
|
|
99460
99460
|
return ctx.json({ status: true });
|
|
99461
99461
|
});
|
|
99462
99462
|
|
|
99463
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99463
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/sign-in.mjs
|
|
99464
99464
|
init_error2();
|
|
99465
99465
|
init_zod();
|
|
99466
99466
|
var socialSignInBodySchema = object({
|
|
@@ -99489,7 +99489,7 @@ var socialSignInBodySchema = object({
|
|
|
99489
99489
|
additionalData: record(string2(), any()).optional().meta({ description: "Additional data to be passed through the OAuth flow" })
|
|
99490
99490
|
});
|
|
99491
99491
|
|
|
99492
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99492
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/sign-out.mjs
|
|
99493
99493
|
var signOut = createAuthEndpoint("/sign-out", {
|
|
99494
99494
|
method: "POST",
|
|
99495
99495
|
operationId: "signOut",
|
|
@@ -99517,7 +99517,7 @@ var signOut = createAuthEndpoint("/sign-out", {
|
|
|
99517
99517
|
return ctx.json({ success: true });
|
|
99518
99518
|
});
|
|
99519
99519
|
|
|
99520
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99520
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/sign-up.mjs
|
|
99521
99521
|
init_env();
|
|
99522
99522
|
init_error2();
|
|
99523
99523
|
init_id2();
|
|
@@ -99531,12 +99531,12 @@ var signUpEmailBodySchema = object({
|
|
|
99531
99531
|
rememberMe: boolean2().optional()
|
|
99532
99532
|
}).and(record(string2(), any()));
|
|
99533
99533
|
|
|
99534
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99534
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/update-session.mjs
|
|
99535
99535
|
init_error2();
|
|
99536
99536
|
init_zod();
|
|
99537
99537
|
var updateSessionBodySchema = record(string2().meta({ description: "Field name must be a string" }), any());
|
|
99538
99538
|
|
|
99539
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99539
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/routes/update-user.mjs
|
|
99540
99540
|
init_error2();
|
|
99541
99541
|
init_zod();
|
|
99542
99542
|
var updateUserBodySchema = record(string2().meta({ description: "Field name must be a string" }), any());
|
|
@@ -99962,7 +99962,7 @@ var changeEmail = createAuthEndpoint("/change-email", {
|
|
|
99962
99962
|
return ctx.json({ status: true });
|
|
99963
99963
|
});
|
|
99964
99964
|
|
|
99965
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99965
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/to-auth-endpoints.mjs
|
|
99966
99966
|
init_env();
|
|
99967
99967
|
init_error2();
|
|
99968
99968
|
var defuReplaceArrays = createDefu((obj, key, value3) => {
|
|
@@ -99972,25 +99972,25 @@ var defuReplaceArrays = createDefu((obj, key, value3) => {
|
|
|
99972
99972
|
}
|
|
99973
99973
|
});
|
|
99974
99974
|
|
|
99975
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99975
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/api/index.mjs
|
|
99976
99976
|
init_env();
|
|
99977
99977
|
init_error2();
|
|
99978
99978
|
|
|
99979
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99979
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/adapter-base.mjs
|
|
99980
99980
|
init_env();
|
|
99981
99981
|
|
|
99982
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99982
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/adapter-kysely.mjs
|
|
99983
99983
|
init_error2();
|
|
99984
99984
|
|
|
99985
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99985
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/db/get-migration.mjs
|
|
99986
99986
|
init_env();
|
|
99987
99987
|
init_dist();
|
|
99988
99988
|
init_adapter();
|
|
99989
99989
|
|
|
99990
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99990
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/context/secret-utils.mjs
|
|
99991
99991
|
init_error2();
|
|
99992
99992
|
|
|
99993
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
99993
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/context/create-context.mjs
|
|
99994
99994
|
init_env();
|
|
99995
99995
|
init_error2();
|
|
99996
99996
|
init_id2();
|
|
@@ -99999,14 +99999,14 @@ init_id2();
|
|
|
99999
99999
|
init_env();
|
|
100000
100000
|
init_random();
|
|
100001
100001
|
|
|
100002
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
100002
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/context/init.mjs
|
|
100003
100003
|
init_error2();
|
|
100004
100004
|
init_dist();
|
|
100005
100005
|
|
|
100006
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
100006
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/auth/base.mjs
|
|
100007
100007
|
init_error2();
|
|
100008
100008
|
|
|
100009
|
-
// ../../node_modules/.bun/better-auth@1.5.5+
|
|
100009
|
+
// ../../node_modules/.bun/better-auth@1.5.5+1dfb26c4ce746bec/node_modules/better-auth/dist/index.mjs
|
|
100010
100010
|
init_env();
|
|
100011
100011
|
init_error2();
|
|
100012
100012
|
init_error_codes();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-cli",
|
|
3
|
-
"version": "2.1.7-main.
|
|
3
|
+
"version": "2.1.7-main.23511062166",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
6
6
|
"homepage": "https://settlemint.com",
|