polytomic 1.16.1 → 25.9.1

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 (1736) hide show
  1. package/BaseClient.d.ts +46 -0
  2. package/BaseClient.js +64 -0
  3. package/CONTRIBUTING.md +133 -0
  4. package/Client.d.ts +62 -67
  5. package/Client.js +102 -31
  6. package/api/errors/BadGatewayError.d.ts +6 -0
  7. package/api/errors/BadGatewayError.js +54 -0
  8. package/api/errors/BadRequestError.d.ts +3 -5
  9. package/api/errors/BadRequestError.js +8 -5
  10. package/api/errors/ConflictError.d.ts +3 -5
  11. package/api/errors/ConflictError.js +8 -5
  12. package/api/errors/ForbiddenError.d.ts +3 -5
  13. package/api/errors/ForbiddenError.js +8 -5
  14. package/api/errors/GatewayTimeoutError.d.ts +6 -0
  15. package/api/errors/GatewayTimeoutError.js +54 -0
  16. package/api/errors/InternalServerError.d.ts +3 -5
  17. package/api/errors/InternalServerError.js +8 -5
  18. package/api/errors/NotFoundError.d.ts +3 -5
  19. package/api/errors/NotFoundError.js +8 -5
  20. package/api/errors/RequestTimeoutError.d.ts +6 -0
  21. package/api/errors/RequestTimeoutError.js +54 -0
  22. package/api/errors/TooManyRequestsError.d.ts +6 -0
  23. package/api/errors/TooManyRequestsError.js +54 -0
  24. package/api/errors/UnauthorizedError.d.ts +3 -5
  25. package/api/errors/UnauthorizedError.js +8 -5
  26. package/api/errors/UnprocessableEntityError.d.ts +3 -5
  27. package/api/errors/UnprocessableEntityError.js +8 -5
  28. package/api/errors/index.d.ts +8 -4
  29. package/api/errors/index.js +8 -4
  30. package/api/index.d.ts +1 -1
  31. package/api/index.js +1 -1
  32. package/api/resources/bulkSync/client/Client.d.ts +222 -87
  33. package/api/resources/bulkSync/client/Client.js +467 -385
  34. package/api/resources/bulkSync/client/requests/BulkSyncGetRequest.d.ts +0 -3
  35. package/api/resources/bulkSync/client/requests/BulkSyncGetRequest.js +1 -3
  36. package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +1 -3
  37. package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.js +1 -3
  38. package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +1 -3
  39. package/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +1 -3
  40. package/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.d.ts +0 -3
  41. package/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.js +1 -3
  42. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +25 -12
  43. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.js +1 -3
  44. package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -5
  45. package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.js +1 -3
  46. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +25 -12
  47. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.js +1 -3
  48. package/api/resources/bulkSync/client/requests/index.d.ts +7 -7
  49. package/api/resources/bulkSync/exports.d.ts +3 -0
  50. package/api/resources/bulkSync/exports.js +22 -0
  51. package/api/resources/bulkSync/index.d.ts +0 -1
  52. package/api/resources/bulkSync/index.js +0 -1
  53. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +157 -55
  54. package/api/resources/bulkSync/resources/executions/client/Client.js +419 -240
  55. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +4 -7
  56. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +1 -3
  57. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetConsoleLogsRequest.d.ts +13 -0
  58. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetConsoleLogsRequest.js +3 -0
  59. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetSchemaConsoleLogsRequest.d.ts +13 -0
  60. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetSchemaConsoleLogsRequest.js +3 -0
  61. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +4 -3
  62. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.js +1 -3
  63. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +5 -13
  64. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +1 -3
  65. package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +5 -3
  66. package/api/resources/bulkSync/resources/executions/exports.d.ts +2 -0
  67. package/api/resources/bulkSync/resources/executions/exports.js +21 -0
  68. package/api/resources/bulkSync/resources/index.d.ts +3 -3
  69. package/api/resources/bulkSync/resources/index.js +4 -4
  70. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +66 -50
  71. package/api/resources/bulkSync/resources/schedules/client/Client.js +173 -180
  72. package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +2 -5
  73. package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js +1 -3
  74. package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +2 -5
  75. package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js +1 -3
  76. package/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +2 -2
  77. package/api/resources/bulkSync/resources/schedules/exports.d.ts +2 -0
  78. package/api/resources/bulkSync/resources/schedules/exports.js +21 -0
  79. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +97 -50
  80. package/api/resources/bulkSync/resources/schemas/client/Client.js +213 -181
  81. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +2 -4
  82. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.js +1 -3
  83. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +8 -4
  84. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.js +1 -3
  85. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSyncSchemasRequest.d.ts +9 -0
  86. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSyncSchemasRequest.js +3 -0
  87. package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
  88. package/api/resources/bulkSync/resources/schemas/exports.d.ts +2 -0
  89. package/api/resources/bulkSync/resources/schemas/exports.js +21 -0
  90. package/api/resources/connections/client/Client.d.ts +296 -70
  91. package/api/resources/connections/client/Client.js +759 -370
  92. package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +0 -3
  93. package/api/resources/connections/client/requests/ConnectCardRequest.js +1 -3
  94. package/api/resources/connections/client/requests/ConnectionsRemoveRequest.d.ts +0 -3
  95. package/api/resources/connections/client/requests/ConnectionsRemoveRequest.js +1 -3
  96. package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +0 -3
  97. package/api/resources/connections/client/requests/CreateConnectionRequestSchema.js +1 -3
  98. package/api/resources/connections/client/requests/ExecuteConnectionProxyRequest.d.ts +13 -0
  99. package/api/resources/connections/client/requests/ExecuteConnectionProxyRequest.js +3 -0
  100. package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +0 -3
  101. package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js +1 -3
  102. package/api/resources/connections/client/requests/PartnerCreateSharedConnectionRequestSchema.d.ts +12 -0
  103. package/api/resources/connections/client/requests/PartnerCreateSharedConnectionRequestSchema.js +3 -0
  104. package/api/resources/connections/client/requests/TestConnectionRequest.d.ts +0 -3
  105. package/api/resources/connections/client/requests/TestConnectionRequest.js +1 -3
  106. package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +0 -3
  107. package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.js +1 -3
  108. package/api/resources/connections/client/requests/index.d.ts +8 -7
  109. package/api/resources/connections/exports.d.ts +2 -0
  110. package/api/resources/connections/exports.js +21 -0
  111. package/api/resources/entities/client/Client.d.ts +124 -0
  112. package/api/resources/entities/client/Client.js +254 -0
  113. package/api/resources/entities/exports.d.ts +2 -0
  114. package/api/resources/entities/exports.js +21 -0
  115. package/api/resources/events/client/Client.d.ts +34 -35
  116. package/api/resources/events/client/Client.js +87 -101
  117. package/api/resources/events/client/requests/EventsListRequest.d.ts +8 -4
  118. package/api/resources/events/client/requests/EventsListRequest.js +1 -3
  119. package/api/resources/events/client/requests/index.d.ts +1 -1
  120. package/api/resources/events/exports.d.ts +2 -0
  121. package/api/resources/events/exports.js +21 -0
  122. package/api/resources/identity/client/Client.d.ts +22 -31
  123. package/api/resources/identity/client/Client.js +45 -46
  124. package/api/resources/identity/exports.d.ts +2 -0
  125. package/api/resources/identity/exports.js +21 -0
  126. package/api/resources/index.d.ts +15 -15
  127. package/api/resources/index.js +16 -16
  128. package/api/resources/jobs/client/Client.d.ts +26 -34
  129. package/api/resources/jobs/client/Client.js +49 -53
  130. package/api/resources/jobs/exports.d.ts +2 -0
  131. package/api/resources/jobs/exports.js +21 -0
  132. package/api/resources/modelSync/client/Client.d.ts +164 -79
  133. package/api/resources/modelSync/client/Client.js +437 -413
  134. package/api/resources/modelSync/client/requests/CreateSyncRequest.d.ts +45 -0
  135. package/api/resources/modelSync/client/requests/CreateSyncRequest.js +3 -0
  136. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +2 -4
  137. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.js +1 -3
  138. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +2 -4
  139. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.js +1 -3
  140. package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +13 -6
  141. package/api/resources/modelSync/client/requests/ModelSyncListRequest.js +1 -3
  142. package/api/resources/modelSync/client/requests/StartSyncRequest.d.ts +9 -0
  143. package/api/resources/modelSync/client/requests/StartSyncRequest.js +3 -0
  144. package/api/resources/modelSync/client/requests/UpdateSyncRequest.d.ts +45 -0
  145. package/api/resources/modelSync/client/requests/UpdateSyncRequest.js +3 -0
  146. package/api/resources/modelSync/client/requests/index.d.ts +6 -6
  147. package/api/resources/modelSync/exports.d.ts +3 -0
  148. package/api/resources/modelSync/exports.js +22 -0
  149. package/api/resources/modelSync/resources/executions/client/Client.d.ts +90 -54
  150. package/api/resources/modelSync/resources/executions/client/Client.js +269 -198
  151. package/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetConsoleLogsRequest.d.ts +13 -0
  152. package/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetConsoleLogsRequest.js +3 -0
  153. package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +0 -3
  154. package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +1 -3
  155. package/api/resources/modelSync/resources/executions/client/requests/index.d.ts +2 -2
  156. package/api/resources/modelSync/resources/executions/exports.d.ts +2 -0
  157. package/api/resources/modelSync/resources/executions/exports.js +21 -0
  158. package/api/resources/modelSync/resources/index.d.ts +2 -2
  159. package/api/resources/modelSync/resources/index.js +3 -3
  160. package/api/resources/modelSync/resources/targets/client/Client.d.ts +36 -55
  161. package/api/resources/modelSync/resources/targets/client/Client.js +112 -195
  162. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +2 -3
  163. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +1 -3
  164. package/api/resources/modelSync/resources/targets/client/requests/index.d.ts +1 -2
  165. package/api/resources/modelSync/resources/targets/exports.d.ts +2 -0
  166. package/api/resources/modelSync/resources/targets/exports.js +21 -0
  167. package/api/resources/models/client/Client.d.ts +128 -62
  168. package/api/resources/models/client/Client.js +365 -328
  169. package/api/resources/models/client/requests/EnrichmentInputFieldsRequest.d.ts +8 -0
  170. package/api/resources/models/client/requests/EnrichmentInputFieldsRequest.js +3 -0
  171. package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +2 -4
  172. package/api/resources/models/client/requests/ModelsCreateRequest.js +1 -3
  173. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +2 -4
  174. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +1 -3
  175. package/api/resources/models/client/requests/ModelsGetRequest.d.ts +3 -4
  176. package/api/resources/models/client/requests/ModelsGetRequest.js +1 -3
  177. package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +2 -4
  178. package/api/resources/models/client/requests/ModelsPreviewRequest.js +1 -3
  179. package/api/resources/models/client/requests/ModelsRemoveRequest.d.ts +3 -4
  180. package/api/resources/models/client/requests/ModelsRemoveRequest.js +1 -3
  181. package/api/resources/models/client/requests/ModelsSampleRequest.d.ts +3 -4
  182. package/api/resources/models/client/requests/ModelsSampleRequest.js +1 -3
  183. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -4
  184. package/api/resources/models/client/requests/UpdateModelRequest.js +1 -3
  185. package/api/resources/models/client/requests/index.d.ts +8 -8
  186. package/api/resources/models/exports.d.ts +2 -0
  187. package/api/resources/models/exports.js +21 -0
  188. package/api/resources/notifications/client/Client.d.ts +29 -34
  189. package/api/resources/notifications/client/Client.js +74 -76
  190. package/api/resources/notifications/client/requests/GlobalErrorSubscribersRequest.d.ts +8 -0
  191. package/api/resources/notifications/client/requests/GlobalErrorSubscribersRequest.js +3 -0
  192. package/api/resources/notifications/client/requests/index.d.ts +1 -1
  193. package/api/resources/notifications/exports.d.ts +2 -0
  194. package/api/resources/notifications/exports.js +21 -0
  195. package/api/resources/organization/client/Client.d.ts +85 -54
  196. package/api/resources/organization/client/Client.js +229 -172
  197. package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -3
  198. package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.js +1 -3
  199. package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -3
  200. package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.js +1 -3
  201. package/api/resources/organization/client/requests/index.d.ts +2 -2
  202. package/api/resources/organization/exports.d.ts +2 -0
  203. package/api/resources/organization/exports.js +21 -0
  204. package/api/resources/permissions/client/Client.d.ts +13 -35
  205. package/api/resources/permissions/client/Client.js +9 -10
  206. package/api/resources/permissions/exports.d.ts +3 -0
  207. package/api/resources/permissions/exports.js +22 -0
  208. package/api/resources/permissions/resources/index.d.ts +1 -1
  209. package/api/resources/permissions/resources/index.js +1 -1
  210. package/api/resources/permissions/resources/policies/client/Client.d.ts +57 -42
  211. package/api/resources/permissions/resources/policies/client/Client.js +159 -164
  212. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -4
  213. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.js +1 -3
  214. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -4
  215. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.js +1 -3
  216. package/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
  217. package/api/resources/permissions/resources/policies/exports.d.ts +2 -0
  218. package/api/resources/permissions/resources/policies/exports.js +21 -0
  219. package/api/resources/permissions/resources/roles/client/Client.d.ts +62 -42
  220. package/api/resources/permissions/resources/roles/client/Client.js +160 -163
  221. package/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.d.ts +0 -3
  222. package/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.js +1 -3
  223. package/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.d.ts +0 -3
  224. package/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.js +1 -3
  225. package/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
  226. package/api/resources/permissions/resources/roles/exports.d.ts +2 -0
  227. package/api/resources/permissions/resources/roles/exports.js +21 -0
  228. package/api/resources/queryRunner/client/Client.d.ts +45 -37
  229. package/api/resources/queryRunner/client/Client.js +103 -94
  230. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +4 -4
  231. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +1 -3
  232. package/api/resources/queryRunner/client/requests/RunQueryRequest.d.ts +10 -0
  233. package/api/resources/queryRunner/client/requests/RunQueryRequest.js +3 -0
  234. package/api/resources/queryRunner/client/requests/index.d.ts +2 -2
  235. package/api/resources/queryRunner/exports.d.ts +2 -0
  236. package/api/resources/queryRunner/exports.js +21 -0
  237. package/api/resources/schemas/client/Client.d.ts +151 -69
  238. package/api/resources/schemas/client/Client.js +327 -281
  239. package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +2 -4
  240. package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +1 -3
  241. package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +3 -5
  242. package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +1 -3
  243. package/api/resources/schemas/client/requests/index.d.ts +2 -2
  244. package/api/resources/schemas/exports.d.ts +2 -0
  245. package/api/resources/schemas/exports.js +21 -0
  246. package/api/resources/users/client/Client.d.ts +172 -58
  247. package/api/resources/users/client/Client.js +516 -216
  248. package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +3 -3
  249. package/api/resources/users/client/requests/CreateUserRequestSchema.js +1 -3
  250. package/api/resources/users/client/requests/CurrentOrgCreateUserRequestSchema.d.ts +14 -0
  251. package/api/resources/users/client/requests/CurrentOrgCreateUserRequestSchema.js +3 -0
  252. package/api/resources/users/client/requests/CurrentOrgUpdateUserRequestSchema.d.ts +10 -0
  253. package/api/resources/users/client/requests/CurrentOrgUpdateUserRequestSchema.js +3 -0
  254. package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +3 -3
  255. package/api/resources/users/client/requests/UpdateUserRequestSchema.js +1 -3
  256. package/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +1 -3
  257. package/api/resources/users/client/requests/UsersCreateApiKeyRequest.js +1 -3
  258. package/api/resources/users/client/requests/index.d.ts +5 -3
  259. package/api/resources/users/exports.d.ts +2 -0
  260. package/api/resources/users/exports.js +21 -0
  261. package/api/resources/webhooks/client/Client.d.ts +97 -60
  262. package/api/resources/webhooks/client/Client.js +232 -224
  263. package/api/resources/webhooks/client/requests/CreateWebhooksSchema.d.ts +0 -3
  264. package/api/resources/webhooks/client/requests/CreateWebhooksSchema.js +1 -3
  265. package/api/resources/webhooks/client/requests/UpdateWebhooksSchema.d.ts +0 -3
  266. package/api/resources/webhooks/client/requests/UpdateWebhooksSchema.js +1 -3
  267. package/api/resources/webhooks/client/requests/index.d.ts +2 -2
  268. package/api/resources/webhooks/exports.d.ts +2 -0
  269. package/api/resources/webhooks/exports.js +21 -0
  270. package/api/types/ActivateSyncEnvelope.d.ts +2 -5
  271. package/api/types/ActivateSyncEnvelope.js +1 -3
  272. package/api/types/ActivateSyncInput.d.ts +0 -3
  273. package/api/types/ActivateSyncInput.js +1 -3
  274. package/api/types/ActivateSyncOutput.d.ts +2 -5
  275. package/api/types/ActivateSyncOutput.js +1 -3
  276. package/api/types/ApiError.d.ts +4 -7
  277. package/api/types/ApiError.js +1 -3
  278. package/api/types/ApiKeyResponse.d.ts +2 -4
  279. package/api/types/ApiKeyResponse.js +1 -3
  280. package/api/types/ApiKeyResponseEnvelope.d.ts +2 -5
  281. package/api/types/ApiKeyResponseEnvelope.js +1 -3
  282. package/api/types/BackendConnectionCapabilities.d.ts +0 -3
  283. package/api/types/BackendConnectionCapabilities.js +1 -3
  284. package/api/types/BackendOAuthPrompt.d.ts +3 -6
  285. package/api/types/BackendOAuthPrompt.js +1 -3
  286. package/api/types/BulkBulkSyncSchedule.d.ts +17 -19
  287. package/api/types/BulkBulkSyncSchedule.js +1 -3
  288. package/api/types/BulkDiscover.d.ts +1 -4
  289. package/api/types/BulkDiscover.js +1 -3
  290. package/api/types/BulkExecutionStatus.d.ts +1 -4
  291. package/api/types/BulkExecutionStatus.js +1 -3
  292. package/api/types/BulkFetchMode.d.ts +2 -7
  293. package/api/types/BulkFetchMode.js +2 -3
  294. package/api/types/BulkField.d.ts +5 -8
  295. package/api/types/BulkField.js +1 -3
  296. package/api/types/BulkFilter.d.ts +3 -6
  297. package/api/types/BulkFilter.js +1 -3
  298. package/api/types/BulkNormalizeNames.d.ts +1 -4
  299. package/api/types/BulkNormalizeNames.js +1 -3
  300. package/api/types/BulkOutputDisposition.d.ts +6 -0
  301. package/api/types/BulkOutputDisposition.js +9 -0
  302. package/api/types/BulkResyncMode.d.ts +6 -0
  303. package/api/types/BulkResyncMode.js +9 -0
  304. package/api/types/BulkScheduleSyncMode.d.ts +1 -4
  305. package/api/types/BulkScheduleSyncMode.js +1 -3
  306. package/api/types/BulkSchema.d.ts +13 -14
  307. package/api/types/BulkSchema.js +1 -3
  308. package/api/types/BulkSchemaEnvelope.d.ts +2 -5
  309. package/api/types/BulkSchemaEnvelope.js +1 -3
  310. package/api/types/BulkSchemaExecutionStatus.d.ts +2 -4
  311. package/api/types/BulkSchemaExecutionStatus.js +2 -3
  312. package/api/types/BulkSchemaListItem.d.ts +18 -0
  313. package/api/types/BulkSchemaListItem.js +3 -0
  314. package/api/types/BulkSelectiveMode.d.ts +1 -4
  315. package/api/types/BulkSelectiveMode.js +1 -3
  316. package/api/types/BulkSyncAdditionalScheduleRequest.d.ts +19 -0
  317. package/api/types/BulkSyncAdditionalScheduleRequest.js +3 -0
  318. package/api/types/BulkSyncAdditionalScheduleResponse.d.ts +26 -0
  319. package/api/types/BulkSyncAdditionalScheduleResponse.js +3 -0
  320. package/api/types/BulkSyncDefaultScheduleRequest.d.ts +15 -0
  321. package/api/types/BulkSyncDefaultScheduleRequest.js +3 -0
  322. package/api/types/BulkSyncDefaultScheduleResponse.d.ts +22 -0
  323. package/api/types/BulkSyncDefaultScheduleResponse.js +3 -0
  324. package/api/types/BulkSyncDest.d.ts +5 -6
  325. package/api/types/BulkSyncDest.js +1 -3
  326. package/api/types/BulkSyncDestEnvelope.d.ts +2 -5
  327. package/api/types/BulkSyncDestEnvelope.js +1 -3
  328. package/api/types/BulkSyncExecution.d.ts +18 -20
  329. package/api/types/BulkSyncExecution.js +1 -3
  330. package/api/types/BulkSyncExecutionEnvelope.d.ts +2 -5
  331. package/api/types/BulkSyncExecutionEnvelope.js +1 -3
  332. package/api/types/BulkSyncExecutionLogs.d.ts +6 -0
  333. package/api/types/BulkSyncExecutionLogs.js +3 -0
  334. package/api/types/BulkSyncExecutionLogsEnvelope.d.ts +4 -0
  335. package/api/types/BulkSyncExecutionLogsEnvelope.js +3 -0
  336. package/api/types/BulkSyncExecutionStatus.d.ts +8 -8
  337. package/api/types/BulkSyncExecutionStatus.js +1 -3
  338. package/api/types/BulkSyncIngestionStatus.d.ts +11 -0
  339. package/api/types/BulkSyncIngestionStatus.js +3 -0
  340. package/api/types/BulkSyncListEnvelope.d.ts +2 -5
  341. package/api/types/BulkSyncListEnvelope.js +1 -3
  342. package/api/types/BulkSyncResponse.d.ts +35 -29
  343. package/api/types/BulkSyncResponse.js +1 -3
  344. package/api/types/BulkSyncResponseEnvelope.d.ts +2 -5
  345. package/api/types/BulkSyncResponseEnvelope.js +1 -3
  346. package/api/types/BulkSyncScheduleApi.d.ts +15 -0
  347. package/api/types/BulkSyncScheduleApi.js +3 -0
  348. package/api/types/BulkSyncSchemaExecution.d.ts +12 -15
  349. package/api/types/BulkSyncSchemaExecution.js +1 -3
  350. package/api/types/BulkSyncSchemaExecutionStatus.d.ts +17 -13
  351. package/api/types/BulkSyncSchemaExecutionStatus.js +1 -3
  352. package/api/types/BulkSyncSource.d.ts +4 -6
  353. package/api/types/BulkSyncSource.js +1 -3
  354. package/api/types/BulkSyncSourceCapabilities.d.ts +3 -0
  355. package/api/types/BulkSyncSourceCapabilities.js +3 -0
  356. package/api/types/BulkSyncSourceEnvelope.d.ts +2 -5
  357. package/api/types/BulkSyncSourceEnvelope.js +1 -3
  358. package/api/types/BulkSyncSourceSchemaEnvelope.d.ts +2 -5
  359. package/api/types/BulkSyncSourceSchemaEnvelope.js +1 -3
  360. package/api/types/BulkSyncSourceStatus.d.ts +3 -6
  361. package/api/types/BulkSyncSourceStatus.js +1 -3
  362. package/api/types/BulkSyncSourceStatusEnvelope.d.ts +2 -5
  363. package/api/types/BulkSyncSourceStatusEnvelope.js +1 -3
  364. package/api/types/BulkSyncStatusEnvelope.d.ts +2 -5
  365. package/api/types/BulkSyncStatusEnvelope.js +1 -3
  366. package/api/types/BulkSyncStatusResponse.d.ts +5 -7
  367. package/api/types/BulkSyncStatusResponse.js +1 -3
  368. package/api/types/BulkSyncTargetMode.d.ts +5 -0
  369. package/api/types/BulkSyncTargetMode.js +8 -0
  370. package/api/types/CancelBulkSyncResponse.d.ts +1 -4
  371. package/api/types/CancelBulkSyncResponse.js +1 -3
  372. package/api/types/CancelBulkSyncResponseEnvelope.d.ts +2 -5
  373. package/api/types/CancelBulkSyncResponseEnvelope.js +1 -3
  374. package/api/types/CancelSyncExecutionResponse.d.ts +3 -0
  375. package/api/types/CancelSyncExecutionResponse.js +3 -0
  376. package/api/types/CancelSyncExecutionResponseEnvelope.d.ts +4 -0
  377. package/api/types/CancelSyncExecutionResponseEnvelope.js +3 -0
  378. package/api/types/CancelSyncResponse.d.ts +3 -0
  379. package/api/types/CancelSyncResponse.js +3 -0
  380. package/api/types/CancelSyncResponseEnvelope.d.ts +4 -0
  381. package/api/types/CancelSyncResponseEnvelope.js +3 -0
  382. package/api/types/ConfigurationValue.d.ts +2 -5
  383. package/api/types/ConfigurationValue.js +1 -3
  384. package/api/types/ConnectCardResponse.d.ts +3 -5
  385. package/api/types/ConnectCardResponse.js +1 -3
  386. package/api/types/ConnectCardResponseEnvelope.d.ts +2 -5
  387. package/api/types/ConnectCardResponseEnvelope.js +1 -3
  388. package/api/types/ConnectionForm.d.ts +4 -0
  389. package/api/types/ConnectionForm.js +3 -0
  390. package/api/types/ConnectionListResponseEnvelope.d.ts +2 -5
  391. package/api/types/ConnectionListResponseEnvelope.js +1 -3
  392. package/api/types/ConnectionParameterValue.d.ts +2 -5
  393. package/api/types/ConnectionParameterValue.js +1 -3
  394. package/api/types/ConnectionParameterValuesResp.d.ts +3 -6
  395. package/api/types/ConnectionParameterValuesResp.js +1 -3
  396. package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +2 -5
  397. package/api/types/ConnectionParameterValuesResponseEnvelope.js +1 -3
  398. package/api/types/ConnectionProxyCall.d.ts +14 -0
  399. package/api/types/ConnectionProxyCall.js +3 -0
  400. package/api/types/ConnectionProxyContract.d.ts +26 -0
  401. package/api/types/ConnectionProxyContract.js +3 -0
  402. package/api/types/ConnectionProxyInfoResponse.d.ts +11 -0
  403. package/api/types/ConnectionProxyInfoResponse.js +3 -0
  404. package/api/types/ConnectionProxyInheritedBase.d.ts +9 -0
  405. package/api/types/ConnectionProxyInheritedBase.js +3 -0
  406. package/api/types/ConnectionProxyLockedHeader.d.ts +8 -0
  407. package/api/types/ConnectionProxyLockedHeader.js +3 -0
  408. package/api/types/ConnectionProxyMergeRules.d.ts +6 -0
  409. package/api/types/ConnectionProxyMergeRules.js +3 -0
  410. package/api/types/ConnectionProxyResponse.d.ts +16 -0
  411. package/api/types/ConnectionProxyResponse.js +3 -0
  412. package/api/types/ConnectionProxyStats.d.ts +14 -0
  413. package/api/types/ConnectionProxyStats.js +3 -0
  414. package/api/types/ConnectionResponseEnvelope.d.ts +2 -5
  415. package/api/types/ConnectionResponseEnvelope.js +1 -3
  416. package/api/types/ConnectionResponseSchema.d.ts +16 -19
  417. package/api/types/ConnectionResponseSchema.js +1 -3
  418. package/api/types/ConnectionType.d.ts +9 -12
  419. package/api/types/ConnectionType.js +1 -3
  420. package/api/types/ConnectionTypeResponseEnvelope.d.ts +2 -5
  421. package/api/types/ConnectionTypeResponseEnvelope.js +1 -3
  422. package/api/types/ConnectionTypeSchema.d.ts +4 -7
  423. package/api/types/ConnectionTypeSchema.js +1 -3
  424. package/api/types/CreateConnectionResponseEnvelope.d.ts +2 -5
  425. package/api/types/CreateConnectionResponseEnvelope.js +1 -3
  426. package/api/types/CreateConnectionResponseSchema.d.ts +13 -16
  427. package/api/types/CreateConnectionResponseSchema.js +1 -3
  428. package/api/types/CreateModelRequest.d.ts +10 -13
  429. package/api/types/CreateModelRequest.js +1 -3
  430. package/api/types/CreateSharedConnectionResponseEnvelope.d.ts +4 -0
  431. package/api/types/CreateSharedConnectionResponseEnvelope.js +3 -0
  432. package/api/types/CreateSharedConnectionResponseSchema.d.ts +1 -4
  433. package/api/types/CreateSharedConnectionResponseSchema.js +1 -3
  434. package/api/types/EnricherConfiguration.d.ts +4 -0
  435. package/api/types/EnricherConfiguration.js +3 -0
  436. package/api/types/EnricherMapping.d.ts +4 -0
  437. package/api/types/EnricherMapping.js +3 -0
  438. package/api/types/Enrichment.d.ts +6 -9
  439. package/api/types/Enrichment.js +1 -3
  440. package/api/types/EntityRelationship.d.ts +6 -0
  441. package/api/types/EntityRelationship.js +3 -0
  442. package/api/types/EntityResponse.d.ts +15 -0
  443. package/api/types/EntityResponse.js +3 -0
  444. package/api/types/EntityResponseEnvelope.d.ts +4 -0
  445. package/api/types/EntityResponseEnvelope.js +3 -0
  446. package/api/types/Event.d.ts +10 -9
  447. package/api/types/Event.js +1 -3
  448. package/api/types/EventPayload.d.ts +2 -0
  449. package/api/types/EventPayload.js +3 -0
  450. package/api/types/EventTypesEnvelope.d.ts +1 -4
  451. package/api/types/EventTypesEnvelope.js +1 -3
  452. package/api/types/EventingBulkSyncCanceledEvent.d.ts +8 -0
  453. package/api/types/EventingBulkSyncCanceledEvent.js +3 -0
  454. package/api/types/EventingBulkSyncCompletedEvent.d.ts +9 -0
  455. package/api/types/EventingBulkSyncCompletedEvent.js +3 -0
  456. package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +9 -0
  457. package/api/types/EventingBulkSyncCompletedWithErrorEvent.js +3 -0
  458. package/api/types/EventingBulkSyncFailedEvent.d.ts +10 -0
  459. package/api/types/EventingBulkSyncFailedEvent.js +3 -0
  460. package/api/types/EventingBulkSyncRunningEvent.d.ts +8 -0
  461. package/api/types/EventingBulkSyncRunningEvent.js +3 -0
  462. package/api/types/EventingSyncCanceledEvent.d.ts +9 -0
  463. package/api/types/EventingSyncCanceledEvent.js +3 -0
  464. package/api/types/EventingSyncCompletedEvent.d.ts +22 -0
  465. package/api/types/EventingSyncCompletedEvent.js +3 -0
  466. package/api/types/EventingSyncCompletedWithErrorsEvent.d.ts +10 -0
  467. package/api/types/EventingSyncCompletedWithErrorsEvent.js +3 -0
  468. package/api/types/EventingSyncFailedEvent.d.ts +8 -0
  469. package/api/types/EventingSyncFailedEvent.js +3 -0
  470. package/api/types/EventingSyncRunningEvent.d.ts +7 -0
  471. package/api/types/EventingSyncRunningEvent.js +3 -0
  472. package/api/types/EventsEnvelope.d.ts +2 -5
  473. package/api/types/EventsEnvelope.js +1 -3
  474. package/api/types/ExecuteConnectionProxyEnvelope.d.ts +4 -0
  475. package/api/types/ExecuteConnectionProxyEnvelope.js +3 -0
  476. package/api/types/ExecutionConsoleLogEntry.d.ts +7 -0
  477. package/api/types/ExecutionConsoleLogEntry.js +3 -0
  478. package/api/types/ExecutionConsoleLogsResponse.d.ts +5 -0
  479. package/api/types/ExecutionConsoleLogsResponse.js +3 -0
  480. package/api/types/ExecutionConsoleLogsResponseEnvelope.d.ts +4 -0
  481. package/api/types/ExecutionConsoleLogsResponseEnvelope.js +3 -0
  482. package/api/types/ExecutionCounts.d.ts +7 -10
  483. package/api/types/ExecutionCounts.js +1 -3
  484. package/api/types/ExecutionLogResponse.d.ts +2 -5
  485. package/api/types/ExecutionLogResponse.js +1 -3
  486. package/api/types/ExecutionLogType.d.ts +9 -0
  487. package/api/types/ExecutionLogType.js +12 -0
  488. package/api/types/ExecutionLogsResponseEnvelope.d.ts +2 -5
  489. package/api/types/ExecutionLogsResponseEnvelope.js +1 -3
  490. package/api/types/ExportSyncLogsEnvelope.d.ts +5 -0
  491. package/api/types/ExportSyncLogsEnvelope.js +3 -0
  492. package/api/types/ExportSyncLogsResponse.d.ts +4 -0
  493. package/api/types/ExportSyncLogsResponse.js +3 -0
  494. package/api/types/FieldConfiguration.d.ts +3 -6
  495. package/api/types/FieldConfiguration.js +1 -3
  496. package/api/types/Filter.d.ts +6 -9
  497. package/api/types/Filter.js +1 -3
  498. package/api/types/FilterFieldReferenceType.d.ts +1 -4
  499. package/api/types/FilterFieldReferenceType.js +1 -3
  500. package/api/types/FilterFunction.d.ts +1 -4
  501. package/api/types/FilterFunction.js +1 -3
  502. package/api/types/GetConnectionProxyInfoEnvelope.d.ts +4 -0
  503. package/api/types/GetConnectionProxyInfoEnvelope.js +3 -0
  504. package/api/types/GetEnrichmentInputFieldsResponseEnvelope.d.ts +3 -0
  505. package/api/types/GetEnrichmentInputFieldsResponseEnvelope.js +3 -0
  506. package/api/types/GetExecutionResponseEnvelope.d.ts +2 -5
  507. package/api/types/GetExecutionResponseEnvelope.js +1 -3
  508. package/api/types/GetExecutionResponseSchema.d.ts +9 -12
  509. package/api/types/GetExecutionResponseSchema.js +1 -3
  510. package/api/types/GetIdentityResponseEnvelope.d.ts +2 -5
  511. package/api/types/GetIdentityResponseEnvelope.js +1 -3
  512. package/api/types/GetIdentityResponseSchema.d.ts +11 -12
  513. package/api/types/GetIdentityResponseSchema.js +1 -3
  514. package/api/types/GetSyncSourceMetaEnvelope.d.ts +4 -0
  515. package/api/types/GetSyncSourceMetaEnvelope.js +3 -0
  516. package/api/types/GlobalErrorSubscribersResponse.d.ts +4 -0
  517. package/api/types/GlobalErrorSubscribersResponse.js +3 -0
  518. package/api/types/Identity.d.ts +3 -6
  519. package/api/types/Identity.js +1 -3
  520. package/api/types/IdentityFunction.d.ts +2 -5
  521. package/api/types/IdentityFunction.js +1 -3
  522. package/api/types/IngestionStatusLevel.d.ts +7 -0
  523. package/api/types/IngestionStatusLevel.js +10 -0
  524. package/api/types/JobResponse.d.ts +10 -9
  525. package/api/types/JobResponse.js +1 -3
  526. package/api/types/JobResponseEnvelope.d.ts +2 -5
  527. package/api/types/JobResponseEnvelope.js +1 -3
  528. package/api/types/JsonschemaDefinitions.d.ts +1 -4
  529. package/api/types/JsonschemaDefinitions.js +1 -3
  530. package/api/types/JsonschemaForm.d.ts +0 -3
  531. package/api/types/JsonschemaForm.js +1 -3
  532. package/api/types/JsonschemaSchema.d.ts +54 -57
  533. package/api/types/JsonschemaSchema.js +1 -3
  534. package/api/types/LabelLabel.d.ts +0 -3
  535. package/api/types/LabelLabel.js +1 -3
  536. package/api/types/ListBulkSchemaEnvelope.d.ts +4 -0
  537. package/api/types/ListBulkSchemaEnvelope.js +3 -0
  538. package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +3 -6
  539. package/api/types/ListBulkSyncExecutionsEnvelope.js +1 -3
  540. package/api/types/ListBulkSyncExecutionsStatusEnvelope.d.ts +4 -0
  541. package/api/types/ListBulkSyncExecutionsStatusEnvelope.js +3 -0
  542. package/api/types/ListExecutionResponseEnvelope.d.ts +3 -6
  543. package/api/types/ListExecutionResponseEnvelope.js +1 -3
  544. package/api/types/ListPoliciesResponseEnvelope.d.ts +2 -5
  545. package/api/types/ListPoliciesResponseEnvelope.js +1 -3
  546. package/api/types/ListSyncItem.d.ts +32 -0
  547. package/api/types/ListSyncItem.js +3 -0
  548. package/api/types/ListSyncResponseEnvelope.d.ts +5 -0
  549. package/api/types/ListSyncResponseEnvelope.js +3 -0
  550. package/api/types/ListUsersEnvelope.d.ts +2 -5
  551. package/api/types/ListUsersEnvelope.js +1 -3
  552. package/api/types/Mode.d.ts +6 -9
  553. package/api/types/Mode.js +1 -3
  554. package/api/types/ModelField.d.ts +13 -16
  555. package/api/types/ModelField.js +1 -3
  556. package/api/types/ModelFieldResponse.d.ts +2 -5
  557. package/api/types/ModelFieldResponse.js +1 -3
  558. package/api/types/ModelListResponseEnvelope.d.ts +2 -5
  559. package/api/types/ModelListResponseEnvelope.js +1 -3
  560. package/api/types/ModelModelFieldRequest.d.ts +1 -4
  561. package/api/types/ModelModelFieldRequest.js +1 -3
  562. package/api/types/ModelRelation.d.ts +3 -6
  563. package/api/types/ModelRelation.js +1 -3
  564. package/api/types/ModelRelationTo.d.ts +2 -5
  565. package/api/types/ModelRelationTo.js +1 -3
  566. package/api/types/ModelResponse.d.ts +19 -22
  567. package/api/types/ModelResponse.js +1 -3
  568. package/api/types/ModelResponseEnvelope.d.ts +3 -6
  569. package/api/types/ModelResponseEnvelope.js +1 -3
  570. package/api/types/ModelSample.d.ts +3 -6
  571. package/api/types/ModelSample.js +1 -3
  572. package/api/types/ModelSampleResponseEnvelope.d.ts +3 -6
  573. package/api/types/ModelSampleResponseEnvelope.js +1 -3
  574. package/api/types/ModelsyncSyncTargetMode.d.ts +10 -0
  575. package/api/types/ModelsyncSyncTargetMode.js +13 -0
  576. package/api/types/OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -0
  577. package/api/types/OrderedMapStringGithubComInvopopJsonschemaSchema.js +3 -0
  578. package/api/types/Organization.d.ts +10 -8
  579. package/api/types/Organization.js +1 -3
  580. package/api/types/OrganizationEnvelope.d.ts +2 -5
  581. package/api/types/OrganizationEnvelope.js +1 -3
  582. package/api/types/OrganizationsEnvelope.d.ts +2 -5
  583. package/api/types/OrganizationsEnvelope.js +1 -3
  584. package/api/types/OutputActor.d.ts +5 -0
  585. package/api/types/OutputActor.js +3 -0
  586. package/api/types/Override.d.ts +6 -9
  587. package/api/types/Override.js +1 -3
  588. package/api/types/PaginationDetails.d.ts +1 -4
  589. package/api/types/PaginationDetails.js +1 -3
  590. package/api/types/PickValue.d.ts +2 -5
  591. package/api/types/PickValue.js +1 -3
  592. package/api/types/PolicyAction.d.ts +1 -4
  593. package/api/types/PolicyAction.js +1 -3
  594. package/api/types/PolicyResponse.d.ts +6 -9
  595. package/api/types/PolicyResponse.js +1 -3
  596. package/api/types/PolicyResponseEnvelope.d.ts +2 -5
  597. package/api/types/PolicyResponseEnvelope.js +1 -3
  598. package/api/types/QueryResultsEnvelope.d.ts +5 -0
  599. package/api/types/QueryResultsEnvelope.js +3 -0
  600. package/api/types/Relation.d.ts +3 -6
  601. package/api/types/Relation.js +1 -3
  602. package/api/types/RelationTo.d.ts +2 -5
  603. package/api/types/RelationTo.js +1 -3
  604. package/api/types/RoleListResponseEnvelope.d.ts +2 -5
  605. package/api/types/RoleListResponseEnvelope.js +1 -3
  606. package/api/types/RoleResponse.d.ts +4 -7
  607. package/api/types/RoleResponse.js +1 -3
  608. package/api/types/RoleResponseEnvelope.d.ts +2 -5
  609. package/api/types/RoleResponseEnvelope.js +1 -3
  610. package/api/types/RunAfter.d.ts +2 -5
  611. package/api/types/RunAfter.js +1 -3
  612. package/api/types/RunQueryEnvelope.d.ts +4 -0
  613. package/api/types/RunQueryEnvelope.js +3 -0
  614. package/api/types/RunQueryPagination.d.ts +6 -0
  615. package/api/types/RunQueryPagination.js +3 -0
  616. package/api/types/RunQueryResult.d.ts +16 -0
  617. package/api/types/RunQueryResult.js +3 -0
  618. package/api/types/SampleRecord.d.ts +4 -0
  619. package/api/types/SampleRecord.js +3 -0
  620. package/api/types/Schedule.d.ts +11 -14
  621. package/api/types/Schedule.js +1 -3
  622. package/api/types/ScheduleEnvelope.d.ts +2 -5
  623. package/api/types/ScheduleEnvelope.js +1 -3
  624. package/api/types/ScheduleFrequency.d.ts +1 -4
  625. package/api/types/ScheduleFrequency.js +1 -3
  626. package/api/types/ScheduleOptionResponse.d.ts +2 -5
  627. package/api/types/ScheduleOptionResponse.js +1 -3
  628. package/api/types/ScheduleOptionResponseEnvelope.d.ts +2 -5
  629. package/api/types/ScheduleOptionResponseEnvelope.js +1 -3
  630. package/api/types/ScheduleScheduleOption.d.ts +5 -8
  631. package/api/types/ScheduleScheduleOption.js +1 -3
  632. package/api/types/SchedulesEnvelope.d.ts +2 -5
  633. package/api/types/SchedulesEnvelope.js +1 -3
  634. package/api/types/Schema.d.ts +4 -7
  635. package/api/types/Schema.js +1 -3
  636. package/api/types/SchemaAssociation.d.ts +4 -7
  637. package/api/types/SchemaAssociation.js +1 -3
  638. package/api/types/SchemaConfiguration.d.ts +15 -12
  639. package/api/types/SchemaConfiguration.js +1 -3
  640. package/api/types/SchemaField.d.ts +8 -11
  641. package/api/types/SchemaField.js +1 -3
  642. package/api/types/SchemaIdentityFunction.d.ts +1 -4
  643. package/api/types/SchemaIdentityFunction.js +1 -3
  644. package/api/types/SchemaPrimaryKeyOverrideInput.d.ts +0 -3
  645. package/api/types/SchemaPrimaryKeyOverrideInput.js +1 -3
  646. package/api/types/SchemaRecordsResponseEnvelope.d.ts +1 -4
  647. package/api/types/SchemaRecordsResponseEnvelope.js +1 -3
  648. package/api/types/Source.d.ts +0 -3
  649. package/api/types/Source.js +1 -3
  650. package/api/types/SourceMeta.d.ts +6 -6
  651. package/api/types/SourceMeta.js +1 -3
  652. package/api/types/StartSyncResponseEnvelope.d.ts +4 -0
  653. package/api/types/StartSyncResponseEnvelope.js +3 -0
  654. package/api/types/StartSyncResponseSchema.d.ts +7 -0
  655. package/api/types/StartSyncResponseSchema.js +3 -0
  656. package/api/types/SupportedBulkMode.d.ts +7 -10
  657. package/api/types/SupportedBulkMode.js +1 -3
  658. package/api/types/SupportedMode.d.ts +5 -8
  659. package/api/types/SupportedMode.js +1 -3
  660. package/api/types/SyncDestinationProperties.d.ts +13 -16
  661. package/api/types/SyncDestinationProperties.js +1 -3
  662. package/api/types/SyncField.d.ts +14 -0
  663. package/api/types/SyncField.js +3 -0
  664. package/api/types/SyncResponse.d.ts +27 -0
  665. package/api/types/SyncResponse.js +3 -0
  666. package/api/types/SyncResponseEnvelope.d.ts +4 -0
  667. package/api/types/SyncResponseEnvelope.js +3 -0
  668. package/api/types/SyncSourceMetaResponse.d.ts +9 -0
  669. package/api/types/SyncSourceMetaResponse.js +3 -0
  670. package/api/types/SyncStatusEnvelope.d.ts +2 -5
  671. package/api/types/SyncStatusEnvelope.js +1 -3
  672. package/api/types/SyncStatusResponse.d.ts +4 -7
  673. package/api/types/SyncStatusResponse.js +1 -3
  674. package/api/types/Target.d.ts +6 -9
  675. package/api/types/Target.js +1 -3
  676. package/api/types/TargetCreateInput.d.ts +3 -6
  677. package/api/types/TargetCreateInput.js +1 -3
  678. package/api/types/TargetCreator.d.ts +7 -0
  679. package/api/types/TargetCreator.js +3 -0
  680. package/api/types/TargetField.d.ts +14 -17
  681. package/api/types/TargetField.js +1 -3
  682. package/api/types/TargetObject.d.ts +4 -7
  683. package/api/types/TargetObject.js +1 -3
  684. package/api/types/TargetObjectsResponseEnvelope.d.ts +5 -0
  685. package/api/types/TargetObjectsResponseEnvelope.js +3 -0
  686. package/api/types/TargetPropertyValues.d.ts +11 -0
  687. package/api/types/TargetPropertyValues.js +3 -0
  688. package/api/types/TargetPropertyValuesEnvelope.d.ts +4 -0
  689. package/api/types/TargetPropertyValuesEnvelope.js +3 -0
  690. package/api/types/TargetResponse.d.ts +7 -10
  691. package/api/types/TargetResponse.js +1 -3
  692. package/api/types/TargetResponseEnvelope.d.ts +2 -5
  693. package/api/types/TargetResponseEnvelope.js +1 -3
  694. package/api/types/TypesType.d.ts +0 -3
  695. package/api/types/TypesType.js +1 -3
  696. package/api/types/UpdateBulkField.d.ts +4 -7
  697. package/api/types/UpdateBulkField.js +1 -3
  698. package/api/types/UpdateBulkSyncSchemasEnvelope.d.ts +4 -0
  699. package/api/types/UpdateBulkSyncSchemasEnvelope.js +3 -0
  700. package/api/types/User.d.ts +10 -8
  701. package/api/types/User.js +1 -3
  702. package/api/types/UserEnvelope.d.ts +2 -5
  703. package/api/types/UserEnvelope.js +1 -3
  704. package/api/types/UserFieldRequest.d.ts +12 -0
  705. package/api/types/UserFieldRequest.js +3 -0
  706. package/api/types/UtilEnumValue.d.ts +2 -5
  707. package/api/types/UtilEnumValue.js +1 -3
  708. package/api/types/UtilExecutionStatus.d.ts +14 -0
  709. package/api/types/UtilExecutionStatus.js +17 -0
  710. package/api/types/UtilFieldType.d.ts +1 -4
  711. package/api/types/UtilFieldType.js +1 -3
  712. package/api/types/Webhook.d.ts +6 -9
  713. package/api/types/Webhook.js +1 -3
  714. package/api/types/WebhookEnvelope.d.ts +2 -5
  715. package/api/types/WebhookEnvelope.js +1 -3
  716. package/api/types/WebhookListEnvelope.d.ts +2 -5
  717. package/api/types/WebhookListEnvelope.js +1 -3
  718. package/api/types/WorkTaskStatus.d.ts +1 -4
  719. package/api/types/WorkTaskStatus.js +1 -3
  720. package/api/types/index.d.ts +135 -113
  721. package/api/types/index.js +135 -113
  722. package/auth/BearerAuthProvider.d.ts +20 -0
  723. package/auth/BearerAuthProvider.js +79 -0
  724. package/auth/index.d.ts +1 -0
  725. package/auth/index.js +5 -0
  726. package/core/auth/AuthProvider.d.ts +7 -0
  727. package/core/auth/AuthRequest.d.ts +9 -0
  728. package/core/auth/BasicAuth.d.ts +2 -2
  729. package/core/auth/BasicAuth.js +11 -4
  730. package/core/auth/BearerToken.d.ts +3 -1
  731. package/core/auth/BearerToken.js +7 -6
  732. package/core/auth/NoOpAuthProvider.d.ts +5 -0
  733. package/core/auth/NoOpAuthProvider.js +9 -0
  734. package/core/auth/index.d.ts +3 -0
  735. package/core/auth/index.js +3 -1
  736. package/core/base64.d.ts +2 -0
  737. package/core/base64.js +26 -0
  738. package/core/exports.d.ts +1 -0
  739. package/core/exports.js +17 -0
  740. package/core/fetcher/APIResponse.d.ts +10 -0
  741. package/core/fetcher/BinaryResponse.d.ts +19 -0
  742. package/core/fetcher/BinaryResponse.js +17 -0
  743. package/core/fetcher/EndpointMetadata.d.ts +13 -0
  744. package/core/fetcher/EndpointSupplier.d.ts +12 -0
  745. package/core/fetcher/EndpointSupplier.js +22 -0
  746. package/core/fetcher/Fetcher.d.ts +23 -6
  747. package/core/fetcher/Fetcher.js +243 -16
  748. package/core/fetcher/Headers.d.ts +2 -0
  749. package/core/fetcher/Headers.js +84 -0
  750. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  751. package/core/fetcher/HttpResponsePromise.js +103 -0
  752. package/core/fetcher/RawResponse.d.ts +29 -0
  753. package/core/fetcher/RawResponse.js +44 -0
  754. package/core/fetcher/createRequestUrl.d.ts +1 -1
  755. package/core/fetcher/createRequestUrl.js +3 -7
  756. package/core/fetcher/getErrorResponseBody.d.ts +1 -0
  757. package/core/fetcher/getErrorResponseBody.js +45 -0
  758. package/core/fetcher/getFetchFn.d.ts +1 -4
  759. package/core/fetcher/getFetchFn.js +1 -52
  760. package/core/fetcher/getRequestBody.d.ts +1 -1
  761. package/core/fetcher/getRequestBody.js +4 -0
  762. package/core/fetcher/getResponseBody.js +42 -27
  763. package/core/fetcher/index.d.ts +9 -1
  764. package/core/fetcher/index.js +11 -1
  765. package/core/fetcher/makePassthroughRequest.d.ts +49 -0
  766. package/core/fetcher/makePassthroughRequest.js +135 -0
  767. package/core/fetcher/makeRequest.d.ts +6 -1
  768. package/core/fetcher/makeRequest.js +32 -13
  769. package/core/fetcher/requestWithRetries.js +35 -8
  770. package/core/fetcher/signals.d.ts +1 -7
  771. package/core/fetcher/signals.js +0 -12
  772. package/core/headers.d.ts +2 -0
  773. package/core/headers.js +31 -0
  774. package/core/index.d.ts +4 -1
  775. package/core/index.js +27 -1
  776. package/core/logging/exports.d.ts +18 -0
  777. package/core/logging/exports.js +45 -0
  778. package/core/logging/index.d.ts +1 -0
  779. package/core/logging/index.js +17 -0
  780. package/core/logging/logger.d.ts +126 -0
  781. package/core/logging/logger.js +144 -0
  782. package/core/runtime/runtime.js +17 -16
  783. package/core/url/QueryStringBuilder.d.ts +47 -0
  784. package/core/url/QueryStringBuilder.js +83 -0
  785. package/core/url/encodePathParam.d.ts +1 -0
  786. package/core/url/encodePathParam.js +21 -0
  787. package/core/url/index.d.ts +4 -0
  788. package/core/url/index.js +11 -0
  789. package/core/url/join.d.ts +1 -0
  790. package/core/url/join.js +68 -0
  791. package/core/url/qs.d.ts +7 -0
  792. package/core/url/qs.js +76 -0
  793. package/environments.d.ts +0 -3
  794. package/environments.js +1 -3
  795. package/errors/PolytomicError.d.ts +6 -4
  796. package/errors/PolytomicError.js +12 -10
  797. package/errors/PolytomicTimeoutError.d.ts +4 -4
  798. package/errors/PolytomicTimeoutError.js +10 -5
  799. package/errors/handleNonStatusCodeError.d.ts +2 -0
  800. package/errors/handleNonStatusCodeError.js +68 -0
  801. package/exports.d.ts +1 -0
  802. package/exports.js +17 -0
  803. package/index.d.ts +2 -0
  804. package/index.js +4 -0
  805. package/package.json +31 -24
  806. package/reference.md +4562 -1299
  807. package/version.d.ts +1 -1
  808. package/version.js +1 -1
  809. package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +0 -11
  810. package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.js +0 -5
  811. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +0 -5
  812. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +0 -5
  813. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +0 -5
  814. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +0 -5
  815. package/api/resources/bulkSync/types/index.d.ts +0 -2
  816. package/api/resources/bulkSync/types/index.js +0 -18
  817. package/api/resources/connections/client/requests/ApiRequest.d.ts +0 -13
  818. package/api/resources/connections/client/requests/ApiRequest.js +0 -5
  819. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +0 -48
  820. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.js +0 -5
  821. package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +0 -12
  822. package/api/resources/modelSync/client/requests/StartModelSyncRequest.js +0 -5
  823. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +0 -48
  824. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.js +0 -5
  825. package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +0 -13
  826. package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +0 -5
  827. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +0 -11
  828. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +0 -5
  829. package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +0 -11
  830. package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.js +0 -5
  831. package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +0 -10
  832. package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.js +0 -5
  833. package/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +0 -15
  834. package/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +0 -5
  835. package/api/types/BulkItemizedSchedule.d.ts +0 -8
  836. package/api/types/BulkItemizedSchedule.js +0 -5
  837. package/api/types/BulkMultiScheduleConfiguration.d.ts +0 -8
  838. package/api/types/BulkMultiScheduleConfiguration.js +0 -5
  839. package/api/types/BulkSchedule.d.ts +0 -13
  840. package/api/types/BulkSchedule.js +0 -5
  841. package/api/types/BulkSyncCanceledEvent.d.ts +0 -11
  842. package/api/types/BulkSyncCanceledEvent.js +0 -5
  843. package/api/types/BulkSyncCompletedEvent.d.ts +0 -12
  844. package/api/types/BulkSyncCompletedEvent.js +0 -5
  845. package/api/types/BulkSyncCompletedWithErrorEvent.d.ts +0 -12
  846. package/api/types/BulkSyncCompletedWithErrorEvent.js +0 -5
  847. package/api/types/BulkSyncFailedEvent.d.ts +0 -13
  848. package/api/types/BulkSyncFailedEvent.js +0 -5
  849. package/api/types/BulkSyncMode.d.ts +0 -11
  850. package/api/types/BulkSyncMode.js +0 -10
  851. package/api/types/BulkSyncRunningEvent.d.ts +0 -11
  852. package/api/types/BulkSyncRunningEvent.js +0 -5
  853. package/api/types/CancelModelSyncResponse.d.ts +0 -6
  854. package/api/types/CancelModelSyncResponse.js +0 -5
  855. package/api/types/CancelModelSyncResponseEnvelope.d.ts +0 -7
  856. package/api/types/CancelModelSyncResponseEnvelope.js +0 -5
  857. package/api/types/CommonOutputActor.d.ts +0 -8
  858. package/api/types/CommonOutputActor.js +0 -5
  859. package/api/types/ConnectionMeta.d.ts +0 -8
  860. package/api/types/ConnectionMeta.js +0 -5
  861. package/api/types/ConnectionMetaResponse.d.ts +0 -9
  862. package/api/types/ConnectionMetaResponse.js +0 -5
  863. package/api/types/EventBody.d.ts +0 -5
  864. package/api/types/EventBody.js +0 -5
  865. package/api/types/ExecutionStatus.d.ts +0 -17
  866. package/api/types/ExecutionStatus.js +0 -19
  867. package/api/types/GetConnectionMetaEnvelope.d.ts +0 -7
  868. package/api/types/GetConnectionMetaEnvelope.js +0 -5
  869. package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +0 -7
  870. package/api/types/GetModelSyncSourceMetaEnvelope.js +0 -5
  871. package/api/types/ListBulkSchema.d.ts +0 -7
  872. package/api/types/ListBulkSchema.js +0 -5
  873. package/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +0 -7
  874. package/api/types/ListBulkSyncExecutionStatusEnvelope.js +0 -5
  875. package/api/types/ListModelSyncResponseEnvelope.d.ts +0 -7
  876. package/api/types/ListModelSyncResponseEnvelope.js +0 -5
  877. package/api/types/ModelSyncField.d.ts +0 -17
  878. package/api/types/ModelSyncField.js +0 -5
  879. package/api/types/ModelSyncMode.d.ts +0 -15
  880. package/api/types/ModelSyncMode.js +0 -14
  881. package/api/types/ModelSyncResponse.d.ts +0 -30
  882. package/api/types/ModelSyncResponse.js +0 -5
  883. package/api/types/ModelSyncResponseEnvelope.d.ts +0 -7
  884. package/api/types/ModelSyncResponseEnvelope.js +0 -5
  885. package/api/types/ModelSyncSourceMetaResponse.d.ts +0 -9
  886. package/api/types/ModelSyncSourceMetaResponse.js +0 -5
  887. package/api/types/Pagination.d.ts +0 -9
  888. package/api/types/Pagination.js +0 -5
  889. package/api/types/RestErrResponse.d.ts +0 -13
  890. package/api/types/RestErrResponse.js +0 -5
  891. package/api/types/StartModelSyncResponseEnvelope.d.ts +0 -7
  892. package/api/types/StartModelSyncResponseEnvelope.js +0 -5
  893. package/api/types/StartModelSyncResponseSchema.d.ts +0 -10
  894. package/api/types/StartModelSyncResponseSchema.js +0 -5
  895. package/api/types/SyncCanceledEvent.d.ts +0 -12
  896. package/api/types/SyncCanceledEvent.js +0 -5
  897. package/api/types/SyncCompletedEvent.d.ts +0 -25
  898. package/api/types/SyncCompletedEvent.js +0 -5
  899. package/api/types/SyncCompletedWithErrorsEvent.d.ts +0 -13
  900. package/api/types/SyncCompletedWithErrorsEvent.js +0 -5
  901. package/api/types/SyncFailedEvent.d.ts +0 -11
  902. package/api/types/SyncFailedEvent.js +0 -5
  903. package/api/types/SyncRunningEvent.d.ts +0 -10
  904. package/api/types/SyncRunningEvent.js +0 -5
  905. package/api/types/V2ConnectionForm.d.ts +0 -7
  906. package/api/types/V2ConnectionForm.js +0 -5
  907. package/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +0 -7
  908. package/api/types/V2CreateSharedConnectionResponseEnvelope.js +0 -5
  909. package/api/types/V2EnricherConfiguration.d.ts +0 -7
  910. package/api/types/V2EnricherConfiguration.js +0 -5
  911. package/api/types/V2EnricherMapping.d.ts +0 -7
  912. package/api/types/V2EnricherMapping.js +0 -5
  913. package/api/types/V2ExecutionLogType.d.ts +0 -12
  914. package/api/types/V2ExecutionLogType.js +0 -14
  915. package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +0 -6
  916. package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +0 -5
  917. package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +0 -4
  918. package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.js +0 -5
  919. package/api/types/V2SampleRecord.d.ts +0 -7
  920. package/api/types/V2SampleRecord.js +0 -5
  921. package/api/types/V2SchemaConfigurationFieldsItem.d.ts +0 -5
  922. package/api/types/V2SchemaConfigurationFieldsItem.js +0 -5
  923. package/api/types/V4BulkSyncExecutionLogs.d.ts +0 -4
  924. package/api/types/V4BulkSyncExecutionLogs.js +0 -5
  925. package/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +0 -7
  926. package/api/types/V4BulkSyncExecutionLogsEnvelope.js +0 -5
  927. package/api/types/V4BulkSyncScheduleApi.d.ts +0 -13
  928. package/api/types/V4BulkSyncScheduleApi.js +0 -5
  929. package/api/types/V4ExportSyncLogsEnvelope.d.ts +0 -8
  930. package/api/types/V4ExportSyncLogsEnvelope.js +0 -5
  931. package/api/types/V4ExportSyncLogsResponse.d.ts +0 -6
  932. package/api/types/V4ExportSyncLogsResponse.js +0 -5
  933. package/api/types/V4GlobalErrorSubscribersResponse.d.ts +0 -6
  934. package/api/types/V4GlobalErrorSubscribersResponse.js +0 -5
  935. package/api/types/V4QueryResultsEnvelope.d.ts +0 -8
  936. package/api/types/V4QueryResultsEnvelope.js +0 -5
  937. package/api/types/V4RunQueryEnvelope.d.ts +0 -7
  938. package/api/types/V4RunQueryEnvelope.js +0 -5
  939. package/api/types/V4RunQueryResult.d.ts +0 -18
  940. package/api/types/V4RunQueryResult.js +0 -5
  941. package/api/types/V4TargetCreator.d.ts +0 -10
  942. package/api/types/V4TargetCreator.js +0 -5
  943. package/api/types/V4TargetObjectsResponseEnvelope.d.ts +0 -8
  944. package/api/types/V4TargetObjectsResponseEnvelope.js +0 -5
  945. package/api/types/V4TargetPropertyValues.d.ts +0 -14
  946. package/api/types/V4TargetPropertyValues.js +0 -5
  947. package/api/types/V4TargetPropertyValuesEnvelope.d.ts +0 -7
  948. package/api/types/V4TargetPropertyValuesEnvelope.js +0 -5
  949. package/api/types/V4UserFieldRequest.d.ts +0 -10
  950. package/api/types/V4UserFieldRequest.js +0 -5
  951. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  952. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  953. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  954. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  955. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  956. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  957. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  958. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  959. package/dist/Client.d.ts +0 -73
  960. package/dist/Client.js +0 -82
  961. package/dist/api/errors/BadRequestError.d.ts +0 -8
  962. package/dist/api/errors/BadRequestError.js +0 -51
  963. package/dist/api/errors/ConflictError.d.ts +0 -8
  964. package/dist/api/errors/ConflictError.js +0 -51
  965. package/dist/api/errors/ForbiddenError.d.ts +0 -8
  966. package/dist/api/errors/ForbiddenError.js +0 -51
  967. package/dist/api/errors/InternalServerError.d.ts +0 -8
  968. package/dist/api/errors/InternalServerError.js +0 -51
  969. package/dist/api/errors/NotFoundError.d.ts +0 -8
  970. package/dist/api/errors/NotFoundError.js +0 -51
  971. package/dist/api/errors/UnauthorizedError.d.ts +0 -8
  972. package/dist/api/errors/UnauthorizedError.js +0 -51
  973. package/dist/api/errors/UnprocessableEntityError.d.ts +0 -8
  974. package/dist/api/errors/UnprocessableEntityError.js +0 -51
  975. package/dist/api/errors/index.d.ts +0 -7
  976. package/dist/api/errors/index.js +0 -23
  977. package/dist/api/index.d.ts +0 -3
  978. package/dist/api/index.js +0 -19
  979. package/dist/api/resources/bulkSync/client/Client.d.ts +0 -248
  980. package/dist/api/resources/bulkSync/client/Client.js +0 -847
  981. package/dist/api/resources/bulkSync/client/index.d.ts +0 -1
  982. package/dist/api/resources/bulkSync/client/index.js +0 -17
  983. package/dist/api/resources/bulkSync/client/requests/BulkSyncGetRequest.d.ts +0 -12
  984. package/dist/api/resources/bulkSync/client/requests/BulkSyncGetRequest.js +0 -5
  985. package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +0 -12
  986. package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.js +0 -5
  987. package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +0 -12
  988. package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +0 -5
  989. package/dist/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.d.ts +0 -12
  990. package/dist/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.js +0 -5
  991. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +0 -43
  992. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.js +0 -5
  993. package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +0 -14
  994. package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.js +0 -5
  995. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +0 -43
  996. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.js +0 -5
  997. package/dist/api/resources/bulkSync/client/requests/index.d.ts +0 -7
  998. package/dist/api/resources/bulkSync/index.d.ts +0 -3
  999. package/dist/api/resources/bulkSync/index.js +0 -19
  1000. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +0 -117
  1001. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +0 -467
  1002. package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +0 -1
  1003. package/dist/api/resources/bulkSync/resources/executions/client/index.js +0 -17
  1004. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +0 -13
  1005. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +0 -5
  1006. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +0 -18
  1007. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.js +0 -5
  1008. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +0 -24
  1009. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +0 -5
  1010. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +0 -3
  1011. package/dist/api/resources/bulkSync/resources/index.d.ts +0 -6
  1012. package/dist/api/resources/bulkSync/resources/index.js +0 -45
  1013. package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +0 -113
  1014. package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +0 -398
  1015. package/dist/api/resources/bulkSync/resources/schedules/client/index.d.ts +0 -1
  1016. package/dist/api/resources/bulkSync/resources/schedules/client/index.js +0 -17
  1017. package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +0 -15
  1018. package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js +0 -5
  1019. package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +0 -15
  1020. package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js +0 -5
  1021. package/dist/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +0 -2
  1022. package/dist/api/resources/bulkSync/resources/schedules/index.d.ts +0 -1
  1023. package/dist/api/resources/bulkSync/resources/schedules/index.js +0 -17
  1024. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +0 -101
  1025. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +0 -383
  1026. package/dist/api/resources/bulkSync/resources/schemas/client/index.d.ts +0 -1
  1027. package/dist/api/resources/bulkSync/resources/schemas/client/index.js +0 -17
  1028. package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +0 -11
  1029. package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.js +0 -5
  1030. package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +0 -10
  1031. package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.js +0 -5
  1032. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +0 -18
  1033. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.js +0 -5
  1034. package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +0 -3
  1035. package/dist/api/resources/bulkSync/resources/schemas/index.d.ts +0 -1
  1036. package/dist/api/resources/bulkSync/resources/schemas/index.js +0 -17
  1037. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +0 -5
  1038. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +0 -5
  1039. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +0 -5
  1040. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +0 -5
  1041. package/dist/api/resources/bulkSync/types/index.d.ts +0 -2
  1042. package/dist/api/resources/bulkSync/types/index.js +0 -18
  1043. package/dist/api/resources/connections/client/Client.d.ts +0 -237
  1044. package/dist/api/resources/connections/client/Client.js +0 -865
  1045. package/dist/api/resources/connections/client/index.d.ts +0 -1
  1046. package/dist/api/resources/connections/client/index.js +0 -17
  1047. package/dist/api/resources/connections/client/requests/ApiRequest.d.ts +0 -13
  1048. package/dist/api/resources/connections/client/requests/ApiRequest.js +0 -5
  1049. package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +0 -25
  1050. package/dist/api/resources/connections/client/requests/ConnectCardRequest.js +0 -5
  1051. package/dist/api/resources/connections/client/requests/ConnectionsRemoveRequest.d.ts +0 -12
  1052. package/dist/api/resources/connections/client/requests/ConnectionsRemoveRequest.js +0 -5
  1053. package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +0 -30
  1054. package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.js +0 -5
  1055. package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +0 -15
  1056. package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js +0 -5
  1057. package/dist/api/resources/connections/client/requests/TestConnectionRequest.d.ts +0 -24
  1058. package/dist/api/resources/connections/client/requests/TestConnectionRequest.js +0 -5
  1059. package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +0 -28
  1060. package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.js +0 -5
  1061. package/dist/api/resources/connections/client/requests/index.d.ts +0 -7
  1062. package/dist/api/resources/connections/client/requests/index.js +0 -2
  1063. package/dist/api/resources/connections/index.d.ts +0 -1
  1064. package/dist/api/resources/connections/index.js +0 -17
  1065. package/dist/api/resources/events/client/Client.d.ts +0 -58
  1066. package/dist/api/resources/events/client/Client.js +0 -200
  1067. package/dist/api/resources/events/client/index.d.ts +0 -1
  1068. package/dist/api/resources/events/client/index.js +0 -17
  1069. package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +0 -18
  1070. package/dist/api/resources/events/client/requests/EventsListRequest.js +0 -5
  1071. package/dist/api/resources/events/client/requests/index.d.ts +0 -1
  1072. package/dist/api/resources/events/client/requests/index.js +0 -2
  1073. package/dist/api/resources/events/index.d.ts +0 -1
  1074. package/dist/api/resources/events/index.js +0 -17
  1075. package/dist/api/resources/identity/client/Client.d.ts +0 -45
  1076. package/dist/api/resources/identity/client/Client.js +0 -124
  1077. package/dist/api/resources/identity/client/index.js +0 -2
  1078. package/dist/api/resources/identity/index.d.ts +0 -1
  1079. package/dist/api/resources/identity/index.js +0 -17
  1080. package/dist/api/resources/index.d.ts +0 -26
  1081. package/dist/api/resources/index.js +0 -65
  1082. package/dist/api/resources/jobs/client/Client.d.ts +0 -47
  1083. package/dist/api/resources/jobs/client/Client.js +0 -130
  1084. package/dist/api/resources/jobs/client/index.d.ts +0 -1
  1085. package/dist/api/resources/jobs/client/index.js +0 -2
  1086. package/dist/api/resources/jobs/index.d.ts +0 -1
  1087. package/dist/api/resources/jobs/index.js +0 -17
  1088. package/dist/api/resources/modelSync/client/Client.d.ts +0 -289
  1089. package/dist/api/resources/modelSync/client/Client.js +0 -952
  1090. package/dist/api/resources/modelSync/client/index.d.ts +0 -1
  1091. package/dist/api/resources/modelSync/client/index.js +0 -17
  1092. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +0 -48
  1093. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.js +0 -5
  1094. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +0 -10
  1095. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.js +0 -5
  1096. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +0 -10
  1097. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.js +0 -5
  1098. package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +0 -16
  1099. package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.js +0 -5
  1100. package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +0 -12
  1101. package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.js +0 -5
  1102. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +0 -48
  1103. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.js +0 -5
  1104. package/dist/api/resources/modelSync/client/requests/index.d.ts +0 -6
  1105. package/dist/api/resources/modelSync/client/requests/index.js +0 -2
  1106. package/dist/api/resources/modelSync/index.d.ts +0 -2
  1107. package/dist/api/resources/modelSync/index.js +0 -18
  1108. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +0 -111
  1109. package/dist/api/resources/modelSync/resources/executions/client/Client.js +0 -399
  1110. package/dist/api/resources/modelSync/resources/executions/client/index.d.ts +0 -1
  1111. package/dist/api/resources/modelSync/resources/executions/client/index.js +0 -17
  1112. package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +0 -16
  1113. package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +0 -5
  1114. package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +0 -13
  1115. package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +0 -5
  1116. package/dist/api/resources/modelSync/resources/executions/client/requests/index.d.ts +0 -2
  1117. package/dist/api/resources/modelSync/resources/executions/client/requests/index.js +0 -2
  1118. package/dist/api/resources/modelSync/resources/executions/index.d.ts +0 -1
  1119. package/dist/api/resources/modelSync/resources/executions/index.js +0 -17
  1120. package/dist/api/resources/modelSync/resources/index.d.ts +0 -4
  1121. package/dist/api/resources/modelSync/resources/index.js +0 -43
  1122. package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +0 -143
  1123. package/dist/api/resources/modelSync/resources/targets/client/Client.js +0 -395
  1124. package/dist/api/resources/modelSync/resources/targets/client/index.d.ts +0 -1
  1125. package/dist/api/resources/modelSync/resources/targets/client/index.js +0 -17
  1126. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +0 -14
  1127. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +0 -5
  1128. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +0 -11
  1129. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +0 -5
  1130. package/dist/api/resources/modelSync/resources/targets/client/requests/index.d.ts +0 -2
  1131. package/dist/api/resources/modelSync/resources/targets/client/requests/index.js +0 -2
  1132. package/dist/api/resources/modelSync/resources/targets/index.d.ts +0 -1
  1133. package/dist/api/resources/modelSync/resources/targets/index.js +0 -17
  1134. package/dist/api/resources/models/client/Client.d.ts +0 -180
  1135. package/dist/api/resources/models/client/Client.js +0 -709
  1136. package/dist/api/resources/models/client/index.d.ts +0 -1
  1137. package/dist/api/resources/models/client/index.js +0 -17
  1138. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +0 -11
  1139. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.js +0 -5
  1140. package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +0 -20
  1141. package/dist/api/resources/models/client/requests/ModelsCreateRequest.js +0 -5
  1142. package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +0 -10
  1143. package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +0 -5
  1144. package/dist/api/resources/models/client/requests/ModelsGetRequest.d.ts +0 -10
  1145. package/dist/api/resources/models/client/requests/ModelsGetRequest.js +0 -5
  1146. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +0 -20
  1147. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.js +0 -5
  1148. package/dist/api/resources/models/client/requests/ModelsRemoveRequest.d.ts +0 -10
  1149. package/dist/api/resources/models/client/requests/ModelsRemoveRequest.js +0 -5
  1150. package/dist/api/resources/models/client/requests/ModelsSampleRequest.d.ts +0 -10
  1151. package/dist/api/resources/models/client/requests/ModelsSampleRequest.js +0 -5
  1152. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -31
  1153. package/dist/api/resources/models/client/requests/UpdateModelRequest.js +0 -5
  1154. package/dist/api/resources/models/client/requests/index.d.ts +0 -8
  1155. package/dist/api/resources/models/client/requests/index.js +0 -2
  1156. package/dist/api/resources/models/index.d.ts +0 -1
  1157. package/dist/api/resources/models/index.js +0 -17
  1158. package/dist/api/resources/notifications/client/Client.d.ts +0 -55
  1159. package/dist/api/resources/notifications/client/Client.js +0 -182
  1160. package/dist/api/resources/notifications/client/index.d.ts +0 -1
  1161. package/dist/api/resources/notifications/client/index.js +0 -17
  1162. package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +0 -10
  1163. package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.js +0 -5
  1164. package/dist/api/resources/notifications/client/requests/index.d.ts +0 -1
  1165. package/dist/api/resources/notifications/client/requests/index.js +0 -2
  1166. package/dist/api/resources/notifications/index.d.ts +0 -1
  1167. package/dist/api/resources/notifications/index.js +0 -17
  1168. package/dist/api/resources/organization/client/Client.d.ts +0 -117
  1169. package/dist/api/resources/organization/client/Client.js +0 -388
  1170. package/dist/api/resources/organization/client/index.d.ts +0 -1
  1171. package/dist/api/resources/organization/client/index.js +0 -17
  1172. package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +0 -17
  1173. package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.js +0 -5
  1174. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +0 -17
  1175. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.js +0 -5
  1176. package/dist/api/resources/organization/client/requests/index.d.ts +0 -2
  1177. package/dist/api/resources/organization/client/requests/index.js +0 -2
  1178. package/dist/api/resources/organization/index.d.ts +0 -1
  1179. package/dist/api/resources/organization/index.js +0 -17
  1180. package/dist/api/resources/permissions/client/Client.d.ts +0 -37
  1181. package/dist/api/resources/permissions/client/Client.js +0 -22
  1182. package/dist/api/resources/permissions/client/index.d.ts +0 -1
  1183. package/dist/api/resources/permissions/client/index.js +0 -2
  1184. package/dist/api/resources/permissions/index.d.ts +0 -2
  1185. package/dist/api/resources/permissions/index.js +0 -18
  1186. package/dist/api/resources/permissions/resources/index.d.ts +0 -4
  1187. package/dist/api/resources/permissions/resources/index.js +0 -43
  1188. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +0 -101
  1189. package/dist/api/resources/permissions/resources/policies/client/Client.js +0 -380
  1190. package/dist/api/resources/permissions/resources/policies/client/index.d.ts +0 -1
  1191. package/dist/api/resources/permissions/resources/policies/client/index.js +0 -17
  1192. package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +0 -15
  1193. package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.js +0 -5
  1194. package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +0 -15
  1195. package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.js +0 -5
  1196. package/dist/api/resources/permissions/resources/policies/client/requests/index.d.ts +0 -2
  1197. package/dist/api/resources/permissions/resources/policies/client/requests/index.js +0 -2
  1198. package/dist/api/resources/permissions/resources/policies/index.d.ts +0 -1
  1199. package/dist/api/resources/permissions/resources/policies/index.js +0 -17
  1200. package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +0 -100
  1201. package/dist/api/resources/permissions/resources/roles/client/Client.js +0 -377
  1202. package/dist/api/resources/permissions/resources/roles/client/index.d.ts +0 -1
  1203. package/dist/api/resources/permissions/resources/roles/client/index.js +0 -17
  1204. package/dist/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.d.ts +0 -13
  1205. package/dist/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.js +0 -5
  1206. package/dist/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.d.ts +0 -13
  1207. package/dist/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.js +0 -5
  1208. package/dist/api/resources/permissions/resources/roles/client/requests/index.d.ts +0 -2
  1209. package/dist/api/resources/permissions/resources/roles/client/requests/index.js +0 -2
  1210. package/dist/api/resources/permissions/resources/roles/index.d.ts +0 -1
  1211. package/dist/api/resources/permissions/resources/roles/index.js +0 -17
  1212. package/dist/api/resources/queryRunner/client/Client.d.ts +0 -63
  1213. package/dist/api/resources/queryRunner/client/Client.js +0 -219
  1214. package/dist/api/resources/queryRunner/client/index.d.ts +0 -1
  1215. package/dist/api/resources/queryRunner/client/index.js +0 -17
  1216. package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +0 -10
  1217. package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +0 -5
  1218. package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +0 -15
  1219. package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +0 -5
  1220. package/dist/api/resources/queryRunner/client/requests/index.d.ts +0 -2
  1221. package/dist/api/resources/queryRunner/client/requests/index.js +0 -2
  1222. package/dist/api/resources/queryRunner/index.d.ts +0 -1
  1223. package/dist/api/resources/queryRunner/index.js +0 -17
  1224. package/dist/api/resources/schemas/client/Client.d.ts +0 -151
  1225. package/dist/api/resources/schemas/client/Client.js +0 -581
  1226. package/dist/api/resources/schemas/client/index.d.ts +0 -1
  1227. package/dist/api/resources/schemas/client/index.js +0 -17
  1228. package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +0 -11
  1229. package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +0 -5
  1230. package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +0 -11
  1231. package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +0 -5
  1232. package/dist/api/resources/schemas/client/requests/index.d.ts +0 -2
  1233. package/dist/api/resources/schemas/client/requests/index.js +0 -2
  1234. package/dist/api/resources/schemas/index.d.ts +0 -1
  1235. package/dist/api/resources/schemas/index.js +0 -17
  1236. package/dist/api/resources/users/client/Client.d.ts +0 -126
  1237. package/dist/api/resources/users/client/Client.js +0 -458
  1238. package/dist/api/resources/users/client/index.d.ts +0 -1
  1239. package/dist/api/resources/users/client/index.js +0 -17
  1240. package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +0 -14
  1241. package/dist/api/resources/users/client/requests/CreateUserRequestSchema.js +0 -5
  1242. package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +0 -14
  1243. package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.js +0 -5
  1244. package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +0 -12
  1245. package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.js +0 -5
  1246. package/dist/api/resources/users/client/requests/index.d.ts +0 -3
  1247. package/dist/api/resources/users/client/requests/index.js +0 -2
  1248. package/dist/api/resources/users/index.d.ts +0 -1
  1249. package/dist/api/resources/users/index.js +0 -17
  1250. package/dist/api/resources/webhooks/client/Client.d.ts +0 -145
  1251. package/dist/api/resources/webhooks/client/Client.js +0 -506
  1252. package/dist/api/resources/webhooks/client/index.d.ts +0 -1
  1253. package/dist/api/resources/webhooks/client/index.js +0 -17
  1254. package/dist/api/resources/webhooks/client/requests/CreateWebhooksSchema.d.ts +0 -15
  1255. package/dist/api/resources/webhooks/client/requests/CreateWebhooksSchema.js +0 -5
  1256. package/dist/api/resources/webhooks/client/requests/UpdateWebhooksSchema.d.ts +0 -15
  1257. package/dist/api/resources/webhooks/client/requests/UpdateWebhooksSchema.js +0 -5
  1258. package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -2
  1259. package/dist/api/resources/webhooks/client/requests/index.js +0 -2
  1260. package/dist/api/resources/webhooks/index.d.ts +0 -1
  1261. package/dist/api/resources/webhooks/index.js +0 -17
  1262. package/dist/api/types/ActivateSyncEnvelope.d.ts +0 -7
  1263. package/dist/api/types/ActivateSyncEnvelope.js +0 -5
  1264. package/dist/api/types/ActivateSyncInput.d.ts +0 -6
  1265. package/dist/api/types/ActivateSyncInput.js +0 -5
  1266. package/dist/api/types/ActivateSyncOutput.d.ts +0 -7
  1267. package/dist/api/types/ActivateSyncOutput.js +0 -5
  1268. package/dist/api/types/ApiError.d.ts +0 -9
  1269. package/dist/api/types/ApiError.js +0 -5
  1270. package/dist/api/types/ApiKeyResponse.d.ts +0 -6
  1271. package/dist/api/types/ApiKeyResponse.js +0 -5
  1272. package/dist/api/types/ApiKeyResponseEnvelope.d.ts +0 -7
  1273. package/dist/api/types/ApiKeyResponseEnvelope.js +0 -5
  1274. package/dist/api/types/BackendConnectionCapabilities.d.ts +0 -9
  1275. package/dist/api/types/BackendConnectionCapabilities.js +0 -5
  1276. package/dist/api/types/BackendOAuthPrompt.d.ts +0 -8
  1277. package/dist/api/types/BackendOAuthPrompt.js +0 -5
  1278. package/dist/api/types/BulkBulkSyncSchedule.d.ts +0 -22
  1279. package/dist/api/types/BulkBulkSyncSchedule.js +0 -5
  1280. package/dist/api/types/BulkDiscover.d.ts +0 -10
  1281. package/dist/api/types/BulkDiscover.js +0 -12
  1282. package/dist/api/types/BulkExecutionStatus.d.ts +0 -17
  1283. package/dist/api/types/BulkExecutionStatus.js +0 -19
  1284. package/dist/api/types/BulkFetchMode.d.ts +0 -12
  1285. package/dist/api/types/BulkFetchMode.js +0 -11
  1286. package/dist/api/types/BulkField.d.ts +0 -10
  1287. package/dist/api/types/BulkField.js +0 -5
  1288. package/dist/api/types/BulkFilter.d.ts +0 -10
  1289. package/dist/api/types/BulkFilter.js +0 -5
  1290. package/dist/api/types/BulkItemizedSchedule.d.ts +0 -8
  1291. package/dist/api/types/BulkItemizedSchedule.js +0 -5
  1292. package/dist/api/types/BulkMultiScheduleConfiguration.d.ts +0 -8
  1293. package/dist/api/types/BulkMultiScheduleConfiguration.js +0 -5
  1294. package/dist/api/types/BulkNormalizeNames.d.ts +0 -9
  1295. package/dist/api/types/BulkNormalizeNames.js +0 -11
  1296. package/dist/api/types/BulkSchedule.d.ts +0 -13
  1297. package/dist/api/types/BulkSchedule.js +0 -5
  1298. package/dist/api/types/BulkScheduleSyncMode.d.ts +0 -10
  1299. package/dist/api/types/BulkScheduleSyncMode.js +0 -12
  1300. package/dist/api/types/BulkSchema.d.ts +0 -16
  1301. package/dist/api/types/BulkSchema.js +0 -5
  1302. package/dist/api/types/BulkSchemaEnvelope.d.ts +0 -7
  1303. package/dist/api/types/BulkSchemaEnvelope.js +0 -5
  1304. package/dist/api/types/BulkSchemaExecutionStatus.d.ts +0 -14
  1305. package/dist/api/types/BulkSchemaExecutionStatus.js +0 -16
  1306. package/dist/api/types/BulkSelectiveMode.d.ts +0 -9
  1307. package/dist/api/types/BulkSelectiveMode.js +0 -11
  1308. package/dist/api/types/BulkSyncCanceledEvent.d.ts +0 -11
  1309. package/dist/api/types/BulkSyncCanceledEvent.js +0 -5
  1310. package/dist/api/types/BulkSyncCompletedEvent.d.ts +0 -12
  1311. package/dist/api/types/BulkSyncCompletedEvent.js +0 -5
  1312. package/dist/api/types/BulkSyncCompletedWithErrorEvent.d.ts +0 -12
  1313. package/dist/api/types/BulkSyncCompletedWithErrorEvent.js +0 -5
  1314. package/dist/api/types/BulkSyncDest.d.ts +0 -8
  1315. package/dist/api/types/BulkSyncDest.js +0 -5
  1316. package/dist/api/types/BulkSyncDestEnvelope.d.ts +0 -7
  1317. package/dist/api/types/BulkSyncDestEnvelope.js +0 -5
  1318. package/dist/api/types/BulkSyncExecution.d.ts +0 -22
  1319. package/dist/api/types/BulkSyncExecution.js +0 -5
  1320. package/dist/api/types/BulkSyncExecutionEnvelope.d.ts +0 -7
  1321. package/dist/api/types/BulkSyncExecutionEnvelope.js +0 -5
  1322. package/dist/api/types/BulkSyncExecutionStatus.d.ts +0 -10
  1323. package/dist/api/types/BulkSyncExecutionStatus.js +0 -5
  1324. package/dist/api/types/BulkSyncFailedEvent.d.ts +0 -13
  1325. package/dist/api/types/BulkSyncFailedEvent.js +0 -5
  1326. package/dist/api/types/BulkSyncListEnvelope.d.ts +0 -7
  1327. package/dist/api/types/BulkSyncListEnvelope.js +0 -5
  1328. package/dist/api/types/BulkSyncMode.d.ts +0 -11
  1329. package/dist/api/types/BulkSyncMode.js +0 -10
  1330. package/dist/api/types/BulkSyncResponse.d.ts +0 -36
  1331. package/dist/api/types/BulkSyncResponse.js +0 -5
  1332. package/dist/api/types/BulkSyncResponseEnvelope.d.ts +0 -7
  1333. package/dist/api/types/BulkSyncResponseEnvelope.js +0 -5
  1334. package/dist/api/types/BulkSyncRunningEvent.d.ts +0 -11
  1335. package/dist/api/types/BulkSyncRunningEvent.js +0 -5
  1336. package/dist/api/types/BulkSyncSchemaExecution.d.ts +0 -17
  1337. package/dist/api/types/BulkSyncSchemaExecution.js +0 -5
  1338. package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +0 -16
  1339. package/dist/api/types/BulkSyncSchemaExecutionStatus.js +0 -5
  1340. package/dist/api/types/BulkSyncSource.d.ts +0 -8
  1341. package/dist/api/types/BulkSyncSource.js +0 -5
  1342. package/dist/api/types/BulkSyncSourceEnvelope.d.ts +0 -7
  1343. package/dist/api/types/BulkSyncSourceEnvelope.js +0 -5
  1344. package/dist/api/types/BulkSyncSourceSchemaEnvelope.d.ts +0 -7
  1345. package/dist/api/types/BulkSyncSourceSchemaEnvelope.js +0 -5
  1346. package/dist/api/types/BulkSyncSourceStatus.d.ts +0 -8
  1347. package/dist/api/types/BulkSyncSourceStatus.js +0 -5
  1348. package/dist/api/types/BulkSyncSourceStatusEnvelope.d.ts +0 -7
  1349. package/dist/api/types/BulkSyncSourceStatusEnvelope.js +0 -5
  1350. package/dist/api/types/BulkSyncStatusEnvelope.d.ts +0 -7
  1351. package/dist/api/types/BulkSyncStatusEnvelope.js +0 -5
  1352. package/dist/api/types/BulkSyncStatusResponse.d.ts +0 -9
  1353. package/dist/api/types/BulkSyncStatusResponse.js +0 -5
  1354. package/dist/api/types/CancelBulkSyncResponse.d.ts +0 -6
  1355. package/dist/api/types/CancelBulkSyncResponse.js +0 -5
  1356. package/dist/api/types/CancelBulkSyncResponseEnvelope.d.ts +0 -7
  1357. package/dist/api/types/CancelBulkSyncResponseEnvelope.js +0 -5
  1358. package/dist/api/types/CancelModelSyncResponse.d.ts +0 -6
  1359. package/dist/api/types/CancelModelSyncResponse.js +0 -5
  1360. package/dist/api/types/CancelModelSyncResponseEnvelope.d.ts +0 -7
  1361. package/dist/api/types/CancelModelSyncResponseEnvelope.js +0 -5
  1362. package/dist/api/types/CommonOutputActor.d.ts +0 -8
  1363. package/dist/api/types/CommonOutputActor.js +0 -5
  1364. package/dist/api/types/ConfigurationValue.d.ts +0 -7
  1365. package/dist/api/types/ConfigurationValue.js +0 -5
  1366. package/dist/api/types/ConnectCardResponse.d.ts +0 -8
  1367. package/dist/api/types/ConnectCardResponse.js +0 -5
  1368. package/dist/api/types/ConnectCardResponseEnvelope.d.ts +0 -7
  1369. package/dist/api/types/ConnectCardResponseEnvelope.js +0 -5
  1370. package/dist/api/types/ConnectionListResponseEnvelope.d.ts +0 -7
  1371. package/dist/api/types/ConnectionListResponseEnvelope.js +0 -5
  1372. package/dist/api/types/ConnectionMeta.d.ts +0 -8
  1373. package/dist/api/types/ConnectionMeta.js +0 -5
  1374. package/dist/api/types/ConnectionMetaResponse.d.ts +0 -9
  1375. package/dist/api/types/ConnectionMetaResponse.js +0 -5
  1376. package/dist/api/types/ConnectionParameterValue.d.ts +0 -7
  1377. package/dist/api/types/ConnectionParameterValue.js +0 -5
  1378. package/dist/api/types/ConnectionParameterValuesResp.d.ts +0 -8
  1379. package/dist/api/types/ConnectionParameterValuesResp.js +0 -5
  1380. package/dist/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +0 -7
  1381. package/dist/api/types/ConnectionParameterValuesResponseEnvelope.js +0 -5
  1382. package/dist/api/types/ConnectionResponseEnvelope.d.ts +0 -7
  1383. package/dist/api/types/ConnectionResponseEnvelope.js +0 -5
  1384. package/dist/api/types/ConnectionResponseSchema.d.ts +0 -23
  1385. package/dist/api/types/ConnectionResponseSchema.js +0 -5
  1386. package/dist/api/types/ConnectionType.d.ts +0 -15
  1387. package/dist/api/types/ConnectionType.js +0 -5
  1388. package/dist/api/types/ConnectionTypeResponseEnvelope.d.ts +0 -7
  1389. package/dist/api/types/ConnectionTypeResponseEnvelope.js +0 -5
  1390. package/dist/api/types/ConnectionTypeSchema.d.ts +0 -9
  1391. package/dist/api/types/ConnectionTypeSchema.js +0 -5
  1392. package/dist/api/types/CreateConnectionResponseEnvelope.d.ts +0 -7
  1393. package/dist/api/types/CreateConnectionResponseEnvelope.js +0 -5
  1394. package/dist/api/types/CreateConnectionResponseSchema.d.ts +0 -21
  1395. package/dist/api/types/CreateConnectionResponseSchema.js +0 -5
  1396. package/dist/api/types/CreateModelRequest.d.ts +0 -18
  1397. package/dist/api/types/CreateModelRequest.js +0 -5
  1398. package/dist/api/types/CreateSharedConnectionResponseSchema.d.ts +0 -6
  1399. package/dist/api/types/CreateSharedConnectionResponseSchema.js +0 -5
  1400. package/dist/api/types/Enrichment.d.ts +0 -13
  1401. package/dist/api/types/Enrichment.js +0 -5
  1402. package/dist/api/types/Event.d.ts +0 -11
  1403. package/dist/api/types/Event.js +0 -5
  1404. package/dist/api/types/EventBody.d.ts +0 -5
  1405. package/dist/api/types/EventBody.js +0 -5
  1406. package/dist/api/types/EventTypesEnvelope.d.ts +0 -6
  1407. package/dist/api/types/EventTypesEnvelope.js +0 -5
  1408. package/dist/api/types/EventsEnvelope.d.ts +0 -7
  1409. package/dist/api/types/EventsEnvelope.js +0 -5
  1410. package/dist/api/types/ExecutionCounts.d.ts +0 -12
  1411. package/dist/api/types/ExecutionCounts.js +0 -5
  1412. package/dist/api/types/ExecutionLogResponse.d.ts +0 -7
  1413. package/dist/api/types/ExecutionLogResponse.js +0 -5
  1414. package/dist/api/types/ExecutionLogsResponseEnvelope.d.ts +0 -7
  1415. package/dist/api/types/ExecutionLogsResponseEnvelope.js +0 -5
  1416. package/dist/api/types/ExecutionStatus.d.ts +0 -17
  1417. package/dist/api/types/ExecutionStatus.js +0 -19
  1418. package/dist/api/types/FieldConfiguration.d.ts +0 -10
  1419. package/dist/api/types/FieldConfiguration.js +0 -5
  1420. package/dist/api/types/Filter.d.ts +0 -16
  1421. package/dist/api/types/Filter.js +0 -5
  1422. package/dist/api/types/FilterFieldReferenceType.d.ts +0 -8
  1423. package/dist/api/types/FilterFieldReferenceType.js +0 -10
  1424. package/dist/api/types/FilterFunction.d.ts +0 -35
  1425. package/dist/api/types/FilterFunction.js +0 -37
  1426. package/dist/api/types/GetConnectionMetaEnvelope.d.ts +0 -7
  1427. package/dist/api/types/GetConnectionMetaEnvelope.js +0 -5
  1428. package/dist/api/types/GetExecutionResponseEnvelope.d.ts +0 -7
  1429. package/dist/api/types/GetExecutionResponseEnvelope.js +0 -5
  1430. package/dist/api/types/GetExecutionResponseSchema.d.ts +0 -14
  1431. package/dist/api/types/GetExecutionResponseSchema.js +0 -5
  1432. package/dist/api/types/GetIdentityResponseEnvelope.d.ts +0 -7
  1433. package/dist/api/types/GetIdentityResponseEnvelope.js +0 -5
  1434. package/dist/api/types/GetIdentityResponseSchema.d.ts +0 -21
  1435. package/dist/api/types/GetIdentityResponseSchema.js +0 -5
  1436. package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +0 -7
  1437. package/dist/api/types/GetModelSyncSourceMetaEnvelope.js +0 -5
  1438. package/dist/api/types/Identity.d.ts +0 -11
  1439. package/dist/api/types/Identity.js +0 -5
  1440. package/dist/api/types/IdentityFunction.d.ts +0 -7
  1441. package/dist/api/types/IdentityFunction.js +0 -5
  1442. package/dist/api/types/JobResponse.d.ts +0 -11
  1443. package/dist/api/types/JobResponse.js +0 -5
  1444. package/dist/api/types/JobResponseEnvelope.d.ts +0 -7
  1445. package/dist/api/types/JobResponseEnvelope.js +0 -5
  1446. package/dist/api/types/JsonschemaDefinitions.d.ts +0 -5
  1447. package/dist/api/types/JsonschemaDefinitions.js +0 -5
  1448. package/dist/api/types/JsonschemaForm.d.ts +0 -4
  1449. package/dist/api/types/JsonschemaForm.js +0 -5
  1450. package/dist/api/types/JsonschemaSchema.d.ts +0 -59
  1451. package/dist/api/types/JsonschemaSchema.js +0 -5
  1452. package/dist/api/types/LabelLabel.d.ts +0 -4
  1453. package/dist/api/types/LabelLabel.js +0 -5
  1454. package/dist/api/types/ListBulkSchema.d.ts +0 -7
  1455. package/dist/api/types/ListBulkSchema.js +0 -5
  1456. package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +0 -7
  1457. package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.js +0 -5
  1458. package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +0 -8
  1459. package/dist/api/types/ListBulkSyncExecutionsEnvelope.js +0 -5
  1460. package/dist/api/types/ListExecutionResponseEnvelope.d.ts +0 -8
  1461. package/dist/api/types/ListExecutionResponseEnvelope.js +0 -5
  1462. package/dist/api/types/ListModelSyncResponseEnvelope.d.ts +0 -7
  1463. package/dist/api/types/ListModelSyncResponseEnvelope.js +0 -5
  1464. package/dist/api/types/ListPoliciesResponseEnvelope.d.ts +0 -7
  1465. package/dist/api/types/ListPoliciesResponseEnvelope.js +0 -5
  1466. package/dist/api/types/ListUsersEnvelope.d.ts +0 -7
  1467. package/dist/api/types/ListUsersEnvelope.js +0 -5
  1468. package/dist/api/types/Mode.d.ts +0 -11
  1469. package/dist/api/types/Mode.js +0 -5
  1470. package/dist/api/types/ModelField.d.ts +0 -18
  1471. package/dist/api/types/ModelField.js +0 -5
  1472. package/dist/api/types/ModelFieldResponse.d.ts +0 -7
  1473. package/dist/api/types/ModelFieldResponse.js +0 -5
  1474. package/dist/api/types/ModelListResponseEnvelope.d.ts +0 -7
  1475. package/dist/api/types/ModelListResponseEnvelope.js +0 -5
  1476. package/dist/api/types/ModelModelFieldRequest.d.ts +0 -9
  1477. package/dist/api/types/ModelModelFieldRequest.js +0 -5
  1478. package/dist/api/types/ModelRelation.d.ts +0 -8
  1479. package/dist/api/types/ModelRelation.js +0 -5
  1480. package/dist/api/types/ModelRelationTo.d.ts +0 -7
  1481. package/dist/api/types/ModelRelationTo.js +0 -5
  1482. package/dist/api/types/ModelResponse.d.ts +0 -24
  1483. package/dist/api/types/ModelResponse.js +0 -5
  1484. package/dist/api/types/ModelResponseEnvelope.d.ts +0 -8
  1485. package/dist/api/types/ModelResponseEnvelope.js +0 -5
  1486. package/dist/api/types/ModelSample.d.ts +0 -8
  1487. package/dist/api/types/ModelSample.js +0 -5
  1488. package/dist/api/types/ModelSampleResponseEnvelope.d.ts +0 -8
  1489. package/dist/api/types/ModelSampleResponseEnvelope.js +0 -5
  1490. package/dist/api/types/ModelSyncField.d.ts +0 -17
  1491. package/dist/api/types/ModelSyncField.js +0 -5
  1492. package/dist/api/types/ModelSyncMode.d.ts +0 -15
  1493. package/dist/api/types/ModelSyncMode.js +0 -14
  1494. package/dist/api/types/ModelSyncResponse.d.ts +0 -30
  1495. package/dist/api/types/ModelSyncResponse.js +0 -5
  1496. package/dist/api/types/ModelSyncResponseEnvelope.d.ts +0 -7
  1497. package/dist/api/types/ModelSyncResponseEnvelope.js +0 -5
  1498. package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +0 -9
  1499. package/dist/api/types/ModelSyncSourceMetaResponse.js +0 -5
  1500. package/dist/api/types/Organization.d.ts +0 -10
  1501. package/dist/api/types/Organization.js +0 -5
  1502. package/dist/api/types/OrganizationEnvelope.d.ts +0 -7
  1503. package/dist/api/types/OrganizationEnvelope.js +0 -5
  1504. package/dist/api/types/OrganizationsEnvelope.d.ts +0 -7
  1505. package/dist/api/types/OrganizationsEnvelope.js +0 -5
  1506. package/dist/api/types/Override.d.ts +0 -15
  1507. package/dist/api/types/Override.js +0 -5
  1508. package/dist/api/types/Pagination.d.ts +0 -9
  1509. package/dist/api/types/Pagination.js +0 -5
  1510. package/dist/api/types/PaginationDetails.d.ts +0 -6
  1511. package/dist/api/types/PaginationDetails.js +0 -5
  1512. package/dist/api/types/PickValue.d.ts +0 -7
  1513. package/dist/api/types/PickValue.js +0 -5
  1514. package/dist/api/types/PolicyAction.d.ts +0 -7
  1515. package/dist/api/types/PolicyAction.js +0 -5
  1516. package/dist/api/types/PolicyResponse.d.ts +0 -11
  1517. package/dist/api/types/PolicyResponse.js +0 -5
  1518. package/dist/api/types/PolicyResponseEnvelope.d.ts +0 -7
  1519. package/dist/api/types/PolicyResponseEnvelope.js +0 -5
  1520. package/dist/api/types/Relation.d.ts +0 -8
  1521. package/dist/api/types/Relation.js +0 -5
  1522. package/dist/api/types/RelationTo.d.ts +0 -7
  1523. package/dist/api/types/RelationTo.js +0 -5
  1524. package/dist/api/types/RestErrResponse.d.ts +0 -13
  1525. package/dist/api/types/RestErrResponse.js +0 -5
  1526. package/dist/api/types/RoleListResponseEnvelope.d.ts +0 -7
  1527. package/dist/api/types/RoleListResponseEnvelope.js +0 -5
  1528. package/dist/api/types/RoleResponse.d.ts +0 -9
  1529. package/dist/api/types/RoleResponse.js +0 -5
  1530. package/dist/api/types/RoleResponseEnvelope.d.ts +0 -7
  1531. package/dist/api/types/RoleResponseEnvelope.js +0 -5
  1532. package/dist/api/types/RunAfter.d.ts +0 -7
  1533. package/dist/api/types/RunAfter.js +0 -5
  1534. package/dist/api/types/Schedule.d.ts +0 -17
  1535. package/dist/api/types/Schedule.js +0 -5
  1536. package/dist/api/types/ScheduleEnvelope.d.ts +0 -7
  1537. package/dist/api/types/ScheduleEnvelope.js +0 -5
  1538. package/dist/api/types/ScheduleFrequency.d.ts +0 -16
  1539. package/dist/api/types/ScheduleFrequency.js +0 -18
  1540. package/dist/api/types/ScheduleOptionResponse.d.ts +0 -7
  1541. package/dist/api/types/ScheduleOptionResponse.js +0 -5
  1542. package/dist/api/types/ScheduleOptionResponseEnvelope.d.ts +0 -7
  1543. package/dist/api/types/ScheduleOptionResponseEnvelope.js +0 -5
  1544. package/dist/api/types/ScheduleScheduleOption.d.ts +0 -10
  1545. package/dist/api/types/ScheduleScheduleOption.js +0 -5
  1546. package/dist/api/types/SchedulesEnvelope.d.ts +0 -7
  1547. package/dist/api/types/SchedulesEnvelope.js +0 -5
  1548. package/dist/api/types/Schema.d.ts +0 -9
  1549. package/dist/api/types/Schema.js +0 -5
  1550. package/dist/api/types/SchemaAssociation.d.ts +0 -9
  1551. package/dist/api/types/SchemaAssociation.js +0 -5
  1552. package/dist/api/types/SchemaConfiguration.d.ts +0 -16
  1553. package/dist/api/types/SchemaConfiguration.js +0 -5
  1554. package/dist/api/types/SchemaField.d.ts +0 -16
  1555. package/dist/api/types/SchemaField.js +0 -5
  1556. package/dist/api/types/SchemaIdentityFunction.d.ts +0 -11
  1557. package/dist/api/types/SchemaIdentityFunction.js +0 -13
  1558. package/dist/api/types/SchemaPrimaryKeyOverrideInput.d.ts +0 -7
  1559. package/dist/api/types/SchemaPrimaryKeyOverrideInput.js +0 -5
  1560. package/dist/api/types/SchemaRecordsResponseEnvelope.d.ts +0 -6
  1561. package/dist/api/types/SchemaRecordsResponseEnvelope.js +0 -5
  1562. package/dist/api/types/Source.d.ts +0 -7
  1563. package/dist/api/types/Source.js +0 -5
  1564. package/dist/api/types/SourceMeta.d.ts +0 -8
  1565. package/dist/api/types/SourceMeta.js +0 -5
  1566. package/dist/api/types/StartModelSyncResponseEnvelope.d.ts +0 -7
  1567. package/dist/api/types/StartModelSyncResponseEnvelope.js +0 -5
  1568. package/dist/api/types/StartModelSyncResponseSchema.d.ts +0 -10
  1569. package/dist/api/types/StartModelSyncResponseSchema.js +0 -5
  1570. package/dist/api/types/SupportedBulkMode.d.ts +0 -12
  1571. package/dist/api/types/SupportedBulkMode.js +0 -5
  1572. package/dist/api/types/SupportedMode.d.ts +0 -13
  1573. package/dist/api/types/SupportedMode.js +0 -5
  1574. package/dist/api/types/SyncCanceledEvent.d.ts +0 -12
  1575. package/dist/api/types/SyncCanceledEvent.js +0 -5
  1576. package/dist/api/types/SyncCompletedEvent.d.ts +0 -25
  1577. package/dist/api/types/SyncCompletedEvent.js +0 -5
  1578. package/dist/api/types/SyncCompletedWithErrorsEvent.d.ts +0 -13
  1579. package/dist/api/types/SyncCompletedWithErrorsEvent.js +0 -5
  1580. package/dist/api/types/SyncDestinationProperties.d.ts +0 -18
  1581. package/dist/api/types/SyncDestinationProperties.js +0 -5
  1582. package/dist/api/types/SyncFailedEvent.d.ts +0 -11
  1583. package/dist/api/types/SyncFailedEvent.js +0 -5
  1584. package/dist/api/types/SyncRunningEvent.d.ts +0 -10
  1585. package/dist/api/types/SyncRunningEvent.js +0 -5
  1586. package/dist/api/types/SyncStatusEnvelope.d.ts +0 -7
  1587. package/dist/api/types/SyncStatusEnvelope.js +0 -5
  1588. package/dist/api/types/SyncStatusResponse.d.ts +0 -9
  1589. package/dist/api/types/SyncStatusResponse.js +0 -5
  1590. package/dist/api/types/Target.d.ts +0 -14
  1591. package/dist/api/types/Target.js +0 -5
  1592. package/dist/api/types/TargetCreateInput.d.ts +0 -11
  1593. package/dist/api/types/TargetCreateInput.js +0 -5
  1594. package/dist/api/types/TargetField.d.ts +0 -19
  1595. package/dist/api/types/TargetField.js +0 -5
  1596. package/dist/api/types/TargetObject.d.ts +0 -12
  1597. package/dist/api/types/TargetObject.js +0 -5
  1598. package/dist/api/types/TargetResponse.d.ts +0 -12
  1599. package/dist/api/types/TargetResponse.js +0 -5
  1600. package/dist/api/types/TargetResponseEnvelope.d.ts +0 -7
  1601. package/dist/api/types/TargetResponseEnvelope.js +0 -5
  1602. package/dist/api/types/TypesType.d.ts +0 -4
  1603. package/dist/api/types/TypesType.js +0 -5
  1604. package/dist/api/types/UpdateBulkField.d.ts +0 -9
  1605. package/dist/api/types/UpdateBulkField.js +0 -5
  1606. package/dist/api/types/User.d.ts +0 -10
  1607. package/dist/api/types/User.js +0 -5
  1608. package/dist/api/types/UserEnvelope.d.ts +0 -7
  1609. package/dist/api/types/UserEnvelope.js +0 -5
  1610. package/dist/api/types/UtilEnumValue.d.ts +0 -7
  1611. package/dist/api/types/UtilEnumValue.js +0 -5
  1612. package/dist/api/types/UtilFieldType.d.ts +0 -14
  1613. package/dist/api/types/UtilFieldType.js +0 -16
  1614. package/dist/api/types/V2ConnectionForm.d.ts +0 -7
  1615. package/dist/api/types/V2ConnectionForm.js +0 -5
  1616. package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +0 -7
  1617. package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.js +0 -5
  1618. package/dist/api/types/V2EnricherConfiguration.d.ts +0 -7
  1619. package/dist/api/types/V2EnricherConfiguration.js +0 -5
  1620. package/dist/api/types/V2EnricherMapping.d.ts +0 -7
  1621. package/dist/api/types/V2EnricherMapping.js +0 -5
  1622. package/dist/api/types/V2ExecutionLogType.d.ts +0 -12
  1623. package/dist/api/types/V2ExecutionLogType.js +0 -14
  1624. package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +0 -6
  1625. package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +0 -5
  1626. package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +0 -4
  1627. package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.js +0 -5
  1628. package/dist/api/types/V2SampleRecord.d.ts +0 -7
  1629. package/dist/api/types/V2SampleRecord.js +0 -5
  1630. package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +0 -5
  1631. package/dist/api/types/V2SchemaConfigurationFieldsItem.js +0 -5
  1632. package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +0 -4
  1633. package/dist/api/types/V4BulkSyncExecutionLogs.js +0 -5
  1634. package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +0 -7
  1635. package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.js +0 -5
  1636. package/dist/api/types/V4BulkSyncScheduleApi.d.ts +0 -13
  1637. package/dist/api/types/V4BulkSyncScheduleApi.js +0 -5
  1638. package/dist/api/types/V4ExportSyncLogsEnvelope.d.ts +0 -8
  1639. package/dist/api/types/V4ExportSyncLogsEnvelope.js +0 -5
  1640. package/dist/api/types/V4ExportSyncLogsResponse.d.ts +0 -6
  1641. package/dist/api/types/V4ExportSyncLogsResponse.js +0 -5
  1642. package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +0 -6
  1643. package/dist/api/types/V4GlobalErrorSubscribersResponse.js +0 -5
  1644. package/dist/api/types/V4QueryResultsEnvelope.d.ts +0 -8
  1645. package/dist/api/types/V4QueryResultsEnvelope.js +0 -5
  1646. package/dist/api/types/V4RunQueryEnvelope.d.ts +0 -7
  1647. package/dist/api/types/V4RunQueryEnvelope.js +0 -5
  1648. package/dist/api/types/V4RunQueryResult.d.ts +0 -18
  1649. package/dist/api/types/V4RunQueryResult.js +0 -5
  1650. package/dist/api/types/V4TargetCreator.d.ts +0 -10
  1651. package/dist/api/types/V4TargetCreator.js +0 -5
  1652. package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +0 -8
  1653. package/dist/api/types/V4TargetObjectsResponseEnvelope.js +0 -5
  1654. package/dist/api/types/V4TargetPropertyValues.d.ts +0 -14
  1655. package/dist/api/types/V4TargetPropertyValues.js +0 -5
  1656. package/dist/api/types/V4TargetPropertyValuesEnvelope.d.ts +0 -7
  1657. package/dist/api/types/V4TargetPropertyValuesEnvelope.js +0 -5
  1658. package/dist/api/types/V4UserFieldRequest.d.ts +0 -10
  1659. package/dist/api/types/V4UserFieldRequest.js +0 -5
  1660. package/dist/api/types/Webhook.d.ts +0 -11
  1661. package/dist/api/types/Webhook.js +0 -5
  1662. package/dist/api/types/WebhookEnvelope.d.ts +0 -7
  1663. package/dist/api/types/WebhookEnvelope.js +0 -5
  1664. package/dist/api/types/WebhookListEnvelope.d.ts +0 -7
  1665. package/dist/api/types/WebhookListEnvelope.js +0 -5
  1666. package/dist/api/types/WorkTaskStatus.d.ts +0 -10
  1667. package/dist/api/types/WorkTaskStatus.js +0 -12
  1668. package/dist/api/types/index.d.ts +0 -203
  1669. package/dist/api/types/index.js +0 -219
  1670. package/dist/core/auth/BasicAuth.d.ts +0 -8
  1671. package/dist/core/auth/BasicAuth.js +0 -26
  1672. package/dist/core/auth/BearerToken.d.ts +0 -5
  1673. package/dist/core/auth/BearerToken.js +0 -15
  1674. package/dist/core/auth/index.d.ts +0 -2
  1675. package/dist/core/auth/index.js +0 -7
  1676. package/dist/core/fetcher/APIResponse.d.ts +0 -10
  1677. package/dist/core/fetcher/APIResponse.js +0 -2
  1678. package/dist/core/fetcher/Fetcher.d.ts +0 -39
  1679. package/dist/core/fetcher/Fetcher.js +0 -100
  1680. package/dist/core/fetcher/Supplier.d.ts +0 -4
  1681. package/dist/core/fetcher/Supplier.js +0 -22
  1682. package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
  1683. package/dist/core/fetcher/createRequestUrl.js +0 -12
  1684. package/dist/core/fetcher/getFetchFn.d.ts +0 -4
  1685. package/dist/core/fetcher/getFetchFn.js +0 -68
  1686. package/dist/core/fetcher/getHeader.d.ts +0 -1
  1687. package/dist/core/fetcher/getHeader.js +0 -11
  1688. package/dist/core/fetcher/getRequestBody.d.ts +0 -7
  1689. package/dist/core/fetcher/getRequestBody.js +0 -23
  1690. package/dist/core/fetcher/getResponseBody.d.ts +0 -1
  1691. package/dist/core/fetcher/getResponseBody.js +0 -54
  1692. package/dist/core/fetcher/index.d.ts +0 -5
  1693. package/dist/core/fetcher/index.js +0 -9
  1694. package/dist/core/fetcher/makeRequest.d.ts +0 -1
  1695. package/dist/core/fetcher/makeRequest.js +0 -42
  1696. package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
  1697. package/dist/core/fetcher/requestWithRetries.js +0 -40
  1698. package/dist/core/fetcher/signals.d.ts +0 -11
  1699. package/dist/core/fetcher/signals.js +0 -36
  1700. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1701. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1702. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  1703. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1704. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1705. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1706. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1707. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1708. package/dist/core/index.d.ts +0 -3
  1709. package/dist/core/index.js +0 -19
  1710. package/dist/core/json.d.ts +0 -15
  1711. package/dist/core/json.js +0 -24
  1712. package/dist/core/runtime/index.d.ts +0 -1
  1713. package/dist/core/runtime/index.js +0 -5
  1714. package/dist/core/runtime/runtime.d.ts +0 -9
  1715. package/dist/core/runtime/runtime.js +0 -103
  1716. package/dist/environments.d.ts +0 -7
  1717. package/dist/environments.js +0 -9
  1718. package/dist/errors/PolytomicError.d.ts +0 -12
  1719. package/dist/errors/PolytomicError.js +0 -33
  1720. package/dist/errors/PolytomicTimeoutError.d.ts +0 -6
  1721. package/dist/errors/PolytomicTimeoutError.js +0 -13
  1722. package/dist/errors/index.d.ts +0 -2
  1723. package/dist/errors/index.js +0 -7
  1724. package/dist/index.d.ts +0 -4
  1725. package/dist/index.js +0 -44
  1726. package/dist/version.d.ts +0 -1
  1727. package/dist/version.js +0 -4
  1728. package/jest.config.mjs +0 -8
  1729. package/scripts/rename-to-esm-files.js +0 -115
  1730. /package/{dist/api/resources/identity → api/resources/entities}/client/index.d.ts +0 -0
  1731. /package/{dist/api/resources/bulkSync/client/requests → api/resources/entities/client}/index.js +0 -0
  1732. /package/{dist/api/resources/bulkSync/resources/executions → api/resources/entities}/index.d.ts +0 -0
  1733. /package/{dist/api/resources/bulkSync/resources/executions → api/resources/entities}/index.js +0 -0
  1734. /package/{dist/api/resources/bulkSync/resources/executions/client/requests/index.js → core/auth/AuthProvider.js} +0 -0
  1735. /package/{dist/api/resources/bulkSync/resources/schedules/client/requests/index.js → core/auth/AuthRequest.js} +0 -0
  1736. /package/{dist/api/resources/bulkSync/resources/schemas/client/requests/index.js → core/fetcher/EndpointMetadata.js} +0 -0
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -44,40 +42,50 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
42
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
43
  });
