mollie-api-typescript 1.3.7 → 1.3.8

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 (218) hide show
  1. package/README.md +11 -0
  2. package/bin/mcp-server.js +1206 -233
  3. package/bin/mcp-server.js.map +26 -9
  4. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
  5. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js +140 -0
  7. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js.map +1 -0
  8. package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts +29 -0
  9. package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/unmatchedCreditTransfersList.js +179 -0
  11. package/dist/commonjs/funcs/unmatchedCreditTransfersList.js.map +1 -0
  12. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
  13. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js +141 -0
  15. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
  16. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
  17. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js +140 -0
  19. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
  20. package/dist/commonjs/lib/config.d.ts +3 -3
  21. package/dist/commonjs/lib/config.js +3 -3
  22. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  23. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  24. package/dist/commonjs/mcp-server/server.js +9 -1
  25. package/dist/commonjs/mcp-server/server.js.map +1 -1
  26. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
  27. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
  28. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js +69 -0
  29. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
  31. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js +72 -0
  33. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js +69 -0
  37. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js +69 -0
  41. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
  42. package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts +214 -0
  43. package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts.map +1 -0
  44. package/dist/commonjs/models/entityunmatchedcredittransfer.js +204 -0
  45. package/dist/commonjs/models/entityunmatchedcredittransfer.js.map +1 -0
  46. package/dist/commonjs/models/errorresponse.d.ts +8 -8
  47. package/dist/commonjs/models/errorresponse.d.ts.map +1 -1
  48. package/dist/commonjs/models/errorresponse.js +11 -11
  49. package/dist/commonjs/models/errorresponse.js.map +1 -1
  50. package/dist/commonjs/models/index.d.ts +5 -0
  51. package/dist/commonjs/models/index.d.ts.map +1 -1
  52. package/dist/commonjs/models/index.js +5 -0
  53. package/dist/commonjs/models/index.js.map +1 -1
  54. package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts +191 -0
  55. package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
  56. package/dist/commonjs/models/listentityunmatchedcredittransfer.js +185 -0
  57. package/dist/commonjs/models/listentityunmatchedcredittransfer.js.map +1 -0
  58. package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts +25 -0
  59. package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
  60. package/dist/commonjs/models/operations/getunmatchedcredittransfer.js +70 -0
  61. package/dist/commonjs/models/operations/getunmatchedcredittransfer.js.map +1 -0
  62. package/dist/commonjs/models/operations/index.d.ts +4 -0
  63. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/index.js +4 -0
  65. package/dist/commonjs/models/operations/index.js.map +1 -1
  66. package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts +95 -0
  67. package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
  68. package/dist/commonjs/models/operations/listunmatchedcredittransfers.js +151 -0
  69. package/dist/commonjs/models/operations/listunmatchedcredittransfers.js.map +1 -0
  70. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
  71. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
  72. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js +77 -0
  73. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js.map +1 -0
  74. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
  75. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
  76. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js +70 -0
  77. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js.map +1 -0
  78. package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts +164 -0
  79. package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
  80. package/dist/commonjs/models/unmatchedcredittransferactionresponse.js +175 -0
  81. package/dist/commonjs/models/unmatchedcredittransferactionresponse.js.map +1 -0
  82. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
  83. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
  84. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js +59 -0
  85. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js.map +1 -0
  86. package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts +14 -0
  87. package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts.map +1 -0
  88. package/dist/commonjs/models/unmatchedcredittransferstatus.js +52 -0
  89. package/dist/commonjs/models/unmatchedcredittransferstatus.js.map +1 -0
  90. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  91. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  92. package/dist/commonjs/sdk/sdk.js +4 -0
  93. package/dist/commonjs/sdk/sdk.js.map +1 -1
  94. package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts +55 -0
  95. package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts.map +1 -0
  96. package/dist/commonjs/sdk/unmatchedcredittransfers.js +72 -0
  97. package/dist/commonjs/sdk/unmatchedcredittransfers.js.map +1 -0
  98. package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
  99. package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
  100. package/dist/esm/funcs/unmatchedCreditTransfersGet.js +104 -0
  101. package/dist/esm/funcs/unmatchedCreditTransfersGet.js.map +1 -0
  102. package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts +29 -0
  103. package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
  104. package/dist/esm/funcs/unmatchedCreditTransfersList.js +143 -0
  105. package/dist/esm/funcs/unmatchedCreditTransfersList.js.map +1 -0
  106. package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
  107. package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  108. package/dist/esm/funcs/unmatchedCreditTransfersMatch.js +105 -0
  109. package/dist/esm/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
  110. package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
  111. package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  112. package/dist/esm/funcs/unmatchedCreditTransfersReturn.js +104 -0
  113. package/dist/esm/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
  114. package/dist/esm/lib/config.d.ts +3 -3
  115. package/dist/esm/lib/config.js +3 -3
  116. package/dist/esm/mcp-server/mcp-server.js +1 -1
  117. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  118. package/dist/esm/mcp-server/server.js +9 -1
  119. package/dist/esm/mcp-server/server.js.map +1 -1
  120. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
  121. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
  122. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js +33 -0
  123. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
  124. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
  125. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
  126. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js +36 -0
  127. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
  128. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
  129. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  130. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js +33 -0
  131. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
  132. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
  133. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  134. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js +33 -0
  135. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
  136. package/dist/esm/models/entityunmatchedcredittransfer.d.ts +214 -0
  137. package/dist/esm/models/entityunmatchedcredittransfer.d.ts.map +1 -0
  138. package/dist/esm/models/entityunmatchedcredittransfer.js +154 -0
  139. package/dist/esm/models/entityunmatchedcredittransfer.js.map +1 -0
  140. package/dist/esm/models/errorresponse.d.ts +8 -8
  141. package/dist/esm/models/errorresponse.d.ts.map +1 -1
  142. package/dist/esm/models/errorresponse.js +8 -8
  143. package/dist/esm/models/errorresponse.js.map +1 -1
  144. package/dist/esm/models/index.d.ts +5 -0
  145. package/dist/esm/models/index.d.ts.map +1 -1
  146. package/dist/esm/models/index.js +5 -0
  147. package/dist/esm/models/index.js.map +1 -1
  148. package/dist/esm/models/listentityunmatchedcredittransfer.d.ts +191 -0
  149. package/dist/esm/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
  150. package/dist/esm/models/listentityunmatchedcredittransfer.js +137 -0
  151. package/dist/esm/models/listentityunmatchedcredittransfer.js.map +1 -0
  152. package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts +25 -0
  153. package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
  154. package/dist/esm/models/operations/getunmatchedcredittransfer.js +32 -0
  155. package/dist/esm/models/operations/getunmatchedcredittransfer.js.map +1 -0
  156. package/dist/esm/models/operations/index.d.ts +4 -0
  157. package/dist/esm/models/operations/index.d.ts.map +1 -1
  158. package/dist/esm/models/operations/index.js +4 -0
  159. package/dist/esm/models/operations/index.js.map +1 -1
  160. package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts +95 -0
  161. package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
  162. package/dist/esm/models/operations/listunmatchedcredittransfers.js +107 -0
  163. package/dist/esm/models/operations/listunmatchedcredittransfers.js.map +1 -0
  164. package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
  165. package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
  166. package/dist/esm/models/operations/matchunmatchedcredittransfer.js +39 -0
  167. package/dist/esm/models/operations/matchunmatchedcredittransfer.js.map +1 -0
  168. package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
  169. package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
  170. package/dist/esm/models/operations/returnunmatchedcredittransfer.js +32 -0
  171. package/dist/esm/models/operations/returnunmatchedcredittransfer.js.map +1 -0
  172. package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts +164 -0
  173. package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
  174. package/dist/esm/models/unmatchedcredittransferactionresponse.js +129 -0
  175. package/dist/esm/models/unmatchedcredittransferactionresponse.js.map +1 -0
  176. package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
  177. package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
  178. package/dist/esm/models/unmatchedcredittransfermatchrequest.js +21 -0
  179. package/dist/esm/models/unmatchedcredittransfermatchrequest.js.map +1 -0
  180. package/dist/esm/models/unmatchedcredittransferstatus.d.ts +14 -0
  181. package/dist/esm/models/unmatchedcredittransferstatus.d.ts.map +1 -0
  182. package/dist/esm/models/unmatchedcredittransferstatus.js +16 -0
  183. package/dist/esm/models/unmatchedcredittransferstatus.js.map +1 -0
  184. package/dist/esm/sdk/sdk.d.ts +3 -0
  185. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  186. package/dist/esm/sdk/sdk.js +4 -0
  187. package/dist/esm/sdk/sdk.js.map +1 -1
  188. package/dist/esm/sdk/unmatchedcredittransfers.d.ts +55 -0
  189. package/dist/esm/sdk/unmatchedcredittransfers.d.ts.map +1 -0
  190. package/dist/esm/sdk/unmatchedcredittransfers.js +68 -0
  191. package/dist/esm/sdk/unmatchedcredittransfers.js.map +1 -0
  192. package/jsr.json +1 -1
  193. package/package.json +1 -1
  194. package/src/funcs/unmatchedCreditTransfersGet.ts +202 -0
  195. package/src/funcs/unmatchedCreditTransfersList.ts +274 -0
  196. package/src/funcs/unmatchedCreditTransfersMatch.ts +209 -0
  197. package/src/funcs/unmatchedCreditTransfersReturn.ts +204 -0
  198. package/src/lib/config.ts +3 -3
  199. package/src/mcp-server/mcp-server.ts +1 -1
  200. package/src/mcp-server/server.ts +9 -1
  201. package/src/mcp-server/tools/unmatchedCreditTransfersGet.ts +42 -0
  202. package/src/mcp-server/tools/unmatchedCreditTransfersList.ts +45 -0
  203. package/src/mcp-server/tools/unmatchedCreditTransfersMatch.ts +42 -0
  204. package/src/mcp-server/tools/unmatchedCreditTransfersReturn.ts +43 -0
  205. package/src/models/entityunmatchedcredittransfer.ts +538 -0
  206. package/src/models/errorresponse.ts +21 -17
  207. package/src/models/index.ts +5 -0
  208. package/src/models/listentityunmatchedcredittransfer.ts +476 -0
  209. package/src/models/operations/getunmatchedcredittransfer.ts +73 -0
  210. package/src/models/operations/index.ts +4 -0
  211. package/src/models/operations/listunmatchedcredittransfers.ts +287 -0
  212. package/src/models/operations/matchunmatchedcredittransfer.ts +89 -0
  213. package/src/models/operations/returnunmatchedcredittransfer.ts +74 -0
  214. package/src/models/unmatchedcredittransferactionresponse.ts +426 -0
  215. package/src/models/unmatchedcredittransfermatchrequest.ts +58 -0
  216. package/src/models/unmatchedcredittransferstatus.ts +31 -0
  217. package/src/sdk/sdk.ts +8 -0
  218. package/src/sdk/unmatchedcredittransfers.ts +107 -0
