@settlemint/sdk-js 2.4.0-prf3423261 → 2.4.0-prfdc1cdc0

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,16 +1,16 @@
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
3
  import * as gql_tada3 from "gql.tada";
5
4
  import * as gql_tada5 from "gql.tada";
6
5
  import * as gql_tada7 from "gql.tada";
7
6
  import * as gql_tada9 from "gql.tada";
7
+ import * as gql_tada1 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";
8
11
  import * as gql_tada11 from "gql.tada";
9
- import * as gql_tada13 from "gql.tada";
10
- import * as gql_tada15 from "gql.tada";
11
- import * as gql_tada18 from "gql.tada";
12
- import * as gql_tada19 from "gql.tada";
13
12
  import * as gql_tada21 from "gql.tada";
13
+ import * as gql_tada19 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";
@@ -9217,14 +9217,6 @@ type introspection_types = {
9217
9217
  };
9218
9218
  };
9219
9219
  };
9220
- 'applicationAccessToken': {
9221
- name: 'applicationAccessToken';
9222
- type: {
9223
- kind: 'OBJECT';
9224
- name: 'ApplicationAccessToken';
9225
- ofType: null;
9226
- };
9227
- };
9228
9220
  'applicationId': {
9229
9221
  name: 'applicationId';
9230
9222
  type: {
@@ -9332,9 +9324,13 @@ type introspection_types = {
9332
9324
  'user': {
9333
9325
  name: 'user';
9334
9326
  type: {
9335
- kind: 'OBJECT';
9336
- name: 'User';
9337
- ofType: null;
9327
+ kind: 'NON_NULL';
9328
+ name: never;
9329
+ ofType: {
9330
+ kind: 'OBJECT';
9331
+ name: 'User';
9332
+ ofType: null;
9333
+ };
9338
9334
  };
9339
9335
  };
9340
9336
  'variables': {
@@ -97956,18 +97952,6 @@ type introspection_types = {
97956
97952
  };
97957
97953
  };
97958
97954
  };
97959
- 'validInStripe': {
97960
- name: 'validInStripe';
97961
- type: {
97962
- kind: 'NON_NULL';
97963
- name: never;
97964
- ofType: {
97965
- kind: 'SCALAR';
97966
- name: 'Boolean';
97967
- ofType: null;
97968
- };
97969
- };
97970
- };
97971
97955
  };
97972
97956
  };
97973
97957
  'Subgraph': {
@@ -103798,62 +103782,8 @@ declare module 'gql.tada' {
103798
103782
  }
103799
103783
  }
103800
103784
  //#endregion
103801
- //#region src/graphql/application.d.ts
103802
- /**
103803
- * GraphQL fragment containing core application fields.
103804
- */
103805
- declare const ApplicationFragment: gql_tada0.TadaDocumentNode<{
103806
- id: string;
103807
- uniqueName: string;
103808
- name: string;
103809
- workspace: {
103810
- id: string;
103811
- uniqueName: string;
103812
- name: string;
103813
- };
103814
- }, {}, {
103815
- fragment: "Application";
103816
- on: "Application";
103817
- masked: false;
103818
- }>;
103819
- /**
103820
- * Type representing an application entity.
103821
- */
103822
- type Application = ResultOf<typeof ApplicationFragment>;
103823
- /**
103824
- * Mutation to create a new application.
103825
- */
103826
- declare const createApplication: gql_tada0.TadaDocumentNode<{
103827
- createApplication: {
103828
- id: string;
103829
- uniqueName: string;
103830
- name: string;
103831
- workspace: {
103832
- id: string;
103833
- uniqueName: string;
103834
- name: string;
103835
- };
103836
- };
103837
- }, {
103838
- workspaceId: string;
103839
- name: string;
103840
- }, void>;
103841
- /**
103842
- * Arguments required to create an application.
103843
- */
103844
- type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "workspaceId"> & {
103845
- workspaceUniqueName: string;
103846
- };
103847
- /**
103848
- * Creates a function to list applications in a workspace.
103849
- *
103850
- * @param gqlClient - The GraphQL client instance
103851
- * @returns Function that fetches applications for a workspace
103852
- * @throws If the workspace cannot be found or the request fails
103853
- */
103854
- //#endregion
103855
103785
  //#region src/graphql/application-access-tokens.d.ts
