@moovio/sdk 0.21.15 → 0.21.17

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 +44 -46
  2. package/bin/mcp-server.js +302 -289
  3. package/bin/mcp-server.js.map +50 -47
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/imagesUpdate.d.ts +1 -2
  6. package/funcs/imagesUpdate.d.ts.map +1 -1
  7. package/funcs/imagesUpdate.js +12 -13
  8. package/funcs/imagesUpdate.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/lib/encodings.d.ts.map +1 -1
  13. package/lib/encodings.js +3 -1
  14. package/lib/encodings.js.map +1 -1
  15. package/mcp-server/mcp-server.js +1 -1
  16. package/mcp-server/server.js +1 -1
  17. package/mcp-server/tools/accountsUpdate.js +1 -1
  18. package/mcp-server/tools/applePayUpdateMerchantDomains.js +3 -3
  19. package/mcp-server/tools/brandingUpdate.js +1 -1
  20. package/mcp-server/tools/cardIssuingUpdate.js +1 -1
  21. package/mcp-server/tools/cardsUpdate.js +6 -6
  22. package/mcp-server/tools/imagesUpdate.d.ts.map +1 -1
  23. package/mcp-server/tools/imagesUpdate.js +1 -2
  24. package/mcp-server/tools/imagesUpdate.js.map +1 -1
  25. package/mcp-server/tools/paymentLinksUpdate.js +1 -1
  26. package/mcp-server/tools/representativesUpdate.js +2 -2
  27. package/mcp-server/tools/supportUpdateTicket.js +1 -1
  28. package/mcp-server/tools/sweepsUpdateConfig.js +1 -1
  29. package/mcp-server/tools/transfersUpdate.js +3 -3
  30. package/mcp-server/tools/walletsUpdate.js +1 -1
  31. package/models/components/createevidencefilemultipart.d.ts +1 -1
  32. package/models/components/createpaymentlink.d.ts +3 -5
  33. package/models/components/createpaymentlink.d.ts.map +1 -1
  34. package/models/components/createpaymentlink.js +3 -3
  35. package/models/components/createpaymentlink.js.map +1 -1
  36. package/models/components/createpaymentlinklineitem.d.ts +50 -0
  37. package/models/components/createpaymentlinklineitem.d.ts.map +1 -0
  38. package/models/components/createpaymentlinklineitem.js +70 -0
  39. package/models/components/createpaymentlinklineitem.js.map +1 -0
  40. package/models/components/createpaymentlinklineitemoption.d.ts +44 -0
  41. package/models/components/createpaymentlinklineitemoption.d.ts.map +1 -0
  42. package/models/components/createpaymentlinklineitemoption.js +67 -0
  43. package/models/components/createpaymentlinklineitemoption.js.map +1 -0
  44. package/models/components/createpaymentlinklineitemoptionvalidationerror.d.ts +24 -0
  45. package/models/components/createpaymentlinklineitemoptionvalidationerror.d.ts.map +1 -0
  46. package/models/components/{paymentlinklineitemoptionvalidationerror.js → createpaymentlinklineitemoptionvalidationerror.js} +10 -10
  47. package/models/components/createpaymentlinklineitemoptionvalidationerror.js.map +1 -0
  48. package/models/components/createpaymentlinklineitems.d.ts +27 -0
  49. package/models/components/createpaymentlinklineitems.d.ts.map +1 -0
  50. package/models/components/{paymentlinklineitemsupdate.js → createpaymentlinklineitems.js} +13 -13
  51. package/models/components/createpaymentlinklineitems.js.map +1 -0
  52. package/models/components/createpaymentlinklineitemsupdate.d.ts +27 -0
  53. package/models/components/createpaymentlinklineitemsupdate.d.ts.map +1 -0
  54. package/models/components/{paymentlinklineitemsvalidationerror.js → createpaymentlinklineitemsupdate.js} +13 -13
  55. package/models/components/createpaymentlinklineitemsupdate.js.map +1 -0
  56. package/models/components/createpaymentlinklineitemsvalidationerror.d.ts +22 -0
  57. package/models/components/createpaymentlinklineitemsvalidationerror.d.ts.map +1 -0
  58. package/models/components/createpaymentlinklineitemsvalidationerror.js +61 -0
  59. package/models/components/createpaymentlinklineitemsvalidationerror.js.map +1 -0
  60. package/models/components/createpaymentlinklineitemvalidationerror.d.ts +31 -0
  61. package/models/components/createpaymentlinklineitemvalidationerror.d.ts.map +1 -0
  62. package/models/components/{paymentlinklineitemvalidationerror.js → createpaymentlinklineitemvalidationerror.js} +13 -15
  63. package/models/components/createpaymentlinklineitemvalidationerror.js.map +1 -0
  64. package/models/components/fileuploadrequestmultipart.d.ts +1 -4
  65. package/models/components/fileuploadrequestmultipart.d.ts.map +1 -1
  66. package/models/components/fileuploadrequestmultipart.js.map +1 -1
  67. package/models/components/imageuploadrequestmultipart.d.ts +3 -3
  68. package/models/components/imageuploadrequestmultipart.d.ts.map +1 -1
  69. package/models/components/index.d.ts +8 -5
  70. package/models/components/index.d.ts.map +1 -1
  71. package/models/components/index.js +8 -5
  72. package/models/components/index.js.map +1 -1
  73. package/models/components/invoicepayment.d.ts.map +1 -1
  74. package/models/components/invoicepayment.js +4 -12
  75. package/models/components/invoicepayment.js.map +1 -1
  76. package/models/components/patchsweepconfig.d.ts +6 -60
  77. package/models/components/patchsweepconfig.d.ts.map +1 -1
  78. package/models/components/patchsweepconfig.js +7 -79
  79. package/models/components/patchsweepconfig.js.map +1 -1
  80. package/models/components/paymentlinklineitem.d.ts +6 -0
  81. package/models/components/paymentlinklineitem.d.ts.map +1 -1
  82. package/models/components/paymentlinklineitem.js +3 -0
  83. package/models/components/paymentlinklineitem.js.map +1 -1
  84. package/models/components/paymentlinklineitemimagemetadata.d.ts +35 -0
  85. package/models/components/paymentlinklineitemimagemetadata.d.ts.map +1 -0
  86. package/models/components/paymentlinklineitemimagemetadata.js +64 -0
  87. package/models/components/paymentlinklineitemimagemetadata.js.map +1 -0
  88. package/models/components/paymentlinklineitemoption.d.ts +6 -0
  89. package/models/components/paymentlinklineitemoption.d.ts.map +1 -1
  90. package/models/components/paymentlinklineitemoption.js +3 -0
  91. package/models/components/paymentlinklineitemoption.js.map +1 -1
  92. package/models/components/paymentmethod.d.ts.map +1 -1
  93. package/models/components/paymentmethod.js +24 -34
  94. package/models/components/paymentmethod.js.map +1 -1
  95. package/models/components/updatepaymentlink.d.ts +3 -3
  96. package/models/components/updatepaymentlink.d.ts.map +1 -1
  97. package/models/components/updatepaymentlink.js +3 -3
  98. package/models/components/updatepaymentlink.js.map +1 -1
  99. package/models/components/updaterepresentative.d.ts +2 -20
  100. package/models/components/updaterepresentative.d.ts.map +1 -1
  101. package/models/components/updaterepresentative.js +3 -32
  102. package/models/components/updaterepresentative.js.map +1 -1
  103. package/models/errors/createpaymentlinkerror.d.ts +3 -3
  104. package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
  105. package/models/errors/createpaymentlinkerror.js +3 -3
  106. package/models/errors/createpaymentlinkerror.js.map +1 -1
  107. package/models/errors/updatepaymentlinkerror.d.ts +3 -3
  108. package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
  109. package/models/errors/updatepaymentlinkerror.js +3 -3
  110. package/models/errors/updatepaymentlinkerror.js.map +1 -1
  111. package/models/operations/createpaymentlink.d.ts +3 -0
  112. package/models/operations/createpaymentlink.d.ts.map +1 -1
  113. package/models/operations/createpaymentlink.js.map +1 -1
  114. package/models/operations/disablepaymentlink.d.ts +3 -0
  115. package/models/operations/disablepaymentlink.d.ts.map +1 -1
  116. package/models/operations/disablepaymentlink.js.map +1 -1
  117. package/models/operations/getpaymentlink.d.ts +3 -0
  118. package/models/operations/getpaymentlink.d.ts.map +1 -1
  119. package/models/operations/getpaymentlink.js.map +1 -1
  120. package/models/operations/getpaymentlinkqrcode.d.ts +3 -0
  121. package/models/operations/getpaymentlinkqrcode.d.ts.map +1 -1
  122. package/models/operations/getpaymentlinkqrcode.js.map +1 -1
  123. package/models/operations/listpaymentlinks.d.ts +3 -0
  124. package/models/operations/listpaymentlinks.d.ts.map +1 -1
  125. package/models/operations/listpaymentlinks.js.map +1 -1
  126. package/models/operations/updateimage.d.ts +2 -2
  127. package/models/operations/updateimage.js +4 -4
  128. package/models/operations/updatepaymentlink.d.ts +3 -0
  129. package/models/operations/updatepaymentlink.d.ts.map +1 -1
  130. package/models/operations/updatepaymentlink.js.map +1 -1
  131. package/package.json +1 -1
  132. package/sdk/images.d.ts +1 -2
  133. package/sdk/images.d.ts.map +1 -1
  134. package/sdk/images.js +1 -2
  135. package/sdk/images.js.map +1 -1
  136. package/src/funcs/imagesUpdate.ts +12 -13
  137. package/src/lib/config.ts +3 -3
  138. package/src/lib/encodings.ts +4 -3
  139. package/src/mcp-server/mcp-server.ts +1 -1
  140. package/src/mcp-server/server.ts +1 -1
  141. package/src/mcp-server/tools/accountsUpdate.ts +1 -1
  142. package/src/mcp-server/tools/applePayUpdateMerchantDomains.ts +3 -3
  143. package/src/mcp-server/tools/brandingUpdate.ts +1 -1
  144. package/src/mcp-server/tools/cardIssuingUpdate.ts +1 -1
  145. package/src/mcp-server/tools/cardsUpdate.ts +6 -6
  146. package/src/mcp-server/tools/imagesUpdate.ts +1 -2
  147. package/src/mcp-server/tools/paymentLinksUpdate.ts +1 -1
  148. package/src/mcp-server/tools/representativesUpdate.ts +2 -2
  149. package/src/mcp-server/tools/supportUpdateTicket.ts +1 -1
  150. package/src/mcp-server/tools/sweepsUpdateConfig.ts +1 -1
  151. package/src/mcp-server/tools/transfersUpdate.ts +3 -3
  152. package/src/mcp-server/tools/walletsUpdate.ts +1 -1
  153. package/src/models/components/createevidencefilemultipart.ts +1 -1
  154. package/src/models/components/createpaymentlink.ts +10 -12
  155. package/src/models/components/createpaymentlinklineitem.ts +104 -0
  156. package/src/models/components/createpaymentlinklineitemoption.ts +93 -0
  157. package/src/models/components/createpaymentlinklineitemoptionvalidationerror.ts +80 -0
  158. package/src/models/components/createpaymentlinklineitems.ts +66 -0
  159. package/src/models/components/createpaymentlinklineitemsupdate.ts +68 -0
  160. package/src/models/components/createpaymentlinklineitemsvalidationerror.ts +71 -0
  161. package/src/models/components/createpaymentlinklineitemvalidationerror.ts +96 -0
  162. package/src/models/components/fileuploadrequestmultipart.ts +1 -4
  163. package/src/models/components/imageuploadrequestmultipart.ts +3 -3
  164. package/src/models/components/index.ts +8 -5
  165. package/src/models/components/invoicepayment.ts +4 -12
  166. package/src/models/components/patchsweepconfig.ts +12 -252
  167. package/src/models/components/paymentlinklineitem.ts +13 -0
  168. package/src/models/components/paymentlinklineitemimagemetadata.ts +77 -0
  169. package/src/models/components/paymentlinklineitemoption.ts +13 -0
  170. package/src/models/components/paymentmethod.ts +24 -70
  171. package/src/models/components/updatepaymentlink.ts +10 -10
  172. package/src/models/components/updaterepresentative.ts +4 -59
  173. package/src/models/errors/createpaymentlinkerror.ts +6 -6
  174. package/src/models/errors/updatepaymentlinkerror.ts +6 -6
  175. package/src/models/operations/createpaymentlink.ts +3 -0
  176. package/src/models/operations/disablepaymentlink.ts +3 -0
  177. package/src/models/operations/getpaymentlink.ts +3 -0
  178. package/src/models/operations/getpaymentlinkqrcode.ts +3 -0
  179. package/src/models/operations/listpaymentlinks.ts +3 -0
  180. package/src/models/operations/updateimage.ts +8 -8
  181. package/src/models/operations/updatepaymentlink.ts +3 -0
  182. package/src/sdk/images.ts +1 -2
  183. package/src/types/enums.ts +1 -21
  184. package/src/types/index.ts +2 -1
  185. package/src/types/unrecognized.ts +27 -0
  186. package/types/enums.d.ts +1 -8
  187. package/types/enums.d.ts.map +1 -1
  188. package/types/enums.js +3 -21
  189. package/types/enums.js.map +1 -1
  190. package/types/index.d.ts +2 -1
  191. package/types/index.d.ts.map +1 -1
  192. package/types/index.js +15 -0
  193. package/types/index.js.map +1 -1
  194. package/types/unrecognized.d.ts +10 -0
  195. package/types/unrecognized.d.ts.map +1 -0
  196. package/types/unrecognized.js +26 -0
  197. package/types/unrecognized.js.map +1 -0
  198. package/models/components/imageupdaterequestmultipart.d.ts +0 -67
  199. package/models/components/imageupdaterequestmultipart.d.ts.map +0 -1
  200. package/models/components/imageupdaterequestmultipart.js +0 -105
  201. package/models/components/imageupdaterequestmultipart.js.map +0 -1
  202. package/models/components/paymentlinklineitemoptionvalidationerror.d.ts +0 -24
  203. package/models/components/paymentlinklineitemoptionvalidationerror.d.ts.map +0 -1
  204. package/models/components/paymentlinklineitemoptionvalidationerror.js.map +0 -1
  205. package/models/components/paymentlinklineitemsupdate.d.ts +0 -27
  206. package/models/components/paymentlinklineitemsupdate.d.ts.map +0 -1
  207. package/models/components/paymentlinklineitemsupdate.js.map +0 -1
  208. package/models/components/paymentlinklineitemsvalidationerror.d.ts +0 -22
  209. package/models/components/paymentlinklineitemsvalidationerror.d.ts.map +0 -1
  210. package/models/components/paymentlinklineitemsvalidationerror.js.map +0 -1
  211. package/models/components/paymentlinklineitemvalidationerror.d.ts +0 -31
  212. package/models/components/paymentlinklineitemvalidationerror.d.ts.map +0 -1
  213. package/models/components/paymentlinklineitemvalidationerror.js.map +0 -1
  214. package/src/models/components/imageupdaterequestmultipart.ts +0 -178
  215. package/src/models/components/paymentlinklineitemoptionvalidationerror.ts +0 -78
  216. package/src/models/components/paymentlinklineitemsupdate.ts +0 -66
  217. package/src/models/components/paymentlinklineitemsvalidationerror.ts +0 -62
  218. package/src/models/components/paymentlinklineitemvalidationerror.ts +0 -88
