@settlemint/sdk-js 2.5.2-prfaef9f56 → 2.5.3

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,18 +1,18 @@
1
1
  /* SettleMint SDK - Main Package */
2
2
  import { Id } from "@settlemint/sdk-utils/validation";
3
- import * as gql_tada0 from "gql.tada";
3
+ import * as gql_tada22 from "gql.tada";
4
4
  import * as gql_tada1 from "gql.tada";
5
- import * as gql_tada2 from "gql.tada";
5
+ import * as gql_tada0 from "gql.tada";
6
6
  import * as gql_tada4 from "gql.tada";
7
+ import * as gql_tada2 from "gql.tada";
7
8
  import * as gql_tada6 from "gql.tada";
8
9
  import * as gql_tada8 from "gql.tada";
9
10
  import * as gql_tada10 from "gql.tada";
10
11
  import * as gql_tada12 from "gql.tada";
11
- import * as gql_tada14 from "gql.tada";
12
- import * as gql_tada17 from "gql.tada";
12
+ import * as gql_tada15 from "gql.tada";
13
+ import * as gql_tada16 from "gql.tada";
13
14
  import * as gql_tada18 from "gql.tada";
14
15
  import * as gql_tada20 from "gql.tada";
15
- import * as gql_tada22 from "gql.tada";
16
16
  import { ResultOf, VariablesOf, initGraphQLTada } from "gql.tada";
17
17
  import { GraphQLClient } from "graphql-request";
18
18
  import { z } from "zod";