46
44
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
45
  Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.BulkSync = void 0;
52
- const environments = __importStar(require("../../../../environments"));
46
+ exports.BulkSyncClient = void 0;
47
+ const BaseClient_1 = require("../../../../BaseClient");
53
48
  const core = __importStar(require("../../../../core"));
54
- const Polytomic = __importStar(require("../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
49
+ const headers_1 = require("../../../../core/headers");
50
+ const environments = __importStar(require("../../../../environments"));
51
+ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
56
52
  const errors = __importStar(require("../../../../errors/index"));
53
+ const Polytomic = __importStar(require("../../../index"));
57
54
  const Client_1 = require("../resources/executions/client/Client");
58
- const Client_2 = require("../resources/schemas/client/Client");
59
- const Client_3 = require("../resources/schedules/client/Client");
60
- class BulkSync {
61
- constructor(_options) {
62
- this._options = _options;
55
+ const Client_2 = require("../resources/schedules/client/Client");
56
+ const Client_3 = require("../resources/schemas/client/Client");
57
+ class BulkSyncClient {
58
+ constructor(options = {}) {
59
+ this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
63
60
  }
64
61
  get executions() {
65
62
  var _a;
66
- return ((_a = this._executions) !== null && _a !== void 0 ? _a : (this._executions = new Client_1.Executions(this._options)));
63
+ return ((_a = this._executions) !== null && _a !== void 0 ? _a : (this._executions = new Client_1.ExecutionsClient(this._options)));
67
64
  }
68
65
  get schemas() {
69
66
  var _a;
70
- return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_2.Schemas(this._options)));
67
+ return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_3.SchemasClient(this._options)));
71
68
  }
72
69
  get schedules() {
73
70
  var _a;
74
- return ((_a = this._schedules) !== null && _a !== void 0 ? _a : (this._schedules = new Client_3.Schedules(this._options)));
71
+ return ((_a = this._schedules) !== null && _a !== void 0 ? _a : (this._schedules = new Client_2.SchedulesClient(this._options)));
75
72
  }
76
73
  /**
74
+ * Lists bulk syncs in the caller's organization.
75
+ *
76
+ * Results are ordered by `updated_at` descending, with `id` as a tiebreaker for
77
+ * syncs modified at the same instant. Pagination uses an opaque
78
+ * `pagination.next_page_token` returned in the response; pass it back as the
79
+ * `page_token` query parameter to fetch the next page. The `limit` parameter is
80
+ * optional, and the default and maximum page size is 50 syncs.
81
+ *
82
+ * > 📘 To retrieve a specific sync, use
83
+ * > [`GET /api/bulk/syncs/{id}`](../../../api-reference/bulk-sync/get)
84
+ * > instead of filtering the list client-side.
85
+ *
77
86
  * @param {Polytomic.BulkSyncListRequest} request
78
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
87
+ * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
79
88
  *
80
- * @throws {@link Polytomic.UnauthorizedError}
81
89
  * @throws {@link Polytomic.InternalServerError}
82
90
  *
83
91
  * @example
@@ -85,62 +93,57 @@ class BulkSync {
85
93
  * active: true
86
94
  * })
87
95
  */
88
- list() {
96
+ list(request = {}, requestOptions) {
97
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
98
+ }
99
+ __list() {
89
100
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
90
- var _a, _b;
101
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
91
102
  const { active } = request;
92
- const _queryParams = {};
93
- if (active != null) {
94
- _queryParams["active"] = active.toString();
95
- }
103
+ const _queryParams = {
104
+ active,
105
+ };
106
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
107
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
108
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
109
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
96
110
  const _response = yield core.fetcher({
97
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/bulk/syncs"),
111
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/bulk/syncs"),
98
112
  method: "GET",
99
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
100
- ? yield core.Supplier.get(this._options.version)
101
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
- contentType: "application/json",
103
- queryParameters: _queryParams,
104
- requestType: "json",
105
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
106
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
113
+ headers: _headers,
114
+ queryString: core.url
115
+ .queryBuilder()
116
+ .addMany(_queryParams)
117
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
118
+ .build(),
119
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
120
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
107
121
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
122
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
123
+ logging: this._options.logging,
108
124
  });
109
125
  if (_response.ok) {
110
- return _response.body;
126
+ return { data: _response.body, rawResponse: _response.rawResponse };
111
127
  }
112
128
  if (_response.error.reason === "status-code") {
113
129
  switch (_response.error.statusCode) {
114
- case 401:
115
- throw new Polytomic.UnauthorizedError(_response.error.body);
116
130
  case 500:
117
- throw new Polytomic.InternalServerError(_response.error.body);
131
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
118
132
  default:
119
133
  throw new errors.PolytomicError({
120
134
  statusCode: _response.error.statusCode,
121
135
  body: _response.error.body,
136
+ rawResponse: _response.rawResponse,
122
137
  });
123
138
  }
124
139
  }
125
- switch (_response.error.reason) {
126
- case "non-json":
127
- throw new errors.PolytomicError({
128
- statusCode: _response.error.statusCode,
129
- body: _response.error.rawBody,
130
- });
131
- case "timeout":
132
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/bulk/syncs.");
133
- case "unknown":
134
- throw new errors.PolytomicError({
135
- message: _response.error.errorMessage,
136
- });
137
- }
140
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/bulk/syncs");
138
141
  });
139
142
  }
