polytomic 1.11.2 → 1.14.3

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 (497) hide show
  1. package/Client.d.ts +20 -15
  2. package/Client.js +9 -9
  3. package/LICENSE +1 -1
  4. package/api/errors/BadRequestError.js +17 -7
  5. package/api/errors/ConflictError.js +17 -7
  6. package/api/errors/ForbiddenError.js +17 -7
  7. package/api/errors/InternalServerError.js +17 -7
  8. package/api/errors/NotFoundError.js +17 -7
  9. package/api/errors/UnauthorizedError.js +17 -7
  10. package/api/errors/UnprocessableEntityError.js +17 -7
  11. package/api/resources/bulkSync/client/Client.d.ts +47 -6
  12. package/api/resources/bulkSync/client/Client.js +135 -157
  13. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +11 -3
  14. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +11 -3
  15. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +13 -2
  16. package/api/resources/bulkSync/resources/executions/client/Client.js +75 -79
  17. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +18 -0
  18. package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  19. package/api/resources/bulkSync/resources/index.d.ts +2 -0
  20. package/api/resources/bulkSync/resources/index.js +20 -8
  21. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +113 -0
  22. package/api/resources/bulkSync/resources/schedules/client/Client.js +398 -0
  23. package/api/resources/bulkSync/resources/schedules/client/index.d.ts +1 -0
  24. package/api/resources/bulkSync/resources/schedules/client/index.js +17 -0
  25. package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +15 -0
  26. package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +15 -0
  27. package/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +2 -0
  28. package/api/resources/bulkSync/resources/schedules/client/requests/index.js +2 -0
  29. package/api/resources/bulkSync/resources/schedules/index.d.ts +1 -0
  30. package/api/resources/bulkSync/resources/schedules/index.js +17 -0
  31. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +5 -0
  32. package/api/resources/bulkSync/resources/schemas/client/Client.js +49 -66
  33. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +3 -1
  34. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
  35. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
  36. package/api/resources/connections/client/Client.d.ts +41 -2
  37. package/api/resources/connections/client/Client.js +159 -128
  38. package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +7 -0
  39. package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +3 -1
  40. package/api/resources/connections/client/requests/TestConnectionRequest.d.ts +24 -0
  41. package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +3 -1
  42. package/api/resources/connections/client/requests/index.d.ts +1 -0
  43. package/api/resources/events/client/Client.d.ts +7 -2
  44. package/api/resources/events/client/Client.js +33 -37
  45. package/api/resources/events/client/requests/EventsListRequest.d.ts +2 -2
  46. package/api/resources/identity/client/Client.d.ts +7 -0
  47. package/api/resources/identity/client/Client.js +25 -20
  48. package/api/resources/index.d.ts +2 -1
  49. package/api/resources/index.js +20 -9
  50. package/api/resources/jobs/client/Client.d.ts +7 -2
  51. package/api/resources/jobs/client/Client.js +25 -22
  52. package/api/resources/modelSync/client/Client.d.ts +83 -52
  53. package/api/resources/modelSync/client/Client.js +228 -403
  54. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +14 -5
  55. package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +1 -1
  56. package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
  57. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +14 -5
  58. package/api/resources/modelSync/client/requests/index.d.ts +0 -2
  59. package/api/resources/modelSync/resources/executions/client/Client.d.ts +36 -8
  60. package/api/resources/modelSync/resources/executions/client/Client.js +137 -68
  61. package/api/resources/modelSync/resources/executions/client/index.d.ts +1 -1
  62. package/api/resources/modelSync/resources/executions/client/index.js +15 -0
  63. package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +16 -0
  64. package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
  65. package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +13 -0
  66. package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +5 -0
  67. package/api/resources/modelSync/resources/executions/client/requests/index.d.ts +2 -0
  68. package/api/resources/modelSync/resources/executions/client/requests/index.js +2 -0
  69. package/api/resources/modelSync/resources/index.d.ts +3 -0
  70. package/api/resources/modelSync/resources/index.js +23 -7
  71. package/api/resources/modelSync/resources/targets/client/Client.d.ts +143 -0
  72. package/api/resources/modelSync/resources/targets/client/Client.js +395 -0
  73. package/api/resources/modelSync/resources/targets/client/index.d.ts +1 -0
  74. package/api/resources/modelSync/resources/targets/client/index.js +17 -0
  75. package/api/resources/modelSync/{client/requests/ModelSyncGetTargetFieldsRequest.d.ts → resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts} +1 -1
  76. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +5 -0
  77. package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts → api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts} +1 -1
  78. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +5 -0
  79. package/api/resources/modelSync/resources/targets/client/requests/index.d.ts +2 -0
  80. package/api/resources/modelSync/resources/targets/client/requests/index.js +2 -0
  81. package/api/resources/modelSync/resources/targets/index.d.ts +1 -0
  82. package/api/resources/modelSync/resources/targets/index.js +17 -0
  83. package/api/resources/models/client/Client.d.ts +5 -0
  84. package/api/resources/models/client/Client.js +83 -135
  85. package/api/resources/organization/client/Client.d.ts +7 -0
  86. package/api/resources/organization/client/Client.js +53 -72
  87. package/api/resources/permissions/client/Client.d.ts +7 -2
  88. package/api/resources/permissions/resources/index.js +17 -7
  89. package/api/resources/permissions/resources/policies/client/Client.d.ts +5 -0
  90. package/api/resources/permissions/resources/policies/client/Client.js +47 -72
  91. package/api/resources/permissions/resources/roles/client/Client.d.ts +5 -0
  92. package/api/resources/permissions/resources/roles/client/Client.js +47 -72
  93. package/api/resources/queryRunner/client/Client.d.ts +5 -0
  94. package/api/resources/queryRunner/client/Client.js +33 -37
  95. package/api/resources/schemas/client/Client.d.ts +68 -0
  96. package/api/resources/schemas/client/Client.js +302 -59
  97. package/api/resources/schemas/client/index.d.ts +1 -1
  98. package/api/resources/schemas/client/index.js +15 -0
  99. package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +11 -0
  100. package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +5 -0
  101. package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +11 -0
  102. package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +5 -0
  103. package/api/resources/schemas/client/requests/index.d.ts +2 -0
  104. package/api/resources/schemas/client/requests/index.js +2 -0
  105. package/api/resources/users/client/Client.d.ts +5 -0
  106. package/api/resources/users/client/Client.js +55 -87
  107. package/api/resources/webhooks/client/Client.d.ts +33 -4
  108. package/api/resources/webhooks/client/Client.js +169 -76
  109. package/api/types/BackendOAuthPrompt.d.ts +8 -0
  110. package/api/types/BackendOAuthPrompt.js +5 -0
  111. package/api/types/BulkBulkSyncSchedule.d.ts +20 -0
  112. package/api/types/BulkBulkSyncSchedule.js +5 -0
  113. package/api/types/BulkDiscover.d.ts +1 -1
  114. package/api/types/BulkExecutionStatus.d.ts +2 -1
  115. package/api/types/BulkExecutionStatus.js +1 -0
  116. package/api/types/BulkFetchMode.d.ts +1 -1
  117. package/api/types/BulkField.d.ts +2 -0
  118. package/api/types/BulkNormalizeNames.d.ts +9 -0
  119. package/api/types/BulkNormalizeNames.js +11 -0
  120. package/api/types/BulkSchema.d.ts +1 -0
  121. package/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
  122. package/api/types/BulkSchemaExecutionStatus.js +1 -0
  123. package/api/types/BulkSelectiveMode.d.ts +1 -1
  124. package/api/types/BulkSyncExecution.d.ts +6 -0
  125. package/api/types/BulkSyncMode.d.ts +11 -0
  126. package/api/types/BulkSyncMode.js +10 -0
  127. package/api/types/BulkSyncResponse.d.ts +10 -1
  128. package/api/types/BulkSyncSchemaExecution.d.ts +3 -0
  129. package/api/types/CancelModelSyncResponse.d.ts +6 -0
  130. package/api/types/CancelModelSyncResponse.js +5 -0
  131. package/api/types/CancelModelSyncResponseEnvelope.d.ts +7 -0
  132. package/api/types/CancelModelSyncResponseEnvelope.js +5 -0
  133. package/api/types/ConnectCardResponse.d.ts +1 -0
  134. package/api/types/ConnectionResponseSchema.d.ts +5 -0
  135. package/api/types/ConnectionType.d.ts +5 -0
  136. package/api/types/ConnectionTypeSchema.d.ts +1 -0
  137. package/api/types/CreateConnectionResponseSchema.d.ts +3 -0
  138. package/api/types/EventBody.d.ts +1 -1
  139. package/api/types/ExecutionCounts.d.ts +2 -0
  140. package/api/types/ExecutionStatus.d.ts +1 -1
  141. package/api/types/FilterFieldReferenceType.d.ts +1 -1
  142. package/api/types/FilterFunction.d.ts +3 -1
  143. package/api/types/FilterFunction.js +2 -0
  144. package/api/types/GetIdentityResponseSchema.d.ts +7 -0
  145. package/api/types/JsonschemaDefinitions.d.ts +1 -1
  146. package/api/types/JsonschemaForm.d.ts +1 -1
  147. package/api/types/LabelLabel.d.ts +1 -1
  148. package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -0
  149. package/api/types/ListExecutionResponseEnvelope.d.ts +1 -0
  150. package/api/types/ModelField.d.ts +4 -0
  151. package/api/types/ModelSyncField.d.ts +2 -0
  152. package/api/types/{SyncMode.d.ts → ModelSyncMode.d.ts} +2 -4
  153. package/{dist/api/types/SyncMode.js → api/types/ModelSyncMode.js} +2 -4
  154. package/api/types/ModelSyncResponse.d.ts +6 -1
  155. package/api/types/PaginationDetails.d.ts +6 -0
  156. package/api/types/PaginationDetails.js +5 -0
  157. package/api/types/ScheduleEnvelope.d.ts +7 -0
  158. package/api/types/ScheduleEnvelope.js +5 -0
  159. package/api/types/ScheduleFrequency.d.ts +1 -1
  160. package/api/types/SchedulesEnvelope.d.ts +7 -0
  161. package/api/types/SchedulesEnvelope.js +5 -0
  162. package/api/types/SchemaField.d.ts +2 -0
  163. package/api/types/SchemaIdentityFunction.d.ts +3 -1
  164. package/api/types/SchemaIdentityFunction.js +2 -0
  165. package/api/types/SchemaPrimaryKeyOverrideInput.d.ts +7 -0
  166. package/api/types/SchemaPrimaryKeyOverrideInput.js +5 -0
  167. package/api/types/StartModelSyncResponseSchema.d.ts +1 -0
  168. package/api/types/SupportedBulkMode.d.ts +1 -1
  169. package/api/types/SupportedMode.d.ts +1 -1
  170. package/api/types/SyncDestinationProperties.d.ts +1 -0
  171. package/api/types/Target.d.ts +4 -1
  172. package/api/types/TargetCreateInput.d.ts +11 -0
  173. package/api/types/TargetCreateInput.js +5 -0
  174. package/api/types/TargetField.d.ts +1 -0
  175. package/api/types/TypesType.d.ts +1 -1
  176. package/api/types/UpdateBulkField.d.ts +9 -0
  177. package/api/types/UpdateBulkField.js +5 -0
  178. package/api/types/UtilEnumValue.d.ts +7 -0
  179. package/api/types/UtilEnumValue.js +5 -0
  180. package/api/types/UtilFieldType.d.ts +1 -1
  181. package/api/types/V2ConnectionForm.d.ts +7 -0
  182. package/api/types/V2ConnectionForm.js +5 -0
  183. package/api/types/V2EnricherConfiguration.d.ts +1 -1
  184. package/api/types/V2EnricherMapping.d.ts +1 -1
  185. package/api/types/V2ExecutionLogType.d.ts +1 -1
  186. package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
  187. package/api/types/V2SampleRecord.d.ts +1 -1
  188. package/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
  189. package/api/types/V4BulkSyncExecutionLogs.d.ts +1 -1
  190. package/api/types/V4BulkSyncScheduleApi.d.ts +13 -0
  191. package/api/types/V4BulkSyncScheduleApi.js +5 -0
  192. package/api/types/V4TargetCreator.d.ts +10 -0
  193. package/api/types/V4TargetCreator.js +5 -0
  194. package/api/types/V4TargetObjectsResponseEnvelope.d.ts +1 -0
  195. package/api/types/V4TargetPropertyValues.d.ts +14 -0
  196. package/api/types/V4TargetPropertyValues.js +5 -0
  197. package/api/types/V4TargetPropertyValuesEnvelope.d.ts +7 -0
  198. package/api/types/V4TargetPropertyValuesEnvelope.js +5 -0
  199. package/api/types/V4UserFieldRequest.d.ts +10 -0
  200. package/api/types/V4UserFieldRequest.js +5 -0
  201. package/api/types/Webhook.d.ts +1 -0
  202. package/api/types/WorkTaskStatus.d.ts +1 -1
  203. package/api/types/index.d.ts +20 -1
  204. package/api/types/index.js +20 -1
  205. package/core/auth/BearerToken.d.ts +1 -1
  206. package/core/fetcher/APIResponse.d.ts +1 -1
  207. package/core/fetcher/Fetcher.d.ts +6 -3
  208. package/core/fetcher/Fetcher.js +20 -189
  209. package/core/fetcher/Supplier.d.ts +1 -1
  210. package/core/fetcher/createRequestUrl.d.ts +1 -0
  211. package/core/fetcher/createRequestUrl.js +12 -0
  212. package/core/fetcher/getFetchFn.d.ts +4 -0
  213. package/core/fetcher/getFetchFn.js +68 -0
  214. package/core/fetcher/getHeader.js +1 -2
  215. package/core/fetcher/getRequestBody.d.ts +7 -0
  216. package/core/fetcher/getRequestBody.js +23 -0
  217. package/core/fetcher/getResponseBody.d.ts +1 -0
  218. package/core/fetcher/getResponseBody.js +54 -0
  219. package/core/fetcher/makeRequest.d.ts +1 -0
  220. package/core/fetcher/makeRequest.js +42 -0
  221. package/core/fetcher/requestWithRetries.d.ts +1 -0
  222. package/core/fetcher/requestWithRetries.js +40 -0
  223. package/core/fetcher/signals.d.ts +11 -0
  224. package/core/fetcher/signals.js +36 -0
  225. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  226. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  227. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  228. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
  229. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  230. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  231. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  232. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
  233. package/core/json.d.ts +15 -0
  234. package/core/json.js +24 -0
  235. package/core/runtime/runtime.d.ts +2 -1
  236. package/core/runtime/runtime.js +52 -41
  237. package/dist/Client.d.ts +20 -15
  238. package/dist/Client.js +9 -9
  239. package/dist/api/errors/BadRequestError.js +17 -7
  240. package/dist/api/errors/ConflictError.js +17 -7
  241. package/dist/api/errors/ForbiddenError.js +17 -7
  242. package/dist/api/errors/InternalServerError.js +17 -7
  243. package/dist/api/errors/NotFoundError.js +17 -7
  244. package/dist/api/errors/UnauthorizedError.js +17 -7
  245. package/dist/api/errors/UnprocessableEntityError.js +17 -7
  246. package/dist/api/resources/bulkSync/client/Client.d.ts +47 -6
  247. package/dist/api/resources/bulkSync/client/Client.js +135 -157
  248. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +11 -3
  249. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +11 -3
  250. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +13 -2
  251. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +75 -79
  252. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +18 -0
  253. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
  254. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  255. package/dist/api/resources/bulkSync/resources/index.d.ts +2 -0
  256. package/dist/api/resources/bulkSync/resources/index.js +20 -8
  257. package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +113 -0
  258. package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +398 -0
  259. package/dist/api/resources/bulkSync/resources/schedules/client/index.d.ts +1 -0
  260. package/dist/api/resources/bulkSync/resources/schedules/client/index.js +17 -0
  261. package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +15 -0
  262. package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js +5 -0
  263. package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +15 -0
  264. package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js +5 -0
  265. package/dist/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +2 -0
  266. package/dist/api/resources/bulkSync/resources/schedules/client/requests/index.js +2 -0
  267. package/dist/api/resources/bulkSync/resources/schedules/index.d.ts +1 -0
  268. package/dist/api/resources/bulkSync/resources/schedules/index.js +17 -0
  269. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +5 -0
  270. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +49 -66
  271. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +3 -1
  272. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
  273. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
  274. package/dist/api/resources/connections/client/Client.d.ts +41 -2
  275. package/dist/api/resources/connections/client/Client.js +159 -128
  276. package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +7 -0
  277. package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +3 -1
  278. package/dist/api/resources/connections/client/requests/TestConnectionRequest.d.ts +24 -0
  279. package/dist/api/resources/connections/client/requests/TestConnectionRequest.js +5 -0
  280. package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +3 -1
  281. package/dist/api/resources/connections/client/requests/index.d.ts +1 -0
  282. package/dist/api/resources/events/client/Client.d.ts +7 -2
  283. package/dist/api/resources/events/client/Client.js +33 -37
  284. package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +2 -2
  285. package/dist/api/resources/identity/client/Client.d.ts +7 -0
  286. package/dist/api/resources/identity/client/Client.js +25 -20
  287. package/dist/api/resources/index.d.ts +2 -1
  288. package/dist/api/resources/index.js +20 -9
  289. package/dist/api/resources/jobs/client/Client.d.ts +7 -2
  290. package/dist/api/resources/jobs/client/Client.js +25 -22
  291. package/dist/api/resources/modelSync/client/Client.d.ts +83 -52
  292. package/dist/api/resources/modelSync/client/Client.js +228 -403
  293. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +14 -5
  294. package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +1 -1
  295. package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
  296. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +14 -5
  297. package/dist/api/resources/modelSync/client/requests/index.d.ts +0 -2
  298. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +36 -8
  299. package/dist/api/resources/modelSync/resources/executions/client/Client.js +137 -68
  300. package/dist/api/resources/modelSync/resources/executions/client/index.d.ts +1 -1
  301. package/dist/api/resources/modelSync/resources/executions/client/index.js +15 -0
  302. package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +16 -0
  303. package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
  304. package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +13 -0
  305. package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +5 -0
  306. package/dist/api/resources/modelSync/resources/executions/client/requests/index.d.ts +2 -0
  307. package/dist/api/resources/modelSync/resources/executions/client/requests/index.js +2 -0
  308. package/dist/api/resources/modelSync/resources/index.d.ts +3 -0
  309. package/dist/api/resources/modelSync/resources/index.js +23 -7
  310. package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +143 -0
  311. package/dist/api/resources/modelSync/resources/targets/client/Client.js +395 -0
  312. package/dist/api/resources/modelSync/resources/targets/client/index.d.ts +1 -0
  313. package/dist/api/resources/modelSync/resources/targets/client/index.js +17 -0
  314. package/dist/api/resources/modelSync/{client/requests/ModelSyncGetTargetFieldsRequest.d.ts → resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts} +1 -1
  315. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +5 -0
  316. package/{api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts → dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts} +1 -1
  317. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +5 -0
  318. package/dist/api/resources/modelSync/resources/targets/client/requests/index.d.ts +2 -0
  319. package/dist/api/resources/modelSync/resources/targets/client/requests/index.js +2 -0
  320. package/dist/api/resources/modelSync/resources/targets/index.d.ts +1 -0
  321. package/dist/api/resources/modelSync/resources/targets/index.js +17 -0
  322. package/dist/api/resources/models/client/Client.d.ts +5 -0
  323. package/dist/api/resources/models/client/Client.js +83 -135
  324. package/dist/api/resources/organization/client/Client.d.ts +7 -0
  325. package/dist/api/resources/organization/client/Client.js +53 -72
  326. package/dist/api/resources/permissions/client/Client.d.ts +7 -2
  327. package/dist/api/resources/permissions/resources/index.js +17 -7
  328. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +5 -0
  329. package/dist/api/resources/permissions/resources/policies/client/Client.js +47 -72
  330. package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +5 -0
  331. package/dist/api/resources/permissions/resources/roles/client/Client.js +47 -72
  332. package/dist/api/resources/queryRunner/client/Client.d.ts +5 -0
  333. package/dist/api/resources/queryRunner/client/Client.js +33 -37
  334. package/dist/api/resources/schemas/client/Client.d.ts +68 -0
  335. package/dist/api/resources/schemas/client/Client.js +302 -59
  336. package/dist/api/resources/schemas/client/index.d.ts +1 -1
  337. package/dist/api/resources/schemas/client/index.js +15 -0
  338. package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +11 -0
  339. package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +5 -0
  340. package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +11 -0
  341. package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +5 -0
  342. package/dist/api/resources/schemas/client/requests/index.d.ts +2 -0
  343. package/dist/api/resources/schemas/client/requests/index.js +2 -0
  344. package/dist/api/resources/users/client/Client.d.ts +5 -0
  345. package/dist/api/resources/users/client/Client.js +55 -87
  346. package/dist/api/resources/webhooks/client/Client.d.ts +33 -4
  347. package/dist/api/resources/webhooks/client/Client.js +169 -76
  348. package/dist/api/types/BackendOAuthPrompt.d.ts +8 -0
  349. package/dist/api/types/BackendOAuthPrompt.js +5 -0
  350. package/dist/api/types/BulkBulkSyncSchedule.d.ts +20 -0
  351. package/dist/api/types/BulkBulkSyncSchedule.js +5 -0
  352. package/dist/api/types/BulkDiscover.d.ts +1 -1
  353. package/dist/api/types/BulkExecutionStatus.d.ts +2 -1
  354. package/dist/api/types/BulkExecutionStatus.js +1 -0
  355. package/dist/api/types/BulkFetchMode.d.ts +1 -1
  356. package/dist/api/types/BulkField.d.ts +2 -0
  357. package/dist/api/types/BulkNormalizeNames.d.ts +9 -0
  358. package/dist/api/types/BulkNormalizeNames.js +11 -0
  359. package/dist/api/types/BulkSchema.d.ts +1 -0
  360. package/dist/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
  361. package/dist/api/types/BulkSchemaExecutionStatus.js +1 -0
  362. package/dist/api/types/BulkSelectiveMode.d.ts +1 -1
  363. package/dist/api/types/BulkSyncExecution.d.ts +6 -0
  364. package/dist/api/types/BulkSyncMode.d.ts +11 -0
  365. package/dist/api/types/BulkSyncMode.js +10 -0
  366. package/dist/api/types/BulkSyncResponse.d.ts +10 -1
  367. package/dist/api/types/BulkSyncSchemaExecution.d.ts +3 -0
  368. package/dist/api/types/CancelModelSyncResponse.d.ts +6 -0
  369. package/dist/api/types/CancelModelSyncResponse.js +5 -0
  370. package/dist/api/types/CancelModelSyncResponseEnvelope.d.ts +7 -0
  371. package/dist/api/types/CancelModelSyncResponseEnvelope.js +5 -0
  372. package/dist/api/types/ConnectCardResponse.d.ts +1 -0
  373. package/dist/api/types/ConnectionResponseSchema.d.ts +5 -0
  374. package/dist/api/types/ConnectionType.d.ts +5 -0
  375. package/dist/api/types/ConnectionTypeSchema.d.ts +1 -0
  376. package/dist/api/types/CreateConnectionResponseSchema.d.ts +3 -0
  377. package/dist/api/types/EventBody.d.ts +1 -1
  378. package/dist/api/types/ExecutionCounts.d.ts +2 -0
  379. package/dist/api/types/ExecutionStatus.d.ts +1 -1
  380. package/dist/api/types/FilterFieldReferenceType.d.ts +1 -1
  381. package/dist/api/types/FilterFunction.d.ts +3 -1
  382. package/dist/api/types/FilterFunction.js +2 -0
  383. package/dist/api/types/GetIdentityResponseSchema.d.ts +7 -0
  384. package/dist/api/types/JsonschemaDefinitions.d.ts +1 -1
  385. package/dist/api/types/JsonschemaForm.d.ts +1 -1
  386. package/dist/api/types/LabelLabel.d.ts +1 -1
  387. package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -0
  388. package/dist/api/types/ListExecutionResponseEnvelope.d.ts +1 -0
  389. package/dist/api/types/ModelField.d.ts +4 -0
  390. package/dist/api/types/ModelSyncField.d.ts +2 -0
  391. package/dist/api/types/{SyncMode.d.ts → ModelSyncMode.d.ts} +2 -4
  392. package/{api/types/SyncMode.js → dist/api/types/ModelSyncMode.js} +2 -4
  393. package/dist/api/types/ModelSyncResponse.d.ts +6 -1
  394. package/dist/api/types/PaginationDetails.d.ts +6 -0
  395. package/dist/api/types/PaginationDetails.js +5 -0
  396. package/dist/api/types/ScheduleEnvelope.d.ts +7 -0
  397. package/dist/api/types/ScheduleEnvelope.js +5 -0
  398. package/dist/api/types/ScheduleFrequency.d.ts +1 -1
  399. package/dist/api/types/SchedulesEnvelope.d.ts +7 -0
  400. package/dist/api/types/SchedulesEnvelope.js +5 -0
  401. package/dist/api/types/SchemaField.d.ts +2 -0
  402. package/dist/api/types/SchemaIdentityFunction.d.ts +3 -1
  403. package/dist/api/types/SchemaIdentityFunction.js +2 -0
  404. package/dist/api/types/SchemaPrimaryKeyOverrideInput.d.ts +7 -0
  405. package/dist/api/types/SchemaPrimaryKeyOverrideInput.js +5 -0
  406. package/dist/api/types/StartModelSyncResponseSchema.d.ts +1 -0
  407. package/dist/api/types/SupportedBulkMode.d.ts +1 -1
  408. package/dist/api/types/SupportedMode.d.ts +1 -1
  409. package/dist/api/types/SyncDestinationProperties.d.ts +1 -0
  410. package/dist/api/types/Target.d.ts +4 -1
  411. package/dist/api/types/TargetCreateInput.d.ts +11 -0
  412. package/dist/api/types/TargetCreateInput.js +5 -0
  413. package/dist/api/types/TargetField.d.ts +1 -0
  414. package/dist/api/types/TypesType.d.ts +1 -1
  415. package/dist/api/types/UpdateBulkField.d.ts +9 -0
  416. package/dist/api/types/UpdateBulkField.js +5 -0
  417. package/dist/api/types/UtilEnumValue.d.ts +7 -0
  418. package/dist/api/types/UtilEnumValue.js +5 -0
  419. package/dist/api/types/UtilFieldType.d.ts +1 -1
  420. package/dist/api/types/V2ConnectionForm.d.ts +7 -0
  421. package/dist/api/types/V2ConnectionForm.js +5 -0
  422. package/dist/api/types/V2EnricherConfiguration.d.ts +1 -1
  423. package/dist/api/types/V2EnricherMapping.d.ts +1 -1
  424. package/dist/api/types/V2ExecutionLogType.d.ts +1 -1
  425. package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
  426. package/dist/api/types/V2SampleRecord.d.ts +1 -1
  427. package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
  428. package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +1 -1
  429. package/dist/api/types/V4BulkSyncScheduleApi.d.ts +13 -0
  430. package/dist/api/types/V4BulkSyncScheduleApi.js +5 -0
  431. package/dist/api/types/V4TargetCreator.d.ts +10 -0
  432. package/dist/api/types/V4TargetCreator.js +5 -0
  433. package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +1 -0
  434. package/dist/api/types/V4TargetPropertyValues.d.ts +14 -0
  435. package/dist/api/types/V4TargetPropertyValues.js +5 -0
  436. package/dist/api/types/V4TargetPropertyValuesEnvelope.d.ts +7 -0
  437. package/dist/api/types/V4TargetPropertyValuesEnvelope.js +5 -0
  438. package/dist/api/types/V4UserFieldRequest.d.ts +10 -0
  439. package/dist/api/types/V4UserFieldRequest.js +5 -0
  440. package/dist/api/types/Webhook.d.ts +1 -0
  441. package/dist/api/types/WorkTaskStatus.d.ts +1 -1
  442. package/dist/api/types/index.d.ts +20 -1
  443. package/dist/api/types/index.js +20 -1
  444. package/dist/core/auth/BearerToken.d.ts +1 -1
  445. package/dist/core/fetcher/APIResponse.d.ts +1 -1
  446. package/dist/core/fetcher/Fetcher.d.ts +6 -3
  447. package/dist/core/fetcher/Fetcher.js +20 -189
  448. package/dist/core/fetcher/Supplier.d.ts +1 -1
  449. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  450. package/dist/core/fetcher/createRequestUrl.js +12 -0
  451. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  452. package/dist/core/fetcher/getFetchFn.js +68 -0
  453. package/dist/core/fetcher/getHeader.js +1 -2
  454. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  455. package/dist/core/fetcher/getRequestBody.js +23 -0
  456. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  457. package/dist/core/fetcher/getResponseBody.js +54 -0
  458. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  459. package/dist/core/fetcher/makeRequest.js +42 -0
  460. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  461. package/dist/core/fetcher/requestWithRetries.js +40 -0
  462. package/dist/core/fetcher/signals.d.ts +11 -0
  463. package/dist/core/fetcher/signals.js +36 -0
  464. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  465. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  466. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  467. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
  468. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  469. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  470. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  471. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
  472. package/dist/core/json.d.ts +15 -0
  473. package/dist/core/json.js +24 -0
  474. package/dist/core/runtime/runtime.d.ts +2 -1
  475. package/dist/core/runtime/runtime.js +52 -41
  476. package/dist/environments.d.ts +1 -1
  477. package/dist/errors/PolytomicError.js +2 -1
  478. package/dist/errors/PolytomicTimeoutError.d.ts +1 -1
  479. package/dist/errors/PolytomicTimeoutError.js +2 -2
  480. package/dist/index.js +17 -7
  481. package/dist/version.d.ts +1 -0
  482. package/dist/version.js +4 -0
  483. package/environments.d.ts +1 -1
  484. package/errors/PolytomicError.js +2 -1
  485. package/errors/PolytomicTimeoutError.d.ts +1 -1
  486. package/errors/PolytomicTimeoutError.js +2 -2
  487. package/index.js +17 -7
  488. package/{jest.config.js → jest.config.mjs} +4 -1
  489. package/package.json +18 -14
  490. package/reference.md +6382 -0
  491. package/scripts/rename-to-esm-files.js +115 -0
  492. package/version.d.ts +1 -0
  493. package/version.js +4 -0
  494. /package/api/resources/{modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js → bulkSync/resources/executions/client/requests/ExecutionsListRequest.js} +0 -0
  495. /package/api/resources/{modelSync/client/requests/ModelSyncGetTargetRequest.js → bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js} +0 -0
  496. /package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js → api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js} +0 -0
  497. /package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.js → api/resources/connections/client/requests/TestConnectionRequest.js} +0 -0
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Polytomic from "../index";
5
+ export interface CancelModelSyncResponseEnvelope {
6
+ data?: Polytomic.CancelModelSyncResponse;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ConnectCardResponse {
5
+ /** URL to redirect the user to in order to create the new connection. */
5
6
  redirect_url?: string;
6
7
  token?: string;
7
8
  }
@@ -6,11 +6,16 @@ export interface ConnectionResponseSchema {
6
6
  /** API calls made to service in the last 24h (supported integrations only). */
7
7
  api_calls_last_24_hours?: number;
8
8
  configuration?: Record<string, unknown>;
9
+ created_at?: string;
10
+ created_by?: Polytomic.CommonOutputActor;
9
11
  id?: string;
10
12
  name?: string;
11
13
  organization_id?: string;
12
14
  policies?: string[];
15
+ saved?: boolean;
13
16
  status?: string;
14
17
  status_error?: string;
15
18
  type?: Polytomic.ConnectionTypeSchema;
19
+ updated_at?: string;
20
+ updated_by?: Polytomic.CommonOutputActor;
16
21
  }
@@ -1,9 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Polytomic from "../index";
4
5
  export interface ConnectionType {
6
+ configurationForm?: Polytomic.V2ConnectionForm;
5
7
  envConfig?: Record<string, unknown>;
6
8
  id?: string;
9
+ initialConfiguration?: Record<string, unknown>;
10
+ logo_url?: string;
7
11
  name?: string;
12
+ oauth_prompt?: Polytomic.BackendOAuthPrompt;
8
13
  use_oauth?: boolean;
9
14
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface ConnectionTypeSchema {
5
5
  id?: string;
6
+ logo_url?: string;
6
7
  name?: string;
7
8
  operations?: string[];
8
9
  }
@@ -8,10 +8,13 @@ export interface CreateConnectionResponseSchema {
8
8
  /** URL to visit to complete connection authentication. */
9
9
  auth_url?: string;
10
10
  configuration?: Record<string, unknown>;
11
+ /** Interval for connection health checking. */
12
+ healthcheck_interval?: string;
11
13
  id?: string;
12
14
  name?: string;
13
15
  organization_id?: string;
14
16
  policies?: string[];
17
+ saved?: boolean;
15
18
  status?: string;
16
19
  status_error?: string;
17
20
  type?: Polytomic.ConnectionTypeSchema;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Polytomic from "../index";
5
- export declare type EventBody = Polytomic.SyncRunningEvent | Polytomic.SyncCompletedEvent | Polytomic.SyncFailedEvent | Polytomic.SyncCanceledEvent | Polytomic.SyncCompletedWithErrorsEvent | Polytomic.BulkSyncRunningEvent | Polytomic.BulkSyncCompletedEvent | Polytomic.BulkSyncCanceledEvent | Polytomic.BulkSyncCompletedWithErrorEvent | Polytomic.BulkSyncFailedEvent;
5
+ export type EventBody = Polytomic.SyncRunningEvent | Polytomic.SyncCompletedEvent | Polytomic.SyncFailedEvent | Polytomic.SyncCanceledEvent | Polytomic.SyncCompletedWithErrorsEvent | Polytomic.BulkSyncRunningEvent | Polytomic.BulkSyncCompletedEvent | Polytomic.BulkSyncCanceledEvent | Polytomic.BulkSyncCompletedWithErrorEvent | Polytomic.BulkSyncFailedEvent;
@@ -7,4 +7,6 @@ export interface ExecutionCounts {
7
7
  insert?: number;
8
8
  total?: number;
9
9
  update?: number;
10
+ upserts?: number;
11
+ warnings?: number;
10
12
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type ExecutionStatus = "created" | "scheduled" | "queued" | "waiting" | "running" | "processing" | "canceling" | "canceled" | "completed" | "failed" | "interrupted";
4
+ export type ExecutionStatus = "created" | "scheduled" | "queued" | "waiting" | "running" | "processing" | "canceling" | "canceled" | "completed" | "failed" | "interrupted";
5
5
  export declare const ExecutionStatus: {
6
6
  readonly Created: "created";
7
7
  readonly Scheduled: "scheduled";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type FilterFieldReferenceType = "Model" | "Target";
4
+ export type FilterFieldReferenceType = "Model" | "Target";
5
5
  export declare const FilterFieldReferenceType: {
6
6
  readonly Model: "Model";
7
7
  readonly Target: "Target";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type FilterFunction = "Equality" | "Inequality" | "IsNull" | "IsNotNull" | "True" | "False" | "OnOrAfter" | "OnOrBefore" | "GreaterThan" | "GreaterThanEqual" | "LessThan" | "LessThanEqual" | "StringContains" | "StringEndsWith" | "StringDoesNotContain" | "StringDoesNotEndWith" | "StringOneOf" | "StringNotOneOf" | "Between" | "ArrayContains" | "ArrayDoesNotContain" | "InTheLast" | "RelativeOnOrBefore" | "RelativeOnOrAfter" | "StringLike" | "StringNotLike" | "StringMatchesTrimmed";
4
+ export type FilterFunction = "Equality" | "Inequality" | "IsNull" | "IsNotNull" | "True" | "False" | "OnOrAfter" | "OnOrBefore" | "GreaterThan" | "GreaterThanEqual" | "LessThan" | "LessThanEqual" | "StringContains" | "StringStartsWith" | "StringEndsWith" | "StringDoesNotContain" | "StringDoesNotStartWith" | "StringDoesNotEndWith" | "StringOneOf" | "StringNotOneOf" | "Between" | "ArrayContains" | "ArrayDoesNotContain" | "InTheLast" | "RelativeOnOrBefore" | "RelativeOnOrAfter" | "StringLike" | "StringNotLike" | "StringMatchesTrimmed";
5
5
  export declare const FilterFunction: {
6
6
  readonly Equality: "Equality";
7
7
  readonly Inequality: "Inequality";
@@ -16,8 +16,10 @@ export declare const FilterFunction: {
16
16
  readonly LessThan: "LessThan";
17
17
  readonly LessThanEqual: "LessThanEqual";
18
18
  readonly StringContains: "StringContains";
19
+ readonly StringStartsWith: "StringStartsWith";
19
20
  readonly StringEndsWith: "StringEndsWith";
20
21
  readonly StringDoesNotContain: "StringDoesNotContain";
22
+ readonly StringDoesNotStartWith: "StringDoesNotStartWith";
21
23
  readonly StringDoesNotEndWith: "StringDoesNotEndWith";
22
24
  readonly StringOneOf: "StringOneOf";
23
25
  readonly StringNotOneOf: "StringNotOneOf";
@@ -18,8 +18,10 @@ exports.FilterFunction = {
18
18
  LessThan: "LessThan",
19
19
  LessThanEqual: "LessThanEqual",
20
20
  StringContains: "StringContains",
21
+ StringStartsWith: "StringStartsWith",
21
22
  StringEndsWith: "StringEndsWith",
22
23
  StringDoesNotContain: "StringDoesNotContain",
24
+ StringDoesNotStartWith: "StringDoesNotStartWith",
23
25
  StringDoesNotEndWith: "StringDoesNotEndWith",
24
26
  StringOneOf: "StringOneOf",
25
27
  StringNotOneOf: "StringNotOneOf",
@@ -2,13 +2,20 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface GetIdentityResponseSchema {
5
+ /** The email of the caller. */
5
6
  email?: string;
7
+ /** The ID of the caller; this will be omitted for non-user callers. */
6
8
  id?: string;
9
+ /** Whether the caller is using an organization key. */
7
10
  is_organization?: boolean;
11
+ /** Whether the caller is using a partner key. */
8
12
  is_partner?: boolean;
9
13
  is_system?: boolean;
14
+ /** Whether the caller is a user. */
10
15
  is_user?: boolean;
16
+ /** The ID of the organization the caller belongs to. */
11
17
  organization_id?: string;
18
+ /** The name of the organization the caller belongs to. */
12
19
  organization_name?: string;
13
20
  role?: string;
14
21
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Polytomic from "../index";
5
- export declare type JsonschemaDefinitions = Record<string, Polytomic.JsonschemaSchema>;
5
+ export type JsonschemaDefinitions = Record<string, Polytomic.JsonschemaSchema>;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type JsonschemaForm = Record<string, unknown>;
4
+ export type JsonschemaForm = Record<string, unknown>;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type LabelLabel = Record<string, unknown>;
4
+ export type LabelLabel = Record<string, unknown>;
@@ -4,4 +4,5 @@
4
4
  import * as Polytomic from "../index";
5
5
  export interface ListBulkSyncExecutionsEnvelope {
6
6
  data?: Polytomic.BulkSyncExecution[];
7
+ pagination?: Polytomic.PaginationDetails;
7
8
  }
@@ -4,4 +4,5 @@
4
4
  import * as Polytomic from "../index";
5
5
  export interface ListExecutionResponseEnvelope {
6
6
  data?: Polytomic.GetExecutionResponseSchema[];
7
+ pagination?: Polytomic.PaginationDetails;
7
8
  }
@@ -1,7 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Polytomic from "../index";
4
5
  export interface ModelField {
6
+ created_at?: string;
7
+ created_by?: Polytomic.CommonOutputActor;
5
8
  description?: string;
6
9
  example?: unknown;
7
10
  id?: string;
@@ -10,5 +13,6 @@ export interface ModelField {
10
13
  remote_type?: string;
11
14
  type?: string;
12
15
  unique?: boolean;
16
+ updated_at?: string;
13
17
  user_added?: boolean;
14
18
  }
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as Polytomic from "../index";
5
5
  export interface ModelSyncField {
6
+ /** Whether the field should be encrypted. */
7
+ encryption_enabled?: boolean;
6
8
  /** New is set to true if the target field should be created by Polytomic. This is not supported by all backends. */
7
9
  new?: boolean;
8
10
  /** Value to set in the target field; if provided, 'source' is ignored. */
@@ -4,14 +4,12 @@
4
4
  /**
5
5
  *
6
6
  */
7
- export declare type SyncMode = "create" | "update" | "updateOrCreate" | "replace" | "append" | "snapshot" | "replicate" | "remove";
8
- export declare const SyncMode: {
7
+ export type ModelSyncMode = "create" | "update" | "updateOrCreate" | "replace" | "append" | "remove";
8
+ export declare const ModelSyncMode: {
9
9
  readonly Create: "create";
10
10
  readonly Update: "update";
11
11
  readonly UpdateOrCreate: "updateOrCreate";
12
12
  readonly Replace: "replace";
13
13
  readonly Append: "append";
14
- readonly Snapshot: "snapshot";
15
- readonly Replicate: "replicate";
16
14
  readonly Remove: "remove";
17
15
  };
@@ -3,14 +3,12 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SyncMode = void 0;
7
- exports.SyncMode = {
6
+ exports.ModelSyncMode = void 0;
7
+ exports.ModelSyncMode = {
8
8
  Create: "create",
9
9
  Update: "update",
10
10
  UpdateOrCreate: "updateOrCreate",
11
11
  Replace: "replace",
12
12
  Append: "append",
13
- Snapshot: "snapshot",
14
- Replicate: "replicate",
15
13
  Remove: "remove",
16
14
  };
@@ -6,18 +6,23 @@ export interface ModelSyncResponse {
6
6
  active?: boolean;
7
7
  created_at?: string;
8
8
  created_by?: Polytomic.CommonOutputActor;
9
+ encryption_passphrase?: string;
9
10
  fields?: Polytomic.ModelSyncField[];
10
11
  filter_logic?: string;
11
12
  filters?: Polytomic.Filter[];
12
13
  id?: string;
13
14
  identity?: Polytomic.Identity;
14
- mode?: string;
15
+ mode?: Polytomic.ModelSyncMode;
16
+ /** Model IDs used in the sync. */
17
+ model_ids?: string[];
15
18
  name?: string;
19
+ only_enrich_updates?: boolean;
16
20
  organization_id?: string;
17
21
  override_fields?: Polytomic.ModelSyncField[];
18
22
  overrides?: Polytomic.Override[];
19
23
  policies?: string[];
20
24
  schedule?: Polytomic.Schedule;
25
+ skip_initial_backfill?: boolean;
21
26
  sync_all_records?: boolean;
22
27
  target?: Polytomic.Target;
23
28
  updated_at?: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PaginationDetails {
5
+ next_page_token?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Polytomic from "../index";
5
+ export interface ScheduleEnvelope {
6
+ data?: Polytomic.BulkBulkSyncSchedule;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type ScheduleFrequency = "manual" | "continuous" | "hourly" | "daily" | "weekly" | "custom" | "builder" | "runafter" | "multi" | "dbtcloud";
4
+ export type ScheduleFrequency = "manual" | "continuous" | "hourly" | "daily" | "weekly" | "custom" | "builder" | "runafter" | "multi" | "dbtcloud";
5
5
  export declare const ScheduleFrequency: {
6
6
  readonly Manual: "manual";
7
7
  readonly Continuous: "continuous";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Polytomic from "../index";
5
+ export interface SchedulesEnvelope {
6
+ data?: Polytomic.BulkBulkSyncSchedule[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,8 @@ import * as Polytomic from "../index";
5
5
  export interface SchemaField {
6
6
  association?: Polytomic.SchemaAssociation;
7
7
  id?: string;
8
+ /** Whether this field is part of the schema's primary key. */
9
+ is_primary_key?: boolean;
8
10
  name?: string;
9
11
  /** The type of the field from the remote system. */
10
12
  remote_type?: string;
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type SchemaIdentityFunction = "Equality" | "ISubstring" | "OneOf";
4
+ export type SchemaIdentityFunction = "Equality" | "ISubstring" | "OneOf" | "DomainMatch" | "HostnameMatch";
5
5
  export declare const SchemaIdentityFunction: {
6
6
  readonly Equality: "Equality";
7
7
  readonly ISubstring: "ISubstring";
8
8
  readonly OneOf: "OneOf";
9
+ readonly DomainMatch: "DomainMatch";
10
+ readonly HostnameMatch: "HostnameMatch";
9
11
  };
@@ -8,4 +8,6 @@ exports.SchemaIdentityFunction = {
8
8
  Equality: "Equality",
9
9
  ISubstring: "ISubstring",
10
10
  OneOf: "OneOf",
11
+ DomainMatch: "DomainMatch",
12
+ HostnameMatch: "HostnameMatch",
11
13
  };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SchemaPrimaryKeyOverrideInput {
5
+ field_id: string;
6
+ is_primary_key: boolean;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@
4
4
  import * as Polytomic from "../index";
5
5
  export interface StartModelSyncResponseSchema {
6
6
  created_at?: string;
7
+ /** Execution ID */
7
8
  id?: string;
8
9
  status?: Polytomic.ExecutionStatus;
9
10
  }
@@ -4,7 +4,7 @@
4
4
  import * as Polytomic from "../index";
5
5
  export interface SupportedBulkMode {
6
6
  description?: string;
7
- id?: Polytomic.SyncMode;
7
+ id?: Polytomic.BulkSyncMode;
8
8
  label?: string;
9
9
  requires_identity?: boolean;
10
10
  supports_field_sync_mode?: boolean;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as Polytomic from "../index";
5
5
  export interface SupportedMode {
6
- id?: Polytomic.SyncMode;
6
+ id?: Polytomic.ModelSyncMode;
7
7
  /** True if the sync mode requires an identity field mapping. */
8
8
  requires_identity?: boolean;
9
9
  /** True if the target supports per-field sync modes. */
@@ -9,6 +9,7 @@ export interface SyncDestinationProperties {
9
9
  primary_metadata_object?: string;
10
10
  requires_configuration?: boolean;
11
11
  supports_field_creation?: boolean;
12
+ supports_field_encryption?: boolean;
12
13
  supports_field_type_selection?: boolean;
13
14
  supports_identity_field_creation?: boolean;
14
15
  supports_target_filters?: boolean;
@@ -4,8 +4,11 @@
4
4
  export interface Target {
5
5
  configuration?: Record<string, unknown>;
6
6
  connection_id: string;
7
+ /** Create a new target object with these properties. */
8
+ create?: Record<string, string>;
7
9
  filter_logic?: string;
10
+ /** Name for a new target object. */
8
11
  new_name?: string;
9
- object: string;
12
+ object?: string;
10
13
  search_values?: Record<string, unknown>;
11
14
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TargetCreateInput {
5
+ /** True if the property is an enum. */
6
+ enum?: boolean;
7
+ /** The identifier of the target property. */
8
+ id?: string;
9
+ /** A human readable title for the target property. */
10
+ title?: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,7 @@ export interface TargetField {
6
6
  association?: boolean;
7
7
  createable?: boolean;
8
8
  description?: string;
9
+ encryptable?: boolean;
9
10
  filterable?: boolean;
10
11
  id?: string;
11
12
  identity_functions?: Polytomic.IdentityFunction[];
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type TypesType = unknown;
4
+ export type TypesType = unknown;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UpdateBulkField {
5
+ enabled?: boolean;
6
+ id?: string;
7
+ obfuscated?: boolean;
8
+ user_output_name?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UtilEnumValue {
5
+ label?: string;
6
+ value?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type UtilFieldType = "unknown" | "string" | "number" | "boolean" | "datetime" | "array" | "object" | "binary";
4
+ export type UtilFieldType = "unknown" | "string" | "number" | "boolean" | "datetime" | "array" | "object" | "binary";
5
5
  export declare const UtilFieldType: {
6
6
  readonly Unknown: "unknown";
7
7
  readonly String: "string";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface V2ConnectionForm {
5
+ jsonschema?: unknown;
6
+ uischema?: unknown;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,4 +4,4 @@
4
4
  /**
5
5
  * Similar to a model configuration, this configures the enricher. For example, if you wanted to use Apollo to enrich people, you would send `{"object": "people"}` as the configuration. Each enricher configuration can be found in the connection configuration docs.
6
6
  */
7
- export declare type V2EnricherConfiguration = Record<string, unknown>;
7
+ export type V2EnricherConfiguration = Record<string, unknown>;
@@ -4,4 +4,4 @@
4
4
  /**
5
5
  * A map of parent model Source Name to child model Source Name. For example, if your model has a field called `work_email` and the enricher accepts a field called `email`, you'd send a map of `{"work_email":"email"}`. The set of required input mappings varies based on the configuration of the enrichment. You can use the `enrichment/{connection_id}/inputfields` API to discover available input field combinations for a given configuration.
6
6
  */
7
- export declare type V2EnricherMapping = Record<string, string>;
7
+ export type V2EnricherMapping = Record<string, string>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type V2ExecutionLogType = "records" | "errors" | "warnings" | "inserts" | "updates" | "deletes";
4
+ export type V2ExecutionLogType = "records" | "errors" | "warnings" | "inserts" | "updates" | "deletes";
5
5
  export declare const V2ExecutionLogType: {
6
6
  readonly Records: "records";
7
7
  readonly Errors: "errors";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type V2OrderedMapStringGithubComInvopopJsonschemaSchema = Record<string, unknown>;
4
+ export type V2OrderedMapStringGithubComInvopopJsonschemaSchema = Record<string, unknown>;
@@ -4,4 +4,4 @@
4
4
  /**
5
5
  * A map of `fieldSource` -> `fieldName: fieldValue`. Because there may be field name conflicts between the base model and enrichments, the base model fields are placed in a map under the model ID. Fields from enrichments are placed under the enricher ID.
6
6
  */
7
- export declare type V2SampleRecord = Record<string, Record<string, unknown>>;
7
+ export type V2SampleRecord = Record<string, Record<string, unknown>>;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Polytomic from "../index";
5
- export declare type V2SchemaConfigurationFieldsItem = string | Polytomic.FieldConfiguration;
5
+ export type V2SchemaConfigurationFieldsItem = string | Polytomic.FieldConfiguration;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type V4BulkSyncExecutionLogs = Record<string, unknown>;
4
+ export type V4BulkSyncExecutionLogs = Record<string, unknown>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Polytomic from "../index";
5
+ export interface V4BulkSyncScheduleApi {
6
+ dayOfMonth?: string;
7
+ dayOfWeek?: string;
8
+ frequency: Polytomic.ScheduleFrequency;
9
+ hour?: string;
10
+ minute?: string;
11
+ month?: string;
12
+ selectiveMode?: Polytomic.BulkSelectiveMode;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });