/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { authenticatorsList } from "../../funcs/authenticatorsList.js"; import * as operations from "../../models/operations/index.js"; import { formatResult, ToolDefinition } from "../tools.js"; const args = { request: operations.ListAuthenticatorsRequest$inboundSchema.optional(), }; export const tool$authenticatorsList: ToolDefinition = { name: "authenticators-list", description: `List Authenticators List all authenticators sorted by created_at in descending order. Results are paginated with a max limit of 100. When more authenticators are available, a \`cursor\` will be provided. Use the \`cursor\` parameter to retrieve the subsequent page.`, args, tool: async (client, args, ctx) => { const [result, apiCall] = await authenticatorsList( client, args.request, { fetchOptions: { signal: ctx.signal } }, ).$inspect(); if (!result.ok) { return { content: [{ type: "text", text: result.error.message }], isError: true, }; } const value = result.value.result; return formatResult(value, apiCall); }, };