/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { terminalApplicationsCreateVersion } from "../../funcs/terminalApplicationsCreateVersion.js"; import * as operations from "../../models/operations/index.js"; import { formatResult, ToolDefinition } from "../tools.js"; const args = { request: operations.CreateTerminalApplicationVersionRequest$inboundSchema, }; export const tool$terminalApplicationsCreateVersion: ToolDefinition< typeof args > = { name: "terminal-applications-create-version", description: `Register a new version of a terminal application. For Android applications, this is used to register a new version code of the application. To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the \`/terminal-applications.write\` scope.`, args, tool: async (client, args, ctx) => { const [result, apiCall] = await terminalApplicationsCreateVersion( 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); }, };