@nirvana-labs/nirvana-mcp 1.20.2 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/code-tool-worker.d.mts.map +1 -1
- package/code-tool-worker.d.ts.map +1 -1
- package/code-tool-worker.js +211 -7
- package/code-tool-worker.js.map +1 -1
- package/code-tool-worker.mjs +211 -7
- package/code-tool-worker.mjs.map +1 -1
- package/code-tool.d.mts +1 -1
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +11 -13
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +11 -13
- package/code-tool.mjs.map +1 -1
- package/dynamic-tools.d.mts +1 -1
- package/dynamic-tools.d.ts +1 -1
- package/dynamic-tools.js +1 -1
- package/dynamic-tools.mjs +1 -1
- package/options.d.mts.map +1 -1
- package/options.d.ts.map +1 -1
- package/options.js +6 -3
- package/options.js.map +1 -1
- package/options.mjs +6 -3
- package/options.mjs.map +1 -1
- package/package.json +4 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-worker.ts +256 -7
- package/src/code-tool.ts +14 -13
- package/src/dynamic-tools.ts +1 -1
- package/src/options.ts +10 -3
- package/src/server.ts +1 -1
- package/src/tools/api-keys/list-api-keys.ts +12 -3
- package/src/tools/compute/vms/list-compute-vms.ts +12 -3
- package/src/tools/compute/vms/volumes/list-vms-compute-volumes.ts +11 -2
- package/src/tools/compute/volumes/list-compute-volumes.ts +12 -3
- package/src/tools/networking/connect/connections/list-connect-networking-connections.ts +12 -5
- package/src/tools/networking/connect/routes/list-connect-networking-routes.ts +12 -3
- package/src/tools/networking/firewall-rules/list-networking-firewall-rules.ts +11 -4
- package/src/tools/networking/vpcs/list-networking-vpcs.ts +12 -3
- package/src/tools/operations/list-operations.ts +12 -3
- package/src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts +13 -6
- package/src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts +12 -3
- package/src/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.ts +13 -4
- package/src/tools/rpc-nodes/flex/list-rpc-nodes-flex.ts +12 -3
- package/tools/api-keys/list-api-keys.d.mts.map +1 -1
- package/tools/api-keys/list-api-keys.d.ts.map +1 -1
- package/tools/api-keys/list-api-keys.js +12 -3
- package/tools/api-keys/list-api-keys.js.map +1 -1
- package/tools/api-keys/list-api-keys.mjs +12 -3
- package/tools/api-keys/list-api-keys.mjs.map +1 -1
- package/tools/compute/vms/list-compute-vms.d.mts.map +1 -1
- package/tools/compute/vms/list-compute-vms.d.ts.map +1 -1
- package/tools/compute/vms/list-compute-vms.js +12 -3
- package/tools/compute/vms/list-compute-vms.js.map +1 -1
- package/tools/compute/vms/list-compute-vms.mjs +12 -3
- package/tools/compute/vms/list-compute-vms.mjs.map +1 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.d.mts.map +1 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.d.ts.map +1 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.js +11 -2
- package/tools/compute/vms/volumes/list-vms-compute-volumes.js.map +1 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs +11 -2
- package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs.map +1 -1
- package/tools/compute/volumes/list-compute-volumes.d.mts.map +1 -1
- package/tools/compute/volumes/list-compute-volumes.d.ts.map +1 -1
- package/tools/compute/volumes/list-compute-volumes.js +12 -3
- package/tools/compute/volumes/list-compute-volumes.js.map +1 -1
- package/tools/compute/volumes/list-compute-volumes.mjs +12 -3
- package/tools/compute/volumes/list-compute-volumes.mjs.map +1 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.d.mts.map +1 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.d.ts.map +1 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.js +12 -3
- package/tools/networking/connect/connections/list-connect-networking-connections.js.map +1 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.mjs +12 -3
- package/tools/networking/connect/connections/list-connect-networking-connections.mjs.map +1 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.d.mts.map +1 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.d.ts.map +1 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.js +12 -3
- package/tools/networking/connect/routes/list-connect-networking-routes.js.map +1 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.mjs +12 -3
- package/tools/networking/connect/routes/list-connect-networking-routes.mjs.map +1 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.d.mts.map +1 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.d.ts.map +1 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.js +11 -2
- package/tools/networking/firewall-rules/list-networking-firewall-rules.js.map +1 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs +11 -2
- package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs.map +1 -1
- package/tools/networking/vpcs/list-networking-vpcs.d.mts.map +1 -1
- package/tools/networking/vpcs/list-networking-vpcs.d.ts.map +1 -1
- package/tools/networking/vpcs/list-networking-vpcs.js +12 -3
- package/tools/networking/vpcs/list-networking-vpcs.js.map +1 -1
- package/tools/networking/vpcs/list-networking-vpcs.mjs +12 -3
- package/tools/networking/vpcs/list-networking-vpcs.mjs.map +1 -1
- package/tools/operations/list-operations.d.mts.map +1 -1
- package/tools/operations/list-operations.d.ts.map +1 -1
- package/tools/operations/list-operations.js +12 -3
- package/tools/operations/list-operations.js.map +1 -1
- package/tools/operations/list-operations.mjs +12 -3
- package/tools/operations/list-operations.mjs.map +1 -1
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.mts.map +1 -1
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.ts.map +1 -1
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js +13 -4
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js.map +1 -1
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs +13 -4
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs.map +1 -1
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.mts.map +1 -1
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.ts.map +1 -1
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js +12 -3
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js.map +1 -1
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs +12 -3
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs.map +1 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.mts.map +1 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.ts.map +1 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js +13 -4
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js.map +1 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs +13 -4
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs.map +1 -1
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.mts.map +1 -1
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.ts.map +1 -1
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js +12 -3
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js.map +1 -1
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs +12 -3
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-networking-firewall-rules.d.mts","sourceRoot":"","sources":["../../../src/tools/networking/firewall-rules/list-networking-firewall-rules.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-networking-firewall-rules.d.mts","sourceRoot":"","sources":["../../../src/tools/networking/firewall-rules/list-networking-firewall-rules.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA8BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-networking-firewall-rules.d.ts","sourceRoot":"","sources":["../../../src/tools/networking/firewall-rules/list-networking-firewall-rules.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-networking-firewall-rules.d.ts","sourceRoot":"","sources":["../../../src/tools/networking/firewall-rules/list-networking-firewall-rules.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA8BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -14,13 +14,21 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_networking_firewall_rules',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all firewall rules\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/firewall_rule_list',\n $defs: {\n firewall_rule_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/firewall_rule'\n }\n }\n },\n required: [ 'items'\n ]\n },\n firewall_rule: {\n type: 'object',\n description: 'Firewall rule details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Firewall Rule.'\n },\n created_at: {\n type: 'string',\n description: 'When the Firewall Rule was created.',\n format: 'date-time'\n },\n destination_address: {\n type: 'string',\n description: 'Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.'\n },\n destination_ports: {\n type: 'array',\n description: 'Destination ports of the Firewall Rule.',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string',\n description: 'Name of the Firewall Rule.'\n },\n protocol: {\n type: 'string',\n description: 'Protocol of the Firewall Rule.',\n enum: [ 'tcp',\n 'udp'\n ]\n },\n source_address: {\n type: 'string',\n description: 'Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask of 0.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Firewall Rule.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Firewall Rule was updated.',\n format: 'date-time'\n },\n vpc_id: {\n type: 'string',\n description: 'ID of the VPC the Firewall Rule belongs to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'destination_address',\n 'destination_ports',\n 'name',\n 'protocol',\n 'source_address',\n 'status',\n 'tags',\n 'updated_at',\n 'vpc_id'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all firewall rules\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/firewall_rule_list',\n $defs: {\n firewall_rule_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/firewall_rule'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n firewall_rule: {\n type: 'object',\n description: 'Firewall rule details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Firewall Rule.'\n },\n created_at: {\n type: 'string',\n description: 'When the Firewall Rule was created.',\n format: 'date-time'\n },\n destination_address: {\n type: 'string',\n description: 'Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.'\n },\n destination_ports: {\n type: 'array',\n description: 'Destination ports of the Firewall Rule.',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string',\n description: 'Name of the Firewall Rule.'\n },\n protocol: {\n type: 'string',\n description: 'Protocol of the Firewall Rule.',\n enum: [ 'tcp',\n 'udp'\n ]\n },\n source_address: {\n type: 'string',\n description: 'Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask of 0.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Firewall Rule.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Firewall Rule was updated.',\n format: 'date-time'\n },\n vpc_id: {\n type: 'string',\n description: 'ID of the VPC the Firewall Rule belongs to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'destination_address',\n 'destination_ports',\n 'name',\n 'protocol',\n 'source_address',\n 'status',\n 'tags',\n 'updated_at',\n 'vpc_id'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
21
21
|
vpc_id: {
|
|
22
22
|
type: 'string',
|
|
23
23
|
},
|
|
24
|
+
cursor: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Pagination cursor returned by a previous request',
|
|
27
|
+
},
|
|
28
|
+
limit: {
|
|
29
|
+
type: 'integer',
|
|
30
|
+
description: 'Maximum number of items to return',
|
|
31
|
+
},
|
|
24
32
|
jq_filter: {
|
|
25
33
|
type: 'string',
|
|
26
34
|
title: 'jq Filter',
|
|
@@ -35,7 +43,8 @@ exports.tool = {
|
|
|
35
43
|
};
|
|
36
44
|
const handler = async (client, args) => {
|
|
37
45
|
const { vpc_id, jq_filter, ...body } = args;
|
|
38
|
-
|
|
46
|
+
const response = await client.networking.firewallRules.list(vpc_id, body).asResponse();
|
|
47
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
|
|
39
48
|
};
|
|
40
49
|
exports.handler = handler;
|
|
41
50
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-networking-firewall-rules.js","sourceRoot":"","sources":["../../../src/tools/networking/firewall-rules/list-networking-firewall-rules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,2BAA2B;IACrC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,6CAA6C;IACvD,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-networking-firewall-rules.js","sourceRoot":"","sources":["../../../src/tools/networking/firewall-rules/list-networking-firewall-rules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,2BAA2B;IACrC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,6CAA6C;IACvD,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,szGAAszG;IACxzG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACnD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACvF,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,13 +11,21 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'list_networking_firewall_rules',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all firewall rules\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/firewall_rule_list',\n $defs: {\n firewall_rule_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/firewall_rule'\n }\n }\n },\n required: [ 'items'\n ]\n },\n firewall_rule: {\n type: 'object',\n description: 'Firewall rule details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Firewall Rule.'\n },\n created_at: {\n type: 'string',\n description: 'When the Firewall Rule was created.',\n format: 'date-time'\n },\n destination_address: {\n type: 'string',\n description: 'Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.'\n },\n destination_ports: {\n type: 'array',\n description: 'Destination ports of the Firewall Rule.',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string',\n description: 'Name of the Firewall Rule.'\n },\n protocol: {\n type: 'string',\n description: 'Protocol of the Firewall Rule.',\n enum: [ 'tcp',\n 'udp'\n ]\n },\n source_address: {\n type: 'string',\n description: 'Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask of 0.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Firewall Rule.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Firewall Rule was updated.',\n format: 'date-time'\n },\n vpc_id: {\n type: 'string',\n description: 'ID of the VPC the Firewall Rule belongs to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'destination_address',\n 'destination_ports',\n 'name',\n 'protocol',\n 'source_address',\n 'status',\n 'tags',\n 'updated_at',\n 'vpc_id'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all firewall rules\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/firewall_rule_list',\n $defs: {\n firewall_rule_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/firewall_rule'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n firewall_rule: {\n type: 'object',\n description: 'Firewall rule details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Firewall Rule.'\n },\n created_at: {\n type: 'string',\n description: 'When the Firewall Rule was created.',\n format: 'date-time'\n },\n destination_address: {\n type: 'string',\n description: 'Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.'\n },\n destination_ports: {\n type: 'array',\n description: 'Destination ports of the Firewall Rule.',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string',\n description: 'Name of the Firewall Rule.'\n },\n protocol: {\n type: 'string',\n description: 'Protocol of the Firewall Rule.',\n enum: [ 'tcp',\n 'udp'\n ]\n },\n source_address: {\n type: 'string',\n description: 'Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask of 0.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Firewall Rule.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Firewall Rule was updated.',\n format: 'date-time'\n },\n vpc_id: {\n type: 'string',\n description: 'ID of the VPC the Firewall Rule belongs to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'destination_address',\n 'destination_ports',\n 'name',\n 'protocol',\n 'source_address',\n 'status',\n 'tags',\n 'updated_at',\n 'vpc_id'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
18
18
|
vpc_id: {
|
|
19
19
|
type: 'string',
|
|
20
20
|
},
|
|
21
|
+
cursor: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Pagination cursor returned by a previous request',
|
|
24
|
+
},
|
|
25
|
+
limit: {
|
|
26
|
+
type: 'integer',
|
|
27
|
+
description: 'Maximum number of items to return',
|
|
28
|
+
},
|
|
21
29
|
jq_filter: {
|
|
22
30
|
type: 'string',
|
|
23
31
|
title: 'jq Filter',
|
|
@@ -32,7 +40,8 @@ export const tool = {
|
|
|
32
40
|
};
|
|
33
41
|
export const handler = async (client, args) => {
|
|
34
42
|
const { vpc_id, jq_filter, ...body } = args;
|
|
35
|
-
|
|
43
|
+
const response = await client.networking.firewallRules.list(vpc_id, body).asResponse();
|
|
44
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
36
45
|
};
|
|
37
46
|
export default { metadata, tool, handler };
|
|
38
47
|
//# sourceMappingURL=list-networking-firewall-rules.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-networking-firewall-rules.mjs","sourceRoot":"","sources":["../../../src/tools/networking/firewall-rules/list-networking-firewall-rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,2BAA2B;IACrC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,6CAA6C;IACvD,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-networking-firewall-rules.mjs","sourceRoot":"","sources":["../../../src/tools/networking/firewall-rules/list-networking-firewall-rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,2BAA2B;IACrC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,6CAA6C;IACvD,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,szGAAszG;IACxzG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACnD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACvF,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-networking-vpcs.d.mts","sourceRoot":"","sources":["../../../src/tools/networking/vpcs/list-networking-vpcs.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-networking-vpcs.d.mts","sourceRoot":"","sources":["../../../src/tools/networking/vpcs/list-networking-vpcs.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-networking-vpcs.d.ts","sourceRoot":"","sources":["../../../src/tools/networking/vpcs/list-networking-vpcs.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-networking-vpcs.d.ts","sourceRoot":"","sources":["../../../src/tools/networking/vpcs/list-networking-vpcs.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -14,10 +14,18 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_networking_vpcs',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all VPCs\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/vpc_list',\n $defs: {\n vpc_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/vpc'\n }\n }\n },\n required: [ 'items'\n ]\n },\n vpc: {\n type: 'object',\n description: 'VPC details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the VPC.'\n },\n created_at: {\n type: 'string',\n description: 'When the VPC was created.',\n format: 'date-time'\n },\n firewall_rule_ids: {\n type: 'array',\n description: 'IDs of the Firewall Rules associated with the VPC.',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string',\n description: 'Name of the VPC.'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n subnet: {\n $ref: '#/$defs/subnet'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the VPC.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the VPC was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'firewall_rule_ids',\n 'name',\n 'region',\n 'status',\n 'subnet',\n 'tags',\n 'updated_at'\n ]\n },\n region_name: {\n type: 'string',\n description: 'Region the resource is in.',\n enum: [ 'us-sea-1',\n 'us-sva-1',\n 'us-chi-1',\n 'us-wdc-1',\n 'eu-frk-1',\n 'ap-sin-1',\n 'ap-seo-1',\n 'ap-tyo-1'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n subnet: {\n type: 'object',\n description: 'Subnet of the VPC.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Subnet.'\n },\n cidr: {\n type: 'string',\n description: 'CIDR block for the Subnet.'\n },\n created_at: {\n type: 'string',\n description: 'When the Subnet was created.',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Name of the Subnet.'\n },\n updated_at: {\n type: 'string',\n description: 'When the Subnet was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'cidr',\n 'created_at',\n 'name',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all VPCs\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/vpc_list',\n $defs: {\n vpc_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/vpc'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n vpc: {\n type: 'object',\n description: 'VPC details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the VPC.'\n },\n created_at: {\n type: 'string',\n description: 'When the VPC was created.',\n format: 'date-time'\n },\n firewall_rule_ids: {\n type: 'array',\n description: 'IDs of the Firewall Rules associated with the VPC.',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string',\n description: 'Name of the VPC.'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n subnet: {\n $ref: '#/$defs/subnet'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the VPC.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the VPC was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'firewall_rule_ids',\n 'name',\n 'region',\n 'status',\n 'subnet',\n 'tags',\n 'updated_at'\n ]\n },\n region_name: {\n type: 'string',\n description: 'Region the resource is in.',\n enum: [ 'us-sea-1',\n 'us-sva-1',\n 'us-chi-1',\n 'us-wdc-1',\n 'eu-frk-1',\n 'ap-sin-1',\n 'ap-seo-1',\n 'ap-tyo-1'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n subnet: {\n type: 'object',\n description: 'Subnet of the VPC.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Subnet.'\n },\n cidr: {\n type: 'string',\n description: 'CIDR block for the Subnet.'\n },\n created_at: {\n type: 'string',\n description: 'When the Subnet was created.',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Name of the Subnet.'\n },\n updated_at: {\n type: 'string',\n description: 'When the Subnet was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'cidr',\n 'created_at',\n 'name',\n 'updated_at'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
21
|
+
cursor: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Pagination cursor returned by a previous request',
|
|
24
|
+
},
|
|
25
|
+
limit: {
|
|
26
|
+
type: 'integer',
|
|
27
|
+
description: 'Maximum number of items to return',
|
|
28
|
+
},
|
|
21
29
|
jq_filter: {
|
|
22
30
|
type: 'string',
|
|
23
31
|
title: 'jq Filter',
|
|
@@ -31,8 +39,9 @@ exports.tool = {
|
|
|
31
39
|
},
|
|
32
40
|
};
|
|
33
41
|
const handler = async (client, args) => {
|
|
34
|
-
const { jq_filter } = args;
|
|
35
|
-
|
|
42
|
+
const { jq_filter, ...body } = args;
|
|
43
|
+
const response = await client.networking.vpcs.list(body).asResponse();
|
|
44
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
|
|
36
45
|
};
|
|
37
46
|
exports.handler = handler;
|
|
38
47
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-networking-vpcs.js","sourceRoot":"","sources":["../../../src/tools/networking/vpcs/list-networking-vpcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,WAAW;CACzB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-networking-vpcs.js","sourceRoot":"","sources":["../../../src/tools/networking/vpcs/list-networking-vpcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,WAAW;CACzB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,ywHAAywH;IAC3wH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,10 +11,18 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'list_networking_vpcs',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all VPCs\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/vpc_list',\n $defs: {\n vpc_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/vpc'\n }\n }\n },\n required: [ 'items'\n ]\n },\n vpc: {\n type: 'object',\n description: 'VPC details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the VPC.'\n },\n created_at: {\n type: 'string',\n description: 'When the VPC was created.',\n format: 'date-time'\n },\n firewall_rule_ids: {\n type: 'array',\n description: 'IDs of the Firewall Rules associated with the VPC.',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string',\n description: 'Name of the VPC.'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n subnet: {\n $ref: '#/$defs/subnet'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the VPC.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the VPC was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'firewall_rule_ids',\n 'name',\n 'region',\n 'status',\n 'subnet',\n 'tags',\n 'updated_at'\n ]\n },\n region_name: {\n type: 'string',\n description: 'Region the resource is in.',\n enum: [ 'us-sea-1',\n 'us-sva-1',\n 'us-chi-1',\n 'us-wdc-1',\n 'eu-frk-1',\n 'ap-sin-1',\n 'ap-seo-1',\n 'ap-tyo-1'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n subnet: {\n type: 'object',\n description: 'Subnet of the VPC.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Subnet.'\n },\n cidr: {\n type: 'string',\n description: 'CIDR block for the Subnet.'\n },\n created_at: {\n type: 'string',\n description: 'When the Subnet was created.',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Name of the Subnet.'\n },\n updated_at: {\n type: 'string',\n description: 'When the Subnet was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'cidr',\n 'created_at',\n 'name',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all VPCs\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/vpc_list',\n $defs: {\n vpc_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/vpc'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n vpc: {\n type: 'object',\n description: 'VPC details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the VPC.'\n },\n created_at: {\n type: 'string',\n description: 'When the VPC was created.',\n format: 'date-time'\n },\n firewall_rule_ids: {\n type: 'array',\n description: 'IDs of the Firewall Rules associated with the VPC.',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string',\n description: 'Name of the VPC.'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n subnet: {\n $ref: '#/$defs/subnet'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the VPC.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the VPC was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'firewall_rule_ids',\n 'name',\n 'region',\n 'status',\n 'subnet',\n 'tags',\n 'updated_at'\n ]\n },\n region_name: {\n type: 'string',\n description: 'Region the resource is in.',\n enum: [ 'us-sea-1',\n 'us-sva-1',\n 'us-chi-1',\n 'us-wdc-1',\n 'eu-frk-1',\n 'ap-sin-1',\n 'ap-seo-1',\n 'ap-tyo-1'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n subnet: {\n type: 'object',\n description: 'Subnet of the VPC.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Subnet.'\n },\n cidr: {\n type: 'string',\n description: 'CIDR block for the Subnet.'\n },\n created_at: {\n type: 'string',\n description: 'When the Subnet was created.',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Name of the Subnet.'\n },\n updated_at: {\n type: 'string',\n description: 'When the Subnet was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'cidr',\n 'created_at',\n 'name',\n 'updated_at'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
18
|
+
cursor: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'Pagination cursor returned by a previous request',
|
|
21
|
+
},
|
|
22
|
+
limit: {
|
|
23
|
+
type: 'integer',
|
|
24
|
+
description: 'Maximum number of items to return',
|
|
25
|
+
},
|
|
18
26
|
jq_filter: {
|
|
19
27
|
type: 'string',
|
|
20
28
|
title: 'jq Filter',
|
|
@@ -28,8 +36,9 @@ export const tool = {
|
|
|
28
36
|
},
|
|
29
37
|
};
|
|
30
38
|
export const handler = async (client, args) => {
|
|
31
|
-
const { jq_filter } = args;
|
|
32
|
-
|
|
39
|
+
const { jq_filter, ...body } = args;
|
|
40
|
+
const response = await client.networking.vpcs.list(body).asResponse();
|
|
41
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
33
42
|
};
|
|
34
43
|
export default { metadata, tool, handler };
|
|
35
44
|
//# sourceMappingURL=list-networking-vpcs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-networking-vpcs.mjs","sourceRoot":"","sources":["../../../src/tools/networking/vpcs/list-networking-vpcs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,WAAW;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-networking-vpcs.mjs","sourceRoot":"","sources":["../../../src/tools/networking/vpcs/list-networking-vpcs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,WAAW;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,ywHAAywH;IAC3wH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-operations.d.mts","sourceRoot":"","sources":["../../src/tools/operations/list-operations.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-operations.d.mts","sourceRoot":"","sources":["../../src/tools/operations/list-operations.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-operations.d.ts","sourceRoot":"","sources":["../../src/tools/operations/list-operations.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-operations.d.ts","sourceRoot":"","sources":["../../src/tools/operations/list-operations.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -14,10 +14,18 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_operations',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all operations\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/operation_list',\n $defs: {\n operation_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/operation'\n }\n }\n },\n required: [ 'items'\n ]\n },\n operation: {\n type: 'object',\n description: 'Operation details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Operation.'\n },\n created_at: {\n type: 'string',\n description: 'When the Operation was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/operation_kind'\n },\n resource_id: {\n type: 'string',\n description: 'ID of the resource that the Operation is acting on.'\n },\n status: {\n $ref: '#/$defs/operation_status'\n },\n type: {\n $ref: '#/$defs/operation_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Operation was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'resource_id',\n 'status',\n 'type',\n 'updated_at'\n ]\n },\n operation_kind: {\n type: 'string',\n description: 'Kind of Operation.',\n enum: [ 'vm',\n 'volume',\n 'vpc',\n 'firewall_rule'\n ]\n },\n operation_status: {\n type: 'string',\n description: 'Status of the Operation.',\n enum: [ 'pending',\n 'running',\n 'done',\n 'failed',\n 'unknown'\n ]\n },\n operation_type: {\n type: 'string',\n description: 'Type of Operation.',\n enum: [ 'create',\n 'update',\n 'delete',\n 'restart'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all operations\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/operation_list',\n $defs: {\n operation_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/operation'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n operation: {\n type: 'object',\n description: 'Operation details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Operation.'\n },\n created_at: {\n type: 'string',\n description: 'When the Operation was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/operation_kind'\n },\n resource_id: {\n type: 'string',\n description: 'ID of the resource that the Operation is acting on.'\n },\n status: {\n $ref: '#/$defs/operation_status'\n },\n type: {\n $ref: '#/$defs/operation_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Operation was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'resource_id',\n 'status',\n 'type',\n 'updated_at'\n ]\n },\n operation_kind: {\n type: 'string',\n description: 'Kind of Operation.',\n enum: [ 'vm',\n 'volume',\n 'vpc',\n 'firewall_rule'\n ]\n },\n operation_status: {\n type: 'string',\n description: 'Status of the Operation.',\n enum: [ 'pending',\n 'running',\n 'done',\n 'failed',\n 'unknown'\n ]\n },\n operation_type: {\n type: 'string',\n description: 'Type of Operation.',\n enum: [ 'create',\n 'update',\n 'delete',\n 'restart'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
21
|
+
cursor: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Pagination cursor returned by a previous request',
|
|
24
|
+
},
|
|
25
|
+
limit: {
|
|
26
|
+
type: 'integer',
|
|
27
|
+
description: 'Maximum number of items to return',
|
|
28
|
+
},
|
|
21
29
|
jq_filter: {
|
|
22
30
|
type: 'string',
|
|
23
31
|
title: 'jq Filter',
|
|
@@ -31,8 +39,9 @@ exports.tool = {
|
|
|
31
39
|
},
|
|
32
40
|
};
|
|
33
41
|
const handler = async (client, args) => {
|
|
34
|
-
const { jq_filter } = args;
|
|
35
|
-
|
|
42
|
+
const { jq_filter, ...body } = args;
|
|
43
|
+
const response = await client.operations.list(body).asResponse();
|
|
44
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
|
|
36
45
|
};
|
|
37
46
|
exports.handler = handler;
|
|
38
47
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-operations.js","sourceRoot":"","sources":["../../src/tools/operations/list-operations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"list-operations.js","sourceRoot":"","sources":["../../src/tools/operations/list-operations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,uqFAAuqF;IACzqF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACjE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,10 +11,18 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'list_operations',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all operations\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/operation_list',\n $defs: {\n operation_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/operation'\n }\n }\n },\n required: [ 'items'\n ]\n },\n operation: {\n type: 'object',\n description: 'Operation details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Operation.'\n },\n created_at: {\n type: 'string',\n description: 'When the Operation was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/operation_kind'\n },\n resource_id: {\n type: 'string',\n description: 'ID of the resource that the Operation is acting on.'\n },\n status: {\n $ref: '#/$defs/operation_status'\n },\n type: {\n $ref: '#/$defs/operation_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Operation was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'resource_id',\n 'status',\n 'type',\n 'updated_at'\n ]\n },\n operation_kind: {\n type: 'string',\n description: 'Kind of Operation.',\n enum: [ 'vm',\n 'volume',\n 'vpc',\n 'firewall_rule'\n ]\n },\n operation_status: {\n type: 'string',\n description: 'Status of the Operation.',\n enum: [ 'pending',\n 'running',\n 'done',\n 'failed',\n 'unknown'\n ]\n },\n operation_type: {\n type: 'string',\n description: 'Type of Operation.',\n enum: [ 'create',\n 'update',\n 'delete',\n 'restart'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all operations\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/operation_list',\n $defs: {\n operation_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/operation'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n operation: {\n type: 'object',\n description: 'Operation details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Operation.'\n },\n created_at: {\n type: 'string',\n description: 'When the Operation was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/operation_kind'\n },\n resource_id: {\n type: 'string',\n description: 'ID of the resource that the Operation is acting on.'\n },\n status: {\n $ref: '#/$defs/operation_status'\n },\n type: {\n $ref: '#/$defs/operation_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Operation was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'resource_id',\n 'status',\n 'type',\n 'updated_at'\n ]\n },\n operation_kind: {\n type: 'string',\n description: 'Kind of Operation.',\n enum: [ 'vm',\n 'volume',\n 'vpc',\n 'firewall_rule'\n ]\n },\n operation_status: {\n type: 'string',\n description: 'Status of the Operation.',\n enum: [ 'pending',\n 'running',\n 'done',\n 'failed',\n 'unknown'\n ]\n },\n operation_type: {\n type: 'string',\n description: 'Type of Operation.',\n enum: [ 'create',\n 'update',\n 'delete',\n 'restart'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
18
|
+
cursor: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'Pagination cursor returned by a previous request',
|
|
21
|
+
},
|
|
22
|
+
limit: {
|
|
23
|
+
type: 'integer',
|
|
24
|
+
description: 'Maximum number of items to return',
|
|
25
|
+
},
|
|
18
26
|
jq_filter: {
|
|
19
27
|
type: 'string',
|
|
20
28
|
title: 'jq Filter',
|
|
@@ -28,8 +36,9 @@ export const tool = {
|
|
|
28
36
|
},
|
|
29
37
|
};
|
|
30
38
|
export const handler = async (client, args) => {
|
|
31
|
-
const { jq_filter } = args;
|
|
32
|
-
|
|
39
|
+
const { jq_filter, ...body } = args;
|
|
40
|
+
const response = await client.operations.list(body).asResponse();
|
|
41
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
33
42
|
};
|
|
34
43
|
export default { metadata, tool, handler };
|
|
35
44
|
//# sourceMappingURL=list-operations.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-operations.mjs","sourceRoot":"","sources":["../../src/tools/operations/list-operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"list-operations.mjs","sourceRoot":"","sources":["../../src/tools/operations/list-operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,uqFAAuqF;IACzqF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACjE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-dedicated-rpc-nodes-blockchains.d.mts","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-dedicated-rpc-nodes-blockchains.d.mts","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-dedicated-rpc-nodes-blockchains.d.ts","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-dedicated-rpc-nodes-blockchains.d.ts","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -10,14 +10,22 @@ exports.metadata = {
|
|
|
10
10
|
tags: [],
|
|
11
11
|
httpMethod: 'get',
|
|
12
12
|
httpPath: '/v1/rpc_nodes/dedicated/blockchains',
|
|
13
|
-
operationId: '
|
|
13
|
+
operationId: 'list_rpc_nodes_dedicated_blockchains',
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_dedicated_rpc_nodes_blockchains',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all Dedicated Blockchains\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated_blockchain_list',\n $defs: {\n dedicated_blockchain_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/dedicated_blockchain'\n }\n }\n },\n required: [ 'items'\n ]\n },\n dedicated_blockchain: {\n type: 'object',\n description: 'Blockchain supported by the RPC Node Dedicated.',\n properties: {\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n network: {\n type: 'string',\n description: 'Network type (e.g., mainnet, testnet).'\n }\n },\n required: [ 'blockchain',\n 'network'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all Dedicated Blockchains\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated_blockchain_list',\n $defs: {\n dedicated_blockchain_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/dedicated_blockchain'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n dedicated_blockchain: {\n type: 'object',\n description: 'Blockchain supported by the RPC Node Dedicated.',\n properties: {\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n network: {\n type: 'string',\n description: 'Network type (e.g., mainnet, testnet).'\n }\n },\n required: [ 'blockchain',\n 'network'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
21
|
+
cursor: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Pagination cursor returned by a previous request',
|
|
24
|
+
},
|
|
25
|
+
limit: {
|
|
26
|
+
type: 'integer',
|
|
27
|
+
description: 'Maximum number of items to return',
|
|
28
|
+
},
|
|
21
29
|
jq_filter: {
|
|
22
30
|
type: 'string',
|
|
23
31
|
title: 'jq Filter',
|
|
@@ -31,8 +39,9 @@ exports.tool = {
|
|
|
31
39
|
},
|
|
32
40
|
};
|
|
33
41
|
const handler = async (client, args) => {
|
|
34
|
-
const { jq_filter } = args;
|
|
35
|
-
|
|
42
|
+
const { jq_filter, ...body } = args;
|
|
43
|
+
const response = await client.rpcNodes.dedicated.blockchains.list(body).asResponse();
|
|
44
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
|
|
36
45
|
};
|
|
37
46
|
exports.handler = handler;
|
|
38
47
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-dedicated-rpc-nodes-blockchains.js","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,iCAAiC;IAC3C,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"list-dedicated-rpc-nodes-blockchains.js","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,iCAAiC;IAC3C,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,sCAAsC;CACpD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,shDAAshD;IACxhD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACrF,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -7,14 +7,22 @@ export const metadata = {
|
|
|
7
7
|
tags: [],
|
|
8
8
|
httpMethod: 'get',
|
|
9
9
|
httpPath: '/v1/rpc_nodes/dedicated/blockchains',
|
|
10
|
-
operationId: '
|
|
10
|
+
operationId: 'list_rpc_nodes_dedicated_blockchains',
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'list_dedicated_rpc_nodes_blockchains',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all Dedicated Blockchains\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated_blockchain_list',\n $defs: {\n dedicated_blockchain_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/dedicated_blockchain'\n }\n }\n },\n required: [ 'items'\n ]\n },\n dedicated_blockchain: {\n type: 'object',\n description: 'Blockchain supported by the RPC Node Dedicated.',\n properties: {\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n network: {\n type: 'string',\n description: 'Network type (e.g., mainnet, testnet).'\n }\n },\n required: [ 'blockchain',\n 'network'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all Dedicated Blockchains\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated_blockchain_list',\n $defs: {\n dedicated_blockchain_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/dedicated_blockchain'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n dedicated_blockchain: {\n type: 'object',\n description: 'Blockchain supported by the RPC Node Dedicated.',\n properties: {\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n network: {\n type: 'string',\n description: 'Network type (e.g., mainnet, testnet).'\n }\n },\n required: [ 'blockchain',\n 'network'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
18
|
+
cursor: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'Pagination cursor returned by a previous request',
|
|
21
|
+
},
|
|
22
|
+
limit: {
|
|
23
|
+
type: 'integer',
|
|
24
|
+
description: 'Maximum number of items to return',
|
|
25
|
+
},
|
|
18
26
|
jq_filter: {
|
|
19
27
|
type: 'string',
|
|
20
28
|
title: 'jq Filter',
|
|
@@ -28,8 +36,9 @@ export const tool = {
|
|
|
28
36
|
},
|
|
29
37
|
};
|
|
30
38
|
export const handler = async (client, args) => {
|
|
31
|
-
const { jq_filter } = args;
|
|
32
|
-
|
|
39
|
+
const { jq_filter, ...body } = args;
|
|
40
|
+
const response = await client.rpcNodes.dedicated.blockchains.list(body).asResponse();
|
|
41
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
33
42
|
};
|
|
34
43
|
export default { metadata, tool, handler };
|
|
35
44
|
//# sourceMappingURL=list-dedicated-rpc-nodes-blockchains.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-dedicated-rpc-nodes-blockchains.mjs","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,iCAAiC;IAC3C,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"list-dedicated-rpc-nodes-blockchains.mjs","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,iCAAiC;IAC3C,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,sCAAsC;CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,shDAAshD;IACxhD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACrF,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-rpc-nodes-dedicated.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-rpc-nodes-dedicated.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-rpc-nodes-dedicated.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"list-rpc-nodes-dedicated.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -14,10 +14,18 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_rpc_nodes_dedicated',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all RPC Node Dedicated you created\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated_list',\n $defs: {\n dedicated_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/dedicated'\n }\n }\n },\n required: [ 'items'\n ]\n },\n dedicated: {\n type: 'object',\n description: 'RPC Node Dedicated details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the RPC Node Dedicated.'\n },\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n created_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated was created.',\n format: 'date-time'\n },\n endpoint: {\n type: 'string',\n description: 'RPC endpoint URL.'\n },\n name: {\n type: 'string',\n description: 'Name of the RPC Node Dedicated.'\n },\n network: {\n type: 'string',\n description: 'Network type (e.g., mainnet, testnet).'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the RPC Node Dedicated.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'blockchain',\n 'created_at',\n 'endpoint',\n 'name',\n 'network',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all RPC Node Dedicated you created\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated_list',\n $defs: {\n dedicated_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/dedicated'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n dedicated: {\n type: 'object',\n description: 'RPC Node Dedicated details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the RPC Node Dedicated.'\n },\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n created_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated was created.',\n format: 'date-time'\n },\n endpoint: {\n type: 'string',\n description: 'RPC endpoint URL.'\n },\n name: {\n type: 'string',\n description: 'Name of the RPC Node Dedicated.'\n },\n network: {\n type: 'string',\n description: 'Network type (e.g., mainnet, testnet).'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the RPC Node Dedicated.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'blockchain',\n 'created_at',\n 'endpoint',\n 'name',\n 'network',\n 'tags',\n 'updated_at'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
21
|
+
cursor: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Pagination cursor returned by a previous request',
|
|
24
|
+
},
|
|
25
|
+
limit: {
|
|
26
|
+
type: 'integer',
|
|
27
|
+
description: 'Maximum number of items to return',
|
|
28
|
+
},
|
|
21
29
|
jq_filter: {
|
|
22
30
|
type: 'string',
|
|
23
31
|
title: 'jq Filter',
|
|
@@ -31,8 +39,9 @@ exports.tool = {
|
|
|
31
39
|
},
|
|
32
40
|
};
|
|
33
41
|
const handler = async (client, args) => {
|
|
34
|
-
const { jq_filter } = args;
|
|
35
|
-
|
|
42
|
+
const { jq_filter, ...body } = args;
|
|
43
|
+
const response = await client.rpcNodes.dedicated.list(body).asResponse();
|
|
44
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
|
|
36
45
|
};
|
|
37
46
|
exports.handler = handler;
|
|
38
47
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-rpc-nodes-dedicated.js","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-rpc-nodes-dedicated.js","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,s6EAAs6E;IACx6E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACzE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|