@settlemint/sdk-js 2.4.0-pr5aacfff3 → 2.4.0-pr5aee34bd

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,6 +1,6 @@
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";
3
+ import * as gql_tada1 from "gql.tada";
4
4
  import * as gql_tada3 from "gql.tada";
5
5
  import * as gql_tada5 from "gql.tada";
6
6
  import * as gql_tada7 from "gql.tada";
@@ -103798,62 +103798,8 @@ declare module 'gql.tada' {
103798
103798
  }
103799
103799
  }
103800
103800
  //#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
103801
  //#region src/graphql/application-access-tokens.d.ts
103856
- declare const createApplicationAccessToken: gql_tada2.TadaDocumentNode<{
103802
+ declare const createApplicationAccessToken: gql_tada0.TadaDocumentNode<{
103857
103803
  createApplicationAccessToken: {
103858
103804
  token: string | null;
103859
103805
  };
@@ -103912,6 +103858,60 @@ type CreateApplicationAccessTokenArgs = Omit<VariablesOf<typeof createApplicatio
103912
103858
  * @returns A function that accepts the arguments for creating an application and returns a promise resolving to the created application.
103913
103859
  */
103914
103860
  //#endregion
103861
+ //#region src/graphql/application.d.ts
103862
+ /**
103863
+ * GraphQL fragment containing core application fields.
103864
+ */
103865
+ declare const ApplicationFragment: gql_tada1.TadaDocumentNode<{
103866
+ id: string;
103867
+ uniqueName: string;
103868
+ name: string;
103869
+ workspace: {
103870
+ id: string;
103871
+ uniqueName: string;
103872
+ name: string;
103873
+ };
103874
+ }, {}, {
103875
+ fragment: "Application";
103876
+ on: "Application";
103877
+ masked: false;
103878
+ }>;
103879
+ /**
103880
+ * Type representing an application entity.
103881
+ */
103882
+ type Application = ResultOf<typeof ApplicationFragment>;
103883
+ /**
103884
+ * Mutation to create a new application.
103885
+ */
103886
+ declare const createApplication: gql_tada1.TadaDocumentNode<{
103887
+ createApplication: {
103888
+ id: string;
103889
+ uniqueName: string;
103890
+ name: string;
103891
+ workspace: {
103892
+ id: string;
103893
+ uniqueName: string;
103894
+ name: string;
103895
+ };
103896
+ };
103897
+ }, {
103898
+ workspaceId: string;
103899
+ name: string;
103900
+ }, void>;
103901
+ /**
103902
+ * Arguments required to create an application.
103903
+ */
103904
+ type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "workspaceId"> & {
103905
+ workspaceUniqueName: string;
103906
+ };
103907
+ /**
103908
+ * Creates a function to list applications in a workspace.
103909
+ *
103910
+ * @param gqlClient - The GraphQL client instance
103911
+ * @returns Function that fetches applications for a workspace
103912
+ * @throws If the workspace cannot be found or the request fails
103913
+ */
103914
+ //#endregion
103915
103915
  //#region src/graphql/blockchain-network.d.ts
103916
103916
  /**
103917
103917
  * Fragment containing core blockchain network fields.
@@ -150434,24 +150434,18 @@ interface SettlemintClient {
150434
150434
  create: (args: CreateBlockchainNetworkArgs) => Promise<BlockchainNetwork>;
150435
150435
  delete: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150436
150436
  restart: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150437
- pause: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150438
- resume: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150439
150437
  };
150440
150438
  blockchainNode: {
150441
150439
  list: (applicationUniqueName: string) => Promise<BlockchainNode[]>;
150442
150440
  read: (blockchainNodeUniqueName: string) => Promise<BlockchainNode>;
150443
150441
  create: (args: CreateBlockchainNodeArgs) => Promise<BlockchainNode>;
150444
150442
  restart: (nodeUniqueName: string) => Promise<BlockchainNode>;
150445
- pause: (nodeUniqueName: string) => Promise<BlockchainNode>;
150446
- resume: (nodeUniqueName: string) => Promise<BlockchainNode>;
150447
150443
  };
150448
150444
  loadBalancer: {
150449
150445
  list: (applicationUniqueName: string) => Promise<LoadBalancer[]>;
150450
150446
  read: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150451
150447
  create: (args: CreateLoadBalancerArgs) => Promise<LoadBalancer>;
150452
150448
  restart: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150453
- pause: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150454
- resume: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150455
150449
  };
150456
150450
  middleware: {
150457
150451
  list: (applicationUniqueName: string) => Promise<Middleware[]>;
@@ -150459,40 +150453,30 @@ interface SettlemintClient {
150459
150453
  graphSubgraphs: (middlewareUniqueName: string, noCache?: boolean) => Promise<MiddlewareWithSubgraphs>;
150460
150454
  create: (args: CreateMiddlewareArgs) => Promise<Middleware>;
150461
150455
  restart: (middlewareUniqueName: string) => Promise<Middleware>;
150462
- pause: (middlewareUniqueName: string) => Promise<Middleware>;
150463
- resume: (middlewareUniqueName: string) => Promise<Middleware>;
150464
150456
  };
150465
150457
  integrationTool: {
150466
150458
  list: (applicationUniqueName: string) => Promise<IntegrationTool[]>;
150467
150459
  read: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150468
150460
  create: (args: CreateIntegrationToolArgs) => Promise<IntegrationTool>;
150469
150461
  restart: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150470
- pause: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150471
- resume: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150472
150462
  };
150473
150463
  storage: {
150474
150464
  list: (applicationUniqueName: string) => Promise<Storage[]>;
150475
150465
  read: (storageUniqueName: string) => Promise<Storage>;
150476
150466
  create: (args: CreateStorageArgs) => Promise<Storage>;
150477
150467
  restart: (storageUniqueName: string) => Promise<Storage>;
150478
- pause: (storageUniqueName: string) => Promise<Storage>;
150479
- resume: (storageUniqueName: string) => Promise<Storage>;
150480
150468
  };
150481
150469
  privateKey: {
150482
150470
  list: (applicationUniqueName: string) => Promise<PrivateKey[]>;
150483
150471
  read: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150484
150472
  create: (args: CreatePrivateKeyArgs) => Promise<PrivateKey>;
150485
150473
  restart: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150486
- pause: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150487
- resume: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150488
150474
  };
150489
150475
  insights: {
150490
150476
  list: (applicationUniqueName: string) => Promise<Insights[]>;
150491
150477
  read: (insightsUniqueName: string) => Promise<Insights>;
150492
150478
  create: (args: CreateInsightsArgs) => Promise<Insights>;
150493
150479
  restart: (insightsUniqueName: string) => Promise<Insights>;
150494
- pause: (insightsUniqueName: string) => Promise<Insights>;
150495
- resume: (insightsUniqueName: string) => Promise<Insights>;
150496
150480
  };
150497
150481
  customDeployment: {
150498
150482
  list: (applicationUniqueName: string) => Promise<CustomDeployment[]>;
@@ -150500,8 +150484,6 @@ interface SettlemintClient {
150500
150484
  create: (args: CreateCustomDeploymentArgs) => Promise<CustomDeployment>;
150501
150485
  update: (customDeploymentUniqueName: string, imageTag: string) => Promise<CustomDeployment>;
150502
150486
  restart: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150503
- pause: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150504
- resume: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150505
150487
  };
150506
150488
  foundry: {
150507
150489
  env: (blockchainNodeUniqueName: string) => Promise<Record<string, string>>;
@@ -2,7 +2,7 @@ import { Id } from "@settlemint/sdk-utils/validation";
2
2
  import { GraphQLClient } from "graphql-request";
3
3
  import { z } from "zod/v4";
4
4
  import * as gql_tada0 from "gql.tada";
5
- import * as gql_tada2 from "gql.tada";
5
+ import * as gql_tada1 from "gql.tada";
6
6
  import * as gql_tada3 from "gql.tada";
7
7
  import * as gql_tada5 from "gql.tada";
8
8
  import * as gql_tada7 from "gql.tada";
@@ -103799,62 +103799,8 @@ declare module 'gql.tada' {
103799
103799
  }
103800
103800
  }
103801
103801
  //#endregion
103802
- //#region src/graphql/application.d.ts
103803
- /**
103804
- * GraphQL fragment containing core application fields.
103805
- */
103806
- declare const ApplicationFragment: gql_tada0.TadaDocumentNode<{
103807
- id: string;
103808
- uniqueName: string;
103809
- name: string;
103810
- workspace: {
103811
- id: string;
103812
- uniqueName: string;
103813
- name: string;
103814
- };
103815
- }, {}, {
103816
- fragment: "Application";
103817
- on: "Application";
103818
- masked: false;
103819
- }>;
103820
- /**
103821
- * Type representing an application entity.
103822
- */
103823
- type Application = ResultOf<typeof ApplicationFragment>;
103824
- /**
103825
- * Mutation to create a new application.
103826
- */
103827
- declare const createApplication: gql_tada0.TadaDocumentNode<{
103828
- createApplication: {
103829
- id: string;
103830
- uniqueName: string;
103831
- name: string;
103832
- workspace: {
103833
- id: string;
103834
- uniqueName: string;
103835
- name: string;
103836
- };
103837
- };
103838
- }, {
103839
- workspaceId: string;
103840
- name: string;
103841
- }, void>;
103842
- /**
103843
- * Arguments required to create an application.
103844
- */
103845
- type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "workspaceId"> & {
103846
- workspaceUniqueName: string;
103847
- };
103848
- /**
103849
- * Creates a function to list applications in a workspace.
103850
- *
103851
- * @param gqlClient - The GraphQL client instance
103852
- * @returns Function that fetches applications for a workspace
103853
- * @throws If the workspace cannot be found or the request fails
103854
- */
103855
- //#endregion
103856
103802
  //#region src/graphql/application-access-tokens.d.ts
103857
- declare const createApplicationAccessToken: gql_tada2.TadaDocumentNode<{
103803
+ declare const createApplicationAccessToken: gql_tada0.TadaDocumentNode<{
103858
103804
  createApplicationAccessToken: {
103859
103805
  token: string | null;
103860
103806
  };
@@ -103913,6 +103859,60 @@ type CreateApplicationAccessTokenArgs = Omit<VariablesOf<typeof createApplicatio
103913
103859
  * @returns A function that accepts the arguments for creating an application and returns a promise resolving to the created application.
103914
103860
  */
103915
103861
  //#endregion
103862
+ //#region src/graphql/application.d.ts
103863
+ /**
103864
+ * GraphQL fragment containing core application fields.
103865
+ */
103866
+ declare const ApplicationFragment: gql_tada1.TadaDocumentNode<{
103867
+ id: string;
103868
+ uniqueName: string;
103869
+ name: string;
103870
+ workspace: {
103871
+ id: string;
103872
+ uniqueName: string;
103873
+ name: string;
103874
+ };
103875
+ }, {}, {
103876
+ fragment: "Application";
103877
+ on: "Application";
103878
+ masked: false;
103879
+ }>;
103880
+ /**
103881
+ * Type representing an application entity.
103882
+ */
103883
+ type Application = ResultOf<typeof ApplicationFragment>;
103884
+ /**
103885
+ * Mutation to create a new application.
103886
+ */
103887
+ declare const createApplication: gql_tada1.TadaDocumentNode<{
103888
+ createApplication: {
103889
+ id: string;
103890
+ uniqueName: string;
103891
+ name: string;
103892
+ workspace: {
103893
+ id: string;
103894
+ uniqueName: string;
103895
+ name: string;
103896
+ };
103897
+ };
103898
+ }, {
103899
+ workspaceId: string;
103900
+ name: string;
103901
+ }, void>;
103902
+ /**
103903
+ * Arguments required to create an application.
103904
+ */
103905
+ type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "workspaceId"> & {
103906
+ workspaceUniqueName: string;
103907
+ };
103908
+ /**
103909
+ * Creates a function to list applications in a workspace.
103910
+ *
103911
+ * @param gqlClient - The GraphQL client instance
103912
+ * @returns Function that fetches applications for a workspace
103913
+ * @throws If the workspace cannot be found or the request fails
103914
+ */
103915
+ //#endregion
103916
103916
  //#region src/graphql/blockchain-network.d.ts
103917
103917
  /**
103918
103918
  * Fragment containing core blockchain network fields.
@@ -150435,24 +150435,18 @@ interface SettlemintClient {
150435
150435
  create: (args: CreateBlockchainNetworkArgs) => Promise<BlockchainNetwork>;
150436
150436
  delete: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150437
150437
  restart: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150438
- pause: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150439
- resume: (networkUniqueName: string) => Promise<BlockchainNetwork>;
150440
150438
  };
150441
150439
  blockchainNode: {
150442
150440
  list: (applicationUniqueName: string) => Promise<BlockchainNode[]>;
150443
150441
  read: (blockchainNodeUniqueName: string) => Promise<BlockchainNode>;
150444
150442
  create: (args: CreateBlockchainNodeArgs) => Promise<BlockchainNode>;
150445
150443
  restart: (nodeUniqueName: string) => Promise<BlockchainNode>;
150446
- pause: (nodeUniqueName: string) => Promise<BlockchainNode>;
150447
- resume: (nodeUniqueName: string) => Promise<BlockchainNode>;
150448
150444
  };
150449
150445
  loadBalancer: {
150450
150446
  list: (applicationUniqueName: string) => Promise<LoadBalancer[]>;
150451
150447
  read: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150452
150448
  create: (args: CreateLoadBalancerArgs) => Promise<LoadBalancer>;
150453
150449
  restart: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150454
- pause: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150455
- resume: (loadBalancerUniqueName: string) => Promise<LoadBalancer>;
150456
150450
  };
150457
150451
  middleware: {
150458
150452
  list: (applicationUniqueName: string) => Promise<Middleware[]>;
@@ -150460,40 +150454,30 @@ interface SettlemintClient {
150460
150454
  graphSubgraphs: (middlewareUniqueName: string, noCache?: boolean) => Promise<MiddlewareWithSubgraphs>;
150461
150455
  create: (args: CreateMiddlewareArgs) => Promise<Middleware>;
150462
150456
  restart: (middlewareUniqueName: string) => Promise<Middleware>;
150463
- pause: (middlewareUniqueName: string) => Promise<Middleware>;
150464
- resume: (middlewareUniqueName: string) => Promise<Middleware>;
150465
150457
  };
150466
150458
  integrationTool: {
150467
150459
  list: (applicationUniqueName: string) => Promise<IntegrationTool[]>;
150468
150460
  read: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150469
150461
  create: (args: CreateIntegrationToolArgs) => Promise<IntegrationTool>;
150470
150462
  restart: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150471
- pause: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150472
- resume: (integrationToolUniqueName: string) => Promise<IntegrationTool>;
150473
150463
  };
150474
150464
  storage: {
150475
150465
  list: (applicationUniqueName: string) => Promise<Storage[]>;
150476
150466
  read: (storageUniqueName: string) => Promise<Storage>;
150477
150467
  create: (args: CreateStorageArgs) => Promise<Storage>;
150478
150468
  restart: (storageUniqueName: string) => Promise<Storage>;
150479
- pause: (storageUniqueName: string) => Promise<Storage>;
150480
- resume: (storageUniqueName: string) => Promise<Storage>;
150481
150469
  };
150482
150470
  privateKey: {
150483
150471
  list: (applicationUniqueName: string) => Promise<PrivateKey[]>;
150484
150472
  read: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150485
150473
  create: (args: CreatePrivateKeyArgs) => Promise<PrivateKey>;
150486
150474
  restart: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150487
- pause: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150488
- resume: (privateKeyUniqueName: string) => Promise<PrivateKey>;
150489
150475
  };
150490
150476
  insights: {
150491
150477
  list: (applicationUniqueName: string) => Promise<Insights[]>;
150492
150478
  read: (insightsUniqueName: string) => Promise<Insights>;
150493
150479
  create: (args: CreateInsightsArgs) => Promise<Insights>;
150494
150480
  restart: (insightsUniqueName: string) => Promise<Insights>;
150495
- pause: (insightsUniqueName: string) => Promise<Insights>;
150496
- resume: (insightsUniqueName: string) => Promise<Insights>;
150497
150481
  };
150498
150482
  customDeployment: {
150499
150483
  list: (applicationUniqueName: string) => Promise<CustomDeployment[]>;
@@ -150501,8 +150485,6 @@ interface SettlemintClient {
150501
150485
  create: (args: CreateCustomDeploymentArgs) => Promise<CustomDeployment>;
150502
150486
  update: (customDeploymentUniqueName: string, imageTag: string) => Promise<CustomDeployment>;
150503
150487
  restart: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150504
- pause: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150505
- resume: (customDeploymentUniqueName: string) => Promise<CustomDeployment>;
150506
150488
  };
150507
150489
  foundry: {
150508
150490
  env: (blockchainNodeUniqueName: string) => Promise<Record<string, string>>;