140
143
  /**
141
- * Create a new Bulk Sync from a source to a destination (data warehouse, database, or cloud storage bucket like S3).
144
+ * Creates a new bulk sync.
142
145
  *
143
- * Bulk Syncs are used for the ELT pattern (Extract, Load, and Transform), where you want to sync un-transformed data to your data warehouses, databases, or cloud storage buckets like S3.
146
+ * Bulk syncs are used for the ELT pattern (Extract, Load, and Transform), where you want to sync un-transformed data to your data warehouses, databases, or cloud storage buckets like S3.
144
147
  *
145
148
  * All of the functionality described in [the product
146
149
  * documentation](https://docs.polytomic.com/docs/bulk-syncs) is configurable via
@@ -148,9 +151,9 @@ class BulkSync {
148
151
  *
149
152
  * Sample code examples:
150
153
  *
151
- * - [Bulk sync (ELT) from Salesforce to S3](https://apidocs.polytomic.com/guides/code-examples/bulk-sync-elt-from-salesforce-to-s-3)
152
- * - [Bulk sync (ELT) from Salesforce to Snowflake](https://apidocs.polytomic.com/guides/code-examples/bulk-sync-elt-from-salesforce-to-snowflake)
153
- * - [Bulk sync (ELT) from HubSpot to PostgreSQL](https://apidocs.polytomic.com/guides/code-examples/bulk-sync-elt-from-hub-spot-to-postgre-sql)
154
+ * - [Bulk sync (ELT) from Salesforce to S3](../../../guides/code-examples/bulk-sync-elt-from-salesforce-to-s-3)
155
+ * - [Bulk sync (ELT) from Salesforce to Snowflake](../../../guides/code-examples/bulk-sync-elt-from-salesforce-to-snowflake)
156
+ * - [Bulk sync (ELT) from HubSpot to PostgreSQL](../../../guides/code-examples/bulk-sync-elt-from-hub-spot-to-postgre-sql)
154
157
  *
155
158
  * ## Connection specific configuration
156
159
  *
@@ -162,90 +165,110 @@ class BulkSync {
162
165
  * Polytomic reads data from the source connection. This will not be available for
163
166
  * integrations that do not support additional configuration.
164
167
  *
165
- * Consult the [connection configurations](https://apidocs.polytomic.com/2024-02-08/guides/configuring-your-connections/overview)
166
- * to see configurations for particular integrations (for example, [here](https://apidocs.polytomic.com/2024-02-08/guides/configuring-your-connections/connections/postgre-sql#source-1) is the available source configuration for the PostgreSQL bulk sync source).
168
+ * Consult the [connection configurations](../../../guides/configuring-your-connections/overview)
169
+ * to see configurations for particular integrations (for example, [here](../../../guides/configuring-your-connections/connections/postgre-sql#source-1) is the available source configuration for the PostgreSQL bulk sync source).
170
+ *
171
+ * ## Defaults and selection behavior
172
+ *
173
+ * If `schemas` is omitted, the sync is created with all available source schemas
174
+ * selected. Pass `schemas` explicitly if you want the initial sync to include
175
+ * only a subset of tables or objects.
176
+ *
177
+ * Schedule times are interpreted in UTC.
178
+ *
179
+ * When omitted, automatic discovery defaults are conservative:
180
+ *
181
+ * - `automatically_add_new_objects` defaults to not enabling newly discovered
182
+ * source objects automatically.
183
+ * - `automatically_add_new_fields` defaults to enabling newly discovered fields
184
+ * on already selected objects.
185
+ * - `normalize_names` defaults to enabled.
167
186
  *
168
187
  * @param {Polytomic.CreateBulkSyncRequest} request
169
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
188
+ * @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
170
189
  *
171
190
  * @throws {@link Polytomic.BadRequestError}
172
- * @throws {@link Polytomic.UnauthorizedError}
173
191
  * @throws {@link Polytomic.ForbiddenError}
174
192
  * @throws {@link Polytomic.UnprocessableEntityError}
175
193
  * @throws {@link Polytomic.InternalServerError}
176
194
  *
177
195
  * @example
178
196
  * await client.bulkSync.create({
197
+ * default_schedule: {
198
+ * frequency: "manual"
199
+ * },
179
200
  * destination_configuration: {
180
201
  * "schema": "my_schema"
181
202
  * },
182
203
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
183
204
  * name: "My Bulk Sync",
184
- * schedule: {
185
- * frequency: "manual"
186
- * },
187
205
  * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
188
206
  * })
189
207
  */
