@settlemint/sdk-mcp 2.4.0-prf263ce2b → 2.4.0-prf3423261

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.
Files changed (3) hide show
  1. package/dist/mcp.js +286 -61
  2. package/dist/mcp.js.map +12 -12
  3. package/package.json +7 -5
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
  });
@@ -59939,14 +59941,21 @@ class Protocol {
59939
59941
  }
59940
59942
  }
59941
59943
  async connect(transport) {
59944
+ var _a, _b, _c;
59942
59945
  this._transport = transport;
59946
+ const _onclose = (_a = this.transport) === null || _a === undefined ? undefined : _a.onclose;
59943
59947
  this._transport.onclose = () => {
59948
+ _onclose === null || _onclose === undefined || _onclose();
59944
59949
  this._onclose();
59945
59950
  };
59951
+ const _onerror = (_b = this.transport) === null || _b === undefined ? undefined : _b.onerror;
59946
59952
  this._transport.onerror = (error) => {
59953
+ _onerror === null || _onerror === undefined || _onerror(error);
59947
59954
  this._onerror(error);
59948
59955
  };
59956
+ const _onmessage = (_c = this._transport) === null || _c === undefined ? undefined : _c.onmessage;
59949
59957
  this._transport.onmessage = (message, extra) => {
59958
+ _onmessage === null || _onmessage === undefined || _onmessage(message, extra);
59950
59959
  if (isJSONRPCResponse(message) || isJSONRPCError(message)) {
59951
59960
  this._onresponse(message);
59952
59961
  } else if (isJSONRPCRequest(message)) {
@@ -60006,7 +60015,8 @@ class Protocol {
60006
60015
  sendNotification: (notification) => this.notification(notification, { relatedRequestId: request.id }),
60007
60016
  sendRequest: (r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }),
60008
60017
  authInfo: extra === null || extra === undefined ? undefined : extra.authInfo,
60009
- requestId: request.id
60018
+ requestId: request.id,
60019
+ requestInfo: extra === null || extra === undefined ? undefined : extra.requestInfo
60010
60020
  };
60011
60021
  Promise.resolve().then(() => handler(request, fullExtra)).then((result) => {
60012
60022
  var _a2;
@@ -61721,7 +61731,7 @@ class McpServer {
61721
61731
  };
61722
61732
  }
61723
61733
  }
61724
- if (tool.outputSchema) {
61734
+ if (tool.outputSchema && !result.isError) {
61725
61735
  if (!result.structuredContent) {
61726
61736
  throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} has an output schema but no structured content was provided`);
61727
61737
  }
@@ -62151,7 +62161,8 @@ class McpServer {
62151
62161
  }
62152
62162
  }
62153
62163
  var EMPTY_OBJECT_JSON_SCHEMA = {
62154
- type: "object"
62164
+ type: "object",
62165
+ properties: {}
62155
62166
  };
62156
62167
  function isZodRawShape(obj) {
62157
62168
  if (typeof obj !== "object" || obj === null)
@@ -73554,9 +73565,9 @@ ${formattedErrors}`);
73554
73565
  throw error$37;
73555
73566
  }
73556
73567
  }
73557
- var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
73558
- var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
73559
- var AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
73568
+ var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.+$/);
73569
+ var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.+$/);
73570
+ var AccessTokenSchema = string$1().regex(/^(sm_pat_.+|sm_aat_.+)$/);
73560
73571
  function tryParseJson(value, defaultValue = null) {
73561
73572
  try {
73562
73573
  const parsed = JSON.parse(value);
@@ -73564,7 +73575,7 @@ function tryParseJson(value, defaultValue = null) {
73564
73575
  return defaultValue;
73565
73576
  }
73566
73577
  return parsed;
73567
- } catch (err) {
73578
+ } catch (_err) {
73568
73579
  return defaultValue;
73569
73580
  }
73570
73581
  }
