@moovio/sdk 0.14.14 → 0.14.16

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 (155) hide show
  1. package/README.md +32 -2
  2. package/bin/mcp-server.js +419 -392
  3. package/bin/mcp-server.js.map +31 -32
  4. package/docs/sdks/accounts/README.md +19 -10
  5. package/docs/sdks/accountterminalapplications/README.md +4 -0
  6. package/docs/sdks/adjustments/README.md +2 -0
  7. package/docs/sdks/applepay/README.md +5 -0
  8. package/docs/sdks/authentication/README.md +2 -0
  9. package/docs/sdks/avatars/README.md +1 -0
  10. package/docs/sdks/bankaccounts/README.md +9 -0
  11. package/docs/sdks/branding/README.md +4 -0
  12. package/docs/sdks/capabilities/README.md +4 -0
  13. package/docs/sdks/cardissuing/README.md +5 -0
  14. package/docs/sdks/cards/README.md +5 -0
  15. package/docs/sdks/disputes/README.md +11 -0
  16. package/docs/sdks/endtoendencryption/README.md +2 -0
  17. package/docs/sdks/enrichedaddress/README.md +1 -0
  18. package/docs/sdks/enrichedprofile/README.md +1 -0
  19. package/docs/sdks/feeplans/README.md +7 -0
  20. package/docs/sdks/files/README.md +3 -0
  21. package/docs/sdks/industries/README.md +1 -0
  22. package/docs/sdks/institutions/README.md +2 -0
  23. package/docs/sdks/issuingtransactions/README.md +5 -0
  24. package/docs/sdks/onboarding/README.md +4 -0
  25. package/docs/sdks/paymentlinks/README.md +6 -0
  26. package/docs/sdks/paymentmethods/README.md +2 -0
  27. package/docs/sdks/ping/README.md +1 -0
  28. package/docs/sdks/receipts/README.md +2 -0
  29. package/docs/sdks/representatives/README.md +5 -0
  30. package/docs/sdks/scheduling/README.md +6 -0
  31. package/docs/sdks/support/README.md +35 -0
  32. package/docs/sdks/sweeps/README.md +6 -0
  33. package/docs/sdks/terminalapplications/README.md +5 -0
  34. package/docs/sdks/transfers/README.md +11 -0
  35. package/docs/sdks/underwriting/README.md +3 -0
  36. package/docs/sdks/wallets/README.md +2 -0
  37. package/docs/sdks/wallettransactions/README.md +2 -0
  38. package/examples/package-lock.json +1 -1
  39. package/funcs/accountsCreate.d.ts +1 -1
  40. package/funcs/accountsCreate.d.ts.map +1 -1
  41. package/funcs/accountsCreate.js +1 -3
  42. package/funcs/accountsCreate.js.map +1 -1
  43. package/funcs/accountsUpdate.d.ts +1 -1
  44. package/funcs/accountsUpdate.d.ts.map +1 -1
  45. package/funcs/accountsUpdate.js +1 -3
  46. package/funcs/accountsUpdate.js.map +1 -1
  47. package/funcs/supportCreateTicket.d.ts +3 -0
  48. package/funcs/supportCreateTicket.d.ts.map +1 -1
  49. package/funcs/supportCreateTicket.js +3 -0
  50. package/funcs/supportCreateTicket.js.map +1 -1
  51. package/funcs/supportGetTicket.d.ts +3 -0
  52. package/funcs/supportGetTicket.d.ts.map +1 -1
  53. package/funcs/supportGetTicket.js +3 -0
  54. package/funcs/supportGetTicket.js.map +1 -1
  55. package/funcs/supportListTicketMessages.d.ts +3 -0
  56. package/funcs/supportListTicketMessages.d.ts.map +1 -1
  57. package/funcs/supportListTicketMessages.js +3 -0
  58. package/funcs/supportListTicketMessages.js.map +1 -1
  59. package/funcs/supportListTickets.d.ts +3 -0
  60. package/funcs/supportListTickets.d.ts.map +1 -1
  61. package/funcs/supportListTickets.js +3 -0
  62. package/funcs/supportListTickets.js.map +1 -1
  63. package/funcs/supportUpdateTicket.d.ts +3 -0
  64. package/funcs/supportUpdateTicket.d.ts.map +1 -1
  65. package/funcs/supportUpdateTicket.js +3 -0
  66. package/funcs/supportUpdateTicket.js.map +1 -1
  67. package/jsr.json +1 -1
  68. package/lib/config.d.ts +3 -3
  69. package/lib/config.js +3 -3
  70. package/mcp-server/mcp-server.js +1 -1
  71. package/mcp-server/server.js +1 -1
  72. package/mcp-server/tools/supportCreateTicket.d.ts.map +1 -1
  73. package/mcp-server/tools/supportCreateTicket.js +4 -1
  74. package/mcp-server/tools/supportCreateTicket.js.map +1 -1
  75. package/mcp-server/tools/supportGetTicket.d.ts.map +1 -1
  76. package/mcp-server/tools/supportGetTicket.js +4 -1
  77. package/mcp-server/tools/supportGetTicket.js.map +1 -1
  78. package/mcp-server/tools/supportListTicketMessages.d.ts.map +1 -1
  79. package/mcp-server/tools/supportListTicketMessages.js +4 -1
  80. package/mcp-server/tools/supportListTicketMessages.js.map +1 -1
  81. package/mcp-server/tools/supportListTickets.d.ts.map +1 -1
  82. package/mcp-server/tools/supportListTickets.js +4 -1
  83. package/mcp-server/tools/supportListTickets.js.map +1 -1
  84. package/mcp-server/tools/supportUpdateTicket.d.ts.map +1 -1
  85. package/mcp-server/tools/supportUpdateTicket.js +4 -1
  86. package/mcp-server/tools/supportUpdateTicket.js.map +1 -1
  87. package/models/components/index.d.ts +1 -2
  88. package/models/components/index.d.ts.map +1 -1
  89. package/models/components/index.js +1 -2
  90. package/models/components/index.js.map +1 -1
  91. package/models/components/submissionintent.d.ts +28 -0
  92. package/models/components/submissionintent.d.ts.map +1 -0
  93. package/models/components/submissionintent.js +60 -0
  94. package/models/components/submissionintent.js.map +1 -0
  95. package/models/components/upsertunderwriting.d.ts +3 -0
  96. package/models/components/upsertunderwriting.d.ts.map +1 -1
  97. package/models/components/upsertunderwriting.js +3 -0
  98. package/models/components/upsertunderwriting.js.map +1 -1
  99. package/models/errors/createaccounterror.d.ts +64 -0
  100. package/models/errors/createaccounterror.d.ts.map +1 -0
  101. package/models/{components → errors}/createaccounterror.js +52 -24
  102. package/models/errors/createaccounterror.js.map +1 -0
  103. package/models/errors/index.d.ts +2 -2
  104. package/models/errors/index.d.ts.map +1 -1
  105. package/models/errors/index.js +2 -2
  106. package/models/errors/index.js.map +1 -1
  107. package/models/errors/patchaccounterror.d.ts +52 -0
  108. package/models/errors/patchaccounterror.d.ts.map +1 -0
  109. package/models/{components → errors}/patchaccounterror.js +48 -24
  110. package/models/errors/patchaccounterror.js.map +1 -0
  111. package/package.json +1 -1
  112. package/sdk/support.d.ts +15 -0
  113. package/sdk/support.d.ts.map +1 -1
  114. package/sdk/support.js +15 -0
  115. package/sdk/support.js.map +1 -1
  116. package/src/funcs/accountsCreate.ts +4 -6
  117. package/src/funcs/accountsUpdate.ts +4 -6
  118. package/src/funcs/supportCreateTicket.ts +3 -0
  119. package/src/funcs/supportGetTicket.ts +3 -0
  120. package/src/funcs/supportListTicketMessages.ts +3 -0
  121. package/src/funcs/supportListTickets.ts +3 -0
  122. package/src/funcs/supportUpdateTicket.ts +3 -0
  123. package/src/lib/config.ts +3 -3
  124. package/src/mcp-server/mcp-server.ts +1 -1
  125. package/src/mcp-server/server.ts +1 -1
  126. package/src/mcp-server/tools/supportCreateTicket.ts +4 -1
  127. package/src/mcp-server/tools/supportGetTicket.ts +4 -1
  128. package/src/mcp-server/tools/supportListTicketMessages.ts +4 -1
  129. package/src/mcp-server/tools/supportListTickets.ts +4 -1
  130. package/src/mcp-server/tools/supportUpdateTicket.ts +4 -1
  131. package/src/models/components/index.ts +1 -2
  132. package/src/models/components/submissionintent.ts +33 -0
  133. package/src/models/components/upsertunderwriting.ts +9 -0
  134. package/src/models/errors/createaccounterror.ts +122 -0
  135. package/src/models/errors/index.ts +2 -2
  136. package/src/models/errors/patchaccounterror.ts +110 -0
  137. package/src/sdk/support.ts +15 -0
  138. package/models/components/createaccounterror.d.ts +0 -51
  139. package/models/components/createaccounterror.d.ts.map +0 -1
  140. package/models/components/createaccounterror.js.map +0 -1
  141. package/models/components/patchaccounterror.d.ts +0 -43
  142. package/models/components/patchaccounterror.d.ts.map +0 -1
  143. package/models/components/patchaccounterror.js.map +0 -1
  144. package/models/errors/createaccount.d.ts +0 -43
  145. package/models/errors/createaccount.d.ts.map +0 -1
  146. package/models/errors/createaccount.js +0 -89
  147. package/models/errors/createaccount.js.map +0 -1
  148. package/models/errors/updateaccount.d.ts +0 -43
  149. package/models/errors/updateaccount.d.ts.map +0 -1
  150. package/models/errors/updateaccount.js +0 -89
  151. package/models/errors/updateaccount.js.map +0 -1
  152. package/src/models/components/createaccounterror.ts +0 -118
  153. package/src/models/components/patchaccounterror.ts +0 -110
  154. package/src/models/errors/createaccount.ts +0 -86
  155. package/src/models/errors/updateaccount.ts +0 -86
