@settlemint/sdk-js 2.3.13 → 2.3.14
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/README.md +19 -19
- package/dist/settlemint.cjs +2 -2
- package/dist/settlemint.cjs.map +1 -1
- package/dist/settlemint.d.cts +29 -29
- package/dist/settlemint.js +3 -3
- package/dist/settlemint.js.map +1 -1
- package/package.json +2 -2
package/dist/settlemint.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Id } from "@settlemint/sdk-utils/validation";
|
|
2
|
-
import * as gql_tada2 from "gql.tada";
|
|
3
2
|
import * as gql_tada0 from "gql.tada";
|
|
3
|
+
import * as gql_tada1 from "gql.tada";
|
|
4
|
+
import * as gql_tada3 from "gql.tada";
|
|
4
5
|
import * as gql_tada5 from "gql.tada";
|
|
5
6
|
import * as gql_tada7 from "gql.tada";
|
|
6
7
|
import * as gql_tada9 from "gql.tada";
|
|
7
|
-
import * as gql_tada3 from "gql.tada";
|
|
8
|
-
import * as gql_tada12 from "gql.tada";
|
|
9
|
-
import * as gql_tada14 from "gql.tada";
|
|
10
|
-
import * as gql_tada16 from "gql.tada";
|
|
11
8
|
import * as gql_tada11 from "gql.tada";
|
|
12
|
-
import * as
|
|
9
|
+
import * as gql_tada13 from "gql.tada";
|
|
10
|
+
import * as gql_tada15 from "gql.tada";
|
|
11
|
+
import * as gql_tada18 from "gql.tada";
|
|
13
12
|
import * as gql_tada19 from "gql.tada";
|
|
13
|
+
import * as gql_tada21 from "gql.tada";
|
|
14
14
|
import * as gql_tada23 from "gql.tada";
|
|
15
15
|
import { ResultOf, VariablesOf } from "gql.tada";
|
|
16
16
|
import { z } from "zod/v4";
|
|
@@ -102419,7 +102419,7 @@ declare module 'gql.tada' {
|
|
|
102419
102419
|
}
|
|
102420
102420
|
//#endregion
|
|
102421
102421
|
//#region src/graphql/application-access-tokens.d.ts
|
|
102422
|
-
declare const createApplicationAccessToken:
|
|
102422
|
+
declare const createApplicationAccessToken: gql_tada0.TadaDocumentNode<{
|
|
102423
102423
|
createApplicationAccessToken: {
|
|
102424
102424
|
token: string | null;
|
|
102425
102425
|
};
|
|
@@ -102482,7 +102482,7 @@ type CreateApplicationAccessTokenArgs = Omit<VariablesOf<typeof createApplicatio
|
|
|
102482
102482
|
/**
|
|
102483
102483
|
* GraphQL fragment containing core application fields.
|
|
102484
102484
|
*/
|
|
102485
|
-
declare const ApplicationFragment:
|
|
102485
|
+
declare const ApplicationFragment: gql_tada1.TadaDocumentNode<{
|
|
102486
102486
|
id: string;
|
|
102487
102487
|
uniqueName: string;
|
|
102488
102488
|
name: string;
|
|
@@ -102503,7 +102503,7 @@ type Application = ResultOf<typeof ApplicationFragment>;
|
|
|
102503
102503
|
/**
|
|
102504
102504
|
* Mutation to create a new application.
|
|
102505
102505
|
*/
|
|
102506
|
-
declare const createApplication:
|
|
102506
|
+
declare const createApplication: gql_tada1.TadaDocumentNode<{
|
|
102507
102507
|
createApplication: {
|
|
102508
102508
|
id: string;
|
|
102509
102509
|
uniqueName: string;
|
|
@@ -102536,7 +102536,7 @@ type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "worksp
|
|
|
102536
102536
|
/**
|
|
102537
102537
|
* Fragment containing core blockchain network fields.
|
|
102538
102538
|
*/
|
|
102539
|
-
declare const BlockchainNetworkFragment:
|
|
102539
|
+
declare const BlockchainNetworkFragment: gql_tada3.TadaDocumentNode<{
|
|
102540
102540
|
__typename: "ArbitrumBlockchainNetwork";
|
|
102541
102541
|
id: string;
|
|
102542
102542
|
uniqueName: string;
|
|
@@ -115883,7 +115883,7 @@ type BlockchainNetwork = ResultOf<typeof BlockchainNetworkFragment>;
|
|
|
115883
115883
|
/**
|
|
115884
115884
|
* Mutation to create a new blockchain network.
|
|
115885
115885
|
*/
|
|
115886
|
-
declare const createBlockchainNetwork:
|
|
115886
|
+
declare const createBlockchainNetwork: gql_tada3.TadaDocumentNode<{
|
|
115887
115887
|
createBlockchainNetwork: {
|
|
115888
115888
|
__typename: "ArbitrumBlockchainNetwork";
|
|
115889
115889
|
id: string;
|
|
@@ -129395,7 +129395,7 @@ type CreateBlockchainNetworkArgs = Omit<VariablesOf<typeof createBlockchainNetwo
|
|
|
129395
129395
|
/**
|
|
129396
129396
|
* Fragment containing core blockchain node fields.
|
|
129397
129397
|
*/
|
|
129398
|
-
declare const BlockchainNodeFragment:
|
|
129398
|
+
declare const BlockchainNodeFragment: gql_tada5.TadaDocumentNode<{
|
|
129399
129399
|
__typename: "ArbitrumBlockchainNode";
|
|
129400
129400
|
id: string;
|
|
129401
129401
|
uniqueName: string;
|
|
@@ -137867,7 +137867,7 @@ type BlockchainNode = ResultOf<typeof BlockchainNodeFragment>;
|
|
|
137867
137867
|
/**
|
|
137868
137868
|
* Mutation to create a blockchain node.
|
|
137869
137869
|
*/
|
|
137870
|
-
declare const createBlockchainNode:
|
|
137870
|
+
declare const createBlockchainNode: gql_tada5.TadaDocumentNode<{
|
|
137871
137871
|
createBlockchainNode: {
|
|
137872
137872
|
__typename: "ArbitrumBlockchainNode";
|
|
137873
137873
|
id: string;
|
|
@@ -146359,7 +146359,7 @@ type CreateBlockchainNodeArgs = Omit<VariablesOf<typeof createBlockchainNode>, "
|
|
|
146359
146359
|
/**
|
|
146360
146360
|
* Fragment containing core custom deployment fields.
|
|
146361
146361
|
*/
|
|
146362
|
-
declare const CustomDeploymentFragment:
|
|
146362
|
+
declare const CustomDeploymentFragment: gql_tada7.TadaDocumentNode<{
|
|
146363
146363
|
id: string;
|
|
146364
146364
|
uniqueName: string;
|
|
146365
146365
|
name: string;
|
|
@@ -146389,7 +146389,7 @@ type CustomDeployment = ResultOf<typeof CustomDeploymentFragment>;
|
|
|
146389
146389
|
/**
|
|
146390
146390
|
* Mutation to create a custom deployment.
|
|
146391
146391
|
*/
|
|
146392
|
-
declare const createCustomDeployment:
|
|
146392
|
+
declare const createCustomDeployment: gql_tada7.TadaDocumentNode<{
|
|
146393
146393
|
createCustomDeployment: {
|
|
146394
146394
|
id: string;
|
|
146395
146395
|
uniqueName: string;
|
|
@@ -146440,7 +146440,7 @@ type CreateCustomDeploymentArgs = Omit<VariablesOf<typeof createCustomDeployment
|
|
|
146440
146440
|
/**
|
|
146441
146441
|
* GraphQL fragment containing core insights fields.
|
|
146442
146442
|
*/
|
|
146443
|
-
declare const InsightsFragment:
|
|
146443
|
+
declare const InsightsFragment: gql_tada9.TadaDocumentNode<{
|
|
146444
146444
|
__typename: "BlockchainExplorer";
|
|
146445
146445
|
id: string;
|
|
146446
146446
|
uniqueName: string;
|
|
@@ -146512,7 +146512,7 @@ type Insights = ResultOf<typeof InsightsFragment>;
|
|
|
146512
146512
|
/**
|
|
146513
146513
|
* Mutation to create insights.
|
|
146514
146514
|
*/
|
|
146515
|
-
declare const createInsights:
|
|
146515
|
+
declare const createInsights: gql_tada9.TadaDocumentNode<{
|
|
146516
146516
|
createInsights: {
|
|
146517
146517
|
__typename: "BlockchainExplorer";
|
|
146518
146518
|
id: string;
|
|
@@ -146605,7 +146605,7 @@ type CreateInsightsArgs = Omit<VariablesOf<typeof createInsights>, "applicationI
|
|
|
146605
146605
|
/**
|
|
146606
146606
|
* GraphQL fragment containing core integration fields.
|
|
146607
146607
|
*/
|
|
146608
|
-
declare const IntegrationFragment:
|
|
146608
|
+
declare const IntegrationFragment: gql_tada11.TadaDocumentNode<{
|
|
146609
146609
|
__typename: "Chainlink";
|
|
146610
146610
|
id: string;
|
|
146611
146611
|
uniqueName: string;
|
|
@@ -146677,7 +146677,7 @@ type IntegrationTool = ResultOf<typeof IntegrationFragment>;
|
|
|
146677
146677
|
/**
|
|
146678
146678
|
* Mutation to create a new integration.
|
|
146679
146679
|
*/
|
|
146680
|
-
declare const createIntegration:
|
|
146680
|
+
declare const createIntegration: gql_tada11.TadaDocumentNode<{
|
|
146681
146681
|
createIntegration: {
|
|
146682
146682
|
__typename: "Chainlink";
|
|
146683
146683
|
id: string;
|
|
@@ -146766,7 +146766,7 @@ type CreateIntegrationToolArgs = Omit<VariablesOf<typeof createIntegration>, "ap
|
|
|
146766
146766
|
/**
|
|
146767
146767
|
* GraphQL fragment containing core load balancer fields.
|
|
146768
146768
|
*/
|
|
146769
|
-
declare const LoadBalancerFragment:
|
|
146769
|
+
declare const LoadBalancerFragment: gql_tada13.TadaDocumentNode<{
|
|
146770
146770
|
__typename: "EVMLoadBalancer";
|
|
146771
146771
|
id: string;
|
|
146772
146772
|
uniqueName: string;
|
|
@@ -146806,7 +146806,7 @@ type LoadBalancer = ResultOf<typeof LoadBalancerFragment>;
|
|
|
146806
146806
|
/**
|
|
146807
146807
|
* Mutation to create a load balancer.
|
|
146808
146808
|
*/
|
|
146809
|
-
declare const createLoadBalancer:
|
|
146809
|
+
declare const createLoadBalancer: gql_tada13.TadaDocumentNode<{
|
|
146810
146810
|
createLoadBalancer: {
|
|
146811
146811
|
__typename: "EVMLoadBalancer";
|
|
146812
146812
|
id: string;
|
|
@@ -146866,7 +146866,7 @@ type CreateLoadBalancerArgs = Omit<VariablesOf<typeof createLoadBalancer>, "appl
|
|
|
146866
146866
|
/**
|
|
146867
146867
|
* GraphQL fragment containing core middleware fields.
|
|
146868
146868
|
*/
|
|
146869
|
-
declare const MiddlewareFragment:
|
|
146869
|
+
declare const MiddlewareFragment: gql_tada15.TadaDocumentNode<{
|
|
146870
146870
|
__typename: "AttestationIndexerMiddleware";
|
|
146871
146871
|
id: string;
|
|
146872
146872
|
uniqueName: string;
|
|
@@ -147011,7 +147011,7 @@ type Middleware = ResultOf<typeof MiddlewareFragment>;
|
|
|
147011
147011
|
/**
|
|
147012
147012
|
* Query to fetch a specific middleware with subgraphs.
|
|
147013
147013
|
*/
|
|
147014
|
-
declare const getGraphMiddlewareSubgraphs:
|
|
147014
|
+
declare const getGraphMiddlewareSubgraphs: gql_tada15.TadaDocumentNode<{
|
|
147015
147015
|
middlewareByUniqueName: {
|
|
147016
147016
|
__typename: "AttestationIndexerMiddleware";
|
|
147017
147017
|
id: string;
|
|
@@ -147164,7 +147164,7 @@ type MiddlewareWithSubgraphs = ResultOf<typeof getGraphMiddlewareSubgraphs>["mid
|
|
|
147164
147164
|
/**
|
|
147165
147165
|
* Mutation to create a new middleware.
|
|
147166
147166
|
*/
|
|
147167
|
-
declare const createMiddleware:
|
|
147167
|
+
declare const createMiddleware: gql_tada15.TadaDocumentNode<{
|
|
147168
147168
|
createMiddleware: {
|
|
147169
147169
|
__typename: "AttestationIndexerMiddleware";
|
|
147170
147170
|
id: string;
|
|
@@ -147337,7 +147337,7 @@ type CreateMiddlewareArgs = Omit<VariablesOf<typeof createMiddleware>, "applicat
|
|
|
147337
147337
|
/**
|
|
147338
147338
|
* GraphQL query to fetch platform configuration.
|
|
147339
147339
|
*/
|
|
147340
|
-
declare const getPlatformConfigQuery:
|
|
147340
|
+
declare const getPlatformConfigQuery: gql_tada18.TadaDocumentNode<{
|
|
147341
147341
|
config: {
|
|
147342
147342
|
smartContractSets: {
|
|
147343
147343
|
id: string;
|
|
@@ -147393,7 +147393,7 @@ type PlatformConfig = ResultOf<typeof getPlatformConfigQuery>["config"];
|
|
|
147393
147393
|
/**
|
|
147394
147394
|
* GraphQL fragment containing core private key fields.
|
|
147395
147395
|
*/
|
|
147396
|
-
declare const PrivateKeyFragment:
|
|
147396
|
+
declare const PrivateKeyFragment: gql_tada19.TadaDocumentNode<{
|
|
147397
147397
|
__typename: "AccessibleEcdsaP256PrivateKey";
|
|
147398
147398
|
id: string;
|
|
147399
147399
|
uniqueName: string;
|
|
@@ -148035,7 +148035,7 @@ type PrivateKey = ResultOf<typeof PrivateKeyFragment>;
|
|
|
148035
148035
|
/**
|
|
148036
148036
|
* Mutation to create a new private key.
|
|
148037
148037
|
*/
|
|
148038
|
-
declare const createPrivateKey:
|
|
148038
|
+
declare const createPrivateKey: gql_tada19.TadaDocumentNode<{
|
|
148039
148039
|
createPrivateKey: {
|
|
148040
148040
|
__typename: "AccessibleEcdsaP256PrivateKey";
|
|
148041
148041
|
id: string;
|
|
@@ -148700,7 +148700,7 @@ type CreatePrivateKeyArgs = Omit<VariablesOf<typeof createPrivateKey>, "applicat
|
|
|
148700
148700
|
/**
|
|
148701
148701
|
* GraphQL fragment containing core storage fields.
|
|
148702
148702
|
*/
|
|
148703
|
-
declare const StorageFragment:
|
|
148703
|
+
declare const StorageFragment: gql_tada21.TadaDocumentNode<{
|
|
148704
148704
|
__typename: "IPFSStorage";
|
|
148705
148705
|
id: string;
|
|
148706
148706
|
uniqueName: string;
|
|
@@ -148752,7 +148752,7 @@ type Storage = ResultOf<typeof StorageFragment>;
|
|
|
148752
148752
|
/**
|
|
148753
148753
|
* Mutation to create a new storage.
|
|
148754
148754
|
*/
|
|
148755
|
-
declare const createStorage:
|
|
148755
|
+
declare const createStorage: gql_tada21.TadaDocumentNode<{
|
|
148756
148756
|
createStorage: {
|
|
148757
148757
|
__typename: "IPFSStorage";
|
|
148758
148758
|
id: string;
|
package/dist/settlemint.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fetchWithRetry } from "@settlemint/sdk-utils/http";
|
|
2
2
|
import { ensureServer } from "@settlemint/sdk-utils/runtime";
|
|
3
|
-
import { AccessTokenSchema, IdSchema, STANDALONE_INSTANCE, UrlSchema, validate } from "@settlemint/sdk-utils/validation";
|
|
3
|
+
import { AccessTokenSchema, IdSchema, LOCAL_INSTANCE, STANDALONE_INSTANCE, UrlSchema, validate } from "@settlemint/sdk-utils/validation";
|
|
4
4
|
import { GraphQLClient } from "graphql-request";
|
|
5
5
|
import { z } from "zod/v4";
|
|
6
6
|
import { initGraphQLTada } from "gql.tada";
|
|
@@ -2139,8 +2139,8 @@ function getPincodeVerificationChallengeResponse({ verificationChallenge, pincod
|
|
|
2139
2139
|
*/
|
|
2140
2140
|
function createSettleMintClient(options) {
|
|
2141
2141
|
ensureServer();
|
|
2142
|
-
if (options.instance === STANDALONE_INSTANCE) if (options.anonymous) options.instance = "https://console.settlemint.com";
|
|
2143
|
-
else throw new Error("Standalone instances cannot connect to the SettleMint platform");
|
|
2142
|
+
if (options.instance === STANDALONE_INSTANCE || options.instance === LOCAL_INSTANCE) if (options.anonymous) options.instance = "https://console.settlemint.com";
|
|
2143
|
+
else throw new Error("Standalone and local instances cannot connect to the SettleMint platform");
|
|
2144
2144
|
const validatedOptions = options.anonymous ? validate(z.object({
|
|
2145
2145
|
...ClientOptionsSchema.shape,
|
|
2146
2146
|
accessToken: z.literal("")
|