@moovio/sdk 0.14.15 → 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 (145) hide show
  1. package/README.md +32 -2
  2. package/bin/mcp-server.js +397 -390
  3. package/bin/mcp-server.js.map +29 -31
  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 +0 -2
  88. package/models/components/index.d.ts.map +1 -1
  89. package/models/components/index.js +0 -2
  90. package/models/components/index.js.map +1 -1
  91. package/models/errors/createaccounterror.d.ts +64 -0
  92. package/models/errors/createaccounterror.d.ts.map +1 -0
  93. package/models/{components → errors}/createaccounterror.js +52 -24
  94. package/models/errors/createaccounterror.js.map +1 -0
  95. package/models/errors/index.d.ts +2 -2
  96. package/models/errors/index.d.ts.map +1 -1
  97. package/models/errors/index.js +2 -2
  98. package/models/errors/index.js.map +1 -1
  99. package/models/errors/patchaccounterror.d.ts +52 -0
  100. package/models/errors/patchaccounterror.d.ts.map +1 -0
  101. package/models/{components → errors}/patchaccounterror.js +48 -24
  102. package/models/errors/patchaccounterror.js.map +1 -0
  103. package/package.json +1 -1
  104. package/sdk/support.d.ts +15 -0
  105. package/sdk/support.d.ts.map +1 -1
  106. package/sdk/support.js +15 -0
  107. package/sdk/support.js.map +1 -1
  108. package/src/funcs/accountsCreate.ts +4 -6
  109. package/src/funcs/accountsUpdate.ts +4 -6
  110. package/src/funcs/supportCreateTicket.ts +3 -0
  111. package/src/funcs/supportGetTicket.ts +3 -0
  112. package/src/funcs/supportListTicketMessages.ts +3 -0
  113. package/src/funcs/supportListTickets.ts +3 -0
  114. package/src/funcs/supportUpdateTicket.ts +3 -0
  115. package/src/lib/config.ts +3 -3
  116. package/src/mcp-server/mcp-server.ts +1 -1
  117. package/src/mcp-server/server.ts +1 -1
  118. package/src/mcp-server/tools/supportCreateTicket.ts +4 -1
  119. package/src/mcp-server/tools/supportGetTicket.ts +4 -1
  120. package/src/mcp-server/tools/supportListTicketMessages.ts +4 -1
  121. package/src/mcp-server/tools/supportListTickets.ts +4 -1
  122. package/src/mcp-server/tools/supportUpdateTicket.ts +4 -1
  123. package/src/models/components/index.ts +0 -2
  124. package/src/models/errors/createaccounterror.ts +122 -0
  125. package/src/models/errors/index.ts +2 -2
  126. package/src/models/errors/patchaccounterror.ts +110 -0
  127. package/src/sdk/support.ts +15 -0
  128. package/models/components/createaccounterror.d.ts +0 -51
  129. package/models/components/createaccounterror.d.ts.map +0 -1
  130. package/models/components/createaccounterror.js.map +0 -1
  131. package/models/components/patchaccounterror.d.ts +0 -43
  132. package/models/components/patchaccounterror.d.ts.map +0 -1
  133. package/models/components/patchaccounterror.js.map +0 -1
  134. package/models/errors/createaccount.d.ts +0 -43
  135. package/models/errors/createaccount.d.ts.map +0 -1
  136. package/models/errors/createaccount.js +0 -89
  137. package/models/errors/createaccount.js.map +0 -1
  138. package/models/errors/updateaccount.d.ts +0 -43
  139. package/models/errors/updateaccount.d.ts.map +0 -1
  140. package/models/errors/updateaccount.js +0 -89
  141. package/models/errors/updateaccount.js.map +0 -1
  142. package/src/models/components/createaccounterror.ts +0 -118
  143. package/src/models/components/patchaccounterror.ts +0 -110
  144. package/src/models/errors/createaccount.ts +0 -86
  145. package/src/models/errors/updateaccount.ts +0 -86
package/bin/mcp-server.js CHANGED
@@ -34175,9 +34175,9 @@ var init_config = __esm(() => {
34175
34175
  SDK_METADATA = {
34176
34176
  language: "typescript",
34177
34177
  openapiDocVersion: "latest",
34178
- sdkVersion: "0.14.15",
34179
- genVersion: "2.666.0",
34180
- userAgent: "speakeasy-sdk/typescript 0.14.15 2.666.0 latest @moovio/sdk"
34178
+ sdkVersion: "0.14.16",
34179
+ genVersion: "2.667.0",
34180
+ userAgent: "speakeasy-sdk/typescript 0.14.16 2.667.0 latest @moovio/sdk"
34181
34181
  };
34182
34182
  });
34183
34183
 
@@ -39821,6 +39821,87 @@ var init_createaccountsettings = __esm(() => {
39821
39821
  })(CreateAccountSettings$ ||= {});
39822
39822
  });
39823
39823
 
39824
+ // src/models/components/createapplepaysession.ts
39825
+ var CreateApplePaySession$inboundSchema, CreateApplePaySession$outboundSchema, CreateApplePaySession$;
39826
+ var init_createapplepaysession = __esm(() => {
39827
+ init_esm();
39828
+ CreateApplePaySession$inboundSchema = objectType({
39829
+ domain: stringType(),
39830
+ displayName: stringType()
39831
+ });
39832
+ CreateApplePaySession$outboundSchema = objectType({
39833
+ domain: stringType(),
39834
+ displayName: stringType()
39835
+ });
39836
+ ((CreateApplePaySession$) => {
39837
+ CreateApplePaySession$.inboundSchema = CreateApplePaySession$inboundSchema;
39838
+ CreateApplePaySession$.outboundSchema = CreateApplePaySession$outboundSchema;
39839
+ })(CreateApplePaySession$ ||= {});
39840
+ });
39841
+
39842
+ // src/models/components/createauthorizeduser.ts
39843
+ var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema, CreateAuthorizedUser$;
39844
+ var init_createauthorizeduser = __esm(() => {
39845
+ init_esm();
39846
+ init_birthdate();
39847
+ CreateAuthorizedUser$inboundSchema = objectType({
39848
+ firstName: stringType(),
39849
+ lastName: stringType(),
39850
+ birthDate: BirthDate$inboundSchema.optional()
39851
+ });
39852
+ CreateAuthorizedUser$outboundSchema = objectType({
39853
+ firstName: stringType(),
39854
+ lastName: stringType(),
39855
+ birthDate: BirthDate$outboundSchema.optional()
39856
+ });
39857
+ ((CreateAuthorizedUser$) => {
39858
+ CreateAuthorizedUser$.inboundSchema = CreateAuthorizedUser$inboundSchema;
39859
+ CreateAuthorizedUser$.outboundSchema = CreateAuthorizedUser$outboundSchema;
39860
+ })(CreateAuthorizedUser$ ||= {});
39861
+ });
39862
+
39863
+ // src/models/components/createauthorizedusererror.ts
39864
+ var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema, CreateAuthorizedUserError$;
39865
+ var init_createauthorizedusererror = __esm(() => {
39866
+ init_esm();
39867
+ init_birthdateerror();
39868
+ CreateAuthorizedUserError$inboundSchema = objectType({
39869
+ firstName: stringType().optional(),
39870
+ lastName: stringType().optional(),
39871
+ birthDate: BirthDateError$inboundSchema.optional()
39872
+ });
39873
+ CreateAuthorizedUserError$outboundSchema = objectType({
39874
+ firstName: stringType().optional(),
39875
+ lastName: stringType().optional(),
39876
+ birthDate: BirthDateError$outboundSchema.optional()
39877
+ });
39878
+ ((CreateAuthorizedUserError$) => {
39879
+ CreateAuthorizedUserError$.inboundSchema = CreateAuthorizedUserError$inboundSchema;
39880
+ CreateAuthorizedUserError$.outboundSchema = CreateAuthorizedUserError$outboundSchema;
39881
+ })(CreateAuthorizedUserError$ ||= {});
39882
+ });
39883
+
39884
+ // src/models/components/createauthorizeduserupdate.ts
39885
+ var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema, CreateAuthorizedUserUpdate$;
39886
+ var init_createauthorizeduserupdate = __esm(() => {
39887
+ init_esm();
39888
+ init_birthdateupdate();
39889
+ CreateAuthorizedUserUpdate$inboundSchema = objectType({
39890
+ firstName: stringType().optional(),
39891
+ lastName: stringType().optional(),
39892
+ birthDate: BirthDateUpdate$inboundSchema.optional()
39893
+ });
39894
+ CreateAuthorizedUserUpdate$outboundSchema = objectType({
39895
+ firstName: stringType().optional(),
39896
+ lastName: stringType().optional(),
39897
+ birthDate: BirthDateUpdate$outboundSchema.optional()
39898
+ });
39899
+ ((CreateAuthorizedUserUpdate$) => {
39900
+ CreateAuthorizedUserUpdate$.inboundSchema = CreateAuthorizedUserUpdate$inboundSchema;
39901
+ CreateAuthorizedUserUpdate$.outboundSchema = CreateAuthorizedUserUpdate$outboundSchema;
39902
+ })(CreateAuthorizedUserUpdate$ ||= {});
39903
+ });
39904
+
39824
39905
  // src/models/components/phonenumbererror.ts
39825
39906
  var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema, PhoneNumberError$;
39826
39907
  var init_phonenumbererror = __esm(() => {
@@ -39911,287 +39992,6 @@ var init_createbusinesserror = __esm(() => {
39911
39992
  })(CreateBusinessError$ ||= {});
39912
39993
  });
39913
39994
 
39914
- // src/models/components/individualnameerror.ts
39915
- var IndividualNameError$inboundSchema, IndividualNameError$outboundSchema, IndividualNameError$;
39916
- var init_individualnameerror = __esm(() => {
39917
- init_esm();
39918
- IndividualNameError$inboundSchema = objectType({
39919
- firstName: stringType().optional(),
39920
- middleName: stringType().optional(),
39921
- lastName: stringType().optional(),
39922
- suffix: stringType().optional()
39923
- });
39924
- IndividualNameError$outboundSchema = objectType({
39925
- firstName: stringType().optional(),
39926
- middleName: stringType().optional(),
39927
- lastName: stringType().optional(),
39928
- suffix: stringType().optional()
39929
- });
39930
- ((IndividualNameError$) => {
39931
- IndividualNameError$.inboundSchema = IndividualNameError$inboundSchema;
39932
- IndividualNameError$.outboundSchema = IndividualNameError$outboundSchema;
39933
- })(IndividualNameError$ ||= {});
39934
- });
39935
-
39936
- // src/models/components/createindividualerror.ts
39937
- var CreateIndividualErrorSsn$inboundSchema, CreateIndividualErrorSsn$outboundSchema, CreateIndividualErrorSsn$, CreateIndividualErrorItin$inboundSchema, CreateIndividualErrorItin$outboundSchema, CreateIndividualErrorItin$, CreateIndividualErrorGovernmentID$inboundSchema, CreateIndividualErrorGovernmentID$outboundSchema, CreateIndividualErrorGovernmentID$, CreateIndividualError$inboundSchema, CreateIndividualError$outboundSchema, CreateIndividualError$;
39938
- var init_createindividualerror = __esm(() => {
39939
- init_esm();
39940
- init_addresserror();
39941
- init_birthdateerror();
39942
- init_individualnameerror();
39943
- init_phonenumbererror();
39944
- CreateIndividualErrorSsn$inboundSchema = objectType({
39945
- full: stringType().optional(),
39946
- lastFour: stringType().optional()
39947
- });
39948
- CreateIndividualErrorSsn$outboundSchema = objectType({
39949
- full: stringType().optional(),
39950
- lastFour: stringType().optional()
39951
- });
39952
- ((CreateIndividualErrorSsn$) => {
39953
- CreateIndividualErrorSsn$.inboundSchema = CreateIndividualErrorSsn$inboundSchema;
39954
- CreateIndividualErrorSsn$.outboundSchema = CreateIndividualErrorSsn$outboundSchema;
39955
- })(CreateIndividualErrorSsn$ ||= {});
39956
- CreateIndividualErrorItin$inboundSchema = objectType({
39957
- full: stringType().optional(),
39958
- lastFour: stringType().optional()
39959
- });
39960
- CreateIndividualErrorItin$outboundSchema = objectType({
39961
- full: stringType().optional(),
39962
- lastFour: stringType().optional()
39963
- });
39964
- ((CreateIndividualErrorItin$) => {
39965
- CreateIndividualErrorItin$.inboundSchema = CreateIndividualErrorItin$inboundSchema;
39966
- CreateIndividualErrorItin$.outboundSchema = CreateIndividualErrorItin$outboundSchema;
39967
- })(CreateIndividualErrorItin$ ||= {});
39968
- CreateIndividualErrorGovernmentID$inboundSchema = objectType({
39969
- ssn: lazyType(() => CreateIndividualErrorSsn$inboundSchema).optional(),
39970
- itin: lazyType(() => CreateIndividualErrorItin$inboundSchema).optional()
39971
- });
39972
- CreateIndividualErrorGovernmentID$outboundSchema = objectType({
39973
- ssn: lazyType(() => CreateIndividualErrorSsn$outboundSchema).optional(),
39974
- itin: lazyType(() => CreateIndividualErrorItin$outboundSchema).optional()
39975
- });
39976
- ((CreateIndividualErrorGovernmentID$) => {
39977
- CreateIndividualErrorGovernmentID$.inboundSchema = CreateIndividualErrorGovernmentID$inboundSchema;
39978
- CreateIndividualErrorGovernmentID$.outboundSchema = CreateIndividualErrorGovernmentID$outboundSchema;
39979
- })(CreateIndividualErrorGovernmentID$ ||= {});
39980
- CreateIndividualError$inboundSchema = objectType({
39981
- name: IndividualNameError$inboundSchema.optional(),
39982
- phone: PhoneNumberError$inboundSchema.optional(),
39983
- email: stringType().optional(),
39984
- address: AddressError$inboundSchema.optional(),
39985
- birthDate: BirthDateError$inboundSchema.optional(),
39986
- governmentID: lazyType(() => CreateIndividualErrorGovernmentID$inboundSchema).optional()
39987
- });
39988
- CreateIndividualError$outboundSchema = objectType({
39989
- name: IndividualNameError$outboundSchema.optional(),
39990
- phone: PhoneNumberError$outboundSchema.optional(),
39991
- email: stringType().optional(),
39992
- address: AddressError$outboundSchema.optional(),
39993
- birthDate: BirthDateError$outboundSchema.optional(),
39994
- governmentID: lazyType(() => CreateIndividualErrorGovernmentID$outboundSchema).optional()
39995
- });
39996
- ((CreateIndividualError$) => {
39997
- CreateIndividualError$.inboundSchema = CreateIndividualError$inboundSchema;
39998
- CreateIndividualError$.outboundSchema = CreateIndividualError$outboundSchema;
39999
- })(CreateIndividualError$ ||= {});
40000
- });
40001
-
40002
- // src/models/components/createprofileerror.ts
40003
- var CreateProfileError$inboundSchema, CreateProfileError$outboundSchema, CreateProfileError$;
40004
- var init_createprofileerror = __esm(() => {
40005
- init_esm();
40006
- init_createbusinesserror();
40007
- init_createindividualerror();
40008
- CreateProfileError$inboundSchema = objectType({
40009
- individual: CreateIndividualError$inboundSchema.optional(),
40010
- business: CreateBusinessError$inboundSchema.optional()
40011
- });
40012
- CreateProfileError$outboundSchema = objectType({
40013
- individual: CreateIndividualError$outboundSchema.optional(),
40014
- business: CreateBusinessError$outboundSchema.optional()
40015
- });
40016
- ((CreateProfileError$) => {
40017
- CreateProfileError$.inboundSchema = CreateProfileError$inboundSchema;
40018
- CreateProfileError$.outboundSchema = CreateProfileError$outboundSchema;
40019
- })(CreateProfileError$ ||= {});
40020
- });
40021
-
40022
- // src/models/components/customersupporterror.ts
40023
- var CustomerSupportError$inboundSchema, CustomerSupportError$outboundSchema, CustomerSupportError$;
40024
- var init_customersupporterror = __esm(() => {
40025
- init_esm();
40026
- init_addresserror();
40027
- init_phonenumbererror();
40028
- CustomerSupportError$inboundSchema = objectType({
40029
- phone: PhoneNumberError$inboundSchema.optional(),
40030
- email: stringType().optional(),
40031
- address: AddressError$inboundSchema.optional(),
40032
- website: stringType().optional()
40033
- });
40034
- CustomerSupportError$outboundSchema = objectType({
40035
- phone: PhoneNumberError$outboundSchema.optional(),
40036
- email: stringType().optional(),
40037
- address: AddressError$outboundSchema.optional(),
40038
- website: stringType().optional()
40039
- });
40040
- ((CustomerSupportError$) => {
40041
- CustomerSupportError$.inboundSchema = CustomerSupportError$inboundSchema;
40042
- CustomerSupportError$.outboundSchema = CustomerSupportError$outboundSchema;
40043
- })(CustomerSupportError$ ||= {});
40044
- });
40045
-
40046
- // src/models/components/termsofserviceerror.ts
40047
- var Manual$inboundSchema, Manual$outboundSchema, Manual$, TermsOfServiceError$inboundSchema, TermsOfServiceError$outboundSchema, TermsOfServiceError$;
40048
- var init_termsofserviceerror = __esm(() => {
40049
- init_esm();
40050
- Manual$inboundSchema = objectType({
40051
- acceptedDate: stringType().optional(),
40052
- acceptedDomain: stringType().optional(),
40053
- acceptedIP: stringType().optional(),
40054
- acceptedUserAgent: stringType().optional()
40055
- });
40056
- Manual$outboundSchema = objectType({
40057
- acceptedDate: stringType().optional(),
40058
- acceptedDomain: stringType().optional(),
40059
- acceptedIP: stringType().optional(),
40060
- acceptedUserAgent: stringType().optional()
40061
- });
40062
- ((Manual$) => {
40063
- Manual$.inboundSchema = Manual$inboundSchema;
40064
- Manual$.outboundSchema = Manual$outboundSchema;
40065
- })(Manual$ ||= {});
40066
- TermsOfServiceError$inboundSchema = objectType({
40067
- token: stringType().optional(),
40068
- manual: lazyType(() => Manual$inboundSchema).optional()
40069
- });
40070
- TermsOfServiceError$outboundSchema = objectType({
40071
- token: stringType().optional(),
40072
- manual: lazyType(() => Manual$outboundSchema).optional()
40073
- });
40074
- ((TermsOfServiceError$) => {
40075
- TermsOfServiceError$.inboundSchema = TermsOfServiceError$inboundSchema;
40076
- TermsOfServiceError$.outboundSchema = TermsOfServiceError$outboundSchema;
40077
- })(TermsOfServiceError$ ||= {});
40078
- });
40079
-
40080
- // src/models/components/createaccounterror.ts
40081
- var CreateAccountError$inboundSchema, CreateAccountError$outboundSchema, CreateAccountError$;
40082
- var init_createaccounterror = __esm(() => {
40083
- init_esm();
40084
- init_createaccountsettings();
40085
- init_createprofileerror();
40086
- init_customersupporterror();
40087
- init_termsofserviceerror();
40088
- CreateAccountError$inboundSchema = objectType({
40089
- accountType: stringType().optional(),
40090
- profile: CreateProfileError$inboundSchema.optional(),
40091
- metadata: stringType().optional(),
40092
- termsOfService: TermsOfServiceError$inboundSchema.optional(),
40093
- foreignID: stringType().optional(),
40094
- customerSupport: CustomerSupportError$inboundSchema.optional(),
40095
- settings: CreateAccountSettings$inboundSchema.optional(),
40096
- capabilities: recordType(stringType()).optional()
40097
- });
40098
- CreateAccountError$outboundSchema = objectType({
40099
- accountType: stringType().optional(),
40100
- profile: CreateProfileError$outboundSchema.optional(),
40101
- metadata: stringType().optional(),
40102
- termsOfService: TermsOfServiceError$outboundSchema.optional(),
40103
- foreignID: stringType().optional(),
40104
- customerSupport: CustomerSupportError$outboundSchema.optional(),
40105
- settings: CreateAccountSettings$outboundSchema.optional(),
40106
- capabilities: recordType(stringType()).optional()
40107
- });
40108
- ((CreateAccountError$) => {
40109
- CreateAccountError$.inboundSchema = CreateAccountError$inboundSchema;
40110
- CreateAccountError$.outboundSchema = CreateAccountError$outboundSchema;
40111
- })(CreateAccountError$ ||= {});
40112
- });
40113
-
40114
- // src/models/components/createapplepaysession.ts
40115
- var CreateApplePaySession$inboundSchema, CreateApplePaySession$outboundSchema, CreateApplePaySession$;
40116
- var init_createapplepaysession = __esm(() => {
40117
- init_esm();
40118
- CreateApplePaySession$inboundSchema = objectType({
40119
- domain: stringType(),
40120
- displayName: stringType()
40121
- });
40122
- CreateApplePaySession$outboundSchema = objectType({
40123
- domain: stringType(),
40124
- displayName: stringType()
40125
- });
40126
- ((CreateApplePaySession$) => {
40127
- CreateApplePaySession$.inboundSchema = CreateApplePaySession$inboundSchema;
40128
- CreateApplePaySession$.outboundSchema = CreateApplePaySession$outboundSchema;
40129
- })(CreateApplePaySession$ ||= {});
40130
- });
40131
-
40132
- // src/models/components/createauthorizeduser.ts
40133
- var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema, CreateAuthorizedUser$;
40134
- var init_createauthorizeduser = __esm(() => {
40135
- init_esm();
40136
- init_birthdate();
40137
- CreateAuthorizedUser$inboundSchema = objectType({
40138
- firstName: stringType(),
40139
- lastName: stringType(),
40140
- birthDate: BirthDate$inboundSchema.optional()
40141
- });
40142
- CreateAuthorizedUser$outboundSchema = objectType({
40143
- firstName: stringType(),
40144
- lastName: stringType(),
40145
- birthDate: BirthDate$outboundSchema.optional()
40146
- });
40147
- ((CreateAuthorizedUser$) => {
40148
- CreateAuthorizedUser$.inboundSchema = CreateAuthorizedUser$inboundSchema;
40149
- CreateAuthorizedUser$.outboundSchema = CreateAuthorizedUser$outboundSchema;
40150
- })(CreateAuthorizedUser$ ||= {});
40151
- });
40152
-
40153
- // src/models/components/createauthorizedusererror.ts
40154
- var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema, CreateAuthorizedUserError$;
40155
- var init_createauthorizedusererror = __esm(() => {
40156
- init_esm();
40157
- init_birthdateerror();
40158
- CreateAuthorizedUserError$inboundSchema = objectType({
40159
- firstName: stringType().optional(),
40160
- lastName: stringType().optional(),
40161
- birthDate: BirthDateError$inboundSchema.optional()
40162
- });
40163
- CreateAuthorizedUserError$outboundSchema = objectType({
40164
- firstName: stringType().optional(),
40165
- lastName: stringType().optional(),
40166
- birthDate: BirthDateError$outboundSchema.optional()
40167
- });
40168
- ((CreateAuthorizedUserError$) => {
40169
- CreateAuthorizedUserError$.inboundSchema = CreateAuthorizedUserError$inboundSchema;
40170
- CreateAuthorizedUserError$.outboundSchema = CreateAuthorizedUserError$outboundSchema;
40171
- })(CreateAuthorizedUserError$ ||= {});
40172
- });
40173
-
40174
- // src/models/components/createauthorizeduserupdate.ts
40175
- var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema, CreateAuthorizedUserUpdate$;
40176
- var init_createauthorizeduserupdate = __esm(() => {
40177
- init_esm();
40178
- init_birthdateupdate();
40179
- CreateAuthorizedUserUpdate$inboundSchema = objectType({
40180
- firstName: stringType().optional(),
40181
- lastName: stringType().optional(),
40182
- birthDate: BirthDateUpdate$inboundSchema.optional()
40183
- });
40184
- CreateAuthorizedUserUpdate$outboundSchema = objectType({
40185
- firstName: stringType().optional(),
40186
- lastName: stringType().optional(),
40187
- birthDate: BirthDateUpdate$outboundSchema.optional()
40188
- });
40189
- ((CreateAuthorizedUserUpdate$) => {
40190
- CreateAuthorizedUserUpdate$.inboundSchema = CreateAuthorizedUserUpdate$inboundSchema;
40191
- CreateAuthorizedUserUpdate$.outboundSchema = CreateAuthorizedUserUpdate$outboundSchema;
40192
- })(CreateAuthorizedUserUpdate$ ||= {});
40193
- });
40194
-
40195
39995
  // src/models/components/facilitatorfee.ts
