@thera-hr/api-sdk 0.0.1-prerelease3534-dev-3 → 0.0.1-prerelease3534-production

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 (118) 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.js +37 -37
  7. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  9. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  10. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  11. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  12. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  13. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  15. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  16. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  17. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  18. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +12 -0
  19. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +57 -8
  20. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.d.ts +12 -0
  21. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  22. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  23. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  24. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  25. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  26. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  27. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  28. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +15 -38
  29. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +26 -187
  30. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +15 -1
  31. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +0 -1
  32. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -3
  33. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -3
  34. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  35. package/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +13 -2
  36. package/api/resources/db/resources/company/types/CompanySettings.d.ts +5 -0
  37. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  38. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  39. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  40. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  41. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  42. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
  43. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  44. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  45. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  46. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  47. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  48. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  49. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  50. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  51. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  52. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  53. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  54. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +12 -0
  55. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +57 -8
  56. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.d.ts +12 -0
  57. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  58. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  59. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  60. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  61. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  62. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  63. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  64. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +15 -38
  65. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +26 -187
  66. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +15 -1
  67. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +0 -1
  68. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -3
  69. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -3
  70. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  71. package/dist/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +13 -2
  72. package/dist/api/resources/db/resources/company/types/CompanySettings.d.ts +5 -0
  73. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -3
  74. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -3
  75. package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +5 -1
  76. package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +5 -1
  77. package/dist/serialization/resources/db/resources/company/types/CompanySettings.d.ts +1 -0
  78. package/dist/serialization/resources/db/resources/company/types/CompanySettings.js +1 -0
  79. package/dist/version.d.ts +1 -1
  80. package/dist/version.js +1 -1
  81. package/package.json +1 -1
  82. package/reference.md +80 -218
  83. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -3
  84. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -3
  85. package/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +5 -1
  86. package/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +5 -1
  87. package/serialization/resources/db/resources/company/types/CompanySettings.d.ts +1 -0
  88. package/serialization/resources/db/resources/company/types/CompanySettings.js +1 -0
  89. package/version.d.ts +1 -1
  90. package/version.js +1 -1
  91. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/ListAchTransfersRequest.d.ts +0 -16
  92. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.d.ts +0 -22
  93. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.d.ts +0 -9
  94. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.js +0 -5
  95. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.d.ts +0 -14
  96. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.js +0 -5
  97. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/ListAchTransfersRequest.d.ts +0 -16
  98. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/ListAchTransfersRequest.js +0 -5
  99. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.d.ts +0 -22
  100. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.js +0 -5
  101. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.d.ts +0 -9
  102. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.js +0 -5
  103. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.d.ts +0 -14
  104. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.js +0 -5
  105. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.d.ts +0 -28
  106. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.js +0 -59
  107. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.d.ts +0 -15
  108. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.js +0 -46
  109. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.d.ts +0 -20
  110. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.js +0 -51
  111. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.d.ts +0 -28
  112. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.js +0 -59
  113. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.d.ts +0 -15
  114. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.js +0 -46
  115. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.d.ts +0 -20
  116. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.js +0 -51
  117. /package/api/resources/api/resources/thera/resources/{tp/resources/tpApi/client/requests/ListAchTransfersRequest.js → misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.js} +0 -0
  118. /package/{api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.js → dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.js} +0 -0
@@ -91,7 +91,21 @@ class TpApi {
91
91
  * postalCode: "string",
92
92
  * state: "string"
93
93
  * },
94
- * tin: "string",
94
+ * citizenship: {
95
+ * "key": "value"
96
+ * },
97
+ * tin: {
98
+ * "key": "value"
99
+ * },
100
+ * identificationNumber: {
101
+ * "key": "value"
102
+ * },
103
+ * identificationNumberType: {
104
+ * "key": "value"
105
+ * },
106
+ * foreignIdDocumentS3Key: {
107
+ * "key": "value"
108
+ * },
95
109
  * ownershipPercentage: 1,
