@settlemint/sdk-mcp 2.4.0-pr8612ea0b → 2.4.0-pr88ac0d7d

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