40196
39996
  var FacilitatorFee$inboundSchema, FacilitatorFee$outboundSchema, FacilitatorFee$;
40197
39997
  var init_facilitatorfee = __esm(() => {
@@ -40673,6 +40473,94 @@ var init_createfeeplanagreement = __esm(() => {
40673
40473
  })(CreateFeePlanAgreement$ ||= {});
40674
40474
  });
40675
40475
 
40476
+ // src/models/components/individualnameerror.ts
40477
+ var IndividualNameError$inboundSchema, IndividualNameError$outboundSchema, IndividualNameError$;
40478
+ var init_individualnameerror = __esm(() => {
40479
+ init_esm();
40480
+ IndividualNameError$inboundSchema = objectType({
40481
+ firstName: stringType().optional(),
40482
+ middleName: stringType().optional(),
40483
+ lastName: stringType().optional(),
40484
+ suffix: stringType().optional()
40485
+ });
40486
+ IndividualNameError$outboundSchema = objectType({
40487
+ firstName: stringType().optional(),
40488
+ middleName: stringType().optional(),
40489
+ lastName: stringType().optional(),
40490
+ suffix: stringType().optional()
40491
+ });
40492
+ ((IndividualNameError$) => {
40493
+ IndividualNameError$.inboundSchema = IndividualNameError$inboundSchema;
40494
+ IndividualNameError$.outboundSchema = IndividualNameError$outboundSchema;
40495
+ })(IndividualNameError$ ||= {});
40496
+ });
40497
+
40498
+ // src/models/components/createindividualerror.ts
40499
+ var CreateIndividualErrorSsn$inboundSchema, CreateIndividualErrorSsn$outboundSchema, CreateIndividualErrorSsn$, CreateIndividualErrorItin$inboundSchema, CreateIndividualErrorItin$outboundSchema, CreateIndividualErrorItin$, CreateIndividualErrorGovernmentID$inboundSchema, CreateIndividualErrorGovernmentID$outboundSchema, CreateIndividualErrorGovernmentID$, CreateIndividualError$inboundSchema, CreateIndividualError$outboundSchema, CreateIndividualError$;
40500
+ var init_createindividualerror = __esm(() => {
40501
+ init_esm();
40502
+ init_addresserror();
40503
+ init_birthdateerror();
40504
+ init_individualnameerror();
40505
+ init_phonenumbererror();
40506
+ CreateIndividualErrorSsn$inboundSchema = objectType({
40507
+ full: stringType().optional(),
40508
+ lastFour: stringType().optional()
40509
+ });
40510
+ CreateIndividualErrorSsn$outboundSchema = objectType({
40511
+ full: stringType().optional(),
40512
+ lastFour: stringType().optional()
40513
+ });
40514
+ ((CreateIndividualErrorSsn$) => {
40515
+ CreateIndividualErrorSsn$.inboundSchema = CreateIndividualErrorSsn$inboundSchema;
40516
+ CreateIndividualErrorSsn$.outboundSchema = CreateIndividualErrorSsn$outboundSchema;
40517
+ })(CreateIndividualErrorSsn$ ||= {});
40518
+ CreateIndividualErrorItin$inboundSchema = objectType({
40519
+ full: stringType().optional(),
40520
+ lastFour: stringType().optional()
40521
+ });
40522
+ CreateIndividualErrorItin$outboundSchema = objectType({
40523
+ full: stringType().optional(),
40524
+ lastFour: stringType().optional()
40525
+ });
40526
+ ((CreateIndividualErrorItin$) => {
40527
+ CreateIndividualErrorItin$.inboundSchema = CreateIndividualErrorItin$inboundSchema;
40528
+ CreateIndividualErrorItin$.outboundSchema = CreateIndividualErrorItin$outboundSchema;
40529
+ })(CreateIndividualErrorItin$ ||= {});
40530
+ CreateIndividualErrorGovernmentID$inboundSchema = objectType({
40531
+ ssn: lazyType(() => CreateIndividualErrorSsn$inboundSchema).optional(),
40532
+ itin: lazyType(() => CreateIndividualErrorItin$inboundSchema).optional()
40533
+ });
40534
+ CreateIndividualErrorGovernmentID$outboundSchema = objectType({
40535
+ ssn: lazyType(() => CreateIndividualErrorSsn$outboundSchema).optional(),
40536
+ itin: lazyType(() => CreateIndividualErrorItin$outboundSchema).optional()
40537
+ });
40538
+ ((CreateIndividualErrorGovernmentID$) => {
40539
+ CreateIndividualErrorGovernmentID$.inboundSchema = CreateIndividualErrorGovernmentID$inboundSchema;
40540
+ CreateIndividualErrorGovernmentID$.outboundSchema = CreateIndividualErrorGovernmentID$outboundSchema;
40541
+ })(CreateIndividualErrorGovernmentID$ ||= {});
40542
+ CreateIndividualError$inboundSchema = objectType({
40543
+ name: IndividualNameError$inboundSchema.optional(),
40544
+ phone: PhoneNumberError$inboundSchema.optional(),
40545
+ email: stringType().optional(),
40546
+ address: AddressError$inboundSchema.optional(),
40547
+ birthDate: BirthDateError$inboundSchema.optional(),
40548
+ governmentID: lazyType(() => CreateIndividualErrorGovernmentID$inboundSchema).optional()
40549
+ });
40550
+ CreateIndividualError$outboundSchema = objectType({
40551
+ name: IndividualNameError$outboundSchema.optional(),
40552
+ phone: PhoneNumberError$outboundSchema.optional(),
40553
+ email: stringType().optional(),
40554
+ address: AddressError$outboundSchema.optional(),
40555
+ birthDate: BirthDateError$outboundSchema.optional(),
40556
+ governmentID: lazyType(() => CreateIndividualErrorGovernmentID$outboundSchema).optional()
40557
+ });
40558
+ ((CreateIndividualError$) => {
40559
+ CreateIndividualError$.inboundSchema = CreateIndividualError$inboundSchema;
40560
+ CreateIndividualError$.outboundSchema = CreateIndividualError$outboundSchema;
40561
+ })(CreateIndividualError$ ||= {});
40562
+ });
40563
+
40676
40564
  // src/models/components/paymentlinkcustomeroptions.ts
