@thera-hr/api-sdk 0.0.1-prerelease2778-dev-anthony → 0.0.1-prerelease2779-staging

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