96
110
  * title: "string",
97
111
  * makeOrgAdmin: {
@@ -113,7 +127,7 @@ class TpApi {
113
127
  const _response = yield core.fetcher({
114
128
  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)), `companies/${encodeURIComponent(companyId)}/banking-details`),
115
129
  method: "POST",
116
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
131
  contentType: "application/json",
118
132
  requestType: "json",
119
133
  body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
@@ -167,7 +181,7 @@ class TpApi {
167
181
  const _response = yield core.fetcher({
168
182
  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)), "naics-codes"),
169
183
  method: "GET",
170
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
184
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
185
  contentType: "application/json",
172
186
  requestType: "json",
173
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -229,7 +243,7 @@ class TpApi {
229
243
  const _response = yield core.fetcher({
230
244
  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)), `companies/${encodeURIComponent(companyId)}/process-funds`),
231
245
  method: "POST",
232
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
233
247
  contentType: "application/json",
234
248
  requestType: "json",
235
249
  body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
@@ -281,7 +295,7 @@ class TpApi {
281
295
  const _response = yield core.fetcher({
282
296
  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)), `companies/${encodeURIComponent(companyId)}/create-counterparty`),
283
297
  method: "POST",
284
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
298
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
299
  contentType: "application/json",
286
300
  requestType: "json",
287
301
  body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
@@ -330,7 +344,7 @@ class TpApi {
330
344
  const _response = yield core.fetcher({
331
345
  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)), `companies/${encodeURIComponent(companyId)}/fetch-accounts`),
332
346
  method: "GET",
333
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
347
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
334
348
  contentType: "application/json",
335
349
  requestType: "json",
336
350
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -385,7 +399,7 @@ class TpApi {
385
399
  const _response = yield core.fetcher({
386
400
  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)), `companies/${encodeURIComponent(companyId)}/fetch-accounts/${encodeURIComponent(accountId)}`),
387
401
  method: "GET",
388
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
402
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
389
403
  contentType: "application/json",
390
404
  queryParameters: _queryParams,
391
405
  requestType: "json",
@@ -436,7 +450,7 @@ class TpApi {
436
450
  const _response = yield core.fetcher({
437
451
  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)), `companies/${encodeURIComponent(companyId)}/transfer-fbo-omnibus`),
438
452
  method: "POST",
439
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
453
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
440
454
  contentType: "application/json",
441
455
  requestType: "json",
442
456
  body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
@@ -486,7 +500,7 @@ class TpApi {
486
500
  const _response = yield core.fetcher({
487
501
  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)), `companies/${encodeURIComponent(companyId)}/fetch-transactions/${encodeURIComponent(accountId)}`),
488
502
  method: "GET",
489
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
503
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
490
504
  contentType: "application/json",
491
505
  requestType: "json",
492
506
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -539,7 +553,7 @@ class TpApi {
539
553
  const _response = yield core.fetcher({
540
554
  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)), `companies/${encodeURIComponent(companyId)}/tp-transaction/${encodeURIComponent(transactionId)}`),
541
555
  method: "GET",
542
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
556
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
543
557
  contentType: "application/json",
544
558
  requestType: "json",
545
559
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -603,7 +617,7 @@ class TpApi {
603
617
  const _response = yield core.fetcher({
604
618
  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)), "webhook/tp/external-transfer-funds"),
605
619
  method: "POST",
606
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
620
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
607
621
  contentType: "application/json",
608
622
  queryParameters: _queryParams,
609
623
  requestType: "json",
@@ -681,7 +695,7 @@ class TpApi {
681
695
  const _response = yield core.fetcher({
682
696
  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)), `companies/${encodeURIComponent(companyId)}/withdraw-funds`),
683
697
  method: "POST",
684
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
698
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
685
699
  contentType: "application/json",
686
700
  requestType: "json",
687
701
  body: serializers.api.thera.tp.WithdrawalTheraCash.jsonOrThrow(request, {
@@ -715,181 +729,6 @@ class TpApi {
715
729
  }
716
730
  });
717
731
  }
