@settlemint/sdk-mcp 2.4.0-pr3b4bbbfe → 2.4.0-pr3fd1ae9a

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/dist/mcp.js CHANGED
@@ -16722,9 +16722,11 @@ var require_websocket_server = __commonJS((exports, module) => {
16722
16722
  abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
16723
16723
  return;
16724
16724
  }
16725
- if (version !== 8 && version !== 13) {
16725
+ if (version !== 13 && version !== 8) {
16726
16726
  const message = "Missing or invalid Sec-WebSocket-Version header";
16727
- abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
16727
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, message, {
16728
+ "Sec-WebSocket-Version": "13, 8"
16729
+ });
16728
16730
  return;
16729
16731
  }
16730
16732
  if (!this.shouldHandle(req)) {
@@ -16863,13 +16865,13 @@ var require_websocket_server = __commonJS((exports, module) => {
16863
16865
  \r
16864
16866
  ` + message);
16865
16867
  }
16866
- function abortHandshakeOrEmitwsClientError(server, req, socket, code, message) {
16868
+ function abortHandshakeOrEmitwsClientError(server, req, socket, code, message, headers) {
16867
16869
  if (server.listenerCount("wsClientError")) {
16868
16870
  const err = new Error(message);
16869
16871
  Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
16870
16872
  server.emit("wsClientError", err, socket, req);
16871
16873
  } else {
16872
- abortHandshake(socket, code, message);
16874
+ abortHandshake(socket, code, message, headers);
16873
16875
  }
16874
16876
  }
16875
16877
  });
@@ -62159,7 +62161,8 @@ class McpServer {
62159
62161
  }
62160
62162
  }
62161
62163
  var EMPTY_OBJECT_JSON_SCHEMA = {
62162
- type: "object"
62164
+ type: "object",
62165
+ properties: {}
62163
62166
  };
62164
62167
  function isZodRawShape(obj) {
62165
62168
  if (typeof obj !== "object" || obj === null)
@@ -90397,7 +90400,7 @@ var {
90397
90400
  var package_default = {
90398
90401
  name: "@settlemint/sdk-mcp",
90399
90402
  description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
90400
- version: "2.4.0-pr3b4bbbfe",
90403
+ version: "2.4.0-pr3fd1ae9a",
90401
90404
  type: "module",
90402
90405
  private: false,
90403
90406
  license: "FSL-1.1-MIT",
@@ -90440,9 +90443,9 @@ var package_default = {
90440
90443
  dependencies: {
90441
90444
  "@graphql-tools/load": "8.1.0",
90442
90445
  "@graphql-tools/url-loader": "8.0.31",
90443
- "@modelcontextprotocol/sdk": "1.13.2",
90444
- "@settlemint/sdk-js": "2.4.0-pr3b4bbbfe",
90445
- "@settlemint/sdk-utils": "2.4.0-pr3b4bbbfe",
90446
+ "@modelcontextprotocol/sdk": "1.13.3",
90447
+ "@settlemint/sdk-js": "2.4.0-pr3fd1ae9a",
90448
+ "@settlemint/sdk-utils": "2.4.0-pr3fd1ae9a",
90446
90449
  "@commander-js/extra-typings": "14.0.0",
90447
90450
  commander: "14.0.0",
90448
90451
  zod: "^3.25.0"
@@ -103567,8 +103570,9 @@ var workspaceList = (gqlClient) => {
103567
103570
  const { workspaces } = await gqlClient.request(getWorkspacesAndApplications);
103568
103571
  const allWorkspaces = workspaces.reduce((acc, workspace) => {
103569
103572
  acc.push(workspace);
103570
- if (workspace.childWorkspaces)
103573
+ if (workspace.childWorkspaces) {
103571
103574
  acc.push(...workspace.childWorkspaces);
103575
+ }
103572
103576
  return acc;
103573
103577
  }, []);
103574
103578
  return allWorkspaces.sort((a3, b) => a3.name.localeCompare(b.name));
@@ -103595,8 +103599,9 @@ var workspaceDelete = (gqlClient) => {
103595
103599
  var workspaceAddCredits = (gqlClient) => {
103596
103600
  return async (workspaceId, amount) => {
103597
103601
  const id = validate3(IdSchema2, workspaceId);
103598
- if (amount <= 0)
103602
+ if (amount <= 0) {
103599
103603
  throw new Error("Credit amount must be a positive number");
103604
+ }
103600
103605
  const { addCredits: result } = await gqlClient.request(addCredits, {
103601
103606
  workspaceId: id,
103602
103607
  amount
@@ -103718,8 +103723,9 @@ var applicationAccessTokenCreate = (gqlClient) => {
103718
103723
  ...otherArgs,
103719
103724
  applicationId: application.id
103720
103725
  });
103721
- if (!applicationAccessToken.token)
103726
+ if (!applicationAccessToken.token) {
103722
103727
  throw new Error("Failed to create application access token");
103728
+ }
103723
103729
  return applicationAccessToken.token;
103724
103730
  };
103725
103731
  };
@@ -103732,7 +103738,7 @@ function setClusterServiceDefaults(args) {
103732
103738
  }
103733
103739
  function setNetworkDefaults(args) {
103734
103740
  const clusterServiceArgs = setClusterServiceDefaults(args);
103735
- if (args.consensusAlgorithm === "BESU_QBFT")
103741
+ if (args.consensusAlgorithm === "BESU_QBFT") {
103736
103742
  return {
103737
103743
  ...clusterServiceArgs,
103738
103744
  chainId: args.chainId ?? 46040,
@@ -103742,6 +103748,7 @@ function setNetworkDefaults(args) {
103742
103748
  gasPrice: args.gasPrice ?? 0,
103743
103749
  secondsPerBlock: args.secondsPerBlock ?? 2
103744
103750
  };
103751
+ }
103745
103752
  return clusterServiceArgs;
103746
103753
  }
103747
103754
  var BlockchainNetworkFragment = graphql(`
@@ -103904,6 +103911,20 @@ var restartBlockchainNetwork = graphql(`
103904
103911
  }
103905
103912
  }
103906
103913
  `, [BlockchainNetworkFragment]);
103914
+ var pauseBlockchainNetwork = graphql(`
103915
+ mutation PauseBlockchainNetwork($uniqueName: String!) {
103916
+ pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
103917
+ ...BlockchainNetwork
103918
+ }
103919
+ }
103920
+ `, [BlockchainNetworkFragment]);
103921
+ var resumeBlockchainNetwork = graphql(`
103922
+ mutation ResumeBlockchainNetwork($uniqueName: String!) {
103923
+ resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
103924
+ ...BlockchainNetwork
103925
+ }
103926
+ }
103927
+ `, [BlockchainNetworkFragment]);
103907
103928
  var blockchainNetworkList = (gqlClient) => {
103908
103929
  return async (applicationUniqueName) => {
103909
103930
  const { blockchainNetworksByUniqueName: { items } } = await gqlClient.request(getBlockchainNetworks, { applicationUniqueName });
@@ -103938,6 +103959,14 @@ var blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueName
103938
103959
  const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103939
103960
  return blockchainNetwork;
103940
103961
  };
103962
+ var blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
103963
+ const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103964
+ return blockchainNetwork;
103965
+ };
103966
+ var blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
103967
+ const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103968
+ return blockchainNetwork;
103969
+ };
103941
103970
  var BlockchainNodeFragment = graphql(`
103942
103971
  fragment BlockchainNode on BlockchainNode {
103943
103972
  __typename
@@ -104071,6 +104100,20 @@ var restartBlockchainNode = graphql(`
104071
104100
  }
104072
104101
  }
104073
104102
  `, [BlockchainNodeFragment]);
104103
+ var pauseBlockchainNode = graphql(`
104104
+ mutation PauseBlockchainNode($uniqueName: String!) {
104105
+ pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
104106
+ ...BlockchainNode
104107
+ }
104108
+ }
104109
+ `, [BlockchainNodeFragment]);
104110
+ var resumeBlockchainNode = graphql(`
104111
+ mutation ResumeBlockchainNode($uniqueName: String!) {
104112
+ resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
104113
+ ...BlockchainNode
104114
+ }
104115
+ }
104116
+ `, [BlockchainNodeFragment]);
104074
104117
  var blockchainNodeList = (gqlClient) => {
104075
104118
  return async (applicationUniqueName) => {
104076
104119
  const { blockchainNodesByUniqueName: { items } } = await gqlClient.request(getBlockchainNodes, { applicationUniqueName });
@@ -104099,6 +104142,14 @@ var blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) => {
104099
104142
  const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104100
104143
  return blockchainNode;
104101
104144
  };
104145
+ var blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
104146
+ const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104147
+ return blockchainNode;
104148
+ };
104149
+ var blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
104150
+ const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104151
+ return blockchainNode;
104152
+ };
104102
104153
  var CustomDeploymentFragment = graphql(`