103856
- declare const createApplicationAccessToken: gql_tada2.TadaDocumentNode<{
103786
+ declare const createApplicationAccessToken: gql_tada0.TadaDocumentNode<{
103857
103787
  createApplicationAccessToken: {
103858
103788
  token: string | null;
103859
103789
  };
@@ -103912,11 +103842,65 @@ type CreateApplicationAccessTokenArgs = Omit<VariablesOf<typeof createApplicatio
103912
103842
  * @returns A function that accepts the arguments for creating an application and returns a promise resolving to the created application.
103913
103843
  */
103914
103844
  //#endregion
103845
+ //#region src/graphql/application.d.ts
103846
+ /**
103847
+ * GraphQL fragment containing core application fields.
103848
+ */
103849
+ declare const ApplicationFragment: gql_tada3.TadaDocumentNode<{
103850
+ id: string;
103851
+ uniqueName: string;
103852
+ name: string;
103853
+ workspace: {
103854
+ id: string;
103855
+ uniqueName: string;
103856
+ name: string;
103857
+ };
103858
+ }, {}, {
103859
+ fragment: "Application";
103860
+ on: "Application";
103861
+ masked: false;
103862
+ }>;
103863
+ /**
103864
+ * Type representing an application entity.
103865
+ */
103866
+ type Application = ResultOf<typeof ApplicationFragment>;
103867
+ /**
103868
+ * Mutation to create a new application.
103869
+ */
103870
+ declare const createApplication: gql_tada3.TadaDocumentNode<{
103871
+ createApplication: {
103872
+ id: string;
103873
+ uniqueName: string;
103874
+ name: string;
103875
+ workspace: {
103876
+ id: string;
103877
+ uniqueName: string;
103878
+ name: string;
103879
+ };
103880
+ };
103881
+ }, {
103882
+ workspaceId: string;
103883
+ name: string;
103884
+ }, void>;
103885
+ /**
103886
+ * Arguments required to create an application.
103887
+ */
103888
+ type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "workspaceId"> & {
103889
+ workspaceUniqueName: string;
103890
+ };
103891
+ /**
103892
+ * Creates a function to list applications in a workspace.
103893
+ *
103894
+ * @param gqlClient - The GraphQL client instance
103895
+ * @returns Function that fetches applications for a workspace
103896
+ * @throws If the workspace cannot be found or the request fails
103897
+ */
103898
+ //#endregion
103915
103899
  //#region src/graphql/blockchain-network.d.ts
103916
103900
  /**
103917
103901
  * Fragment containing core blockchain network fields.
103918
103902
  */
103919
- declare const BlockchainNetworkFragment: gql_tada3.TadaDocumentNode<{
103903
+ declare const BlockchainNetworkFragment: gql_tada5.TadaDocumentNode<{
103920
103904
  __typename: "ArbitrumBlockchainNetwork";
103921
103905
  id: string;
103922
103906
  uniqueName: string;
@@ -117263,7 +117247,7 @@ type BlockchainNetwork = ResultOf<typeof BlockchainNetworkFragment>;
117263
117247
  /**
117264
117248
  * Mutation to create a new blockchain network.
117265
117249
  */
117266
- declare const createBlockchainNetwork: gql_tada3.TadaDocumentNode<{
117250
+ declare const createBlockchainNetwork: gql_tada5.TadaDocumentNode<{
117267
117251
  createBlockchainNetwork: {
117268
117252
  __typename: "ArbitrumBlockchainNetwork";
117269
117253
  id: string;
@@ -130775,7 +130759,7 @@ type CreateBlockchainNetworkArgs = Omit<VariablesOf<typeof createBlockchainNetwo
130775
130759
  /**
130776
130760
  * Fragment containing core blockchain node fields.
130777
130761
  */
130778
- declare const BlockchainNodeFragment: gql_tada5.TadaDocumentNode<{
130762
+ declare const BlockchainNodeFragment: gql_tada7.TadaDocumentNode<{
130779
130763
  __typename: "ArbitrumBlockchainNode";
130780
130764
  id: string;
130781
130765
  uniqueName: string;
@@ -139247,7 +139231,7 @@ type BlockchainNode = ResultOf<typeof BlockchainNodeFragment>;
139247
139231
  /**
139248
139232
  * Mutation to create a blockchain node.
139249
139233
  */
139250
- declare const createBlockchainNode: gql_tada5.TadaDocumentNode<{
139234
+ declare const createBlockchainNode: gql_tada7.TadaDocumentNode<{
139251
139235
  createBlockchainNode: {
139252
139236
  __typename: "ArbitrumBlockchainNode";
139253
139237
  id: string;
@@ -147739,7 +147723,7 @@ type CreateBlockchainNodeArgs = Omit<VariablesOf<typeof createBlockchainNode>, "
147739
147723
  /**
147740
147724
  * Fragment containing core custom deployment fields.
147741
147725
  */
147742
- declare const CustomDeploymentFragment: gql_tada7.TadaDocumentNode<{
147726
+ declare const CustomDeploymentFragment: gql_tada9.TadaDocumentNode<{
147743
147727
  id: string;
147744
147728
  uniqueName: string;
147745
147729
  name: string;
@@ -147769,7 +147753,7 @@ type CustomDeployment = ResultOf<typeof CustomDeploymentFragment>;
147769
147753
  /**
147770
147754
  * Mutation to create a custom deployment.
147771
147755
  */
147772
- declare const createCustomDeployment: gql_tada7.TadaDocumentNode<{
147756
+ declare const createCustomDeployment: gql_tada9.TadaDocumentNode<{
147773
147757
  createCustomDeployment: {
147774
147758
  id: string;
147775
147759
  uniqueName: string;
@@ -147820,7 +147804,7 @@ type CreateCustomDeploymentArgs = Omit<VariablesOf<typeof createCustomDeployment
147820
147804
  /**
147821
147805
  * GraphQL fragment containing core insights fields.
147822
147806
  */
147823
- declare const InsightsFragment: gql_tada9.TadaDocumentNode<{
147807
+ declare const InsightsFragment: gql_tada1.TadaDocumentNode<{
147824
147808
  __typename: "BlockchainExplorer";
147825
147809
  id: string;
147826
147810
  uniqueName: string;
@@ -147892,7 +147876,7 @@ type Insights = ResultOf<typeof InsightsFragment>;
147892
147876
  /**
147893
147877
  * Mutation to create insights.
147894
147878
  */
147895
- declare const createInsights: gql_tada9.TadaDocumentNode<{
147879
+ declare const createInsights: gql_tada1.TadaDocumentNode<{
147896
147880
  createInsights: {
147897
147881
  __typename: "BlockchainExplorer";
147898
147882
  id: string;
@@ -147985,7 +147969,7 @@ type CreateInsightsArgs = Omit<VariablesOf<typeof createInsights>, "applicationI
147985
147969
  /**
147986
147970
  * GraphQL fragment containing core integration fields.
147987
147971
  */
147988
- declare const IntegrationFragment: gql_tada11.TadaDocumentNode<{
147972
+ declare const IntegrationFragment: gql_tada12.TadaDocumentNode<{
147989
147973
  __typename: "Chainlink";
147990
147974
  id: string;
147991
147975
  uniqueName: string;
@@ -148077,7 +148061,7 @@ type IntegrationTool = ResultOf<typeof IntegrationFragment>;
148077
148061
  /**
148078
148062
  * Mutation to create a new integration.
148079
148063
  */
148080
- declare const createIntegration: gql_tada11.TadaDocumentNode<{
148064
+ declare const createIntegration: gql_tada12.TadaDocumentNode<{
148081
148065
  createIntegration: {
148082
148066
  __typename: "Chainlink";
148083
148067
  id: string;
@@ -148186,7 +148170,7 @@ type CreateIntegrationToolArgs = Omit<VariablesOf<typeof createIntegration>, "ap
148186
148170
  /**
148187
148171
  * GraphQL fragment containing core load balancer fields.
148188
148172
  */
148189
- declare const LoadBalancerFragment: gql_tada13.TadaDocumentNode<{
148173
+ declare const LoadBalancerFragment: gql_tada14.TadaDocumentNode<{
148190
148174
  __typename: "EVMLoadBalancer";
148191
148175
  id: string;
148192
148176
  uniqueName: string;
@@ -148226,7 +148210,7 @@ type LoadBalancer = ResultOf<typeof LoadBalancerFragment>;
148226
148210
  /**
148227
148211
  * Mutation to create a load balancer.
148228
148212
  */
148229
- declare const createLoadBalancer: gql_tada13.TadaDocumentNode<{
148213
+ declare const createLoadBalancer: gql_tada14.TadaDocumentNode<{
148230
148214
  createLoadBalancer: {
148231
148215
  __typename: "EVMLoadBalancer";
148232
148216
  id: string;
@@ -148286,7 +148270,7 @@ type CreateLoadBalancerArgs = Omit<VariablesOf<typeof createLoadBalancer>, "appl
148286
148270
  /**
148287
148271
  * GraphQL fragment containing core middleware fields.
148288
148272
  */
148289
- declare const MiddlewareFragment: gql_tada15.TadaDocumentNode<{
148273
+ declare const MiddlewareFragment: gql_tada16.TadaDocumentNode<{
148290
148274
  __typename: "AttestationIndexerMiddleware";
148291
148275
  id: string;
148292
148276
  uniqueName: string;
@@ -148453,7 +148437,7 @@ type Middleware = ResultOf<typeof MiddlewareFragment>;
148453
148437
  /**
148454
148438
  * Query to fetch a specific middleware with subgraphs.
148455
148439
  */
148456
- declare const getGraphMiddlewareSubgraphs: gql_tada15.TadaDocumentNode<{
148440
+ declare const getGraphMiddlewareSubgraphs: gql_tada16.TadaDocumentNode<{
148457
148441
  middlewareByUniqueName: {
148458
148442
  __typename: "AttestationIndexerMiddleware";
148459
148443
  id: string;
@@ -148628,7 +148612,7 @@ type MiddlewareWithSubgraphs = ResultOf<typeof getGraphMiddlewareSubgraphs>["mid
148628
148612
  /**
148629
148613
  * Mutation to create a new middleware.
148630
148614
  */
148631
- declare const createMiddleware: gql_tada15.TadaDocumentNode<{
148615
+ declare const createMiddleware: gql_tada16.TadaDocumentNode<{
148632
148616
  createMiddleware: {
148633
148617
  __typename: "AttestationIndexerMiddleware";
148634
148618
  id: string;
@@ -148823,7 +148807,7 @@ type CreateMiddlewareArgs = Omit<VariablesOf<typeof createMiddleware>, "applicat
148823
148807
  /**
148824
148808
  * GraphQL query to fetch platform configuration.
148825
148809
  */
148826
- declare const getPlatformConfigQuery: gql_tada18.TadaDocumentNode<{
148810
+ declare const getPlatformConfigQuery: gql_tada11.TadaDocumentNode<{
148827
148811
  config: {
148828
148812
  smartContractSets: {
148829
148813
  id: string;
@@ -148879,7 +148863,7 @@ type PlatformConfig = ResultOf<typeof getPlatformConfigQuery>["config"];
148879
148863
  /**
148880
148864
  * GraphQL fragment containing core private key fields.
148881
148865
  */
148882
- declare const PrivateKeyFragment: gql_tada19.TadaDocumentNode<{
148866
+ declare const PrivateKeyFragment: gql_tada21.TadaDocumentNode<{
148883
148867
  __typename: "AccessibleEcdsaP256PrivateKey";
148884
148868
  id: string;
148885
148869
  uniqueName: string;
@@ -149521,7 +149505,7 @@ type PrivateKey = ResultOf<typeof PrivateKeyFragment>;
149521
149505
  /**
149522
149506
  * Mutation to create a new private key.
149523
149507
  */
149524
- declare const createPrivateKey: gql_tada19.TadaDocumentNode<{
149508
+ declare const createPrivateKey: gql_tada21.TadaDocumentNode<{
149525
149509
  createPrivateKey: {
149526
149510
  __typename: "AccessibleEcdsaP256PrivateKey";
149527
149511
  id: string;
@@ -150186,7 +150170,7 @@ type CreatePrivateKeyArgs = Omit<VariablesOf<typeof createPrivateKey>, "applicat
150186
150170
  /**
150187
150171
  * GraphQL fragment containing core storage fields.
150188
150172
  */
150189
- declare const StorageFragment: gql_tada21.TadaDocumentNode<{
150173
+ declare const StorageFragment: gql_tada19.TadaDocumentNode<{
150190
150174
  __typename: "IPFSStorage";
150191
150175
  id: string;
150192
150176
  uniqueName: string;
@@ -150238,7 +150222,7 @@ type Storage = ResultOf<typeof StorageFragment>;
150238
150222
  /**
150239
150223
  * Mutation to create a new storage.
150240
150224
  */
150241
- declare const createStorage: gql_tada21.TadaDocumentNode<{
150225
+ declare const createStorage: gql_tada19.TadaDocumentNode<{
150242
150226
  createStorage: {
150243
150227
  __typename: "IPFSStorage";
150244
150228
  id: string;
@@ -150434,24 +150418,18 @@ interface SettlemintClient {
150434
150418
  create: (args: CreateBlockchainNetworkArgs) => Promise<BlockchainNetwork>;
150435
150419
  delete: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150436
150420
  restart: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150437
- pause: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150438
- resume: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150439
150421
  };
150440
150422
  blockchainNode: {
150441
150423
  list: (applicationUniqueName: string) => Promise<BlockchainNode[]>;
150442
150424
  read: (blockchainNodeUniqueName: string) => Promise<BlockchainNode>;
150443
150425
  create: (args: CreateBlockchainNodeArgs) => Promise<BlockchainNode>;
150444
150426
  restart: (nodeUniqueName: string) => Promise<BlockchainNode>;
150445
- pause: (nodeUniqueName: string) => Promise<BlockchainNode>;
150446
- resume: (nodeUniqueName: string) => Promise<BlockchainNode>;
150447
150427
  };
150448
150428
  loadBalancer: {
150449
150429
  list: (applicationUniqueName: string) => Promise<LoadBalancer[]>;
150450
150430
  read: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150451
150431
  create: (args: CreateLoadBalancerArgs) => Promise<LoadBalancer>;
150452
150432
  restart: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150453
- pause: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150454
- resume: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150455
150433
  };
150456
150434
  middleware: {
150457
150435
  list: (applicationUniqueName: string) => Promise<Middleware[]>;
@@ -150459,40 +150437,30 @@ interface SettlemintClient {
150459
150437
  graphSubgraphs: (middlewareUniqueName: string, noCache?: boolean) => Promise<MiddlewareWithSubgraphs>;
150460
150438
  create: (args: CreateMiddlewareArgs) => Promise<Middleware>;
150461
150439
  restart: (middlewareUniqueName: string) => Promise<Middleware>;
150462
- pause: (middlewareUniqueName: string) => Promise<Middleware>;
150463
- resume: (middlewareUniqueName: string) => Promise<Middleware>;
150464
150440
  };
150465
150441
  integrationTool: {
150466
150442
  list: (applicationUniqueName: string) => Promise<IntegrationTool[]>;
150467
150443
  read: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150468
150444
  create: (args: CreateIntegrationToolArgs) => Promise<IntegrationTool>;
150469
150445
  restart: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150470
- pause: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150471
- resume: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150472
150446
  };
150473
150447
  storage: {
150474
150448
  list: (applicationUniqueName: string) => Promise<Storage[]>;
150475
150449
  read: (storageUniqueName: string) => Promise<Storage>;
150476
150450
  create: (args: CreateStorageArgs) => Promise<Storage>;
150477
150451
  restart: (storageUniqueName: string) => Promise<Storage>;
150478
- pause: (storageUniqueName: string) => Promise<Storage>;
150479
- resume: (storageUniqueName: string) => Promise<Storage>;
150480
150452
  };
150481
150453
  privateKey: {
150482
150454
  list: (applicationUniqueName: string) => Promise<PrivateKey[]>;
150483
150455
  read: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150484
150456
  create: (args: CreatePrivateKeyArgs) => Promise<PrivateKey>;
150485
150457
  restart: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150486
- pause: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150487
- resume: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150488
150458
  };
150489
150459
  insights: {
150490
150460
  list: (applicationUniqueName: string) => Promise<Insights[]>;
150491
150461
  read: (insightsUniqueName: string) => Promise<Insights>;
150492
150462
  create: (args: CreateInsightsArgs) => Promise<Insights>;
150493
150463
  restart: (insightsUniqueName: string) => Promise<Insights>;
150494
- pause: (insightsUniqueName: string) => Promise<Insights>;
150495
- resume: (insightsUniqueName: string) => Promise<Insights>;
150496
150464
  };
150497
150465
  customDeployment: {
150498
150466
  list: (applicationUniqueName: string) => Promise<CustomDeployment[]>;
@@ -150500,8 +150468,6 @@ interface SettlemintClient {
150500
150468
  create: (args: CreateCustomDeploymentArgs) => Promise<CustomDeployment>;
150501
150469
  update: (customDeploymentUniqueName: string, imageTag: string) => Promise<CustomDeployment>;
150502
150470
  restart: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150503
- pause: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150504
- resume: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150505
150471
  };
150506
150472
  foundry: {
150507
150473
  env: (blockchainNodeUniqueName: string) => Promise<Record<string, string>>;