@@ -90295,9 +90306,9 @@ ${formattedErrors}`);
90295
90306
  throw error$372;
90296
90307
  }
90297
90308
  }
90298
- var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.*$/);
90299
- var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.*$/);
90300
- var AccessTokenSchema2 = string$12().regex(/^sm_pat_.*|sm_aat_.*$/);
90309
+ var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.+$/);
90310
+ var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.+$/);
90311
+ var AccessTokenSchema2 = string$12().regex(/^(sm_pat_.+|sm_aat_.+)$/);
90301
90312
  function tryParseJson2(value, defaultValue = null) {
90302
90313
  try {
90303
90314
  const parsed = JSON.parse(value);
@@ -90305,7 +90316,7 @@ function tryParseJson2(value, defaultValue = null) {
90305
90316
  return defaultValue;
90306
90317
  }
90307
90318
  return parsed;
90308
- } catch (err) {
90319
+ } catch (_err) {
90309
90320
  return defaultValue;
90310
90321
  }
90311
90322
  }
@@ -90389,7 +90400,7 @@ var {
90389
90400
  var package_default = {
90390
90401
  name: "@settlemint/sdk-mcp",
90391
90402
  description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
90392
- version: "2.4.0-prf263ce2b",
90403
+ version: "2.4.0-prf3423261",
90393
90404
  type: "module",
90394
90405
  private: false,
90395
90406
  license: "FSL-1.1-MIT",
@@ -90408,7 +90419,9 @@ var package_default = {
90408
90419
  url: "https://github.com/settlemint/sdk/issues",
90409
90420
  email: "support@settlemint.com"
90410
90421
  },
90411
- files: ["dist"],
90422
+ files: [
90423
+ "dist"
90424
+ ],
90412
90425
  exports: {
90413
90426
  "./*": {
90414
90427
  types: "./dist/*.d.ts",
@@ -90430,9 +90443,9 @@ var package_default = {
90430
90443
  dependencies: {
90431
90444
  "@graphql-tools/load": "8.1.0",
90432
90445
  "@graphql-tools/url-loader": "8.0.31",
90433
- "@modelcontextprotocol/sdk": "1.13.0",
90434
- "@settlemint/sdk-js": "2.4.0-prf263ce2b",
90435
- "@settlemint/sdk-utils": "2.4.0-prf263ce2b",
90446
+ "@modelcontextprotocol/sdk": "1.13.3",
90447
+ "@settlemint/sdk-js": "2.4.0-prf3423261",
90448
+ "@settlemint/sdk-utils": "2.4.0-prf3423261",
90436
90449
  "@commander-js/extra-typings": "14.0.0",
90437
90450
  commander: "14.0.0",
90438
90451
  zod: "^3.25.0"
@@ -91263,7 +91276,7 @@ var processFieldTypes = (fields2, schema, collectedTypes) => {
91263
91276
  }
91264
91277
  };
91265
91278
  var collectCustomTypes = (type, schema, collectedTypes = new Set) => {
91266
- const typeName = type.toString().replace(/[\[\]!]/g, "");
91279
+ const typeName = type.toString().replace(/[[\]!]/g, "");
91267
91280
  if (collectedTypes.has(typeName) || ["String", "Int", "Float", "Boolean", "ID"].includes(typeName)) {
91268
91281
  return collectedTypes;
91269
91282
  }
@@ -103894,6 +103907,20 @@ var restartBlockchainNetwork = graphql(`
103894
103907
  }
103895
103908
  }
103896
103909
  `, [BlockchainNetworkFragment]);
103910
+ var pauseBlockchainNetwork = graphql(`
103911
+ mutation PauseBlockchainNetwork($uniqueName: String!) {
103912
+ pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
103913
+ ...BlockchainNetwork
103914
+ }
103915
+ }
103916
+ `, [BlockchainNetworkFragment]);
103917
+ var resumeBlockchainNetwork = graphql(`
103918
+ mutation ResumeBlockchainNetwork($uniqueName: String!) {
103919
+ resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
103920
+ ...BlockchainNetwork
103921
+ }
103922
+ }
103923
+ `, [BlockchainNetworkFragment]);
103897
103924
  var blockchainNetworkList = (gqlClient) => {
103898
103925
  return async (applicationUniqueName) => {
103899
103926
  const { blockchainNetworksByUniqueName: { items } } = await gqlClient.request(getBlockchainNetworks, { applicationUniqueName });
@@ -103928,6 +103955,14 @@ var blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueName
103928
103955
  const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103929
103956
  return blockchainNetwork;
103930
103957
  };
103958
+ var blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
103959
+ const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103960
+ return blockchainNetwork;
103961
+ };
103962
+ var blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
103963
+ const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103964
+ return blockchainNetwork;
103965
+ };
103931
103966
  var BlockchainNodeFragment = graphql(`