190
208
  create(request, requestOptions) {
209
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
210
+ }
211
+ __create(request, requestOptions) {
191
212
  return __awaiter(this, void 0, void 0, function* () {
192
- var _a, _b;
213
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
214
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
215
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
216
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
217
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
218
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
193
219
  const _response = yield core.fetcher({
194
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/bulk/syncs"),
220
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/bulk/syncs"),
195
221
  method: "POST",
196
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
197
- ? yield core.Supplier.get(this._options.version)
198
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
222
+ headers: _headers,
199
223
  contentType: "application/json",
224
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
200
225
  requestType: "json",
201
226
  body: request,
202
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
203
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
227
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
228
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
204
229
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
230
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
231
+ logging: this._options.logging,
205
232
  });
206
233
  if (_response.ok) {
207
- return _response.body;
234
+ return { data: _response.body, rawResponse: _response.rawResponse };
208
235
  }
209
236
  if (_response.error.reason === "status-code") {
210
237
  switch (_response.error.statusCode) {
211
238
  case 400:
212
- throw new Polytomic.BadRequestError(_response.error.body);
213
- case 401:
214
- throw new Polytomic.UnauthorizedError(_response.error.body);
239
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
215
240
  case 403:
216
- throw new Polytomic.ForbiddenError(_response.error.body);
241
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
217
242
  case 422:
218
- throw new Polytomic.UnprocessableEntityError(_response.error.body);
243
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
219
244
  case 500:
220
- throw new Polytomic.InternalServerError(_response.error.body);
245
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
221
246
  default:
222
247
  throw new errors.PolytomicError({
223
248
  statusCode: _response.error.statusCode,
224
249
  body: _response.error.body,
250
+ rawResponse: _response.rawResponse,
225
251
  });
226
252
  }
227
253
  }
228
- switch (_response.error.reason) {
229
- case "non-json":
230
- throw new errors.PolytomicError({
231
- statusCode: _response.error.statusCode,
232
- body: _response.error.rawBody,
233
- });
234
- case "timeout":
235
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/bulk/syncs.");
236
- case "unknown":
237
- throw new errors.PolytomicError({
238
- message: _response.error.errorMessage,
239
- });
240
- }
254
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/bulk/syncs");
241
255
  });
242
256
  }
