@settlemint/sdk-js 2.4.0-pr6c110aa5 → 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
@@ -597,6 +597,26 @@ const restartBlockchainNetwork = graphql(`
597
597
  }
598
598
  `, [BlockchainNetworkFragment]);
599
599
  /**
600
+ * Mutation to pause a blockchain network.
601
+ */
602
+ const pauseBlockchainNetwork = graphql(`
603
+ mutation PauseBlockchainNetwork($uniqueName: String!) {
604
+ pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
605
+ ...BlockchainNetwork
606
+ }
607
+ }
608
+ `, [BlockchainNetworkFragment]);
609
+ /**
610
+ * Mutation to resume a blockchain network.
611
+ */
612
+ const resumeBlockchainNetwork = graphql(`
613
+ mutation ResumeBlockchainNetwork($uniqueName: String!) {
614
+ resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
615
+ ...BlockchainNetwork
616
+ }
617
+ }
618
+ `, [BlockchainNetworkFragment]);
619
+ /**
600
620
  * Creates a function to list blockchain networks for a given application.
601
621
  *
602
622
  * @param gqlClient - The GraphQL client instance
@@ -665,6 +685,28 @@ const blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueNa
665
685
  const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
666
686
  return blockchainNetwork;
667
687
  };
688
+ /**
689
+ * Creates a function to pause a blockchain network.
690
+ *
691
+ * @param gqlClient - The GraphQL client instance
692
+ * @returns Function that pauses a network by unique name
693
+ * @throws If the network cannot be found or the pause fails
694
+ */
695
+ const blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
696
+ const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
697
+ return blockchainNetwork;
698
+ };
699
+ /**
700
+ * Creates a function to resume a blockchain network.
701
+ *
702
+ * @param gqlClient - The GraphQL client instance
703
+ * @returns Function that resumes a network by unique name
704
+ * @throws If the network cannot be found or the resume fails
705
+ */
706
+ const blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
707
+ const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
708
+ return blockchainNetwork;
709
+ };
668
710
 
669
711
  //#endregion
670
712
  //#region src/graphql/blockchain-node.ts
@@ -817,6 +859,26 @@ const restartBlockchainNode = graphql(`
817
859
  }
818
860
  `, [BlockchainNodeFragment]);
819
861
  /**
862
+ * Mutation to pause a blockchain node.
863
+ */
864
+ const pauseBlockchainNode = graphql(`
865
+ mutation PauseBlockchainNode($uniqueName: String!) {
866
+ pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
867
+ ...BlockchainNode
868
+ }
869
+ }
870
+ `, [BlockchainNodeFragment]);
871
+ /**
872
+ * Mutation to resume a blockchain node.
873
+ */
874
+ const resumeBlockchainNode = graphql(`
875
+ mutation ResumeBlockchainNode($uniqueName: String!) {
876
+ resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
877
+ ...BlockchainNode
878
+ }
879
+ }
880
+ `, [BlockchainNodeFragment]);
881
+ /**
820
882
  * Creates a function to list blockchain nodes for an application.
821
883
  *
822
884
  * @param gqlClient - The GraphQL client instance
@@ -872,6 +934,28 @@ const blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) =>
872
934
  const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
873
935
  return blockchainNode;
874
936
  };
937
+ /**
938
+ * Creates a function to pause a blockchain node.
939
+ *
940
+ * @param gqlClient - The GraphQL client instance
941
+ * @returns Function that pauses a blockchain node by unique name
942
+ * @throws If the blockchain node cannot be found or the pause fails
943
+ */
944
+ const blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
945
+ const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
946
+ return blockchainNode;
947
+ };
948
+ /**
949
+ * Creates a function to resume a blockchain node.
950
+ *
951
+ * @param gqlClient - The GraphQL client instance
952
+ * @returns Function that resumes a blockchain node by unique name
953
+ * @throws If the blockchain node cannot be found or the resume fails
954
+ */
955
+ const blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
956
+ const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
957
+ return blockchainNode;
958
+ };
875
959
 