@@ -104164,7 +104164,7 @@ declare const graphql: initGraphQLTada<{
104164
104164
  /**
104165
104165
  * GraphQL fragment containing core application fields.
104166
104166
  */
104167
- declare const ApplicationFragment: gql_tada0.TadaDocumentNode<{
104167
+ declare const ApplicationFragment: gql_tada22.TadaDocumentNode<{
104168
104168
  id: string;
104169
104169
  uniqueName: string;
104170
104170
  name: string;
@@ -104185,7 +104185,7 @@ type Application = ResultOf<typeof ApplicationFragment>;
104185
104185
  /**
104186
104186
  * Mutation to create a new application.
104187
104187
  */
104188
- declare const createApplication: gql_tada0.TadaDocumentNode<{
104188
+ declare const createApplication: gql_tada22.TadaDocumentNode<{
104189
104189
  createApplication: {
104190
104190
  id: string;
104191
104191
  uniqueName: string;
@@ -104304,7 +104304,7 @@ declare const applicationAccessTokenCreate: (gqlClient: GraphQLClient) => (args:
104304
104304
  /**
104305
104305
  * Fragment containing core blockchain network fields.
104306
104306
  */
104307
- declare const BlockchainNetworkFragment: gql_tada2.TadaDocumentNode<{
104307
+ declare const BlockchainNetworkFragment: gql_tada0.TadaDocumentNode<{
104308
104308
  __typename: "ArbitrumBlockchainNetwork";
104309
104309
  id: string;
104310
104310
  uniqueName: string;
@@ -117651,7 +117651,7 @@ type BlockchainNetwork = ResultOf<typeof BlockchainNetworkFragment>;
117651
117651
  /**
117652
117652
  * Mutation to create a new blockchain network.
117653
117653
  */
117654
- declare const createBlockchainNetwork: gql_tada2.TadaDocumentNode<{
117654
+ declare const createBlockchainNetwork: gql_tada0.TadaDocumentNode<{
117655
117655
  createBlockchainNetwork: {
117656
117656
  __typename: "ArbitrumBlockchainNetwork";
117657
117657
  id: string;
@@ -188237,7 +188237,7 @@ declare const blockchainNodeResume: (gqlClient: GraphQLClient) => (blockchainNod
188237
188237
  /**
188238
188238
  * Fragment containing core custom deployment fields.
188239
188239
  */
188240
- declare const CustomDeploymentFragment: gql_tada6.TadaDocumentNode<{
188240
+ declare const CustomDeploymentFragment: gql_tada2.TadaDocumentNode<{
188241
188241
  id: string;
188242
188242
  uniqueName: string;
188243
188243
  name: string;
@@ -188267,7 +188267,7 @@ type CustomDeployment = ResultOf<typeof CustomDeploymentFragment>;
188267
188267
  /**
188268
188268
  * Mutation to create a custom deployment.
188269
188269
  */
188270
- declare const createCustomDeployment: gql_tada6.TadaDocumentNode<{
188270
+ declare const createCustomDeployment: gql_tada2.TadaDocumentNode<{
188271
188271
  createCustomDeployment: {
188272
188272
  id: string;
188273
188273
  uniqueName: string;
@@ -188367,7 +188367,7 @@ declare const customDeploymentResume: (gqlClient: GraphQLClient) => (customDeplo
188367
188367
  /**
188368
188368
  * GraphQL fragment containing core insights fields.
188369
188369
  */
188370
- declare const InsightsFragment: gql_tada8.TadaDocumentNode<{
188370
+ declare const InsightsFragment: gql_tada6.TadaDocumentNode<{
188371
188371
  __typename: "BlockchainExplorer";
188372
188372
  id: string;
188373
188373
  uniqueName: string;
@@ -188439,7 +188439,7 @@ type Insights = ResultOf<typeof InsightsFragment>;
188439
188439
  /**
188440
188440
  * Mutation to create insights.
188441
188441
  */
188442
- declare const createInsights: gql_tada8.TadaDocumentNode<{
188442
+ declare const createInsights: gql_tada6.TadaDocumentNode<{
188443
188443
  createInsights: {
188444
188444
  __typename: "BlockchainExplorer";
188445
188445
  id: string;
@@ -188573,7 +188573,7 @@ declare const insightsResume: (gqlClient: GraphQLClient) => (insightsUniqueName:
188573
188573
  /**
188574
188574
  * GraphQL fragment containing core integration fields.
188575
188575
  */
188576
- declare const IntegrationFragment: gql_tada10.TadaDocumentNode<{
188576
+ declare const IntegrationFragment: gql_tada8.TadaDocumentNode<{
188577
188577
  __typename: "Chainlink";
188578
188578
  id: string;
188579
188579
  uniqueName: string;
@@ -188665,7 +188665,7 @@ type IntegrationTool = ResultOf<typeof IntegrationFragment>;
188665
188665
  /**
188666
188666
  * Mutation to create a new integration.
188667
188667
  */
188668
- declare const createIntegration: gql_tada10.TadaDocumentNode<{
188668
+ declare const createIntegration: gql_tada8.TadaDocumentNode<{
188669
188669
  createIntegration: {
188670
188670
  __typename: "Chainlink";
188671
188671
  id: string;
@@ -188815,7 +188815,7 @@ declare const integrationToolResume: (gqlClient: GraphQLClient) => (integrationU
188815
188815
  /**
188816
188816
  * GraphQL fragment containing core load balancer fields.
188817
188817
  */
188818
- declare const LoadBalancerFragment: gql_tada12.TadaDocumentNode<{
188818
+ declare const LoadBalancerFragment: gql_tada10.TadaDocumentNode<{
188819
188819
  __typename: "EVMLoadBalancer";
188820
188820
  id: string;
188821
188821
  uniqueName: string;
@@ -188855,7 +188855,7 @@ type LoadBalancer = ResultOf<typeof LoadBalancerFragment>;
188855
188855
  /**
188856
188856
  * Mutation to create a load balancer.
188857
188857
  */
188858
- declare const createLoadBalancer: gql_tada12.TadaDocumentNode<{
188858
+ declare const createLoadBalancer: gql_tada10.TadaDocumentNode<{
188859
188859
  createLoadBalancer: {
188860
188860
  __typename: "EVMLoadBalancer";
188861
188861
  id: string;
@@ -188956,7 +188956,7 @@ declare const loadBalancerResume: (gqlClient: GraphQLClient) => (loadBalancerUni
188956
188956
  /**
188957
188957
  * GraphQL fragment containing core middleware fields.
188958
188958
  */
188959
- declare const MiddlewareFragment: gql_tada14.TadaDocumentNode<{
188959
+ declare const MiddlewareFragment: gql_tada12.TadaDocumentNode<{
188960
188960
  __typename: "AttestationIndexerMiddleware";
188961
188961
  id: string;
188962
188962
  uniqueName: string;
@@ -189089,6 +189089,7 @@ declare const MiddlewareFragment: gql_tada14.TadaDocumentNode<{
189089
189089
  label: string;
189090
189090
  displayValue: string;
189091
189091
  }[];
189092
+ specVersion: string;
189092
189093
  } | {
189093
189094
  __typename: "SmartContractPortalMiddleware";
189094
189095
  id: string;
@@ -189123,7 +189124,7 @@ type Middleware = ResultOf<typeof MiddlewareFragment>;
189123
189124
  /**
189124
189125
  * Query to fetch a specific middleware with subgraphs.
189125
189126
  */
189126
- declare const getGraphMiddlewareSubgraphs: gql_tada14.TadaDocumentNode<{
189127
+ declare const getGraphMiddlewareSubgraphs: gql_tada12.TadaDocumentNode<{
189127
189128
  middlewareByUniqueName: {
189128
189129
  __typename: "AttestationIndexerMiddleware";
189129
189130
  id: string;
@@ -189264,6 +189265,14 @@ declare const getGraphMiddlewareSubgraphs: gql_tada14.TadaDocumentNode<{
189264
189265
  label: string;
189265
189266
  displayValue: string;
189266
189267
  }[];
189268
+ specVersion: string;
189269
+ subgraphs: {
189270
+ name: string;
189271
+ graphqlQueryEndpoint: {
189272
+ displayValue: string;
189273
+ id: string;
189274
+ };
189275
+ }[];
189267
189276
  } | {
189268
189277
  __typename: "SmartContractPortalMiddleware";
189269
189278
  id: string;
@@ -189298,7 +189307,7 @@ type MiddlewareWithSubgraphs = ResultOf<typeof getGraphMiddlewareSubgraphs>["mid
189298
189307
  /**
189299
189308
  * Mutation to create a new middleware.
189300
189309
  */
189301
- declare const createMiddleware: gql_tada14.TadaDocumentNode<{
189310
+ declare const createMiddleware: gql_tada12.TadaDocumentNode<{
189302
189311
  createMiddleware: {
189303
189312
  __typename: "AttestationIndexerMiddleware";
189304
189313
  id: string;
@@ -189388,7 +189397,7 @@ declare const createMiddleware: gql_tada14.TadaDocumentNode<{
189388
189397
  displayValue: string;
189389
189398
  }[];
189390
189399
  } | {
189391
- __typename: "HAGraphPostgresMiddleware";
189400
+ __typename: "SmartContractPortalMiddleware";
189392
189401
  id: string;
189393
189402
  uniqueName: string;
189394
189403
  name: string;
@@ -189410,7 +189419,7 @@ declare const createMiddleware: gql_tada14.TadaDocumentNode<{
189410
189419
  displayValue: string;
189411
189420
  }[];
189412
189421
  } | {
189413
- __typename: "SmartContractPortalMiddleware";
189422
+ __typename: "HAGraphMiddleware";
189414
189423
  id: string;
189415
189424
  uniqueName: string;
189416
189425
  name: string;
@@ -189431,8 +189440,9 @@ declare const createMiddleware: gql_tada14.TadaDocumentNode<{
189431
189440
  label: string;
189432
189441
  displayValue: string;
189433
189442
  }[];
189443
+ specVersion: string;
189434
189444
  } | {
189435
- __typename: "HAGraphMiddleware";
189445
+ __typename: "HAGraphPostgresMiddleware";
189436
189446
  id: string;
189437
189447
  uniqueName: string;
189438
189448
  name: string;
@@ -189542,7 +189552,7 @@ declare const middlewareResume: (gqlClient: GraphQLClient) => (middlewareUniqueN
189542
189552
  /**
189543
189553
  * GraphQL query to fetch platform configuration.
189544
189554
  */
189545
- declare const getPlatformConfigQuery: gql_tada17.TadaDocumentNode<{
189555
+ declare const getPlatformConfigQuery: gql_tada15.TadaDocumentNode<{
189546
189556
  config: {
189547
189557
  smartContractSets: {
189548
189558
  id: string;
@@ -189599,7 +189609,7 @@ declare const getPlatformConfig: (gqlClient: GraphQLClient) => () => Promise<Pla
189599
189609
  /**
189600
189610
  * GraphQL fragment containing core private key fields.
189601
189611
  */
189602
- declare const PrivateKeyFragment: gql_tada18.TadaDocumentNode<{
189612
+ declare const PrivateKeyFragment: gql_tada16.TadaDocumentNode<{
189603
189613
  __typename: "AccessibleEcdsaP256PrivateKey";
189604
189614
  id: string;
189605
189615
  uniqueName: string;
@@ -190241,7 +190251,7 @@ type PrivateKey = ResultOf<typeof PrivateKeyFragment>;
190241
190251
  /**
190242
190252
  * Mutation to create a new private key.
190243
190253
  */
190244
- declare const createPrivateKey: gql_tada18.TadaDocumentNode<{
190254
+ declare const createPrivateKey: gql_tada16.TadaDocumentNode<{
190245
190255
  createPrivateKey: {
190246
190256
  __typename: "AccessibleEcdsaP256PrivateKey";
190247
190257
  id: string;
@@ -190947,7 +190957,7 @@ declare const privateKeyResume: (gqlClient: GraphQLClient) => (privateKeyUniqueN
190947
190957
  /**
190948
190958
  * GraphQL fragment containing core storage fields.
190949
190959
  */
190950
- declare const StorageFragment: gql_tada20.TadaDocumentNode<{
190960
+ declare const StorageFragment: gql_tada18.TadaDocumentNode<{
190951
190961
  __typename: "IPFSStorage";
190952
190962
  id: string;
190953
190963
  uniqueName: string;
@@ -190999,7 +191009,7 @@ type Storage = ResultOf<typeof StorageFragment>;
190999
191009
  /**
191000
191010
  * Mutation to create a new storage.
191001
191011
  */
191002
- declare const createStorage: gql_tada20.TadaDocumentNode<{
191012
+ declare const createStorage: gql_tada18.TadaDocumentNode<{
191003
191013
  createStorage: {
191004
191014
  __typename: "IPFSStorage";
191005
191015
  id: string;
@@ -191109,7 +191119,7 @@ declare const storageResume: (gqlClient: GraphQLClient) => (storageUniqueName: s
191109
191119
  /**
191110
191120
  * GraphQL fragment containing core workspace fields.
191111
191121
  */
191112
- declare const WorkspaceFragment: gql_tada22.TadaDocumentNode<{
191122
+ declare const WorkspaceFragment: gql_tada20.TadaDocumentNode<{
191113
191123
  id: string;
191114
191124
  uniqueName: string;
191115
191125
  name: string;
@@ -191130,7 +191140,7 @@ type Workspace = ResultOf<typeof WorkspaceFragment>;
191130
191140
  /**
191131
191141
  * Mutation to create a new workspace.
191132
191142
  */
191133
- declare const createWorkspace: gql_tada22.TadaDocumentNode<{
191143
+ declare const createWorkspace: gql_tada20.TadaDocumentNode<{
191134
191144
  createWorkspace: {
191135
191145
  id: string;
191136
191146
  uniqueName: string;
@@ -189089,6 +189089,7 @@ declare const MiddlewareFragment: gql_tada14.TadaDocumentNode<{
189089
189089
  label: string;
189090
189090
  displayValue: string;
189091
189091
  }[];
189092
+ specVersion: string;
189092
189093
  } | {
189093
189094
  __typename: "SmartContractPortalMiddleware";
189094
189095
  id: string;
@@ -189264,6 +189265,14 @@ declare const getGraphMiddlewareSubgraphs: gql_tada14.TadaDocumentNode<{
189264
189265
  label: string;
189265
189266
  displayValue: string;
189266
189267
  }[];
189268
+ specVersion: string;
189269
+ subgraphs: {
189270
+ name: string;
189271
+ graphqlQueryEndpoint: {
189272
+ displayValue: string;
189273
+ id: string;
189274
+ };
189275
+ }[];
189267
189276
  } | {
189268
189277
  __typename: "SmartContractPortalMiddleware";
189269
189278
  id: string;
@@ -189388,7 +189397,7 @@ declare const createMiddleware: gql_tada14.TadaDocumentNode<{
189388
189397
  displayValue: string;
189389
189398
  }[];
189390
189399
  } | {
189391
- __typename: "HAGraphPostgresMiddleware";
189400
+ __typename: "SmartContractPortalMiddleware";
189392
189401
  id: string;
189393
189402
  uniqueName: string;
189394
189403
  name: string;
@@ -189410,7 +189419,7 @@ declare const createMiddleware: gql_tada14.TadaDocumentNode<{
189410
189419
  displayValue: string;
189411
189420
  }[];
189412
189421
  } | {
189413
- __typename: "SmartContractPortalMiddleware";
189422
+ __typename: "HAGraphMiddleware";
189414
189423
  id: string;
189415
189424
  uniqueName: string;
189416
189425
  name: string;
@@ -189431,8 +189440,9 @@ declare const createMiddleware: gql_tada14.TadaDocumentNode<{
189431
189440
  label: string;
189432
189441
  displayValue: string;
189433
189442
  }[];
189443
+ specVersion: string;
189434
189444
  } | {
189435
- __typename: "HAGraphMiddleware";
189445
+ __typename: "HAGraphPostgresMiddleware";
189436
189446
  id: string;
189437
189447
  uniqueName: string;
189438
189448
  name: string;
@@ -1962,6 +1962,18 @@ const MiddlewareFragment = graphql(`
1962
1962
  ... on HAGraphMiddleware {
1963
1963
  specVersion
1964
1964
  }
1965
+ ... on HAGraphPostgresMiddleware {
1966
+ specVersion
1967
+ }
1968
+ }
1969
+ `);
1970
+ const SubgraphFragment = graphql(`
1971
+ fragment Subgraph on Subgraph {
1972
+ name
1973
+ graphqlQueryEndpoint {
1974
+ displayValue
1975
+ id
1976
+ }
1965
1977
  }
1966
1978
  `);
1967
1979
  /**
@@ -1995,16 +2007,17 @@ const getGraphMiddlewareSubgraphs = graphql(`
1995
2007
  ...Middleware
1996
2008
  ... on HAGraphMiddleware {
1997
2009
  subgraphs(noCache: $noCache) {
1998
- name
1999
- graphqlQueryEndpoint {
2000
- displayValue
2001
- id
2002
- }
2010
+ ...Subgraph
2011
+ }
2012
+ }
2013
+ ... on HAGraphPostgresMiddleware {
2014
+ subgraphs(noCache: $noCache) {
2015
+ ...Subgraph
2003
2016
  }
2004
2017
  }
2005
2018
  }
2006
2019
  }
2007
- `, [MiddlewareFragment]);
2020
+ `, [MiddlewareFragment, SubgraphFragment]);
2008
2021
  /**
2009
2022
  * Mutation to create a new middleware.
2010
2023
  */