243
257
  /**
258
+ * Returns a bulk sync by ID.
259
+ *
260
+ * The response includes the sync's top-level configuration — source, destination,
261
+ * schedules, and discovery settings.
262
+ *
263
+ * - To check whether the sync is running and see the most-recent execution result,
264
+ * use [`GET /api/bulk/syncs/{id}/status`](../../../../api-reference/bulk-sync/get-status).
265
+ * - To inspect which schemas are selected and how they are configured, use
266
+ * [`GET /api/bulk/syncs/{id}/schemas`](../../../../api-reference/bulk-sync/schemas/list).
267
+ *
244
268
  * @param {string} id
245
269
  * @param {Polytomic.BulkSyncGetRequest} request
246
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
270
+ * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
247
271
  *
248
- * @throws {@link Polytomic.UnauthorizedError}
249
272
  * @throws {@link Polytomic.NotFoundError}
250
273
  *
251
274
  * @example
@@ -253,145 +276,174 @@ class BulkSync {
253
276
  * refresh_schemas: true
254
277
  * })
255
278
  */
256
- get(id_1) {
279
+ get(id, request = {}, requestOptions) {
280
+ return core.HttpResponsePromise.fromPromise(this.__get(id, request, requestOptions));
281
+ }
282
+ __get(id_1) {
257
283
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
258
- var _a, _b;
284
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
259
285
  const { refresh_schemas: refreshSchemas } = request;
260
- const _queryParams = {};
261
- if (refreshSchemas != null) {
262
- _queryParams["refresh_schemas"] = refreshSchemas.toString();
263
- }
286
+ const _queryParams = {
287
+ refresh_schemas: refreshSchemas,
288
+ };
289
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
290
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
291
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
292
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
264
293
  const _response = yield core.fetcher({
265
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}`),
294
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${core.url.encodePathParam(id)}`),
266
295
  method: "GET",
267
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
268
- ? yield core.Supplier.get(this._options.version)
269
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
- contentType: "application/json",
271
- queryParameters: _queryParams,
272
- requestType: "json",
273
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
274
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
296
+ headers: _headers,
297
+ queryString: core.url
298
+ .queryBuilder()
299
+ .addMany(_queryParams)
300
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
301
+ .build(),
302
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
303
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
275
304
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
305
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
306
+ logging: this._options.logging,
276
307
  });