876
960
  //#endregion
877
961
  //#region src/graphql/custom-deployment.ts
@@ -976,6 +1060,26 @@ const restartCustomDeployment = graphql(`
976
1060
  }
977
1061
  `, [CustomDeploymentFragment]);
978
1062
  /**
1063
+ * Mutation to pause a custom deployment.
1064
+ */
1065
+ const pauseCustomDeployment = graphql(`
1066
+ mutation PauseCustomDeployment($uniqueName: String!) {
1067
+ pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
1068
+ ...CustomDeployment
1069
+ }
1070
+ }
1071
+ `, [CustomDeploymentFragment]);
1072
+ /**
1073
+ * Mutation to resume a custom deployment.
1074
+ */
1075
+ const resumeCustomDeployment = graphql(`
1076
+ mutation ResumeCustomDeployment($uniqueName: String!) {
1077
+ resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
1078
+ ...CustomDeployment
1079
+ }
1080
+ }
1081
+ `, [CustomDeploymentFragment]);
1082
+ /**
979
1083
  * Creates a function to list custom deployments for an application.
980
1084
  *
981
1085
  * @param gqlClient - The GraphQL client instance
@@ -1046,6 +1150,28 @@ const customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName
1046
1150
  const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
1047
1151
  return customDeployment;
1048
1152
  };
1153
+ /**
1154
+ * Creates a function to pause a custom deployment.
1155
+ *
1156
+ * @param gqlClient - The GraphQL client instance
1157
+ * @returns Function that pauses a custom deployment by unique name
1158
+ * @throws If the custom deployment cannot be found or the pause fails
1159
+ */
1160
+ const customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
1161
+ const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
1162
+ return customDeployment;
1163
+ };
1164
+ /**
1165
+ * Creates a function to resume a custom deployment.
1166
+ *
1167
+ * @param gqlClient - The GraphQL client instance
1168
+ * @returns Function that resumes a custom deployment by unique name
1169
+ * @throws If the custom deployment cannot be found or the resume fails
1170
+ */
1171
+ const customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
1172
+ const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
1173
+ return customDeployment;
1174
+ };
1049
1175
 
1050
1176
  //#endregion
1051
1177
  //#region src/graphql/foundry.ts
@@ -1154,6 +1280,26 @@ const restartLoadBalancer = graphql(`
1154
1280
  }
1155
1281
  `, [LoadBalancerFragment]);
1156
1282
  /**
1283
+ * Mutation to pause a load balancer.
1284
+ */
1285
+ const pauseLoadBalancer = graphql(`
1286
+ mutation PauseLoadBalancer($uniqueName: String!) {
1287
+ pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
1288
+ ...LoadBalancer
1289
+ }
1290
+ }
1291
+ `, [LoadBalancerFragment]);
1292
+ /**
1293
+ * Mutation to resume a load balancer.
1294
+ */
1295
+ const resumeLoadBalancer = graphql(`
1296
+ mutation ResumeLoadBalancer($uniqueName: String!) {
1297
+ resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
1298
+ ...LoadBalancer
1299
+ }
1300
+ }
1301
+ `, [LoadBalancerFragment]);
1302
+ /**
1157
1303
  * Creates a function to fetch a specific load balancer.
1158
1304
  *
1159
1305
  * @param gqlClient - The GraphQL client instance
@@ -1214,6 +1360,28 @@ const loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
1214
1360
  const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
1215
1361
  return loadBalancer;
1216
1362
  };
1363
+ /**
1364
+ * Creates a function to pause a load balancer.
1365
+ *
1366
+ * @param gqlClient - The GraphQL client instance
1367
+ * @returns Function that pauses a load balancer
1368
+ * @throws If the load balancer cannot be paused or the request fails
1369
+ */
1370
+ const loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
1371
+ const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
1372
+ return loadBalancer;
1373
+ };
1374
+ /**
1375
+ * Creates a function to resume a load balancer.
1376
+ *
1377
+ * @param gqlClient - The GraphQL client instance
1378
+ * @returns Function that resumes a load balancer
1379
+ * @throws If the load balancer cannot be resumed or the request fails
1380
+ */
1381
+ const loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
1382
+ const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
1383
+ return loadBalancer;
1384
+ };
1217
1385
 
