@settlemint/sdk-js 2.4.0-pr6922b64b → 2.4.0-pr74203735

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 CHANGED
@@ -62,7 +62,7 @@ The SettleMint JavaScript SDK provides a type-safe wrapper around the SettleMint
62
62
 
63
63
  > **createSettleMintClient**(`options`): [`SettlemintClient`](#settlemintclient)
64
64
 
65
- Defined in: [settlemint.ts:239](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L239)
65
+ Defined in: [settlemint.ts:275](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L275)
66
66
 
67
67
  Creates a SettleMint client with the provided options. The client provides methods to interact with
68
68
  various SettleMint resources like workspaces, applications, blockchain networks, blockchain nodes, middleware,
@@ -109,7 +109,7 @@ const workspace = await client.workspace.read('workspace-unique-name');
109
109
 
110
110
  #### SettlemintClient
111
111
 
112
- Defined in: [settlemint.ts:127](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L127)
112
+ Defined in: [settlemint.ts:145](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L145)
113
113
 
114
114
  Client interface for interacting with the SettleMint platform.
115
115
 
@@ -117,7 +117,7 @@ Client interface for interacting with the SettleMint platform.
117
117
 
118
118
  #### SettlemintClientOptions
119
119
 
120
- Defined in: [settlemint.ts:117](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L117)
120
+ Defined in: [settlemint.ts:135](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L135)
121
121
 
122
122
  Options for the Settlemint client.
123
123
 
@@ -129,8 +129,8 @@ Options for the Settlemint client.
129
129
 
130
130
  | Property | Type | Default value | Description | Inherited from | Defined in |
131
131
  | ------ | ------ | ------ | ------ | ------ | ------ |
132
- | <a id="accesstoken"></a> `accessToken?` | `string` | `undefined` | The access token used to authenticate with the SettleMint platform | - | [settlemint.ts:119](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L119) |
133
- | <a id="anonymous"></a> `anonymous?` | `boolean` | `undefined` | Whether to allow anonymous access (no access token required) | - | [settlemint.ts:121](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L121) |
132
+ | <a id="accesstoken"></a> `accessToken?` | `string` | `undefined` | The access token used to authenticate with the SettleMint platform | - | [settlemint.ts:137](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L137) |
133
+ | <a id="anonymous"></a> `anonymous?` | `boolean` | `undefined` | Whether to allow anonymous access (no access token required) | - | [settlemint.ts:139](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/settlemint.ts#L139) |
134
134
  | <a id="instance"></a> `instance` | `string` | `UrlSchema` | The URL of the SettleMint instance to connect to | `Omit.instance` | [helpers/client-options.schema.ts:11](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/js/src/helpers/client-options.schema.ts#L11) |
135
135
 
136
136
  ### Type Aliases
@@ -1,17 +1,17 @@
1
1
  import { Id } from "@settlemint/sdk-utils/validation";
2
2
  import * as gql_tada0 from "gql.tada";
3
- import * as gql_tada2 from "gql.tada";
4
- import * as gql_tada3 from "gql.tada";
5
- import * as gql_tada5 from "gql.tada";
6
- import * as gql_tada7 from "gql.tada";
3
+ import * as gql_tada4 from "gql.tada";
7
4
  import * as gql_tada9 from "gql.tada";
8
- import * as gql_tada11 from "gql.tada";
9
- import * as gql_tada13 from "gql.tada";
10
5
  import * as gql_tada15 from "gql.tada";
11
- import * as gql_tada18 from "gql.tada";
12
6
  import * as gql_tada19 from "gql.tada";
13
7
  import * as gql_tada21 from "gql.tada";
14
8
  import * as gql_tada23 from "gql.tada";
9
+ import * as gql_tada2 from "gql.tada";
10
+ import * as gql_tada5 from "gql.tada";
11
+ import * as gql_tada8 from "gql.tada";
12
+ import * as gql_tada11 from "gql.tada";
13
+ import * as gql_tada13 from "gql.tada";
14
+ import * as gql_tada17 from "gql.tada";
15
15
  import { ResultOf, VariablesOf } from "gql.tada";
16
16
  import { z } from "zod/v4";
17
17
 
@@ -103853,7 +103853,7 @@ type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "worksp
103853
103853
  */
103854
103854
  //#endregion
103855
103855
  //#region src/graphql/application-access-tokens.d.ts
103856
- declare const createApplicationAccessToken: gql_tada2.TadaDocumentNode<{
103856
+ declare const createApplicationAccessToken: gql_tada4.TadaDocumentNode<{
103857
103857
  createApplicationAccessToken: {
103858
103858
  token: string | null;
103859
103859
  };
@@ -103916,7 +103916,7 @@ type CreateApplicationAccessTokenArgs = Omit<VariablesOf<typeof createApplicatio
103916
103916
  /**
103917
103917
  * Fragment containing core blockchain network fields.
103918
103918
  */
103919
- declare const BlockchainNetworkFragment: gql_tada3.TadaDocumentNode<{
103919
+ declare const BlockchainNetworkFragment: gql_tada9.TadaDocumentNode<{
103920
103920
  __typename: "ArbitrumBlockchainNetwork";
103921
103921
  id: string;
103922
103922
  uniqueName: string;
@@ -117263,7 +117263,7 @@ type BlockchainNetwork = ResultOf<typeof BlockchainNetworkFragment>;
117263
117263
  /**
117264
117264
  * Mutation to create a new blockchain network.
117265
117265
  */
117266
- declare const createBlockchainNetwork: gql_tada3.TadaDocumentNode<{
117266
+ declare const createBlockchainNetwork: gql_tada9.TadaDocumentNode<{
117267
117267
  createBlockchainNetwork: {
117268
117268
  __typename: "ArbitrumBlockchainNetwork";
117269
117269
  id: string;
@@ -130775,7 +130775,7 @@ type CreateBlockchainNetworkArgs = Omit<VariablesOf<typeof createBlockchainNetwo
130775
130775
  /**
130776
130776
  * Fragment containing core blockchain node fields.
130777
130777
  */
130778
- declare const BlockchainNodeFragment: gql_tada5.TadaDocumentNode<{
130778
+ declare const BlockchainNodeFragment: gql_tada15.TadaDocumentNode<{
130779
130779
  __typename: "ArbitrumBlockchainNode";
130780
130780
  id: string;
130781
130781
  uniqueName: string;
@@ -139247,7 +139247,7 @@ type BlockchainNode = ResultOf<typeof BlockchainNodeFragment>;
139247
139247
  /**
139248
139248
  * Mutation to create a blockchain node.
139249
139249
  */
139250
- declare const createBlockchainNode: gql_tada5.TadaDocumentNode<{
139250
+ declare const createBlockchainNode: gql_tada15.TadaDocumentNode<{
139251
139251
  createBlockchainNode: {
139252
139252
  __typename: "ArbitrumBlockchainNode";
139253
139253
  id: string;
@@ -147739,7 +147739,7 @@ type CreateBlockchainNodeArgs = Omit<VariablesOf<typeof createBlockchainNode>, "
147739
147739
  /**
147740
147740
  * Fragment containing core custom deployment fields.
147741
147741
  */
147742
- declare const CustomDeploymentFragment: gql_tada7.TadaDocumentNode<{
147742
+ declare const CustomDeploymentFragment: gql_tada19.TadaDocumentNode<{
147743
147743
  id: string;
147744
147744
  uniqueName: string;
147745
147745
  name: string;
@@ -147769,7 +147769,7 @@ type CustomDeployment = ResultOf<typeof CustomDeploymentFragment>;
147769
147769
  /**
147770
147770
  * Mutation to create a custom deployment.
147771
147771
  */
147772
- declare const createCustomDeployment: gql_tada7.TadaDocumentNode<{
147772
+ declare const createCustomDeployment: gql_tada19.TadaDocumentNode<{
147773
147773
  createCustomDeployment: {
147774
147774
  id: string;
147775
147775
  uniqueName: string;
@@ -147820,7 +147820,7 @@ type CreateCustomDeploymentArgs = Omit<VariablesOf<typeof createCustomDeployment
147820
147820
  /**
147821
147821
  * GraphQL fragment containing core insights fields.
147822
147822
  */
147823
- declare const InsightsFragment: gql_tada9.TadaDocumentNode<{
147823
+ declare const InsightsFragment: gql_tada21.TadaDocumentNode<{
147824
147824
  __typename: "BlockchainExplorer";
147825
147825
  id: string;
147826
147826
  uniqueName: string;
@@ -147892,7 +147892,7 @@ type Insights = ResultOf<typeof InsightsFragment>;
147892
147892
  /**
147893
147893
  * Mutation to create insights.
147894
147894
  */
147895
- declare const createInsights: gql_tada9.TadaDocumentNode<{
147895
+ declare const createInsights: gql_tada21.TadaDocumentNode<{
147896
147896
  createInsights: {
147897
147897
  __typename: "BlockchainExplorer";
147898
147898
  id: string;
@@ -147985,7 +147985,7 @@ type CreateInsightsArgs = Omit<VariablesOf<typeof createInsights>, "applicationI
147985
147985
  /**
147986
147986
  * GraphQL fragment containing core integration fields.
147987
147987
  */
147988
- declare const IntegrationFragment: gql_tada11.TadaDocumentNode<{
147988
+ declare const IntegrationFragment: gql_tada23.TadaDocumentNode<{
147989
147989
  __typename: "Chainlink";
147990
147990
  id: string;
147991
147991
  uniqueName: string;
@@ -148077,7 +148077,7 @@ type IntegrationTool = ResultOf<typeof IntegrationFragment>;
148077
148077
  /**
148078
148078
  * Mutation to create a new integration.
148079
148079
  */
148080
- declare const createIntegration: gql_tada11.TadaDocumentNode<{
148080
+ declare const createIntegration: gql_tada23.TadaDocumentNode<{
148081
148081
  createIntegration: {
148082
148082
  __typename: "Chainlink";
148083
148083
  id: string;
@@ -148186,7 +148186,7 @@ type CreateIntegrationToolArgs = Omit<VariablesOf<typeof createIntegration>, "ap
148186
148186
  /**
148187
148187
  * GraphQL fragment containing core load balancer fields.
148188
148188
  */
148189
- declare const LoadBalancerFragment: gql_tada13.TadaDocumentNode<{
148189
+ declare const LoadBalancerFragment: gql_tada2.TadaDocumentNode<{
148190
148190
  __typename: "EVMLoadBalancer";
148191
148191
  id: string;
148192
148192
  uniqueName: string;
@@ -148226,7 +148226,7 @@ type LoadBalancer = ResultOf<typeof LoadBalancerFragment>;
148226
148226
  /**
148227
148227
  * Mutation to create a load balancer.
148228
148228
  */
148229
- declare const createLoadBalancer: gql_tada13.TadaDocumentNode<{
148229
+ declare const createLoadBalancer: gql_tada2.TadaDocumentNode<{
148230
148230
  createLoadBalancer: {
148231
148231
  __typename: "EVMLoadBalancer";
148232
148232
  id: string;
@@ -148286,7 +148286,7 @@ type CreateLoadBalancerArgs = Omit<VariablesOf<typeof createLoadBalancer>, "appl
148286
148286
  /**
148287
148287
  * GraphQL fragment containing core middleware fields.
148288
148288
  */
148289
- declare const MiddlewareFragment: gql_tada15.TadaDocumentNode<{
148289
+ declare const MiddlewareFragment: gql_tada5.TadaDocumentNode<{
148290
148290
  __typename: "AttestationIndexerMiddleware";
148291
148291
  id: string;
148292
148292
  uniqueName: string;
@@ -148453,7 +148453,7 @@ type Middleware = ResultOf<typeof MiddlewareFragment>;
148453
148453
  /**
148454
148454
  * Query to fetch a specific middleware with subgraphs.
148455
148455
  */
148456
- declare const getGraphMiddlewareSubgraphs: gql_tada15.TadaDocumentNode<{
148456
+ declare const getGraphMiddlewareSubgraphs: gql_tada5.TadaDocumentNode<{
148457
148457
  middlewareByUniqueName: {
148458
148458
  __typename: "AttestationIndexerMiddleware";
148459
148459
  id: string;
@@ -148628,7 +148628,7 @@ type MiddlewareWithSubgraphs = ResultOf<typeof getGraphMiddlewareSubgraphs>["mid
148628
148628
  /**
148629
148629
  * Mutation to create a new middleware.
148630
148630
  */
148631
- declare const createMiddleware: gql_tada15.TadaDocumentNode<{
148631
+ declare const createMiddleware: gql_tada5.TadaDocumentNode<{
148632
148632
  createMiddleware: {
148633
148633
  __typename: "AttestationIndexerMiddleware";
148634
148634
  id: string;
@@ -148823,7 +148823,7 @@ type CreateMiddlewareArgs = Omit<VariablesOf<typeof createMiddleware>, "applicat
148823
148823
  /**
148824
148824
  * GraphQL query to fetch platform configuration.
148825
148825
  */
148826
- declare const getPlatformConfigQuery: gql_tada18.TadaDocumentNode<{
148826
+ declare const getPlatformConfigQuery: gql_tada8.TadaDocumentNode<{
148827
148827
  config: {
148828
148828
  smartContractSets: {
148829
148829
  id: string;
@@ -148879,7 +148879,7 @@ type PlatformConfig = ResultOf<typeof getPlatformConfigQuery>["config"];
148879
148879
  /**
148880
148880
  * GraphQL fragment containing core private key fields.
148881
148881
  */
148882
- declare const PrivateKeyFragment: gql_tada19.TadaDocumentNode<{
148882
+ declare const PrivateKeyFragment: gql_tada11.TadaDocumentNode<{
148883
148883
  __typename: "AccessibleEcdsaP256PrivateKey";
148884
148884
  id: string;
148885
148885
  uniqueName: string;
@@ -149521,7 +149521,7 @@ type PrivateKey = ResultOf<typeof PrivateKeyFragment>;
149521
149521
  /**
149522
149522
  * Mutation to create a new private key.
149523
149523
  */
149524
- declare const createPrivateKey: gql_tada19.TadaDocumentNode<{
149524
+ declare const createPrivateKey: gql_tada11.TadaDocumentNode<{
149525
149525
  createPrivateKey: {
149526
149526
  __typename: "AccessibleEcdsaP256PrivateKey";
149527
149527
  id: string;
@@ -150186,7 +150186,7 @@ type CreatePrivateKeyArgs = Omit<VariablesOf<typeof createPrivateKey>, "applicat
150186
150186
  /**
150187
150187
  * GraphQL fragment containing core storage fields.
150188
150188
  */
150189
- declare const StorageFragment: gql_tada21.TadaDocumentNode<{
150189
+ declare const StorageFragment: gql_tada13.TadaDocumentNode<{
150190
150190
  __typename: "IPFSStorage";
150191
150191
  id: string;
150192
150192
  uniqueName: string;
@@ -150238,7 +150238,7 @@ type Storage = ResultOf<typeof StorageFragment>;
150238
150238
  /**
150239
150239
  * Mutation to create a new storage.
150240
150240
  */
150241
- declare const createStorage: gql_tada21.TadaDocumentNode<{
150241
+ declare const createStorage: gql_tada13.TadaDocumentNode<{
150242
150242
  createStorage: {
150243
150243
  __typename: "IPFSStorage";
150244
150244
  id: string;
@@ -150307,7 +150307,7 @@ type CreateStorageArgs = Omit<VariablesOf<typeof createStorage>, "applicationId"
150307
150307
  /**
150308
150308
  * GraphQL fragment containing core workspace fields.
150309
150309
  */
150310
- declare const WorkspaceFragment: gql_tada23.TadaDocumentNode<{
150310
+ declare const WorkspaceFragment: gql_tada17.TadaDocumentNode<{
150311
150311
  id: string;
150312
150312
  uniqueName: string;
150313
150313
  name: string;
@@ -150328,7 +150328,7 @@ type Workspace = ResultOf<typeof WorkspaceFragment>;
150328
150328
  /**
150329
150329
  * Mutation to create a new workspace.
150330
150330
  */
150331
- declare const createWorkspace: gql_tada23.TadaDocumentNode<{
150331
+ declare const createWorkspace: gql_tada17.TadaDocumentNode<{
150332
150332
  createWorkspace: {
150333
150333
  id: string;
150334
150334
  uniqueName: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@settlemint/sdk-js",
3
3
  "description": "Core JavaScript SDK for integrating SettleMint's blockchain platform services into your applications",
4
- "version": "2.4.0-pr6922b64b",
4
+ "version": "2.4.0-pr74203735",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "FSL-1.1-MIT",
@@ -57,7 +57,7 @@
57
57
  "gql.tada": "^1",
58
58
  "graphql-request": "^7",
59
59
  "zod": "^3.25.0",
60
- "@settlemint/sdk-utils": "2.4.0-pr6922b64b"
60
+ "@settlemint/sdk-utils": "2.4.0-pr74203735"
61
61
  },
62
62
  "peerDependencies": {},
63
63
  "engines": {