277
308
  if (_response.ok) {
278
- return _response.body;
309
+ return { data: _response.body, rawResponse: _response.rawResponse };
279
310
  }
280
311
  if (_response.error.reason === "status-code") {
281
312
  switch (_response.error.statusCode) {
282
- case 401:
283
- throw new Polytomic.UnauthorizedError(_response.error.body);
284
313
  case 404:
285
- throw new Polytomic.NotFoundError(_response.error.body);
314
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
286
315
  default:
287
316
  throw new errors.PolytomicError({
288
317
  statusCode: _response.error.statusCode,
289
318
  body: _response.error.body,
319
+ rawResponse: _response.rawResponse,
290
320
  });
291
321
  }
292
322
  }
293
- switch (_response.error.reason) {
294
- case "non-json":
295
- throw new errors.PolytomicError({
296
- statusCode: _response.error.statusCode,
297
- body: _response.error.rawBody,
298
- });
299
- case "timeout":
300
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/bulk/syncs/{id}.");
301
- case "unknown":
302
- throw new errors.PolytomicError({
303
- message: _response.error.errorMessage,
304
- });
305
- }
323
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/bulk/syncs/{id}");
306
324
  });
307
325
  }
308
326
  /**
327
+ * Updates an existing bulk sync's top-level configuration.
328
+ *
329
+ * Updating a bulk sync is a **full replacement** of the sync's top-level
330
+ * configuration. Every field in the request body is written to the sync; any
331
+ * field you omit is cleared or reset to its default value.
332
+ *
333
+ * To make a partial change — for example, toggling `active` or swapping a
334
+ * schedule — fetch the current sync with
335
+ * [`GET /api/bulk/syncs/{id}`](../../../../api-reference/bulk-sync/get),
336
+ * modify the fields you want to change, and send the complete object back in
337
+ * the update request.
338
+ *
339
+ * Updates to `active`, `schedules`, and `policies` take effect immediately.
340
+ * Changes to source or destination configuration take effect on the sync's
341
+ * next execution.
342
+ *
343
+ * Because omitted fields are reset to their defaults, the discovery and
344
+ * naming options behave the same as on create when left out:
345
+ *
346
+ * - `automatically_add_new_objects` resets to not enabling newly discovered
347
+ * source objects automatically.
348
+ * - `automatically_add_new_fields` resets to enabling newly discovered
349
+ * fields on already selected objects.
350
+ * - `normalize_names` resets to enabled.
351
+ *
352
+ * Send the existing values explicitly if you want to preserve a non-default or
353
+ * non-empty setting, including schema and field selections.
354
+ *
309
355
  * > 📘 Updating schemas
310
356
  * >
311
- * > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
357
+ * > Schema updates are not performed through this endpoint. Use the
358
+ * > [Update Bulk Sync Schemas](../../../../api-reference/bulk-sync/schemas/patch)
359
+ * > endpoint to change a subset of schemas, or
360
+ * > [Update Bulk Sync Schema](../../../../api-reference/bulk-sync/schemas/update)
361
+ * > to replace a single schema's configuration.
312
362
  *
313
- * @param {string} id
363
+ * @param {string} id - Unique identifier of the bulk sync to update.
314
364
  * @param {Polytomic.UpdateBulkSyncRequest} request
315
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
365
+ * @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
316
366
  *
317
367
  * @throws {@link Polytomic.BadRequestError}
318
- * @throws {@link Polytomic.UnauthorizedError}
319
368
  * @throws {@link Polytomic.ForbiddenError}
320
369
  * @throws {@link Polytomic.NotFoundError}
321
370
  * @throws {@link Polytomic.InternalServerError}
322
371
  *
323
372
  * @example
324
373
  * await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
374
+ * default_schedule: {
375
+ * frequency: "manual"
376
+ * },
325
377
  * destination_configuration: {
326
378
  * "schema": "my_schema"
327
379
  * },
328
380
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
329
381
  * name: "My Bulk Sync",
330
- * schedule: {
331
- * frequency: "manual"
332
- * },
333
382
  * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
334
383
  * })
335
384
  */