103932
103967
  fragment BlockchainNode on BlockchainNode {
103933
103968
  __typename
@@ -104061,6 +104096,20 @@ var restartBlockchainNode = graphql(`
104061
104096
  }
104062
104097
  }
104063
104098
  `, [BlockchainNodeFragment]);
104099
+ var pauseBlockchainNode = graphql(`
104100
+ mutation PauseBlockchainNode($uniqueName: String!) {
104101
+ pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
104102
+ ...BlockchainNode
104103
+ }
104104
+ }
104105
+ `, [BlockchainNodeFragment]);
104106
+ var resumeBlockchainNode = graphql(`
104107
+ mutation ResumeBlockchainNode($uniqueName: String!) {
104108
+ resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
104109
+ ...BlockchainNode
104110
+ }
104111
+ }
104112
+ `, [BlockchainNodeFragment]);
104064
104113
  var blockchainNodeList = (gqlClient) => {
104065
104114
  return async (applicationUniqueName) => {
104066
104115
  const { blockchainNodesByUniqueName: { items } } = await gqlClient.request(getBlockchainNodes, { applicationUniqueName });
@@ -104089,6 +104138,14 @@ var blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) => {
104089
104138
  const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104090
104139
  return blockchainNode;
104091
104140
  };
104141
+ var blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
104142
+ const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104143
+ return blockchainNode;
104144
+ };
104145
+ var blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
104146
+ const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104147
+ return blockchainNode;
104148
+ };
104092
104149
  var CustomDeploymentFragment = graphql(`
104093
104150
  fragment CustomDeployment on CustomDeployment {
104094
104151
  id
@@ -104171,6 +104228,20 @@ var restartCustomDeployment = graphql(`
104171
104228
  }
104172
104229
  }
104173
104230
  `, [CustomDeploymentFragment]);
104231
+ var pauseCustomDeployment = graphql(`
104232
+ mutation PauseCustomDeployment($uniqueName: String!) {
104233
+ pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
104234
+ ...CustomDeployment
104235
+ }
104236
+ }
104237
+ `, [CustomDeploymentFragment]);
104238
+ var resumeCustomDeployment = graphql(`
104239
+ mutation ResumeCustomDeployment($uniqueName: String!) {
104240
+ resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
104241
+ ...CustomDeployment
104242
+ }
104243
+ }
104244
+ `, [CustomDeploymentFragment]);
104174
104245
  var customdeploymentList = (gqlClient) => {
104175
104246
  return async (applicationUniqueName) => {
104176
104247
  const { customDeploymentsByUniqueName: { items } } = await gqlClient.request(getCustomDeployments, { applicationUniqueName });
@@ -104207,6 +104278,14 @@ var customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName)
104207
104278
  const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
104208
104279
  return customDeployment;
104209
104280
  };
104281
+ var customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
104282
+ const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
104283
+ return customDeployment;
104284
+ };
104285
+ var customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
104286
+ const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
104287
+ return customDeployment;
104288
+ };
104210
104289
  var getFoundryEnvConfig = graphql(`