package/README.md CHANGED
@@ -944,23 +944,38 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
944
944
 
945
945
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
946
946
  you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
947
+
948
+ If you're creating the ticket on behalf of another account, then you'll need to
949
+ specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
947
950
  * [listTickets](docs/sdks/support/README.md#listtickets) - List all the support tickets created under a Moov account.
948
951
 
949
952
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
950
953
  you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
954
+
955
+ If you're listing another account's tickets, then you'll need to
956
+ specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
951
957
  * [getTicket](docs/sdks/support/README.md#getticket) - Retrieve a support ticket by ID.
952
958
 
953
959
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
954
960
  you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
961
+
962
+ If you're retrieving another account's ticket, then you'll need to
963
+ specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
955
964
  * [updateTicket](docs/sdks/support/README.md#updateticket) - Updates a support ticket.
956
965
 
957
966
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
958
967
  you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
968
+
969
+ If you're updating the ticket on behalf of another account, then you'll need to
970
+ specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
959
971
  * [listTicketMessages](docs/sdks/support/README.md#listticketmessages) - List all the messages for a support ticket.
960
972
 
961
973
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
962
974
  you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
963
975
 
976
+ If you're listing another account's messages, then you'll need to
977
+ specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
978
+
964
979
  ### [sweeps](docs/sdks/sweeps/README.md)
965
980
 
966
981
  * [createConfig](docs/sdks/sweeps/README.md#createconfig) - Create a sweep config for a wallet.
@@ -1762,22 +1777,37 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
1762
1777
 
1763
1778
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1764
1779
  you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
1780
+
1781
+ If you're creating the ticket on behalf of another account, then you'll need to
1782
+ specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
1765
1783
  - [`supportGetTicket`](docs/sdks/support/README.md#getticket) - Retrieve a support ticket by ID.
1766
1784
 
1767
1785
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1768
1786
  you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
1787
+
1788
+ If you're retrieving another account's ticket, then you'll need to
1789
+ specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
1769
1790
  - [`supportListTicketMessages`](docs/sdks/support/README.md#listticketmessages) - List all the messages for a support ticket.
1770
1791
 
1771
1792
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1772
1793
  you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
1794
+
1795
+ If you're listing another account's messages, then you'll need to
1796
+ specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
1773
1797
  - [`supportListTickets`](docs/sdks/support/README.md#listtickets) - List all the support tickets created under a Moov account.
1774
1798
 
1775
1799
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1776
1800
  you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
1801
+
1802
+ If you're listing another account's tickets, then you'll need to
1803
+ specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
1777
1804
  - [`supportUpdateTicket`](docs/sdks/support/README.md#updateticket) - Updates a support ticket.
1778
1805
 
1779
1806
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1780
1807
  you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
1808
+
1809
+ If you're updating the ticket on behalf of another account, then you'll need to
1810
+ specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
1781
1811
  - [`sweepsCreateConfig`](docs/sdks/sweeps/README.md#createconfig) - Create a sweep config for a wallet.
1782
1812
 
1783
1813
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -2147,8 +2177,8 @@ run();
2147
2177
  * [`TerminalApplicationError`](./src/models/errors/terminalapplicationerror.ts): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 2 of 143 methods.*
2148
2178
  * [`Transfer`](./src/models/errors/transfer.ts): Details of a Transfer. Status code `409`. Applicable to 1 of 143 methods.*
2149
2179
  * [`CardAcquiringRefund`](./src/models/errors/cardacquiringrefund.ts): Details of a card refund. Status code `409`. Applicable to 1 of 143 methods.*
2150
- * [`CreateAccountResponseBody`](./src/models/errors/createaccountresponsebody.ts): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 143 methods.*
2151
- * [`UpdateAccountResponseBody`](./src/models/errors/updateaccountresponsebody.ts): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 143 methods.*
2180
+ * [`CreateAccountError`](./src/models/errors/createaccounterror.ts): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 143 methods.*
2181
+ * [`PatchAccountError`](./src/models/errors/patchaccounterror.ts): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 143 methods.*
2152
2182
  * [`AssignCountriesError`](./src/models/errors/assigncountrieserror.ts): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 143 methods.*
2153
2183
  * [`LinkApplePayError`](./src/models/errors/linkapplepayerror.ts): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 143 methods.*
2154
2184
  * [`BankAccountValidationError`](./src/models/errors/bankaccountvalidationerror.ts): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 143 methods.*