336
385
  update(id, request, requestOptions) {
386
+ return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
387
+ }
388
+ __update(id, request, requestOptions) {
337
389
  return __awaiter(this, void 0, void 0, function* () {
338
- var _a, _b;
390
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
391
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
392
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
393
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
394
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
395
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
339
396
  const _response = yield core.fetcher({
340
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}`),
397
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${core.url.encodePathParam(id)}`),
341
398
  method: "PUT",
342
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
343
- ? yield core.Supplier.get(this._options.version)
344
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
+ headers: _headers,
345
400
  contentType: "application/json",
401
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
346
402
  requestType: "json",
347
403
  body: request,
348
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
349
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
404
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
405
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
350
406
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
407
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
408
+ logging: this._options.logging,
351
409
  });
352
410
  if (_response.ok) {
353
- return _response.body;
411
+ return { data: _response.body, rawResponse: _response.rawResponse };
354
412
  }
355
413
  if (_response.error.reason === "status-code") {
356
414
  switch (_response.error.statusCode) {
357
415
  case 400:
358
- throw new Polytomic.BadRequestError(_response.error.body);
359
- case 401:
360
- throw new Polytomic.UnauthorizedError(_response.error.body);
416
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
361
417
  case 403:
362
- throw new Polytomic.ForbiddenError(_response.error.body);
418
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
363
419
  case 404:
364
- throw new Polytomic.NotFoundError(_response.error.body);
420
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
365
421
  case 500:
366
- throw new Polytomic.InternalServerError(_response.error.body);
422
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
367
423
  default:
368
424
  throw new errors.PolytomicError({
369
425
  statusCode: _response.error.statusCode,
370
426
  body: _response.error.body,
427
+ rawResponse: _response.rawResponse,
371
428
  });
372
429
  }
373
430
  }
374
- switch (_response.error.reason) {
375
- case "non-json":
376
- throw new errors.PolytomicError({
377
- statusCode: _response.error.statusCode,
378
- body: _response.error.rawBody,
379
- });
380
- case "timeout":
381
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling PUT /api/bulk/syncs/{id}.");
382
- case "unknown":
383
- throw new errors.PolytomicError({
384
- message: _response.error.errorMessage,
385
- });
386
- }
431
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/bulk/syncs/{id}");
387
432
  });
388
433
  }
389
434
  /**
435
+ * Deletes a bulk sync, cancelling any running executions.
436
+ *
437
+ * Any execution that is currently running is cancelled before the sync record is
438
+ * removed.
439
+ *
440
+ * > 🚧 All associated schedules, schema configurations, and execution history are
441
+ * > deleted along with the sync.
442
+ *
390
443
  * @param {string} id
391
444
  * @param {Polytomic.BulkSyncRemoveRequest} request
392
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
445
+ * @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
393
446
  *
394
- * @throws {@link Polytomic.UnauthorizedError}
395
447
  * @throws {@link Polytomic.ForbiddenError}
396
448
  * @throws {@link Polytomic.NotFoundError}
397
449
  * @throws {@link Polytomic.InternalServerError}
@@ -401,68 +453,74 @@ class BulkSync {
401
453
  * refresh_schemas: true
402
454
  * })
403
455
  */
404
- remove(id_1) {
456
+ remove(id, request = {}, requestOptions) {
457
+ return core.HttpResponsePromise.fromPromise(this.__remove(id, request, requestOptions));
458
+ }
459
+ __remove(id_1) {
405
460
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
406
- var _a, _b;
461
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
407
462
  const { refresh_schemas: refreshSchemas } = request;
408
- const _queryParams = {};
409
- if (refreshSchemas != null) {
410
- _queryParams["refresh_schemas"] = refreshSchemas.toString();
411
- }
463
+ const _queryParams = {
464
+ refresh_schemas: refreshSchemas,
465
+ };
466
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
467
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
468
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
469
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
470
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
412
471
  const _response = yield core.fetcher({
413
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}`),
472
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${core.url.encodePathParam(id)}`),
414
473
  method: "DELETE",
415
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
416
- ? yield core.Supplier.get(this._options.version)
417
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
418
- contentType: "application/json",
419
- queryParameters: _queryParams,
420
- requestType: "json",
421
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
422
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
474
+ headers: _headers,
475
+ queryString: core.url
476
+ .queryBuilder()
477
+ .addMany(_queryParams)
478
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
479
+ .build(),
480
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
481
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
423
482
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
483
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
484
+ logging: this._options.logging,
424
485
  });
425
486
  if (_response.ok) {
426
- return;
487
+ return { data: undefined, rawResponse: _response.rawResponse };
427
488
  }
428
489
  if (_response.error.reason === "status-code") {
429
490
  switch (_response.error.statusCode) {
430
- case 401:
431
- throw new Polytomic.UnauthorizedError(_response.error.body);
432
491
  case 403:
433
- throw new Polytomic.ForbiddenError(_response.error.body);
492
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
434
493
  case 404:
435
- throw new Polytomic.NotFoundError(_response.error.body);
494
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
436
495
  case 500:
437
- throw new Polytomic.InternalServerError(_response.error.body);
496
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
438
497
  default:
439
498
  throw new errors.PolytomicError({
440
499
  statusCode: _response.error.statusCode,
441
500
  body: _response.error.body,
501
+ rawResponse: _response.rawResponse,
442
502
  });
443
503
  }
444
504
  }
445
- switch (_response.error.reason) {
446
- case "non-json":
447
- throw new errors.PolytomicError({
448
- statusCode: _response.error.statusCode,
449
- body: _response.error.rawBody,
450
- });
451
- case "timeout":
452
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling DELETE /api/bulk/syncs/{id}.");
453
- case "unknown":
454
- throw new errors.PolytomicError({
455
- message: _response.error.errorMessage,
456
- });
457
- }
505
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/bulk/syncs/{id}");
458
506
  });
459
507
  }
