polytomic 1.4.0 → 1.8.4

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 (490) hide show
  1. package/Client.d.ts +10 -0
  2. package/Client.js +25 -20
  3. package/README.md +0 -8
  4. package/api/errors/BadRequestError.d.ts +2 -2
  5. package/api/errors/BadRequestError.js +1 -1
  6. package/api/errors/ForbiddenError.d.ts +2 -2
  7. package/api/errors/ForbiddenError.js +1 -1
  8. package/api/errors/InternalServerError.d.ts +2 -2
  9. package/api/errors/InternalServerError.js +1 -1
  10. package/api/errors/NotFoundError.d.ts +2 -2
  11. package/api/errors/NotFoundError.js +1 -1
  12. package/api/errors/UnauthorizedError.d.ts +2 -2
  13. package/api/errors/UnauthorizedError.js +1 -1
  14. package/api/errors/UnprocessableEntityError.d.ts +2 -2
  15. package/api/errors/UnprocessableEntityError.js +1 -1
  16. package/api/index.d.ts +1 -1
  17. package/api/index.js +1 -1
  18. package/api/resources/bulkSync/client/Client.d.ts +54 -11
  19. package/api/resources/bulkSync/client/Client.js +106 -40
  20. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +3 -2
  21. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +3 -2
  22. package/api/resources/bulkSync/client/requests/index.d.ts +6 -6
  23. package/api/resources/bulkSync/index.d.ts +1 -0
  24. package/api/resources/bulkSync/index.js +1 -0
  25. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
  26. package/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
  27. package/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
  28. package/api/resources/bulkSync/resources/executions/client/index.js +15 -0
  29. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
  30. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +5 -0
  31. package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  32. package/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
  33. package/api/resources/bulkSync/resources/index.d.ts +1 -0
  34. package/api/resources/bulkSync/resources/index.js +1 -0
  35. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -5
  36. package/api/resources/bulkSync/resources/schemas/client/Client.js +48 -19
  37. package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
  38. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  39. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
  40. package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
  41. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +5 -0
  42. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +5 -0
  43. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +5 -0
  44. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +5 -0
  45. package/api/resources/bulkSync/types/index.d.ts +2 -0
  46. package/api/resources/bulkSync/types/index.js +18 -0
  47. package/api/resources/connections/client/Client.d.ts +40 -9
  48. package/api/resources/connections/client/Client.js +78 -30
  49. package/api/resources/connections/client/requests/index.d.ts +4 -4
  50. package/api/resources/events/client/Client.d.ts +15 -3
  51. package/api/resources/events/client/Client.js +19 -8
  52. package/api/resources/events/client/requests/index.d.ts +1 -1
  53. package/api/resources/identity/client/Client.d.ts +11 -2
  54. package/api/resources/identity/client/Client.js +10 -5
  55. package/api/resources/index.d.ts +3 -0
  56. package/api/resources/index.js +4 -1
  57. package/api/resources/jobs/client/Client.d.ts +13 -2
  58. package/api/resources/jobs/client/Client.js +13 -6
  59. package/api/resources/modelSync/client/Client.d.ts +65 -22
  60. package/api/resources/modelSync/client/Client.js +135 -60
  61. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
  62. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  63. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
  64. package/api/resources/modelSync/client/requests/index.d.ts +6 -6
  65. package/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
  66. package/api/resources/modelSync/resources/executions/client/Client.js +48 -18
  67. package/api/resources/models/client/Client.d.ts +46 -9
  68. package/api/resources/models/client/Client.js +85 -31
  69. package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
  70. package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
  71. package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
  72. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
  73. package/api/resources/models/client/requests/index.d.ts +7 -7
  74. package/api/resources/organization/client/Client.d.ts +33 -6
  75. package/api/resources/organization/client/Client.js +55 -20
  76. package/api/resources/organization/client/requests/index.d.ts +2 -2
  77. package/api/resources/permissions/client/Client.d.ts +7 -0
  78. package/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
  79. package/api/resources/permissions/resources/policies/client/Client.js +50 -20
  80. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
  81. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
  82. package/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
  83. package/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
  84. package/api/resources/permissions/resources/roles/client/Client.js +50 -20
  85. package/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
  86. package/api/resources/queryRunner/client/Client.d.ts +58 -0
  87. package/api/resources/queryRunner/client/Client.js +223 -0
  88. package/api/resources/queryRunner/client/index.d.ts +1 -0
  89. package/api/resources/queryRunner/client/index.js +17 -0
  90. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
  91. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +5 -0
  92. package/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
  93. package/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +5 -0
  94. package/api/resources/queryRunner/client/requests/index.d.ts +2 -0
  95. package/api/resources/queryRunner/client/requests/index.js +2 -0
  96. package/api/resources/queryRunner/index.d.ts +1 -0
  97. package/api/resources/queryRunner/index.js +17 -0
  98. package/api/resources/schemas/client/Client.d.ts +26 -5
  99. package/api/resources/schemas/client/Client.js +44 -18
  100. package/api/resources/users/client/Client.d.ts +45 -7
  101. package/api/resources/users/client/Client.js +75 -26
  102. package/api/resources/users/client/requests/index.d.ts +3 -3
  103. package/api/resources/webhooks/client/Client.d.ts +32 -6
  104. package/api/resources/webhooks/client/Client.js +54 -20
  105. package/api/resources/webhooks/client/requests/index.d.ts +2 -2
  106. package/api/types/ActivateSyncEnvelope.d.ts +1 -1
  107. package/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
  108. package/api/types/BulkFilter.d.ts +10 -0
  109. package/api/types/BulkFilter.js +5 -0
  110. package/api/types/BulkItemizedSchedule.d.ts +1 -1
  111. package/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
  112. package/api/types/BulkSchedule.d.ts +1 -1
  113. package/api/types/BulkSchema.d.ts +2 -1
  114. package/api/types/BulkSchemaEnvelope.d.ts +1 -1
  115. package/api/types/BulkSyncCanceledEvent.d.ts +11 -0
  116. package/api/types/BulkSyncCanceledEvent.js +5 -0
  117. package/api/types/BulkSyncCompletedEvent.d.ts +12 -0
  118. package/api/types/BulkSyncCompletedEvent.js +5 -0
  119. package/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
  120. package/api/types/BulkSyncCompletedWithErrorEvent.js +5 -0
  121. package/api/types/BulkSyncDest.d.ts +1 -1
  122. package/api/types/BulkSyncDestEnvelope.d.ts +1 -1
  123. package/api/types/BulkSyncExecution.d.ts +1 -1
  124. package/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
  125. package/api/types/BulkSyncExecutionStatus.d.ts +10 -0
  126. package/api/types/BulkSyncExecutionStatus.js +5 -0
  127. package/api/types/BulkSyncFailedEvent.d.ts +12 -0
  128. package/api/types/BulkSyncFailedEvent.js +5 -0
  129. package/api/types/BulkSyncListEnvelope.d.ts +1 -1
  130. package/api/types/BulkSyncResponse.d.ts +1 -1
  131. package/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
  132. package/api/types/BulkSyncRunningEvent.d.ts +11 -0
  133. package/api/types/BulkSyncRunningEvent.js +5 -0
  134. package/api/types/BulkSyncSchemaExecution.d.ts +1 -1
  135. package/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
  136. package/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
  137. package/api/types/BulkSyncSource.d.ts +1 -1
  138. package/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
  139. package/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
  140. package/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
  141. package/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
  142. package/api/types/BulkSyncStatusResponse.d.ts +1 -1
  143. package/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
  144. package/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
  145. package/api/types/ConnectionMetaResponse.d.ts +1 -1
  146. package/api/types/ConnectionParameterValuesResp.d.ts +1 -1
  147. package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  148. package/api/types/ConnectionResponseEnvelope.d.ts +1 -1
  149. package/api/types/ConnectionResponseSchema.d.ts +1 -1
  150. package/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
  151. package/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
  152. package/api/types/CreateConnectionResponseSchema.d.ts +1 -1
  153. package/api/types/CreateModelRequest.d.ts +1 -1
  154. package/api/types/Enrichment.d.ts +1 -1
  155. package/api/types/Event.d.ts +2 -1
  156. package/api/types/EventBody.d.ts +5 -0
  157. package/api/types/EventBody.js +5 -0
  158. package/api/types/EventsEnvelope.d.ts +1 -1
  159. package/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
  160. package/api/types/FieldConfiguration.d.ts +10 -0
  161. package/api/types/FieldConfiguration.js +5 -0
  162. package/api/types/Filter.d.ts +1 -1
  163. package/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
  164. package/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
  165. package/api/types/GetExecutionResponseSchema.d.ts +1 -1
  166. package/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
  167. package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
  168. package/api/types/Identity.d.ts +1 -1
  169. package/api/types/JobResponse.d.ts +1 -1
  170. package/api/types/JobResponseEnvelope.d.ts +1 -1
  171. package/api/types/ListBulkSchema.d.ts +1 -1
  172. package/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
  173. package/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
  174. package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
  175. package/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
  176. package/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
  177. package/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
  178. package/api/types/ListUsersEnvelope.d.ts +1 -1
  179. package/api/types/ModelFieldResponse.d.ts +1 -1
  180. package/api/types/ModelListResponseEnvelope.d.ts +1 -1
  181. package/api/types/ModelRelation.d.ts +1 -1
  182. package/api/types/ModelResponse.d.ts +1 -1
  183. package/api/types/ModelResponseEnvelope.d.ts +1 -1
  184. package/api/types/ModelSample.d.ts +1 -1
  185. package/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
  186. package/api/types/ModelSyncField.d.ts +6 -2
  187. package/api/types/ModelSyncResponse.d.ts +1 -1
  188. package/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
  189. package/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
  190. package/api/types/OrganizationEnvelope.d.ts +1 -1
  191. package/api/types/OrganizationsEnvelope.d.ts +1 -1
  192. package/api/types/Override.d.ts +1 -1
  193. package/api/types/Pagination.d.ts +9 -0
  194. package/api/types/Pagination.js +5 -0
  195. package/api/types/PolicyResponse.d.ts +1 -1
  196. package/api/types/PolicyResponseEnvelope.d.ts +1 -1
  197. package/api/types/Relation.d.ts +1 -1
  198. package/api/types/RoleListResponseEnvelope.d.ts +1 -1
  199. package/api/types/RoleResponseEnvelope.d.ts +1 -1
  200. package/api/types/Schedule.d.ts +1 -1
  201. package/api/types/ScheduleOptionResponse.d.ts +1 -1
  202. package/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
  203. package/api/types/ScheduleScheduleOption.d.ts +1 -1
  204. package/api/types/Schema.d.ts +1 -1
  205. package/api/types/SchemaConfiguration.d.ts +13 -0
  206. package/api/types/SchemaConfiguration.js +5 -0
  207. package/api/types/SchemaField.d.ts +1 -1
  208. package/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
  209. package/api/types/StartModelSyncResponseSchema.d.ts +1 -1
  210. package/api/types/SyncCanceledEvent.d.ts +12 -0
  211. package/api/types/SyncCanceledEvent.js +5 -0
  212. package/api/types/SyncCompletedEvent.d.ts +25 -0
  213. package/api/types/SyncCompletedEvent.js +5 -0
  214. package/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
  215. package/api/types/SyncCompletedWithErrorsEvent.js +5 -0
  216. package/api/types/SyncDestinationProperties.d.ts +1 -0
  217. package/api/types/SyncFailedEvent.d.ts +11 -0
  218. package/api/types/SyncFailedEvent.js +5 -0
  219. package/api/types/SyncRunningEvent.d.ts +10 -0
  220. package/api/types/SyncRunningEvent.js +5 -0
  221. package/api/types/SyncStatusEnvelope.d.ts +1 -1
  222. package/api/types/SyncStatusResponse.d.ts +1 -1
  223. package/api/types/TargetField.d.ts +1 -1
  224. package/api/types/TargetResponse.d.ts +1 -1
  225. package/api/types/TargetResponseEnvelope.d.ts +1 -1
  226. package/api/types/UserEnvelope.d.ts +1 -1
  227. package/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
  228. package/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
  229. package/api/types/V4QueryResultsEnvelope.d.ts +8 -0
  230. package/api/types/V4QueryResultsEnvelope.js +5 -0
  231. package/api/types/V4RunQueryEnvelope.d.ts +7 -0
  232. package/api/types/V4RunQueryEnvelope.js +5 -0
  233. package/api/types/V4RunQueryResult.d.ts +18 -0
  234. package/api/types/V4RunQueryResult.js +5 -0
  235. package/api/types/WebhookEnvelope.d.ts +1 -1
  236. package/api/types/WebhookListEnvelope.d.ts +1 -1
  237. package/api/types/WorkTaskStatus.d.ts +2 -1
  238. package/api/types/WorkTaskStatus.js +1 -0
  239. package/api/types/index.d.ts +22 -0
  240. package/api/types/index.js +22 -0
  241. package/core/fetcher/Fetcher.d.ts +3 -2
  242. package/core/fetcher/Fetcher.js +130 -19
  243. package/core/runtime/runtime.d.ts +1 -1
  244. package/core/runtime/runtime.js +11 -1
  245. package/dist/Client.d.ts +10 -0
  246. package/dist/Client.js +25 -20
  247. package/dist/api/errors/BadRequestError.d.ts +2 -2
  248. package/dist/api/errors/BadRequestError.js +1 -1
  249. package/dist/api/errors/ForbiddenError.d.ts +2 -2
  250. package/dist/api/errors/ForbiddenError.js +1 -1
  251. package/dist/api/errors/InternalServerError.d.ts +2 -2
  252. package/dist/api/errors/InternalServerError.js +1 -1
  253. package/dist/api/errors/NotFoundError.d.ts +2 -2
  254. package/dist/api/errors/NotFoundError.js +1 -1
  255. package/dist/api/errors/UnauthorizedError.d.ts +2 -2
  256. package/dist/api/errors/UnauthorizedError.js +1 -1
  257. package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
  258. package/dist/api/errors/UnprocessableEntityError.js +1 -1
  259. package/dist/api/index.d.ts +1 -1
  260. package/dist/api/index.js +1 -1
  261. package/dist/api/resources/bulkSync/client/Client.d.ts +54 -11
  262. package/dist/api/resources/bulkSync/client/Client.js +106 -40
  263. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +3 -2
  264. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +3 -2
  265. package/dist/api/resources/bulkSync/client/requests/index.d.ts +6 -6
  266. package/dist/api/resources/bulkSync/index.d.ts +1 -0
  267. package/dist/api/resources/bulkSync/index.js +1 -0
  268. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
  269. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
  270. package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
  271. package/dist/api/resources/bulkSync/resources/executions/client/index.js +15 -0
  272. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
  273. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +5 -0
  274. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  275. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
  276. package/dist/api/resources/bulkSync/resources/index.d.ts +1 -0
  277. package/dist/api/resources/bulkSync/resources/index.js +1 -0
  278. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -5
  279. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +48 -19
  280. package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
  281. package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  282. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
  283. package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
  284. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +5 -0
  285. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +5 -0
  286. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +5 -0
  287. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +5 -0
  288. package/dist/api/resources/bulkSync/types/index.d.ts +2 -0
  289. package/dist/api/resources/bulkSync/types/index.js +18 -0
  290. package/dist/api/resources/connections/client/Client.d.ts +40 -9
  291. package/dist/api/resources/connections/client/Client.js +78 -30
  292. package/dist/api/resources/connections/client/requests/index.d.ts +4 -4
  293. package/dist/api/resources/events/client/Client.d.ts +15 -3
  294. package/dist/api/resources/events/client/Client.js +19 -8
  295. package/dist/api/resources/events/client/requests/index.d.ts +1 -1
  296. package/dist/api/resources/identity/client/Client.d.ts +11 -2
  297. package/dist/api/resources/identity/client/Client.js +10 -5
  298. package/dist/api/resources/index.d.ts +3 -0
  299. package/dist/api/resources/index.js +4 -1
  300. package/dist/api/resources/jobs/client/Client.d.ts +13 -2
  301. package/dist/api/resources/jobs/client/Client.js +13 -6
  302. package/dist/api/resources/modelSync/client/Client.d.ts +65 -22
  303. package/dist/api/resources/modelSync/client/Client.js +135 -60
  304. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
  305. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  306. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
  307. package/dist/api/resources/modelSync/client/requests/index.d.ts +6 -6
  308. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
  309. package/dist/api/resources/modelSync/resources/executions/client/Client.js +48 -18
  310. package/dist/api/resources/models/client/Client.d.ts +46 -9
  311. package/dist/api/resources/models/client/Client.js +85 -31
  312. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
  313. package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
  314. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
  315. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
  316. package/dist/api/resources/models/client/requests/index.d.ts +7 -7
  317. package/dist/api/resources/organization/client/Client.d.ts +33 -6
  318. package/dist/api/resources/organization/client/Client.js +55 -20
  319. package/dist/api/resources/organization/client/requests/index.d.ts +2 -2
  320. package/dist/api/resources/permissions/client/Client.d.ts +7 -0
  321. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
  322. package/dist/api/resources/permissions/resources/policies/client/Client.js +50 -20
  323. package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
  324. package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
  325. package/dist/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
  326. package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
  327. package/dist/api/resources/permissions/resources/roles/client/Client.js +50 -20
  328. package/dist/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
  329. package/dist/api/resources/queryRunner/client/Client.d.ts +58 -0
  330. package/dist/api/resources/queryRunner/client/Client.js +223 -0
  331. package/dist/api/resources/queryRunner/client/index.d.ts +1 -0
  332. package/dist/api/resources/queryRunner/client/index.js +17 -0
  333. package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
  334. package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +5 -0
  335. package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
  336. package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +5 -0
  337. package/dist/api/resources/queryRunner/client/requests/index.d.ts +2 -0
  338. package/dist/api/resources/queryRunner/client/requests/index.js +2 -0
  339. package/dist/api/resources/queryRunner/index.d.ts +1 -0
  340. package/dist/api/resources/queryRunner/index.js +17 -0
  341. package/dist/api/resources/schemas/client/Client.d.ts +26 -5
  342. package/dist/api/resources/schemas/client/Client.js +44 -18
  343. package/dist/api/resources/users/client/Client.d.ts +45 -7
  344. package/dist/api/resources/users/client/Client.js +75 -26
  345. package/dist/api/resources/users/client/requests/index.d.ts +3 -3
  346. package/dist/api/resources/webhooks/client/Client.d.ts +32 -6
  347. package/dist/api/resources/webhooks/client/Client.js +54 -20
  348. package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -2
  349. package/dist/api/types/ActivateSyncEnvelope.d.ts +1 -1
  350. package/dist/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
  351. package/dist/api/types/BulkFilter.d.ts +10 -0
  352. package/dist/api/types/BulkFilter.js +5 -0
  353. package/dist/api/types/BulkItemizedSchedule.d.ts +1 -1
  354. package/dist/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
  355. package/dist/api/types/BulkSchedule.d.ts +1 -1
  356. package/dist/api/types/BulkSchema.d.ts +2 -1
  357. package/dist/api/types/BulkSchemaEnvelope.d.ts +1 -1
  358. package/dist/api/types/BulkSyncCanceledEvent.d.ts +11 -0
  359. package/dist/api/types/BulkSyncCanceledEvent.js +5 -0
  360. package/dist/api/types/BulkSyncCompletedEvent.d.ts +12 -0
  361. package/dist/api/types/BulkSyncCompletedEvent.js +5 -0
  362. package/dist/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
  363. package/dist/api/types/BulkSyncCompletedWithErrorEvent.js +5 -0
  364. package/dist/api/types/BulkSyncDest.d.ts +1 -1
  365. package/dist/api/types/BulkSyncDestEnvelope.d.ts +1 -1
  366. package/dist/api/types/BulkSyncExecution.d.ts +1 -1
  367. package/dist/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
  368. package/dist/api/types/BulkSyncExecutionStatus.d.ts +10 -0
  369. package/dist/api/types/BulkSyncExecutionStatus.js +5 -0
  370. package/dist/api/types/BulkSyncFailedEvent.d.ts +12 -0
  371. package/dist/api/types/BulkSyncFailedEvent.js +5 -0
  372. package/dist/api/types/BulkSyncListEnvelope.d.ts +1 -1
  373. package/dist/api/types/BulkSyncResponse.d.ts +1 -1
  374. package/dist/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
  375. package/dist/api/types/BulkSyncRunningEvent.d.ts +11 -0
  376. package/dist/api/types/BulkSyncRunningEvent.js +5 -0
  377. package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -1
  378. package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
  379. package/dist/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
  380. package/dist/api/types/BulkSyncSource.d.ts +1 -1
  381. package/dist/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
  382. package/dist/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
  383. package/dist/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
  384. package/dist/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
  385. package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -1
  386. package/dist/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
  387. package/dist/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
  388. package/dist/api/types/ConnectionMetaResponse.d.ts +1 -1
  389. package/dist/api/types/ConnectionParameterValuesResp.d.ts +1 -1
  390. package/dist/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  391. package/dist/api/types/ConnectionResponseEnvelope.d.ts +1 -1
  392. package/dist/api/types/ConnectionResponseSchema.d.ts +1 -1
  393. package/dist/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
  394. package/dist/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
  395. package/dist/api/types/CreateConnectionResponseSchema.d.ts +1 -1
  396. package/dist/api/types/CreateModelRequest.d.ts +1 -1
  397. package/dist/api/types/Enrichment.d.ts +1 -1
  398. package/dist/api/types/Event.d.ts +2 -1
  399. package/dist/api/types/EventBody.d.ts +5 -0
  400. package/dist/api/types/EventBody.js +5 -0
  401. package/dist/api/types/EventsEnvelope.d.ts +1 -1
  402. package/dist/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
  403. package/dist/api/types/FieldConfiguration.d.ts +10 -0
  404. package/dist/api/types/FieldConfiguration.js +5 -0
  405. package/dist/api/types/Filter.d.ts +1 -1
  406. package/dist/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
  407. package/dist/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
  408. package/dist/api/types/GetExecutionResponseSchema.d.ts +1 -1
  409. package/dist/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
  410. package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
  411. package/dist/api/types/Identity.d.ts +1 -1
  412. package/dist/api/types/JobResponse.d.ts +1 -1
  413. package/dist/api/types/JobResponseEnvelope.d.ts +1 -1
  414. package/dist/api/types/ListBulkSchema.d.ts +1 -1
  415. package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
  416. package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
  417. package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
  418. package/dist/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
  419. package/dist/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
  420. package/dist/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
  421. package/dist/api/types/ListUsersEnvelope.d.ts +1 -1
  422. package/dist/api/types/ModelFieldResponse.d.ts +1 -1
  423. package/dist/api/types/ModelListResponseEnvelope.d.ts +1 -1
  424. package/dist/api/types/ModelRelation.d.ts +1 -1
  425. package/dist/api/types/ModelResponse.d.ts +1 -1
  426. package/dist/api/types/ModelResponseEnvelope.d.ts +1 -1
  427. package/dist/api/types/ModelSample.d.ts +1 -1
  428. package/dist/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
  429. package/dist/api/types/ModelSyncField.d.ts +6 -2
  430. package/dist/api/types/ModelSyncResponse.d.ts +1 -1
  431. package/dist/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
  432. package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
  433. package/dist/api/types/OrganizationEnvelope.d.ts +1 -1
  434. package/dist/api/types/OrganizationsEnvelope.d.ts +1 -1
  435. package/dist/api/types/Override.d.ts +1 -1
  436. package/dist/api/types/Pagination.d.ts +9 -0
  437. package/dist/api/types/Pagination.js +5 -0
  438. package/dist/api/types/PolicyResponse.d.ts +1 -1
  439. package/dist/api/types/PolicyResponseEnvelope.d.ts +1 -1
  440. package/dist/api/types/Relation.d.ts +1 -1
  441. package/dist/api/types/RoleListResponseEnvelope.d.ts +1 -1
  442. package/dist/api/types/RoleResponseEnvelope.d.ts +1 -1
  443. package/dist/api/types/Schedule.d.ts +1 -1
  444. package/dist/api/types/ScheduleOptionResponse.d.ts +1 -1
  445. package/dist/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
  446. package/dist/api/types/ScheduleScheduleOption.d.ts +1 -1
  447. package/dist/api/types/Schema.d.ts +1 -1
  448. package/dist/api/types/SchemaConfiguration.d.ts +13 -0
  449. package/dist/api/types/SchemaConfiguration.js +5 -0
  450. package/dist/api/types/SchemaField.d.ts +1 -1
  451. package/dist/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
  452. package/dist/api/types/StartModelSyncResponseSchema.d.ts +1 -1
  453. package/dist/api/types/SyncCanceledEvent.d.ts +12 -0
  454. package/dist/api/types/SyncCanceledEvent.js +5 -0
  455. package/dist/api/types/SyncCompletedEvent.d.ts +25 -0
  456. package/dist/api/types/SyncCompletedEvent.js +5 -0
  457. package/dist/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
  458. package/dist/api/types/SyncCompletedWithErrorsEvent.js +5 -0
  459. package/dist/api/types/SyncDestinationProperties.d.ts +1 -0
  460. package/dist/api/types/SyncFailedEvent.d.ts +11 -0
  461. package/dist/api/types/SyncFailedEvent.js +5 -0
  462. package/dist/api/types/SyncRunningEvent.d.ts +10 -0
  463. package/dist/api/types/SyncRunningEvent.js +5 -0
  464. package/dist/api/types/SyncStatusEnvelope.d.ts +1 -1
  465. package/dist/api/types/SyncStatusResponse.d.ts +1 -1
  466. package/dist/api/types/TargetField.d.ts +1 -1
  467. package/dist/api/types/TargetResponse.d.ts +1 -1
  468. package/dist/api/types/TargetResponseEnvelope.d.ts +1 -1
  469. package/dist/api/types/UserEnvelope.d.ts +1 -1
  470. package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
  471. package/dist/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
  472. package/dist/api/types/V4QueryResultsEnvelope.d.ts +8 -0
  473. package/dist/api/types/V4QueryResultsEnvelope.js +5 -0
  474. package/dist/api/types/V4RunQueryEnvelope.d.ts +7 -0
  475. package/dist/api/types/V4RunQueryEnvelope.js +5 -0
  476. package/dist/api/types/V4RunQueryResult.d.ts +18 -0
  477. package/dist/api/types/V4RunQueryResult.js +5 -0
  478. package/dist/api/types/WebhookEnvelope.d.ts +1 -1
  479. package/dist/api/types/WebhookListEnvelope.d.ts +1 -1
  480. package/dist/api/types/WorkTaskStatus.d.ts +2 -1
  481. package/dist/api/types/WorkTaskStatus.js +1 -0
  482. package/dist/api/types/index.d.ts +22 -0
  483. package/dist/api/types/index.js +22 -0
  484. package/dist/core/fetcher/Fetcher.d.ts +3 -2
  485. package/dist/core/fetcher/Fetcher.js +130 -19
  486. package/dist/core/runtime/runtime.d.ts +1 -1
  487. package/dist/core/runtime/runtime.js +11 -1
  488. package/jest.config.js +2 -2
  489. package/package.json +13 -6
  490. package/tests/client.test.ts +0 -11