104211
104290
  query GetFoundryEnvConfig($blockchainNodeUniqueName: String!) {
104212
104291
  foundryEnvConfigByUniqueName(blockchainNodeUniqueName: $blockchainNodeUniqueName)
@@ -104283,6 +104362,20 @@ var restartLoadBalancer = graphql(`
104283
104362
  }
104284
104363
  }
104285
104364
  `, [LoadBalancerFragment]);
104365
+ var pauseLoadBalancer = graphql(`
104366
+ mutation PauseLoadBalancer($uniqueName: String!) {
104367
+ pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
104368
+ ...LoadBalancer
104369
+ }
104370
+ }
104371
+ `, [LoadBalancerFragment]);
104372
+ var resumeLoadBalancer = graphql(`
104373
+ mutation ResumeLoadBalancer($uniqueName: String!) {
104374
+ resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
104375
+ ...LoadBalancer
104376
+ }
104377
+ }
104378
+ `, [LoadBalancerFragment]);
104286
104379
  var loadBalancerRead = (gqlClient) => {
104287
104380
  return async (loadBalancerUniqueName) => {
104288
104381
  const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, { uniqueName: loadBalancerUniqueName });
@@ -104316,6 +104409,14 @@ var loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
104316
104409
  const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
104317
104410
  return loadBalancer;
104318
104411
  };
104412
+ var loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
104413
+ const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
104414
+ return loadBalancer;
104415
+ };
104416
+ var loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
104417
+ const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
104418
+ return loadBalancer;
104419
+ };
104319
104420
  var InsightsFragment = graphql(`
104320
104421
  fragment Insights on Insights {
104321
104422
  __typename
@@ -104389,6 +104490,20 @@ var restartInsights = graphql(`
104389
104490
  }
104390
104491
  }
104391
104492
  `, [InsightsFragment]);
104493
+ var pauseInsights = graphql(`
104494
+ mutation PauseInsights($uniqueName: String!) {
104495
+ pauseInsightsByUniqueName(uniqueName: $uniqueName) {
104496
+ ...Insights
104497
+ }
104498
+ }
104499
+ `, [InsightsFragment]);
104500
+ var resumeInsights = graphql(`
104501
+ mutation ResumeInsights($uniqueName: String!) {
104502
+ resumeInsightsByUniqueName(uniqueName: $uniqueName) {
104503
+ ...Insights
104504
+ }
104505
+ }
104506
+ `, [InsightsFragment]);
104392
104507
  var insightsList = (gqlClient) => {
104393
104508
  return async (applicationUniqueName) => {
104394
104509
  const { insightsListByUniqueName: { items } } = await gqlClient.request(getInsights, { applicationUniqueName });
@@ -104422,6 +104537,14 @@ var insightsRestart = (gqlClient) => async (insightsUniqueName) => {
104422
104537
  const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
104423
104538
  return insights;
104424
104539
  };
104540
+ var insightsPause = (gqlClient) => async (insightsUniqueName) => {
104541
+ const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
104542
+ return insights;
104543
+ };
104544
+ var insightsResume = (gqlClient) => async (insightsUniqueName) => {
104545
+ const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
104546
+ return insights;
104547
+ };
104425
104548
  var IntegrationFragment = graphql(`
104426
104549
  fragment Integration on Integration {
104427
104550
  __typename
@@ -104491,6 +104614,20 @@ var restartIntegrationTool = graphql(`
104491
104614
  }
104492
104615
  }
104493
104616
  `, [IntegrationFragment]);
104617
+ var pauseIntegrationTool = graphql(`
104618
+ mutation PauseIntegrationTool($uniqueName: String!) {
104619
+ pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
104620
+ ...Integration
104621
+ }
104622
+ }
104623
+ `, [IntegrationFragment]);
104624
+ var resumeIntegrationTool = graphql(`
104625
+ mutation ResumeIntegrationTool($uniqueName: String!) {
104626
+ resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
104627
+ ...Integration
104628
+ }
104629
+ }
104630
+ `, [IntegrationFragment]);
104494
104631
  var integrationToolList = (gqlClient) => {
104495
104632
  return async (applicationUniqueName) => {
104496
104633
  const { integrationsByUniqueName: { items } } = await gqlClient.request(getIntegrations, { applicationUniqueName });
@@ -104518,6 +104655,14 @@ var integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
104518
104655
  const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
104519
104656
  return integration;
104520
104657
  };
104658
+ var integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
104659
+ const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
104660
+ return integration;
104661
+ };
104662
+ var integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
104663
+ const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
104664
+ return integration;
104665
+ };
104521
104666
  var StorageFragment = graphql(`
104522
104667
  fragment Storage on Storage {
104523
104668
  __typename
@@ -104587,6 +104732,20 @@ var restartStorage = graphql(`
104587
104732
  }