1218
1386
  //#endregion
1219
1387
  //#region src/graphql/insights.ts
@@ -1306,6 +1474,26 @@ const restartInsights = graphql(`
1306
1474
  }
1307
1475
  `, [InsightsFragment]);
1308
1476
  /**
1477
+ * Mutation to pause insights.
1478
+ */
1479
+ const pauseInsights = graphql(`
1480
+ mutation PauseInsights($uniqueName: String!) {
1481
+ pauseInsightsByUniqueName(uniqueName: $uniqueName) {
1482
+ ...Insights
1483
+ }
1484
+ }
1485
+ `, [InsightsFragment]);
1486
+ /**
1487
+ * Mutation to resume insights.
1488
+ */
1489
+ const resumeInsights = graphql(`
1490
+ mutation ResumeInsights($uniqueName: String!) {
1491
+ resumeInsightsByUniqueName(uniqueName: $uniqueName) {
1492
+ ...Insights
1493
+ }
1494
+ }
1495
+ `, [InsightsFragment]);
1496
+ /**
1309
1497
  * Creates a function to list insights for an application.
1310
1498
  *
1311
1499
  * @param gqlClient - The GraphQL client instance
@@ -1366,6 +1554,28 @@ const insightsRestart = (gqlClient) => async (insightsUniqueName) => {
1366
1554
  const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
1367
1555
  return insights;
1368
1556
  };
1557
+ /**
1558
+ * Creates a function to pause insights.
1559
+ *
1560
+ * @param gqlClient - The GraphQL client instance
1561
+ * @returns Function that pauses insights by unique name
1562
+ * @throws If the insights cannot be found or the pause fails
1563
+ */
1564
+ const insightsPause = (gqlClient) => async (insightsUniqueName) => {
1565
+ const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
1566
+ return insights;
1567
+ };
1568
+ /**
1569
+ * Creates a function to resume insights.
1570
+ *
1571
+ * @param gqlClient - The GraphQL client instance
1572
+ * @returns Function that resumes insights by unique name
1573
+ * @throws If the insights cannot be found or the resume fails
1574
+ */
1575
+ const insightsResume = (gqlClient) => async (insightsUniqueName) => {
1576
+ const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
1577
+ return insights;
1578
+ };
1369
1579
 
1370
1580
  //#endregion
1371
1581
  //#region src/graphql/integration-tool.ts
@@ -1454,6 +1664,26 @@ const restartIntegrationTool = graphql(`
1454
1664
  }
1455
1665
  `, [IntegrationFragment]);
1456
1666
  /**
1667
+ * Mutation to pause an integration.
1668
+ */
1669
+ const pauseIntegrationTool = graphql(`
1670
+ mutation PauseIntegrationTool($uniqueName: String!) {
1671
+ pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
1672
+ ...Integration
1673
+ }
1674
+ }
1675
+ `, [IntegrationFragment]);
1676
+ /**
1677
+ * Mutation to resume an integration.
1678
+ */
1679
+ const resumeIntegrationTool = graphql(`
1680
+ mutation ResumeIntegrationTool($uniqueName: String!) {
1681
+ resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
1682
+ ...Integration
1683
+ }
1684
+ }
1685
+ `, [IntegrationFragment]);
1686
+ /**
1457
1687
  * Creates a function to list integration tools for an application.
1458
1688
  *
1459
1689
  * @param gqlClient - The GraphQL client instance
@@ -1508,6 +1738,28 @@ const integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
1508
1738
  const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
1509
1739
  return integration;
1510
1740
  };
1741
+ /**
1742
+ * Creates a function to pause an integration tool.
1743
+ *
1744
+ * @param gqlClient - The GraphQL client instance
1745
+ * @returns Function that pauses integration tool by unique name
1746
+ * @throws If the integration tool cannot be found or the pause fails
1747
+ */
1748
+ const integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
1749
+ const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
1750
+ return integration;
1751
+ };
1752
+ /**
1753
+ * Creates a function to resume an integration tool.
1754
+ *
1755
+ * @param gqlClient - The GraphQL client instance
1756
+ * @returns Function that resumes integration tool by unique name
1757
+ * @throws If the integration tool cannot be found or the resume fails
1758
+ */
1759
+ const integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
1760
+ const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
1761
+ return integration;
1762
+ };
1511
1763
 