718
- /**
719
- * Get a list of ACH transfers for a company with optional filtering. Use status parameter to filter by specific status (e.g., 'error', 'canceled', 'returned' for failed transfers)
720
- *
721
- * @param {string} companyId
722
- * @param {TheraApi.api.thera.tp.ListAchTransfersRequest} request
723
- * @param {TpApi.RequestOptions} requestOptions - Request-specific configuration.
724
- *
725
- * @example
726
- * await client.api.thera.tp.tpApi.listAchTransfers("string", {
727
- * status: "string",
728
- * fromDate: "string",
729
- * toDate: "string"
730
- * })
731
- */
732
- listAchTransfers(companyId_1) {
733
- return __awaiter(this, arguments, void 0, function* (companyId, request = {}, requestOptions) {
734
- var _a;
735
- const { status, fromDate, toDate } = request;
736
- const _queryParams = {};
737
- if (status != null) {
738
- _queryParams["status"] = status;
739
- }
740
- if (fromDate != null) {
741
- _queryParams["fromDate"] = fromDate;
742
- }
743
- if (toDate != null) {
744
- _queryParams["toDate"] = toDate;
745
- }
746
- const _response = yield core.fetcher({
747
- 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)), `companies/${encodeURIComponent(companyId)}/ach-transfers`),
748
- method: "GET",
749
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
750
- contentType: "application/json",
751
- queryParameters: _queryParams,
752
- requestType: "json",
753
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
754
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
755
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
756
- });
757
- if (_response.ok) {
758
- return serializers.api.thera.tp.AchTransferListResponse.parseOrThrow(_response.body, {
759
- unrecognizedObjectKeys: "passthrough",
760
- allowUnrecognizedUnionMembers: true,
761
- allowUnrecognizedEnumValues: true,
762
- skipValidation: true,
763
- breadcrumbsPrefix: ["response"],
764
- });
765
- }
766
- if (_response.error.reason === "status-code") {
767
- throw new errors.TheraApiError({
768
- statusCode: _response.error.statusCode,
769
- body: _response.error.body,
770
- });
771
- }
772
- switch (_response.error.reason) {
773
- case "non-json":
774
- throw new errors.TheraApiError({
775
- statusCode: _response.error.statusCode,
776
- body: _response.error.rawBody,
777
- });
778
- case "timeout":
779
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/ach-transfers.");
780
- case "unknown":
781
- throw new errors.TheraApiError({
782
- message: _response.error.errorMessage,
783
- });
784
- }
785
- });
786
- }
787
- /**
788
- * Retrieve detailed information about a specific ACH transfer
789
- *
790
- * @param {string} companyId
791
- * @param {string} achId
792
- * @param {TpApi.RequestOptions} requestOptions - Request-specific configuration.
793
- *
794
- * @example
795
- * await client.api.thera.tp.tpApi.getAchTransferDetails("string", "string")
796
- */
797
- getAchTransferDetails(companyId, achId, requestOptions) {
798
- return __awaiter(this, void 0, void 0, function* () {
799
- var _a;
800
- const _response = yield core.fetcher({
801
- 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)), `companies/${encodeURIComponent(companyId)}/ach-transfers/${encodeURIComponent(achId)}`),
802
- method: "GET",
803
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
804
- contentType: "application/json",
805
- requestType: "json",
806
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
807
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
808
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
809
- });
810
- if (_response.ok) {
811
- return serializers.api.thera.tp.AchTransferDetail.parseOrThrow(_response.body, {
812
- unrecognizedObjectKeys: "passthrough",
813
- allowUnrecognizedUnionMembers: true,
814
- allowUnrecognizedEnumValues: true,
815
- skipValidation: true,
816
- breadcrumbsPrefix: ["response"],
817
- });
818
- }
819
- if (_response.error.reason === "status-code") {
820
- throw new errors.TheraApiError({
821
- statusCode: _response.error.statusCode,
822
- body: _response.error.body,
823
- });
824
- }
825
- switch (_response.error.reason) {
826
- case "non-json":
827
- throw new errors.TheraApiError({
828
- statusCode: _response.error.statusCode,
829
- body: _response.error.rawBody,
830
- });
831
- case "timeout":
832
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/ach-transfers/{achId}.");
833
- case "unknown":
834
- throw new errors.TheraApiError({
835
- message: _response.error.errorMessage,
836
- });
837
- }
838
- });
839
- }
840
- /**
841
- * Creates a new ACH transfer with the same parameters as a failed one
842
- *
843
- * @param {string} companyId
844
- * @param {string} achId
845
- * @param {TpApi.RequestOptions} requestOptions - Request-specific configuration.
846
- *
847
- * @example
848
- * await client.api.thera.tp.tpApi.retryAchTransfer("string", "string")
849
- */
850
- retryAchTransfer(companyId, achId, requestOptions) {
851
- return __awaiter(this, void 0, void 0, function* () {
852
- var _a;
853
- const _response = yield core.fetcher({
854
- 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)), `companies/${encodeURIComponent(companyId)}/ach-transfers/${encodeURIComponent(achId)}/retry`),
855
- method: "POST",
856
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
857
- contentType: "application/json",
858
- requestType: "json",
859
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
860
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
861
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
862
- });
863
- if (_response.ok) {
864
- return serializers.api.thera.tp.AchTransferDetail.parseOrThrow(_response.body, {
865
- unrecognizedObjectKeys: "passthrough",
866
- allowUnrecognizedUnionMembers: true,
867
- allowUnrecognizedEnumValues: true,
868
- skipValidation: true,
869
- breadcrumbsPrefix: ["response"],
870
- });
871
- }
872
- if (_response.error.reason === "status-code") {
873
- throw new errors.TheraApiError({
874
- statusCode: _response.error.statusCode,
875
- body: _response.error.body,
876
- });
877
- }
878
- switch (_response.error.reason) {
879
- case "non-json":
880
- throw new errors.TheraApiError({
881
- statusCode: _response.error.statusCode,
882
- body: _response.error.rawBody,
883
- });
884
- case "timeout":
885
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/ach-transfers/{achId}/retry.");
886
- case "unknown":
887
- throw new errors.TheraApiError({
888
- message: _response.error.errorMessage,
889
- });
890
- }
891
- });
892
- }
893
732
  _getAuthorizationHeader() {
894
733
  return __awaiter(this, void 0, void 0, function* () {
895
734
  const bearer = yield core.Supplier.get(this._options.token);
@@ -30,7 +30,21 @@ import * as TheraApi from "../../../../../../../../../../index";
30
30
  * postalCode: "string",
31
31
  * state: "string"
32
32
  * },
33
- * tin: "string",
33
+ * citizenship: {
34
+ * "key": "value"
35
+ * },
36
+ * tin: {
37
+ * "key": "value"
38
+ * },
39
+ * identificationNumber: {
40
+ * "key": "value"
41
+ * },
42
+ * identificationNumberType: {
43
+ * "key": "value"
44
+ * },
45
+ * foreignIdDocumentS3Key: {
46
+ * "key": "value"
47
+ * },
34
48
  * ownershipPercentage: 1,
35
49
  * title: "string",
36
50
  * makeOrgAdmin: {
@@ -1,4 +1,3 @@
1
1
  export { type AddCompanyBankingDetailsRequest } from "./AddCompanyBankingDetailsRequest";
2
2
  export { type TpAccountRequest } from "./TpAccountRequest";
3
3
  export { type ExternalTransferFundRequest } from "./ExternalTransferFundRequest";
4
- export { type ListAchTransfersRequest } from "./ListAchTransfersRequest";
@@ -3,9 +3,6 @@ export * from "./GetIndustryCodesResponse";
3
3
  export * from "./IndustryCodes";
4
4
  export * from "./SubmitCompanyBeneficiariesResponse";
5
5
  export * from "./ProcessFundsTransfer";
6
- export * from "./AchTransferListResponse";
7
- export * from "./AchTransferSummary";
8
- export * from "./AchTransferDetail";
9
6
  export * from "./WithdrawalTheraCash";
10
7
  export * from "./WithdrawalAch";
11
8
  export * from "./WithdrawalWire";
@@ -19,9 +19,6 @@ __exportStar(require("./GetIndustryCodesResponse"), exports);
19
19
  __exportStar(require("./IndustryCodes"), exports);
20
20
  __exportStar(require("./SubmitCompanyBeneficiariesResponse"), exports);
21
21
  __exportStar(require("./ProcessFundsTransfer"), exports);
22
- __exportStar(require("./AchTransferListResponse"), exports);
23
- __exportStar(require("./AchTransferSummary"), exports);
24
- __exportStar(require("./AchTransferDetail"), exports);
25
22
  __exportStar(require("./WithdrawalTheraCash"), exports);
26
23
  __exportStar(require("./WithdrawalAch"), exports);
27
24
  __exportStar(require("./WithdrawalWire"), exports);
@@ -78,7 +78,7 @@ class UserApi {
78
78
  const _response = yield core.fetcher({
79
79
  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)), `company/${encodeURIComponent(companyId)}/user/${encodeURIComponent(userId)}`),
80
80
  method: "POST",
81
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.api.thera.user.SetUserComplianceSettingsRequest.jsonOrThrow(request, {
@@ -139,7 +139,7 @@ class UserApi {
139
139
  const _response = yield core.fetcher({
140
140
  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)), `company/${encodeURIComponent(companyId)}/user`),
141
141
  method: "GET",
142
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
143
  contentType: "application/json",
144
144
  queryParameters: _queryParams,
145
145
  requestType: "json",
@@ -197,7 +197,7 @@ class UserApi {
197
197
  const _response = yield core.fetcher({
198
198
  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)), "user"),
199
199
  method: "GET",
200
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
201
201
  contentType: "application/json",
202
202
  queryParameters: _queryParams,
203
203
  requestType: "json",
@@ -13,8 +13,19 @@ export interface CompanyBeneficiary {
13
13
  /** Only required if different from physical address */
14
14
  mailingAddress?: TheraApi.api.thera.common.RequestAddress;
15
15
  physicalAddress: TheraApi.api.thera.common.RequestAddress;
16
- /** U.S. Social Security or IRS tax ID number of the person. */
17
- tin: string;
16
+ /** Two-letter ISO country code for person's nationality/citizenship (e.g., "US", "CA", "MX"). Optional, only required if Non-US person. */
17
+ citizenship?: string;
18
+ /** U.S. Social Security or IRS tax ID number of the person (optional for non-US persons, use identificationNumber instead). */
19
+ tin?: string;
20
+ /** International identification number for non-US persons (tax ID, passport number, etc.). Max 30 chars. */
21
+ identificationNumber?: string;
22
+ /** Type of international identification number (e.g., "passport", "tax_id", "national_id"). Max 30 chars. */
23
+ identificationNumberType?: string;
24
+ /**
25
+ * S3 key for foreign identity document (passport or national ID) for non-US owners.
26
+ * Required for beneficiaries with non-US addresses.
27
+ */
28
+ foreignIdDocumentS3Key?: string;
18
29
  ownershipPercentage: number;
19
30
  title: string;
20
31
  makeOrgAdmin?: boolean;
@@ -12,4 +12,9 @@ export interface CompanySettings {
12
12
  autoApproveTimeOffRequests: boolean;
13
13
  isKycMandated: boolean;
14
14
  active?: boolean;
15
+ /**
16
+ * If enabled, autopay will run early for invoices that would normally be due on holidays or weekends.
17
+ * The autopay will execute based on the previous valid business day as the effective due date.
18
+ */
19
+ autoPayAheadOfHolidaysWeekends?: boolean;
15
20
  }
@@ -108,7 +108,7 @@ class AipriseWebhookApi {
108
108
  const _response = yield core.fetcher({
109
109
  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)), "/aiprise/webhook/verification/callback"),
110
110
  method: "POST",
111
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
112
  contentType: "application/json",
113
113
  requestType: "json",
114
114
  body: serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
@@ -87,7 +87,7 @@ class Dev {
87
87
  const _response = yield core.fetcher({
88
88
  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)), "/dev/eor"),
89
89
  method: "POST",
90
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  requestType: "json",
93
93
  body: serializers.api.dev.AddEorEmployeeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -113,7 +113,7 @@ class ExternalApi {
113
113
  const _response = yield core.fetcher({
114
114
  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)), "/external/v2/contractor"),
115
115
  method: "POST",
116
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  body: serializers.api.external.ExternalCreateContractorRequestV2.jsonOrThrow(request, {
@@ -74,7 +74,7 @@ class File_ {
74
74
  const _response = yield core.fetcher({
75
75
  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)), `/contracts/${encodeURIComponent(contractId)}/generic-document`),
76
76
  method: "POST",
77
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -125,7 +125,7 @@ class File_ {
125
125
  const _response = yield core.fetcher({
126
126
  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)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}`),
127
127
  method: "DELETE",
128
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  body: serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -173,7 +173,7 @@ class File_ {
173
173
  const _response = yield core.fetcher({
174
174
  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)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}/file-url`),
175
175
  method: "GET",
176
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
177
  contentType: "application/json",
178
178
  requestType: "json",
179
179
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -224,7 +224,7 @@ class File_ {
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)), `/contracts/eor/${encodeURIComponent(contractId)}/payslips/${encodeURIComponent(s3Key)}/fileUrl`),
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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "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,
@@ -275,7 +275,7 @@ class File_ {
275
275
  const _response = yield core.fetcher({
276
276
  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)), `/companies/${encodeURIComponent(companyId)}/contracts/eor/pay-in/${encodeURIComponent(s3Key)}/file-url`),
277
277
  method: "GET",
278
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
278
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
279
  contentType: "application/json",
280
280
  requestType: "json",
281
281
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -77,7 +77,7 @@ class AccountingApi {
77
77
  const _response = yield core.fetcher({
78
78
  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)), `companies/${encodeURIComponent(companyId)}/accounting/settings`),
79
79
  method: "PUT",
80
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  body: serializers.api.thera.accounting.ModifyAccountingIntegrationSetting.jsonOrThrow(request, {
@@ -124,7 +124,7 @@ class AccountingApi {
124
124
  const _response = yield core.fetcher({
125
125
  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)), `companies/${encodeURIComponent(companyId)}/accounting/info`),
126
126
  method: "GET",
127
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -174,7 +174,7 @@ class AccountingApi {
174
174
  const _response = yield core.fetcher({
175
175
  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)), `companies/${encodeURIComponent(companyId)}/accounting/account-mapping`),
176
176
  method: "GET",
177
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  requestType: "json",
180
180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -227,7 +227,7 @@ class AccountingApi {
227
227
  const _response = yield core.fetcher({
228
228
  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)), `companies/${encodeURIComponent(companyId)}/accounting/authorize`),
229
229
  method: "POST",
230
- 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-prerelease3534-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
+ 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-prerelease3534-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3534-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
233
  body: serializers.api.thera.accounting.CompleteAccountingIntegrationAuth.jsonOrThrow(request, {