@bluehive/sdk-mcp 0.1.0-alpha.2 → 0.1.0-alpha.3
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/filtering.d.mts +2 -0
- package/filtering.d.mts.map +1 -0
- package/filtering.d.ts +2 -0
- package/filtering.d.ts.map +1 -0
- package/filtering.js +17 -0
- package/filtering.js.map +1 -0
- package/filtering.mjs +14 -0
- package/filtering.mjs.map +1 -0
- package/package.json +13 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/filtering.ts +13 -0
- package/src/server.ts +1 -1
- package/src/tools/database/check-health-database.ts +12 -3
- package/src/tools/fax/list-providers-fax.ts +12 -3
- package/src/tools/fax/retrieve-status-fax.ts +10 -2
- package/src/tools/fax/send-fax.ts +10 -2
- package/src/tools/health/check-health.ts +12 -3
- package/src/tools/providers/lookup-providers.ts +10 -2
- package/src/tools/types.ts +1 -1
- package/src/tools/version/retrieve-version.ts +12 -3
- package/tools/database/check-health-database.d.mts.map +1 -1
- package/tools/database/check-health-database.d.ts.map +1 -1
- package/tools/database/check-health-database.js +10 -3
- package/tools/database/check-health-database.js.map +1 -1
- package/tools/database/check-health-database.mjs +10 -3
- package/tools/database/check-health-database.mjs.map +1 -1
- package/tools/fax/list-providers-fax.d.mts.map +1 -1
- package/tools/fax/list-providers-fax.d.ts.map +1 -1
- package/tools/fax/list-providers-fax.js +10 -3
- package/tools/fax/list-providers-fax.js.map +1 -1
- package/tools/fax/list-providers-fax.mjs +10 -3
- package/tools/fax/list-providers-fax.mjs.map +1 -1
- package/tools/fax/retrieve-status-fax.d.mts.map +1 -1
- package/tools/fax/retrieve-status-fax.d.ts.map +1 -1
- package/tools/fax/retrieve-status-fax.js +8 -2
- package/tools/fax/retrieve-status-fax.js.map +1 -1
- package/tools/fax/retrieve-status-fax.mjs +8 -2
- package/tools/fax/retrieve-status-fax.mjs.map +1 -1
- package/tools/fax/send-fax.d.mts.map +1 -1
- package/tools/fax/send-fax.d.ts.map +1 -1
- package/tools/fax/send-fax.js +8 -2
- package/tools/fax/send-fax.js.map +1 -1
- package/tools/fax/send-fax.mjs +8 -2
- package/tools/fax/send-fax.mjs.map +1 -1
- package/tools/health/check-health.d.mts.map +1 -1
- package/tools/health/check-health.d.ts.map +1 -1
- package/tools/health/check-health.js +10 -3
- package/tools/health/check-health.js.map +1 -1
- package/tools/health/check-health.mjs +10 -3
- package/tools/health/check-health.mjs.map +1 -1
- package/tools/providers/lookup-providers.d.mts.map +1 -1
- package/tools/providers/lookup-providers.d.ts.map +1 -1
- package/tools/providers/lookup-providers.js +8 -2
- package/tools/providers/lookup-providers.js.map +1 -1
- package/tools/providers/lookup-providers.mjs +8 -2
- package/tools/providers/lookup-providers.mjs.map +1 -1
- package/tools/types.d.mts +1 -1
- package/tools/types.d.mts.map +1 -1
- package/tools/types.d.ts +1 -1
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js.map +1 -1
- package/tools/types.mjs.map +1 -1
- package/tools/version/retrieve-version.d.mts.map +1 -1
- package/tools/version/retrieve-version.d.ts.map +1 -1
- package/tools/version/retrieve-version.js +10 -3
- package/tools/version/retrieve-version.js.map +1 -1
- package/tools/version/retrieve-version.mjs +10 -3
- package/tools/version/retrieve-version.mjs.map +1 -1
@@ -2,6 +2,7 @@
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
5
|
+
const filtering_1 = require("@bluehive/sdk-mcp/filtering");
|
5
6
|
const types_1 = require("@bluehive/sdk-mcp/tools/types");
|
6
7
|
exports.metadata = {
|
7
8
|
resource: 'fax',
|
@@ -13,19 +14,24 @@ exports.metadata = {
|
|
13
14
|
};
|
14
15
|
exports.tool = {
|
15
16
|
name: 'retrieve_status_fax',
|
16
|
-
description: '
|
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\nRetrieve the current status and details of a fax by its ID.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'Fax identifier'\n },\n createdAt: {\n type: 'string',\n description: 'ISO timestamp when fax was created'\n },\n from: {\n type: 'string',\n description: 'Sender fax number'\n },\n provider: {\n type: 'string',\n description: 'Provider used to send the fax'\n },\n status: {\n type: 'string',\n description: 'Current fax status',\n enum: [ 'queued',\n 'dialing',\n 'sending',\n 'delivered',\n 'failed',\n 'cancelled',\n 'retrying'\n ]\n },\n to: {\n type: 'string',\n description: 'Recipient fax number'\n },\n updatedAt: {\n type: 'string',\n description: 'ISO timestamp when status was last updated'\n },\n cost: {\n type: 'number',\n description: 'Cost of the fax'\n },\n deliveredAt: {\n type: 'string',\n description: 'ISO timestamp when fax was delivered'\n },\n duration: {\n type: 'number',\n description: 'Call duration in seconds'\n },\n errorMessage: {\n type: 'string',\n description: 'Error message if fax failed'\n },\n pageCount: {\n type: 'number',\n description: 'Number of pages in the fax'\n },\n providerData: {\n type: 'object',\n description: 'Provider-specific additional data'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'from',\n 'provider',\n 'status',\n 'to',\n 'updatedAt'\n ]\n}\n```",
|
17
18
|
inputSchema: {
|
18
19
|
type: 'object',
|
19
20
|
properties: {
|
20
21
|
id: {
|
21
22
|
type: 'string',
|
22
23
|
},
|
24
|
+
jq_filter: {
|
25
|
+
type: 'string',
|
26
|
+
title: 'jq Filter',
|
27
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
28
|
+
},
|
23
29
|
},
|
24
30
|
},
|
25
31
|
};
|
26
32
|
const handler = async (client, args) => {
|
27
33
|
const { id, ...body } = args;
|
28
|
-
return (0, types_1.asTextContentResult)(await client.fax.retrieveStatus(id));
|
34
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.fax.retrieveStatus(id)));
|
29
35
|
};
|
30
36
|
exports.handler = handler;
|
31
37
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"retrieve-status-fax.js","sourceRoot":"","sources":["../../src/tools/fax/retrieve-status-fax.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,
|
1
|
+
{"version":3,"file":"retrieve-status-fax.js","sourceRoot":"","sources":["../../src/tools/fax/retrieve-status-fax.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,szDAAszD;IACxzD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACpC,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,IAAI,EAAE,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
import { maybeFilter } from '@bluehive/sdk-mcp/filtering';
|
2
3
|
import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
|
3
4
|
export const metadata = {
|
4
5
|
resource: 'fax',
|
@@ -10,19 +11,24 @@ export const metadata = {
|
|
10
11
|
};
|
11
12
|
export const tool = {
|
12
13
|
name: 'retrieve_status_fax',
|
13
|
-
description: '
|
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\nRetrieve the current status and details of a fax by its ID.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'Fax identifier'\n },\n createdAt: {\n type: 'string',\n description: 'ISO timestamp when fax was created'\n },\n from: {\n type: 'string',\n description: 'Sender fax number'\n },\n provider: {\n type: 'string',\n description: 'Provider used to send the fax'\n },\n status: {\n type: 'string',\n description: 'Current fax status',\n enum: [ 'queued',\n 'dialing',\n 'sending',\n 'delivered',\n 'failed',\n 'cancelled',\n 'retrying'\n ]\n },\n to: {\n type: 'string',\n description: 'Recipient fax number'\n },\n updatedAt: {\n type: 'string',\n description: 'ISO timestamp when status was last updated'\n },\n cost: {\n type: 'number',\n description: 'Cost of the fax'\n },\n deliveredAt: {\n type: 'string',\n description: 'ISO timestamp when fax was delivered'\n },\n duration: {\n type: 'number',\n description: 'Call duration in seconds'\n },\n errorMessage: {\n type: 'string',\n description: 'Error message if fax failed'\n },\n pageCount: {\n type: 'number',\n description: 'Number of pages in the fax'\n },\n providerData: {\n type: 'object',\n description: 'Provider-specific additional data'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'from',\n 'provider',\n 'status',\n 'to',\n 'updatedAt'\n ]\n}\n```",
|
14
15
|
inputSchema: {
|
15
16
|
type: 'object',
|
16
17
|
properties: {
|
17
18
|
id: {
|
18
19
|
type: 'string',
|
19
20
|
},
|
21
|
+
jq_filter: {
|
22
|
+
type: 'string',
|
23
|
+
title: 'jq Filter',
|
24
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
25
|
+
},
|
20
26
|
},
|
21
27
|
},
|
22
28
|
};
|
23
29
|
export const handler = async (client, args) => {
|
24
30
|
const { id, ...body } = args;
|
25
|
-
return asTextContentResult(await client.fax.retrieveStatus(id));
|
31
|
+
return asTextContentResult(await maybeFilter(args, await client.fax.retrieveStatus(id)));
|
26
32
|
};
|
27
33
|
export default { metadata, tool, handler };
|
28
34
|
//# sourceMappingURL=retrieve-status-fax.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"retrieve-status-fax.mjs","sourceRoot":"","sources":["../../src/tools/fax/retrieve-status-fax.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,
|
1
|
+
{"version":3,"file":"retrieve-status-fax.mjs","sourceRoot":"","sources":["../../src/tools/fax/retrieve-status-fax.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,szDAAszD;IACxzD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACpC,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"send-fax.d.mts","sourceRoot":"","sources":["../../src/tools/fax/send-fax.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"send-fax.d.mts","sourceRoot":"","sources":["../../src/tools/fax/send-fax.ts"],"names":[],"mappings":"OAKO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0DlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"send-fax.d.ts","sourceRoot":"","sources":["../../src/tools/fax/send-fax.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"send-fax.d.ts","sourceRoot":"","sources":["../../src/tools/fax/send-fax.ts"],"names":[],"mappings":"OAKO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0DlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
package/tools/fax/send-fax.js
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
5
|
+
const filtering_1 = require("@bluehive/sdk-mcp/filtering");
|
5
6
|
const types_1 = require("@bluehive/sdk-mcp/tools/types");
|
6
7
|
exports.metadata = {
|
7
8
|
resource: 'fax',
|
@@ -13,7 +14,7 @@ exports.metadata = {
|
|
13
14
|
};
|
14
15
|
exports.tool = {
|
15
16
|
name: 'send_fax',
|
16
|
-
description: '
|
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\nSend a fax document to a specified number using the configured fax provider.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'Unique fax identifier'\n },\n createdAt: {\n type: 'string',\n description: 'ISO timestamp when fax was created'\n },\n from: {\n type: 'string',\n description: 'Sender fax number'\n },\n provider: {\n type: 'string',\n description: 'Provider used to send the fax'\n },\n status: {\n type: 'string',\n description: 'Current fax status',\n enum: [ 'queued',\n 'dialing',\n 'sending',\n 'delivered',\n 'failed',\n 'cancelled',\n 'retrying'\n ]\n },\n to: {\n type: 'string',\n description: 'Recipient fax number'\n },\n estimatedDelivery: {\n type: 'string',\n description: 'Estimated delivery time (ISO timestamp)'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'from',\n 'provider',\n 'status',\n 'to'\n ]\n}\n```",
|
17
18
|
inputSchema: {
|
18
19
|
type: 'object',
|
19
20
|
properties: {
|
@@ -60,12 +61,17 @@ exports.tool = {
|
|
60
61
|
type: 'string',
|
61
62
|
description: 'Subject line for the fax',
|
62
63
|
},
|
64
|
+
jq_filter: {
|
65
|
+
type: 'string',
|
66
|
+
title: 'jq Filter',
|
67
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
68
|
+
},
|
63
69
|
},
|
64
70
|
},
|
65
71
|
};
|
66
72
|
const handler = async (client, args) => {
|
67
73
|
const body = args;
|
68
|
-
return (0, types_1.asTextContentResult)(await client.fax.send(body));
|
74
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.fax.send(body)));
|
69
75
|
};
|
70
76
|
exports.handler = handler;
|
71
77
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"send-fax.js","sourceRoot":"","sources":["../../src/tools/fax/send-fax.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,
|
1
|
+
{"version":3,"file":"send-fax.js","sourceRoot":"","sources":["../../src/tools/fax/send-fax.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,8uCAA8uC;IAChvC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAA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mjs
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
import { maybeFilter } from '@bluehive/sdk-mcp/filtering';
|
2
3
|
import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
|
3
4
|
export const metadata = {
|
4
5
|
resource: 'fax',
|
@@ -10,7 +11,7 @@ export const metadata = {
|
|
10
11
|
};
|
11
12
|
export const tool = {
|
12
13
|
name: 'send_fax',
|
13
|
-
description: '
|
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\nSend a fax document to a specified number using the configured fax provider.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'Unique fax identifier'\n },\n createdAt: {\n type: 'string',\n description: 'ISO timestamp when fax was created'\n },\n from: {\n type: 'string',\n description: 'Sender fax number'\n },\n provider: {\n type: 'string',\n description: 'Provider used to send the fax'\n },\n status: {\n type: 'string',\n description: 'Current fax status',\n enum: [ 'queued',\n 'dialing',\n 'sending',\n 'delivered',\n 'failed',\n 'cancelled',\n 'retrying'\n ]\n },\n to: {\n type: 'string',\n description: 'Recipient fax number'\n },\n estimatedDelivery: {\n type: 'string',\n description: 'Estimated delivery time (ISO timestamp)'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'from',\n 'provider',\n 'status',\n 'to'\n ]\n}\n```",
|
14
15
|
inputSchema: {
|
15
16
|
type: 'object',
|
16
17
|
properties: {
|
@@ -57,12 +58,17 @@ export const tool = {
|
|
57
58
|
type: 'string',
|
58
59
|
description: 'Subject line for the fax',
|
59
60
|
},
|
61
|
+
jq_filter: {
|
62
|
+
type: 'string',
|
63
|
+
title: 'jq Filter',
|
64
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
65
|
+
},
|
60
66
|
},
|
61
67
|
},
|
62
68
|
};
|
63
69
|
export const handler = async (client, args) => {
|
64
70
|
const body = args;
|
65
|
-
return asTextContentResult(await client.fax.send(body));
|
71
|
+
return asTextContentResult(await maybeFilter(args, await client.fax.send(body)));
|
66
72
|
};
|
67
73
|
export default { metadata, tool, handler };
|
68
74
|
//# sourceMappingURL=send-fax.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"send-fax.mjs","sourceRoot":"","sources":["../../src/tools/fax/send-fax.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,
|
1
|
+
{"version":3,"file":"send-fax.mjs","sourceRoot":"","sources":["../../src/tools/fax/send-fax.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,8uCAA8uC;IAChvC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAA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"file":"check-health.d.mts","sourceRoot":"","sources":["../../src/tools/health/check-health.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"check-health.d.mts","sourceRoot":"","sources":["../../src/tools/health/check-health.ts"],"names":[],"mappings":"OAKO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAExF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAFoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAIzF,wBAA2C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"check-health.d.ts","sourceRoot":"","sources":["../../src/tools/health/check-health.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"check-health.d.ts","sourceRoot":"","sources":["../../src/tools/health/check-health.ts"],"names":[],"mappings":"OAKO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAExF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAFoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAIzF,wBAA2C"}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
5
|
+
const filtering_1 = require("@bluehive/sdk-mcp/filtering");
|
5
6
|
const types_1 = require("@bluehive/sdk-mcp/tools/types");
|
6
7
|
exports.metadata = {
|
7
8
|
resource: 'health',
|
@@ -13,14 +14,20 @@ exports.metadata = {
|
|
13
14
|
};
|
14
15
|
exports.tool = {
|
15
16
|
name: 'check_health',
|
16
|
-
description: '
|
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\nCheck the service health and ensure the API is running properly.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n status: {\n type: 'string',\n enum: [ 'ok'\n ]\n }\n },\n required: [ 'status'\n ]\n}\n```",
|
17
18
|
inputSchema: {
|
18
19
|
type: 'object',
|
19
|
-
properties: {
|
20
|
+
properties: {
|
21
|
+
jq_filter: {
|
22
|
+
type: 'string',
|
23
|
+
title: 'jq Filter',
|
24
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
25
|
+
},
|
26
|
+
},
|
20
27
|
},
|
21
28
|
};
|
22
29
|
const handler = async (client, args) => {
|
23
|
-
return (0, types_1.asTextContentResult)(await client.health.check());
|
30
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.health.check()));
|
24
31
|
};
|
25
32
|
exports.handler = handler;
|
26
33
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"check-health.js","sourceRoot":"","sources":["../../src/tools/health/check-health.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,
|
1
|
+
{"version":3,"file":"check-health.js","sourceRoot":"","sources":["../../src/tools/health/check-health.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,8aAA8a;IAChb,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,IAAI,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AACnF,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
import { maybeFilter } from '@bluehive/sdk-mcp/filtering';
|
2
3
|
import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
|
3
4
|
export const metadata = {
|
4
5
|
resource: 'health',
|
@@ -10,14 +11,20 @@ export const metadata = {
|
|
10
11
|
};
|
11
12
|
export const tool = {
|
12
13
|
name: 'check_health',
|
13
|
-
description: '
|
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\nCheck the service health and ensure the API is running properly.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n status: {\n type: 'string',\n enum: [ 'ok'\n ]\n }\n },\n required: [ 'status'\n ]\n}\n```",
|
14
15
|
inputSchema: {
|
15
16
|
type: 'object',
|
16
|
-
properties: {
|
17
|
+
properties: {
|
18
|
+
jq_filter: {
|
19
|
+
type: 'string',
|
20
|
+
title: 'jq Filter',
|
21
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
22
|
+
},
|
23
|
+
},
|
17
24
|
},
|
18
25
|
};
|
19
26
|
export const handler = async (client, args) => {
|
20
|
-
return asTextContentResult(await client.health.check());
|
27
|
+
return asTextContentResult(await maybeFilter(args, await client.health.check()));
|
21
28
|
};
|
22
29
|
export default { metadata, tool, handler };
|
23
30
|
//# sourceMappingURL=check-health.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"check-health.mjs","sourceRoot":"","sources":["../../src/tools/health/check-health.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,
|
1
|
+
{"version":3,"file":"check-health.mjs","sourceRoot":"","sources":["../../src/tools/health/check-health.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,8aAA8a;IAChb,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AACnF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lookup-providers.d.mts","sourceRoot":"","sources":["../../src/tools/providers/lookup-providers.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"lookup-providers.d.mts","sourceRoot":"","sources":["../../src/tools/providers/lookup-providers.ts"],"names":[],"mappings":"OAKO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA+BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lookup-providers.d.ts","sourceRoot":"","sources":["../../src/tools/providers/lookup-providers.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"lookup-providers.d.ts","sourceRoot":"","sources":["../../src/tools/providers/lookup-providers.ts"],"names":[],"mappings":"OAKO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA+BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
5
|
+
const filtering_1 = require("@bluehive/sdk-mcp/filtering");
|
5
6
|
const types_1 = require("@bluehive/sdk-mcp/tools/types");
|
6
7
|
exports.metadata = {
|
7
8
|
resource: 'providers',
|
@@ -13,7 +14,7 @@ exports.metadata = {
|
|
13
14
|
};
|
14
15
|
exports.tool = {
|
15
16
|
name: 'lookup_providers',
|
16
|
-
description: '
|
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\nSearch for healthcare providers by NPI number, name, or location proximity.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n count: {\n type: 'number',\n description: 'Number of providers found'\n },\n providers: {\n type: 'array',\n description: 'List of matching providers',\n items: {\n type: 'object',\n properties: {\n address_1: {\n type: 'string',\n description: 'Primary address line'\n },\n address_2: {\n type: 'string',\n description: 'Secondary address line (suite, unit, etc.)'\n },\n city: {\n type: 'string',\n description: 'City'\n },\n country: {\n type: 'string',\n description: 'Country code'\n },\n distance: {\n type: 'number',\n description: 'Distance in miles from the provided ZIP code'\n },\n fax_number: {\n type: 'string',\n description: 'Fax number'\n },\n firstname: {\n type: 'string',\n description: 'Provider first name'\n },\n lastname: {\n type: 'string',\n description: 'Provider last name or organization name'\n },\n npi: {\n type: 'string',\n description: 'National Provider Identifier (NPI) number'\n },\n postal_code: {\n type: 'string',\n description: 'Postal/ZIP code'\n },\n state_province: {\n type: 'string',\n description: 'State or province code'\n },\n work_phone: {\n type: 'string',\n description: 'Work phone number'\n }\n },\n required: [ 'address_1',\n 'address_2',\n 'city',\n 'country',\n 'distance',\n 'fax_number',\n 'firstname',\n 'lastname',\n 'npi',\n 'postal_code',\n 'state_province',\n 'work_phone'\n ]\n }\n }\n },\n required: [ 'count',\n 'providers'\n ]\n}\n```",
|
17
18
|
inputSchema: {
|
18
19
|
type: 'object',
|
19
20
|
properties: {
|
@@ -33,12 +34,17 @@ exports.tool = {
|
|
33
34
|
type: 'string',
|
34
35
|
description: 'ZIP code to filter results by proximity',
|
35
36
|
},
|
37
|
+
jq_filter: {
|
38
|
+
type: 'string',
|
39
|
+
title: 'jq Filter',
|
40
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
41
|
+
},
|
36
42
|
},
|
37
43
|
},
|
38
44
|
};
|
39
45
|
const handler = async (client, args) => {
|
40
46
|
const body = args;
|
41
|
-
return (0, types_1.asTextContentResult)(await client.providers.lookup(body));
|
47
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.providers.lookup(body)));
|
42
48
|
};
|
43
49
|
exports.handler = handler;
|
44
50
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lookup-providers.js","sourceRoot":"","sources":["../../src/tools/providers/lookup-providers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,
|
1
|
+
{"version":3,"file":"lookup-providers.js","sourceRoot":"","sources":["../../src/tools/providers/lookup-providers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,y1EAAy1E;IAC31E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qBAAqB;aACnC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oBAAoB;aAClC;YACD,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qBAAqB;aACnC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;aACvD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,IAAI,EAAE,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
import { maybeFilter } from '@bluehive/sdk-mcp/filtering';
|
2
3
|
import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
|
3
4
|
export const metadata = {
|
4
5
|
resource: 'providers',
|
@@ -10,7 +11,7 @@ export const metadata = {
|
|
10
11
|
};
|
11
12
|
export const tool = {
|
12
13
|
name: 'lookup_providers',
|
13
|
-
description: '
|
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\nSearch for healthcare providers by NPI number, name, or location proximity.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n count: {\n type: 'number',\n description: 'Number of providers found'\n },\n providers: {\n type: 'array',\n description: 'List of matching providers',\n items: {\n type: 'object',\n properties: {\n address_1: {\n type: 'string',\n description: 'Primary address line'\n },\n address_2: {\n type: 'string',\n description: 'Secondary address line (suite, unit, etc.)'\n },\n city: {\n type: 'string',\n description: 'City'\n },\n country: {\n type: 'string',\n description: 'Country code'\n },\n distance: {\n type: 'number',\n description: 'Distance in miles from the provided ZIP code'\n },\n fax_number: {\n type: 'string',\n description: 'Fax number'\n },\n firstname: {\n type: 'string',\n description: 'Provider first name'\n },\n lastname: {\n type: 'string',\n description: 'Provider last name or organization name'\n },\n npi: {\n type: 'string',\n description: 'National Provider Identifier (NPI) number'\n },\n postal_code: {\n type: 'string',\n description: 'Postal/ZIP code'\n },\n state_province: {\n type: 'string',\n description: 'State or province code'\n },\n work_phone: {\n type: 'string',\n description: 'Work phone number'\n }\n },\n required: [ 'address_1',\n 'address_2',\n 'city',\n 'country',\n 'distance',\n 'fax_number',\n 'firstname',\n 'lastname',\n 'npi',\n 'postal_code',\n 'state_province',\n 'work_phone'\n ]\n }\n }\n },\n required: [ 'count',\n 'providers'\n ]\n}\n```",
|
14
15
|
inputSchema: {
|
15
16
|
type: 'object',
|
16
17
|
properties: {
|
@@ -30,12 +31,17 @@ export const tool = {
|
|
30
31
|
type: 'string',
|
31
32
|
description: 'ZIP code to filter results by proximity',
|
32
33
|
},
|
34
|
+
jq_filter: {
|
35
|
+
type: 'string',
|
36
|
+
title: 'jq Filter',
|
37
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
38
|
+
},
|
33
39
|
},
|
34
40
|
},
|
35
41
|
};
|
36
42
|
export const handler = async (client, args) => {
|
37
43
|
const body = args;
|
38
|
-
return asTextContentResult(await client.providers.lookup(body));
|
44
|
+
return asTextContentResult(await maybeFilter(args, await client.providers.lookup(body)));
|
39
45
|
};
|
40
46
|
export default { metadata, tool, handler };
|
41
47
|
//# sourceMappingURL=lookup-providers.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lookup-providers.mjs","sourceRoot":"","sources":["../../src/tools/providers/lookup-providers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,
|
1
|
+
{"version":3,"file":"lookup-providers.mjs","sourceRoot":"","sources":["../../src/tools/providers/lookup-providers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,y1EAAy1E;IAC31E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qBAAqB;aACnC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oBAAoB;aAClC;YACD,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qBAAqB;aACnC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;aACvD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
package/tools/types.d.mts
CHANGED
@@ -32,7 +32,7 @@ export type ToolCallResult = {
|
|
32
32
|
isError?: boolean;
|
33
33
|
};
|
34
34
|
export type HandlerFunction = (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
|
35
|
-
export declare function asTextContentResult(result:
|
35
|
+
export declare function asTextContentResult(result: unknown): ToolCallResult;
|
36
36
|
export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
|
37
37
|
export type Metadata = {
|
38
38
|
resource: string;
|
package/tools/types.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"O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AAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
|
package/tools/types.d.ts
CHANGED
@@ -32,7 +32,7 @@ export type ToolCallResult = {
|
|
32
32
|
isError?: boolean;
|
33
33
|
};
|
34
34
|
export type HandlerFunction = (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
|
35
|
-
export declare function asTextContentResult(result:
|
35
|
+
export declare function asTextContentResult(result: unknown): ToolCallResult;
|
36
36
|
export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
|
37
37
|
export type Metadata = {
|
38
38
|
resource: string;
|
package/tools/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,QAAQ,MAAM,eAAe;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IA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AC;IACJ,CAAC;AACH,CAAC"}
|
package/tools/types.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAiDtF,MAAM,UAAU,mBAAmB,CAAC,
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAiDtF,MAAM,UAAU,mBAAmB,CAAC,MAAe;IACjD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;aACtC;SACF;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,QAAkB;IAC5D,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtE,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE;wBACR,uEAAuE;wBACvE,GAAG,EAAE,0BAA0B;wBAC/B,QAAQ;wBACR,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"retrieve-version.d.mts","sourceRoot":"","sources":["../../src/tools/version/retrieve-version.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"retrieve-version.d.mts","sourceRoot":"","sources":["../../src/tools/version/retrieve-version.ts"],"names":[],"mappings":"OAKO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAExF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAFoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAIzF,wBAA2C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"retrieve-version.d.ts","sourceRoot":"","sources":["../../src/tools/version/retrieve-version.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"retrieve-version.d.ts","sourceRoot":"","sources":["../../src/tools/version/retrieve-version.ts"],"names":[],"mappings":"OAKO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAExF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAFoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAIzF,wBAA2C"}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
5
|
+
const filtering_1 = require("@bluehive/sdk-mcp/filtering");
|
5
6
|
const types_1 = require("@bluehive/sdk-mcp/tools/types");
|
6
7
|
exports.metadata = {
|
7
8
|
resource: 'version',
|
@@ -13,14 +14,20 @@ exports.metadata = {
|
|
13
14
|
};
|
14
15
|
exports.tool = {
|
15
16
|
name: 'retrieve_version',
|
16
|
-
description: '
|
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\nRetrieve the current version of the BlueHive API.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n version: {\n type: 'string'\n }\n },\n required: [ 'version'\n ]\n}\n```",
|
17
18
|
inputSchema: {
|
18
19
|
type: 'object',
|
19
|
-
properties: {
|
20
|
+
properties: {
|
21
|
+
jq_filter: {
|
22
|
+
type: 'string',
|
23
|
+
title: 'jq Filter',
|
24
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
25
|
+
},
|
26
|
+
},
|
20
27
|
},
|
21
28
|
};
|
22
29
|
const handler = async (client, args) => {
|
23
|
-
return (0, types_1.asTextContentResult)(await client.version.retrieve());
|
30
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.version.retrieve()));
|
24
31
|
};
|
25
32
|
exports.handler = handler;
|
26
33
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"retrieve-version.js","sourceRoot":"","sources":["../../src/tools/version/retrieve-version.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,
|
1
|
+
{"version":3,"file":"retrieve-version.js","sourceRoot":"","sources":["../../src/tools/version/retrieve-version.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,4XAA4X;IAC9X,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,IAAI,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AACvF,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
import { maybeFilter } from '@bluehive/sdk-mcp/filtering';
|
2
3
|
import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
|
3
4
|
export const metadata = {
|
4
5
|
resource: 'version',
|
@@ -10,14 +11,20 @@ export const metadata = {
|
|
10
11
|
};
|
11
12
|
export const tool = {
|
12
13
|
name: 'retrieve_version',
|
13
|
-
description: '
|
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\nRetrieve the current version of the BlueHive API.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n version: {\n type: 'string'\n }\n },\n required: [ 'version'\n ]\n}\n```",
|
14
15
|
inputSchema: {
|
15
16
|
type: 'object',
|
16
|
-
properties: {
|
17
|
+
properties: {
|
18
|
+
jq_filter: {
|
19
|
+
type: 'string',
|
20
|
+
title: 'jq Filter',
|
21
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
22
|
+
},
|
23
|
+
},
|
17
24
|
},
|
18
25
|
};
|
19
26
|
export const handler = async (client, args) => {
|
20
|
-
return asTextContentResult(await client.version.retrieve());
|
27
|
+
return asTextContentResult(await maybeFilter(args, await client.version.retrieve()));
|
21
28
|
};
|
22
29
|
export default { metadata, tool, handler };
|
23
30
|
//# sourceMappingURL=retrieve-version.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"retrieve-version.mjs","sourceRoot":"","sources":["../../src/tools/version/retrieve-version.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,
|
1
|
+
{"version":3,"file":"retrieve-version.mjs","sourceRoot":"","sources":["../../src/tools/version/retrieve-version.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,4XAA4X;IAC9X,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AACvF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ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