104588
104733
  }
104589
104734
  `, [StorageFragment]);
104735
+ var pauseStorage = graphql(`
104736
+ mutation PauseStorage($uniqueName: String!) {
104737
+ pauseStorageByUniqueName(uniqueName: $uniqueName) {
104738
+ ...Storage
104739
+ }
104740
+ }
104741
+ `, [StorageFragment]);
104742
+ var resumeStorage = graphql(`
104743
+ mutation ResumeStorage($uniqueName: String!) {
104744
+ resumeStorageByUniqueName(uniqueName: $uniqueName) {
104745
+ ...Storage
104746
+ }
104747
+ }
104748
+ `, [StorageFragment]);
104590
104749
  var storageList = (gqlClient) => {
104591
104750
  return async (applicationUniqueName) => {
104592
104751
  const { storagesByUniqueName: { items } } = await gqlClient.request(getStorages, { applicationUniqueName });
@@ -104614,6 +104773,14 @@ var storageRestart = (gqlClient) => async (storageUniqueName) => {
104614
104773
  const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
104615
104774
  return storage;
104616
104775
  };
104776
+ var storagePause = (gqlClient) => async (storageUniqueName) => {
104777
+ const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
104778
+ return storage;
104779
+ };
104780
+ var storageResume = (gqlClient) => async (storageUniqueName) => {
104781
+ const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
104782
+ return storage;
104783
+ };
104617
104784
  var MiddlewareFragment = graphql(`
104618
104785
  fragment Middleware on Middleware {
104619
104786
  __typename
@@ -104714,6 +104881,20 @@ var restartMiddleware = graphql(`
104714
104881
  }
104715
104882
  }
104716
104883
  `, [MiddlewareFragment]);
104884
+ var pauseMiddleware = graphql(`
104885
+ mutation PauseMiddleware($uniqueName: String!) {
104886
+ pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
104887
+ ...Middleware
104888
+ }
104889
+ }
104890
+ `, [MiddlewareFragment]);
104891
+ var resumeMiddleware = graphql(`
104892
+ mutation ResumeMiddleware($uniqueName: String!) {
104893
+ resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
104894
+ ...Middleware
104895
+ }
104896
+ }
104897
+ `, [MiddlewareFragment]);
104717
104898
  var middlewareList = (gqlClient) => {
104718
104899
  return async (applicationUniqueName) => {
104719
104900
  const { middlewaresByUniqueName: { items } } = await gqlClient.request(getMiddlewares, { applicationUniqueName });
@@ -104758,6 +104939,14 @@ var middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
104758
104939
  const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
104759
104940
  return middleware;
104760
104941
  };
104942
+ var middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
104943
+ const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
104944
+ return middleware;
104945
+ };
104946
+ var middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
104947
+ const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
104948
+ return middleware;
104949
+ };
104761
104950
  var getPlatformConfigQuery = graphql(`
104762
104951
  query platformConfig {
104763
104952
  config {
@@ -104890,6 +105079,20 @@ var restartPrivateKey = graphql(`
104890
105079
  }
104891
105080
  }