40677
40565
  var PaymentLinkCustomerOptions$inboundSchema, PaymentLinkCustomerOptions$outboundSchema, PaymentLinkCustomerOptions$;
40678
40566
  var init_paymentlinkcustomeroptions = __esm(() => {
@@ -40828,6 +40716,26 @@ var init_createpaymentlink = __esm(() => {
40828
40716
  })(CreatePaymentLink$ ||= {});
40829
40717
  });
40830
40718
 
40719
+ // src/models/components/createprofileerror.ts
40720
+ var CreateProfileError$inboundSchema, CreateProfileError$outboundSchema, CreateProfileError$;
40721
+ var init_createprofileerror = __esm(() => {
40722
+ init_esm();
40723
+ init_createbusinesserror();
40724
+ init_createindividualerror();
40725
+ CreateProfileError$inboundSchema = objectType({
40726
+ individual: CreateIndividualError$inboundSchema.optional(),
40727
+ business: CreateBusinessError$inboundSchema.optional()
40728
+ });
40729
+ CreateProfileError$outboundSchema = objectType({
40730
+ individual: CreateIndividualError$outboundSchema.optional(),
40731
+ business: CreateBusinessError$outboundSchema.optional()
40732
+ });
40733
+ ((CreateProfileError$) => {
40734
+ CreateProfileError$.inboundSchema = CreateProfileError$inboundSchema;
40735
+ CreateProfileError$.outboundSchema = CreateProfileError$outboundSchema;
40736
+ })(CreateProfileError$ ||= {});
40737
+ });
40738
+
40831
40739
  // src/models/components/createrefund.ts
