@moovio/sdk 0.14.3 → 0.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +48 -62
  2. package/bin/mcp-server.js +148 -314
  3. package/bin/mcp-server.js.map +23 -26
  4. package/docs/sdks/support/README.md +10 -16
  5. package/docs/sdks/transfers/README.md +11 -116
  6. package/examples/package-lock.json +2 -2
  7. package/funcs/supportCreateTicket.d.ts +1 -1
  8. package/funcs/supportCreateTicket.js +1 -1
  9. package/funcs/supportGetTicket.d.ts +1 -1
  10. package/funcs/supportGetTicket.js +1 -1
  11. package/funcs/supportListTicketMessages.d.ts +1 -1
  12. package/funcs/supportListTicketMessages.js +1 -6
  13. package/funcs/supportListTicketMessages.js.map +1 -1
  14. package/funcs/supportListTickets.d.ts +1 -1
  15. package/funcs/supportListTickets.js +2 -2
  16. package/funcs/supportListTickets.js.map +1 -1
  17. package/funcs/supportUpdateTicket.d.ts +1 -1
  18. package/funcs/supportUpdateTicket.js +1 -1
  19. package/funcs/transfersGenerateOptions.d.ts +4 -3
  20. package/funcs/transfersGenerateOptions.d.ts.map +1 -1
  21. package/funcs/transfersGenerateOptions.js +14 -5
  22. package/funcs/transfersGenerateOptions.js.map +1 -1
  23. package/jsr.json +1 -1
  24. package/lib/config.d.ts +3 -3
  25. package/lib/config.js +3 -3
  26. package/mcp-server/mcp-server.js +1 -1
  27. package/mcp-server/server.d.ts.map +1 -1
  28. package/mcp-server/server.js +2 -4
  29. package/mcp-server/server.js.map +1 -1
  30. package/mcp-server/tools/supportCreateTicket.js +1 -1
  31. package/mcp-server/tools/supportGetTicket.js +1 -1
  32. package/mcp-server/tools/supportListTicketMessages.js +1 -1
  33. package/mcp-server/tools/supportListTickets.js +1 -1
  34. package/mcp-server/tools/supportUpdateTicket.js +1 -1
  35. package/mcp-server/tools/transfersGenerateOptions.d.ts +2 -2
  36. package/mcp-server/tools/transfersGenerateOptions.d.ts.map +1 -1
  37. package/mcp-server/tools/transfersGenerateOptions.js +5 -3
  38. package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
  39. package/models/components/terminalcard.d.ts +10 -0
  40. package/models/components/terminalcard.d.ts.map +1 -1
  41. package/models/components/terminalcard.js +4 -0
  42. package/models/components/terminalcard.js.map +1 -1
  43. package/models/operations/createtransferoptions.d.ts +30 -0
  44. package/models/operations/createtransferoptions.d.ts.map +1 -1
  45. package/models/operations/createtransferoptions.js +38 -1
  46. package/models/operations/createtransferoptions.js.map +1 -1
  47. package/models/operations/index.d.ts +0 -1
  48. package/models/operations/index.d.ts.map +1 -1
  49. package/models/operations/index.js +0 -1
  50. package/models/operations/index.js.map +1 -1
  51. package/models/operations/listticketmessages.d.ts +0 -4
  52. package/models/operations/listticketmessages.d.ts.map +1 -1
  53. package/models/operations/listticketmessages.js +0 -4
  54. package/models/operations/listticketmessages.js.map +1 -1
  55. package/models/operations/listtickets.d.ts +2 -2
  56. package/models/operations/listtickets.d.ts.map +1 -1
  57. package/models/operations/listtickets.js +2 -2
  58. package/models/operations/listtickets.js.map +1 -1
  59. package/package.json +2 -2
  60. package/sdk/support.d.ts +5 -5
  61. package/sdk/support.js +5 -5
  62. package/sdk/transfers.d.ts +1 -12
  63. package/sdk/transfers.d.ts.map +1 -1
  64. package/sdk/transfers.js +2 -15
  65. package/sdk/transfers.js.map +1 -1
  66. package/src/funcs/supportCreateTicket.ts +1 -1
  67. package/src/funcs/supportGetTicket.ts +1 -1
  68. package/src/funcs/supportListTicketMessages.ts +2 -8
  69. package/src/funcs/supportListTickets.ts +2 -2
  70. package/src/funcs/supportUpdateTicket.ts +1 -1
  71. package/src/funcs/transfersGenerateOptions.ts +18 -7
  72. package/src/lib/config.ts +3 -3
  73. package/src/mcp-server/mcp-server.ts +1 -1
  74. package/src/mcp-server/server.ts +2 -4
  75. package/src/mcp-server/tools/supportCreateTicket.ts +1 -1
  76. package/src/mcp-server/tools/supportGetTicket.ts +1 -1
  77. package/src/mcp-server/tools/supportListTicketMessages.ts +1 -1
  78. package/src/mcp-server/tools/supportListTickets.ts +1 -1
  79. package/src/mcp-server/tools/supportUpdateTicket.ts +1 -1
  80. package/src/mcp-server/tools/transfersGenerateOptions.ts +5 -3
  81. package/src/models/components/terminalcard.ts +14 -0
  82. package/src/models/operations/createtransferoptions.ts +75 -0
  83. package/src/models/operations/index.ts +0 -1
  84. package/src/models/operations/listticketmessages.ts +0 -8
  85. package/src/models/operations/listtickets.ts +4 -4
  86. package/src/sdk/support.ts +5 -5
  87. package/src/sdk/transfers.ts +4 -26
  88. package/funcs/transfersGenerateOptionsForAccount.d.ts +0 -23
  89. package/funcs/transfersGenerateOptionsForAccount.d.ts.map +0 -1
  90. package/funcs/transfersGenerateOptionsForAccount.js +0 -133
  91. package/funcs/transfersGenerateOptionsForAccount.js.map +0 -1
  92. package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +0 -8
  93. package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +0 -1
  94. package/mcp-server/tools/transfersGenerateOptionsForAccount.js +0 -70
  95. package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +0 -1
  96. package/models/operations/createtransferoptionsforaccount.d.ts +0 -104
  97. package/models/operations/createtransferoptionsforaccount.d.ts.map +0 -1
  98. package/models/operations/createtransferoptionsforaccount.js +0 -155
  99. package/models/operations/createtransferoptionsforaccount.js.map +0 -1
  100. package/src/funcs/transfersGenerateOptionsForAccount.ts +0 -202
  101. package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +0 -46
  102. package/src/models/operations/createtransferoptionsforaccount.ts +0 -257
package/bin/mcp-server.js CHANGED
@@ -34175,9 +34175,9 @@ var init_config = __esm(() => {
34175
34175
  SDK_METADATA = {
34176
34176
  language: "typescript",
34177
34177
  openapiDocVersion: "latest",
34178
- sdkVersion: "0.14.3",
34179
- genVersion: "2.654.2",
34180
- userAgent: "speakeasy-sdk/typescript 0.14.3 2.654.2 latest @moovio/sdk"
34178
+ sdkVersion: "0.14.5",
34179
+ genVersion: "2.656.5",
34180
+ userAgent: "speakeasy-sdk/typescript 0.14.5 2.656.5 latest @moovio/sdk"
34181
34181
  };
34182
34182
  });