@@ -22,7 +22,7 @@ export const tool$accountsUpdate: ToolDefinition<typeof args> = {
22
22
 
23
23
  If you need to update information in a locked state, please contact Moov support.
24
24
 
25
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
25
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
26
26
  to specify the \`/accounts/{accountID}/profile.write\` scope.`,
27
27
  args,
28
28
  tool: async (client, args, ctx) => {
@@ -12,12 +12,12 @@ const args = {
12
12
 
13
13
  export const tool$applePayUpdateMerchantDomains: ToolDefinition<typeof args> = {
14
14
  name: "apple-pay-update-merchant-domains",
15
- description: `Add or remove domains to be registered with Apple Pay.
15
+ description: `Add or remove domains to be registered with Apple Pay.
16
16
 
17
- Any domains that will be used to accept payments must first be [verified](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains)
17
+ Any domains that will be used to accept payments must first be [verified](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains)
18
18
  with Apple.
19
19
 
20
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
20
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
21
21
  you'll need to specify the \`/accounts/{accountID}/apple-pay.write\` scope.`,
22
22
  args,
23
23
  tool: async (client, args, ctx) => {
@@ -14,7 +14,7 @@ export const tool$brandingUpdate: ToolDefinition<typeof args> = {
14
14
  name: "branding-update",
15
15
  description: `Updates the brand properties for the specified account.
16
16
 
17
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
17
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
18
  you'll need to specify the \`/accounts/{accountID}/branding.write\` scope.`,
19
19
  args,
20
20
  tool: async (client, args, ctx) => {
@@ -14,7 +14,7 @@ export const tool$cardIssuingUpdate: ToolDefinition<typeof args> = {
14
14
  name: "card-issuing-update",
15
15
  description: `Update a Moov issued card.
16
16
 
17
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
17
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
18
  you'll need to specify the \`/accounts/{accountID}/issued-cards.write\` scope.`,
19
19
  args,
20
20
  tool: async (client, args, ctx) => {
@@ -12,18 +12,18 @@ const args = {
12
12
 
13
13
  export const tool$cardsUpdate: ToolDefinition<typeof args> = {
14
14
  name: "cards-update",
15
- description: `Update a linked card and/or resubmit it for verification.
15
+ description: `Update a linked card and/or resubmit it for verification.
16
16
 
17
- If a value is provided for CVV, a new verification ($0 authorization) will be submitted for the card. Updating the expiration
18
- date or
17
+ If a value is provided for CVV, a new verification ($0 authorization) will be submitted for the card. Updating the expiration
18
+ date or
19
19
  address will update the information stored on file for the card but will not be verified.
20
20
 
21
- Read our [accept card payments guide](https://docs.moov.io/guides/sources/cards/accept-card-payments/#reverify-a-card) to learn
21
+ Read our [accept card payments guide](https://docs.moov.io/guides/sources/cards/accept-card-payments/#reverify-a-card) to learn
22
22
  more.
23
23
 
24
- Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
24
+ Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
25
25
 
26
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
26
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
27
27
  you'll need to specify the \`/accounts/{accountID}/cards.write\` scope.`,
28
28
  args,
29
29
  tool: async (client, args, ctx) => {
@@ -15,8 +15,7 @@ export const tool$imagesUpdate: ToolDefinition<typeof args> = {
15
15
  description: `Replace an existing image and, optionally, its metadata.
16
16
 
17
17
  This endpoint replaces the existing image with the new PNG, JPEG, or WebP. Omit
18
- the metadata form section to keep existing metadata, or send \`null\` to clear it.
19
- Duplicate images, and requests larger than 16MB will be rejected.`,
18
+ the metadata form section to keep existing metadata. Duplicate images, and requests larger than 16MB will be rejected.`,
20
19
  args,
21
20
  tool: async (client, args, ctx) => {
22
21
  const [result, apiCall] = await imagesUpdate(
@@ -14,7 +14,7 @@ export const tool$paymentLinksUpdate: ToolDefinition<typeof args> = {
14
14
  name: "payment-links-update",
15
15
  description: `Update a payment link.
16
16
 
17
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
17
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
18
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
19
19
  args,
20
20
  tool: async (client, args, ctx) => {
@@ -13,7 +13,7 @@ const args = {
13
13
  export const tool$representativesUpdate: ToolDefinition<typeof args> = {
14
14
  name: "representatives-update",
15
15
  description:
16
- `If a representative's information has changed you can patch the information associated with a specific representative ID.
16
+ `If a representative's information has changed you can patch the information associated with a specific representative ID.
17
17
  Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
18
18
 
19
19
  When **can** profile data be updated:
@@ -28,7 +28,7 @@ When **can't** profile data be updated:
28
28
 
29
29
  If you need to update information in a locked state, please contact Moov support.
30
30
 
31
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
31
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
32
32
  you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
33
33
  args,
34
34
  tool: async (client, args, ctx) => {
@@ -14,7 +14,7 @@ export const tool$supportUpdateTicket: ToolDefinition<typeof args> = {
14
14
  name: "support-update-ticket",
15
15
  description: `Updates a support ticket.
16
16
 
17
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
17
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
18
  you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
19
19
 
20
20
  If you're updating the ticket on behalf of another account, then you'll need to
@@ -14,7 +14,7 @@ export const tool$sweepsUpdateConfig: ToolDefinition<typeof args> = {
14
14
  name: "sweeps-update-config",
15
15
  description: `Update settings on a sweep config.
16
16
 
17
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
17
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
18
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
19
19
  args,
20
20
  tool: async (client, args, ctx) => {
@@ -12,11 +12,11 @@ const args = {
12
12
 
13
13
  export const tool$transfersUpdate: ToolDefinition<typeof args> = {
14
14
  name: "transfers-update",
15
- description: `Update the metadata contained on a transfer.
15
+ description: `Update the metadata contained on a transfer.
16
16
 
17
- Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
17
+ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
18
18
 
19
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
19
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
20
20
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
21
21
  args,
22
22
  tool: async (client, args, ctx) => {
@@ -17,7 +17,7 @@ export const tool$walletsUpdate: ToolDefinition<typeof args> = {
17
17
 
18
18
  Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
19
19
 
20
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
20
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
21
21
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
22
22
  args,
23
23
  tool: async (client, args, ctx) => {
@@ -24,7 +24,7 @@ export type CreateEvidenceFileMultiPart = {
24
24
  *
25
25
  * @remarks
26
26
  *
27
- * The `Content-Type` header for this form part must be one of the following:
27
+ * The `Content-Type` header for this form part must be one of the following:
28
28
  * - `image/jpeg`
29
29
  * - `image/tiff`
30
30
  * - `application/pdf`
@@ -12,6 +12,12 @@ import {
12
12
  Amount$Outbound,
13
13
  Amount$outboundSchema,
14
14
  } from "./amount.js";
15
+ import {
16
+ CreatePaymentLinkLineItems,
17
+ CreatePaymentLinkLineItems$inboundSchema,
18
+ CreatePaymentLinkLineItems$Outbound,
19
+ CreatePaymentLinkLineItems$outboundSchema,
20
+ } from "./createpaymentlinklineitems.js";
15
21
  import {
16
22
  PaymentLinkCustomerOptions,
17
23
  PaymentLinkCustomerOptions$inboundSchema,
@@ -24,12 +30,6 @@ import {
24
30
  PaymentLinkDisplayOptions$Outbound,
25
31
  PaymentLinkDisplayOptions$outboundSchema,
26
32
  } from "./paymentlinkdisplayoptions.js";
27
- import {
28
- PaymentLinkLineItems,
29
- PaymentLinkLineItems$inboundSchema,
30
- PaymentLinkLineItems$Outbound,
31
- PaymentLinkLineItems$outboundSchema,
32
- } from "./paymentlinklineitems.js";
33
33
  import {
34
34
  PaymentLinkPaymentDetails,
35
35
  PaymentLinkPaymentDetails$inboundSchema,
@@ -51,8 +51,6 @@ import {
51
51
  * A payment link must include either `payment` or `payout` details, but not both. For payout payment links,
52
52
  * `maxUses` will automatically be set to 1, as these are intended for a one-time disbursement
53
53
  * to a specific recipient.
54
- *
55
- * **Note:** The `payout` option is currently under development and is not yet available for general use.
56
54
  */
57
55
  export type CreatePaymentLink = {
58
56
  /**
@@ -92,7 +90,7 @@ export type CreatePaymentLink = {
92
90
  * @remarks
93
91
  * When line items are provided, their total plus sales tax must equal the payment link amount.
94
92
  */
95
- lineItems?: PaymentLinkLineItems | undefined;
93
+ lineItems?: CreatePaymentLinkLineItems | undefined;
96
94
  };
97
95
 
98
96
  /** @internal */
@@ -111,7 +109,7 @@ export const CreatePaymentLink$inboundSchema: z.ZodType<
111
109
  customer: PaymentLinkCustomerOptions$inboundSchema.optional(),
112
110
  payment: PaymentLinkPaymentDetails$inboundSchema.optional(),
113
111
  payout: PaymentLinkPayoutDetails$inboundSchema.optional(),
114
- lineItems: PaymentLinkLineItems$inboundSchema.optional(),
112
+ lineItems: CreatePaymentLinkLineItems$inboundSchema.optional(),
115
113
  });
116
114
  /** @internal */
117
115
  export type CreatePaymentLink$Outbound = {
@@ -124,7 +122,7 @@ export type CreatePaymentLink$Outbound = {
124
122
  customer?: PaymentLinkCustomerOptions$Outbound | undefined;
125
123
  payment?: PaymentLinkPaymentDetails$Outbound | undefined;
126
124
  payout?: PaymentLinkPayoutDetails$Outbound | undefined;
127
- lineItems?: PaymentLinkLineItems$Outbound | undefined;
125
+ lineItems?: CreatePaymentLinkLineItems$Outbound | undefined;
128
126
  };
129
127
 
130
128
  /** @internal */
@@ -142,7 +140,7 @@ export const CreatePaymentLink$outboundSchema: z.ZodType<
142
140
  customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
143
141
  payment: PaymentLinkPaymentDetails$outboundSchema.optional(),
144
142
  payout: PaymentLinkPayoutDetails$outboundSchema.optional(),
145
- lineItems: PaymentLinkLineItems$outboundSchema.optional(),
143
+ lineItems: CreatePaymentLinkLineItems$outboundSchema.optional(),
146
144
  });
147
145
 
148
146
  export function createPaymentLinkToJSON(
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AmountDecimal,
11
+ AmountDecimal$inboundSchema,
12
+ AmountDecimal$Outbound,
13
+ AmountDecimal$outboundSchema,
14
+ } from "./amountdecimal.js";
15
+ import {
16
+ CreatePaymentLinkLineItemOption,
17
+ CreatePaymentLinkLineItemOption$inboundSchema,
18
+ CreatePaymentLinkLineItemOption$Outbound,
19
+ CreatePaymentLinkLineItemOption$outboundSchema,
20
+ } from "./createpaymentlinklineitemoption.js";
21
+
22
+ /**
23
+ * Represents a single line item in a payment link, including optional modifiers and quantity.
24
+ */
25
+ export type CreatePaymentLinkLineItem = {
26
+ /**
27
+ * The name of the item.
28
+ */
29
+ name: string;
30
+ /**
31
+ * The base price of the item before applying option modifiers.
32
+ */
33
+ basePrice: AmountDecimal;
34
+ /**
35
+ * The quantity of this item.
36
+ */
37
+ quantity: number;
38
+ /**
39
+ * Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
40
+ */
41
+ options?: Array<CreatePaymentLinkLineItemOption> | undefined;
42
+ /**
43
+ * Optional list of images associated with this line item.
44
+ */
45
+ imageIDs?: Array<string> | undefined;
46
+ /**
47
+ * Optional unique identifier associating the line item with a product.
48
+ */
49
+ productID?: string | undefined;
50
+ };
51
+
52
+ /** @internal */
53
+ export const CreatePaymentLinkLineItem$inboundSchema: z.ZodType<
54
+ CreatePaymentLinkLineItem,
55
+ z.ZodTypeDef,
56
+ unknown
57
+ > = z.object({
58
+ name: z.string(),
59
+ basePrice: AmountDecimal$inboundSchema,
60
+ quantity: z.number().int(),
61
+ options: z.array(CreatePaymentLinkLineItemOption$inboundSchema).optional(),
62
+ imageIDs: z.array(z.string()).optional(),
63
+ productID: z.string().optional(),
64
+ });
65
+ /** @internal */
66
+ export type CreatePaymentLinkLineItem$Outbound = {
67
+ name: string;
68
+ basePrice: AmountDecimal$Outbound;
69
+ quantity: number;
70
+ options?: Array<CreatePaymentLinkLineItemOption$Outbound> | undefined;
71
+ imageIDs?: Array<string> | undefined;
72
+ productID?: string | undefined;
73
+ };
74
+
75
+ /** @internal */
76
+ export const CreatePaymentLinkLineItem$outboundSchema: z.ZodType<
77
+ CreatePaymentLinkLineItem$Outbound,
78
+ z.ZodTypeDef,
79
+ CreatePaymentLinkLineItem
80
+ > = z.object({
81
+ name: z.string(),
82
+ basePrice: AmountDecimal$outboundSchema,
83
+ quantity: z.number().int(),
84
+ options: z.array(CreatePaymentLinkLineItemOption$outboundSchema).optional(),
85
+ imageIDs: z.array(z.string()).optional(),
86
+ productID: z.string().optional(),
87
+ });
88
+
89
+ export function createPaymentLinkLineItemToJSON(
90
+ createPaymentLinkLineItem: CreatePaymentLinkLineItem,
91
+ ): string {
92
+ return JSON.stringify(
93
+ CreatePaymentLinkLineItem$outboundSchema.parse(createPaymentLinkLineItem),
94
+ );
95
+ }
96
+ export function createPaymentLinkLineItemFromJSON(
97
+ jsonString: string,
98
+ ): SafeParseResult<CreatePaymentLinkLineItem, SDKValidationError> {
99
+ return safeParse(
100
+ jsonString,
101
+ (x) => CreatePaymentLinkLineItem$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'CreatePaymentLinkLineItem' from JSON`,
103
+ );
104
+ }
@@ -0,0 +1,93 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AmountDecimal,
11
+ AmountDecimal$inboundSchema,
12
+ AmountDecimal$Outbound,
13
+ AmountDecimal$outboundSchema,
14
+ } from "./amountdecimal.js";
15
+
16
+ /**
17
+ * Represents a modifier or option applied to a line item.
18
+ */
19
+ export type CreatePaymentLinkLineItemOption = {
20
+ /**
21
+ * The name of the option or modifier.
22
+ */
23
+ name: string;
24
+ /**
25
+ * The quantity of this option.
26
+ */
27
+ quantity: number;
28
+ /**
29
+ * Optional price modification applied by this option. Can be positive, negative, or zero.
30
+ */
31
+ priceModifier?: AmountDecimal | undefined;
32
+ /**
33
+ * Optional list of images associated with this line item option.
34
+ */
35
+ imageIDs?: Array<string> | undefined;
36
+ /**
37
+ * Optional group identifier to categorize related options (e.g., 'toppings').
38
+ */
39
+ group?: string | undefined;
40
+ };
41
+
42
+ /** @internal */
43
+ export const CreatePaymentLinkLineItemOption$inboundSchema: z.ZodType<
44
+ CreatePaymentLinkLineItemOption,
45
+ z.ZodTypeDef,
46
+ unknown
47
+ > = z.object({
48
+ name: z.string(),
49
+ quantity: z.number().int(),
50
+ priceModifier: AmountDecimal$inboundSchema.optional(),
51
+ imageIDs: z.array(z.string()).optional(),
52
+ group: z.string().optional(),
53
+ });
54
+ /** @internal */
55
+ export type CreatePaymentLinkLineItemOption$Outbound = {
56
+ name: string;
57
+ quantity: number;
58
+ priceModifier?: AmountDecimal$Outbound | undefined;
59
+ imageIDs?: Array<string> | undefined;
60
+ group?: string | undefined;
61
+ };
62
+
63
+ /** @internal */
64
+ export const CreatePaymentLinkLineItemOption$outboundSchema: z.ZodType<
65
+ CreatePaymentLinkLineItemOption$Outbound,
66
+ z.ZodTypeDef,
67
+ CreatePaymentLinkLineItemOption
68
+ > = z.object({
69
+ name: z.string(),
70
+ quantity: z.number().int(),
71
+ priceModifier: AmountDecimal$outboundSchema.optional(),
72
+ imageIDs: z.array(z.string()).optional(),
73
+ group: z.string().optional(),
74
+ });
75
+
76
+ export function createPaymentLinkLineItemOptionToJSON(
77
+ createPaymentLinkLineItemOption: CreatePaymentLinkLineItemOption,
78
+ ): string {
79
+ return JSON.stringify(
80
+ CreatePaymentLinkLineItemOption$outboundSchema.parse(
81
+ createPaymentLinkLineItemOption,
82
+ ),
83
+ );
84
+ }
85
+ export function createPaymentLinkLineItemOptionFromJSON(
86
+ jsonString: string,
87
+ ): SafeParseResult<CreatePaymentLinkLineItemOption, SDKValidationError> {
88
+ return safeParse(
89
+ jsonString,
90
+ (x) => CreatePaymentLinkLineItemOption$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'CreatePaymentLinkLineItemOption' from JSON`,
92
+ );
93
+ }
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AmountDecimalValidationError,
11
+ AmountDecimalValidationError$inboundSchema,
12
+ AmountDecimalValidationError$Outbound,
13
+ AmountDecimalValidationError$outboundSchema,
14
+ } from "./amountdecimalvalidationerror.js";
15
+
16
+ export type CreatePaymentLinkLineItemOptionValidationError = {
17
+ name?: string | undefined;
18
+ group?: string | undefined;
19
+ priceModifier?: AmountDecimalValidationError | undefined;
20
+ quantity?: string | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const CreatePaymentLinkLineItemOptionValidationError$inboundSchema:
25
+ z.ZodType<
26
+ CreatePaymentLinkLineItemOptionValidationError,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ name: z.string().optional(),
31
+ group: z.string().optional(),
32
+ priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
33
+ quantity: z.string().optional(),
34
+ });
35
+ /** @internal */
36
+ export type CreatePaymentLinkLineItemOptionValidationError$Outbound = {
37
+ name?: string | undefined;
38
+ group?: string | undefined;
39
+ priceModifier?: AmountDecimalValidationError$Outbound | undefined;
40
+ quantity?: string | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const CreatePaymentLinkLineItemOptionValidationError$outboundSchema:
45
+ z.ZodType<
46
+ CreatePaymentLinkLineItemOptionValidationError$Outbound,
47
+ z.ZodTypeDef,
48
+ CreatePaymentLinkLineItemOptionValidationError
49
+ > = z.object({
50
+ name: z.string().optional(),
51
+ group: z.string().optional(),
52
+ priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
53
+ quantity: z.string().optional(),
54
+ });
55
+
56
+ export function createPaymentLinkLineItemOptionValidationErrorToJSON(
57
+ createPaymentLinkLineItemOptionValidationError:
58
+ CreatePaymentLinkLineItemOptionValidationError,
59
+ ): string {
60
+ return JSON.stringify(
61
+ CreatePaymentLinkLineItemOptionValidationError$outboundSchema.parse(
62
+ createPaymentLinkLineItemOptionValidationError,
63
+ ),
64
+ );
65
+ }
66
+ export function createPaymentLinkLineItemOptionValidationErrorFromJSON(
67
+ jsonString: string,
68
+ ): SafeParseResult<
69
+ CreatePaymentLinkLineItemOptionValidationError,
70
+ SDKValidationError
71
+ > {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) =>
75
+ CreatePaymentLinkLineItemOptionValidationError$inboundSchema.parse(
76
+ JSON.parse(x),
77
+ ),
78
+ `Failed to parse 'CreatePaymentLinkLineItemOptionValidationError' from JSON`,
79
+ );
80
+ }
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ CreatePaymentLinkLineItem,
11
+ CreatePaymentLinkLineItem$inboundSchema,
12
+ CreatePaymentLinkLineItem$Outbound,
13
+ CreatePaymentLinkLineItem$outboundSchema,
14
+ } from "./createpaymentlinklineitem.js";
15
+
16
+ /**
17
+ * An optional collection of line items for a payment link.
18
+ *
19
+ * @remarks
20
+ * When line items are provided, their total plus sales tax must equal the payment link amount.
21
+ */
22
+ export type CreatePaymentLinkLineItems = {
23
+ /**
24
+ * The list of line items.
25
+ */
26
+ items: Array<CreatePaymentLinkLineItem>;
27
+ };
28
+
29
+ /** @internal */
30
+ export const CreatePaymentLinkLineItems$inboundSchema: z.ZodType<
31
+ CreatePaymentLinkLineItems,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ items: z.array(CreatePaymentLinkLineItem$inboundSchema),
36
+ });
37
+ /** @internal */
38
+ export type CreatePaymentLinkLineItems$Outbound = {
39
+ items: Array<CreatePaymentLinkLineItem$Outbound>;
40
+ };
41
+
42
+ /** @internal */
43
+ export const CreatePaymentLinkLineItems$outboundSchema: z.ZodType<
44
+ CreatePaymentLinkLineItems$Outbound,
45
+ z.ZodTypeDef,
46
+ CreatePaymentLinkLineItems
47
+ > = z.object({
48
+ items: z.array(CreatePaymentLinkLineItem$outboundSchema),
49
+ });
50
+
51
+ export function createPaymentLinkLineItemsToJSON(
52
+ createPaymentLinkLineItems: CreatePaymentLinkLineItems,
53
+ ): string {
54
+ return JSON.stringify(
55
+ CreatePaymentLinkLineItems$outboundSchema.parse(createPaymentLinkLineItems),
56
+ );
57
+ }
58
+ export function createPaymentLinkLineItemsFromJSON(
59
+ jsonString: string,
60
+ ): SafeParseResult<CreatePaymentLinkLineItems, SDKValidationError> {
61
+ return safeParse(
62
+ jsonString,
63
+ (x) => CreatePaymentLinkLineItems$inboundSchema.parse(JSON.parse(x)),
64
+ `Failed to parse 'CreatePaymentLinkLineItems' from JSON`,
65
+ );
66
+ }
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ CreatePaymentLinkLineItem,
11
+ CreatePaymentLinkLineItem$inboundSchema,
12
+ CreatePaymentLinkLineItem$Outbound,
13
+ CreatePaymentLinkLineItem$outboundSchema,
14
+ } from "./createpaymentlinklineitem.js";
15
+
16
+ /**
17
+ * An optional collection of line items for a payment link.
18
+ *
19
+ * @remarks
20
+ * When line items are provided, their total plus sales tax must equal the payment link amount.
21
+ */
22
+ export type CreatePaymentLinkLineItemsUpdate = {
23
+ /**
24
+ * The list of line items.
25
+ */
26
+ items?: Array<CreatePaymentLinkLineItem> | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const CreatePaymentLinkLineItemsUpdate$inboundSchema: z.ZodType<
31
+ CreatePaymentLinkLineItemsUpdate,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ items: z.array(CreatePaymentLinkLineItem$inboundSchema).optional(),
36
+ });
37
+ /** @internal */
38
+ export type CreatePaymentLinkLineItemsUpdate$Outbound = {
39
+ items?: Array<CreatePaymentLinkLineItem$Outbound> | undefined;
40
+ };
41
+
42
+ /** @internal */
43
+ export const CreatePaymentLinkLineItemsUpdate$outboundSchema: z.ZodType<
44
+ CreatePaymentLinkLineItemsUpdate$Outbound,
45
+ z.ZodTypeDef,
46
+ CreatePaymentLinkLineItemsUpdate
47
+ > = z.object({
48
+ items: z.array(CreatePaymentLinkLineItem$outboundSchema).optional(),
49
+ });
50
+
51
+ export function createPaymentLinkLineItemsUpdateToJSON(
52
+ createPaymentLinkLineItemsUpdate: CreatePaymentLinkLineItemsUpdate,
53
+ ): string {
54
+ return JSON.stringify(
55
+ CreatePaymentLinkLineItemsUpdate$outboundSchema.parse(
56
+ createPaymentLinkLineItemsUpdate,
57
+ ),
58
+ );
59
+ }
60
+ export function createPaymentLinkLineItemsUpdateFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<CreatePaymentLinkLineItemsUpdate, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) => CreatePaymentLinkLineItemsUpdate$inboundSchema.parse(JSON.parse(x)),
66
+ `Failed to parse 'CreatePaymentLinkLineItemsUpdate' from JSON`,
67
+ );
68
+ }