polytomic 1.16.1 → 1.18.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 (394) hide show
  1. package/Client.d.ts +14 -19
  2. package/api/errors/BadRequestError.js +7 -17
  3. package/api/errors/ConflictError.js +7 -17
  4. package/api/errors/ForbiddenError.js +7 -17
  5. package/api/errors/InternalServerError.js +7 -17
  6. package/api/errors/NotFoundError.js +7 -17
  7. package/api/errors/UnauthorizedError.js +7 -17
  8. package/api/errors/UnprocessableEntityError.js +7 -17
  9. package/api/resources/bulkSync/client/Client.d.ts +173 -24
  10. package/api/resources/bulkSync/client/Client.js +339 -118
  11. package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
  12. package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
  13. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
  14. package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
  15. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  16. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
  17. package/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
  18. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
  19. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
  20. package/api/resources/bulkSync/resources/index.js +7 -17
  21. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
  22. package/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
  23. package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
  24. package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
  25. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
  26. package/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
  27. package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
  28. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
  29. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
  30. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
  31. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
  32. package/api/resources/connections/client/Client.d.ts +134 -18
  33. package/api/resources/connections/client/Client.js +359 -104
  34. package/api/resources/connections/client/requests/ApiRequest.d.ts +2 -2
  35. package/api/resources/events/client/Client.d.ts +20 -7
  36. package/api/resources/events/client/Client.js +55 -33
  37. package/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
  38. package/api/resources/identity/client/Client.d.ts +11 -6
  39. package/api/resources/identity/client/Client.js +31 -24
  40. package/api/resources/index.js +7 -17
  41. package/api/resources/jobs/client/Client.d.ts +15 -8
  42. package/api/resources/jobs/client/Client.js +35 -26
  43. package/api/resources/modelSync/client/Client.d.ts +110 -19
  44. package/api/resources/modelSync/client/Client.js +287 -118
  45. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
  46. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
  47. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
  48. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
  49. package/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
  50. package/api/resources/modelSync/resources/executions/client/Client.js +115 -56
  51. package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
  52. package/api/resources/modelSync/resources/index.js +7 -17
  53. package/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
  54. package/api/resources/modelSync/resources/targets/client/Client.js +89 -49
  55. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
  56. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
  57. package/api/resources/models/client/Client.d.ts +79 -8
  58. package/api/resources/models/client/Client.js +214 -86
  59. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
  60. package/api/resources/notifications/client/Client.d.ts +13 -5
  61. package/api/resources/notifications/client/Client.js +48 -31
  62. package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
  63. package/api/resources/organization/client/Client.d.ts +31 -13
  64. package/api/resources/organization/client/Client.js +109 -55
  65. package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
  66. package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
  67. package/api/resources/permissions/client/Client.d.ts +2 -7
  68. package/api/resources/permissions/resources/index.js +7 -17
  69. package/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
  70. package/api/resources/permissions/resources/policies/client/Client.js +105 -47
  71. package/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
  72. package/api/resources/permissions/resources/roles/client/Client.js +110 -47
  73. package/api/resources/queryRunner/client/Client.d.ts +26 -7
  74. package/api/resources/queryRunner/client/Client.js +63 -35
  75. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
  76. package/api/resources/schemas/client/Client.d.ts +118 -23
  77. package/api/resources/schemas/client/Client.js +232 -86
  78. package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
  79. package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
  80. package/api/resources/users/client/Client.d.ts +44 -16
  81. package/api/resources/users/client/Client.js +133 -66
  82. package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +3 -0
  83. package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +3 -0
  84. package/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
  85. package/api/resources/webhooks/client/Client.d.ts +67 -21
  86. package/api/resources/webhooks/client/Client.js +165 -75
  87. package/api/types/ApiKeyResponse.d.ts +1 -0
  88. package/api/types/BulkBulkSyncSchedule.d.ts +1 -0
  89. package/api/types/BulkDiscover.d.ts +1 -1
  90. package/api/types/BulkExecutionStatus.d.ts +1 -1
  91. package/api/types/BulkFetchMode.d.ts +1 -1
  92. package/api/types/BulkNormalizeNames.d.ts +1 -1
  93. package/api/types/BulkOutputDisposition.d.ts +9 -0
  94. package/api/types/BulkOutputDisposition.js +11 -0
  95. package/api/types/BulkResyncMode.d.ts +9 -0
  96. package/api/types/BulkResyncMode.js +11 -0
  97. package/api/types/BulkScheduleSyncMode.d.ts +1 -1
  98. package/api/types/BulkSchema.d.ts +2 -0
  99. package/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
  100. package/api/types/BulkSchemaExecutionStatus.js +1 -0
  101. package/api/types/BulkSelectiveMode.d.ts +1 -1
  102. package/api/types/BulkSyncDest.d.ts +2 -0
  103. package/api/types/BulkSyncExecution.d.ts +1 -0
  104. package/api/types/BulkSyncExecutionStatus.d.ts +3 -0
  105. package/api/types/BulkSyncIngestionStatus.d.ts +14 -0
  106. package/api/types/BulkSyncMode.d.ts +1 -1
  107. package/api/types/BulkSyncResponse.d.ts +2 -2
  108. package/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
  109. package/api/types/BulkSyncSource.d.ts +1 -0
  110. package/api/types/BulkSyncStatusResponse.d.ts +1 -0
  111. package/api/types/ConnectCardResponse.d.ts +1 -0
  112. package/api/types/ConnectionResponseSchema.d.ts +2 -2
  113. package/api/types/Event.d.ts +4 -0
  114. package/api/types/EventBody.d.ts +1 -1
  115. package/api/types/ExecutionStatus.d.ts +1 -1
  116. package/api/types/FilterFieldReferenceType.d.ts +1 -1
  117. package/api/types/FilterFunction.d.ts +1 -1
  118. package/api/types/GetIdentityResponseSchema.d.ts +2 -0
  119. package/api/types/IngestionStatusLevel.d.ts +12 -0
  120. package/api/types/IngestionStatusLevel.js +11 -0
  121. package/api/types/JobResponse.d.ts +3 -0
  122. package/api/types/JsonschemaDefinitions.d.ts +1 -1
  123. package/api/types/JsonschemaForm.d.ts +1 -1
  124. package/api/types/LabelLabel.d.ts +1 -1
  125. package/api/types/ModelField.d.ts +1 -1
  126. package/api/types/ModelResponse.d.ts +2 -2
  127. package/api/types/ModelSyncMode.d.ts +2 -1
  128. package/api/types/ModelSyncMode.js +1 -0
  129. package/api/types/ModelSyncResponse.d.ts +2 -2
  130. package/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
  131. package/api/types/Organization.d.ts +5 -0
  132. package/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
  133. package/api/types/ScheduleFrequency.d.ts +1 -1
  134. package/api/types/SchemaIdentityFunction.d.ts +1 -1
  135. package/api/types/SourceMeta.d.ts +3 -0
  136. package/api/types/TypesType.d.ts +1 -1
  137. package/api/types/User.d.ts +5 -0
  138. package/api/types/UtilFieldType.d.ts +1 -1
  139. package/api/types/V2EnricherConfiguration.d.ts +1 -1
  140. package/api/types/V2EnricherMapping.d.ts +1 -1
  141. package/api/types/V2ExecutionLogType.d.ts +1 -1
  142. package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
  143. package/api/types/V2SampleRecord.d.ts +1 -1
  144. package/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
  145. package/api/types/V3BulkSyncSourceCapabilities.d.ts +6 -0
  146. package/{dist/version.js → api/types/V3BulkSyncSourceCapabilities.js} +3 -2
  147. package/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
  148. package/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
  149. package/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
  150. package/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
  151. package/api/types/V4RunQueryResult.d.ts +2 -1
  152. package/api/types/V4UserFieldRequest.d.ts +4 -0
  153. package/api/types/WorkTaskStatus.d.ts +1 -1
  154. package/api/types/index.d.ts +11 -6
  155. package/api/types/index.js +11 -6
  156. package/core/auth/BearerToken.d.ts +1 -1
  157. package/core/fetcher/APIResponse.d.ts +1 -1
  158. package/core/fetcher/Fetcher.d.ts +3 -6
  159. package/core/fetcher/Fetcher.js +189 -20
  160. package/core/fetcher/Supplier.d.ts +1 -1
  161. package/core/fetcher/getHeader.js +2 -1
  162. package/core/runtime/runtime.d.ts +1 -2
  163. package/core/runtime/runtime.js +41 -52
  164. package/dist/Client.d.ts +14 -19
  165. package/dist/api/errors/BadRequestError.js +7 -17
  166. package/dist/api/errors/ConflictError.js +7 -17
  167. package/dist/api/errors/ForbiddenError.js +7 -17
  168. package/dist/api/errors/InternalServerError.js +7 -17
  169. package/dist/api/errors/NotFoundError.js +7 -17
  170. package/dist/api/errors/UnauthorizedError.js +7 -17
  171. package/dist/api/errors/UnprocessableEntityError.js +7 -17
  172. package/dist/api/resources/bulkSync/client/Client.d.ts +173 -24
  173. package/dist/api/resources/bulkSync/client/Client.js +339 -118
  174. package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
  175. package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
  176. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
  177. package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
  178. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  179. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
  180. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
  181. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
  182. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
  183. package/dist/api/resources/bulkSync/resources/index.js +7 -17
  184. package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
  185. package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
  186. package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
  187. package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
  188. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
  189. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
  190. package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
  191. package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
  192. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
  193. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
  194. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
  195. package/dist/api/resources/connections/client/Client.d.ts +134 -18
  196. package/dist/api/resources/connections/client/Client.js +359 -104
  197. package/dist/api/resources/connections/client/requests/ApiRequest.d.ts +2 -2
  198. package/dist/api/resources/events/client/Client.d.ts +20 -7
  199. package/dist/api/resources/events/client/Client.js +55 -33
  200. package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
  201. package/dist/api/resources/identity/client/Client.d.ts +11 -6
  202. package/dist/api/resources/identity/client/Client.js +31 -24
  203. package/dist/api/resources/index.js +7 -17
  204. package/dist/api/resources/jobs/client/Client.d.ts +15 -8
  205. package/dist/api/resources/jobs/client/Client.js +35 -26
  206. package/dist/api/resources/modelSync/client/Client.d.ts +110 -19
  207. package/dist/api/resources/modelSync/client/Client.js +287 -118
  208. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
  209. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
  210. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
  211. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
  212. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
  213. package/dist/api/resources/modelSync/resources/executions/client/Client.js +115 -56
  214. package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
  215. package/dist/api/resources/modelSync/resources/index.js +7 -17
  216. package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
  217. package/dist/api/resources/modelSync/resources/targets/client/Client.js +89 -49
  218. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
  219. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
  220. package/dist/api/resources/models/client/Client.d.ts +79 -8
  221. package/dist/api/resources/models/client/Client.js +214 -86
  222. package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
  223. package/dist/api/resources/notifications/client/Client.d.ts +13 -5
  224. package/dist/api/resources/notifications/client/Client.js +48 -31
  225. package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
  226. package/dist/api/resources/organization/client/Client.d.ts +31 -13
  227. package/dist/api/resources/organization/client/Client.js +109 -55
  228. package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
  229. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
  230. package/dist/api/resources/permissions/client/Client.d.ts +2 -7
  231. package/dist/api/resources/permissions/resources/index.js +7 -17
  232. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
  233. package/dist/api/resources/permissions/resources/policies/client/Client.js +105 -47
  234. package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
  235. package/dist/api/resources/permissions/resources/roles/client/Client.js +110 -47
  236. package/dist/api/resources/queryRunner/client/Client.d.ts +26 -7
  237. package/dist/api/resources/queryRunner/client/Client.js +63 -35
  238. package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
  239. package/dist/api/resources/schemas/client/Client.d.ts +118 -23
  240. package/dist/api/resources/schemas/client/Client.js +232 -86
  241. package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
  242. package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
  243. package/dist/api/resources/users/client/Client.d.ts +44 -16
  244. package/dist/api/resources/users/client/Client.js +133 -66
  245. package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +3 -0
  246. package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +3 -0
  247. package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
  248. package/dist/api/resources/webhooks/client/Client.d.ts +67 -21
  249. package/dist/api/resources/webhooks/client/Client.js +165 -75
  250. package/dist/api/types/ApiKeyResponse.d.ts +1 -0
  251. package/dist/api/types/BulkBulkSyncSchedule.d.ts +1 -0
  252. package/dist/api/types/BulkDiscover.d.ts +1 -1
  253. package/dist/api/types/BulkExecutionStatus.d.ts +1 -1
  254. package/dist/api/types/BulkFetchMode.d.ts +1 -1
  255. package/dist/api/types/BulkNormalizeNames.d.ts +1 -1
  256. package/dist/api/types/BulkOutputDisposition.d.ts +9 -0
  257. package/dist/api/types/BulkOutputDisposition.js +11 -0
  258. package/dist/api/types/BulkResyncMode.d.ts +9 -0
  259. package/dist/api/types/BulkResyncMode.js +11 -0
  260. package/dist/api/types/BulkScheduleSyncMode.d.ts +1 -1
  261. package/dist/api/types/BulkSchema.d.ts +2 -0
  262. package/dist/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
  263. package/dist/api/types/BulkSchemaExecutionStatus.js +1 -0
  264. package/dist/api/types/BulkSelectiveMode.d.ts +1 -1
  265. package/dist/api/types/BulkSyncDest.d.ts +2 -0
  266. package/dist/api/types/BulkSyncExecution.d.ts +1 -0
  267. package/dist/api/types/BulkSyncExecutionStatus.d.ts +3 -0
  268. package/dist/api/types/BulkSyncIngestionStatus.d.ts +14 -0
  269. package/{version.js → dist/api/types/BulkSyncIngestionStatus.js} +3 -2
  270. package/dist/api/types/BulkSyncMode.d.ts +1 -1
  271. package/dist/api/types/BulkSyncResponse.d.ts +2 -2
  272. package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
  273. package/dist/api/types/BulkSyncSource.d.ts +1 -0
  274. package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -0
  275. package/dist/api/types/ConnectCardResponse.d.ts +1 -0
  276. package/dist/api/types/ConnectionResponseSchema.d.ts +2 -2
  277. package/dist/api/types/Event.d.ts +4 -0
  278. package/dist/api/types/EventBody.d.ts +1 -1
  279. package/dist/api/types/ExecutionStatus.d.ts +1 -1
  280. package/dist/api/types/FilterFieldReferenceType.d.ts +1 -1
  281. package/dist/api/types/FilterFunction.d.ts +1 -1
  282. package/dist/api/types/GetIdentityResponseSchema.d.ts +2 -0
  283. package/dist/api/types/IngestionStatusLevel.d.ts +12 -0
  284. package/dist/api/types/IngestionStatusLevel.js +11 -0
  285. package/dist/api/types/JobResponse.d.ts +3 -0
  286. package/dist/api/types/JsonschemaDefinitions.d.ts +1 -1
  287. package/dist/api/types/JsonschemaForm.d.ts +1 -1
  288. package/dist/api/types/LabelLabel.d.ts +1 -1
  289. package/dist/api/types/ModelField.d.ts +1 -1
  290. package/dist/api/types/ModelResponse.d.ts +2 -2
  291. package/dist/api/types/ModelSyncMode.d.ts +2 -1
  292. package/dist/api/types/ModelSyncMode.js +1 -0
  293. package/dist/api/types/ModelSyncResponse.d.ts +2 -2
  294. package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
  295. package/dist/api/types/Organization.d.ts +5 -0
  296. package/dist/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
  297. package/dist/api/types/OutputActor.js +5 -0
  298. package/dist/api/types/ScheduleFrequency.d.ts +1 -1
  299. package/dist/api/types/SchemaIdentityFunction.d.ts +1 -1
  300. package/dist/api/types/SourceMeta.d.ts +3 -0
  301. package/dist/api/types/TypesType.d.ts +1 -1
  302. package/dist/api/types/User.d.ts +5 -0
  303. package/dist/api/types/UtilFieldType.d.ts +1 -1
  304. package/dist/api/types/V2EnricherConfiguration.d.ts +1 -1
  305. package/dist/api/types/V2EnricherMapping.d.ts +1 -1
  306. package/dist/api/types/V2ExecutionLogType.d.ts +1 -1
  307. package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
  308. package/dist/api/types/V2SampleRecord.d.ts +1 -1
  309. package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
  310. package/dist/api/types/V3BulkSyncSourceCapabilities.d.ts +6 -0
  311. package/dist/api/types/V3BulkSyncSourceCapabilities.js +5 -0
  312. package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
  313. package/dist/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
  314. package/dist/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
  315. package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
  316. package/dist/api/types/V4RunQueryResult.d.ts +2 -1
  317. package/dist/api/types/V4UserFieldRequest.d.ts +4 -0
  318. package/dist/api/types/WorkTaskStatus.d.ts +1 -1
  319. package/dist/api/types/index.d.ts +11 -6
  320. package/dist/api/types/index.js +11 -6
  321. package/dist/core/auth/BearerToken.d.ts +1 -1
  322. package/dist/core/fetcher/APIResponse.d.ts +1 -1
  323. package/dist/core/fetcher/Fetcher.d.ts +3 -6
  324. package/dist/core/fetcher/Fetcher.js +189 -20
  325. package/dist/core/fetcher/Supplier.d.ts +1 -1
  326. package/dist/core/fetcher/getHeader.js +2 -1
  327. package/dist/core/runtime/runtime.d.ts +1 -2
  328. package/dist/core/runtime/runtime.js +41 -52
  329. package/dist/environments.d.ts +1 -1
  330. package/dist/errors/PolytomicError.js +1 -2
  331. package/dist/errors/PolytomicTimeoutError.d.ts +1 -1
  332. package/dist/errors/PolytomicTimeoutError.js +2 -2
  333. package/dist/index.js +7 -17
  334. package/environments.d.ts +1 -1
  335. package/errors/PolytomicError.js +1 -2
  336. package/errors/PolytomicTimeoutError.d.ts +1 -1
  337. package/errors/PolytomicTimeoutError.js +2 -2
  338. package/index.js +7 -17
  339. package/{jest.config.mjs → jest.config.js} +1 -4
  340. package/package.json +17 -18
  341. package/core/fetcher/createRequestUrl.d.ts +0 -1
  342. package/core/fetcher/createRequestUrl.js +0 -12
  343. package/core/fetcher/getFetchFn.d.ts +0 -4
  344. package/core/fetcher/getFetchFn.js +0 -68
  345. package/core/fetcher/getRequestBody.d.ts +0 -7
  346. package/core/fetcher/getRequestBody.js +0 -23
  347. package/core/fetcher/getResponseBody.d.ts +0 -1
  348. package/core/fetcher/getResponseBody.js +0 -54
  349. package/core/fetcher/makeRequest.d.ts +0 -1
  350. package/core/fetcher/makeRequest.js +0 -42
  351. package/core/fetcher/requestWithRetries.d.ts +0 -1
  352. package/core/fetcher/requestWithRetries.js +0 -40
  353. package/core/fetcher/signals.d.ts +0 -11
  354. package/core/fetcher/signals.js +0 -36
  355. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  356. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  357. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  358. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  359. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  360. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  361. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  362. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  363. package/core/json.d.ts +0 -15
  364. package/core/json.js +0 -24
  365. package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
  366. package/dist/core/fetcher/createRequestUrl.js +0 -12
  367. package/dist/core/fetcher/getFetchFn.d.ts +0 -4
  368. package/dist/core/fetcher/getFetchFn.js +0 -68
  369. package/dist/core/fetcher/getRequestBody.d.ts +0 -7
  370. package/dist/core/fetcher/getRequestBody.js +0 -23
  371. package/dist/core/fetcher/getResponseBody.d.ts +0 -1
  372. package/dist/core/fetcher/getResponseBody.js +0 -54
  373. package/dist/core/fetcher/makeRequest.d.ts +0 -1
  374. package/dist/core/fetcher/makeRequest.js +0 -42
  375. package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
  376. package/dist/core/fetcher/requestWithRetries.js +0 -40
  377. package/dist/core/fetcher/signals.d.ts +0 -11
  378. package/dist/core/fetcher/signals.js +0 -36
  379. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  380. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  381. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  382. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  383. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  384. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  385. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  386. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  387. package/dist/core/json.d.ts +0 -15
  388. package/dist/core/json.js +0 -24
  389. package/dist/version.d.ts +0 -1
  390. package/reference.md +0 -6663
  391. package/scripts/rename-to-esm-files.js +0 -115
  392. package/version.d.ts +0 -1
  393. /package/api/types/{CommonOutputActor.js → BulkSyncIngestionStatus.js} +0 -0
  394. /package/{dist/api/types/CommonOutputActor.js → api/types/OutputActor.js} +0 -0