104103
104154
  fragment CustomDeployment on CustomDeployment {
104104
104155
  id
@@ -104181,6 +104232,20 @@ var restartCustomDeployment = graphql(`
104181
104232
  }
104182
104233
  }
104183
104234
  `, [CustomDeploymentFragment]);
104235
+ var pauseCustomDeployment = graphql(`
104236
+ mutation PauseCustomDeployment($uniqueName: String!) {
104237
+ pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
104238
+ ...CustomDeployment
104239
+ }
104240
+ }
104241
+ `, [CustomDeploymentFragment]);
104242
+ var resumeCustomDeployment = graphql(`
104243
+ mutation ResumeCustomDeployment($uniqueName: String!) {
104244
+ resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
104245
+ ...CustomDeployment
104246
+ }
104247
+ }
104248
+ `, [CustomDeploymentFragment]);
104184
104249
  var customdeploymentList = (gqlClient) => {
104185
104250
  return async (applicationUniqueName) => {
104186
104251
  const { customDeploymentsByUniqueName: { items } } = await gqlClient.request(getCustomDeployments, { applicationUniqueName });
@@ -104217,6 +104282,14 @@ var customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName)
104217
104282
  const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
104218
104283
  return customDeployment;
104219
104284
  };
104285
+ var customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
104286
+ const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
104287
+ return customDeployment;
104288
+ };
104289
+ var customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
104290
+ const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
104291
+ return customDeployment;
104292
+ };
104220
104293
  var getFoundryEnvConfig = graphql(`
104221
104294
  query GetFoundryEnvConfig($blockchainNodeUniqueName: String!) {
104222
104295
  foundryEnvConfigByUniqueName(blockchainNodeUniqueName: $blockchainNodeUniqueName)
@@ -104293,6 +104366,20 @@ var restartLoadBalancer = graphql(`
104293
104366
  }