460
508
  /**
509
+ * Sets whether a bulk sync is active.
510
+ *
511
+ * Only active syncs are eligible to execute on their configured schedule.
512
+ * Deactivating a sync prevents future scheduled runs and requests cancellation of
513
+ * any execution that is currently in progress.
514
+ *
515
+ * > 📘 To start or stop a running execution directly, use
516
+ * > [`POST /api/bulk/syncs/{id}/executions`](../../../../../api-reference/bulk-sync/start)
517
+ * > or
518
+ * > [`POST /api/bulk/syncs/{id}/cancel`](../../../../../api-reference/bulk-sync/cancel).
519
+ *
461
520
  * @param {string} id
462
521
  * @param {Polytomic.ActivateSyncInput} request
463
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
522
+ * @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
464
523
  *
465
- * @throws {@link Polytomic.UnauthorizedError}
466
524
  * @throws {@link Polytomic.ForbiddenError}
467
525
  * @throws {@link Polytomic.NotFoundError}
468
526
  * @throws {@link Polytomic.InternalServerError}
@@ -473,61 +531,64 @@ class BulkSync {
473
531
  * })
474
532
  */
475
533
  activate(id, request, requestOptions) {
534
+ return core.HttpResponsePromise.fromPromise(this.__activate(id, request, requestOptions));
535
+ }
536
+ __activate(id, request, requestOptions) {
476
537
  return __awaiter(this, void 0, void 0, function* () {
477
- var _a, _b;
538
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
539
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
540
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
541
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
542
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
543
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
478
544
  const _response = yield core.fetcher({
479
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/activate`),
545
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${core.url.encodePathParam(id)}/activate`),
480
546
  method: "POST",
481
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
482
- ? yield core.Supplier.get(this._options.version)
483
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
547
+ headers: _headers,
484
548
  contentType: "application/json",
549
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
485
550
  requestType: "json",
486
551
  body: request,
487
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
488
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
552
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
553
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
489
554
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
555
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
556
+ logging: this._options.logging,
490
557
  });
491
558
  if (_response.ok) {
492
- return _response.body;
559
+ return { data: _response.body, rawResponse: _response.rawResponse };
493
560
  }
494
561
  if (_response.error.reason === "status-code") {
495
562
  switch (_response.error.statusCode) {
496
- case 401:
497
- throw new Polytomic.UnauthorizedError(_response.error.body);
498
563
  case 403:
499
- throw new Polytomic.ForbiddenError(_response.error.body);
564
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
500
565
  case 404:
501
- throw new Polytomic.NotFoundError(_response.error.body);
566
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
502
567
  case 500:
503
- throw new Polytomic.InternalServerError(_response.error.body);
568
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
504
569
  default:
505
570
  throw new errors.PolytomicError({
506
571
  statusCode: _response.error.statusCode,
507
572
  body: _response.error.body,
573
+ rawResponse: _response.rawResponse,
508
574
  });
509
575
  }
510
576
  }
511
- switch (_response.error.reason) {
512
- case "non-json":
513
- throw new errors.PolytomicError({
514
- statusCode: _response.error.statusCode,
515
- body: _response.error.rawBody,
516
- });
517
- case "timeout":
518
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/bulk/syncs/{id}/activate.");
519
- case "unknown":
520
- throw new errors.PolytomicError({
521
- message: _response.error.errorMessage,
522
- });
523
- }
577
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/bulk/syncs/{id}/activate");
524
578
  });
525
579
  }
526
580
  /**
581
+ * Requests cancellation of any running executions on a bulk sync.
582
+ *
583
+ * Cancellation is asynchronous. A successful response means the cancellation
584
+ * signal has been queued; the running execution continues until the signal is
585
+ * processed. Poll `GET /api/bulk/syncs/{id}/status` until the current execution
586
+ * reaches a terminal state (`completed`, `canceled`, or `failed`) to confirm
587
+ * cancellation has taken effect.
588
+ *
527
589
  * @param {string} id - The active execution of this bulk sync ID will be cancelled.
528
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
590
+ * @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
529
591
  *
530
- * @throws {@link Polytomic.UnauthorizedError}
531
592
  * @throws {@link Polytomic.ForbiddenError}
532
593
  * @throws {@link Polytomic.NotFoundError}
533
594
  * @throws {@link Polytomic.InternalServerError}
@@ -536,121 +597,141 @@ class BulkSync {
536
597
  * await client.bulkSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d")
537
598
  */
538
599
  cancel(id, requestOptions) {
600
+ return core.HttpResponsePromise.fromPromise(this.__cancel(id, requestOptions));
601
+ }
602
+ __cancel(id, requestOptions) {
539
603
  return __awaiter(this, void 0, void 0, function* () {
540
- var _a, _b;
604
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
605
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
606
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
607
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
608
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
609
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
541
610
  const _response = yield core.fetcher({
542
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/cancel`),
611
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${core.url.encodePathParam(id)}/cancel`),
543
612
  method: "POST",
544
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
545
- ? yield core.Supplier.get(this._options.version)
546
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
547
- contentType: "application/json",
548
- requestType: "json",
549
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
550
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
613
+ headers: _headers,
614
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
615
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
616
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
551
617
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
618
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
619
+ logging: this._options.logging,
552
620
  });
553
621
  if (_response.ok) {
554
- return _response.body;
622
+ return {
623
+ data: _response.body,
624
+ rawResponse: _response.rawResponse,
625
+ };
555
626
  }
556
627
  if (_response.error.reason === "status-code") {
557
628
  switch (_response.error.statusCode) {
558
- case 401:
559
- throw new Polytomic.UnauthorizedError(_response.error.body);
560
629
  case 403:
561
- throw new Polytomic.ForbiddenError(_response.error.body);
630
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
562
631
  case 404:
563
- throw new Polytomic.NotFoundError(_response.error.body);
632
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
564
633
  case 500:
565
- throw new Polytomic.InternalServerError(_response.error.body);
634
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
566
635
  default:
567
636
  throw new errors.PolytomicError({
568
637
  statusCode: _response.error.statusCode,
569
638
  body: _response.error.body,
639
+ rawResponse: _response.rawResponse,
570
640
  });
571
641
  }
572
642
  }
573
- switch (_response.error.reason) {
574
- case "non-json":
575
- throw new errors.PolytomicError({
576
- statusCode: _response.error.statusCode,
577
- body: _response.error.rawBody,
578
- });
579
- case "timeout":
580
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/bulk/syncs/{id}/cancel.");
581
- case "unknown":
582
- throw new errors.PolytomicError({
583
- message: _response.error.errorMessage,
584
- });
585
- }
643
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/bulk/syncs/{id}/cancel");
586
644
  });
587
645
  }
588
646
  /**
589
- * @param {string} id
647
+ * Starts a new execution of a bulk sync.
648
+ *
649
+ * This endpoint returns the execution record immediately after the run is queued
650
+ * or started. Use the execution ID with the bulk-sync execution endpoints if you
651
+ * need to monitor progress in detail.
652
+ *
653
+ * ## Execution modes
654
+ *
655
+ * - Set `test=true` to validate the sync without writing to the destination.
656
+ * - Use `resync_mode` for destructive or full-refresh style reruns.
657
+ * - `test` and `resync_mode` are mutually exclusive.
658
+ *
659
+ * The legacy `resync` boolean is no longer accepted on this v5 endpoint. Send
660
+ * `resync_mode` instead.
661
+ *
662
+ * If another execution is already running, the endpoint returns `409 Conflict`.
663
+ *
664
+ * @param {string} id - Unique identifier of the bulk sync.
590
665
  * @param {Polytomic.StartBulkSyncRequest} request
591
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
666
+ * @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
592
667
  *
593
668
  * @throws {@link Polytomic.BadRequestError}
594
- * @throws {@link Polytomic.UnauthorizedError}
595
669
  * @throws {@link Polytomic.ConflictError}
596
670
  *
597
671
  * @example
598
672
  * await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
599
673
  */
600
- start(id_1) {
674
+ start(id, request = {}, requestOptions) {
675
+ return core.HttpResponsePromise.fromPromise(this.__start(id, request, requestOptions));
676
+ }
677
+ __start(id_1) {
601
678
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
602
- var _a, _b;
679
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
680
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
681
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
682
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
683
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
684
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
603
685
  const _response = yield core.fetcher({
604
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/executions`),
686
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${core.url.encodePathParam(id)}/executions`),
605
687
  method: "POST",
606
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
607
- ? yield core.Supplier.get(this._options.version)
608
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
688
+ headers: _headers,
609
689
  contentType: "application/json",
690
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
610
691
  requestType: "json",
611
692
  body: request,
612
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
613
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
693
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
694
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
614
695
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
696
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
697
+ logging: this._options.logging,
615
698
  });
616
699
  if (_response.ok) {
617
- return _response.body;
700
+ return { data: _response.body, rawResponse: _response.rawResponse };
618
701
  }
619
702
  if (_response.error.reason === "status-code") {
620
703
  switch (_response.error.statusCode) {
621
704
  case 400:
622
- throw new Polytomic.BadRequestError(_response.error.body);
623
- case 401:
624
- throw new Polytomic.UnauthorizedError(_response.error.body);
705
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
625
706
  case 409:
626
- throw new Polytomic.ConflictError(_response.error.body);
707
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
627
708
  default:
628
709
  throw new errors.PolytomicError({
629
710
  statusCode: _response.error.statusCode,
630
711
  body: _response.error.body,
712
+ rawResponse: _response.rawResponse,
631
713
  });
632
714
  }
633
715
  }
634
- switch (_response.error.reason) {
635
- case "non-json":
636
- throw new errors.PolytomicError({
637
- statusCode: _response.error.statusCode,
638
- body: _response.error.rawBody,
639
- });
640
- case "timeout":
641
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/bulk/syncs/{id}/executions.");
642
- case "unknown":
643
- throw new errors.PolytomicError({
644
- message: _response.error.errorMessage,
645
- });
646
- }
716
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/bulk/syncs/{id}/executions");
647
717
  });
648
718
  }
649
719
  /**
650
- * @param {string} id
651
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
720
+ * Returns the current status of a bulk sync.
721
+ *
722
+ * The response includes the sync's current active/inactive state together with
723
+ * information about the most recent execution — its status, start time, and any
724
+ * errors — making this endpoint well-suited for health checks and monitoring
725
+ * dashboards.
726
+ *
727
+ * For the complete execution history, use
728
+ * [`GET /api/bulk/syncs/{id}/executions`](../../../../../api-reference/bulk-sync/executions/list).
729
+ * For the full details of a specific run, including per-schema breakdowns, use
730
+ * [`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../../api-reference/bulk-sync/executions/get).
731
+ *
732
+ * @param {string} id - Unique identifier of the bulk sync.
733
+ * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
652
734
  *
653
- * @throws {@link Polytomic.UnauthorizedError}
654
735
  * @throws {@link Polytomic.NotFoundError}
655
736
  * @throws {@link Polytomic.InternalServerError}
656
737
  *
@@ -658,60 +739,67 @@ class BulkSync {
658
739
  * await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
659
740
  */
660
741
  getStatus(id, requestOptions) {
742
+ return core.HttpResponsePromise.fromPromise(this.__getStatus(id, requestOptions));
743
+ }
744
+ __getStatus(id, requestOptions) {
661
745
  return __awaiter(this, void 0, void 0, function* () {
662
- var _a, _b;
746
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
747
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
748
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
749
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
750
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
663
751
  const _response = yield core.fetcher({
664
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/status`),
752
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${core.url.encodePathParam(id)}/status`),
665
753
  method: "GET",
666
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
667
- ? yield core.Supplier.get(this._options.version)
668
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
669
- contentType: "application/json",
670
- requestType: "json",
671
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
672
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
754
+ headers: _headers,
755
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
756
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
757
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
673
758
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
759
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
760
+ logging: this._options.logging,
674
761
  });
675
762
  if (_response.ok) {
676
- return _response.body;
763
+ return { data: _response.body, rawResponse: _response.rawResponse };
677
764
  }
678
765
  if (_response.error.reason === "status-code") {
679
766
  switch (_response.error.statusCode) {
680
- case 401:
681
- throw new Polytomic.UnauthorizedError(_response.error.body);
682
767
  case 404:
683
- throw new Polytomic.NotFoundError(_response.error.body);
768
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
684
769
  case 500:
685
- throw new Polytomic.InternalServerError(_response.error.body);
770
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
686
771
  default:
687
772
  throw new errors.PolytomicError({
688
773
  statusCode: _response.error.statusCode,
689
774
  body: _response.error.body,
775
+ rawResponse: _response.rawResponse,
690
776
  });
691
777
  }
692
778
  }
693
- switch (_response.error.reason) {
694
- case "non-json":
695
- throw new errors.PolytomicError({
696
- statusCode: _response.error.statusCode,
697
- body: _response.error.rawBody,
698
- });
699
- case "timeout":
700
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/bulk/syncs/{id}/status.");
701
- case "unknown":
702
- throw new errors.PolytomicError({
703
- message: _response.error.errorMessage,
704
- });
705
- }
779
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/bulk/syncs/{id}/status");
706
780
  });
707
781
  }
708
782
  /**
709
- * @param {string} id
783
+ * Lists the schemas (tables or objects) available on a connection for use as a bulk sync source, optionally including per-schema field details.
784
+ *
785
+ * The response reflects what the
786
+ * connection currently has cached; if the upstream source has changed, trigger
787
+ * a refresh first with
788
+ * [`POST /api/connections/{id}/schemas/refresh`](../../../../../api-reference/schemas/refresh).
789
+ *
790
+ * These are the schemas available for selection, not the schemas already
791
+ * configured on any particular sync. To inspect schemas on a running sync, use
792
+ * [`GET /api/bulk/syncs/{id}/schemas`](../../../../../api-reference/bulk-sync/schemas/list).
793
+ *
794
+ * Pass `include_fields=true` to receive per-schema field details in a single call.
795
+ * Omit it when you only need the schema list, as field enumeration can be slow for
796
+ * large sources.
797
+ *
798
+ * @param {string} id - Unique identifier of the connection.
710
799
  * @param {Polytomic.BulkSyncGetSourceRequest} request
711
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
800
+ * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
712
801
  *
713
802
  * @throws {@link Polytomic.BadRequestError}
714
- * @throws {@link Polytomic.UnauthorizedError}
715
803
  * @throws {@link Polytomic.NotFoundError}
716
804
  * @throws {@link Polytomic.InternalServerError}
717
805
  *
@@ -720,68 +808,74 @@ class BulkSync {
720
808
  * include_fields: true
721
809
  * })
722
810
  */
723
- getSource(id_1) {
811
+ getSource(id, request = {}, requestOptions) {
812
+ return core.HttpResponsePromise.fromPromise(this.__getSource(id, request, requestOptions));
813
+ }
814
+ __getSource(id_1) {
724
815
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
725
- var _a, _b;
816
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
726
817
  const { include_fields: includeFields } = request;
727
- const _queryParams = {};
728
- if (includeFields != null) {
729
- _queryParams["include_fields"] = includeFields.toString();
730
- }
818
+ const _queryParams = {
819
+ include_fields: includeFields,
820
+ };
821
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
822
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
823
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
824
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
731
825
  const _response = yield core.fetcher({
732
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/bulksync/source`),
826
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}/bulksync/source`),
733
827
  method: "GET",
734
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
735
- ? yield core.Supplier.get(this._options.version)
736
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
737
- contentType: "application/json",
738
- queryParameters: _queryParams,
739
- requestType: "json",
740
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
741
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
828
+ headers: _headers,
829
+ queryString: core.url
830
+ .queryBuilder()
831
+ .addMany(_queryParams)
832
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
833
+ .build(),
834
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
835
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
742
836
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
837
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
838
+ logging: this._options.logging,
743
839
  });
744
840
  if (_response.ok) {
745
- return _response.body;
841
+ return { data: _response.body, rawResponse: _response.rawResponse };
746
842
  }
747
843
  if (_response.error.reason === "status-code") {
748
844
  switch (_response.error.statusCode) {
749
845
  case 400:
750
- throw new Polytomic.BadRequestError(_response.error.body);
751
- case 401:
752
- throw new Polytomic.UnauthorizedError(_response.error.body);
846
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
753
847
  case 404:
754
- throw new Polytomic.NotFoundError(_response.error.body);
848
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
755
849
  case 500:
756
- throw new Polytomic.InternalServerError(_response.error.body);
850
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
757
851
  default:
758
852
  throw new errors.PolytomicError({
759
853
  statusCode: _response.error.statusCode,
760
854
  body: _response.error.body,
855
+ rawResponse: _response.rawResponse,
761
856
  });
762
857
  }
763
858
  }
764
- switch (_response.error.reason) {
765
- case "non-json":
766
- throw new errors.PolytomicError({
767
- statusCode: _response.error.statusCode,
768
- body: _response.error.rawBody,
769
- });
770
- case "timeout":
771
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/connections/{id}/bulksync/source.");
772
- case "unknown":
773
- throw new errors.PolytomicError({
774
- message: _response.error.errorMessage,
775
- });
776
- }
859
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}/bulksync/source");
777
860
  });
778
861
  }
779
862
  /**
863
+ * Describes the destination configuration schema a connection accepts when used as a bulk sync destination.
864
+ *
865
+ * The response is a JSON Schema object describing the shape of the
866
+ * `destination_configuration` field you must supply when
867
+ * [creating](../../../../../api-reference/bulk-sync/create) or
868
+ * [updating](../../../../../api-reference/bulk-sync/update) a bulk sync that uses this
869
+ * connection as its destination. Required fields vary by connection type.
870
+ *
871
+ * > 📘 Fetch this endpoint once per connection type rather than once per sync.
872
+ * > The configuration schema is the same for all syncs sharing the same
873
+ * > destination connection.
874
+ *
780
875
  * @param {string} id
781
- * @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
876
+ * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
782
877
  *
783
878
  * @throws {@link Polytomic.BadRequestError}
784
- * @throws {@link Polytomic.UnauthorizedError}
785
879
  * @throws {@link Polytomic.ForbiddenError}
786
880
  * @throws {@link Polytomic.InternalServerError}
787
881
  *
@@ -789,59 +883,47 @@ class BulkSync {
789
883
  * await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
790
884
  */
791
885
  getDestination(id, requestOptions) {
886
+ return core.HttpResponsePromise.fromPromise(this.__getDestination(id, requestOptions));
887
+ }
888
+ __getDestination(id, requestOptions) {
792
889
  return __awaiter(this, void 0, void 0, function* () {
793
- var _a, _b;
890
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
891
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
892
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
893
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
894
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
794
895
  const _response = yield core.fetcher({
795
- url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/bulksync/target`),
896
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}/bulksync/target`),
796
897
  method: "GET",
797
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
798
- ? yield core.Supplier.get(this._options.version)
799
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.1", "User-Agent": "polytomic/1.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
800
- contentType: "application/json",
801
- requestType: "json",
802
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
803
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
898
+ headers: _headers,
899
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
900
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
901
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
804
902
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
903
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
904
+ logging: this._options.logging,
805
905
  });
806
906
  if (_response.ok) {
807
- return _response.body;
907
+ return { data: _response.body, rawResponse: _response.rawResponse };
808
908
  }
809
909
  if (_response.error.reason === "status-code") {
810
910
  switch (_response.error.statusCode) {
811
911
  case 400:
812
- throw new Polytomic.BadRequestError(_response.error.body);
813
- case 401:
814
- throw new Polytomic.UnauthorizedError(_response.error.body);
912
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
815
913
  case 403:
816
- throw new Polytomic.ForbiddenError(_response.error.body);
914
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
817
915
  case 500:
818
- throw new Polytomic.InternalServerError(_response.error.body);
916
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
819
917
  default:
820
918
  throw new errors.PolytomicError({
821
919
  statusCode: _response.error.statusCode,
822
920
  body: _response.error.body,
921
+ rawResponse: _response.rawResponse,
823
922
  });
824
923
  }
825
924
  }
826
- switch (_response.error.reason) {
827
- case "non-json":
828
- throw new errors.PolytomicError({
829
- statusCode: _response.error.statusCode,
830
- body: _response.error.rawBody,
831
- });
832
- case "timeout":
833
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/connections/{id}/bulksync/target.");
834
- case "unknown":
835
- throw new errors.PolytomicError({
836
- message: _response.error.errorMessage,
837
- });
838
- }
839
- });
840
- }
841
- _getAuthorizationHeader() {
842
- return __awaiter(this, void 0, void 0, function* () {
843
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
925
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}/bulksync/target");
844
926
  });
845
927
  }
846
928
  }
847
- exports.BulkSync = BulkSync;
929
+ exports.BulkSyncClient = BulkSyncClient;