@@ -8,7 +8,7 @@ import * as Polytomic from "../../../../index";
8
8
  * fields: [{
9
9
  * target: "name"
10
10
  * }],
11
- * mode: "create",
11
+ * mode: Polytomic.ModelSyncMode.Create,
12
12
  * name: "Users Sync",
13
13
  * schedule: {},
14
14
  * target: {
@@ -6,5 +6,8 @@
6
6
  * {}
7
7
  */
8
8
  export interface ModelSyncGetSourceFieldsRequest {
9
+ /**
10
+ * Source configuration, matching the params used with GET /api/connections/{id}/modelsync/source, that selects the specific source to return fields for.
11
+ */
9
12
  params?: Record<string, string[] | undefined>;
10
13
  }
@@ -6,5 +6,8 @@
6
6
  * {}
7
7
  */
8
8
  export interface ModelSyncGetSourceRequest {
9
+ /**
10
+ * Query parameters used to incrementally refine a dependent source configuration. Keys correspond to configuration fields returned by previous calls to this endpoint.
11
+ */
9
12
  params?: Record<string, string[] | undefined>;
10
13
  }
@@ -8,7 +8,7 @@ import * as Polytomic from "../../../../index";
8
8
  * fields: [{
9
9
  * target: "name"
10
10
  * }],
11
- * mode: "create",
11
+ * mode: Polytomic.ModelSyncMode.Create,
12
12
  * name: "Users Sync",
13
13
  * schedule: {},
14
14
  * target: {
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../../../index";
7
7
  export declare namespace Executions {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.PolytomicEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
10
  token: core.Supplier<core.BearerToken>;
13
- /** Override the X-Polytomic-Version header */
14
11
  version?: core.Supplier<string | undefined>;
15
12
  }
16
13
  interface RequestOptions {
@@ -22,14 +19,24 @@ export declare namespace Executions {
22
19
  abortSignal?: AbortSignal;
23
20
  /** Override the X-Polytomic-Version header */
24
21
  version?: string | undefined;
25
- /** Additional headers to include in the request. */
26
- headers?: Record<string, string>;
27
22
  }
28
23
  }
29
24
  export declare class Executions {
30
25
  protected readonly _options: Executions.Options;
31
26
  constructor(_options: Executions.Options);
32
27
  /**
28
+ * Lists executions for a model sync.
29
+ *
30
+ * Results are ordered by start time descending. If more results are available, the
31
+ * response includes `pagination.next_page_token`; pass that token back unchanged
32
+ * to continue paging.
33
+ *
34
+ * The token is opaque. Do not construct or edit it yourself.
35
+ *
36
+ * For full details about a specific execution — including record counts and error
37
+ * summaries — use
38
+ * [`GET /api/syncs/{sync_id}/executions/{id}`](../../../../api-reference/model-sync/executions/get).
39
+ *
33
40
  * @param {string} syncId
34
41
  * @param {Polytomic.modelSync.ExecutionsListRequest} request
35
42
  * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
@@ -46,6 +53,12 @@ export declare class Executions {
46
53
  */
47
54
  list(syncId: string, request?: Polytomic.modelSync.ExecutionsListRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListExecutionResponseEnvelope>;
48
55
  /**
56
+ * Returns a single model sync execution.
57
+ *
58
+ * For the log files produced by this execution, use
59
+ * [`GET /api/syncs/{sync_id}/executions/{id}/{type}`](../../../../../api-reference/model-sync/executions/get-log-urls) to retrieve
60
+ * signed URLs grouped by log category.
61
+ *
49
62
  * @param {string} syncId
50
63
  * @param {string} id
51
64
  * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
@@ -59,6 +72,8 @@ export declare class Executions {
59
72
  */
60
73
  get(syncId: string, id: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.GetExecutionResponseEnvelope>;
61
74
  /**
75
+ * Updates a model sync execution's state, used to retry or resolve stalled executions.
76
+ *
62
77
  * @param {string} syncId
63
78
  * @param {string} id - The ID of the execution to update.
64
79
  * @param {Polytomic.modelSync.UpdateExecutionRequest} request
@@ -72,14 +87,23 @@ export declare class Executions {
72
87
  *
73
88
  * @example
74
89
  * await client.modelSync.executions.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
75
- * status: "created"
90
+ * status: Polytomic.ExecutionStatus.Created
76
91
  * })
77
92
  */
78
93
  update(syncId: string, id: string, request: Polytomic.modelSync.UpdateExecutionRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.GetExecutionResponseEnvelope>;
79
94
  /**
95
+ * Returns signed URLs for every log file of a given type on a model sync execution.
96
+ *
97
+ * `{type}` identifies the log category, such as `errors` or `warnings`. The
98
+ * response contains a signed URL for each log file in that category.
99
+ *
100
+ * > 🚧 Signed URLs expire after a short period. If a URL has expired, re-request
101
+ * > it from this endpoint. To fetch a single file's URL directly, use
102
+ * > [`GET /api/syncs/{sync_id}/executions/{id}/{type}/{filename}`](../../../../../../api-reference/model-sync/executions/get-logs).
103
+ *
80
104
  * @param {string} syncId
81
105
  * @param {string} id
82
- * @param {Polytomic.V2ExecutionLogType} type_
106
+ * @param {Polytomic.V2ExecutionLogType} type
83
107
  * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
84
108
  *
85
109
  * @throws {@link Polytomic.BadRequestError}
@@ -88,13 +112,18 @@ export declare class Executions {
88
112
  * @throws {@link Polytomic.InternalServerError}
89
113
  *
90
114
  * @example
91
- * await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
115
+ * await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", Polytomic.V2ExecutionLogType.Records)
92
116
  */
93
- getLogUrls(syncId: string, id: string, type_: Polytomic.V2ExecutionLogType, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ExecutionLogsResponseEnvelope>;
117
+ getLogUrls(syncId: string, id: string, type: Polytomic.V2ExecutionLogType, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ExecutionLogsResponseEnvelope>;
94
118
  /**
119
+ * Returns a signed URL for a specific log file produced by a model sync execution.
120
+ *
121
+ * The URL is signed and expires after a short period. If it has expired before
122
+ * you download the file, call this endpoint again to obtain a fresh URL.
123
+ *
95
124
  * @param {string} syncId
96
125
  * @param {string} id
97
- * @param {Polytomic.V2ExecutionLogType} type_
126
+ * @param {Polytomic.V2ExecutionLogType} type
98
127
  * @param {string} filename
99
128
  * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
100
129
  *
@@ -104,8 +133,8 @@ export declare class Executions {
104
133
  * @throws {@link Polytomic.InternalServerError}
105
134
  *
106
135
  * @example
107
- * await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "records", "path/to/file.json")
136
+ * await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", Polytomic.V2ExecutionLogType.Records, "path/to/file.json")
108
137
  */
109
- getLogs(syncId: string, id: string, type_: Polytomic.V2ExecutionLogType, filename: string, requestOptions?: Executions.RequestOptions): Promise<void>;
138
+ getLogs(syncId: string, id: string, type: Polytomic.V2ExecutionLogType, filename: string, requestOptions?: Executions.RequestOptions): Promise<void>;
110
139
  protected _getAuthorizationHeader(): Promise<string>;
111
140
  }
@@ -18,23 +18,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  }) : function(o, v) {
19
19
  o["default"] = v;
20
20
  });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
38
28
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
29
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
30
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -59,6 +49,18 @@ class Executions {
59
49
  this._options = _options;
60
50
  }
61
51
  /**
52
+ * Lists executions for a model sync.
53
+ *
54
+ * Results are ordered by start time descending. If more results are available, the
55
+ * response includes `pagination.next_page_token`; pass that token back unchanged
56
+ * to continue paging.
57
+ *
58
+ * The token is opaque. Do not construct or edit it yourself.
59
+ *
60
+ * For full details about a specific execution — including record counts and error
61
+ * summaries — use
62
+ * [`GET /api/syncs/{sync_id}/executions/{id}`](../../../../api-reference/model-sync/executions/get).
63
+ *
62
64
  * @param {string} syncId
63
65
  * @param {Polytomic.modelSync.ExecutionsListRequest} request
64
66
  * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
@@ -73,9 +75,9 @@ class Executions {
73
75
  * ascending: true
74
76
  * })
75
77
  */
76
- list(syncId_1) {
77
- return __awaiter(this, arguments, void 0, function* (syncId, request = {}, requestOptions) {
78
- var _a, _b;
78
+ list(syncId, request = {}, requestOptions) {
79
+ var _a;
80
+ return __awaiter(this, void 0, void 0, function* () {
79
81
  const { page_token: pageToken, only_completed: onlyCompleted, ascending } = request;
80
82
  const _queryParams = {};
81
83
  if (pageToken != null) {
@@ -88,14 +90,21 @@ class Executions {
88
90
  _queryParams["ascending"] = ascending.toString();
89
91
  }
90
92
  const _response = yield core.fetcher({
91
- 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/syncs/${encodeURIComponent(syncId)}/executions`),
93
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions`),
92
94
  method: "GET",
93
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
95
+ headers: {
96
+ Authorization: yield this._getAuthorizationHeader(),
97
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
94
98
  ? yield core.Supplier.get(this._options.version)
95
- : 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),
99
+ : undefined,
100
+ "X-Fern-Language": "JavaScript",
101
+ "X-Fern-SDK-Name": "polytomic",
102
+ "X-Fern-SDK-Version": "1.18.1",
103
+ "X-Fern-Runtime": core.RUNTIME.type,
104
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
105
+ },
96
106
  contentType: "application/json",
97
107
  queryParameters: _queryParams,
98
- requestType: "json",
99
108
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
100
109
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
101
110
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -123,7 +132,7 @@ class Executions {
123
132
  body: _response.error.rawBody,
124
133
  });
125
134
  case "timeout":
126
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/syncs/{sync_id}/executions.");
135
+ throw new errors.PolytomicTimeoutError();
127
136
  case "unknown":
128
137
  throw new errors.PolytomicError({
129
138
  message: _response.error.errorMessage,
@@ -132,6 +141,12 @@ class Executions {
132
141
  });
133
142
  }
134
143
  /**
144
+ * Returns a single model sync execution.
145
+ *
146
+ * For the log files produced by this execution, use
147
+ * [`GET /api/syncs/{sync_id}/executions/{id}/{type}`](../../../../../api-reference/model-sync/executions/get-log-urls) to retrieve
148
+ * signed URLs grouped by log category.
149
+ *
135
150
  * @param {string} syncId
136
151
  * @param {string} id
137
152
  * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
@@ -144,16 +159,23 @@ class Executions {
144
159
  * await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
145
160
  */
146
161
  get(syncId, id, requestOptions) {
162
+ var _a;
147
163
  return __awaiter(this, void 0, void 0, function* () {
148
- var _a, _b;
149
164
  const _response = yield core.fetcher({
150
- 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/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}`),
165
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}`),
151
166
  method: "GET",
152
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
167
+ headers: {
168
+ Authorization: yield this._getAuthorizationHeader(),
169
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
153
170
  ? yield core.Supplier.get(this._options.version)
154
- : 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),
171
+ : undefined,
172
+ "X-Fern-Language": "JavaScript",
173
+ "X-Fern-SDK-Name": "polytomic",
174
+ "X-Fern-SDK-Version": "1.18.1",
175
+ "X-Fern-Runtime": core.RUNTIME.type,
176
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
177
+ },
155
178
  contentType: "application/json",
156
- requestType: "json",
157
179
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
158
180
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
159
181
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -183,7 +205,7 @@ class Executions {
183
205
  body: _response.error.rawBody,
184
206
  });
185
207
  case "timeout":
186
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/syncs/{sync_id}/executions/{id}.");
208
+ throw new errors.PolytomicTimeoutError();
187
209
  case "unknown":
188
210
  throw new errors.PolytomicError({
189
211
  message: _response.error.errorMessage,
@@ -192,6 +214,8 @@ class Executions {
192
214
  });
193
215
  }
194
216
  /**
217
+ * Updates a model sync execution's state, used to retry or resolve stalled executions.
218
+ *
195
219
  * @param {string} syncId
196
220
  * @param {string} id - The ID of the execution to update.
197
221
  * @param {Polytomic.modelSync.UpdateExecutionRequest} request
@@ -205,20 +229,27 @@ class Executions {
205
229
  *
206
230
  * @example
207
231
  * await client.modelSync.executions.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
208
- * status: "created"
232
+ * status: Polytomic.ExecutionStatus.Created
209
233
  * })
210
234
  */
211
235
  update(syncId, id, request, requestOptions) {
236
+ var _a;
212
237
  return __awaiter(this, void 0, void 0, function* () {
213
- var _a, _b;
214
238
  const _response = yield core.fetcher({
215
- 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/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}`),
239
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}`),
216
240
  method: "PUT",
217
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
241
+ headers: {
242
+ Authorization: yield this._getAuthorizationHeader(),
243
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
218
244
  ? yield core.Supplier.get(this._options.version)
219
- : 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),
245
+ : undefined,
246
+ "X-Fern-Language": "JavaScript",
247
+ "X-Fern-SDK-Name": "polytomic",
248
+ "X-Fern-SDK-Version": "1.18.1",
249
+ "X-Fern-Runtime": core.RUNTIME.type,
250
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
251
+ },
220
252
  contentType: "application/json",
221
- requestType: "json",
222
253
  body: request,
223
254
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
224
255
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -253,7 +284,7 @@ class Executions {
253
284
  body: _response.error.rawBody,
254
285
  });
255
286
  case "timeout":
256
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling PUT /api/syncs/{sync_id}/executions/{id}.");
287
+ throw new errors.PolytomicTimeoutError();
257
288
  case "unknown":
258
289
  throw new errors.PolytomicError({
259
290
  message: _response.error.errorMessage,
@@ -262,9 +293,18 @@ class Executions {
262
293
  });
263
294
  }
264
295
  /**
296
+ * Returns signed URLs for every log file of a given type on a model sync execution.
297
+ *
298
+ * `{type}` identifies the log category, such as `errors` or `warnings`. The
299
+ * response contains a signed URL for each log file in that category.
300
+ *
301
+ * > 🚧 Signed URLs expire after a short period. If a URL has expired, re-request
302
+ * > it from this endpoint. To fetch a single file's URL directly, use
303
+ * > [`GET /api/syncs/{sync_id}/executions/{id}/{type}/{filename}`](../../../../../../api-reference/model-sync/executions/get-logs).
304
+ *
265
305
  * @param {string} syncId
266
306
  * @param {string} id
267
- * @param {Polytomic.V2ExecutionLogType} type_
307
+ * @param {Polytomic.V2ExecutionLogType} type
268
308
  * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
269
309
  *
270
310
  * @throws {@link Polytomic.BadRequestError}
@@ -273,19 +313,26 @@ class Executions {
273
313
  * @throws {@link Polytomic.InternalServerError}
274
314
  *
275
315
  * @example
276
- * await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
316
+ * await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", Polytomic.V2ExecutionLogType.Records)
277
317
  */
278
- getLogUrls(syncId, id, type_, requestOptions) {
318
+ getLogUrls(syncId, id, type, requestOptions) {
319
+ var _a;
279
320
  return __awaiter(this, void 0, void 0, function* () {
280
- var _a, _b;
281
321
  const _response = yield core.fetcher({
282
- 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/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type_)}`),
322
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type)}`),
283
323
  method: "GET",
284
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
324
+ headers: {
325
+ Authorization: yield this._getAuthorizationHeader(),
326
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
285
327
  ? yield core.Supplier.get(this._options.version)
286
- : 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),
328
+ : undefined,
329
+ "X-Fern-Language": "JavaScript",
330
+ "X-Fern-SDK-Name": "polytomic",
331
+ "X-Fern-SDK-Version": "1.18.1",
332
+ "X-Fern-Runtime": core.RUNTIME.type,
333
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
334
+ },
287
335
  contentType: "application/json",
288
- requestType: "json",
289
336
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
290
337
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
291
338
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -317,7 +364,7 @@ class Executions {
317
364
  body: _response.error.rawBody,
318
365
  });
319
366
  case "timeout":
320
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/syncs/{sync_id}/executions/{id}/{type}.");
367
+ throw new errors.PolytomicTimeoutError();
321
368
  case "unknown":
322
369
  throw new errors.PolytomicError({
323
370
  message: _response.error.errorMessage,
@@ -326,9 +373,14 @@ class Executions {
326
373
  });
327
374
  }
328
375
  /**
376
+ * Returns a signed URL for a specific log file produced by a model sync execution.
377
+ *
378
+ * The URL is signed and expires after a short period. If it has expired before
379
+ * you download the file, call this endpoint again to obtain a fresh URL.
380
+ *
329
381
  * @param {string} syncId
330
382
  * @param {string} id
331
- * @param {Polytomic.V2ExecutionLogType} type_
383
+ * @param {Polytomic.V2ExecutionLogType} type
332
384
  * @param {string} filename
333
385
  * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
334
386
  *
@@ -338,19 +390,26 @@ class Executions {
338
390
  * @throws {@link Polytomic.InternalServerError}
339
391
  *
340
392
  * @example
341
- * await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "records", "path/to/file.json")
393
+ * await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", Polytomic.V2ExecutionLogType.Records, "path/to/file.json")
342
394
  */
343
- getLogs(syncId, id, type_, filename, requestOptions) {
395
+ getLogs(syncId, id, type, filename, requestOptions) {
396
+ var _a;
344
397
  return __awaiter(this, void 0, void 0, function* () {
345
- var _a, _b;
346
398
  const _response = yield core.fetcher({
347
- 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/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type_)}/${encodeURIComponent(filename)}`),
399
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type)}/${encodeURIComponent(filename)}`),
348
400
  method: "GET",
349
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
401
+ headers: {
402
+ Authorization: yield this._getAuthorizationHeader(),
403
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
350
404
  ? yield core.Supplier.get(this._options.version)
351
- : 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),
405
+ : undefined,
406
+ "X-Fern-Language": "JavaScript",
407
+ "X-Fern-SDK-Name": "polytomic",
408
+ "X-Fern-SDK-Version": "1.18.1",
409
+ "X-Fern-Runtime": core.RUNTIME.type,
410
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
411
+ },
352
412
  contentType: "application/json",
353
- requestType: "json",
354
413
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
355
414
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
356
415
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -382,7 +441,7 @@ class Executions {
382
441
  body: _response.error.rawBody,
383
442
  });
384
443
  case "timeout":
385
- throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/syncs/{sync_id}/executions/{id}/{type}/{filename}.");
444
+ throw new errors.PolytomicTimeoutError();
386
445
  case "unknown":
387
446
  throw new errors.PolytomicError({
388
447
  message: _response.error.errorMessage,
@@ -5,7 +5,7 @@ import * as Polytomic from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * status: "created"
8
+ * status: Polytomic.ExecutionStatus.Created
9
9
  * }
10
10
  */
11
11
  export interface UpdateExecutionRequest {
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
35
25
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
27
  };
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../../../index";
7
7
  export declare namespace Targets {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.PolytomicEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
10
  token: core.Supplier<core.BearerToken>;
13
- /** Override the X-Polytomic-Version header */
14
11
  version?: core.Supplier<string | undefined>;
15
12
  }
16
13
  interface RequestOptions {
@@ -22,15 +19,19 @@ export declare namespace Targets {
22
19
  abortSignal?: AbortSignal;
23
20
  /** Override the X-Polytomic-Version header */
24
21
  version?: string | undefined;
25
- /** Additional headers to include in the request. */
26
- headers?: Record<string, string>;
27
22
  }
28
23
  }
29
24
  export declare class Targets {
30
25
  protected readonly _options: Targets.Options;
31
26
  constructor(_options: Targets.Options);
32
27
  /**
33
- * @param {string} id
28
+ * Returns target metadata for a connection.
29
+ *
30
+ * > 🚧 Deprecated
31
+ * >
32
+ * > Use `GET /api/connections/{id}/modelsync/targetobjects` instead.
33
+ *
34
+ * @param {string} id - Unique identifier of the connection.
34
35
  * @param {Polytomic.modelSync.TargetsGetTargetRequest} request
35
36
  * @param {Targets.RequestOptions} requestOptions - Request-specific configuration.
36
37
  *
@@ -45,7 +46,21 @@ export declare class Targets {
45
46
  */
46
47
  getTarget(id: string, request?: Polytomic.modelSync.TargetsGetTargetRequest, requestOptions?: Targets.RequestOptions): Promise<Polytomic.GetConnectionMetaEnvelope>;
47
48
  /**
48
- * @param {string} id
49
+ * Returns the fields of a specific target object on a connection.
50
+ *
51
+ * Pass the target object identifier to retrieve the fields available for
52
+ * mapping on that object. These are the destination fields you can reference
53
+ * when configuring field mappings in a model sync.
54
+ *
55
+ * > 📘 To list available target objects and their identifiers, use
56
+ * > [`GET /api/connections/{id}/modelsync/targetobjects`](../../../../../../api-reference/model-sync/targets/list).
57
+ *
58
+ * Fields returned here reflect the connection's current cached state. If the
59
+ * upstream object schema has changed, trigger a schema refresh with
60
+ * [`POST /api/connections/{id}/schemas/refresh`](../../../../../../api-reference/schemas/refresh)
61
+ * before calling this endpoint.
62
+ *
63
+ * @param {string} id - Unique identifier of the connection.
49
64
  * @param {Polytomic.modelSync.TargetsGetTargetFieldsRequest} request
50
65
  * @param {Targets.RequestOptions} requestOptions - Request-specific configuration.
51
66
  *
@@ -62,7 +77,7 @@ export declare class Targets {
62
77
  */
63
78
  getTargetFields(id: string, request: Polytomic.modelSync.TargetsGetTargetFieldsRequest, requestOptions?: Targets.RequestOptions): Promise<Polytomic.TargetResponseEnvelope>;
64
79
  /**
65
- * Returns available model sync destinations for a connection.
80
+ * Lists the target objects available on a connection for use as a model sync destination.
66
81
  *
67
82
  * If the connection supports creating new destinations, the `target_creation`
68
83
  * object will contain information on what properties are required to create the
@@ -71,7 +86,7 @@ export declare class Targets {
71
86
  * Target creation properties are all string values; the `enum` flag indicates if
72
87
  * the property has a fixed set of valid values. When `enum` is `true`, the [Target
73
88
  * Creation Property
74
- * Values](https://apidocs.polytomic.com/2024-02-08/api-reference/model-sync/targets/get-create-property)
89
+ * Values](../../../../../api-reference/model-sync/targets/get-create-property)
75
90
  * endpoint can be used to retrieve the valid values.
76
91
  *
77
92
  * ## Sync modes
@@ -94,8 +109,10 @@ export declare class Targets {
94
109
  */
95
110
  list(id: string, requestOptions?: Targets.RequestOptions): Promise<Polytomic.V4TargetObjectsResponseEnvelope>;
96
111
  /**
112
+ * Returns the valid values for a target-creation property on a connection that supports creating new target objects.
113
+ *
97
114
  * Connections which support creating new sync target objects (destinations) will
98
- * return `target_creation` with their [target object list](./list). This endpoint
115
+ * return `target_creation` with their [target object list](../../../../../../../api-reference/model-sync/targets/list). This endpoint
99
116
  * will return possible values for properties where `enum` is `true`.
100
117
  *
101
118
  * If the connection does not support creating new target objects, an HTTP 404 will
@@ -123,7 +140,7 @@ export declare class Targets {
123
140
  * ```
124
141
  *
125
142
  * The `value` for the selected option should be passed when [creating a
126
- * sync](https://apidocs.polytomic.com/2024-02-08/api-reference/model-sync/create).
143
+ * sync](../../../../../../../api-reference/model-sync/create).
127
144
  *
128
145
  * @param {string} id
129
146
  * @param {string} property