1512
1764
  //#endregion
1513
1765
  //#region src/graphql/storage.ts
@@ -1596,6 +1848,26 @@ const restartStorage = graphql(`
1596
1848
  }
1597
1849
  `, [StorageFragment]);
1598
1850
  /**
1851
+ * Mutation to pause a storage.
1852
+ */
1853
+ const pauseStorage = graphql(`
1854
+ mutation PauseStorage($uniqueName: String!) {
1855
+ pauseStorageByUniqueName(uniqueName: $uniqueName) {
1856
+ ...Storage
1857
+ }
1858
+ }
1859
+ `, [StorageFragment]);
1860
+ /**
1861
+ * Mutation to resume a storage.
1862
+ */
1863
+ const resumeStorage = graphql(`
1864
+ mutation ResumeStorage($uniqueName: String!) {
1865
+ resumeStorageByUniqueName(uniqueName: $uniqueName) {
1866
+ ...Storage
1867
+ }
1868
+ }
1869
+ `, [StorageFragment]);
1870
+ /**
1599
1871
  * Creates a function to list storages for an application.
1600
1872
  *
1601
1873
  * @param gqlClient - The GraphQL client instance
@@ -1650,6 +1922,28 @@ const storageRestart = (gqlClient) => async (storageUniqueName) => {
1650
1922
  const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
1651
1923
  return storage;
1652
1924
  };
1925
+ /**
1926
+ * Creates a function to pause a storage.
1927
+ *
1928
+ * @param gqlClient - The GraphQL client instance
1929
+ * @returns Function that pauses storage by unique name
1930
+ * @throws If the storage cannot be found or the pause fails
1931
+ */
1932
+ const storagePause = (gqlClient) => async (storageUniqueName) => {
1933
+ const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
1934
+ return storage;
1935
+ };
1936
+ /**
1937
+ * Creates a function to resume a storage.
1938
+ *
1939
+ * @param gqlClient - The GraphQL client instance
1940
+ * @returns Function that resumes storage by unique name
1941
+ * @throws If the storage cannot be found or the resume fails
1942
+ */
1943
+ const storageResume = (gqlClient) => async (storageUniqueName) => {
1944
+ const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
1945
+ return storage;
1946
+ };
1653
1947
 
1654
1948
  //#endregion
1655
1949
  //#region src/graphql/middleware.ts
@@ -1772,6 +2066,26 @@ const restartMiddleware = graphql(`
1772
2066
  }
1773
2067
  `, [MiddlewareFragment]);