@@ -3,26 +3,35 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import * as Polytomic from "../../..";
6
+ import * as Polytomic from "../../../index";
7
7
  export declare namespace Identity {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.PolytomicEnvironment | string>;
10
10
  token: core.Supplier<core.BearerToken>;
11
+ version?: core.Supplier<string | undefined>;
11
12
  }
12
13
  interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
13
15
  timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
14
17
  maxRetries?: number;
18
+ /** A hook to abort the request. */
19
+ abortSignal?: AbortSignal;
20
+ /** Override the X-Polytomic-Version header */
21
+ version?: string | undefined;
15
22
  }
16
23
  }
17
24
  export declare class Identity {
18
25
  protected readonly _options: Identity.Options;
19
26
  constructor(_options: Identity.Options);
20
27
  /**
28
+ * @param {Identity.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
21
30
  * @throws {@link Polytomic.UnauthorizedError}
22
31
  * @throws {@link Polytomic.InternalServerError}
23
32
  *
24
33
  * @example
25
- * await polytomic.identity.get()
34
+ * await client.identity.get()
26
35
  */
27
36
  get(requestOptions?: Identity.RequestOptions): Promise<Polytomic.GetIdentityResponseEnvelope>;
28
37
  protected _getAuthorizationHeader(): Promise<string>;
@@ -41,19 +41,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Identity = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const Polytomic = __importStar(require("../../.."));
44
+ const Polytomic = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
- const errors = __importStar(require("../../../../errors"));
46
+ const errors = __importStar(require("../../../../errors/index"));
47
47
  class Identity {
48
48
  constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
52
+ * @param {Identity.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
52
54
  * @throws {@link Polytomic.UnauthorizedError}
53
55
  * @throws {@link Polytomic.InternalServerError}
54
56
  *
55
57
  * @example
56
- * await polytomic.identity.get()
58
+ * await client.identity.get()
57
59
  */
58
60
  get(requestOptions) {
59
61
  var _a;
@@ -63,16 +65,19 @@ class Identity {
63
65
  method: "GET",
64
66
  headers: {
65
67
  Authorization: yield this._getAuthorizationHeader(),
66
- "X-Polytomic-Version": "2024-02-08",
68
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
69
+ ? yield core.Supplier.get(this._options.version)
70
+ : undefined,
67
71
  "X-Fern-Language": "JavaScript",
68
72
  "X-Fern-SDK-Name": "polytomic",
69
- "X-Fern-SDK-Version": "1.4.0",
73
+ "X-Fern-SDK-Version": "1.8.4",
70
74
  "X-Fern-Runtime": core.RUNTIME.type,
71
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
76
  },
73
77
  contentType: "application/json",
74
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
75
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
80
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
76
81
  });
77
82
  if (_response.ok) {
78
83
  return _response.body;
@@ -1,5 +1,7 @@
1
1
  export * as bulkSync from "./bulkSync";
2
+ export * from "./bulkSync/types";
2
3
  export * as connections from "./connections";
4
+ export * as queryRunner from "./queryRunner";
3
5
  export * as modelSync from "./modelSync";
4
6
  export * as schemas from "./schemas";
5
7
  export * as models from "./models";
@@ -12,6 +14,7 @@ export * as permissions from "./permissions";
12
14
  export * as webhooks from "./webhooks";
13
15
  export * from "./bulkSync/client/requests";
14
16
  export * from "./connections/client/requests";
17
+ export * from "./queryRunner/client/requests";
15
18
  export * from "./modelSync/client/requests";
16
19
  export * from "./models/client/requests";
17
20
  export * from "./events/client/requests";
@@ -26,9 +26,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.webhooks = exports.permissions = exports.users = exports.organization = exports.identity = exports.jobs = exports.events = exports.models = exports.schemas = exports.modelSync = exports.connections = exports.bulkSync = void 0;
29
+ exports.webhooks = exports.permissions = exports.users = exports.organization = exports.identity = exports.jobs = exports.events = exports.models = exports.schemas = exports.modelSync = exports.queryRunner = exports.connections = exports.bulkSync = void 0;
30
30
  exports.bulkSync = __importStar(require("./bulkSync"));
31
+ __exportStar(require("./bulkSync/types"), exports);
31
32
  exports.connections = __importStar(require("./connections"));
33
+ exports.queryRunner = __importStar(require("./queryRunner"));
32
34
  exports.modelSync = __importStar(require("./modelSync"));
33
35
  exports.schemas = __importStar(require("./schemas"));
34
36
  exports.models = __importStar(require("./models"));
@@ -41,6 +43,7 @@ exports.permissions = __importStar(require("./permissions"));
41
43
  exports.webhooks = __importStar(require("./webhooks"));
42
44
  __exportStar(require("./bulkSync/client/requests"), exports);
43
45
  __exportStar(require("./connections/client/requests"), exports);
46
+ __exportStar(require("./queryRunner/client/requests"), exports);
44
47
  __exportStar(require("./modelSync/client/requests"), exports);
45
48
  __exportStar(require("./models/client/requests"), exports);
46
49
  __exportStar(require("./events/client/requests"), exports);
@@ -3,28 +3,39 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import * as Polytomic from "../../..";
6
+ import * as Polytomic from "../../../index";
7
7
  export declare namespace Jobs {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.PolytomicEnvironment | string>;
10
10
  token: core.Supplier<core.BearerToken>;
11
+ version?: core.Supplier<string | undefined>;
11
12
  }
12
13
  interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
13
15
  timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
14
17
  maxRetries?: number;
18
+ /** A hook to abort the request. */
19
+ abortSignal?: AbortSignal;
20
+ /** Override the X-Polytomic-Version header */
21
+ version?: string | undefined;
15
22
  }
16
23
  }
17
24
  export declare class Jobs {
18
25
  protected readonly _options: Jobs.Options;
19
26
  constructor(_options: Jobs.Options);
20
27
  /**
28
+ * @param {string} id
29
+ * @param {string} type
30
+ * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
21
32
  * @throws {@link Polytomic.BadRequestError}
22
33
  * @throws {@link Polytomic.UnauthorizedError}
23
34
  * @throws {@link Polytomic.NotFoundError}
24
35
  * @throws {@link Polytomic.InternalServerError}
25
36
  *
26
37
  * @example
27
- * await polytomic.jobs.get("248df4b7-aa70-47b8-a036-33ac447e668d", "createmodel")
38
+ * await client.jobs.get("248df4b7-aa70-47b8-a036-33ac447e668d", "createmodel")
28
39
  */
29
40
  get(id: string, type: string, requestOptions?: Jobs.RequestOptions): Promise<Polytomic.JobResponseEnvelope>;
30
41
  protected _getAuthorizationHeader(): Promise<string>;
@@ -41,40 +41,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Jobs = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const Polytomic = __importStar(require("../../.."));
44
+ const Polytomic = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
- const errors = __importStar(require("../../../../errors"));
46
+ const errors = __importStar(require("../../../../errors/index"));
47
47
  class Jobs {
48
48
  constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
52
+ * @param {string} id
53
+ * @param {string} type
54
+ * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
52
56
  * @throws {@link Polytomic.BadRequestError}
53
57
  * @throws {@link Polytomic.UnauthorizedError}
54
58
  * @throws {@link Polytomic.NotFoundError}
55
59
  * @throws {@link Polytomic.InternalServerError}
56
60
  *
57
61
  * @example
58
- * await polytomic.jobs.get("248df4b7-aa70-47b8-a036-33ac447e668d", "createmodel")
62
+ * await client.jobs.get("248df4b7-aa70-47b8-a036-33ac447e668d", "createmodel")
59
63
  */
60
64
  get(id, type, requestOptions) {
61
65
  var _a;
62
66
  return __awaiter(this, void 0, void 0, function* () {
63
67
  const _response = yield core.fetcher({
64
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/jobs/${type}/${id}`),
68
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/jobs/${encodeURIComponent(type)}/${encodeURIComponent(id)}`),
65
69
  method: "GET",
66
70
  headers: {
67
71
  Authorization: yield this._getAuthorizationHeader(),
68
- "X-Polytomic-Version": "2024-02-08",
72
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
73
+ ? yield core.Supplier.get(this._options.version)
74
+ : undefined,
69
75
  "X-Fern-Language": "JavaScript",
70
76
  "X-Fern-SDK-Name": "polytomic",
71
- "X-Fern-SDK-Version": "1.4.0",
77
+ "X-Fern-SDK-Version": "1.8.4",
72
78
  "X-Fern-Runtime": core.RUNTIME.type,
73
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
80
  },
75
81
  contentType: "application/json",
76
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
83
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
78
85
  });
79
86
  if (_response.ok) {
80
87
  return _response.body;
@@ -3,22 +3,33 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import * as Polytomic from "../../..";
6
+ import * as Polytomic from "../../../index";
7
7
  import { Executions } from "../resources/executions/client/Client";
8
8
  export declare namespace ModelSync {
9
9
  interface Options {
10
10
  environment?: core.Supplier<environments.PolytomicEnvironment | string>;
11
11
  token: core.Supplier<core.BearerToken>;
12
+ version?: core.Supplier<string | undefined>;
12
13
  }
13
14
  interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
14
16
  timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
15
18
  maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Override the X-Polytomic-Version header */
22
+ version?: string | undefined;
16
23
  }
17
24
  }
18
25
  export declare class ModelSync {
19
26
  protected readonly _options: ModelSync.Options;
20
27
  constructor(_options: ModelSync.Options);
21
28
  /**
29
+ * @param {string} id
30
+ * @param {Polytomic.ModelSyncGetSourceRequest} request
31
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
22
33
  * @throws {@link Polytomic.BadRequestError}
23
34
  * @throws {@link Polytomic.UnauthorizedError}
24
35
  * @throws {@link Polytomic.ForbiddenError}
@@ -26,10 +37,13 @@ export declare class ModelSync {
26
37
  * @throws {@link Polytomic.InternalServerError}
27
38
  *
28
39
  * @example
29
- * await polytomic.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {})
40
+ * await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
30
41
  */
31
42
  getSource(id: string, request?: Polytomic.ModelSyncGetSourceRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.GetModelSyncSourceMetaEnvelope>;
32
43
  /**
44
+ * @param {string} id
45
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
46
+ *
33
47
  * @throws {@link Polytomic.BadRequestError}
34
48
  * @throws {@link Polytomic.UnauthorizedError}
35
49
  * @throws {@link Polytomic.ForbiddenError}
@@ -37,10 +51,14 @@ export declare class ModelSync {
37
51
  * @throws {@link Polytomic.InternalServerError}
38
52
  *
39
53
  * @example
40
- * await polytomic.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
54
+ * await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
41
55
  */
42
56
  getSourceFields(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelFieldResponse>;
43
57
  /**
58
+ * @param {string} id
59
+ * @param {Polytomic.ModelSyncGetTargetRequest} request
60
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
44
62
  * @throws {@link Polytomic.BadRequestError}
45
63
  * @throws {@link Polytomic.UnauthorizedError}
46
64
  * @throws {@link Polytomic.ForbiddenError}
@@ -48,32 +66,41 @@ export declare class ModelSync {
48
66
  * @throws {@link Polytomic.InternalServerError}
49
67
  *
50
68
  * @example
51
- * await polytomic.modelSync.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d", {})
69
+ * await client.modelSync.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d")
52
70
  */
53
71
  getTarget(id: string, request?: Polytomic.ModelSyncGetTargetRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.GetConnectionMetaEnvelope>;
54
72
  /**
73
+ * @param {string} id
74
+ * @param {Polytomic.ModelSyncGetTargetFieldsRequest} request
75
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
76
+ *
55
77
  * @throws {@link Polytomic.UnauthorizedError}
56
78
  * @throws {@link Polytomic.ForbiddenError}
57
79
  * @throws {@link Polytomic.NotFoundError}
58
80
  * @throws {@link Polytomic.InternalServerError}
59
81
  *
60
82
  * @example
61
- * await polytomic.modelSync.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
83
+ * await client.modelSync.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
62
84
  * target: "database.table",
63
85
  * refresh: false
64
86
  * })
65
87
  */
66
88
  getTargetFields(id: string, request: Polytomic.ModelSyncGetTargetFieldsRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.TargetResponseEnvelope>;
67
89
  /**
90
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
91
+ *
68
92
  * @throws {@link Polytomic.UnauthorizedError}
69
93
  * @throws {@link Polytomic.NotFoundError}
70
94
  * @throws {@link Polytomic.InternalServerError}
71
95
  *
72
96
  * @example
73
- * await polytomic.modelSync.list()
97
+ * await client.modelSync.list()
74
98
  */
75
99
  list(requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ListModelSyncResponseEnvelope>;
76
100
  /**
101
+ * @param {Polytomic.CreateModelSyncRequest} request
102
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
77
104
  * @throws {@link Polytomic.BadRequestError}
78
105
  * @throws {@link Polytomic.UnauthorizedError}
79
106
  * @throws {@link Polytomic.ForbiddenError}
@@ -81,12 +108,8 @@ export declare class ModelSync {
81
108
  * @throws {@link Polytomic.InternalServerError}
82
109
  *
83
110
  * @example
84
- * await polytomic.modelSync.create({
111
+ * await client.modelSync.create({
85
112
  * fields: [{
86
- * source: {
87
- * field: "id",
88
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
89
- * },
90
113
  * target: "name"
91
114
  * }],
92
115
  * mode: "create",
@@ -100,23 +123,32 @@ export declare class ModelSync {
100
123
  */
101
124
  create(request: Polytomic.CreateModelSyncRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelSyncResponseEnvelope>;
102
125
  /**
126
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
103
128
  * @throws {@link Polytomic.UnauthorizedError}
104
129
  * @throws {@link Polytomic.InternalServerError}
105
130
  *
106
131
  * @example
107
- * await polytomic.modelSync.getScheduleOptions()
132
+ * await client.modelSync.getScheduleOptions()
108
133
  */
109
134
  getScheduleOptions(requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ScheduleOptionResponseEnvelope>;
110
135
  /**
136
+ * @param {string} id
137
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
138
+ *
111
139
  * @throws {@link Polytomic.UnauthorizedError}
112
140
  * @throws {@link Polytomic.NotFoundError}
113
141
  * @throws {@link Polytomic.InternalServerError}
114
142
  *
115
143
  * @example
116
- * await polytomic.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
144
+ * await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
117
145
  */
118
146
  get(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelSyncResponseEnvelope>;
119
147
  /**
148
+ * @param {string} id
149
+ * @param {Polytomic.UpdateModelSyncRequest} request
150
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
151
+ *
120
152
  * @throws {@link Polytomic.BadRequestError}
121
153
  * @throws {@link Polytomic.UnauthorizedError}
122
154
  * @throws {@link Polytomic.ForbiddenError}
@@ -125,12 +157,8 @@ export declare class ModelSync {
125
157
  * @throws {@link Polytomic.InternalServerError}
126
158
  *
127
159
  * @example
128
- * await polytomic.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
160
+ * await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
129
161
  * fields: [{
130
- * source: {
131
- * field: "id",
132
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
133
- * },
134
162
  * target: "name"
135
163
  * }],
136
164
  * mode: "create",
@@ -144,23 +172,30 @@ export declare class ModelSync {
144
172
  */
145
173
  update(id: string, request: Polytomic.UpdateModelSyncRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelSyncResponseEnvelope>;
146
174
  /**
175
+ * @param {string} id
176
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
177
+ *
147
178
  * @throws {@link Polytomic.UnauthorizedError}
148
179
  * @throws {@link Polytomic.ForbiddenError}
149
180
  * @throws {@link Polytomic.NotFoundError}
150
181
  * @throws {@link Polytomic.InternalServerError}
151
182
  *
152
183
  * @example
153
- * await polytomic.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
184
+ * await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
154
185
  */
155
186
  remove(id: string, requestOptions?: ModelSync.RequestOptions): Promise<void>;
156
187
  /**
188
+ * @param {string} id
189
+ * @param {Polytomic.ActivateSyncInput} request
190
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
191
+ *
157
192
  * @throws {@link Polytomic.UnauthorizedError}
158
193
  * @throws {@link Polytomic.ForbiddenError}
159
194
  * @throws {@link Polytomic.NotFoundError}
160
195
  * @throws {@link Polytomic.InternalServerError}
161
196
  *
162
197
  * @example
163
- * await polytomic.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
198
+ * await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
164
199
  * active: true
165
200
  * })
166
201
  */
@@ -169,6 +204,11 @@ export declare class ModelSync {
169
204
  * > 🚧 Force full resync
170
205
  * >
171
206
  * > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
207
+ *
208
+ * @param {string} id
209
+ * @param {Polytomic.StartModelSyncRequest} request
210
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
211
+ *
172
212
  * @throws {@link Polytomic.BadRequestError}
173
213
  * @throws {@link Polytomic.UnauthorizedError}
174
214
  * @throws {@link Polytomic.ForbiddenError}
@@ -176,16 +216,19 @@ export declare class ModelSync {
176
216
  * @throws {@link Polytomic.InternalServerError}
177
217
  *
178
218
  * @example
179
- * await polytomic.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {})
219
+ * await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
180
220
  */
181
221
  start(id: string, request?: Polytomic.StartModelSyncRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.StartModelSyncResponseEnvelope>;
182
222
  /**
223
+ * @param {string} id
224
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
225
+ *
183
226
  * @throws {@link Polytomic.UnauthorizedError}
184
227
  * @throws {@link Polytomic.NotFoundError}
185
228
  * @throws {@link Polytomic.InternalServerError}
186
229
  *
187
230
  * @example
188
- * await polytomic.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
231
+ * await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
189
232
  */
190
233
  getStatus(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.SyncStatusEnvelope>;
191
234
  protected _executions: Executions | undefined;