34183
34183
 
@@ -38888,7 +38888,9 @@ var init_terminalcard = __esm(() => {
38888
38888
  holderName: stringType().optional(),
38889
38889
  issuer: stringType().optional(),
38890
38890
  issuerCountry: stringType().optional(),
38891
- lastFourCardNumber: stringType().optional()
38891
+ lastFourCardNumber: stringType().optional(),
38892
+ applicationID: stringType().optional(),
38893
+ applicationName: stringType().optional()
38892
38894
  });
38893
38895
  TerminalCard$outboundSchema = objectType({
38894
38896
  entryMode: EntryMode$outboundSchema.optional(),
@@ -38900,7 +38902,9 @@ var init_terminalcard = __esm(() => {
38900
38902
  holderName: stringType().optional(),
38901
38903
  issuer: stringType().optional(),
38902
38904
  issuerCountry: stringType().optional(),
38903
- lastFourCardNumber: stringType().optional()
38905
+ lastFourCardNumber: stringType().optional(),
38906
+ applicationID: stringType().optional(),
38907
+ applicationName: stringType().optional()
38904
38908
  });
38905
38909
  ((TerminalCard$) => {
38906
38910
  TerminalCard$.inboundSchema = TerminalCard$inboundSchema;
@@ -50799,7 +50803,7 @@ var init_createtransfer2 = __esm(() => {
50799
50803
  });
50800
50804
 
50801
50805
  // src/models/operations/createtransferoptions.ts
50802
- var CreateTransferOptionsGlobals$inboundSchema, CreateTransferOptionsGlobals$outboundSchema, CreateTransferOptionsGlobals$, CreateTransferOptionsResponse$inboundSchema, CreateTransferOptionsResponse$outboundSchema, CreateTransferOptionsResponse$;
50806
+ var CreateTransferOptionsGlobals$inboundSchema, CreateTransferOptionsGlobals$outboundSchema, CreateTransferOptionsGlobals$, CreateTransferOptionsRequest$inboundSchema, CreateTransferOptionsRequest$outboundSchema, CreateTransferOptionsRequest$, CreateTransferOptionsResponse$inboundSchema, CreateTransferOptionsResponse$outboundSchema, CreateTransferOptionsResponse$;
50803
50807
  var init_createtransferoptions2 = __esm(() => {
50804
50808
  init_esm();
50805
50809
  init_primitives();
@@ -50822,55 +50826,7 @@ var init_createtransferoptions2 = __esm(() => {
50822
50826
  CreateTransferOptionsGlobals$.inboundSchema = CreateTransferOptionsGlobals$inboundSchema;
50823
50827
  CreateTransferOptionsGlobals$.outboundSchema = CreateTransferOptionsGlobals$outboundSchema;
50824
50828
  })(CreateTransferOptionsGlobals$ ||= {});
50825
- CreateTransferOptionsResponse$inboundSchema = objectType({
50826
- Headers: recordType(arrayType(stringType())),
50827
- Result: TransferOptions$inboundSchema
50828
- }).transform((v2) => {
50829
- return remap(v2, {
50830
- Headers: "headers",
50831
- Result: "result"
50832
- });
50833
- });
50834
- CreateTransferOptionsResponse$outboundSchema = objectType({
50835
- headers: recordType(arrayType(stringType())),
50836
- result: TransferOptions$outboundSchema
50837
- }).transform((v2) => {
50838
- return remap(v2, {
50839
- headers: "Headers",
50840
- result: "Result"
50841
- });
50842
- });
50843
- ((CreateTransferOptionsResponse$) => {
50844
- CreateTransferOptionsResponse$.inboundSchema = CreateTransferOptionsResponse$inboundSchema;
50845
- CreateTransferOptionsResponse$.outboundSchema = CreateTransferOptionsResponse$outboundSchema;
50846
- })(CreateTransferOptionsResponse$ ||= {});
50847
- });
50848
-
50849
- // src/models/operations/createtransferoptionsforaccount.ts
50850
- var CreateTransferOptionsForAccountGlobals$inboundSchema, CreateTransferOptionsForAccountGlobals$outboundSchema, CreateTransferOptionsForAccountGlobals$, CreateTransferOptionsForAccountRequest$inboundSchema, CreateTransferOptionsForAccountRequest$outboundSchema, CreateTransferOptionsForAccountRequest$, CreateTransferOptionsForAccountResponse$inboundSchema, CreateTransferOptionsForAccountResponse$outboundSchema, CreateTransferOptionsForAccountResponse$;
50851
- var init_createtransferoptionsforaccount = __esm(() => {
50852
- init_esm();
50853
- init_primitives();
50854
- init_components();
50855
- CreateTransferOptionsForAccountGlobals$inboundSchema = objectType({
50856
- "x-moov-version": stringType().default("v2024.01.00")
50857
- }).transform((v2) => {
50858
- return remap(v2, {
50859
- "x-moov-version": "xMoovVersion"
50860
- });
50861
- });
50862
- CreateTransferOptionsForAccountGlobals$outboundSchema = objectType({
50863
- xMoovVersion: stringType().default("v2024.01.00")
50864
- }).transform((v2) => {
50865
- return remap(v2, {
50866
- xMoovVersion: "x-moov-version"
50867
- });
50868
- });
50869
- ((CreateTransferOptionsForAccountGlobals$) => {
50870
- CreateTransferOptionsForAccountGlobals$.inboundSchema = CreateTransferOptionsForAccountGlobals$inboundSchema;
50871
- CreateTransferOptionsForAccountGlobals$.outboundSchema = CreateTransferOptionsForAccountGlobals$outboundSchema;
50872
- })(CreateTransferOptionsForAccountGlobals$ ||= {});
50873
- CreateTransferOptionsForAccountRequest$inboundSchema = objectType({
50829
+ CreateTransferOptionsRequest$inboundSchema = objectType({
50874
50830
  accountID: stringType(),
50875
50831
  CreateTransferOptions: CreateTransferOptions$inboundSchema
50876
50832
  }).transform((v2) => {
@@ -50878,7 +50834,7 @@ var init_createtransferoptionsforaccount = __esm(() => {
50878
50834
  CreateTransferOptions: "createTransferOptions"
50879
50835
  });
50880
50836
  });
50881
- CreateTransferOptionsForAccountRequest$outboundSchema = objectType({
50837
+ CreateTransferOptionsRequest$outboundSchema = objectType({
50882
50838
  accountID: stringType(),
50883
50839
  createTransferOptions: CreateTransferOptions$outboundSchema
50884
50840
  }).transform((v2) => {
@@ -50886,11 +50842,11 @@ var init_createtransferoptionsforaccount = __esm(() => {
50886
50842
  createTransferOptions: "CreateTransferOptions"
50887
50843
  });
50888
50844
  });
50889
- ((CreateTransferOptionsForAccountRequest$) => {
50890
- CreateTransferOptionsForAccountRequest$.inboundSchema = CreateTransferOptionsForAccountRequest$inboundSchema;
50891
- CreateTransferOptionsForAccountRequest$.outboundSchema = CreateTransferOptionsForAccountRequest$outboundSchema;
50892
- })(CreateTransferOptionsForAccountRequest$ ||= {});
50893
- CreateTransferOptionsForAccountResponse$inboundSchema = objectType({
50845
+ ((CreateTransferOptionsRequest$) => {
50846
+ CreateTransferOptionsRequest$.inboundSchema = CreateTransferOptionsRequest$inboundSchema;
50847
+ CreateTransferOptionsRequest$.outboundSchema = CreateTransferOptionsRequest$outboundSchema;
50848
+ })(CreateTransferOptionsRequest$ ||= {});
50849
+ CreateTransferOptionsResponse$inboundSchema = objectType({
50894
50850
  Headers: recordType(arrayType(stringType())),
50895
50851
  Result: TransferOptions$inboundSchema
50896
50852
  }).transform((v2) => {
@@ -50899,7 +50855,7 @@ var init_createtransferoptionsforaccount = __esm(() => {
50899
50855
  Result: "result"
50900
50856
  });
50901
50857
  });
50902
- CreateTransferOptionsForAccountResponse$outboundSchema = objectType({
50858
+ CreateTransferOptionsResponse$outboundSchema = objectType({
50903
50859
  headers: recordType(arrayType(stringType())),
50904
50860
  result: TransferOptions$outboundSchema
50905
50861
  }).transform((v2) => {
@@ -50908,10 +50864,10 @@ var init_createtransferoptionsforaccount = __esm(() => {
50908
50864
  result: "Result"
50909
50865
  });
50910
50866
  });
50911
- ((CreateTransferOptionsForAccountResponse$) => {
50912
- CreateTransferOptionsForAccountResponse$.inboundSchema = CreateTransferOptionsForAccountResponse$inboundSchema;
50913
- CreateTransferOptionsForAccountResponse$.outboundSchema = CreateTransferOptionsForAccountResponse$outboundSchema;
50914
- })(CreateTransferOptionsForAccountResponse$ ||= {});
50867
+ ((CreateTransferOptionsResponse$) => {
50868
+ CreateTransferOptionsResponse$.inboundSchema = CreateTransferOptionsResponse$inboundSchema;
50869
+ CreateTransferOptionsResponse$.outboundSchema = CreateTransferOptionsResponse$outboundSchema;
50870
+ })(CreateTransferOptionsResponse$ ||= {});
50915
50871
  });
50916
50872
 
50917
50873
  // src/models/operations/deletedisputeevidencefile.ts
@@ -56321,14 +56277,10 @@ var init_listticketmessages = __esm(() => {
56321
56277
  ListTicketMessagesGlobals$.outboundSchema = ListTicketMessagesGlobals$outboundSchema;
56322
56278
  })(ListTicketMessagesGlobals$ ||= {});
56323
56279
  ListTicketMessagesRequest$inboundSchema = objectType({
56324
- skip: numberType().int().optional(),
56325
- count: numberType().int().optional(),
56326
56280
  accountID: stringType(),
56327
56281
  ticketID: stringType()
56328
56282
  });
56329
56283
  ListTicketMessagesRequest$outboundSchema = objectType({
56330
- skip: numberType().int().optional(),
56331
- count: numberType().int().optional(),
56332
56284
  accountID: stringType(),
56333
56285
  ticketID: stringType()
56334
56286
  });
@@ -56385,12 +56337,12 @@ var init_listtickets = __esm(() => {
56385
56337
  ListTicketsGlobals$.outboundSchema = ListTicketsGlobals$outboundSchema;
56386
56338
  })(ListTicketsGlobals$ ||= {});
56387
56339
  ListTicketsRequest$inboundSchema = objectType({
56388
- skip: numberType().int().optional(),
56340
+ cursor: stringType().optional(),
56389
56341
  count: numberType().int().optional(),
56390
56342
  accountID: stringType()
56391
56343
  });
56392
56344
  ListTicketsRequest$outboundSchema = objectType({
56393
- skip: numberType().int().optional(),
56345
+ cursor: stringType().optional(),
56394
56346
  count: numberType().int().optional(),
56395
56347
  accountID: stringType()
56396
56348
  });
@@ -58494,7 +58446,6 @@ var init_operations = __esm(() => {
58494
58446
  init_createticket2();
58495
58447
  init_createtransfer2();
58496
58448
  init_createtransferoptions2();
58497
- init_createtransferoptionsforaccount();
58498
58449
  init_deletedisputeevidencefile();
58499
58450
  init_deleterepresentative();
58500
58451
  init_deleteterminalapplication();
@@ -71888,7 +71839,7 @@ var init_supportCreateTicket2 = __esm(() => {
71888
71839
  description: `Create a support ticket for a Moov account.
71889
71840
 
71890
71841
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
71891
- you'll need to specify the \`/accounts/{accountID}/support.write\` scope.`,
71842
+ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.`,
71892
71843
  args: args110,
71893
71844
  tool: async (client, args111, ctx) => {
71894
71845
  const [result, apiCall] = await supportCreateTicket(client, args111.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -72003,7 +71954,7 @@ var init_supportGetTicket2 = __esm(() => {
72003
71954
  description: `Retrieve a support ticket by ID.
72004
71955
 
72005
71956
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72006
- you'll need to specify the \`/accounts/{accountID}/support.read\` scope.`,
71957
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
72007
71958
  args: args111,
72008
71959
  tool: async (client, args112, ctx) => {
72009
71960
  const [result, apiCall] = await supportGetTicket(client, args112.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -72041,10 +71992,6 @@ async function $do112(client, request, options) {
72041
71992
  })
72042
71993
  };
72043
71994
  const path = pathToFunc("/accounts/{accountID}/tickets/{ticketID}/messages")(pathParams);
72044
- const query = encodeFormQuery({
72045
- count: payload.count,
72046
- skip: payload.skip
72047
- }, { explode: false });
72048
71995
  const headers = new Headers(compactMap({
72049
71996
  Accept: "application/json",
72050
71997
  "x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
@@ -72067,7 +72014,6 @@ async function $do112(client, request, options) {
72067
72014
  baseURL: options?.serverURL,
72068
72015
  path,
72069
72016
  headers,
72070
- query,
72071
72017
  body,
72072
72018
  userAgent: client._options.userAgent,
72073
72019
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -72123,7 +72069,7 @@ var init_supportListTicketMessages2 = __esm(() => {
72123
72069
  description: `List all the messages for a support ticket.
72124
72070
 
72125
72071
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72126
- you'll need to specify the \`/accounts/{accountID}/support.read\` scope.`,
72072
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
72127
72073
  args: args112,
72128
72074
  tool: async (client, args113, ctx) => {
72129
72075
  const [result, apiCall] = await supportListTicketMessages(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -72159,7 +72105,7 @@ async function $do113(client, request, options) {
72159
72105
  const path = pathToFunc("/accounts/{accountID}/tickets")(pathParams);
72160
72106
  const query = encodeFormQuery({
72161
72107
  count: payload.count,
72162
- skip: payload.skip
72108
+ cursor: payload.cursor
72163
72109
  }, { explode: false });
72164
72110
  const headers = new Headers(compactMap({
72165
72111
  Accept: "application/json",
@@ -72239,7 +72185,7 @@ var init_supportListTickets2 = __esm(() => {
72239
72185
  description: `List all the support tickets created under a Moov account.
72240
72186
 
72241
72187
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72242
- you'll need to specify the \`/accounts/{accountID}/support.read\` scope.`,
72188
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
72243
72189
  args: args113,
72244
72190
  tool: async (client, args114, ctx) => {
72245
72191
  const [result, apiCall] = await supportListTickets(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -72368,7 +72314,7 @@ var init_supportUpdateTicket2 = __esm(() => {
72368
72314
  description: `Updates a support ticket.
72369
72315
 
72370
72316
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72371
- you'll need to specify the \`/accounts/{accountID}/support.write\` scope.`,
72317
+ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.`,
72372
72318
  args: args114,
72373
72319
  tool: async (client, args115, ctx) => {
72374
72320
  const [result, apiCall] = await supportUpdateTicket(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -73931,13 +73877,21 @@ function transfersGenerateOptions(client, request, options) {
73931
73877
  return new APIPromise($do128(client, request, options));
73932
73878
  }
73933
73879
  async function $do128(client, request, options) {
73934
- const parsed = safeParse(request, (value) => CreateTransferOptions$outboundSchema.parse(value), "Input validation failed");
73880
+ const parsed = safeParse(request, (value) => CreateTransferOptionsRequest$outboundSchema.parse(value), "Input validation failed");
73935
73881
  if (!parsed.ok) {
73936
73882
  return [parsed, { status: "invalid" }];
73937
73883
  }
73938
73884
  const payload = parsed.value;
73939
- const body = encodeJSON("body", payload, { explode: true });
73940
- const path = pathToFunc("/transfer-options")();
73885
+ const body = encodeJSON("body", payload.CreateTransferOptions, {
73886
+ explode: true
73887
+ });
73888
+ const pathParams = {
73889
+ accountID: encodeSimple("accountID", payload.accountID, {
73890
+ explode: false,
73891
+ charEncoding: "percent"
73892
+ })
73893
+ };
73894
+ const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
73941
73895
  const headers = new Headers(compactMap({
73942
73896
  "Content-Type": "application/json",
73943
73897
  Accept: "application/json",
@@ -74000,7 +73954,6 @@ var init_transfersGenerateOptions = __esm(() => {
74000
73954
  init_schemas();
74001
73955
  init_security();
74002
73956
  init_url();
74003
- init_components();
74004
73957
  init_errors2();
74005
73958
  init_operations();
74006
73959
  init_async();
@@ -74010,131 +73963,14 @@ var init_transfersGenerateOptions = __esm(() => {
74010
73963
  var args128, tool$transfersGenerateOptions;
74011
73964
  var init_transfersGenerateOptions2 = __esm(() => {
74012
73965
  init_transfersGenerateOptions();
74013
- init_components();
73966
+ init_operations();
74014
73967
  init_tools();
74015
73968
  args128 = {
74016
- request: CreateTransferOptions$inboundSchema
73969
+ request: CreateTransferOptionsRequest$inboundSchema
74017
73970
  };
74018
73971
  tool$transfersGenerateOptions = {
74019
73972
  name: "transfers-generate-options",
74020
73973
  description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
74021
- supply in the request.
74022
-
74023
- Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
74024
-
74025
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
74026
- you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
74027
- args: args128,
74028
- tool: async (client, args129, ctx) => {
74029
- const [result, apiCall] = await transfersGenerateOptions(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74030
- if (!result.ok) {
74031
- return {
74032
- content: [{ type: "text", text: result.error.message }],
74033
- isError: true
74034
- };
74035
- }
74036
- const value = result.value.result;
74037
- return formatResult(value, apiCall);
74038
- }
74039
- };
74040
- });
74041
-
74042
- // src/funcs/transfersGenerateOptionsForAccount.ts
74043
- function transfersGenerateOptionsForAccount(client, request, options) {
74044
- return new APIPromise($do129(client, request, options));
74045
- }
74046
- async function $do129(client, request, options) {
74047
- const parsed = safeParse(request, (value) => CreateTransferOptionsForAccountRequest$outboundSchema.parse(value), "Input validation failed");
74048
- if (!parsed.ok) {
74049
- return [parsed, { status: "invalid" }];
74050
- }
74051
- const payload = parsed.value;
74052
- const body = encodeJSON("body", payload.CreateTransferOptions, {
74053
- explode: true
74054
- });
74055
- const pathParams = {
74056
- accountID: encodeSimple("accountID", payload.accountID, {
74057
- explode: false,
74058
- charEncoding: "percent"
74059
- })
74060
- };
74061
- const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
74062
- const headers = new Headers(compactMap({
74063
- "Content-Type": "application/json",
74064
- Accept: "application/json",
74065
- "x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
74066
- }));
74067
- const securityInput = await extractSecurity(client._options.security);
74068
- const requestSecurity = resolveGlobalSecurity(securityInput);
74069
- const context = {
74070
- options: client._options,
74071
- baseURL: options?.serverURL ?? client._baseURL ?? "",
74072
- operationID: "createTransferOptionsForAccount",
74073
- oAuth2Scopes: [],
74074
- resolvedSecurity: requestSecurity,
74075
- securitySource: client._options.security,
74076
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
74077
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
74078
- };
74079
- const requestRes = client._createRequest(context, {
74080
- security: requestSecurity,
74081
- method: "POST",
74082
- baseURL: options?.serverURL,
74083
- path,
74084
- headers,
74085
- body,
74086
- userAgent: client._options.userAgent,
74087
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
74088
- }, options);
74089
- if (!requestRes.ok) {
74090
- return [requestRes, { status: "invalid" }];
74091
- }
74092
- const req = requestRes.value;
74093
- const doResult = await client._do(req, {
74094
- context,
74095
- errorCodes: ["400", "401", "403", "422", "429", "4XX", "500", "504", "5XX"],
74096
- retryConfig: context.retryConfig,
74097
- retryCodes: context.retryCodes
74098
- });
74099
- if (!doResult.ok) {
74100
- return [doResult, { status: "request-error", request: req }];
74101
- }
74102
- const response = doResult.value;
74103
- const responseFields = {
74104
- HttpMeta: { Response: response, Request: req }
74105
- };
74106
- const [result] = await match(json(200, CreateTransferOptionsForAccountResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(422, TransferOptionsValidationError$inboundSchema, {
74107
- hdrs: true
74108
- }), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
74109
- if (!result.ok) {
74110
- return [result, { status: "complete", request: req, response }];
74111
- }
74112
- return [result, { status: "complete", request: req, response }];
74113
- }
74114
- var init_transfersGenerateOptionsForAccount = __esm(() => {
74115
- init_encodings();
74116
- init_matchers();
74117
- init_primitives();
74118
- init_schemas();
74119
- init_security();
74120
- init_url();
74121
- init_errors2();
74122
- init_operations();
74123
- init_async();
74124
- });
74125
-
74126
- // src/mcp-server/tools/transfersGenerateOptionsForAccount.ts
74127
- var args129, tool$transfersGenerateOptionsForAccount;
74128
- var init_transfersGenerateOptionsForAccount2 = __esm(() => {
74129
- init_transfersGenerateOptionsForAccount();
74130
- init_operations();
74131
- init_tools();
74132
- args129 = {
74133
- request: CreateTransferOptionsForAccountRequest$inboundSchema
74134
- };
74135
- tool$transfersGenerateOptionsForAccount = {
74136
- name: "transfers-generate-options-for-account",
74137
- description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
74138
73974
  supply in the request body.
74139
73975
 
74140
73976
  The accountID in the route should the partner's accountID.
@@ -74143,9 +73979,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
74143
73979
 
74144
73980
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
74145
73981
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
74146
- args: args129,
74147
- tool: async (client, args130, ctx) => {
74148
- const [result, apiCall] = await transfersGenerateOptionsForAccount(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73982
+ args: args128,
73983
+ tool: async (client, args129, ctx) => {
73984
+ const [result, apiCall] = await transfersGenerateOptions(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74149
73985
  if (!result.ok) {
74150
73986
  return {
74151
73987
  content: [{ type: "text", text: result.error.message }],
@@ -74160,9 +73996,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
74160
73996
 
74161
73997
  // src/funcs/transfersGet.ts
74162
73998
  function transfersGet(client, request, options) {
74163
- return new APIPromise($do130(client, request, options));
73999
+ return new APIPromise($do129(client, request, options));
74164
74000
  }
74165
- async function $do130(client, request, options) {
74001
+ async function $do129(client, request, options) {
74166
74002
  const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
74167
74003
  if (!parsed.ok) {
74168
74004
  return [parsed, { status: "invalid" }];
@@ -74244,12 +74080,12 @@ var init_transfersGet = __esm(() => {
74244
74080
  });
74245
74081
 
74246
74082
  // src/mcp-server/tools/transfersGet.ts
74247
- var args130, tool$transfersGet;
74083
+ var args129, tool$transfersGet;
74248
74084
  var init_transfersGet2 = __esm(() => {
74249
74085
  init_transfersGet();
74250
74086
  init_operations();
74251
74087
  init_tools();
74252
- args130 = {
74088
+ args129 = {
74253
74089
  request: GetTransferRequest$inboundSchema
74254
74090
  };
74255
74091
  tool$transfersGet = {
@@ -74261,9 +74097,9 @@ to learn more.
74261
74097
 
74262
74098
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
74263
74099
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74264
- args: args130,
74265
- tool: async (client, args131, ctx) => {
74266
- const [result, apiCall] = await transfersGet(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74100
+ args: args129,
74101
+ tool: async (client, args130, ctx) => {
74102
+ const [result, apiCall] = await transfersGet(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74267
74103
  if (!result.ok) {
74268
74104
  return {
74269
74105
  content: [{ type: "text", text: result.error.message }],
@@ -74278,9 +74114,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74278
74114
 
74279
74115
  // src/funcs/transfersGetCancellation.ts
74280
74116
  function transfersGetCancellation(client, request, options) {
74281
- return new APIPromise($do131(client, request, options));
74117
+ return new APIPromise($do130(client, request, options));
74282
74118
  }
74283
- async function $do131(client, request, options) {
74119
+ async function $do130(client, request, options) {
74284
74120
  const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
74285
74121
  if (!parsed.ok) {
74286
74122
  return [parsed, { status: "invalid" }];
@@ -74366,12 +74202,12 @@ var init_transfersGetCancellation = __esm(() => {
74366
74202
  });
74367
74203
 
74368
74204
  // src/mcp-server/tools/transfersGetCancellation.ts
74369
- var args131, tool$transfersGetCancellation;
74205
+ var args130, tool$transfersGetCancellation;
74370
74206
  var init_transfersGetCancellation2 = __esm(() => {
74371
74207
  init_transfersGetCancellation();
74372
74208
  init_operations();
74373
74209
  init_tools();
74374
- args131 = {
74210
+ args130 = {
74375
74211
  request: GetCancellationRequest$inboundSchema
74376
74212
  };
74377
74213
  tool$transfersGetCancellation = {
@@ -74380,9 +74216,9 @@ var init_transfersGetCancellation2 = __esm(() => {
74380
74216
 
74381
74217
  To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
74382
74218
  to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74383
- args: args131,
74384
- tool: async (client, args132, ctx) => {
74385
- const [result, apiCall] = await transfersGetCancellation(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74219
+ args: args130,
74220
+ tool: async (client, args131, ctx) => {
74221
+ const [result, apiCall] = await transfersGetCancellation(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74386
74222
  if (!result.ok) {
74387
74223
  return {
74388
74224
  content: [{ type: "text", text: result.error.message }],
@@ -74397,9 +74233,9 @@ var init_transfersGetCancellation2 = __esm(() => {
74397
74233
 
74398
74234
  // src/funcs/transfersGetRefund.ts
74399
74235
  function transfersGetRefund(client, request, options) {
74400
- return new APIPromise($do132(client, request, options));
74236
+ return new APIPromise($do131(client, request, options));
74401
74237
  }
74402
- async function $do132(client, request, options) {
74238
+ async function $do131(client, request, options) {
74403
74239
  const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
74404
74240
  if (!parsed.ok) {
74405
74241
  return [parsed, { status: "invalid" }];
@@ -74485,12 +74321,12 @@ var init_transfersGetRefund = __esm(() => {
74485
74321
  });
74486
74322
 
74487
74323
  // src/mcp-server/tools/transfersGetRefund.ts
74488
- var args132, tool$transfersGetRefund;
74324
+ var args131, tool$transfersGetRefund;
74489
74325
  var init_transfersGetRefund2 = __esm(() => {
74490
74326
  init_transfersGetRefund();
74491
74327
  init_operations();
74492
74328
  init_tools();
74493
- args132 = {
74329
+ args131 = {
74494
74330
  request: GetRefundRequest$inboundSchema
74495
74331
  };
74496
74332
  tool$transfersGetRefund = {
@@ -74499,9 +74335,9 @@ var init_transfersGetRefund2 = __esm(() => {
74499
74335
 
74500
74336
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
74501
74337
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74502
- args: args132,
74503
- tool: async (client, args133, ctx) => {
74504
- const [result, apiCall] = await transfersGetRefund(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74338
+ args: args131,
74339
+ tool: async (client, args132, ctx) => {
74340
+ const [result, apiCall] = await transfersGetRefund(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74505
74341
  if (!result.ok) {
74506
74342
  return {
74507
74343
  content: [{ type: "text", text: result.error.message }],
@@ -74516,9 +74352,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74516
74352
 
74517
74353
  // src/funcs/transfersInitiateRefund.ts
74518
74354
  function transfersInitiateRefund(client, request, options) {
74519
- return new APIPromise($do133(client, request, options));
74355
+ return new APIPromise($do132(client, request, options));
74520
74356
  }
74521
- async function $do133(client, request, options) {
74357
+ async function $do132(client, request, options) {
74522
74358
  const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
74523
74359
  if (!parsed.ok) {
74524
74360
  return [parsed, { status: "invalid" }];
@@ -74610,12 +74446,12 @@ var init_transfersInitiateRefund = __esm(() => {
74610
74446
  });
74611
74447
 
74612
74448
  // src/mcp-server/tools/transfersInitiateRefund.ts
74613
- var args133, tool$transfersInitiateRefund;
74449
+ var args132, tool$transfersInitiateRefund;
74614
74450
  var init_transfersInitiateRefund2 = __esm(() => {
74615
74451
  init_transfersInitiateRefund();
74616
74452
  init_operations();
74617
74453
  init_tools();
74618
- args133 = {
74454
+ args132 = {
74619
74455
  request: InitiateRefundRequest$inboundSchema
74620
74456
  };
74621
74457
  tool$transfersInitiateRefund = {
@@ -74627,9 +74463,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
74627
74463
 
74628
74464
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
74629
74465
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
74630
- args: args133,
74631
- tool: async (client, args134, ctx) => {
74632
- const [result, apiCall] = await transfersInitiateRefund(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74466
+ args: args132,
74467
+ tool: async (client, args133, ctx) => {
74468
+ const [result, apiCall] = await transfersInitiateRefund(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74633
74469
  if (!result.ok) {
74634
74470
  return {
74635
74471
  content: [{ type: "text", text: result.error.message }],
@@ -74644,9 +74480,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
74644
74480
 
74645
74481
  // src/funcs/transfersList.ts
74646
74482
  function transfersList(client, request, options) {
74647
- return new APIPromise($do134(client, request, options));
74483
+ return new APIPromise($do133(client, request, options));
74648
74484
  }
74649
- async function $do134(client, request, options) {
74485
+ async function $do133(client, request, options) {
74650
74486
  const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
74651
74487
  if (!parsed.ok) {
74652
74488
  return [parsed, { status: "invalid" }];
@@ -74739,12 +74575,12 @@ var init_transfersList = __esm(() => {
74739
74575
  });
74740
74576
 
74741
74577
  // src/mcp-server/tools/transfersList.ts
74742
- var args134, tool$transfersList;
74578
+ var args133, tool$transfersList;
74743
74579
  var init_transfersList2 = __esm(() => {
74744
74580
  init_transfersList();
74745
74581
  init_operations();
74746
74582
  init_tools();
74747
- args134 = {
74583
+ args133 = {
74748
74584
  request: ListTransfersRequest$inboundSchema
74749
74585
  };
74750
74586
  tool$transfersList = {
@@ -74760,9 +74596,9 @@ period of time. You can run multiple requests in smaller time window increments
74760
74596
 
74761
74597
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
74762
74598
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74763
- args: args134,
74764
- tool: async (client, args135, ctx) => {
74765
- const [result, apiCall] = await transfersList(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74599
+ args: args133,
74600
+ tool: async (client, args134, ctx) => {
74601
+ const [result, apiCall] = await transfersList(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74766
74602
  if (!result.ok) {
74767
74603
  return {
74768
74604
  content: [{ type: "text", text: result.error.message }],
@@ -74777,9 +74613,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74777
74613
 
74778
74614
  // src/funcs/transfersListRefunds.ts
74779
74615
  function transfersListRefunds(client, request, options) {
74780
- return new APIPromise($do135(client, request, options));
74616
+ return new APIPromise($do134(client, request, options));
74781
74617
  }
74782
- async function $do135(client, request, options) {
74618
+ async function $do134(client, request, options) {
74783
74619
  const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
74784
74620
  if (!parsed.ok) {
74785
74621
  return [parsed, { status: "invalid" }];
@@ -74861,12 +74697,12 @@ var init_transfersListRefunds = __esm(() => {
74861
74697
  });
74862
74698
 
74863
74699
  // src/mcp-server/tools/transfersListRefunds.ts
74864
- var args135, tool$transfersListRefunds;
74700
+ var args134, tool$transfersListRefunds;
74865
74701
  var init_transfersListRefunds2 = __esm(() => {
74866
74702
  init_transfersListRefunds();
74867
74703
  init_operations();
74868
74704
  init_tools();
74869
- args135 = {
74705
+ args134 = {
74870
74706
  request: ListRefundsRequest$inboundSchema
74871
74707
  };
74872
74708
  tool$transfersListRefunds = {
@@ -74875,9 +74711,9 @@ var init_transfersListRefunds2 = __esm(() => {
74875
74711
 
74876
74712
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
74877
74713
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74878
- args: args135,
74879
- tool: async (client, args136, ctx) => {
74880
- const [result, apiCall] = await transfersListRefunds(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74714
+ args: args134,
74715
+ tool: async (client, args135, ctx) => {
74716
+ const [result, apiCall] = await transfersListRefunds(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74881
74717
  if (!result.ok) {
74882
74718
  return {
74883
74719
  content: [{ type: "text", text: result.error.message }],
@@ -74892,9 +74728,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
74892
74728
 
74893
74729
  // src/funcs/transfersUpdate.ts
74894
74730
  function transfersUpdate(client, request, options) {
74895
- return new APIPromise($do136(client, request, options));
74731
+ return new APIPromise($do135(client, request, options));
74896
74732
  }
74897
- async function $do136(client, request, options) {
74733
+ async function $do135(client, request, options) {
74898
74734
  const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
74899
74735
  if (!parsed.ok) {
74900
74736
  return [parsed, { status: "invalid" }];
@@ -74977,12 +74813,12 @@ var init_transfersUpdate = __esm(() => {
74977
74813
  });
74978
74814
 
74979
74815
  // src/mcp-server/tools/transfersUpdate.ts
74980
- var args136, tool$transfersUpdate;
74816
+ var args135, tool$transfersUpdate;
74981
74817
  var init_transfersUpdate2 = __esm(() => {
74982
74818
  init_transfersUpdate();
74983
74819
  init_operations();
74984
74820
  init_tools();
74985
- args136 = {
74821
+ args135 = {
74986
74822
  request: UpdateTransferRequest$inboundSchema
74987
74823
  };
74988
74824
  tool$transfersUpdate = {
@@ -74993,9 +74829,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
74993
74829
 
74994
74830
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
74995
74831
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
74996
- args: args136,
74997
- tool: async (client, args137, ctx) => {
74998
- const [result, apiCall] = await transfersUpdate(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74832
+ args: args135,
74833
+ tool: async (client, args136, ctx) => {
74834
+ const [result, apiCall] = await transfersUpdate(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74999
74835
  if (!result.ok) {
75000
74836
  return {
75001
74837
  content: [{ type: "text", text: result.error.message }],
@@ -75010,9 +74846,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
75010
74846
 
75011
74847
  // src/funcs/underwritingGet.ts
75012
74848
  function underwritingGet(client, request, options) {
75013
- return new APIPromise($do137(client, request, options));
74849
+ return new APIPromise($do136(client, request, options));
75014
74850
  }
75015
- async function $do137(client, request, options) {
74851
+ async function $do136(client, request, options) {
75016
74852
  const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
75017
74853
  if (!parsed.ok) {
75018
74854
  return [parsed, { status: "invalid" }];
@@ -75090,12 +74926,12 @@ var init_underwritingGet = __esm(() => {
75090
74926
  });
75091
74927
 
75092
74928
  // src/mcp-server/tools/underwritingGet.ts
75093
- var args137, tool$underwritingGet;
74929
+ var args136, tool$underwritingGet;
75094
74930
  var init_underwritingGet2 = __esm(() => {
75095
74931
  init_underwritingGet();
75096
74932
  init_operations();
75097
74933
  init_tools();
75098
- args137 = {
74934
+ args136 = {
75099
74935
  request: GetUnderwritingRequest$inboundSchema
75100
74936
  };
75101
74937
  tool$underwritingGet = {
@@ -75106,9 +74942,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
75106
74942
 
75107
74943
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
75108
74944
  you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
75109
- args: args137,
75110
- tool: async (client, args138, ctx) => {
75111
- const [result, apiCall] = await underwritingGet(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
74945
+ args: args136,
74946
+ tool: async (client, args137, ctx) => {
74947
+ const [result, apiCall] = await underwritingGet(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75112
74948
  if (!result.ok) {
75113
74949
  return {
75114
74950
  content: [{ type: "text", text: result.error.message }],
@@ -75123,9 +74959,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
75123
74959
 
75124
74960
  // src/funcs/underwritingSave.ts
75125
74961
  function underwritingSave(client, request, options) {
75126
- return new APIPromise($do138(client, request, options));
74962
+ return new APIPromise($do137(client, request, options));
75127
74963
  }
75128
- async function $do138(client, request, options) {
74964
+ async function $do137(client, request, options) {
75129
74965
  const parsed = safeParse(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
75130
74966
  if (!parsed.ok) {
75131
74967
  return [parsed, { status: "invalid" }];
@@ -75221,12 +75057,12 @@ var init_underwritingSave = __esm(() => {
75221
75057
  });
75222
75058
 
75223
75059
  // src/mcp-server/tools/underwritingSave.ts
75224
- var args138, tool$underwritingSave;
75060
+ var args137, tool$underwritingSave;
75225
75061
  var init_underwritingSave2 = __esm(() => {
75226
75062
  init_underwritingSave();
75227
75063
  init_operations();
75228
75064
  init_tools();
75229
- args138 = {
75065
+ args137 = {
75230
75066
  request: SaveUnderwritingRequest$inboundSchema
75231
75067
  };
75232
75068
  tool$underwritingSave = {
@@ -75237,9 +75073,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
75237
75073
 
75238
75074
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
75239
75075
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
75240
- args: args138,
75241
- tool: async (client, args139, ctx) => {
75242
- const [result, apiCall] = await underwritingSave(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75076
+ args: args137,
75077
+ tool: async (client, args138, ctx) => {
75078
+ const [result, apiCall] = await underwritingSave(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75243
75079
  if (!result.ok) {
75244
75080
  return {
75245
75081
  content: [{ type: "text", text: result.error.message }],
@@ -75254,9 +75090,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
75254
75090
 
75255
75091
  // src/funcs/underwritingUpsert.ts
75256
75092
  function underwritingUpsert(client, request, options) {
75257
- return new APIPromise($do139(client, request, options));
75093
+ return new APIPromise($do138(client, request, options));
75258
75094
  }
75259
- async function $do139(client, request, options) {
75095
+ async function $do138(client, request, options) {
75260
75096
  const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
75261
75097
  if (!parsed.ok) {
75262
75098
  return [parsed, { status: "invalid" }];
@@ -75352,12 +75188,12 @@ var init_underwritingUpsert = __esm(() => {
75352
75188
  });
75353
75189
 
75354
75190
  // src/mcp-server/tools/underwritingUpsert.ts
75355
- var args139, tool$underwritingUpsert;
75191
+ var args138, tool$underwritingUpsert;
75356
75192
  var init_underwritingUpsert2 = __esm(() => {
75357
75193
  init_underwritingUpsert();
75358
75194
  init_operations();
75359
75195
  init_tools();
75360
- args139 = {
75196
+ args138 = {
75361
75197
  request: UpsertUnderwritingRequest$inboundSchema
75362
75198
  };
75363
75199
  tool$underwritingUpsert = {
@@ -75368,9 +75204,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
75368
75204
 
75369
75205
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
75370
75206
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
75371
- args: args139,
75372
- tool: async (client, args140, ctx) => {
75373
- const [result, apiCall] = await underwritingUpsert(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75207
+ args: args138,
75208
+ tool: async (client, args139, ctx) => {
75209
+ const [result, apiCall] = await underwritingUpsert(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75374
75210
  if (!result.ok) {
75375
75211
  return {
75376
75212
  content: [{ type: "text", text: result.error.message }],
@@ -75385,9 +75221,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
75385
75221
 
75386
75222
  // src/funcs/walletsGet.ts
75387
75223
  function walletsGet(client, request, options) {
75388
- return new APIPromise($do140(client, request, options));
75224
+ return new APIPromise($do139(client, request, options));
75389
75225
  }
75390
- async function $do140(client, request, options) {
75226
+ async function $do139(client, request, options) {
75391
75227
  const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
75392
75228
  if (!parsed.ok) {
75393
75229
  return [parsed, { status: "invalid" }];
@@ -75469,12 +75305,12 @@ var init_walletsGet = __esm(() => {
75469
75305
  });
75470
75306
 
75471
75307
  // src/mcp-server/tools/walletsGet.ts
75472
- var args140, tool$walletsGet;
75308
+ var args139, tool$walletsGet;
75473
75309
  var init_walletsGet2 = __esm(() => {
75474
75310
  init_walletsGet();
75475
75311
  init_operations();
75476
75312
  init_tools();
75477
- args140 = {
75313
+ args139 = {
75478
75314
  request: GetWalletRequest$inboundSchema
75479
75315
  };
75480
75316
  tool$walletsGet = {
@@ -75485,9 +75321,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
75485
75321
 
75486
75322
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
75487
75323
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
75488
- args: args140,
75489
- tool: async (client, args141, ctx) => {
75490
- const [result, apiCall] = await walletsGet(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75324
+ args: args139,
75325
+ tool: async (client, args140, ctx) => {
75326
+ const [result, apiCall] = await walletsGet(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75491
75327
  if (!result.ok) {
75492
75328
  return {
75493
75329
  content: [{ type: "text", text: result.error.message }],
@@ -75502,9 +75338,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
75502
75338
 
75503
75339
  // src/funcs/walletsList.ts
75504
75340
  function walletsList(client, request, options) {
75505
- return new APIPromise($do141(client, request, options));
75341
+ return new APIPromise($do140(client, request, options));
75506
75342
  }
75507
- async function $do141(client, request, options) {
75343
+ async function $do140(client, request, options) {
75508
75344
  const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
75509
75345
  if (!parsed.ok) {
75510
75346
  return [parsed, { status: "invalid" }];
@@ -75582,12 +75418,12 @@ var init_walletsList = __esm(() => {
75582
75418
  });
75583
75419
 
75584
75420
  // src/mcp-server/tools/walletsList.ts
75585
- var args141, tool$walletsList;
75421
+ var args140, tool$walletsList;
75586
75422
  var init_walletsList2 = __esm(() => {
75587
75423
  init_walletsList();
75588
75424
  init_operations();
75589
75425
  init_tools();
75590
- args141 = {
75426
+ args140 = {
75591
75427
  request: ListWalletsRequest$inboundSchema
75592
75428
  };
75593
75429
  tool$walletsList = {
@@ -75598,9 +75434,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
75598
75434
 
75599
75435
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
75600
75436
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
75601
- args: args141,
75602
- tool: async (client, args142, ctx) => {
75603
- const [result, apiCall] = await walletsList(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75437
+ args: args140,
75438
+ tool: async (client, args141, ctx) => {
75439
+ const [result, apiCall] = await walletsList(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75604
75440
  if (!result.ok) {
75605
75441
  return {
75606
75442
  content: [{ type: "text", text: result.error.message }],
@@ -75615,9 +75451,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
75615
75451
 
75616
75452
  // src/funcs/walletTransactionsGet.ts
75617
75453
  function walletTransactionsGet(client, request, options) {
75618
- return new APIPromise($do142(client, request, options));
75454
+ return new APIPromise($do141(client, request, options));
75619
75455
  }
75620
- async function $do142(client, request, options) {
75456
+ async function $do141(client, request, options) {
75621
75457
  const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
75622
75458
  if (!parsed.ok) {
75623
75459
  return [parsed, { status: "invalid" }];
@@ -75703,12 +75539,12 @@ var init_walletTransactionsGet = __esm(() => {
75703
75539
  });
75704
75540
 
75705
75541
  // src/mcp-server/tools/walletTransactionsGet.ts
75706
- var args142, tool$walletTransactionsGet;
75542
+ var args141, tool$walletTransactionsGet;
75707
75543
  var init_walletTransactionsGet2 = __esm(() => {
75708
75544
  init_walletTransactionsGet();
75709
75545
  init_operations();
75710
75546
  init_tools();
75711
- args142 = {
75547
+ args141 = {
75712
75548
  request: GetWalletTransactionRequest$inboundSchema
75713
75549
  };
75714
75550
  tool$walletTransactionsGet = {
@@ -75719,9 +75555,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
75719
75555
 
75720
75556
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
75721
75557
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
75722
- args: args142,
75723
- tool: async (client, args143, ctx) => {
75724
- const [result, apiCall] = await walletTransactionsGet(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75558
+ args: args141,
75559
+ tool: async (client, args142, ctx) => {
75560
+ const [result, apiCall] = await walletTransactionsGet(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75725
75561
  if (!result.ok) {
75726
75562
  return {
75727
75563
  content: [{ type: "text", text: result.error.message }],
@@ -75736,9 +75572,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
75736
75572
 
75737
75573
  // src/funcs/walletTransactionsList.ts
75738
75574
  function walletTransactionsList(client, request, options) {
75739
- return new APIPromise($do143(client, request, options));
75575
+ return new APIPromise($do142(client, request, options));
75740
75576
  }
75741
- async function $do143(client, request, options) {
75577
+ async function $do142(client, request, options) {
75742
75578
  const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
75743
75579
  if (!parsed.ok) {
75744
75580
  return [parsed, { status: "invalid" }];
@@ -75835,12 +75671,12 @@ var init_walletTransactionsList = __esm(() => {
75835
75671
  });
75836
75672
 
75837
75673
  // src/mcp-server/tools/walletTransactionsList.ts
75838
- var args143, tool$walletTransactionsList;
75674
+ var args142, tool$walletTransactionsList;
75839
75675
  var init_walletTransactionsList2 = __esm(() => {
75840
75676
  init_walletTransactionsList();
75841
75677
  init_operations();
75842
75678
  init_tools();
75843
- args143 = {
75679
+ args142 = {
75844
75680
  request: ListWalletTransactionsRequest$inboundSchema
75845
75681
  };
75846
75682
  tool$walletTransactionsList = {
@@ -75851,9 +75687,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
75851
75687
 
75852
75688
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
75853
75689
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
75854
- args: args143,
75855
- tool: async (client, args144, ctx) => {
75856
- const [result, apiCall] = await walletTransactionsList(client, args144.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75690
+ args: args142,
75691
+ tool: async (client, args143, ctx) => {
75692
+ const [result, apiCall] = await walletTransactionsList(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
75857
75693
  if (!result.ok) {
75858
75694
  return {
75859
75695
  content: [{ type: "text", text: result.error.message }],
@@ -75870,7 +75706,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
75870
75706
  function createMCPServer(deps) {
75871
75707
  const server = new McpServer({
75872
75708
  name: "Moov",
75873
- version: "0.14.3"
75709
+ version: "0.14.5"
75874
75710
  });
75875
75711
  const client = new MoovCore({
75876
75712
  security: deps.security,
@@ -75978,7 +75814,7 @@ function createMCPServer(deps) {
75978
75814
  tool(tool$supportGetTicket);
75979
75815
  tool(tool$supportUpdateTicket);
75980
75816
  tool(tool$supportListTicketMessages);
75981
- tool(tool$transfersGenerateOptionsForAccount);
75817
+ tool(tool$transfersGenerateOptions);
75982
75818
  tool(tool$transfersCreate);
75983
75819
  tool(tool$transfersList);
75984
75820
  tool(tool$transfersGet);
@@ -75989,7 +75825,6 @@ function createMCPServer(deps) {
75989
75825
  tool(tool$transfersListRefunds);
75990
75826
  tool(tool$transfersGetRefund);
75991
75827
  tool(tool$transfersCreateReversal);
75992
- tool(tool$transfersGenerateOptions);
75993
75828
  tool(tool$underwritingGet);
75994
75829
  tool(tool$underwritingSave);
75995
75830
  tool(tool$underwritingUpsert);
@@ -76163,7 +75998,6 @@ var init_server2 = __esm(() => {
76163
75998
  init_transfersCreateCancellation2();
76164
75999
  init_transfersCreateReversal2();
76165
76000
  init_transfersGenerateOptions2();
76166
- init_transfersGenerateOptionsForAccount2();
76167
76001
  init_transfersGet2();
76168
76002
  init_transfersGetCancellation2();
76169
76003
  init_transfersGetRefund2();
@@ -77380,7 +77214,7 @@ var routes = rn({
77380
77214
  var app = Ve(routes, {
77381
77215
  name: "mcp",
77382
77216
  versionInfo: {
77383
- currentVersion: "0.14.3"
77217
+ currentVersion: "0.14.5"
77384
77218
  }
77385
77219
  });
77386
77220
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -77388,5 +77222,5 @@ export {
77388
77222
  app
77389
77223
  };
77390
77224
 
77391
- //# debugId=9FA6C569E002164A64756E2164756E21
77225
+ //# debugId=F29B9B8515FCFECA64756E2164756E21
77392
77226
  //# sourceMappingURL=mcp-server.js.map