40832
40740
  var CreateRefund$inboundSchema, CreateRefund$outboundSchema, CreateRefund$;
40833
40741
  var init_createrefund = __esm(() => {
@@ -41255,6 +41163,30 @@ var init_createtransferoptions = __esm(() => {
41255
41163
  })(CreateTransferOptions$ ||= {});
41256
41164
  });
41257
41165
 
41166
+ // src/models/components/customersupporterror.ts
41167
+ var CustomerSupportError$inboundSchema, CustomerSupportError$outboundSchema, CustomerSupportError$;
41168
+ var init_customersupporterror = __esm(() => {
41169
+ init_esm();
41170
+ init_addresserror();
41171
+ init_phonenumbererror();
41172
+ CustomerSupportError$inboundSchema = objectType({
41173
+ phone: PhoneNumberError$inboundSchema.optional(),
41174
+ email: stringType().optional(),
41175
+ address: AddressError$inboundSchema.optional(),
41176
+ website: stringType().optional()
41177
+ });
41178
+ CustomerSupportError$outboundSchema = objectType({
41179
+ phone: PhoneNumberError$outboundSchema.optional(),
41180
+ email: stringType().optional(),
41181
+ address: AddressError$outboundSchema.optional(),
41182
+ website: stringType().optional()
41183
+ });
41184
+ ((CustomerSupportError$) => {
41185
+ CustomerSupportError$.inboundSchema = CustomerSupportError$inboundSchema;
41186
+ CustomerSupportError$.outboundSchema = CustomerSupportError$outboundSchema;
41187
+ })(CustomerSupportError$ ||= {});
41188
+ });
41189
+
41258
41190
  // src/models/components/displayoptionserror.ts
41259
41191
  var DisplayOptionsError$inboundSchema, DisplayOptionsError$outboundSchema, DisplayOptionsError$;
41260
41192
  var init_displayoptionserror = __esm(() => {
@@ -43836,36 +43768,6 @@ var init_patchaccount = __esm(() => {
43836
43768
  })(PatchAccount$ ||= {});
43837
43769
  });
43838
43770
 
43839
- // src/models/components/patchaccounterror.ts
43840
- var PatchAccountError$inboundSchema, PatchAccountError$outboundSchema, PatchAccountError$;
43841
- var init_patchaccounterror = __esm(() => {
43842
- init_esm();
43843
- init_createaccountsettings();
43844
- init_createprofileerror();
43845
- init_customersupporterror();
43846
- init_termsofserviceerror();
43847
- PatchAccountError$inboundSchema = objectType({
43848
- profile: CreateProfileError$inboundSchema.optional(),
43849
- metadata: stringType().optional(),
43850
- termsOfService: TermsOfServiceError$inboundSchema.optional(),
43851
- foreignID: stringType().optional(),
43852
- customerSupport: CustomerSupportError$inboundSchema.optional(),
43853
- settings: CreateAccountSettings$inboundSchema.optional()
43854
- });
43855
- PatchAccountError$outboundSchema = objectType({
43856
- profile: CreateProfileError$outboundSchema.optional(),
43857
- metadata: stringType().optional(),
43858
- termsOfService: TermsOfServiceError$outboundSchema.optional(),
43859
- foreignID: stringType().optional(),
43860
- customerSupport: CustomerSupportError$outboundSchema.optional(),
43861
- settings: CreateAccountSettings$outboundSchema.optional()
43862
- });
43863
- ((PatchAccountError$) => {
43864
- PatchAccountError$.inboundSchema = PatchAccountError$inboundSchema;
43865
- PatchAccountError$.outboundSchema = PatchAccountError$outboundSchema;
43866
- })(PatchAccountError$ ||= {});
43867
- });
43868
-
43869
43771
  // src/models/components/patchsweepconfig.ts
43870
43772
  var Status, Status$inboundSchema, Status$outboundSchema, Status$, PushPaymentMethodId2$inboundSchema, PushPaymentMethodId2$outboundSchema, PushPaymentMethodId2$, PushPaymentMethodID$inboundSchema, PushPaymentMethodID$outboundSchema, PushPaymentMethodID$, PullPaymentMethodId2$inboundSchema, PullPaymentMethodId2$outboundSchema, PullPaymentMethodId2$, PullPaymentMethodID$inboundSchema, PullPaymentMethodID$outboundSchema, PullPaymentMethodID$, StatementDescriptor2$inboundSchema, StatementDescriptor2$outboundSchema, StatementDescriptor2$, StatementDescriptor$inboundSchema, StatementDescriptor$outboundSchema, StatementDescriptor$, PatchSweepConfig$inboundSchema, PatchSweepConfig$outboundSchema, PatchSweepConfig$;