1774
2068
  /**
2069
+ * Mutation to pause a middleware.
2070
+ */
2071
+ const pauseMiddleware = graphql(`
2072
+ mutation PauseMiddleware($uniqueName: String!) {
2073
+ pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
2074
+ ...Middleware
2075
+ }
2076
+ }
2077
+ `, [MiddlewareFragment]);
2078
+ /**
2079
+ * Mutation to resume a middleware.
2080
+ */
2081
+ const resumeMiddleware = graphql(`
2082
+ mutation ResumeMiddleware($uniqueName: String!) {
2083
+ resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
2084
+ ...Middleware
2085
+ }
2086
+ }
2087
+ `, [MiddlewareFragment]);
2088
+ /**
1775
2089
  * Creates a function to list middlewares for an application.
1776
2090
  *
1777
2091
  * @param gqlClient - The GraphQL client instance
@@ -1850,6 +2164,28 @@ const middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
1850
2164
  const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
1851
2165
  return middleware;
1852
2166
  };
2167
+ /**
2168
+ * Creates a function to pause a middleware.
2169
+ *
2170
+ * @param gqlClient - The GraphQL client instance
2171
+ * @returns Function that pauses middleware by unique name
2172
+ * @throws If the middleware cannot be found or the pause fails
2173
+ */
2174
+ const middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
2175
+ const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
2176
+ return middleware;
2177
+ };
2178
+ /**
2179
+ * Creates a function to resume a middleware.
2180
+ *
2181
+ * @param gqlClient - The GraphQL client instance
2182
+ * @returns Function that resumes middleware by unique name
2183
+ * @throws If the middleware cannot be found or the resume fails
2184
+ */
2185
+ const middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
2186
+ const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
2187
+ return middleware;
2188
+ };
1853
2189
 
1854
2190
  //#endregion
1855
2191
  //#region src/graphql/platform.ts
@@ -2014,6 +2350,26 @@ const restartPrivateKey = graphql(`
2014
2350
  }
2015
2351
  `, [PrivateKeyFragment]);
2016
2352
  /**
2353
+ * Mutation to pause a private key.
2354
+ */
2355
+ const pausePrivateKey = graphql(`
2356
+ mutation PausePrivateKey($uniqueName: String!) {
2357
+ pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
2358
+ ...PrivateKey
2359
+ }
2360
+ }
2361
+ `, [PrivateKeyFragment]);
2362
+ /**
2363
+ * Mutation to resume a private key.
2364
+ */
2365
+ const resumePrivateKey = graphql(`
2366
+ mutation ResumePrivateKey($uniqueName: String!) {
2367
+ resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
2368
+ ...PrivateKey
2369
+ }
2370
+ }
2371
+ `, [PrivateKeyFragment]);
2372
+ /**
2017
2373
  * Creates a function to list private keys for an application.
2018
2374
  *
2019
2375
  * @param gqlClient - The GraphQL client instance
@@ -2079,6 +2435,28 @@ const privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
2079
2435
  const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
2080
2436
  return privateKey;
2081
2437
  };
2438
+ /**
2439
+ * Creates a function to pause a private key.
2440
+ *
2441
+ * @param gqlClient - The GraphQL client instance
2442
+ * @returns Function that pauses private key by unique name
2443
+ * @throws If the private key cannot be found or the pause fails
2444
+ */
2445
+ const privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
2446
+ const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
2447
+ return privateKey;
2448
+ };
2449
+ /**
2450
+ * Creates a function to resume a private key.
2451
+ *
2452
+ * @param gqlClient - The GraphQL client instance
2453
+ * @returns Function that resumes private key by unique name
2454
+ * @throws If the private key cannot be found or the resume fails
2455
+ */
2456
+ const privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
2457
+ const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
2458
+ return privateKey;
2459
+ };
2082
2460
 
2083
2461
  //#endregion
2084
2462
  //#region src/helpers/client-options.schema.ts
@@ -2203,57 +2581,75 @@ function createSettleMintClient(options) {
2203
2581
  read: blockchainNetworkRead(gqlClient),
2204
2582
  create: blockchainNetworkCreate(gqlClient),
2205
2583
  delete: blockchainNetworkDelete(gqlClient),
2206
- restart: blockchainNetworkRestart(gqlClient)
2584
+ restart: blockchainNetworkRestart(gqlClient),
2585
+ pause: blockchainNetworkPause(gqlClient),
2586
+ resume: blockchainNetworkResume(gqlClient)
2207
2587
  },