104294
104367
  }
104295
104368
  `, [LoadBalancerFragment]);
104369
+ var pauseLoadBalancer = graphql(`
104370
+ mutation PauseLoadBalancer($uniqueName: String!) {
104371
+ pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
104372
+ ...LoadBalancer
104373
+ }
104374
+ }
104375
+ `, [LoadBalancerFragment]);
104376
+ var resumeLoadBalancer = graphql(`
104377
+ mutation ResumeLoadBalancer($uniqueName: String!) {
104378
+ resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
104379
+ ...LoadBalancer
104380
+ }
104381
+ }
104382
+ `, [LoadBalancerFragment]);
104296
104383
  var loadBalancerRead = (gqlClient) => {
104297
104384
  return async (loadBalancerUniqueName) => {
104298
104385
  const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, { uniqueName: loadBalancerUniqueName });
@@ -104326,6 +104413,14 @@ var loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
104326
104413
  const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
104327
104414
  return loadBalancer;
104328
104415
  };
104416
+ var loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
104417
+ const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
104418
+ return loadBalancer;
104419
+ };
104420
+ var loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
104421
+ const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
104422
+ return loadBalancer;
104423
+ };
104329
104424
  var InsightsFragment = graphql(`
104330
104425
  fragment Insights on Insights {
104331
104426
  __typename
@@ -104399,6 +104494,20 @@ var restartInsights = graphql(`
104399
104494
  }
104400
104495
  }
104401
104496
  `, [InsightsFragment]);
104497
+ var pauseInsights = graphql(`
104498
+ mutation PauseInsights($uniqueName: String!) {
104499
+ pauseInsightsByUniqueName(uniqueName: $uniqueName) {
104500
+ ...Insights
104501
+ }
104502
+ }
104503
+ `, [InsightsFragment]);
104504
+ var resumeInsights = graphql(`
104505
+ mutation ResumeInsights($uniqueName: String!) {
104506
+ resumeInsightsByUniqueName(uniqueName: $uniqueName) {
104507
+ ...Insights
104508
+ }
104509
+ }
104510
+ `, [InsightsFragment]);
104402
104511
  var insightsList = (gqlClient) => {
104403
104512
  return async (applicationUniqueName) => {
104404
104513
  const { insightsListByUniqueName: { items } } = await gqlClient.request(getInsights, { applicationUniqueName });
@@ -104432,6 +104541,14 @@ var insightsRestart = (gqlClient) => async (insightsUniqueName) => {
104432
104541
  const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
104433
104542
  return insights;
104434
104543
  };
104544
+ var insightsPause = (gqlClient) => async (insightsUniqueName) => {
104545
+ const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
104546
+ return insights;
104547
+ };
104548
+ var insightsResume = (gqlClient) => async (insightsUniqueName) => {
104549
+ const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
104550
+ return insights;
104551
+ };
104435
104552
  var IntegrationFragment = graphql(`
104436
104553
  fragment Integration on Integration {
104437
104554
  __typename
@@ -104501,6 +104618,20 @@ var restartIntegrationTool = graphql(`
104501
104618
  }
104502
104619
  }
104503
104620
  `, [IntegrationFragment]);
104621
+ var pauseIntegrationTool = graphql(`
104622
+ mutation PauseIntegrationTool($uniqueName: String!) {
104623
+ pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
104624
+ ...Integration
104625
+ }
104626
+ }
104627
+ `, [IntegrationFragment]);
104628
+ var resumeIntegrationTool = graphql(`
104629
+ mutation ResumeIntegrationTool($uniqueName: String!) {
104630
+ resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
104631
+ ...Integration
104632
+ }
104633
+ }
104634
+ `, [IntegrationFragment]);
104504
104635
  var integrationToolList = (gqlClient) => {
104505
104636
  return async (applicationUniqueName) => {
104506
104637
  const { integrationsByUniqueName: { items } } = await gqlClient.request(getIntegrations, { applicationUniqueName });
@@ -104528,6 +104659,14 @@ var integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
104528
104659
  const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
104529
104660
  return integration;
104530
104661
  };
104662
+ var integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
104663
+ const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
104664
+ return integration;
104665
+ };
104666
+ var integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
104667
+ const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
104668
+ return integration;
104669
+ };
104531
104670
  var StorageFragment = graphql(`
