@thera-hr/api-sdk 0.0.1-prerelease3102-production → 0.0.1-prerelease3103-dev

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 (250) 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/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +7 -7
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +42 -42
  8. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +28 -0
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +178 -24
  10. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.d.ts +15 -0
  11. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.js +17 -0
  12. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.d.ts +18 -0
  13. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.js +5 -0
  14. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.d.ts +8 -0
  15. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.js +5 -0
  16. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.d.ts +8 -0
  17. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.js +5 -0
  18. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.d.ts +12 -0
  19. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.js +5 -0
  20. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.d.ts +9 -0
  21. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.js +11 -0
  22. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.d.ts +11 -0
  23. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.js +13 -0
  24. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.d.ts +10 -0
  25. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.js +12 -0
  26. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.d.ts +15 -0
  27. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.js +5 -0
  28. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.d.ts +12 -0
  29. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.js +5 -0
  30. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.d.ts +9 -0
  31. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.js +5 -0
  32. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.d.ts +8 -0
  33. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.js +5 -0
  34. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.d.ts +8 -0
  35. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.js +10 -0
  36. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.d.ts +7 -0
  37. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.js +5 -0
  38. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.d.ts +7 -0
  39. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.js +9 -0
  40. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.d.ts +10 -0
  41. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.js +5 -0
  42. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.d.ts +7 -0
  43. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.js +5 -0
  44. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.d.ts +8 -0
  45. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.js +5 -0
  46. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.d.ts +13 -0
  47. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.js +15 -0
  48. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.d.ts +8 -0
  49. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.js +10 -0
  50. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +20 -0
  51. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +20 -0
  52. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  53. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  54. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  55. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  56. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  57. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  58. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  59. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  60. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  61. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  62. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  63. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  64. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +4 -4
  65. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  66. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  67. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  68. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  69. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  70. package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
  71. package/api/resources/db/resources/user/types/CardAccountDetails.d.ts +12 -0
  72. package/api/resources/db/resources/user/types/CardAccountDetails.js +5 -0
  73. package/api/resources/db/resources/user/types/index.d.ts +1 -0
  74. package/api/resources/db/resources/user/types/index.js +1 -0
  75. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  76. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  77. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  78. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  79. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  80. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +7 -7
  81. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +42 -42
  82. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +28 -0
  83. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +178 -24
  84. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.d.ts +15 -0
  85. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.js +17 -0
  86. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.d.ts +18 -0
  87. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.js +5 -0
  88. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.d.ts +8 -0
  89. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.js +5 -0
  90. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.d.ts +8 -0
  91. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.js +5 -0
  92. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.d.ts +12 -0
  93. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.js +5 -0
  94. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.d.ts +9 -0
  95. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.js +11 -0
  96. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.d.ts +11 -0
  97. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.js +13 -0
  98. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.d.ts +10 -0
  99. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.js +12 -0
  100. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.d.ts +15 -0
  101. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.js +5 -0
  102. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.d.ts +12 -0
  103. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.js +5 -0
  104. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.d.ts +9 -0
  105. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.js +5 -0
  106. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.d.ts +8 -0
  107. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.js +5 -0
  108. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.d.ts +8 -0
  109. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.js +10 -0
  110. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.d.ts +7 -0
  111. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.js +5 -0
  112. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.d.ts +7 -0
  113. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.js +9 -0
  114. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.d.ts +10 -0
  115. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.js +5 -0
  116. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.d.ts +7 -0
  117. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.js +5 -0
  118. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.d.ts +8 -0
  119. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.js +5 -0
  120. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.d.ts +13 -0
  121. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.js +15 -0
  122. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.d.ts +8 -0
  123. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.js +10 -0
  124. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +20 -0
  125. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +20 -0
  126. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  127. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  128. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  129. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  130. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  131. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  132. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  133. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  134. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  135. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  136. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  137. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  138. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +4 -4
  139. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  140. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  141. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  142. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  143. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  144. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
  145. package/dist/api/resources/db/resources/user/types/CardAccountDetails.d.ts +12 -0
  146. package/dist/api/resources/db/resources/user/types/CardAccountDetails.js +5 -0
  147. package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
  148. package/dist/api/resources/db/resources/user/types/index.js +1 -0
  149. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.d.ts +10 -0
  150. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.js +51 -0
  151. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.d.ts +29 -0
  152. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.js +60 -0
  153. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.d.ts +14 -0
  154. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.js +45 -0
  155. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.d.ts +14 -0
  156. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.js +45 -0
  157. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.d.ts +19 -0
  158. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.js +50 -0
  159. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.d.ts +10 -0
  160. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.js +41 -0
  161. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.d.ts +10 -0
  162. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.js +47 -0
  163. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.d.ts +10 -0
  164. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.js +41 -0
  165. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.d.ts +23 -0
  166. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.js +54 -0
  167. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.d.ts +18 -0
  168. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.js +49 -0
  169. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.d.ts +15 -0
  170. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.js +46 -0
  171. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.d.ts +14 -0
  172. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.js +45 -0
  173. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.d.ts +10 -0
  174. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.js +41 -0
  175. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.d.ts +13 -0
  176. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.js +44 -0
  177. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.d.ts +10 -0
  178. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.js +41 -0
  179. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.d.ts +17 -0
  180. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.js +48 -0
  181. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.d.ts +13 -0
  182. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.js +44 -0
  183. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.d.ts +14 -0
  184. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.js +45 -0
  185. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.d.ts +10 -0
  186. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.js +49 -0
  187. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.d.ts +10 -0
  188. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.js +41 -0
  189. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +20 -0
  190. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +20 -0
  191. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +2 -0
  192. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +2 -0
  193. package/dist/serialization/resources/db/resources/user/types/CardAccountDetails.d.ts +18 -0
  194. package/dist/serialization/resources/db/resources/user/types/CardAccountDetails.js +49 -0
  195. package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  196. package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
  197. package/dist/version.d.ts +1 -1
  198. package/dist/version.js +1 -1
  199. package/package.json +1 -1
  200. package/reference.md +181 -6
  201. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.d.ts +10 -0
  202. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.js +51 -0
  203. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.d.ts +29 -0
  204. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.js +60 -0
  205. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.d.ts +14 -0
  206. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.js +45 -0
  207. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.d.ts +14 -0
  208. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.js +45 -0
  209. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.d.ts +19 -0
  210. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.js +50 -0
  211. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.d.ts +10 -0
  212. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.js +41 -0
  213. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.d.ts +10 -0
  214. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.js +47 -0
  215. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.d.ts +10 -0
  216. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.js +41 -0
  217. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.d.ts +23 -0
  218. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.js +54 -0
  219. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.d.ts +18 -0
  220. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.js +49 -0
  221. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.d.ts +15 -0
  222. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.js +46 -0
  223. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.d.ts +14 -0
  224. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.js +45 -0
  225. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.d.ts +10 -0
  226. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.js +41 -0
  227. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.d.ts +13 -0
  228. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.js +44 -0
  229. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.d.ts +10 -0
  230. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.js +41 -0
  231. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.d.ts +17 -0
  232. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.js +48 -0
  233. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.d.ts +13 -0
  234. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.js +44 -0
  235. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.d.ts +14 -0
  236. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.js +45 -0
  237. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.d.ts +10 -0
  238. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.js +49 -0
  239. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.d.ts +10 -0
  240. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.js +41 -0
  241. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +20 -0
  242. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +20 -0
  243. package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +2 -0
  244. package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +2 -0
  245. package/serialization/resources/db/resources/user/types/CardAccountDetails.d.ts +18 -0
  246. package/serialization/resources/db/resources/user/types/CardAccountDetails.js +49 -0
  247. package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  248. package/serialization/resources/db/resources/user/types/index.js +1 -0
  249. package/version.d.ts +1 -1
  250. package/version.js +1 -1
