@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
26 lines (25 loc) • 965 B
JavaScript
;
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.tool$livenessLiveness = void 0;
const livenessLiveness_js_1 = require("../../funcs/livenessLiveness.js");
const tools_js_1 = require("../tools.js");
exports.tool$livenessLiveness = {
name: "liveness-liveness",
description: `Liveness check
This endpoint checks if the service is alive.`,
tool: async (client, ctx) => {
const [result, apiCall] = await (0, livenessLiveness_js_1.livenessLiveness)(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=livenessLiveness.js.map