104532
104671
  fragment Storage on Storage {
104533
104672
  __typename
@@ -104597,6 +104736,20 @@ var restartStorage = graphql(`
104597
104736
  }
104598
104737
  }
104599
104738
  `, [StorageFragment]);
104739
+ var pauseStorage = graphql(`
104740
+ mutation PauseStorage($uniqueName: String!) {
104741
+ pauseStorageByUniqueName(uniqueName: $uniqueName) {
104742
+ ...Storage
104743
+ }
104744
+ }
104745
+ `, [StorageFragment]);
104746
+ var resumeStorage = graphql(`
104747
+ mutation ResumeStorage($uniqueName: String!) {
104748
+ resumeStorageByUniqueName(uniqueName: $uniqueName) {
104749
+ ...Storage
104750
+ }
104751
+ }
104752
+ `, [StorageFragment]);
104600
104753
  var storageList = (gqlClient) => {
104601
104754
  return async (applicationUniqueName) => {
104602
104755
  const { storagesByUniqueName: { items } } = await gqlClient.request(getStorages, { applicationUniqueName });
@@ -104624,6 +104777,14 @@ var storageRestart = (gqlClient) => async (storageUniqueName) => {
104624
104777
  const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
104625
104778
  return storage;
104626
104779
  };
104780
+ var storagePause = (gqlClient) => async (storageUniqueName) => {
104781
+ const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
104782
+ return storage;
104783
+ };
104784
+ var storageResume = (gqlClient) => async (storageUniqueName) => {
104785
+ const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
104786
+ return storage;
104787
+ };
104627
104788
  var MiddlewareFragment = graphql(`
104628
104789
  fragment Middleware on Middleware {
104629
104790
  __typename
@@ -104724,6 +104885,20 @@ var restartMiddleware = graphql(`
104724
104885
  }
104725
104886
  }
104726
104887
  `, [MiddlewareFragment]);
104888
+ var pauseMiddleware = graphql(`
104889
+ mutation PauseMiddleware($uniqueName: String!) {
104890
+ pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
104891
+ ...Middleware
104892
+ }
104893
+ }
104894
+ `, [MiddlewareFragment]);
104895
+ var resumeMiddleware = graphql(`
104896
+ mutation ResumeMiddleware($uniqueName: String!) {
104897
+ resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
104898
+ ...Middleware
104899
+ }
104900
+ }
104901
+ `, [MiddlewareFragment]);
104727
104902
  var middlewareList = (gqlClient) => {
104728
104903
  return async (applicationUniqueName) => {
104729
104904
  const { middlewaresByUniqueName: { items } } = await gqlClient.request(getMiddlewares, { applicationUniqueName });
@@ -104768,6 +104943,14 @@ var middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
104768
104943
  const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
104769
104944
  return middleware;
104770
104945
  };
104946
+ var middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
104947
+ const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
104948
+ return middleware;
104949
+ };
104950
+ var middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
104951
+ const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
104952
+ return middleware;
104953
+ };
104771
104954
  var getPlatformConfigQuery = graphql(`
