@settlemint/sdk-js 2.3.1-pre38d4aa3 → 2.3.1-preecf4e66
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/settlemint.cjs +5 -5
- package/dist/settlemint.cjs.map +1 -1
- package/dist/settlemint.d.cts +2 -10
- package/dist/settlemint.d.ts +2 -10
- package/dist/settlemint.mjs +2 -2
- package/dist/settlemint.mjs.map +1 -1
- package/package.json +3 -3
package/dist/settlemint.cjs
CHANGED
|
@@ -27,7 +27,7 @@ var import_http = require("@settlemint/sdk-utils/http");
|
|
|
27
27
|
var import_runtime = require("@settlemint/sdk-utils/runtime");
|
|
28
28
|
var import_validation3 = require("@settlemint/sdk-utils/validation");
|
|
29
29
|
var import_graphql_request = require("graphql-request");
|
|
30
|
-
var
|
|
30
|
+
var import_v42 = require("zod/v4");
|
|
31
31
|
|
|
32
32
|
// src/helpers/graphql.ts
|
|
33
33
|
var import_gql = require("gql.tada");
|
|
@@ -1741,8 +1741,8 @@ var privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
|
|
|
1741
1741
|
|
|
1742
1742
|
// src/helpers/client-options.schema.ts
|
|
1743
1743
|
var import_validation2 = require("@settlemint/sdk-utils/validation");
|
|
1744
|
-
var
|
|
1745
|
-
var ClientOptionsSchema =
|
|
1744
|
+
var import_v4 = require("zod/v4");
|
|
1745
|
+
var ClientOptionsSchema = import_v4.z.object({
|
|
1746
1746
|
/** The access token used to authenticate with the SettleMint platform */
|
|
1747
1747
|
accessToken: import_validation2.AccessTokenSchema,
|
|
1748
1748
|
/** The URL of the SettleMint instance to connect to */
|
|
@@ -1798,9 +1798,9 @@ function getPincodeVerificationChallengeResponse({
|
|
|
1798
1798
|
function createSettleMintClient(options) {
|
|
1799
1799
|
(0, import_runtime.ensureServer)();
|
|
1800
1800
|
const validatedOptions = options.anonymous ? (0, import_validation3.validate)(
|
|
1801
|
-
|
|
1801
|
+
import_v42.z.object({
|
|
1802
1802
|
...ClientOptionsSchema.shape,
|
|
1803
|
-
accessToken:
|
|
1803
|
+
accessToken: import_v42.z.literal("")
|
|
1804
1804
|
}),
|
|
1805
1805
|
options
|
|
1806
1806
|
) : (0, import_validation3.validate)(ClientOptionsSchema, options);
|