43871
43773
  var init_patchsweepconfig = __esm(() => {
@@ -45179,6 +45081,40 @@ var init_terminalconfiguration = __esm(() => {
45179
45081
  })(TerminalConfiguration$ ||= {});
45180
45082
  });
45181
45083
 
45084
+ // src/models/components/termsofserviceerror.ts
45085
+ var Manual$inboundSchema, Manual$outboundSchema, Manual$, TermsOfServiceError$inboundSchema, TermsOfServiceError$outboundSchema, TermsOfServiceError$;
45086
+ var init_termsofserviceerror = __esm(() => {
45087
+ init_esm();
45088
+ Manual$inboundSchema = objectType({
45089
+ acceptedDate: stringType().optional(),
45090
+ acceptedDomain: stringType().optional(),
45091
+ acceptedIP: stringType().optional(),
45092
+ acceptedUserAgent: stringType().optional()
45093
+ });
45094
+ Manual$outboundSchema = objectType({
45095
+ acceptedDate: stringType().optional(),
45096
+ acceptedDomain: stringType().optional(),
45097
+ acceptedIP: stringType().optional(),
45098
+ acceptedUserAgent: stringType().optional()
45099
+ });
45100
+ ((Manual$) => {
45101
+ Manual$.inboundSchema = Manual$inboundSchema;
45102
+ Manual$.outboundSchema = Manual$outboundSchema;
45103
+ })(Manual$ ||= {});
45104
+ TermsOfServiceError$inboundSchema = objectType({
45105
+ token: stringType().optional(),
45106
+ manual: lazyType(() => Manual$inboundSchema).optional()
45107
+ });
45108
+ TermsOfServiceError$outboundSchema = objectType({
45109
+ token: stringType().optional(),
45110
+ manual: lazyType(() => Manual$outboundSchema).optional()
45111
+ });
45112
+ ((TermsOfServiceError$) => {
45113
+ TermsOfServiceError$.inboundSchema = TermsOfServiceError$inboundSchema;
45114
+ TermsOfServiceError$.outboundSchema = TermsOfServiceError$outboundSchema;
45115
+ })(TermsOfServiceError$ ||= {});
45116
+ });
45117
+
45182
45118
  // src/models/components/ticketstatus.ts
45183
45119
  var TicketStatus, TicketStatus$inboundSchema, TicketStatus$outboundSchema, TicketStatus$;
