@thera-hr/api-sdk 0.0.1-prerelease2783-dev-anthony → 0.0.1-prerelease2783-dev-2

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 (417) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  4. package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  5. package/api/resources/api/resources/thera/client/Client.js +31 -26
  6. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  8. package/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +22 -0
  9. package/api/resources/api/resources/thera/resources/bridge/client/Client.js +17 -0
  10. package/api/resources/api/resources/thera/resources/bridge/client/index.d.ts +1 -0
  11. package/api/resources/api/resources/thera/resources/bridge/client/index.js +2 -0
  12. package/api/resources/api/resources/thera/resources/bridge/index.d.ts +2 -0
  13. package/api/resources/api/resources/thera/resources/bridge/index.js +18 -0
  14. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +303 -0
  15. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +1242 -0
  16. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +1 -0
  17. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +17 -0
  18. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +14 -0
  19. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +5 -0
  20. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +21 -0
  21. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +5 -0
  22. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
  23. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +2 -0
  24. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
  25. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
  26. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +11 -0
  27. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +5 -0
  28. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +8 -0
  29. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +5 -0
  30. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.d.ts +8 -0
  31. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.js +5 -0
  32. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +6 -0
  33. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +5 -0
  34. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.d.ts +10 -0
  35. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.js +5 -0
  36. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +8 -0
  37. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +5 -0
  38. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +19 -0
  39. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +5 -0
  40. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +12 -0
  41. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +5 -0
  42. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +10 -0
  43. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +5 -0
  44. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +12 -0
  45. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +5 -0
  46. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +8 -0
  47. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +5 -0
  48. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +23 -0
  49. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +5 -0
  50. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +23 -0
  51. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +5 -0
  52. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +8 -0
  53. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +5 -0
  54. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +7 -0
  55. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +5 -0
  56. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +8 -0
  57. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +5 -0
  58. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +6 -0
  59. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +5 -0
  60. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +12 -0
  61. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +5 -0
  62. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +15 -0
  63. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +5 -0
  64. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +12 -0
  65. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +5 -0
  66. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +8 -0
  67. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +10 -0
  68. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +8 -0
  69. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +5 -0
  70. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +10 -0
  71. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +5 -0
  72. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +7 -0
  73. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +5 -0
  74. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +7 -0
  75. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +5 -0
  76. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +9 -0
  77. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +5 -0
  78. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +12 -0
  79. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +5 -0
  80. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +27 -0
  81. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +43 -0
  82. package/api/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
  83. package/api/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
  84. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +2 -1
  85. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +20 -19
  86. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  87. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +1 -0
  88. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +4 -3
  89. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +1 -0
  90. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +1 -0
  91. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  92. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  93. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  94. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  95. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  96. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  97. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  98. package/api/resources/api/resources/thera/resources/index.js +2 -1
  99. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  100. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  101. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  102. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  103. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  104. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  105. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +2 -1
  106. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +5 -4
  107. package/api/resources/api/resources/thera/resources/user/resources/userApi/types/GetUserComplianceSettingsResponse.d.ts +1 -0
  108. package/api/resources/api/resources/thera/resources/user/resources/userApi/types/SetUserComplianceSettingsRequest.d.ts +1 -0
  109. package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +11 -0
  110. package/api/resources/db/resources/user/types/BridgeUserDetails.js +5 -0
  111. package/api/resources/db/resources/user/types/User.d.ts +1 -0
  112. package/api/resources/db/resources/user/types/index.d.ts +1 -0
  113. package/api/resources/db/resources/user/types/index.js +1 -0
  114. package/api/resources/model/resources/thera/resources/setting/types/VerificationSetting.d.ts +1 -0
  115. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  116. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  117. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  118. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  119. package/dist/api/resources/api/resources/thera/client/Client.js +31 -26
  120. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  121. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  122. package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +22 -0
  123. package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.js +17 -0
  124. package/dist/api/resources/api/resources/thera/resources/bridge/client/index.d.ts +1 -0
  125. package/dist/api/resources/api/resources/thera/resources/bridge/client/index.js +2 -0
  126. package/dist/api/resources/api/resources/thera/resources/bridge/index.d.ts +2 -0
  127. package/dist/api/resources/api/resources/thera/resources/bridge/index.js +18 -0
  128. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +303 -0
  129. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +1242 -0
  130. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +1 -0
  131. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +17 -0
  132. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +14 -0
  133. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +5 -0
  134. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +21 -0
  135. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +5 -0
  136. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
  137. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +2 -0
  138. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
  139. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
  140. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +11 -0
  141. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +5 -0
  142. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +8 -0
  143. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +5 -0
  144. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.d.ts +8 -0
  145. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.js +5 -0
  146. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +6 -0
  147. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +5 -0
  148. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.d.ts +10 -0
  149. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.js +5 -0
  150. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +8 -0
  151. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +5 -0
  152. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +19 -0
  153. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +5 -0
  154. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +12 -0
  155. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +5 -0
  156. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +10 -0
  157. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +5 -0
  158. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +12 -0
  159. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +5 -0
  160. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +8 -0
  161. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +5 -0
  162. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +23 -0
  163. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +5 -0
  164. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +23 -0
  165. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +5 -0
  166. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +8 -0
  167. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +5 -0
  168. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +7 -0
  169. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +5 -0
  170. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +8 -0
  171. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +5 -0
  172. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +6 -0
  173. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +5 -0
  174. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +12 -0
  175. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +5 -0
  176. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +15 -0
  177. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +5 -0
  178. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +12 -0
  179. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +5 -0
  180. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +8 -0
  181. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +10 -0
  182. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +8 -0
  183. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +5 -0
  184. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +10 -0
  185. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +5 -0
  186. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +7 -0
  187. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +5 -0
  188. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +7 -0
  189. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +5 -0
  190. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +9 -0
  191. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +5 -0
  192. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +12 -0
  193. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +5 -0
  194. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +27 -0
  195. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +43 -0
  196. package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
  197. package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
  198. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +2 -1
  199. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +20 -19
  200. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  201. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +1 -0
  202. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +4 -3
  203. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +1 -0
  204. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +1 -0
  205. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  206. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  207. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  208. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  209. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  210. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  211. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  212. package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
  213. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  214. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  215. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  216. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  217. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  218. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  219. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +2 -1
  220. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +5 -4
  221. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/types/GetUserComplianceSettingsResponse.d.ts +1 -0
  222. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/types/SetUserComplianceSettingsRequest.d.ts +1 -0
  223. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +11 -0
  224. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.js +5 -0
  225. package/dist/api/resources/db/resources/user/types/User.d.ts +1 -0
  226. package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
  227. package/dist/api/resources/db/resources/user/types/index.js +1 -0
  228. package/dist/api/resources/model/resources/thera/resources/setting/types/VerificationSetting.d.ts +1 -0
  229. package/dist/serialization/resources/api/resources/thera/resources/bridge/index.d.ts +1 -0
  230. package/dist/serialization/resources/api/resources/thera/resources/bridge/index.js +17 -0
  231. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.d.ts +11 -0
  232. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +32 -0
  233. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +5 -0
  234. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +34 -0
  235. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.d.ts +11 -0
  236. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +32 -0
  237. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.d.ts +11 -0
  238. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.js +32 -0
  239. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.d.ts +11 -0
  240. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +32 -0
  241. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +13 -0
  242. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +34 -0
  243. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +17 -0
  244. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +38 -0
  245. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
  246. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +7 -0
  247. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
  248. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
  249. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +17 -0
  250. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +38 -0
  251. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +14 -0
  252. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +35 -0
  253. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.d.ts +14 -0
  254. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.js +35 -0
  255. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +12 -0
  256. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +33 -0
  257. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.d.ts +16 -0
  258. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.js +37 -0
  259. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +14 -0
  260. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +35 -0
  261. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +27 -0
  262. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +48 -0
  263. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +18 -0
  264. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +39 -0
  265. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +16 -0
  266. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +37 -0
  267. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +18 -0
  268. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +39 -0
  269. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +14 -0
  270. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +35 -0
  271. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +32 -0
  272. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +53 -0
  273. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +32 -0
  274. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +53 -0
  275. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +14 -0
  276. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +35 -0
  277. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +13 -0
  278. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +34 -0
  279. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +14 -0
  280. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +35 -0
  281. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +12 -0
  282. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +33 -0
  283. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +19 -0
  284. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +40 -0
  285. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +21 -0
  286. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +42 -0
  287. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +18 -0
  288. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +39 -0
  289. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +10 -0
  290. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +31 -0
  291. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +14 -0
  292. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +35 -0
  293. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +16 -0
  294. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +37 -0
  295. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +13 -0
  296. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +34 -0
  297. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +13 -0
  298. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +34 -0
  299. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +15 -0
  300. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +36 -0
  301. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +18 -0
  302. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +39 -0
  303. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +27 -0
  304. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +43 -0
  305. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
  306. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
  307. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +1 -0
  308. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +1 -0
  309. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  310. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
  311. package/dist/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/GetUserComplianceSettingsResponse.d.ts +1 -0
  312. package/dist/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/GetUserComplianceSettingsResponse.js +1 -0
  313. package/dist/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/SetUserComplianceSettingsRequest.d.ts +1 -0
  314. package/dist/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/SetUserComplianceSettingsRequest.js +1 -0
  315. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +18 -0
  316. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +39 -0
  317. package/dist/serialization/resources/db/resources/user/types/User.d.ts +2 -0
  318. package/dist/serialization/resources/db/resources/user/types/User.js +2 -0
  319. package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  320. package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
  321. package/dist/serialization/resources/model/resources/thera/resources/setting/types/VerificationSetting.d.ts +1 -0
  322. package/dist/serialization/resources/model/resources/thera/resources/setting/types/VerificationSetting.js +1 -0
  323. package/package.json +1 -1
  324. package/serialization/resources/api/resources/thera/resources/bridge/index.d.ts +1 -0
  325. package/serialization/resources/api/resources/thera/resources/bridge/index.js +17 -0
  326. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.d.ts +11 -0
  327. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +32 -0
  328. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +5 -0
  329. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +34 -0
  330. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.d.ts +11 -0
  331. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +32 -0
  332. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.d.ts +11 -0
  333. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.js +32 -0
  334. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.d.ts +11 -0
  335. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +32 -0
  336. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +13 -0
  337. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +34 -0
  338. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +17 -0
  339. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +38 -0
  340. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
  341. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +7 -0
  342. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
  343. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
  344. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +17 -0
  345. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +38 -0
  346. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +14 -0
  347. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +35 -0
  348. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.d.ts +14 -0
  349. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.js +35 -0
  350. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +12 -0
  351. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +33 -0
  352. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.d.ts +16 -0
  353. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.js +37 -0
  354. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +14 -0
  355. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +35 -0
  356. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +27 -0
  357. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +48 -0
  358. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +18 -0
  359. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +39 -0
  360. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +16 -0
  361. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +37 -0
  362. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +18 -0
  363. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +39 -0
  364. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +14 -0
  365. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +35 -0
  366. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +32 -0
  367. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +53 -0
  368. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +32 -0
  369. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +53 -0
  370. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +14 -0
  371. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +35 -0
  372. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +13 -0
  373. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +34 -0
  374. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +14 -0
  375. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +35 -0
  376. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +12 -0
  377. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +33 -0
  378. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +19 -0
  379. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +40 -0
  380. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +21 -0
  381. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +42 -0
  382. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +18 -0
  383. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +39 -0
  384. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +10 -0
  385. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +31 -0
  386. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +14 -0
  387. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +35 -0
  388. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +16 -0
  389. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +37 -0
  390. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +13 -0
  391. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +34 -0
  392. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +13 -0
  393. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +34 -0
  394. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +15 -0
  395. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +36 -0
  396. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +18 -0
  397. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +39 -0
  398. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +27 -0
  399. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +43 -0
  400. package/serialization/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
  401. package/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
  402. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +1 -0
  403. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +1 -0
  404. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  405. package/serialization/resources/api/resources/thera/resources/index.js +2 -1
  406. package/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/GetUserComplianceSettingsResponse.d.ts +1 -0
  407. package/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/GetUserComplianceSettingsResponse.js +1 -0
  408. package/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/SetUserComplianceSettingsRequest.d.ts +1 -0
  409. package/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/SetUserComplianceSettingsRequest.js +1 -0
  410. package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +18 -0
  411. package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +39 -0
  412. package/serialization/resources/db/resources/user/types/User.d.ts +2 -0
  413. package/serialization/resources/db/resources/user/types/User.js +2 -0
  414. package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  415. package/serialization/resources/db/resources/user/types/index.js +1 -0
  416. package/serialization/resources/model/resources/thera/resources/setting/types/VerificationSetting.d.ts +1 -0
  417. package/serialization/resources/model/resources/thera/resources/setting/types/VerificationSetting.js +1 -0