104772
104955
  query platformConfig {
104773
104956
  config {
@@ -104900,6 +105083,20 @@ var restartPrivateKey = graphql(`
104900
105083
  }
104901
105084
  }
104902
105085
  `, [PrivateKeyFragment]);
105086
+ var pausePrivateKey = graphql(`
105087
+ mutation PausePrivateKey($uniqueName: String!) {
105088
+ pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
105089
+ ...PrivateKey
105090
+ }
105091
+ }
105092
+ `, [PrivateKeyFragment]);
105093
+ var resumePrivateKey = graphql(`
105094
+ mutation ResumePrivateKey($uniqueName: String!) {
105095
+ resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
105096
+ ...PrivateKey
105097
+ }
105098
+ }
105099
+ `, [PrivateKeyFragment]);
104903
105100
  var privateKeyList = (gqlClient) => {
104904
105101
  return async (applicationUniqueName) => {
104905
105102
  const { privateKeysByUniqueName: { items } } = await gqlClient.request(getPrivateKeys, { applicationUniqueName });
@@ -104938,6 +105135,14 @@ var privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
104938
105135
  const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
104939
105136
  return privateKey;
104940
105137
  };
105138
+ var privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
105139
+ const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
105140
+ return privateKey;
105141
+ };
105142
+ var privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
105143
+ const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
105144
+ return privateKey;
105145
+ };
104941
105146
  var ClientOptionsSchema = exports_external2.object({
104942
105147
  accessToken: AccessTokenSchema2,
104943
105148
  instance: UrlSchema2
@@ -104958,26 +105163,30 @@ async function getPincodeVerificationChallenges({ userWalletAddress, accessToken
104958
105163
  }
104959
105164
  });
104960
105165
  if (!response.ok) {
104961
- if (response.status === 404)
105166
+ if (response.status === 404) {
104962
105167
  throw new Error(`No user wallet found with address '${userWalletAddress}' for node '${nodeId}'`);
105168
+ }
104963
105169
  throw new Error("Failed to get verification challenge");
104964
105170
  }
104965
105171
  const verificationChallenges = await response.json();
104966
105172
  return verificationChallenges;
104967
105173
  }
104968
105174
  function getPincodeVerificationChallengeResponse({ verificationChallenge, pincode }) {
104969
- if (!verificationChallenge?.challenge?.secret || !verificationChallenge?.challenge?.salt)
105175
+ if (!verificationChallenge?.challenge?.secret || !verificationChallenge?.challenge?.salt) {
104970
105176
  throw new Error("Could not authenticate pin code, invalid challenge format");
105177
+ }
104971
105178
  const { secret, salt } = verificationChallenge.challenge;
104972
105179
  return generateResponse(pincode, salt, secret);
104973
105180
  }
104974
105181
  function createSettleMintClient(options) {
104975
105182
  ensureServer();
104976
- if (options.instance === STANDALONE_INSTANCE2 || options.instance === LOCAL_INSTANCE2)
104977
- if (options.anonymous)
105183
+ if (options.instance === STANDALONE_INSTANCE2 || options.instance === LOCAL_INSTANCE2) {
105184
+ if (options.anonymous) {
104978
105185
  options.instance = "https://console.settlemint.com";
104979
- else
105186
+ } else {
104980
105187
  throw new Error("Standalone and local instances cannot connect to the SettleMint platform");
105188
+ }
105189
+ }
104981
105190
  const validatedOptions = options.anonymous ? validate3(exports_external2.object({
104982
105191
  ...ClientOptionsSchema.shape,
104983
105192
  accessToken: exports_external2.literal("")
@@ -105017,57 +105226,75 @@ function createSettleMintClient(options) {
105017
105226
  read: blockchainNetworkRead(gqlClient),
105018
105227
  create: blockchainNetworkCreate(gqlClient),
105019
105228
  delete: blockchainNetworkDelete(gqlClient),
105020
- restart: blockchainNetworkRestart(gqlClient)
105229
+ restart: blockchainNetworkRestart(gqlClient),
105230
+ pause: blockchainNetworkPause(gqlClient),
105231
+ resume: blockchainNetworkResume(gqlClient)
105021
105232
  },
105022
105233
  blockchainNode: {
105023
105234
  list: blockchainNodeList(gqlClient),
105024
105235
  read: blockchainNodeRead(gqlClient),
105025
105236
  create: blockchainNodeCreate(gqlClient),
105026
- restart: blockchainNodeRestart(gqlClient)
105237
+ restart: blockchainNodeRestart(gqlClient),
105238
+ pause: blockchainNodePause(gqlClient),
105239
+ resume: blockchainNodeResume(gqlClient)
105027
105240
  },
105028
105241
  loadBalancer: {
105029
105242
  list: loadBalancerList(gqlClient),
105030
105243
  read: loadBalancerRead(gqlClient),
105031
105244
  create: loadBalancerCreate(gqlClient),
105032
- restart: loadBalancerRestart(gqlClient)
105245
+ restart: loadBalancerRestart(gqlClient),
105246
+ pause: loadBalancerPause(gqlClient),
105247
+ resume: loadBalancerResume(gqlClient)
105033
105248
  },
105034
105249
  middleware: {
105035
105250
  list: middlewareList(gqlClient),
105036
105251
  read: middlewareRead(gqlClient),
105037
105252
  graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
105038
105253
  create: middlewareCreate(gqlClient),
105039
- restart: middlewareRestart(gqlClient)
105254
+ restart: middlewareRestart(gqlClient),
105255
+ pause: middlewarePause(gqlClient),
105256
+ resume: middlewareResume(gqlClient)
105040
105257
  },
105041
105258
  integrationTool: {
105042
105259
  list: integrationToolList(gqlClient),
105043
105260
  read: integrationToolRead(gqlClient),
105044
105261
  create: integrationToolCreate(gqlClient),
105045
- restart: integrationToolRestart(gqlClient)
105262
+ restart: integrationToolRestart(gqlClient),
105263
+ pause: integrationToolPause(gqlClient),
105264
+ resume: integrationToolResume(gqlClient)
105046
105265
  },
105047
105266
  storage: {
105048
105267
  list: storageList(gqlClient),
105049
105268
  read: storageRead(gqlClient),
105050
105269
  create: storageCreate(gqlClient),
105051
- restart: storageRestart(gqlClient)
105270
+ restart: storageRestart(gqlClient),
105271
+ pause: storagePause(gqlClient),
105272
+ resume: storageResume(gqlClient)
105052
105273
  },
105053
105274
  privateKey: {
105054
105275
  list: privateKeyList(gqlClient),
105055
105276
  read: privatekeyRead(gqlClient),
105056
105277
  create: privateKeyCreate(gqlClient),
105057
- restart: privateKeyRestart(gqlClient)
105278
+ restart: privateKeyRestart(gqlClient),
105279
+ pause: privateKeyPause(gqlClient),
105280
+ resume: privateKeyResume(gqlClient)
105058
105281
  },
105059
105282
  insights: {
105060
105283
  list: insightsList(gqlClient),
105061
105284
  read: insightsRead(gqlClient),
105062
105285
  create: insightsCreate(gqlClient),
105063
- restart: insightsRestart(gqlClient)
105286
+ restart: insightsRestart(gqlClient),
105287
+ pause: insightsPause(gqlClient),
105288
+ resume: insightsResume(gqlClient)
105064
105289
  },
105065
105290
  customDeployment: {
105066
105291
  list: customdeploymentList(gqlClient),
105067
105292
  read: customdeploymentRead(gqlClient),
105068
105293
  create: customdeploymentCreate(gqlClient),
105069
105294
  update: customdeploymentUpdate(gqlClient),
105070
- restart: customDeploymentRestart(gqlClient)
105295
+ restart: customDeploymentRestart(gqlClient),
105296
+ pause: customDeploymentPause(gqlClient),
105297
+ resume: customDeploymentResume(gqlClient)
105071
105298
  },
105072
105299
  foundry: { env: getEnv(gqlClient) },
105073
105300
  applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
@@ -106891,4 +107118,4 @@ await main().catch((error41) => {
106891
107118
  process.exit(1);
106892
107119
  });
106893
107120
 
106894
- //# debugId=F3F6E82332E86ECC64756E2164756E21
107121
+ //# debugId=DF56A27E10AD35DB64756E2164756E21