@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchaccounterror.js","sourceRoot":"","sources":["../../src/models/errors/patchaccounterror.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moovio/sdk",
3
- "version": "0.14.14",
3
+ "version": "0.14.16",
4
4
  "author": "Moov",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/sdk/support.d.ts CHANGED
@@ -6,6 +6,9 @@ export declare class Support extends ClientSDK {
6
6
  *
7
7
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
8
8
  * you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
9
+ *
10
+ * If you're creating the ticket on behalf of another account, then you'll need to
11
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
9
12
  */
10
13
  createTicket(request: operations.CreateTicketRequest, options?: RequestOptions): Promise<operations.CreateTicketResponse>;
11
14
  /**
@@ -13,6 +16,9 @@ export declare class Support extends ClientSDK {
13
16
  *
14
17
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
15
18
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
19
+ *
20
+ * If you're listing another account's tickets, then you'll need to
21
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
16
22
  */
17
23
  listTickets(request: operations.ListTicketsRequest, options?: RequestOptions): Promise<operations.ListTicketsResponse>;
18
24
  /**
@@ -20,6 +26,9 @@ export declare class Support extends ClientSDK {
20
26
  *
21
27
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
22
28
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
29
+ *
30
+ * If you're retrieving another account's ticket, then you'll need to
31
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
23
32
  */
24
33
  getTicket(request: operations.GetTicketRequest, options?: RequestOptions): Promise<operations.GetTicketResponse>;
25
34
  /**
@@ -27,6 +36,9 @@ export declare class Support extends ClientSDK {
27
36
  *
28
37
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
29
38
  * you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
39
+ *
40
+ * If you're updating the ticket on behalf of another account, then you'll need to
41
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
30
42
  */
31
43
  updateTicket(request: operations.UpdateTicketRequest, options?: RequestOptions): Promise<operations.UpdateTicketResponse>;
32
44
  /**
@@ -34,6 +46,9 @@ export declare class Support extends ClientSDK {
34
46
  *
35
47
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
36
48
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
49
+ *
50
+ * If you're listing another account's messages, then you'll need to
51
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
37
52
  */
38
53
  listTicketMessages(request: operations.ListTicketMessagesRequest, options?: RequestOptions): Promise<operations.ListTicketMessagesResponse>;
39
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../src/sdk/support.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
1
+ {"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../src/sdk/support.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;;;;OAQG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;;;;OAQG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;;;OAQG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;;;;OAQG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;;;;OAQG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
package/sdk/support.js CHANGED
@@ -17,6 +17,9 @@ class Support extends sdks_js_1.ClientSDK {
17
17
  *
18
18
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
19
19
  * you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
20
+ *
21
+ * If you're creating the ticket on behalf of another account, then you'll need to
22
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
20
23
  */
21
24
  async createTicket(request, options) {
22
25
  return (0, fp_js_1.unwrapAsync)((0, supportCreateTicket_js_1.supportCreateTicket)(this, request, options));
@@ -26,6 +29,9 @@ class Support extends sdks_js_1.ClientSDK {
26
29
  *
27
30
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
28
31
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
32
+ *
33
+ * If you're listing another account's tickets, then you'll need to
34
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
29
35
  */
30
36
  async listTickets(request, options) {
31
37
  return (0, fp_js_1.unwrapAsync)((0, supportListTickets_js_1.supportListTickets)(this, request, options));
@@ -35,6 +41,9 @@ class Support extends sdks_js_1.ClientSDK {
35
41
  *
36
42
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
37
43
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
44
+ *
45
+ * If you're retrieving another account's ticket, then you'll need to
46
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
38
47
  */
39
48
  async getTicket(request, options) {
40
49
  return (0, fp_js_1.unwrapAsync)((0, supportGetTicket_js_1.supportGetTicket)(this, request, options));
@@ -44,6 +53,9 @@ class Support extends sdks_js_1.ClientSDK {
44
53
  *
45
54
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
46
55
  * you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
56
+ *
57
+ * If you're updating the ticket on behalf of another account, then you'll need to
58
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
47
59
  */
48
60
  async updateTicket(request, options) {
49
61
  return (0, fp_js_1.unwrapAsync)((0, supportUpdateTicket_js_1.supportUpdateTicket)(this, request, options));
@@ -53,6 +65,9 @@ class Support extends sdks_js_1.ClientSDK {
53
65
  *
54
66
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
55
67
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
68
+ *
69
+ * If you're listing another account's messages, then you'll need to
70
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
56
71
  */
57
72
  async listTicketMessages(request, options) {
58
73
  return (0, fp_js_1.unwrapAsync)((0, supportListTicketMessages_js_1.supportListTicketMessages)(this, request, options));
@@ -1 +1 @@
1
- {"version":3,"file":"support.js","sourceRoot":"","sources":["../src/sdk/support.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,sEAAgE;AAChE,wFAAkF;AAClF,0EAAoE;AACpE,4EAAsE;AACtE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AArFD,0BAqFC"}
1
+ {"version":3,"file":"support.js","sourceRoot":"","sources":["../src/sdk/support.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,sEAAgE;AAChE,wFAAkF;AAClF,0EAAoE;AACpE,4EAAsE;AACtE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;;;;OAQG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AApGD,0BAoGC"}
@@ -51,7 +51,7 @@ export function accountsCreate(
51
51
  Result<
52
52
  operations.CreateAccountResponse,
53
53
  | errors.GenericError
54
- | errors.CreateAccountResponseBody
54
+ | errors.CreateAccountError
55
55
  | MoovError
56
56
  | ResponseValidationError
57
57
  | ConnectionError
@@ -78,7 +78,7 @@ async function $do(
78
78
  Result<
79
79
  operations.CreateAccountResponse,
80
80
  | errors.GenericError
81
- | errors.CreateAccountResponseBody
81
+ | errors.CreateAccountError
82
82
  | MoovError
83
83
  | ResponseValidationError
84
84
  | ConnectionError
@@ -177,7 +177,7 @@ async function $do(
177
177
  const [result] = await M.match<
178
178
  operations.CreateAccountResponse,
179
179
  | errors.GenericError
180
- | errors.CreateAccountResponseBody
180
+ | errors.CreateAccountError
181
181
  | MoovError
182
182
  | ResponseValidationError
183
183
  | ConnectionError
@@ -192,9 +192,7 @@ async function $do(
192
192
  key: "Result",
193
193
  }),
194
194
  M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }),
195
- M.jsonErr(422, errors.CreateAccountResponseBody$inboundSchema, {
196
- hdrs: true,
197
- }),
195
+ M.jsonErr(422, errors.CreateAccountError$inboundSchema, { hdrs: true }),
198
196
  M.fail([401, 403, 404, 429]),
199
197
  M.fail([500, 504]),
200
198
  M.fail("4XX"),
@@ -47,7 +47,7 @@ export function accountsUpdate(
47
47
  Result<
48
48
  operations.UpdateAccountResponse,
49
49
  | errors.GenericError
50
- | errors.UpdateAccountResponseBody
50
+ | errors.PatchAccountError
51
51
  | MoovError
52
52
  | ResponseValidationError
53
53
  | ConnectionError
@@ -74,7 +74,7 @@ async function $do(
74
74
  Result<
75
75
  operations.UpdateAccountResponse,
76
76
  | errors.GenericError
77
- | errors.UpdateAccountResponseBody
77
+ | errors.PatchAccountError
78
78
  | MoovError
79
79
  | ResponseValidationError
80
80
  | ConnectionError
@@ -180,7 +180,7 @@ async function $do(
180
180
  const [result] = await M.match<
181
181
  operations.UpdateAccountResponse,
182
182
  | errors.GenericError
183
- | errors.UpdateAccountResponseBody
183
+ | errors.PatchAccountError
184
184
  | MoovError
185
185
  | ResponseValidationError
186
186
  | ConnectionError
@@ -195,9 +195,7 @@ async function $do(
195
195
  key: "Result",
196
196
  }),
197
197
  M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }),
198
- M.jsonErr(422, errors.UpdateAccountResponseBody$inboundSchema, {
199
- hdrs: true,
200
- }),
198
+ M.jsonErr(422, errors.PatchAccountError$inboundSchema, { hdrs: true }),
201
199
  M.fail([401, 403, 404, 429]),
202
200
  M.fail([500, 504]),
203
201
  M.fail("4XX"),
@@ -30,6 +30,9 @@ import { Result } from "../types/fp.js";
30
30
  *
31
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}/tickets.write` scope.
33
+ *
34
+ * If you're creating the ticket on behalf of another account, then you'll need to
35
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
33
36
  */
34
37
  export function supportCreateTicket(
35
38
  client: MoovCore,
@@ -29,6 +29,9 @@ import { Result } from "../types/fp.js";
29
29
  *
30
30
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
31
31
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
32
+ *
33
+ * If you're retrieving another account's ticket, then you'll need to
34
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
32
35
  */
33
36
  export function supportGetTicket(
34
37
  client: MoovCore,
@@ -29,6 +29,9 @@ import { Result } from "../types/fp.js";
29
29
  *
30
30
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
31
31
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
32
+ *
33
+ * If you're listing another account's messages, then you'll need to
34
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
32
35
  */
33
36
  export function supportListTicketMessages(
34
37
  client: MoovCore,
@@ -29,6 +29,9 @@ import { Result } from "../types/fp.js";
29
29
  *
30
30
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
31
31
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
32
+ *
33
+ * If you're listing another account's tickets, then you'll need to
34
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
32
35
  */
33
36
  export function supportListTickets(
34
37
  client: MoovCore,
@@ -30,6 +30,9 @@ import { Result } from "../types/fp.js";
30
30
  *
31
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}/tickets.write` scope.
33
+ *
34
+ * If you're updating the ticket on behalf of another account, then you'll need to
35
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
33
36
  */
34
37
  export function supportUpdateTicket(
35
38
  client: MoovCore,
package/src/lib/config.ts CHANGED
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "latest",
76
- sdkVersion: "0.14.14",
77
- genVersion: "2.662.0",
78
- userAgent: "speakeasy-sdk/typescript 0.14.14 2.662.0 latest @moovio/sdk",
76
+ sdkVersion: "0.14.16",
77
+ genVersion: "2.667.0",
78
+ userAgent: "speakeasy-sdk/typescript 0.14.16 2.667.0 latest @moovio/sdk",
79
79
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.14.14",
22
+ currentVersion: "0.14.16",
23
23
  },
24
24
  });
25
25
 
@@ -168,7 +168,7 @@ export function createMCPServer(deps: {
168
168
  }) {
169
169
  const server = new McpServer({
170
170
  name: "Moov",
171
- version: "0.14.14",
171
+ version: "0.14.16",
172
172
  });
173
173
 
174
174
  const client = new MoovCore({
@@ -15,7 +15,10 @@ export const tool$supportCreateTicket: ToolDefinition<typeof args> = {
15
15
  description: `Create a support ticket for a Moov account.
16
16
 
17
17
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
- you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.`,
18
+ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
19
+
20
+ If you're creating the ticket on behalf of another account, then you'll need to
21
+ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
19
22
  args,
20
23
  tool: async (client, args, ctx) => {
21
24
  const [result, apiCall] = await supportCreateTicket(
@@ -15,7 +15,10 @@ export const tool$supportGetTicket: ToolDefinition<typeof args> = {
15
15
  description: `Retrieve a support ticket by ID.
16
16
 
17
17
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
- you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
18
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
19
+
20
+ If you're retrieving another account's ticket, then you'll need to
21
+ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
19
22
  args,
20
23
  tool: async (client, args, ctx) => {
21
24
  const [result, apiCall] = await supportGetTicket(
@@ -15,7 +15,10 @@ export const tool$supportListTicketMessages: ToolDefinition<typeof args> = {
15
15
  description: `List all the messages for a support ticket.
16
16
 
17
17
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
- you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
18
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
19
+
20
+ If you're listing another account's messages, then you'll need to
21
+ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
19
22
  args,
20
23
  tool: async (client, args, ctx) => {
21
24
  const [result, apiCall] = await supportListTicketMessages(
@@ -15,7 +15,10 @@ export const tool$supportListTickets: ToolDefinition<typeof args> = {
15
15
  description: `List all the support tickets created under a Moov account.
16
16
 
17
17
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
- you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
18
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
19
+
20
+ If you're listing another account's tickets, then you'll need to
21
+ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
19
22
  args,
20
23
  tool: async (client, args, ctx) => {
21
24
  const [result, apiCall] = await supportListTickets(
@@ -15,7 +15,10 @@ export const tool$supportUpdateTicket: ToolDefinition<typeof args> = {
15
15
  description: `Updates a support ticket.
16
16
 
17
17
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
18
- you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.`,
18
+ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
19
+
20
+ If you're updating the ticket on behalf of another account, then you'll need to
21
+ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
19
22
  args,
20
23
  tool: async (client, args, ctx) => {
21
24
  const [result, apiCall] = await supportUpdateTicket(
@@ -118,7 +118,6 @@ export * from "./completemicrodeposits.js";
118
118
  export * from "./contact.js";
119
119
  export * from "./countrieserrors.js";
120
120
  export * from "./createaccount.js";
121
- export * from "./createaccounterror.js";
122
121
  export * from "./createaccountsettings.js";
123
122
  export * from "./createaccounttype.js";
124
123
  export * from "./createapplepaysession.js";
@@ -273,7 +272,6 @@ export * from "./partialscheduleaccount.js";
273
272
  export * from "./partnerpricing.js";
274
273
  export * from "./partnerpricingagreement.js";
275
274
  export * from "./patchaccount.js";
276
- export * from "./patchaccounterror.js";
277
275
  export * from "./patchbusiness.js";
278
276
  export * from "./patchindividual.js";
279
277
  export * from "./patchprofile.js";
@@ -355,6 +353,7 @@ export * from "./sendfundsrtperror.js";
355
353
  export * from "./sentreceipt.js";
356
354
  export * from "./settings.js";
357
355
  export * from "./sourcedestinationoptions.js";
356
+ export * from "./submissionintent.js";
358
357
  export * from "./sweep.js";
359
358
  export * from "./sweepconfig.js";
360
359
  export * from "./sweepconfigpaymentmethod.js";
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const SubmissionIntent = {
9
+ Wait: "wait",
10
+ Submit: "submit",
11
+ } as const;
12
+ export type SubmissionIntent = ClosedEnum<typeof SubmissionIntent>;
13
+
14
+ /** @internal */
15
+ export const SubmissionIntent$inboundSchema: z.ZodNativeEnum<
16
+ typeof SubmissionIntent
17
+ > = z.nativeEnum(SubmissionIntent);
18
+
19
+ /** @internal */
20
+ export const SubmissionIntent$outboundSchema: z.ZodNativeEnum<
21
+ typeof SubmissionIntent
22
+ > = SubmissionIntent$inboundSchema;
23
+
24
+ /**
25
+ * @internal
26
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
+ */
28
+ export namespace SubmissionIntent$ {
29
+ /** @deprecated use `SubmissionIntent$inboundSchema` instead. */
30
+ export const inboundSchema = SubmissionIntent$inboundSchema;
31
+ /** @deprecated use `SubmissionIntent$outboundSchema` instead. */
32
+ export const outboundSchema = SubmissionIntent$outboundSchema;
33
+ }
@@ -39,6 +39,11 @@ import {
39
39
  SendFunds$Outbound,
40
40
  SendFunds$outboundSchema,
41
41
  } from "./sendfunds.js";
42
+ import {
43
+ SubmissionIntent,
44
+ SubmissionIntent$inboundSchema,
45
+ SubmissionIntent$outboundSchema,
46
+ } from "./submissionintent.js";
42
47
  import {
43
48
  VolumeShareByCustomerType,
44
49
  VolumeShareByCustomerType$inboundSchema,
@@ -54,6 +59,7 @@ export type UpsertUnderwriting = {
54
59
  collectFunds?: CollectFunds | undefined;
55
60
  moneyTransfer?: MoneyTransfer | undefined;
56
61
  sendFunds?: SendFunds | undefined;
62
+ submissionIntent?: SubmissionIntent | undefined;
57
63
  };
58
64
 
59
65
  /** @internal */
@@ -69,6 +75,7 @@ export const UpsertUnderwriting$inboundSchema: z.ZodType<
69
75
  collectFunds: CollectFunds$inboundSchema.optional(),
70
76
  moneyTransfer: MoneyTransfer$inboundSchema.optional(),
71
77
  sendFunds: SendFunds$inboundSchema.optional(),
78
+ submissionIntent: SubmissionIntent$inboundSchema.optional(),
72
79
  });
73
80
 
74
81
  /** @internal */
@@ -80,6 +87,7 @@ export type UpsertUnderwriting$Outbound = {
80
87
  collectFunds?: CollectFunds$Outbound | undefined;
81
88
  moneyTransfer?: MoneyTransfer$Outbound | undefined;
82
89
  sendFunds?: SendFunds$Outbound | undefined;
90
+ submissionIntent?: string | undefined;
83
91
  };
84
92
 
85
93
  /** @internal */
@@ -96,6 +104,7 @@ export const UpsertUnderwriting$outboundSchema: z.ZodType<
96
104
  collectFunds: CollectFunds$outboundSchema.optional(),
97
105
  moneyTransfer: MoneyTransfer$outboundSchema.optional(),
98
106
  sendFunds: SendFunds$outboundSchema.optional(),
107
+ submissionIntent: SubmissionIntent$outboundSchema.optional(),
99
108
  });
100
109
 
101
110
  /**
@@ -0,0 +1,122 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import * as components from "../components/index.js";
7
+ import { MoovError } from "./mooverror.js";
8
+
9
+ export type CreateAccountErrorData = {
10
+ accountType?: string | undefined;
11
+ profile?: components.CreateProfileError | undefined;
12
+ metadata?: string | undefined;
13
+ termsOfService?: components.TermsOfServiceError | undefined;
14
+ foreignID?: string | undefined;
15
+ customerSupport?: components.CustomerSupportError | undefined;
16
+ settings?: components.CreateAccountSettings | undefined;
17
+ capabilities?: { [k: string]: string } | undefined;
18
+ };
19
+
20
+ export class CreateAccountError extends MoovError {
21
+ accountType?: string | undefined;
22
+ profile?: components.CreateProfileError | undefined;
23
+ metadata?: string | undefined;
24
+ termsOfService?: components.TermsOfServiceError | undefined;
25
+ foreignID?: string | undefined;
26
+ customerSupport?: components.CustomerSupportError | undefined;
27
+ settings?: components.CreateAccountSettings | undefined;
28
+ capabilities?: { [k: string]: string } | undefined;
29
+
30
+ /** The original data that was passed to this error instance. */
31
+ data$: CreateAccountErrorData;
32
+
33
+ constructor(
34
+ err: CreateAccountErrorData,
35
+ httpMeta: { response: Response; request: Request; body: string },
36
+ ) {
37
+ const message = "message" in err && typeof err.message === "string"
38
+ ? err.message
39
+ : `API error occurred: ${JSON.stringify(err)}`;
40
+ super(message, httpMeta);
41
+ this.data$ = err;
42
+ if (err.accountType != null) this.accountType = err.accountType;
43
+ if (err.profile != null) this.profile = err.profile;
44
+ if (err.metadata != null) this.metadata = err.metadata;
45
+ if (err.termsOfService != null) this.termsOfService = err.termsOfService;
46
+ if (err.foreignID != null) this.foreignID = err.foreignID;
47
+ if (err.customerSupport != null) this.customerSupport = err.customerSupport;
48
+ if (err.settings != null) this.settings = err.settings;
49
+ if (err.capabilities != null) this.capabilities = err.capabilities;
50
+
51
+ this.name = "CreateAccountError";
52
+ }
53
+ }
54
+
55
+ /** @internal */
56
+ export const CreateAccountError$inboundSchema: z.ZodType<
57
+ CreateAccountError,
58
+ z.ZodTypeDef,
59
+ unknown
60
+ > = z.object({
61
+ accountType: z.string().optional(),
62
+ profile: components.CreateProfileError$inboundSchema.optional(),
63
+ metadata: z.string().optional(),
64
+ termsOfService: components.TermsOfServiceError$inboundSchema.optional(),
65
+ foreignID: z.string().optional(),
66
+ customerSupport: components.CustomerSupportError$inboundSchema.optional(),
67
+ settings: components.CreateAccountSettings$inboundSchema.optional(),
68
+ capabilities: z.record(z.string()).optional(),
69
+ request$: z.instanceof(Request),
70
+ response$: z.instanceof(Response),
71
+ body$: z.string(),
72
+ })
73
+ .transform((v) => {
74
+ return new CreateAccountError(v, {
75
+ request: v.request$,
76
+ response: v.response$,
77
+ body: v.body$,
78
+ });
79
+ });
80
+
81
+ /** @internal */
82
+ export type CreateAccountError$Outbound = {
83
+ accountType?: string | undefined;
84
+ profile?: components.CreateProfileError$Outbound | undefined;
85
+ metadata?: string | undefined;
86
+ termsOfService?: components.TermsOfServiceError$Outbound | undefined;
87
+ foreignID?: string | undefined;
88
+ customerSupport?: components.CustomerSupportError$Outbound | undefined;
89
+ settings?: components.CreateAccountSettings$Outbound | undefined;
90
+ capabilities?: { [k: string]: string } | undefined;
91
+ };
92
+
93
+ /** @internal */
94
+ export const CreateAccountError$outboundSchema: z.ZodType<
95
+ CreateAccountError$Outbound,
96
+ z.ZodTypeDef,
97
+ CreateAccountError
98
+ > = z.instanceof(CreateAccountError)
99
+ .transform(v => v.data$)
100
+ .pipe(z.object({
101
+ accountType: z.string().optional(),
102
+ profile: components.CreateProfileError$outboundSchema.optional(),
103
+ metadata: z.string().optional(),
104
+ termsOfService: components.TermsOfServiceError$outboundSchema.optional(),
105
+ foreignID: z.string().optional(),
106
+ customerSupport: components.CustomerSupportError$outboundSchema.optional(),
107
+ settings: components.CreateAccountSettings$outboundSchema.optional(),
108
+ capabilities: z.record(z.string()).optional(),
109
+ }));
110
+
111
+ /**
112
+ * @internal
113
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
114
+ */
115
+ export namespace CreateAccountError$ {
116
+ /** @deprecated use `CreateAccountError$inboundSchema` instead. */
117
+ export const inboundSchema = CreateAccountError$inboundSchema;
118
+ /** @deprecated use `CreateAccountError$outboundSchema` instead. */
119
+ export const outboundSchema = CreateAccountError$outboundSchema;
120
+ /** @deprecated use `CreateAccountError$Outbound` instead. */
121
+ export type Outbound = CreateAccountError$Outbound;
122
+ }
@@ -10,7 +10,7 @@ export * from "./authtokenrequesterror.js";
10
10
  export * from "./bankaccountvalidationerror.js";
11
11
  export * from "./brandvalidationerror.js";
12
12
  export * from "./cardacquiringrefund.js";
13
- export * from "./createaccount.js";
13
+ export * from "./createaccounterror.js";
14
14
  export * from "./createpaymentlinkerror.js";
15
15
  export * from "./createsweepconfigerror.js";
16
16
  export * from "./createticketerror.js";
@@ -23,6 +23,7 @@ export * from "./linkapplepayerror.js";
23
23
  export * from "./linkcarderror.js";
24
24
  export * from "./microdepositvalidationerror.js";
25
25
  export * from "./onboardinginviteerror.js";
26
+ export * from "./patchaccounterror.js";
26
27
  export * from "./patchsweepconfigerror.js";
27
28
  export * from "./refundvalidationerror.js";
28
29
  export * from "./representativevalidationerror.js";
@@ -36,7 +37,6 @@ export * from "./terminalapplicationerror.js";
36
37
  export * from "./transfer.js";
37
38
  export * from "./transferoptionsvalidationerror.js";
38
39
  export * from "./transfervalidationerror.js";
39
- export * from "./updateaccount.js";
40
40
  export * from "./updatecarderror.js";
41
41
  export * from "./updateissuedcarderror.js";
42
42
  export * from "./updatepaymentlinkerror.js";