@@ -71,7 +71,7 @@ class BridgeApi {
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers/tos_links"),
73
73
  method: "POST",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -171,7 +171,7 @@ class BridgeApi {
171
171
  const _response = yield core.fetcher({
172
172
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers"),
173
173
  method: "POST",
174
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
175
  contentType: "application/json",
176
176
  requestType: "json",
177
177
  body: serializers.api.thera.bridge.CreateCustomer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class BridgeApi {
224
224
  const _response = yield core.fetcher({
225
225
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(userId)}/kyc-link`),
226
226
  method: "GET",
227
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -282,7 +282,7 @@ class BridgeApi {
282
282
  const _response = yield core.fetcher({
283
283
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(customerId)}/accounts`),
284
284
  method: "POST",
285
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
286
  contentType: "application/json",
287
287
  requestType: "json",
288
288
  body: serializers.api.thera.bridge.ExternalAccount.jsonOrThrow(request, {
@@ -337,7 +337,7 @@ class BridgeApi {
337
337
  const _response = yield core.fetcher({
338
338
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}`),
339
339
  method: "GET",
340
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
341
341
  contentType: "application/json",
342
342
  requestType: "json",
343
343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -388,7 +388,7 @@ class BridgeApi {
388
388
  const _response = yield core.fetcher({
389
389
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers"),
390
390
  method: "GET",
391
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
391
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
392
392
  contentType: "application/json",
393
393
  requestType: "json",
394
394
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -446,7 +446,7 @@ class BridgeApi {
446
446
  const _response = yield core.fetcher({
447
447
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/payments/crypto"),
448
448
  method: "POST",
449
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
449
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
450
450
  contentType: "application/json",
451
451
  requestType: "json",
452
452
  body: serializers.api.thera.bridge.CryptoPayout.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -499,7 +499,7 @@ class BridgeApi {
499
499
  const _response = yield core.fetcher({
500
500
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/payments/crypto/${encodeURIComponent(transactionId)}`),
501
501
  method: "GET",
502
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
502
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
503
503
  contentType: "application/json",
504
504
  requestType: "json",
505
505
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -554,7 +554,7 @@ class BridgeApi {
554
554
  const _response = yield core.fetcher({
555
555
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/wallets"),
556
556
  method: "POST",
557
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
557
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
558
558
  contentType: "application/json",
559
559
  requestType: "json",
560
560
  body: serializers.api.thera.bridge.CreateWalletRequest.jsonOrThrow(request, {
@@ -609,7 +609,7 @@ class BridgeApi {
609
609
  const _response = yield core.fetcher({
610
610
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/wallets/${encodeURIComponent(walletId)}`),
611
611
  method: "GET",
612
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
612
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
613
613
  contentType: "application/json",
614
614
  requestType: "json",
615
615
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -661,7 +661,7 @@ class BridgeApi {
661
661
  const _response = yield core.fetcher({
662
662
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/wallets`),
663
663
  method: "GET",
664
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
664
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
665
665
  contentType: "application/json",
666
666
  requestType: "json",
667
667
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -713,7 +713,7 @@ class BridgeApi {
713
713
  const _response = yield core.fetcher({
714
714
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/wallets/${encodeURIComponent(walletId)}/history`),
715
715
  method: "GET",
716
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
716
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
717
717
  contentType: "application/json",
718
718
  requestType: "json",
719
719
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -772,7 +772,7 @@ class BridgeApi {
772
772
  const _response = yield core.fetcher({
773
773
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/wallets/transfer"),
774
774
  method: "POST",
775
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
775
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
776
776
  contentType: "application/json",
777
777
  requestType: "json",
778
778
  body: serializers.api.thera.bridge.TransferFundsRequest.jsonOrThrow(request, {
@@ -827,7 +827,7 @@ class BridgeApi {
827
827
  const _response = yield core.fetcher({
828
828
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
829
829
  method: "GET",
830
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
830
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
831
831
  contentType: "application/json",
832
832
  requestType: "json",
833
833
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -879,7 +879,7 @@ class BridgeApi {
879
879
  const _response = yield core.fetcher({
880
880
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/${encodeURIComponent(customerId)}/external-accounts`),
881
881
  method: "GET",
882
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
882
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
883
883
  contentType: "application/json",
884
884
  requestType: "json",
885
885
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -935,7 +935,7 @@ class BridgeApi {
935
935
  const _response = yield core.fetcher({
936
936
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
937
937
  method: "PUT",
938
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
938
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
939
939
  contentType: "application/json",
940
940
  requestType: "json",
941
941
  body: serializers.api.thera.bridge.UpdateExternalAccountRequest.jsonOrThrow(request, {
@@ -990,7 +990,7 @@ class BridgeApi {
990
990
  const _response = yield core.fetcher({
991
991
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
992
992
  method: "DELETE",
993
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
993
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
994
994
  contentType: "application/json",
995
995
  requestType: "json",
996
996
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1036,7 +1036,7 @@ class BridgeApi {
1036
1036
  const _response = yield core.fetcher({
1037
1037
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}/reactivate`),
1038
1038
  method: "POST",
1039
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1039
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1040
1040
  contentType: "application/json",
1041
1041
  requestType: "json",
1042
1042
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1106,7 +1106,7 @@ class BridgeApi {
1106
1106
  const _response = yield core.fetcher({
1107
1107
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/transfers"),
1108
1108
  method: "POST",
1109
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1109
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1110
1110
  contentType: "application/json",
1111
1111
  requestType: "json",
1112
1112
  body: serializers.api.thera.bridge.Transfer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1159,7 +1159,7 @@ class BridgeApi {
1159
1159
  const _response = yield core.fetcher({
1160
1160
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/transfers/${encodeURIComponent(transactionId)}`),
1161
1161
  method: "GET",
1162
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1162
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1163
1163
  contentType: "application/json",
1164
1164
  requestType: "json",
1165
1165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1211,7 +1211,7 @@ class BridgeApi {
1211
1211
  const _response = yield core.fetcher({
1212
1212
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/${encodeURIComponent(customerId)}/transfers`),
1213
1213
  method: "GET",
1214
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1214
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1215
1215
  contentType: "application/json",
1216
1216
  requestType: "json",
1217
1217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1263,7 +1263,7 @@ class BridgeApi {
1263
1263
  const _response = yield core.fetcher({
1264
1264
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts`),
1265
1265
  method: "POST",
1266
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1266
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1267
1267
  contentType: "application/json",
1268
1268
  requestType: "json",
1269
1269
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1315,7 +1315,7 @@ class BridgeApi {
1315
1315
  const _response = yield core.fetcher({
1316
1316
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts`),
1317
1317
  method: "GET",
1318
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1318
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1319
1319
  contentType: "application/json",
1320
1320
  requestType: "json",
1321
1321
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1367,7 +1367,7 @@ class BridgeApi {
1367
1367
  const _response = yield core.fetcher({
1368
1368
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts-history`),
1369
1369
  method: "GET",
1370
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3102-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3102-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1370
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1371
1371
  contentType: "application/json",
1372
1372
  requestType: "json",
1373
1373
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1404,6 +1404,160 @@ class BridgeApi {
1404
1404
  }
1405
1405
  });
1406
1406
  }
1407
+ /**
1408
+ * Creates a bridge cards for a customer.
1409
+ *
1410
+ * @param {string} userId
1411
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1412
+ *
1413
+ * @example
1414
+ * await client.api.thera.bridge.bridgeApi.createCards("string")
1415
+ */
1416
+ createCards(userId, requestOptions) {
1417
+ return __awaiter(this, void 0, void 0, function* () {
1418
+ var _a;
1419
+ const _response = yield core.fetcher({
1420
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/card-accounts`),
1421
+ method: "POST",
1422
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1423
+ contentType: "application/json",
1424
+ requestType: "json",
1425
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1426
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1427
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1428
+ });
1429
+ if (_response.ok) {
1430
+ return serializers.api.thera.bridge.CardAccount.parseOrThrow(_response.body, {
1431
+ unrecognizedObjectKeys: "passthrough",
1432
+ allowUnrecognizedUnionMembers: true,
1433
+ allowUnrecognizedEnumValues: true,
1434
+ skipValidation: true,
1435
+ breadcrumbsPrefix: ["response"],
1436
+ });
1437
+ }
1438
+ if (_response.error.reason === "status-code") {
1439
+ throw new errors.TheraApiError({
1440
+ statusCode: _response.error.statusCode,
1441
+ body: _response.error.body,
1442
+ });
1443
+ }
1444
+ switch (_response.error.reason) {
1445
+ case "non-json":
1446
+ throw new errors.TheraApiError({
1447
+ statusCode: _response.error.statusCode,
1448
+ body: _response.error.rawBody,
1449
+ });
1450
+ case "timeout":
1451
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bridge/users/{userId}/card-accounts.");
1452
+ case "unknown":
1453
+ throw new errors.TheraApiError({
1454
+ message: _response.error.errorMessage,
1455
+ });
1456
+ }
1457
+ });
1458
+ }
1459
+ /**
1460
+ * @param {string} customerId
1461
+ * @param {string} cardAccountId
1462
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1463
+ *
1464
+ * @example
1465
+ * await client.api.thera.bridge.bridgeApi.retrieveCardById("string", "string")
1466
+ */
1467
+ retrieveCardById(customerId, cardAccountId, requestOptions) {
1468
+ return __awaiter(this, void 0, void 0, function* () {
1469
+ var _a;
1470
+ const _response = yield core.fetcher({
1471
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-account/${encodeURIComponent(cardAccountId)}`),
1472
+ method: "GET",
1473
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1474
+ contentType: "application/json",
1475
+ requestType: "json",
1476
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1477
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1478
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1479
+ });
1480
+ if (_response.ok) {
1481
+ return serializers.api.thera.bridge.CardAccount.parseOrThrow(_response.body, {
1482
+ unrecognizedObjectKeys: "passthrough",
1483
+ allowUnrecognizedUnionMembers: true,
1484
+ allowUnrecognizedEnumValues: true,
1485
+ skipValidation: true,
1486
+ breadcrumbsPrefix: ["response"],
1487
+ });
1488
+ }
1489
+ if (_response.error.reason === "status-code") {
1490
+ throw new errors.TheraApiError({
1491
+ statusCode: _response.error.statusCode,
1492
+ body: _response.error.body,
1493
+ });
1494
+ }
1495
+ switch (_response.error.reason) {
1496
+ case "non-json":
1497
+ throw new errors.TheraApiError({
1498
+ statusCode: _response.error.statusCode,
1499
+ body: _response.error.rawBody,
1500
+ });
1501
+ case "timeout":
1502
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /bridge/customers/{customerId}/card-account/{cardAccountId}.");
1503
+ case "unknown":
1504
+ throw new errors.TheraApiError({
1505
+ message: _response.error.errorMessage,
1506
+ });
1507
+ }
1508
+ });
1509
+ }
1510
+ /**
1511
+ * @param {string} customerId
1512
+ * @param {string} cardAccountId
1513
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1514
+ *
1515
+ * @example
1516
+ * await client.api.thera.bridge.bridgeApi.cardTransactions("string", "string")
1517
+ */
1518
+ cardTransactions(customerId, cardAccountId, requestOptions) {
1519
+ return __awaiter(this, void 0, void 0, function* () {
1520
+ var _a;
1521
+ const _response = yield core.fetcher({
1522
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-accounts/${encodeURIComponent(cardAccountId)}/transactions`),
1523
+ method: "GET",
1524
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3103-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3103-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1525
+ contentType: "application/json",
1526
+ requestType: "json",
1527
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1528
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1529
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1530
+ });
1531
+ if (_response.ok) {
1532
+ return serializers.api.thera.bridge.CardTransactionList.parseOrThrow(_response.body, {
1533
+ unrecognizedObjectKeys: "passthrough",
1534
+ allowUnrecognizedUnionMembers: true,
1535
+ allowUnrecognizedEnumValues: true,
1536
+ skipValidation: true,
1537
+ breadcrumbsPrefix: ["response"],
1538
+ });
1539
+ }
1540
+ if (_response.error.reason === "status-code") {
1541
+ throw new errors.TheraApiError({
1542
+ statusCode: _response.error.statusCode,
1543
+ body: _response.error.body,
1544
+ });
1545
+ }
1546
+ switch (_response.error.reason) {
1547
+ case "non-json":
1548
+ throw new errors.TheraApiError({
1549
+ statusCode: _response.error.statusCode,
1550
+ body: _response.error.rawBody,
1551
+ });
1552
+ case "timeout":
1553
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /bridge/customers/{customerId}/card-accounts/{cardAccountId}/transactions.");
1554
+ case "unknown":
1555
+ throw new errors.TheraApiError({
1556
+ message: _response.error.errorMessage,
1557
+ });
1558
+ }
1559
+ });
1560
+ }
1407
1561
  _getAuthorizationHeader() {
1408
1562
  return __awaiter(this, void 0, void 0, function* () {
1409
1563
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type BlockChain = "arbitrum" | "avalanche_c_chain" | "base" | "ethereum" | "optimism" | "polygon" | "solana" | "stellar" | "tron";
5
+ export declare const BlockChain: {
6
+ readonly Arbitrum: "arbitrum";
7
+ readonly AvalancheCChain: "avalanche_c_chain";
8
+ readonly Base: "base";
9
+ readonly Ethereum: "ethereum";
10
+ readonly Optimism: "optimism";
11
+ readonly Polygon: "polygon";
12
+ readonly Solana: "solana";
13
+ readonly Stellar: "stellar";
14
+ readonly Tron: "tron";
15
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BlockChain = void 0;
7
+ exports.BlockChain = {
8
+ Arbitrum: "arbitrum",
9
+ AvalancheCChain: "avalanche_c_chain",
10
+ Base: "base",
11
+ Ethereum: "ethereum",
12
+ Optimism: "optimism",
13
+ Polygon: "polygon",
14
+ Solana: "solana",
15
+ Stellar: "stellar",
16
+ Tron: "tron",
17
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface CardAccount {
6
+ id: string;
7
+ clientReferenceId?: string;
8
+ customerId: string;
9
+ cardImageUrl: string;
10
+ status: TheraApi.api.thera.bridge.CardStatus;
11
+ statusReason?: string;
12
+ cardDetails: TheraApi.api.thera.bridge.CardDetails;
13
+ balances: TheraApi.api.thera.bridge.CardBalances;
14
+ freezes: TheraApi.api.thera.bridge.CardFreeze[];
15
+ cardAccountId: string;
16
+ cryptoAccount?: TheraApi.api.thera.bridge.CryptoAccount;
17
+ fundingInstructions?: TheraApi.api.thera.bridge.FundingInstructions;
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface CardBalances {
6
+ available: TheraApi.api.thera.bridge.MoneyAmount;
7
+ hold: TheraApi.api.thera.bridge.MoneyAmount;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CardDetails {
5
+ last4: string;
6
+ expiry: string;
7
+ bin: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface CardFreeze {
6
+ initiator: TheraApi.api.thera.bridge.CardFreezeInitiator;
7
+ reason: TheraApi.api.thera.bridge.CardFreezeReason;
8
+ reasonDetail?: string;
9
+ startingAt?: Date;
10
+ endingAt?: Date;
11
+ createdAt: Date;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CardFreezeInitiator = "bridge" | "developer" | "customer";
5
+ export declare const CardFreezeInitiator: {
6
+ readonly Bridge: "bridge";
7
+ readonly Developer: "developer";
8
+ readonly Customer: "customer";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CardFreezeInitiator = void 0;
7
+ exports.CardFreezeInitiator = {
8
+ Bridge: "bridge",
9
+ Developer: "developer",
10
+ Customer: "customer",
11
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CardFreezeReason = "lost_or_stolen" | "suspicious_activity" | "planned_inactivity" | "suspected_fraud" | "other";
5
+ export declare const CardFreezeReason: {
6
+ readonly LostOrStolen: "lost_or_stolen";
7
+ readonly SuspiciousActivity: "suspicious_activity";
8
+ readonly PlannedInactivity: "planned_inactivity";
9
+ readonly SuspectedFraud: "suspected_fraud";
10
+ readonly Other: "other";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CardFreezeReason = void 0;
7
+ exports.CardFreezeReason = {
8
+ LostOrStolen: "lost_or_stolen",
9
+ SuspiciousActivity: "suspicious_activity",
10
+ PlannedInactivity: "planned_inactivity",
11
+ SuspectedFraud: "suspected_fraud",
12
+ Other: "other",
13
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CardStatus = "active" | "pending" | "inactive" | "frozen";
5
+ export declare const CardStatus: {
6
+ readonly Active: "active";
7
+ readonly Pending: "pending";
8
+ readonly Inactive: "inactive";
9
+ readonly Frozen: "frozen";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CardStatus = void 0;
7
+ exports.CardStatus = {
8
+ Active: "active",
9
+ Pending: "pending",
10
+ Inactive: "inactive",
11
+ Frozen: "frozen",
12
+ };