@@ -0,0 +1,1242 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.BridgeApi = void 0;
42
+ const core = __importStar(require("../../../../../../../../../../core"));
43
+ const url_join_1 = __importDefault(require("url-join"));
44
+ const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
45
+ const errors = __importStar(require("../../../../../../../../../../errors/index"));
46
+ class BridgeApi {
47
+ constructor(_options) {
48
+ this._options = _options;
49
+ }
50
+ /**
51
+ * Customers need to accept Bridge's terms of service before KYC processing.
52
+ *
53
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @example
56
+ * await client.api.thera.bridge.bridgeApi.requestTosLink()
57
+ */
58
+ requestTosLink(requestOptions) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const _response = yield core.fetcher({
61
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/customers/tos_links"),
62
+ method: "POST",
63
+ headers: {
64
+ Authorization: yield this._getAuthorizationHeader(),
65
+ "X-Fern-Language": "JavaScript",
66
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
67
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
68
+ "X-Fern-Runtime": core.RUNTIME.type,
69
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
70
+ },
71
+ contentType: "application/json",
72
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
73
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
74
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
75
+ });
76
+ if (_response.ok) {
77
+ return yield serializers.api.thera.bridge.TosLinkResponse.parseOrThrow(_response.body, {
78
+ unrecognizedObjectKeys: "passthrough",
79
+ allowUnrecognizedUnionMembers: true,
80
+ allowUnrecognizedEnumValues: true,
81
+ skipValidation: true,
82
+ breadcrumbsPrefix: ["response"],
83
+ });
84
+ }
85
+ if (_response.error.reason === "status-code") {
86
+ throw new errors.TheraApiError({
87
+ statusCode: _response.error.statusCode,
88
+ body: _response.error.body,
89
+ });
90
+ }
91
+ switch (_response.error.reason) {
92
+ case "non-json":
93
+ throw new errors.TheraApiError({
94
+ statusCode: _response.error.statusCode,
95
+ body: _response.error.rawBody,
96
+ });
97
+ case "timeout":
98
+ throw new errors.TheraApiTimeoutError();
99
+ case "unknown":
100
+ throw new errors.TheraApiError({
101
+ message: _response.error.errorMessage,
102
+ });
103
+ }
104
+ });
105
+ }
106
+ /**
107
+ * Create a new customer and start the KYC process.
108
+ *
109
+ * @param {TheraApi.api.thera.bridge.CreateCustomer} request
110
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
111
+ *
112
+ * @example
113
+ * await client.api.thera.bridge.bridgeApi.createCustomer({
114
+ * type: "string",
115
+ * firstName: "string",
116
+ * lastName: "string",
117
+ * email: "string",
118
+ * phone: "string",
119
+ * address: {
120
+ * streetLine1: "string",
121
+ * streetLine2: "string",
122
+ * city: "string",
123
+ * state: "string",
124
+ * postalCode: "string",
125
+ * country: "string"
126
+ * },
127
+ * signedAgreementId: "string",
128
+ * birthDate: "string",
129
+ * taxIdentificationNumber: "string",
130
+ * documents: [{
131
+ * purposes: [{
132
+ * "key": "value"
133
+ * }],
134
+ * file: "string",
135
+ * description: {
136
+ * "key": "value"
137
+ * }
138
+ * }],
139
+ * identifyingInformation: [{
140
+ * type: "string",
141
+ * imageFront: "string",
142
+ * issuingCountry: "string",
143
+ * number: {
144
+ * "key": "value"
145
+ * },
146
+ * imageBack: {
147
+ * "key": "value"
148
+ * }
149
+ * }],
150
+ * residentialAddress: {
151
+ * streetLine1: "string",
152
+ * streetLine2: "string",
153
+ * city: "string",
154
+ * state: "string",
155
+ * postalCode: "string",
156
+ * country: "string"
157
+ * },
158
+ * documentIdentificationNumber: "string"
159
+ * })
160
+ */
161
+ createCustomer(request, requestOptions) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ const _response = yield core.fetcher({
164
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/customers"),
165
+ method: "POST",
166
+ headers: {
167
+ Authorization: yield this._getAuthorizationHeader(),
168
+ "X-Fern-Language": "JavaScript",
169
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
170
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
171
+ "X-Fern-Runtime": core.RUNTIME.type,
172
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
173
+ },
174
+ contentType: "application/json",
175
+ body: yield serializers.api.thera.bridge.CreateCustomer.jsonOrThrow(request, {
176
+ unrecognizedObjectKeys: "strip",
177
+ }),
178
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
179
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
180
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
181
+ });
182
+ if (_response.ok) {
183
+ return yield serializers.db.User.parseOrThrow(_response.body, {
184
+ unrecognizedObjectKeys: "passthrough",
185
+ allowUnrecognizedUnionMembers: true,
186
+ allowUnrecognizedEnumValues: true,
187
+ skipValidation: true,
188
+ breadcrumbsPrefix: ["response"],
189
+ });
190
+ }
191
+ if (_response.error.reason === "status-code") {
192
+ throw new errors.TheraApiError({
193
+ statusCode: _response.error.statusCode,
194
+ body: _response.error.body,
195
+ });
196
+ }
197
+ switch (_response.error.reason) {
198
+ case "non-json":
199
+ throw new errors.TheraApiError({
200
+ statusCode: _response.error.statusCode,
201
+ body: _response.error.rawBody,
202
+ });
203
+ case "timeout":
204
+ throw new errors.TheraApiTimeoutError();
205
+ case "unknown":
206
+ throw new errors.TheraApiError({
207
+ message: _response.error.errorMessage,
208
+ });
209
+ }
210
+ });
211
+ }
212
+ /**
213
+ * Links an external crypto wallet to a customer.
214
+ *
215
+ * @param {string} customerId
216
+ * @param {TheraApi.api.thera.bridge.ExternalAccount} request
217
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
218
+ *
219
+ * @example
220
+ * await client.api.thera.bridge.bridgeApi.createExternalAccount("string", {
221
+ * walletAddress: "string",
222
+ * currency: "string",
223
+ * paymentRail: "string"
224
+ * })
225
+ */
226
+ createExternalAccount(customerId, request, requestOptions) {
227
+ return __awaiter(this, void 0, void 0, function* () {
228
+ const _response = yield core.fetcher({
229
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(customerId)}/accounts`),
230
+ method: "POST",
231
+ headers: {
232
+ Authorization: yield this._getAuthorizationHeader(),
233
+ "X-Fern-Language": "JavaScript",
234
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
235
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
236
+ "X-Fern-Runtime": core.RUNTIME.type,
237
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
238
+ },
239
+ contentType: "application/json",
240
+ body: yield serializers.api.thera.bridge.ExternalAccount.jsonOrThrow(request, {
241
+ unrecognizedObjectKeys: "strip",
242
+ }),
243
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
244
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
245
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
246
+ });
247
+ if (_response.ok) {
248
+ return yield serializers.api.thera.bridge.LinkExternalAccountResponse.parseOrThrow(_response.body, {
249
+ unrecognizedObjectKeys: "passthrough",
250
+ allowUnrecognizedUnionMembers: true,
251
+ allowUnrecognizedEnumValues: true,
252
+ skipValidation: true,
253
+ breadcrumbsPrefix: ["response"],
254
+ });
255
+ }
256
+ if (_response.error.reason === "status-code") {
257
+ throw new errors.TheraApiError({
258
+ statusCode: _response.error.statusCode,
259
+ body: _response.error.body,
260
+ });
261
+ }
262
+ switch (_response.error.reason) {
263
+ case "non-json":
264
+ throw new errors.TheraApiError({
265
+ statusCode: _response.error.statusCode,
266
+ body: _response.error.rawBody,
267
+ });
268
+ case "timeout":
269
+ throw new errors.TheraApiTimeoutError();
270
+ case "unknown":
271
+ throw new errors.TheraApiError({
272
+ message: _response.error.errorMessage,
273
+ });
274
+ }
275
+ });
276
+ }
277
+ /**
278
+ * Retrieve customer details, including linked accounts and KYC status.
279
+ *
280
+ * @param {string} customerId
281
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
282
+ *
283
+ * @example
284
+ * await client.api.thera.bridge.bridgeApi.getCustomerDetails("string")
285
+ */
286
+ getCustomerDetails(customerId, requestOptions) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ const _response = yield core.fetcher({
289
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/customers/${encodeURIComponent(customerId)}`),
290
+ method: "GET",
291
+ headers: {
292
+ Authorization: yield this._getAuthorizationHeader(),
293
+ "X-Fern-Language": "JavaScript",
294
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
295
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
296
+ "X-Fern-Runtime": core.RUNTIME.type,
297
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
298
+ },
299
+ contentType: "application/json",
300
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
301
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
302
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
303
+ });
304
+ if (_response.ok) {
305
+ return yield serializers.api.thera.bridge.CustomerDetails.parseOrThrow(_response.body, {
306
+ unrecognizedObjectKeys: "passthrough",
307
+ allowUnrecognizedUnionMembers: true,
308
+ allowUnrecognizedEnumValues: true,
309
+ skipValidation: true,
310
+ breadcrumbsPrefix: ["response"],
311
+ });
312
+ }
313
+ if (_response.error.reason === "status-code") {
314
+ throw new errors.TheraApiError({
315
+ statusCode: _response.error.statusCode,
316
+ body: _response.error.body,
317
+ });
318
+ }
319
+ switch (_response.error.reason) {
320
+ case "non-json":
321
+ throw new errors.TheraApiError({
322
+ statusCode: _response.error.statusCode,
323
+ body: _response.error.rawBody,
324
+ });
325
+ case "timeout":
326
+ throw new errors.TheraApiTimeoutError();
327
+ case "unknown":
328
+ throw new errors.TheraApiError({
329
+ message: _response.error.errorMessage,
330
+ });
331
+ }
332
+ });
333
+ }
334
+ /**
335
+ * Retrieve a list of all registered customers.
336
+ *
337
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
338
+ *
339
+ * @example
340
+ * await client.api.thera.bridge.bridgeApi.getAllCustomers()
341
+ */
342
+ getAllCustomers(requestOptions) {
343
+ return __awaiter(this, void 0, void 0, function* () {
344
+ const _response = yield core.fetcher({
345
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/customers"),
346
+ method: "GET",
347
+ headers: {
348
+ Authorization: yield this._getAuthorizationHeader(),
349
+ "X-Fern-Language": "JavaScript",
350
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
351
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
352
+ "X-Fern-Runtime": core.RUNTIME.type,
353
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
354
+ },
355
+ contentType: "application/json",
356
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
357
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
358
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
359
+ });
360
+ if (_response.ok) {
361
+ return yield serializers.api.thera.bridge.bridgeApi.getAllCustomers.Response.parseOrThrow(_response.body, {
362
+ unrecognizedObjectKeys: "passthrough",
363
+ allowUnrecognizedUnionMembers: true,
364
+ allowUnrecognizedEnumValues: true,
365
+ skipValidation: true,
366
+ breadcrumbsPrefix: ["response"],
367
+ });
368
+ }
369
+ if (_response.error.reason === "status-code") {
370
+ throw new errors.TheraApiError({
371
+ statusCode: _response.error.statusCode,
372
+ body: _response.error.body,
373
+ });
374
+ }
375
+ switch (_response.error.reason) {
376
+ case "non-json":
377
+ throw new errors.TheraApiError({
378
+ statusCode: _response.error.statusCode,
379
+ body: _response.error.rawBody,
380
+ });
381
+ case "timeout":
382
+ throw new errors.TheraApiTimeoutError();
383
+ case "unknown":
384
+ throw new errors.TheraApiError({
385
+ message: _response.error.errorMessage,
386
+ });
387
+ }
388
+ });
389
+ }
390
+ /**
391
+ * Initiates a payout transaction to an external crypto wallet.
392
+ *
393
+ * @param {TheraApi.api.thera.bridge.CryptoPayout} request
394
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
395
+ *
396
+ * @example
397
+ * await client.api.thera.bridge.bridgeApi.processCryptoPayout({
398
+ * customerId: "string",
399
+ * amount: "string",
400
+ * currency: "string",
401
+ * recipientWallet: "string",
402
+ * network: "string"
403
+ * })
404
+ */
405
+ processCryptoPayout(request, requestOptions) {
406
+ return __awaiter(this, void 0, void 0, function* () {
407
+ const _response = yield core.fetcher({
408
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/payments/crypto"),
409
+ method: "POST",
410
+ headers: {
411
+ Authorization: yield this._getAuthorizationHeader(),
412
+ "X-Fern-Language": "JavaScript",
413
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
414
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
415
+ "X-Fern-Runtime": core.RUNTIME.type,
416
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
417
+ },
418
+ contentType: "application/json",
419
+ body: yield serializers.api.thera.bridge.CryptoPayout.jsonOrThrow(request, {
420
+ unrecognizedObjectKeys: "strip",
421
+ }),
422
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
423
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
424
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
425
+ });
426
+ if (_response.ok) {
427
+ return yield serializers.api.thera.bridge.PayoutResponse.parseOrThrow(_response.body, {
428
+ unrecognizedObjectKeys: "passthrough",
429
+ allowUnrecognizedUnionMembers: true,
430
+ allowUnrecognizedEnumValues: true,
431
+ skipValidation: true,
432
+ breadcrumbsPrefix: ["response"],
433
+ });
434
+ }
435
+ if (_response.error.reason === "status-code") {
436
+ throw new errors.TheraApiError({
437
+ statusCode: _response.error.statusCode,
438
+ body: _response.error.body,
439
+ });
440
+ }
441
+ switch (_response.error.reason) {
442
+ case "non-json":
443
+ throw new errors.TheraApiError({
444
+ statusCode: _response.error.statusCode,
445
+ body: _response.error.rawBody,
446
+ });
447
+ case "timeout":
448
+ throw new errors.TheraApiTimeoutError();
449
+ case "unknown":
450
+ throw new errors.TheraApiError({
451
+ message: _response.error.errorMessage,
452
+ });
453
+ }
454
+ });
455
+ }
456
+ /**
457
+ * Retrieve the status of a previously processed crypto payout.
458
+ *
459
+ * @param {string} transactionId
460
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
461
+ *
462
+ * @example
463
+ * await client.api.thera.bridge.bridgeApi.getPayoutStatus("string")
464
+ */
465
+ getPayoutStatus(transactionId, requestOptions) {
466
+ return __awaiter(this, void 0, void 0, function* () {
467
+ const _response = yield core.fetcher({
468
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/payments/crypto/${encodeURIComponent(transactionId)}`),
469
+ method: "GET",
470
+ headers: {
471
+ Authorization: yield this._getAuthorizationHeader(),
472
+ "X-Fern-Language": "JavaScript",
473
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
474
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
475
+ "X-Fern-Runtime": core.RUNTIME.type,
476
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
477
+ },
478
+ contentType: "application/json",
479
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
480
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
481
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
482
+ });
483
+ if (_response.ok) {
484
+ return yield serializers.api.thera.bridge.PayoutStatus.parseOrThrow(_response.body, {
485
+ unrecognizedObjectKeys: "passthrough",
486
+ allowUnrecognizedUnionMembers: true,
487
+ allowUnrecognizedEnumValues: true,
488
+ skipValidation: true,
489
+ breadcrumbsPrefix: ["response"],
490
+ });
491
+ }
492
+ if (_response.error.reason === "status-code") {
493
+ throw new errors.TheraApiError({
494
+ statusCode: _response.error.statusCode,
495
+ body: _response.error.body,
496
+ });
497
+ }
498
+ switch (_response.error.reason) {
499
+ case "non-json":
500
+ throw new errors.TheraApiError({
501
+ statusCode: _response.error.statusCode,
502
+ body: _response.error.rawBody,
503
+ });
504
+ case "timeout":
505
+ throw new errors.TheraApiTimeoutError();
506
+ case "unknown":
507
+ throw new errors.TheraApiError({
508
+ message: _response.error.errorMessage,
509
+ });
510
+ }
511
+ });
512
+ }
513
+ /**
514
+ * Creates a new bridge wallet for a customer.
515
+ *
516
+ * @param {TheraApi.api.thera.bridge.CreateWalletRequest} request
517
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
518
+ *
519
+ * @example
520
+ * await client.api.thera.bridge.bridgeApi.createWallet({
521
+ * userId: "string",
522
+ * chain: "string"
523
+ * })
524
+ */
525
+ createWallet(request, requestOptions) {
526
+ return __awaiter(this, void 0, void 0, function* () {
527
+ const _response = yield core.fetcher({
528
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/wallets"),
529
+ method: "POST",
530
+ headers: {
531
+ Authorization: yield this._getAuthorizationHeader(),
532
+ "X-Fern-Language": "JavaScript",
533
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
534
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
535
+ "X-Fern-Runtime": core.RUNTIME.type,
536
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
537
+ },
538
+ contentType: "application/json",
539
+ body: yield serializers.api.thera.bridge.CreateWalletRequest.jsonOrThrow(request, {
540
+ unrecognizedObjectKeys: "strip",
541
+ }),
542
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
543
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
544
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
545
+ });
546
+ if (_response.ok) {
547
+ return yield serializers.api.thera.bridge.WalletDetails.parseOrThrow(_response.body, {
548
+ unrecognizedObjectKeys: "passthrough",
549
+ allowUnrecognizedUnionMembers: true,
550
+ allowUnrecognizedEnumValues: true,
551
+ skipValidation: true,
552
+ breadcrumbsPrefix: ["response"],
553
+ });
554
+ }
555
+ if (_response.error.reason === "status-code") {
556
+ throw new errors.TheraApiError({
557
+ statusCode: _response.error.statusCode,
558
+ body: _response.error.body,
559
+ });
560
+ }
561
+ switch (_response.error.reason) {
562
+ case "non-json":
563
+ throw new errors.TheraApiError({
564
+ statusCode: _response.error.statusCode,
565
+ body: _response.error.rawBody,
566
+ });
567
+ case "timeout":
568
+ throw new errors.TheraApiTimeoutError();
569
+ case "unknown":
570
+ throw new errors.TheraApiError({
571
+ message: _response.error.errorMessage,
572
+ });
573
+ }
574
+ });
575
+ }
576
+ /**
577
+ * Retrieves details of a specific wallet.
578
+ *
579
+ * @param {string} walletId
580
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
581
+ *
582
+ * @example
583
+ * await client.api.thera.bridge.bridgeApi.getWalletDetails("string")
584
+ */
585
+ getWalletDetails(walletId, requestOptions) {
586
+ return __awaiter(this, void 0, void 0, function* () {
587
+ const _response = yield core.fetcher({
588
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/wallets/${encodeURIComponent(walletId)}`),
589
+ method: "GET",
590
+ headers: {
591
+ Authorization: yield this._getAuthorizationHeader(),
592
+ "X-Fern-Language": "JavaScript",
593
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
594
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
595
+ "X-Fern-Runtime": core.RUNTIME.type,
596
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
597
+ },
598
+ contentType: "application/json",
599
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
600
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
601
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
602
+ });
603
+ if (_response.ok) {
604
+ return yield serializers.api.thera.bridge.WalletDetails.parseOrThrow(_response.body, {
605
+ unrecognizedObjectKeys: "passthrough",
606
+ allowUnrecognizedUnionMembers: true,
607
+ allowUnrecognizedEnumValues: true,
608
+ skipValidation: true,
609
+ breadcrumbsPrefix: ["response"],
610
+ });
611
+ }
612
+ if (_response.error.reason === "status-code") {
613
+ throw new errors.TheraApiError({
614
+ statusCode: _response.error.statusCode,
615
+ body: _response.error.body,
616
+ });
617
+ }
618
+ switch (_response.error.reason) {
619
+ case "non-json":
620
+ throw new errors.TheraApiError({
621
+ statusCode: _response.error.statusCode,
622
+ body: _response.error.rawBody,
623
+ });
624
+ case "timeout":
625
+ throw new errors.TheraApiTimeoutError();
626
+ case "unknown":
627
+ throw new errors.TheraApiError({
628
+ message: _response.error.errorMessage,
629
+ });
630
+ }
631
+ });
632
+ }
633
+ /**
634
+ * Retrieves all wallets associated with a customer.
635
+ *
636
+ * @param {string} customerId
637
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
638
+ *
639
+ * @example
640
+ * await client.api.thera.bridge.bridgeApi.listWallets("string")
641
+ */
642
+ listWallets(customerId, requestOptions) {
643
+ return __awaiter(this, void 0, void 0, function* () {
644
+ const _response = yield core.fetcher({
645
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/customers/${encodeURIComponent(customerId)}/wallets`),
646
+ method: "GET",
647
+ headers: {
648
+ Authorization: yield this._getAuthorizationHeader(),
649
+ "X-Fern-Language": "JavaScript",
650
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
651
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
652
+ "X-Fern-Runtime": core.RUNTIME.type,
653
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
654
+ },
655
+ contentType: "application/json",
656
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
657
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
658
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
659
+ });
660
+ if (_response.ok) {
661
+ return yield serializers.api.thera.bridge.bridgeApi.listWallets.Response.parseOrThrow(_response.body, {
662
+ unrecognizedObjectKeys: "passthrough",
663
+ allowUnrecognizedUnionMembers: true,
664
+ allowUnrecognizedEnumValues: true,
665
+ skipValidation: true,
666
+ breadcrumbsPrefix: ["response"],
667
+ });
668
+ }
669
+ if (_response.error.reason === "status-code") {
670
+ throw new errors.TheraApiError({
671
+ statusCode: _response.error.statusCode,
672
+ body: _response.error.body,
673
+ });
674
+ }
675
+ switch (_response.error.reason) {
676
+ case "non-json":
677
+ throw new errors.TheraApiError({
678
+ statusCode: _response.error.statusCode,
679
+ body: _response.error.rawBody,
680
+ });
681
+ case "timeout":
682
+ throw new errors.TheraApiTimeoutError();
683
+ case "unknown":
684
+ throw new errors.TheraApiError({
685
+ message: _response.error.errorMessage,
686
+ });
687
+ }
688
+ });
689
+ }
690
+ /**
691
+ * Transfers funds between custodial wallets.
692
+ *
693
+ * @param {TheraApi.api.thera.bridge.TransferFundsRequest} request
694
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
695
+ *
696
+ * @example
697
+ * await client.api.thera.bridge.bridgeApi.transferFunds({
698
+ * fromWalletId: "string",
699
+ * toWalletId: "string",
700
+ * amount: "string",
701
+ * currency: "string",
702
+ * flow: TheraApi.api.thera.bridge.TransferFundsFlow.PayoutWallet
703
+ * })
704
+ */
705
+ transferFunds(request, requestOptions) {
706
+ return __awaiter(this, void 0, void 0, function* () {
707
+ const _response = yield core.fetcher({
708
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/wallets/transfer"),
709
+ method: "POST",
710
+ headers: {
711
+ Authorization: yield this._getAuthorizationHeader(),
712
+ "X-Fern-Language": "JavaScript",
713
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
714
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
715
+ "X-Fern-Runtime": core.RUNTIME.type,
716
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
717
+ },
718
+ contentType: "application/json",
719
+ body: yield serializers.api.thera.bridge.TransferFundsRequest.jsonOrThrow(request, {
720
+ unrecognizedObjectKeys: "strip",
721
+ }),
722
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
723
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
724
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
725
+ });
726
+ if (_response.ok) {
727
+ return yield serializers.api.thera.bridge.TransferFundsResponse.parseOrThrow(_response.body, {
728
+ unrecognizedObjectKeys: "passthrough",
729
+ allowUnrecognizedUnionMembers: true,
730
+ allowUnrecognizedEnumValues: true,
731
+ skipValidation: true,
732
+ breadcrumbsPrefix: ["response"],
733
+ });
734
+ }
735
+ if (_response.error.reason === "status-code") {
736
+ throw new errors.TheraApiError({
737
+ statusCode: _response.error.statusCode,
738
+ body: _response.error.body,
739
+ });
740
+ }
741
+ switch (_response.error.reason) {
742
+ case "non-json":
743
+ throw new errors.TheraApiError({
744
+ statusCode: _response.error.statusCode,
745
+ body: _response.error.rawBody,
746
+ });
747
+ case "timeout":
748
+ throw new errors.TheraApiTimeoutError();
749
+ case "unknown":
750
+ throw new errors.TheraApiError({
751
+ message: _response.error.errorMessage,
752
+ });
753
+ }
754
+ });
755
+ }
756
+ /**
757
+ * Retrieve details of a linked external crypto account.
758
+ *
759
+ * @param {string} accountId
760
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
761
+ *
762
+ * @example
763
+ * await client.api.thera.bridge.bridgeApi.getExternalAccount("string")
764
+ */
765
+ getExternalAccount(accountId, requestOptions) {
766
+ return __awaiter(this, void 0, void 0, function* () {
767
+ const _response = yield core.fetcher({
768
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
769
+ method: "GET",
770
+ headers: {
771
+ Authorization: yield this._getAuthorizationHeader(),
772
+ "X-Fern-Language": "JavaScript",
773
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
774
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
775
+ "X-Fern-Runtime": core.RUNTIME.type,
776
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
777
+ },
778
+ contentType: "application/json",
779
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
780
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
781
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
782
+ });
783
+ if (_response.ok) {
784
+ return yield serializers.api.thera.bridge.ExternalAccount.parseOrThrow(_response.body, {
785
+ unrecognizedObjectKeys: "passthrough",
786
+ allowUnrecognizedUnionMembers: true,
787
+ allowUnrecognizedEnumValues: true,
788
+ skipValidation: true,
789
+ breadcrumbsPrefix: ["response"],
790
+ });
791
+ }
792
+ if (_response.error.reason === "status-code") {
793
+ throw new errors.TheraApiError({
794
+ statusCode: _response.error.statusCode,
795
+ body: _response.error.body,
796
+ });
797
+ }
798
+ switch (_response.error.reason) {
799
+ case "non-json":
800
+ throw new errors.TheraApiError({
801
+ statusCode: _response.error.statusCode,
802
+ body: _response.error.rawBody,
803
+ });
804
+ case "timeout":
805
+ throw new errors.TheraApiTimeoutError();
806
+ case "unknown":
807
+ throw new errors.TheraApiError({
808
+ message: _response.error.errorMessage,
809
+ });
810
+ }
811
+ });
812
+ }
813
+ /**
814
+ * Retrieve a list of all external accounts linked to customers.
815
+ *
816
+ * @param {string} customerId
817
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
818
+ *
819
+ * @example
820
+ * await client.api.thera.bridge.bridgeApi.listExternalAccounts("string")
821
+ */
822
+ listExternalAccounts(customerId, requestOptions) {
823
+ return __awaiter(this, void 0, void 0, function* () {
824
+ const _response = yield core.fetcher({
825
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/${encodeURIComponent(customerId)}/external-accounts`),
826
+ method: "GET",
827
+ headers: {
828
+ Authorization: yield this._getAuthorizationHeader(),
829
+ "X-Fern-Language": "JavaScript",
830
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
831
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
832
+ "X-Fern-Runtime": core.RUNTIME.type,
833
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
834
+ },
835
+ contentType: "application/json",
836
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
837
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
838
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
839
+ });
840
+ if (_response.ok) {
841
+ return yield serializers.api.thera.bridge.bridgeApi.listExternalAccounts.Response.parseOrThrow(_response.body, {
842
+ unrecognizedObjectKeys: "passthrough",
843
+ allowUnrecognizedUnionMembers: true,
844
+ allowUnrecognizedEnumValues: true,
845
+ skipValidation: true,
846
+ breadcrumbsPrefix: ["response"],
847
+ });
848
+ }
849
+ if (_response.error.reason === "status-code") {
850
+ throw new errors.TheraApiError({
851
+ statusCode: _response.error.statusCode,
852
+ body: _response.error.body,
853
+ });
854
+ }
855
+ switch (_response.error.reason) {
856
+ case "non-json":
857
+ throw new errors.TheraApiError({
858
+ statusCode: _response.error.statusCode,
859
+ body: _response.error.rawBody,
860
+ });
861
+ case "timeout":
862
+ throw new errors.TheraApiTimeoutError();
863
+ case "unknown":
864
+ throw new errors.TheraApiError({
865
+ message: _response.error.errorMessage,
866
+ });
867
+ }
868
+ });
869
+ }
870
+ /**
871
+ * Update details of a linked external account.
872
+ *
873
+ * @param {string} accountId
874
+ * @param {TheraApi.api.thera.bridge.UpdateExternalAccountRequest} request
875
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
876
+ *
877
+ * @example
878
+ * await client.api.thera.bridge.bridgeApi.updateExternalAccount("string", {
879
+ * nickname: "string",
880
+ * accountStatus: "string"
881
+ * })
882
+ */
883
+ updateExternalAccount(accountId, request, requestOptions) {
884
+ return __awaiter(this, void 0, void 0, function* () {
885
+ const _response = yield core.fetcher({
886
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
887
+ method: "PUT",
888
+ headers: {
889
+ Authorization: yield this._getAuthorizationHeader(),
890
+ "X-Fern-Language": "JavaScript",
891
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
892
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
893
+ "X-Fern-Runtime": core.RUNTIME.type,
894
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
895
+ },
896
+ contentType: "application/json",
897
+ body: yield serializers.api.thera.bridge.UpdateExternalAccountRequest.jsonOrThrow(request, {
898
+ unrecognizedObjectKeys: "strip",
899
+ }),
900
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
901
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
902
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
903
+ });
904
+ if (_response.ok) {
905
+ return yield serializers.api.thera.bridge.UpdateExternalAccountResponse.parseOrThrow(_response.body, {
906
+ unrecognizedObjectKeys: "passthrough",
907
+ allowUnrecognizedUnionMembers: true,
908
+ allowUnrecognizedEnumValues: true,
909
+ skipValidation: true,
910
+ breadcrumbsPrefix: ["response"],
911
+ });
912
+ }
913
+ if (_response.error.reason === "status-code") {
914
+ throw new errors.TheraApiError({
915
+ statusCode: _response.error.statusCode,
916
+ body: _response.error.body,
917
+ });
918
+ }
919
+ switch (_response.error.reason) {
920
+ case "non-json":
921
+ throw new errors.TheraApiError({
922
+ statusCode: _response.error.statusCode,
923
+ body: _response.error.rawBody,
924
+ });
925
+ case "timeout":
926
+ throw new errors.TheraApiTimeoutError();
927
+ case "unknown":
928
+ throw new errors.TheraApiError({
929
+ message: _response.error.errorMessage,
930
+ });
931
+ }
932
+ });
933
+ }
934
+ /**
935
+ * Unlinks an external crypto account from a customer.
936
+ *
937
+ * @param {string} accountId
938
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
939
+ *
940
+ * @example
941
+ * await client.api.thera.bridge.bridgeApi.unlinkExternalAccount("string")
942
+ */
943
+ unlinkExternalAccount(accountId, requestOptions) {
944
+ return __awaiter(this, void 0, void 0, function* () {
945
+ const _response = yield core.fetcher({
946
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
947
+ method: "DELETE",
948
+ headers: {
949
+ Authorization: yield this._getAuthorizationHeader(),
950
+ "X-Fern-Language": "JavaScript",
951
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
952
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
953
+ "X-Fern-Runtime": core.RUNTIME.type,
954
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
955
+ },
956
+ contentType: "application/json",
957
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
958
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
959
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
960
+ });
961
+ if (_response.ok) {
962
+ return;
963
+ }
964
+ if (_response.error.reason === "status-code") {
965
+ throw new errors.TheraApiError({
966
+ statusCode: _response.error.statusCode,
967
+ body: _response.error.body,
968
+ });
969
+ }
970
+ switch (_response.error.reason) {
971
+ case "non-json":
972
+ throw new errors.TheraApiError({
973
+ statusCode: _response.error.statusCode,
974
+ body: _response.error.rawBody,
975
+ });
976
+ case "timeout":
977
+ throw new errors.TheraApiTimeoutError();
978
+ case "unknown":
979
+ throw new errors.TheraApiError({
980
+ message: _response.error.errorMessage,
981
+ });
982
+ }
983
+ });
984
+ }
985
+ /**
986
+ * Reactivates a previously unlinked external account.
987
+ *
988
+ * @param {string} accountId
989
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
990
+ *
991
+ * @example
992
+ * await client.api.thera.bridge.bridgeApi.reactivateExternalAccount("string")
993
+ */
994
+ reactivateExternalAccount(accountId, requestOptions) {
995
+ return __awaiter(this, void 0, void 0, function* () {
996
+ const _response = yield core.fetcher({
997
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(accountId)}/reactivate`),
998
+ method: "POST",
999
+ headers: {
1000
+ Authorization: yield this._getAuthorizationHeader(),
1001
+ "X-Fern-Language": "JavaScript",
1002
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1003
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
1004
+ "X-Fern-Runtime": core.RUNTIME.type,
1005
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
1006
+ },
1007
+ contentType: "application/json",
1008
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1009
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1010
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1011
+ });
1012
+ if (_response.ok) {
1013
+ return;
1014
+ }
1015
+ if (_response.error.reason === "status-code") {
1016
+ throw new errors.TheraApiError({
1017
+ statusCode: _response.error.statusCode,
1018
+ body: _response.error.body,
1019
+ });
1020
+ }
1021
+ switch (_response.error.reason) {
1022
+ case "non-json":
1023
+ throw new errors.TheraApiError({
1024
+ statusCode: _response.error.statusCode,
1025
+ body: _response.error.rawBody,
1026
+ });
1027
+ case "timeout":
1028
+ throw new errors.TheraApiTimeoutError();
1029
+ case "unknown":
1030
+ throw new errors.TheraApiError({
1031
+ message: _response.error.errorMessage,
1032
+ });
1033
+ }
1034
+ });
1035
+ }
1036
+ /**
1037
+ * Initiates a transfer transaction between accounts.
1038
+ *
1039
+ * @param {TheraApi.api.thera.bridge.Transfer} request
1040
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1041
+ *
1042
+ * @example
1043
+ * await client.api.thera.bridge.bridgeApi.createTransfer({
1044
+ * clientReferenceId: "string",
1045
+ * amount: "string",
1046
+ * onBehalfOf: "string",
1047
+ * developerFee: "string",
1048
+ * source: {
1049
+ * currency: "string",
1050
+ * paymentRail: "string",
1051
+ * externalAccountId: "string",
1052
+ * bridgeWalletId: "string",
1053
+ * fromAddress: "string"
1054
+ * },
1055
+ * destination: {
1056
+ * currency: "string",
1057
+ * paymentRail: "string",
1058
+ * externalAccountId: "string",
1059
+ * bridgeWalletId: "string",
1060
+ * toAddress: "string",
1061
+ * wireMessage: "string",
1062
+ * sepaReference: "string",
1063
+ * swiftReference: "string",
1064
+ * swiftCharges: "string",
1065
+ * achReference: "string"
1066
+ * }
1067
+ * })
1068
+ */
1069
+ createTransfer(request, requestOptions) {
1070
+ return __awaiter(this, void 0, void 0, function* () {
1071
+ const _response = yield core.fetcher({
1072
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/transfers"),
1073
+ method: "POST",
1074
+ headers: {
1075
+ Authorization: yield this._getAuthorizationHeader(),
1076
+ "X-Fern-Language": "JavaScript",
1077
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1078
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
1079
+ "X-Fern-Runtime": core.RUNTIME.type,
1080
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
1081
+ },
1082
+ contentType: "application/json",
1083
+ body: yield serializers.api.thera.bridge.Transfer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1084
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1085
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1086
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1087
+ });
1088
+ if (_response.ok) {
1089
+ return yield serializers.api.thera.bridge.TransferFundsResponse.parseOrThrow(_response.body, {
1090
+ unrecognizedObjectKeys: "passthrough",
1091
+ allowUnrecognizedUnionMembers: true,
1092
+ allowUnrecognizedEnumValues: true,
1093
+ skipValidation: true,
1094
+ breadcrumbsPrefix: ["response"],
1095
+ });
1096
+ }
1097
+ if (_response.error.reason === "status-code") {
1098
+ throw new errors.TheraApiError({
1099
+ statusCode: _response.error.statusCode,
1100
+ body: _response.error.body,
1101
+ });
1102
+ }
1103
+ switch (_response.error.reason) {
1104
+ case "non-json":
1105
+ throw new errors.TheraApiError({
1106
+ statusCode: _response.error.statusCode,
1107
+ body: _response.error.rawBody,
1108
+ });
1109
+ case "timeout":
1110
+ throw new errors.TheraApiTimeoutError();
1111
+ case "unknown":
1112
+ throw new errors.TheraApiError({
1113
+ message: _response.error.errorMessage,
1114
+ });
1115
+ }
1116
+ });
1117
+ }
1118
+ /**
1119
+ * Retrieve details of a specific transfer.
1120
+ *
1121
+ * @param {string} transactionId
1122
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1123
+ *
1124
+ * @example
1125
+ * await client.api.thera.bridge.bridgeApi.getTransferDetails("string")
1126
+ */
1127
+ getTransferDetails(transactionId, requestOptions) {
1128
+ return __awaiter(this, void 0, void 0, function* () {
1129
+ const _response = yield core.fetcher({
1130
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/transfers/${encodeURIComponent(transactionId)}`),
1131
+ method: "GET",
1132
+ headers: {
1133
+ Authorization: yield this._getAuthorizationHeader(),
1134
+ "X-Fern-Language": "JavaScript",
1135
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1136
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
1137
+ "X-Fern-Runtime": core.RUNTIME.type,
1138
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
1139
+ },
1140
+ contentType: "application/json",
1141
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1142
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1143
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1144
+ });
1145
+ if (_response.ok) {
1146
+ return yield serializers.api.thera.bridge.TransferDetails.parseOrThrow(_response.body, {
1147
+ unrecognizedObjectKeys: "passthrough",
1148
+ allowUnrecognizedUnionMembers: true,
1149
+ allowUnrecognizedEnumValues: true,
1150
+ skipValidation: true,
1151
+ breadcrumbsPrefix: ["response"],
1152
+ });
1153
+ }
1154
+ if (_response.error.reason === "status-code") {
1155
+ throw new errors.TheraApiError({
1156
+ statusCode: _response.error.statusCode,
1157
+ body: _response.error.body,
1158
+ });
1159
+ }
1160
+ switch (_response.error.reason) {
1161
+ case "non-json":
1162
+ throw new errors.TheraApiError({
1163
+ statusCode: _response.error.statusCode,
1164
+ body: _response.error.rawBody,
1165
+ });
1166
+ case "timeout":
1167
+ throw new errors.TheraApiTimeoutError();
1168
+ case "unknown":
1169
+ throw new errors.TheraApiError({
1170
+ message: _response.error.errorMessage,
1171
+ });
1172
+ }
1173
+ });
1174
+ }
1175
+ /**
1176
+ * Retrieves all transfers.
1177
+ *
1178
+ * @param {string} customerId
1179
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1180
+ *
1181
+ * @example
1182
+ * await client.api.thera.bridge.bridgeApi.listTransfers("string")
1183
+ */
1184
+ listTransfers(customerId, requestOptions) {
1185
+ return __awaiter(this, void 0, void 0, function* () {
1186
+ const _response = yield core.fetcher({
1187
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/${encodeURIComponent(customerId)}/transfers`),
1188
+ method: "GET",
1189
+ headers: {
1190
+ Authorization: yield this._getAuthorizationHeader(),
1191
+ "X-Fern-Language": "JavaScript",
1192
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1193
+ "X-Fern-SDK-Version": "0.0.1-prerelease2783-dev-2",
1194
+ "X-Fern-Runtime": core.RUNTIME.type,
1195
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
1196
+ },
1197
+ contentType: "application/json",
1198
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1199
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1200
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1201
+ });
1202
+ if (_response.ok) {
1203
+ return yield serializers.api.thera.bridge.bridgeApi.listTransfers.Response.parseOrThrow(_response.body, {
1204
+ unrecognizedObjectKeys: "passthrough",
1205
+ allowUnrecognizedUnionMembers: true,
1206
+ allowUnrecognizedEnumValues: true,
1207
+ skipValidation: true,
1208
+ breadcrumbsPrefix: ["response"],
1209
+ });
1210
+ }
1211
+ if (_response.error.reason === "status-code") {
1212
+ throw new errors.TheraApiError({
1213
+ statusCode: _response.error.statusCode,
1214
+ body: _response.error.body,
1215
+ });
1216
+ }
1217
+ switch (_response.error.reason) {
1218
+ case "non-json":
1219
+ throw new errors.TheraApiError({
1220
+ statusCode: _response.error.statusCode,
1221
+ body: _response.error.rawBody,
1222
+ });
1223
+ case "timeout":
1224
+ throw new errors.TheraApiTimeoutError();
1225
+ case "unknown":
1226
+ throw new errors.TheraApiError({
1227
+ message: _response.error.errorMessage,
1228
+ });
1229
+ }
1230
+ });
1231
+ }
1232
+ _getAuthorizationHeader() {
1233
+ return __awaiter(this, void 0, void 0, function* () {
1234
+ const bearer = yield core.Supplier.get(this._options.token);
1235
+ if (bearer != null) {
1236
+ return `Bearer ${bearer}`;
1237
+ }
1238
+ return undefined;
1239
+ });
1240
+ }
1241
+ }
1242
+ exports.BridgeApi = BridgeApi;