@@ -111,6 +111,10 @@ import { tool$terminalsGet } from "./tools/terminalsGet.js";
111
111
  import { tool$terminalsList } from "./tools/terminalsList.js";
112
112
  import { tool$transfersCreate } from "./tools/transfersCreate.js";
113
113
  import { tool$transfersGet } from "./tools/transfersGet.js";
114
+ import { tool$unmatchedCreditTransfersGet } from "./tools/unmatchedCreditTransfersGet.js";
115
+ import { tool$unmatchedCreditTransfersList } from "./tools/unmatchedCreditTransfersList.js";
116
+ import { tool$unmatchedCreditTransfersMatch } from "./tools/unmatchedCreditTransfersMatch.js";
117
+ import { tool$unmatchedCreditTransfersReturn } from "./tools/unmatchedCreditTransfersReturn.js";
114
118
  import { tool$verifyPayeesCreate } from "./tools/verifyPayeesCreate.js";
115
119
  import { tool$walletsRequestApplePaySession } from "./tools/walletsRequestApplePaySession.js";
116
120
  import { tool$webhookEventsGet } from "./tools/webhookEventsGet.js";
@@ -134,7 +138,7 @@ export function createMCPServer(deps: {
134
138
  }) {
135
139
  const server = new McpServer({
136
140
  name: "Client",
137
- version: "1.3.7",
141
+ version: "1.3.8",
138
142
  });
139
143
 
140
144
  const client = new ClientCore({
@@ -215,6 +219,10 @@ export function createMCPServer(deps: {
215
219
  tool(tool$paymentsUpdate);
216
220
  tool(tool$paymentsCancel);
217
221
  tool(tool$paymentsReleaseAuthorization);
222
+ tool(tool$unmatchedCreditTransfersList);
223
+ tool(tool$unmatchedCreditTransfersGet);
224
+ tool(tool$unmatchedCreditTransfersMatch);
225
+ tool(tool$unmatchedCreditTransfersReturn);
218
226
  tool(tool$sessionsCreate);
219
227
  tool(tool$sessionsGet);
220
228
  tool(tool$methodsList);
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8f7d7f81d0ae
4
+ */
5
+
6
+ import { unmatchedCreditTransfersGet } from "../../funcs/unmatchedCreditTransfersGet.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.GetUnmatchedCreditTransferRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$unmatchedCreditTransfersGet: ToolDefinition<typeof args> = {
15
+ name: "unmatched-credit-transfers-get",
16
+ description: `Get unmatched credit transfer
17
+
18
+ > 🚧 Beta feature
19
+ >
20
+ > This feature is currently in private beta, and the final specification may still change.
21
+
22
+ Retrieves a single unmatched credit transfer by its identifier.`,
23
+ args,
24
+ tool: async (client, args, ctx) => {
25
+ const [result, apiCall] = await unmatchedCreditTransfersGet(
26
+ client,
27
+ args.request,
28
+ { fetchOptions: { signal: ctx.signal } },
29
+ ).$inspect();
30
+
31
+ if (!result.ok) {
32
+ return {
33
+ content: [{ type: "text", text: result.error.message }],
34
+ isError: true,
35
+ };
36
+ }
37
+
38
+ const value = result.value;
39
+
40
+ return formatResult(value, apiCall);
41
+ },
42
+ };
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8e87d00f4b98
4
+ */
5
+
6
+ import { unmatchedCreditTransfersList } from "../../funcs/unmatchedCreditTransfersList.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.ListUnmatchedCreditTransfersRequest$inboundSchema
12
+ .optional(),
13
+ };
14
+
15
+ export const tool$unmatchedCreditTransfersList: ToolDefinition<typeof args> = {
16
+ name: "unmatched-credit-transfers-list",
17
+ description: `List unmatched credit transfers
18
+
19
+ > 🚧 Beta feature
20
+ >
21
+ > This feature is currently in private beta, and the final specification may still change.
22
+
23
+ Retrieves a list of unmatched credit transfers for the profile.
24
+
25
+ The results are paginated.`,
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result, apiCall] = await unmatchedCreditTransfersList(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ const value = result.value.result;
42
+
43
+ return formatResult(value, apiCall);
44
+ },
45
+ };
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 119c1043258b
4
+ */
5
+
6
+ import { unmatchedCreditTransfersMatch } from "../../funcs/unmatchedCreditTransfersMatch.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.MatchUnmatchedCreditTransferRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$unmatchedCreditTransfersMatch: ToolDefinition<typeof args> = {
15
+ name: "unmatched-credit-transfers-match",
16
+ description: `Match unmatched credit transfer
17
+
18
+ > 🚧 Beta feature
19
+ >
20
+ > This feature is currently in private beta, and the final specification may still change.
21
+
22
+ Matches an unmatched credit transfer to one or more payments, settling the funds accordingly.`,
23
+ args,
24
+ tool: async (client, args, ctx) => {
25
+ const [result, apiCall] = await unmatchedCreditTransfersMatch(
26
+ client,
27
+ args.request,
28
+ { fetchOptions: { signal: ctx.signal } },
29
+ ).$inspect();
30
+
31
+ if (!result.ok) {
32
+ return {
33
+ content: [{ type: "text", text: result.error.message }],
34
+ isError: true,
35
+ };
36
+ }
37
+
38
+ const value = result.value;
39
+
40
+ return formatResult(value, apiCall);
41
+ },
42
+ };
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8cbf46735dd2
4
+ */
5
+
6
+ import { unmatchedCreditTransfersReturn } from "../../funcs/unmatchedCreditTransfersReturn.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.ReturnUnmatchedCreditTransferRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$unmatchedCreditTransfersReturn: ToolDefinition<typeof args> =
15
+ {
16
+ name: "unmatched-credit-transfers-return",
17
+ description: `Return unmatched credit transfer
18
+
19
+ > 🚧 Beta feature
20
+ >
21
+ > This feature is currently in private beta, and the final specification may still change.
22
+
23
+ Returns an unmatched credit transfer, sending the funds back to the original sender.`,
24
+ args,
25
+ tool: async (client, args, ctx) => {
26
+ const [result, apiCall] = await unmatchedCreditTransfersReturn(
27
+ client,
28
+ args.request,
29
+ { fetchOptions: { signal: ctx.signal } },
30
+ ).$inspect();
31
+
32
+ if (!result.ok) {
33
+ return {
34
+ content: [{ type: "text", text: result.error.message }],
35
+ isError: true,
36
+ };
37
+ }
38
+
39
+ const value = result.value;
40
+
41
+ return formatResult(value, apiCall);
42
+ },
43
+ };