104892
105081
  `, [PrivateKeyFragment]);
105082
+ var pausePrivateKey = graphql(`
105083
+ mutation PausePrivateKey($uniqueName: String!) {
105084
+ pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
105085
+ ...PrivateKey
105086
+ }
105087
+ }
105088
+ `, [PrivateKeyFragment]);
105089
+ var resumePrivateKey = graphql(`
105090
+ mutation ResumePrivateKey($uniqueName: String!) {
105091
+ resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
105092
+ ...PrivateKey
105093
+ }
105094
+ }
105095
+ `, [PrivateKeyFragment]);
104893
105096
  var privateKeyList = (gqlClient) => {
104894
105097
  return async (applicationUniqueName) => {
104895
105098
  const { privateKeysByUniqueName: { items } } = await gqlClient.request(getPrivateKeys, { applicationUniqueName });
@@ -104928,6 +105131,14 @@ var privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
104928
105131
  const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
104929
105132
  return privateKey;
104930
105133
  };
105134
+ var privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
105135
+ const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
105136
+ return privateKey;
105137
+ };
105138
+ var privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
105139
+ const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
105140
+ return privateKey;
105141
+ };
104931
105142
  var ClientOptionsSchema = exports_external2.object({
104932
105143
  accessToken: AccessTokenSchema2,
104933
105144
  instance: UrlSchema2
@@ -105007,57 +105218,75 @@ function createSettleMintClient(options) {
105007
105218
  read: blockchainNetworkRead(gqlClient),
105008
105219
  create: blockchainNetworkCreate(gqlClient),
105009
105220
  delete: blockchainNetworkDelete(gqlClient),
105010
- restart: blockchainNetworkRestart(gqlClient)
105221
+ restart: blockchainNetworkRestart(gqlClient),
105222
+ pause: blockchainNetworkPause(gqlClient),
105223
+ resume: blockchainNetworkResume(gqlClient)
105011
105224
  },
105012
105225
  blockchainNode: {
105013
105226
  list: blockchainNodeList(gqlClient),
105014
105227
  read: blockchainNodeRead(gqlClient),
105015
105228
  create: blockchainNodeCreate(gqlClient),
105016
- restart: blockchainNodeRestart(gqlClient)
105229
+ restart: blockchainNodeRestart(gqlClient),
105230
+ pause: blockchainNodePause(gqlClient),
105231
+ resume: blockchainNodeResume(gqlClient)
105017
105232
  },
105018
105233
  loadBalancer: {
105019
105234
  list: loadBalancerList(gqlClient),
105020
105235
  read: loadBalancerRead(gqlClient),
105021
105236
  create: loadBalancerCreate(gqlClient),
105022
- restart: loadBalancerRestart(gqlClient)
105237
+ restart: loadBalancerRestart(gqlClient),
105238
+ pause: loadBalancerPause(gqlClient),
105239
+ resume: loadBalancerResume(gqlClient)
105023
105240
  },
105024
105241
  middleware: {
105025
105242
  list: middlewareList(gqlClient),
105026
105243
  read: middlewareRead(gqlClient),
105027
105244
  graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
105028
105245
  create: middlewareCreate(gqlClient),
105029
- restart: middlewareRestart(gqlClient)
105246
+ restart: middlewareRestart(gqlClient),
105247
+ pause: middlewarePause(gqlClient),
105248
+ resume: middlewareResume(gqlClient)
105030
105249
  },
105031
105250
  integrationTool: {
105032
105251
  list: integrationToolList(gqlClient),
105033
105252
  read: integrationToolRead(gqlClient),
105034
105253
  create: integrationToolCreate(gqlClient),
105035
- restart: integrationToolRestart(gqlClient)
105254
+ restart: integrationToolRestart(gqlClient),
105255
+ pause: integrationToolPause(gqlClient),
105256
+ resume: integrationToolResume(gqlClient)
105036
105257
  },
105037
105258
  storage: {
105038
105259
  list: storageList(gqlClient),
105039
105260
  read: storageRead(gqlClient),
105040
105261
  create: storageCreate(gqlClient),
105041
- restart: storageRestart(gqlClient)
105262
+ restart: storageRestart(gqlClient),
105263
+ pause: storagePause(gqlClient),
105264
+ resume: storageResume(gqlClient)
105042
105265
  },
105043
105266
  privateKey: {
105044
105267
  list: privateKeyList(gqlClient),
105045
105268
  read: privatekeyRead(gqlClient),
105046
105269
  create: privateKeyCreate(gqlClient),
105047
- restart: privateKeyRestart(gqlClient)
105270
+ restart: privateKeyRestart(gqlClient),
105271
+ pause: privateKeyPause(gqlClient),
105272
+ resume: privateKeyResume(gqlClient)
105048
105273
  },
105049
105274
  insights: {
105050
105275
  list: insightsList(gqlClient),
105051
105276
  read: insightsRead(gqlClient),
105052
105277
  create: insightsCreate(gqlClient),
105053
- restart: insightsRestart(gqlClient)
105278
+ restart: insightsRestart(gqlClient),
105279
+ pause: insightsPause(gqlClient),
105280
+ resume: insightsResume(gqlClient)
105054
105281
  },
105055
105282
  customDeployment: {
105056
105283
  list: customdeploymentList(gqlClient),
105057
105284
  read: customdeploymentRead(gqlClient),
105058
105285
  create: customdeploymentCreate(gqlClient),
105059
105286
  update: customdeploymentUpdate(gqlClient),
105060
- restart: customDeploymentRestart(gqlClient)
105287
+ restart: customDeploymentRestart(gqlClient),
105288
+ pause: customDeploymentPause(gqlClient),
105289
+ resume: customDeploymentResume(gqlClient)
105061
105290
  },
105062
105291
  foundry: { env: getEnv(gqlClient) },
105063
105292
  applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
@@ -106589,21 +106818,6 @@ var promptsGet = (server, _env) => {
106589
106818
  try {
106590
106819
  const promptsDir = path2.resolve(__dirname, "../../prompts");
106591
106820
  const promptPath = path2.join(promptsDir, category, `${name2}.ts`);
106592
- try {
106593
- await fs.access(promptPath);
106594
- } catch (error41) {
106595
- return {
106596
- content: [
106597
- {
106598
- type: "text",
106599
- name: "Prompt Not Found",
106600
- description: `Prompt '${name2}' in category '${category}' not found`,
106601
- mimeType: "text/plain",
106602
- text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
106603
- }
106604
- ]
106605
- };
106606
- }
106607
106821
  const fileContent = await fs.readFile(promptPath, "utf-8");
106608
106822
  return {
106609
106823
  content: [
@@ -106617,6 +106831,19 @@ var promptsGet = (server, _env) => {
106617
106831
  ]
106618
106832
  };
106619
106833
  } catch (error41) {
106834
+ if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
106835
+ return {
106836
+ content: [
106837
+ {
106838
+ type: "text",
106839
+ name: "Prompt Not Found",
106840
+ description: `Prompt '${name2}' in category '${category}' not found`,
106841
+ mimeType: "text/plain",
106842
+ text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
106843
+ }
106844
+ ]
106845
+ };
106846
+ }
106620
106847
  return {
106621
106848
  content: [
106622
106849
  {
@@ -106707,21 +106934,6 @@ var resourcesGet = (server, _env) => {
106707
106934
  try {
106708
106935
  const resourcesDir = path4.resolve(__dirname, "../../resources");
106709
106936
  const resourcePath = path4.join(resourcesDir, `${name2}.ts`);
106710
- try {
106711
- await fs3.access(resourcePath);
106712
- } catch (error41) {
106713
- return {
106714
- content: [
106715
- {
106716
- type: "text",
106717
- name: "Resource Not Found",
106718
- description: `Resource '${name2}' not found`,
106719
- mimeType: "text/plain",
106720
- text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
106721
- }
106722
- ]
106723
- };
106724
- }
106725
106937
  const fileContent = await fs3.readFile(resourcePath, "utf-8");
106726
106938
  return {
106727
106939
  content: [
@@ -106735,6 +106947,19 @@ var resourcesGet = (server, _env) => {
106735
106947
  ]
106736
106948
  };
106737
106949
  } catch (error41) {
106950
+ if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
106951
+ return {
106952
+ content: [
106953
+ {
106954
+ type: "text",
106955
+ name: "Resource Not Found",
106956
+ description: `Resource '${name2}' not found`,
106957
+ mimeType: "text/plain",
106958
+ text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
106959
+ }
106960
+ ]
106961
+ };
106962
+ }
106738
106963
  return {
106739
106964
  content: [
106740
106965
  {
@@ -106885,4 +107110,4 @@ await main().catch((error41) => {
106885
107110
  process.exit(1);
106886
107111
  });
106887
107112
 
106888
- //# debugId=296EA266FD56C07364756E2164756E21
107113
+ //# debugId=83B5681B3564736864756E2164756E21