UNPKG

buena-typescript-sdk

Version:

Official TypeScript SDK for Buena.ai API - LinkedIn automation and lead management

26 lines (25 loc) 909 B
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.tool$healthCheck = void 0; const healthCheck_js_1 = require("../../funcs/healthCheck.js"); const tools_js_1 = require("../tools.js"); exports.tool$healthCheck = { name: "health-check", description: `Health Check Check the API status and health`, tool: async (client, ctx) => { const [result, apiCall] = await (0, healthCheck_js_1.healthCheck)(client, { fetchOptions: { signal: ctx.signal } }).$inspect(); if (!result.ok) { return { content: [{ type: "text", text: result.error.message }], isError: true, }; } const value = result.value; return (0, tools_js_1.formatResult)(value, apiCall); }, }; //# sourceMappingURL=healthCheck.js.map