45184
45120
  var init_ticketstatus = __esm(() => {
@@ -47087,7 +47023,6 @@ var init_components = __esm(() => {
47087
47023
  init_contact();
47088
47024
  init_countrieserrors();
47089
47025
  init_createaccount();
47090
- init_createaccounterror();
47091
47026
  init_createaccountsettings();
47092
47027
  init_createaccounttype();
47093
47028
  init_createapplepaysession();
@@ -47242,7 +47177,6 @@ var init_components = __esm(() => {
47242
47177
  init_partnerpricing();
47243
47178
  init_partnerpricingagreement();
47244
47179
  init_patchaccount();
47245
- init_patchaccounterror();
47246
47180
  init_patchbusiness();
47247
47181
  init_patchindividual();
47248
47182
  init_patchprofile();
@@ -47711,42 +47645,78 @@ var init_cardacquiringrefund2 = __esm(() => {
47711
47645
  })(CardAcquiringRefund$2 ||= {});
47712
47646
  });
47713
47647
 
47714
- // src/models/errors/createaccount.ts
47715
- var CreateAccountResponseBody, CreateAccountResponseBody$inboundSchema, CreateAccountResponseBody$outboundSchema, CreateAccountResponseBody$;
47716
- var init_createaccount2 = __esm(() => {
47648
+ // src/models/errors/createaccounterror.ts
47649
+ var CreateAccountError, CreateAccountError$inboundSchema, CreateAccountError$outboundSchema, CreateAccountError$;
47650
+ var init_createaccounterror = __esm(() => {
47717
47651
  init_esm();
47718
47652
  init_components();
47719
47653
  init_mooverror();
47720
- CreateAccountResponseBody = class CreateAccountResponseBody extends MoovError {
47721
- error;
47654
+ CreateAccountError = class CreateAccountError extends MoovError {
47655
+ accountType;
47656
+ profile;
47657
+ metadata;
47658
+ termsOfService;
47659
+ foreignID;
47660
+ customerSupport;
47661
+ settings;
47662
+ capabilities;
47722
47663
  data$;
47723
47664
  constructor(err, httpMeta) {
47724
47665
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
47725
47666
  super(message, httpMeta);
47726
47667
  this.data$ = err;
47727
- this.error = err.error;
47728
- this.name = "CreateAccountResponseBody";
47668
+ if (err.accountType != null)
47669
+ this.accountType = err.accountType;
47670
+ if (err.profile != null)
47671
+ this.profile = err.profile;
47672
+ if (err.metadata != null)
47673
+ this.metadata = err.metadata;
47674
+ if (err.termsOfService != null)
47675
+ this.termsOfService = err.termsOfService;
47676
+ if (err.foreignID != null)
47677
+ this.foreignID = err.foreignID;
47678
+ if (err.customerSupport != null)
47679
+ this.customerSupport = err.customerSupport;
47680
+ if (err.settings != null)
47681
+ this.settings = err.settings;
47682
+ if (err.capabilities != null)
47683
+ this.capabilities = err.capabilities;
47684
+ this.name = "CreateAccountError";
47729
47685
  }
47730
47686
  };
47731
- CreateAccountResponseBody$inboundSchema = objectType({
47732
- error: CreateAccountError$inboundSchema,
47687
+ CreateAccountError$inboundSchema = objectType({
47688
+ accountType: stringType().optional(),
47689
+ profile: CreateProfileError$inboundSchema.optional(),
47690
+ metadata: stringType().optional(),
47691
+ termsOfService: TermsOfServiceError$inboundSchema.optional(),
47692
+ foreignID: stringType().optional(),
47693
+ customerSupport: CustomerSupportError$inboundSchema.optional(),
47694
+ settings: CreateAccountSettings$inboundSchema.optional(),
47695
+ capabilities: recordType(stringType()).optional(),
47733
47696
  request$: instanceOfType(Request),
47734
47697
  response$: instanceOfType(Response),
47735
47698
  body$: stringType()
47736
47699
  }).transform((v2) => {
47737
- return new CreateAccountResponseBody(v2, {
47700
+ return new CreateAccountError(v2, {
47738
47701
  request: v2.request$,
47739
47702
  response: v2.response$,
47740
47703
  body: v2.body$
47741
47704
  });
47742
47705
  });
47743
- CreateAccountResponseBody$outboundSchema = instanceOfType(CreateAccountResponseBody).transform((v2) => v2.data$).pipe(objectType({
47744
- error: CreateAccountError$outboundSchema
47706
+ CreateAccountError$outboundSchema = instanceOfType(CreateAccountError).transform((v2) => v2.data$).pipe(objectType({
47707
+ accountType: stringType().optional(),
47708
+ profile: CreateProfileError$outboundSchema.optional(),
47709
+ metadata: stringType().optional(),
47710
+ termsOfService: TermsOfServiceError$outboundSchema.optional(),
47711
+ foreignID: stringType().optional(),
47712
+ customerSupport: CustomerSupportError$outboundSchema.optional(),
47713
+ settings: CreateAccountSettings$outboundSchema.optional(),
47714
+ capabilities: recordType(stringType()).optional()
47745
47715
  }));
47746
- ((CreateAccountResponseBody$) => {
47747
- CreateAccountResponseBody$.inboundSchema = CreateAccountResponseBody$inboundSchema;
47748
- CreateAccountResponseBody$.outboundSchema = CreateAccountResponseBody$outboundSchema;
47749
- })(CreateAccountResponseBody$ ||= {});
47716
+ ((CreateAccountError$) => {
47717
+ CreateAccountError$.inboundSchema = CreateAccountError$inboundSchema;
47718
+ CreateAccountError$.outboundSchema = CreateAccountError$outboundSchema;
47719
+ })(CreateAccountError$ ||= {});
47750
47720
  });
47751
47721
 
47752
47722
  // src/models/errors/createpaymentlinkerror.ts
@@ -48356,6 +48326,70 @@ var init_onboardinginviteerror = __esm(() => {
48356
48326
  })(OnboardingInviteError$ ||= {});
48357
48327
  });
48358
48328
 
48329
+ // src/models/errors/patchaccounterror.ts
48330
+ var PatchAccountError, PatchAccountError$inboundSchema, PatchAccountError$outboundSchema, PatchAccountError$;
48331
+ var init_patchaccounterror = __esm(() => {
48332
+ init_esm();
48333
+ init_components();
48334
+ init_mooverror();
48335
+ PatchAccountError = class PatchAccountError extends MoovError {
48336
+ profile;
48337
+ metadata;
48338
+ termsOfService;
48339
+ foreignID;
48340
+ customerSupport;
48341
+ settings;
48342
+ data$;
48343
+ constructor(err, httpMeta) {
48344
+ const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
48345
+ super(message, httpMeta);
48346
+ this.data$ = err;
48347
+ if (err.profile != null)
48348
+ this.profile = err.profile;
48349
+ if (err.metadata != null)
48350
+ this.metadata = err.metadata;
48351
+ if (err.termsOfService != null)
48352
+ this.termsOfService = err.termsOfService;
48353
+ if (err.foreignID != null)
48354
+ this.foreignID = err.foreignID;
48355
+ if (err.customerSupport != null)
48356
+ this.customerSupport = err.customerSupport;
48357
+ if (err.settings != null)
48358
+ this.settings = err.settings;
48359
+ this.name = "PatchAccountError";
48360
+ }
48361
+ };
48362
+ PatchAccountError$inboundSchema = objectType({
48363
+ profile: CreateProfileError$inboundSchema.optional(),
48364
+ metadata: stringType().optional(),
48365
+ termsOfService: TermsOfServiceError$inboundSchema.optional(),
48366
+ foreignID: stringType().optional(),
48367
+ customerSupport: CustomerSupportError$inboundSchema.optional(),
48368
+ settings: CreateAccountSettings$inboundSchema.optional(),
48369
+ request$: instanceOfType(Request),
48370
+ response$: instanceOfType(Response),
48371
+ body$: stringType()
48372
+ }).transform((v2) => {
48373
+ return new PatchAccountError(v2, {
48374
+ request: v2.request$,
48375
+ response: v2.response$,
48376
+ body: v2.body$
48377
+ });
48378
+ });
48379
+ PatchAccountError$outboundSchema = instanceOfType(PatchAccountError).transform((v2) => v2.data$).pipe(objectType({
48380
+ profile: CreateProfileError$outboundSchema.optional(),
48381
+ metadata: stringType().optional(),
48382
+ termsOfService: TermsOfServiceError$outboundSchema.optional(),
48383
+ foreignID: stringType().optional(),
48384
+ customerSupport: CustomerSupportError$outboundSchema.optional(),
48385
+ settings: CreateAccountSettings$outboundSchema.optional()
48386
+ }));
48387
+ ((PatchAccountError$) => {
48388
+ PatchAccountError$.inboundSchema = PatchAccountError$inboundSchema;
48389
+ PatchAccountError$.outboundSchema = PatchAccountError$outboundSchema;
48390
+ })(PatchAccountError$ ||= {});
48391
+ });
48392
+
48359
48393
  // src/models/errors/patchsweepconfigerror.ts
48360
48394
  var PatchSweepConfigError, PatchSweepConfigError$inboundSchema, PatchSweepConfigError$outboundSchema, PatchSweepConfigError$;
48361
48395
  var init_patchsweepconfigerror = __esm(() => {
@@ -49089,44 +49123,6 @@ var init_transfervalidationerror = __esm(() => {
49089
49123
  })(TransferValidationError$ ||= {});
49090
49124
  });
49091
49125
 
49092
- // src/models/errors/updateaccount.ts
49093
- var UpdateAccountResponseBody, UpdateAccountResponseBody$inboundSchema, UpdateAccountResponseBody$outboundSchema, UpdateAccountResponseBody$;
49094
- var init_updateaccount = __esm(() => {
49095
- init_esm();
49096
- init_components();
49097
- init_mooverror();
49098
- UpdateAccountResponseBody = class UpdateAccountResponseBody extends MoovError {
49099
- error;
49100
- data$;
49101
- constructor(err, httpMeta) {
49102
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
49103
- super(message, httpMeta);
49104
- this.data$ = err;
49105
- this.error = err.error;
49106
- this.name = "UpdateAccountResponseBody";
49107
- }
49108
- };
49109
- UpdateAccountResponseBody$inboundSchema = objectType({
49110
- error: PatchAccountError$inboundSchema,
49111
- request$: instanceOfType(Request),
49112
- response$: instanceOfType(Response),
49113
- body$: stringType()
49114
- }).transform((v2) => {
49115
- return new UpdateAccountResponseBody(v2, {
49116
- request: v2.request$,
49117
- response: v2.response$,
49118
- body: v2.body$
49119
- });
49120
- });
49121
- UpdateAccountResponseBody$outboundSchema = instanceOfType(UpdateAccountResponseBody).transform((v2) => v2.data$).pipe(objectType({
49122
- error: PatchAccountError$outboundSchema
49123
- }));
49124
- ((UpdateAccountResponseBody$) => {
49125
- UpdateAccountResponseBody$.inboundSchema = UpdateAccountResponseBody$inboundSchema;
49126
- UpdateAccountResponseBody$.outboundSchema = UpdateAccountResponseBody$outboundSchema;
49127
- })(UpdateAccountResponseBody$ ||= {});
49128
- });
49129
-
49130
49126
  // src/models/errors/updatecarderror.ts
49131
49127
  var UpdateCardError, UpdateCardError$inboundSchema, UpdateCardError$outboundSchema, UpdateCardError$;
49132
49128
  var init_updatecarderror = __esm(() => {
@@ -49523,7 +49519,7 @@ var init_errors2 = __esm(() => {
49523
49519
  init_bankaccountvalidationerror();
49524
49520
  init_brandvalidationerror();
49525
49521
  init_cardacquiringrefund2();
49526
- init_createaccount2();
49522
+ init_createaccounterror();
49527
49523
  init_createpaymentlinkerror();
49528
49524
  init_createsweepconfigerror();
49529
49525
  init_createticketerror();
@@ -49536,6 +49532,7 @@ var init_errors2 = __esm(() => {
49536
49532
  init_linkcarderror();
49537
49533
  init_microdepositvalidationerror();
49538
49534
  init_onboardinginviteerror();
49535
+ init_patchaccounterror();
49539
49536
  init_patchsweepconfigerror();
49540
49537
  init_refundvalidationerror();
49541
49538
  init_representativevalidationerror();
@@ -49549,7 +49546,6 @@ var init_errors2 = __esm(() => {
49549
49546
  init_transfer2();
49550
49547
  init_transferoptionsvalidationerror();
49551
49548
  init_transfervalidationerror();
49552
- init_updateaccount();
49553
49549
  init_updatecarderror();
49554
49550
  init_updateissuedcarderror();
49555
49551
  init_updatepaymentlinkerror();
@@ -49931,7 +49927,7 @@ var init_createaccesstoken = __esm(() => {
49931
49927
 
49932
49928
  // src/models/operations/createaccount.ts
49933
49929
  var CreateAccountGlobals$inboundSchema, CreateAccountGlobals$outboundSchema, CreateAccountGlobals$, CreateAccountResponse$inboundSchema, CreateAccountResponse$outboundSchema, CreateAccountResponse$;
49934
- var init_createaccount3 = __esm(() => {
49930
+ var init_createaccount2 = __esm(() => {
49935
49931
  init_esm();
49936
49932
  init_primitives();
49937
49933
  init_components();
@@ -57429,7 +57425,7 @@ var init_testendtoendtoken = __esm(() => {
57429
57425
 
57430
57426
  // src/models/operations/updateaccount.ts
57431
57427
  var UpdateAccountGlobals$inboundSchema, UpdateAccountGlobals$outboundSchema, UpdateAccountGlobals$, UpdateAccountRequest$inboundSchema, UpdateAccountRequest$outboundSchema, UpdateAccountRequest$, UpdateAccountResponse$inboundSchema, UpdateAccountResponse$outboundSchema, UpdateAccountResponse$;
57432
- var init_updateaccount2 = __esm(() => {
57428
+ var init_updateaccount = __esm(() => {
57433
57429
  init_esm();
57434
57430
  init_primitives();
57435
57431
  init_components();
@@ -58607,7 +58603,7 @@ var init_operations = __esm(() => {
58607
58603
  init_completebankaccountverification2();
58608
58604
  init_completemicrodeposits2();
58609
58605
  init_createaccesstoken();
58610
- init_createaccount3();
58606
+ init_createaccount2();
58611
58607
  init_createapplepaysession2();
58612
58608
  init_createbrand();
58613
58609
  init_createcancellation();
@@ -58727,7 +58723,7 @@ var init_operations = __esm(() => {
58727
58723
  init_searchinstitutions();
58728
58724
  init_submitdisputeevidence();
58729
58725
  init_testendtoendtoken();
58730
- init_updateaccount2();
58726
+ init_updateaccount();
58731
58727
  init_updateapplepaymerchantdomains2();
58732
58728
  init_updatebrand2();
58733
58729
  init_updatecard2();
@@ -58970,9 +58966,7 @@ async function $do2(client, request, options) {
58970
58966
  const [result] = await match(json(200, CreateAccountResponse$inboundSchema, {
58971
58967
  hdrs: true,
58972
58968
  key: "Result"
58973
- }), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, CreateAccountResponseBody$inboundSchema, {
58974
- hdrs: true
58975
- }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58969
+ }), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, CreateAccountError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58976
58970
  if (!result.ok) {
58977
58971
  return [result, { status: "complete", request: req, response }];
58978
58972
  }
@@ -59798,9 +59792,7 @@ async function $do9(client, request, options) {
59798
59792
  const [result] = await match(json(200, UpdateAccountResponse$inboundSchema, {
59799
59793
  hdrs: true,
59800
59794
  key: "Result"
59801
- }), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, UpdateAccountResponseBody$inboundSchema, {
59802
- hdrs: true
59803
- }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59795
+ }), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, PatchAccountError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59804
59796
  if (!result.ok) {
59805
59797
  return [result, { status: "complete", request: req, response }];
59806
59798
  }
@@ -72017,7 +72009,10 @@ var init_supportCreateTicket2 = __esm(() => {
72017
72009
  description: `Create a support ticket for a Moov account.
72018
72010
 
72019
72011
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72020
- you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.`,
72012
+ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
72013
+
72014
+ If you're creating the ticket on behalf of another account, then you'll need to
72015
+ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
72021
72016
  args: args110,
72022
72017
  tool: async (client, args111, ctx) => {
72023
72018
  const [result, apiCall] = await supportCreateTicket(client, args111.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -72132,7 +72127,10 @@ var init_supportGetTicket2 = __esm(() => {
72132
72127
  description: `Retrieve a support ticket by ID.
72133
72128
 
72134
72129
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72135
- you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
72130
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
72131
+
72132
+ If you're retrieving another account's ticket, then you'll need to
72133
+ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
72136
72134
  args: args111,
72137
72135
  tool: async (client, args112, ctx) => {
72138
72136
  const [result, apiCall] = await supportGetTicket(client, args112.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -72247,7 +72245,10 @@ var init_supportListTicketMessages2 = __esm(() => {
72247
72245
  description: `List all the messages for a support ticket.
72248
72246
 
72249
72247
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72250
- you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
72248
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
72249
+
72250
+ If you're listing another account's messages, then you'll need to
72251
+ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
72251
72252
  args: args112,
72252
72253
  tool: async (client, args113, ctx) => {
72253
72254
  const [result, apiCall] = await supportListTicketMessages(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -72364,7 +72365,10 @@ var init_supportListTickets2 = __esm(() => {
72364
72365
  description: `List all the support tickets created under a Moov account.
72365
72366
 
72366
72367
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72367
- you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
72368
+ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
72369
+
72370
+ If you're listing another account's tickets, then you'll need to
72371
+ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
72368
72372
  args: args113,
72369
72373
  tool: async (client, args114, ctx) => {
72370
72374
  const [result, apiCall] = await supportListTickets(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -72493,7 +72497,10 @@ var init_supportUpdateTicket2 = __esm(() => {
72493
72497
  description: `Updates a support ticket.
72494
72498
 
72495
72499
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72496
- you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.`,
72500
+ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
72501
+
72502
+ If you're updating the ticket on behalf of another account, then you'll need to
72503
+ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
72497
72504
  args: args114,
72498
72505
  tool: async (client, args115, ctx) => {
72499
72506
  const [result, apiCall] = await supportUpdateTicket(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -76008,7 +76015,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
76008
76015
  function createMCPServer(deps) {
76009
76016
  const server = new McpServer({
76010
76017
  name: "Moov",
76011
- version: "0.14.15"
76018
+ version: "0.14.16"
76012
76019
  });
76013
76020
  const client = new MoovCore({
76014
76021
  security: deps.security,
@@ -77518,7 +77525,7 @@ var routes = rn({
77518
77525
  var app = Ve(routes, {
77519
77526
  name: "mcp",
77520
77527
  versionInfo: {
77521
- currentVersion: "0.14.15"
77528
+ currentVersion: "0.14.16"
77522
77529
  }
77523
77530
  });
77524
77531
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -77526,5 +77533,5 @@ export {
77526
77533
  app
77527
77534
  };
77528
77535
 
77529
- //# debugId=34947BC433FBEB4364756E2164756E21
77536
+ //# debugId=855DC8641649F7E264756E2164756E21
77530
77537
  //# sourceMappingURL=mcp-server.js.map