2208
2588
  blockchainNode: {
2209
2589
  list: blockchainNodeList(gqlClient),
2210
2590
  read: blockchainNodeRead(gqlClient),
2211
2591
  create: blockchainNodeCreate(gqlClient),
2212
- restart: blockchainNodeRestart(gqlClient)
2592
+ restart: blockchainNodeRestart(gqlClient),
2593
+ pause: blockchainNodePause(gqlClient),
2594
+ resume: blockchainNodeResume(gqlClient)
2213
2595
  },
2214
2596
  loadBalancer: {
2215
2597
  list: loadBalancerList(gqlClient),
2216
2598
  read: loadBalancerRead(gqlClient),
2217
2599
  create: loadBalancerCreate(gqlClient),
2218
- restart: loadBalancerRestart(gqlClient)
2600
+ restart: loadBalancerRestart(gqlClient),
2601
+ pause: loadBalancerPause(gqlClient),
2602
+ resume: loadBalancerResume(gqlClient)
2219
2603
  },
2220
2604
  middleware: {
2221
2605
  list: middlewareList(gqlClient),
2222
2606
  read: middlewareRead(gqlClient),
2223
2607
  graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
2224
2608
  create: middlewareCreate(gqlClient),
2225
- restart: middlewareRestart(gqlClient)
2609
+ restart: middlewareRestart(gqlClient),
2610
+ pause: middlewarePause(gqlClient),
2611
+ resume: middlewareResume(gqlClient)
2226
2612
  },
2227
2613
  integrationTool: {
2228
2614
  list: integrationToolList(gqlClient),
2229
2615
  read: integrationToolRead(gqlClient),
2230
2616
  create: integrationToolCreate(gqlClient),
2231
- restart: integrationToolRestart(gqlClient)
2617
+ restart: integrationToolRestart(gqlClient),
2618
+ pause: integrationToolPause(gqlClient),
2619
+ resume: integrationToolResume(gqlClient)
2232
2620
  },
2233
2621
  storage: {
2234
2622
  list: storageList(gqlClient),
2235
2623
  read: storageRead(gqlClient),
2236
2624
  create: storageCreate(gqlClient),
2237
- restart: storageRestart(gqlClient)
2625
+ restart: storageRestart(gqlClient),
2626
+ pause: storagePause(gqlClient),
2627
+ resume: storageResume(gqlClient)
2238
2628
  },
2239
2629
  privateKey: {
2240
2630
  list: privateKeyList(gqlClient),
2241
2631
  read: privatekeyRead(gqlClient),
2242
2632
  create: privateKeyCreate(gqlClient),
2243
- restart: privateKeyRestart(gqlClient)
2633
+ restart: privateKeyRestart(gqlClient),
2634
+ pause: privateKeyPause(gqlClient),
2635
+ resume: privateKeyResume(gqlClient)
2244
2636
  },
2245
2637
  insights: {
2246
2638
  list: insightsList(gqlClient),
2247
2639
  read: insightsRead(gqlClient),
2248
2640
  create: insightsCreate(gqlClient),
2249
- restart: insightsRestart(gqlClient)
2641
+ restart: insightsRestart(gqlClient),
2642
+ pause: insightsPause(gqlClient),
2643
+ resume: insightsResume(gqlClient)
2250
2644
  },
2251
2645
  customDeployment: {
2252
2646
  list: customdeploymentList(gqlClient),
2253
2647
  read: customdeploymentRead(gqlClient),
2254
2648
  create: customdeploymentCreate(gqlClient),
2255
2649
  update: customdeploymentUpdate(gqlClient),
2256
- restart: customDeploymentRestart(gqlClient)
2650
+ restart: customDeploymentRestart(gqlClient),
2651
+ pause: customDeploymentPause(gqlClient),
2652
+ resume: customDeploymentResume(gqlClient)
2257
2653
  },
2258
2654
  foundry: { env: getEnv(gqlClient) },
2259
2655
  applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },