/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { transfersList } from "../../funcs/transfersList.js"; import * as operations from "../../models/operations/index.js"; import { formatResult, ToolDefinition } from "../tools.js"; const args = { request: operations.ListTransfersRequest$inboundSchema, }; export const tool$transfersList: ToolDefinition = { name: "transfers-list", description: `List all the transfers associated with a particular Moov account. Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more. When you run this request, you retrieve 200 transfers at a time. You can advance past a results set of 200 transfers by using the \`skip\` parameter (for example, if you set \`skip\`= 10, you will see a results set of 200 transfers after the first 10). If you are searching a high volume of transfers, the request will likely process very slowly. To achieve faster performance, restrict the data as much as you can by using the \`StartDateTime\` and \`EndDateTime\` parameters for a limited period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need. To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`, args, tool: async (client, args, ctx) => { const [result, apiCall] = await transfersList( 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); }, };