@settlemint/sdk-js 2.3.13 → 2.3.14-mainf77a5d09

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.
@@ -1,17 +1,17 @@
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_tada3 from "gql.tada";
4
4
  import * as gql_tada5 from "gql.tada";
5
5
  import * as gql_tada7 from "gql.tada";
6
6
  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
7
  import * as gql_tada11 from "gql.tada";
12
- import * as gql_tada21 from "gql.tada";
13
- import * as gql_tada19 from "gql.tada";
8
+ import * as gql_tada13 from "gql.tada";
9
+ import * as gql_tada1 from "gql.tada";
10
+ import * as gql_tada17 from "gql.tada";
11
+ import * as gql_tada20 from "gql.tada";
12
+ import * as gql_tada15 from "gql.tada";
14
13
  import * as gql_tada23 from "gql.tada";
14
+ import * as gql_tada21 from "gql.tada";
15
15
  import { ResultOf, VariablesOf } from "gql.tada";
16
16
  import { z } from "zod/v4";
17
17
 
@@ -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: gql_tada2.TadaDocumentNode<{
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: gql_tada0.TadaDocumentNode<{
102485
+ declare const ApplicationFragment: gql_tada3.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: gql_tada0.TadaDocumentNode<{
102506
+ declare const createApplication: gql_tada3.TadaDocumentNode<{
102507
102507
  createApplication: {
102508
102508
  id: string;
102509
102509
  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: gql_tada3.TadaDocumentNode<{
146443
+ declare const InsightsFragment: gql_tada11.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: gql_tada3.TadaDocumentNode<{
146515
+ declare const createInsights: gql_tada11.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: gql_tada12.TadaDocumentNode<{
146608
+ declare const IntegrationFragment: gql_tada13.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: gql_tada12.TadaDocumentNode<{
146680
+ declare const createIntegration: gql_tada13.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: gql_tada14.TadaDocumentNode<{
146769
+ declare const LoadBalancerFragment: gql_tada1.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: gql_tada14.TadaDocumentNode<{
146809
+ declare const createLoadBalancer: gql_tada1.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: gql_tada16.TadaDocumentNode<{
146869
+ declare const MiddlewareFragment: gql_tada17.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: gql_tada16.TadaDocumentNode<{
147014
+ declare const getGraphMiddlewareSubgraphs: gql_tada17.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: gql_tada16.TadaDocumentNode<{
147167
+ declare const createMiddleware: gql_tada17.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: gql_tada11.TadaDocumentNode<{
147340
+ declare const getPlatformConfigQuery: gql_tada20.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: gql_tada21.TadaDocumentNode<{
147396
+ declare const PrivateKeyFragment: gql_tada15.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: gql_tada21.TadaDocumentNode<{
148038
+ declare const createPrivateKey: gql_tada15.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: gql_tada19.TadaDocumentNode<{
148703
+ declare const StorageFragment: gql_tada23.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: gql_tada19.TadaDocumentNode<{
148755
+ declare const createStorage: gql_tada23.TadaDocumentNode<{
148756
148756
  createStorage: {
148757
148757
  __typename: "IPFSStorage";
148758
148758
  id: string;
@@ -148821,7 +148821,7 @@ type CreateStorageArgs = Omit<VariablesOf<typeof createStorage>, "applicationId"
148821
148821
  /**
148822
148822
  * GraphQL fragment containing core workspace fields.
148823
148823
  */
148824
- declare const WorkspaceFragment: gql_tada23.TadaDocumentNode<{
148824
+ declare const WorkspaceFragment: gql_tada21.TadaDocumentNode<{
148825
148825
  id: string;
148826
148826
  uniqueName: string;
148827
148827
  name: string;
@@ -148842,7 +148842,7 @@ type Workspace = ResultOf<typeof WorkspaceFragment>;
148842
148842
  /**
148843
148843
  * Mutation to create a new workspace.
148844
148844
  */
148845
- declare const createWorkspace: gql_tada23.TadaDocumentNode<{
148845
+ declare const createWorkspace: gql_tada21.TadaDocumentNode<{
148846
148846
  createWorkspace: {
148847
148847
  id: string;
148848
148848
  uniqueName: string;
@@ -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("")