polytomic 1.16.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/Client.d.ts +14 -19
  2. package/api/errors/BadRequestError.js +7 -17
  3. package/api/errors/ConflictError.js +7 -17
  4. package/api/errors/ForbiddenError.js +7 -17
  5. package/api/errors/InternalServerError.js +7 -17
  6. package/api/errors/NotFoundError.js +7 -17
  7. package/api/errors/UnauthorizedError.js +7 -17
  8. package/api/errors/UnprocessableEntityError.js +7 -17
  9. package/api/resources/bulkSync/client/Client.d.ts +173 -24
  10. package/api/resources/bulkSync/client/Client.js +339 -118
  11. package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
  12. package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
  13. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
  14. package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
  15. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  16. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
  17. package/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
  18. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
  19. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
  20. package/api/resources/bulkSync/resources/index.js +7 -17
  21. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
  22. package/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
  23. package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
  24. package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
  25. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
  26. package/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
  27. package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
  28. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
  29. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
  30. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
  31. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
  32. package/api/resources/connections/client/Client.d.ts +160 -12
  33. package/api/resources/connections/client/Client.js +473 -86
  34. package/api/resources/connections/client/requests/ApiRequest.d.ts +13 -0
  35. package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +15 -0
  36. package/api/resources/connections/client/requests/index.d.ts +2 -0
  37. package/api/resources/events/client/Client.d.ts +20 -7
  38. package/api/resources/events/client/Client.js +55 -33
  39. package/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
  40. package/api/resources/identity/client/Client.d.ts +11 -6
  41. package/api/resources/identity/client/Client.js +31 -24
  42. package/api/resources/index.js +7 -17
  43. package/api/resources/jobs/client/Client.d.ts +15 -8
  44. package/api/resources/jobs/client/Client.js +35 -26
  45. package/api/resources/modelSync/client/Client.d.ts +110 -19
  46. package/api/resources/modelSync/client/Client.js +287 -118
  47. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
  48. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
  49. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
  50. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
  51. package/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
  52. package/api/resources/modelSync/resources/executions/client/Client.js +115 -56
  53. package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
  54. package/api/resources/modelSync/resources/index.js +7 -17
  55. package/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
  56. package/api/resources/modelSync/resources/targets/client/Client.js +89 -49
  57. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
  58. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
  59. package/api/resources/models/client/Client.d.ts +79 -8
  60. package/api/resources/models/client/Client.js +214 -86
  61. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
  62. package/api/resources/notifications/client/Client.d.ts +13 -5
  63. package/api/resources/notifications/client/Client.js +48 -31
  64. package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
  65. package/api/resources/organization/client/Client.d.ts +31 -13
  66. package/api/resources/organization/client/Client.js +109 -55
  67. package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
  68. package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
  69. package/api/resources/permissions/client/Client.d.ts +2 -7
  70. package/api/resources/permissions/resources/index.js +7 -17
  71. package/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
  72. package/api/resources/permissions/resources/policies/client/Client.js +105 -47
  73. package/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
  74. package/api/resources/permissions/resources/roles/client/Client.js +110 -47
  75. package/api/resources/queryRunner/client/Client.d.ts +26 -7
  76. package/api/resources/queryRunner/client/Client.js +63 -35
  77. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
  78. package/api/resources/schemas/client/Client.d.ts +118 -23
  79. package/api/resources/schemas/client/Client.js +232 -86
  80. package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
  81. package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
  82. package/api/resources/users/client/Client.d.ts +44 -16
  83. package/api/resources/users/client/Client.js +133 -66
  84. package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +4 -0
  85. package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +4 -0
  86. package/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
  87. package/api/resources/webhooks/client/Client.d.ts +67 -21
  88. package/api/resources/webhooks/client/Client.js +165 -75
  89. package/api/types/ApiKeyResponse.d.ts +1 -0
  90. package/api/types/BulkBulkSyncSchedule.d.ts +1 -0
  91. package/api/types/BulkDiscover.d.ts +1 -1
  92. package/api/types/BulkExecutionStatus.d.ts +1 -1
  93. package/api/types/BulkFetchMode.d.ts +1 -1
  94. package/api/types/BulkNormalizeNames.d.ts +1 -1
  95. package/api/types/BulkOutputDisposition.d.ts +9 -0
  96. package/api/types/BulkOutputDisposition.js +11 -0
  97. package/api/types/BulkResyncMode.d.ts +9 -0
  98. package/api/types/BulkResyncMode.js +11 -0
  99. package/api/types/BulkScheduleSyncMode.d.ts +1 -1
  100. package/api/types/BulkSchema.d.ts +2 -0
  101. package/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
  102. package/api/types/BulkSchemaExecutionStatus.js +1 -0
  103. package/api/types/BulkSelectiveMode.d.ts +1 -1
  104. package/api/types/BulkSyncDest.d.ts +2 -0
  105. package/api/types/BulkSyncExecution.d.ts +1 -0
  106. package/api/types/BulkSyncExecutionStatus.d.ts +3 -0
  107. package/api/types/BulkSyncIngestionStatus.d.ts +14 -0
  108. package/{dist/version.js → api/types/BulkSyncIngestionStatus.js} +3 -2
  109. package/api/types/BulkSyncMode.d.ts +1 -1
  110. package/api/types/BulkSyncResponse.d.ts +2 -2
  111. package/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
  112. package/api/types/BulkSyncSource.d.ts +1 -0
  113. package/api/types/BulkSyncStatusResponse.d.ts +1 -0
  114. package/api/types/ConnectCardResponse.d.ts +1 -0
  115. package/api/types/ConnectionResponseSchema.d.ts +4 -2
  116. package/api/types/CreateSharedConnectionResponseSchema.d.ts +6 -0
  117. package/{version.js → api/types/CreateSharedConnectionResponseSchema.js} +3 -2
  118. package/api/types/Event.d.ts +4 -0
  119. package/api/types/EventBody.d.ts +1 -1
  120. package/api/types/ExecutionStatus.d.ts +1 -1
  121. package/api/types/FilterFieldReferenceType.d.ts +1 -1
  122. package/api/types/FilterFunction.d.ts +1 -1
  123. package/api/types/GetIdentityResponseSchema.d.ts +2 -0
  124. package/api/types/IngestionStatusLevel.d.ts +12 -0
  125. package/api/types/IngestionStatusLevel.js +11 -0
  126. package/api/types/JobResponse.d.ts +3 -0
  127. package/api/types/JsonschemaDefinitions.d.ts +1 -1
  128. package/api/types/JsonschemaForm.d.ts +1 -1
  129. package/api/types/LabelLabel.d.ts +1 -1
  130. package/api/types/ModelField.d.ts +1 -1
  131. package/api/types/ModelResponse.d.ts +2 -2
  132. package/api/types/ModelSyncMode.d.ts +2 -1
  133. package/api/types/ModelSyncMode.js +1 -0
  134. package/api/types/ModelSyncResponse.d.ts +2 -2
  135. package/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
  136. package/api/types/Organization.d.ts +5 -0
  137. package/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
  138. package/api/types/OutputActor.js +5 -0
  139. package/api/types/ScheduleFrequency.d.ts +1 -1
  140. package/api/types/SchemaIdentityFunction.d.ts +1 -1
  141. package/api/types/SourceMeta.d.ts +3 -0
  142. package/api/types/TypesType.d.ts +1 -1
  143. package/api/types/User.d.ts +6 -0
  144. package/api/types/UtilFieldType.d.ts +1 -1
  145. package/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +7 -0
  146. package/api/types/V2CreateSharedConnectionResponseEnvelope.js +5 -0
  147. package/api/types/V2EnricherConfiguration.d.ts +1 -1
  148. package/api/types/V2EnricherMapping.d.ts +1 -1
  149. package/api/types/V2ExecutionLogType.d.ts +1 -1
  150. package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
  151. package/api/types/V2SampleRecord.d.ts +1 -1
  152. package/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
  153. package/api/types/V3BulkSyncSourceCapabilities.d.ts +6 -0
  154. package/api/types/V3BulkSyncSourceCapabilities.js +5 -0
  155. package/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
  156. package/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
  157. package/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
  158. package/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
  159. package/api/types/V4RunQueryResult.d.ts +2 -1
  160. package/api/types/V4UserFieldRequest.d.ts +4 -0
  161. package/api/types/WorkTaskStatus.d.ts +1 -1
  162. package/api/types/index.d.ts +13 -6
  163. package/api/types/index.js +13 -6
  164. package/core/auth/BearerToken.d.ts +1 -1
  165. package/core/fetcher/APIResponse.d.ts +1 -1
  166. package/core/fetcher/Fetcher.d.ts +3 -6
  167. package/core/fetcher/Fetcher.js +189 -20
  168. package/core/fetcher/Supplier.d.ts +1 -1
  169. package/core/fetcher/getHeader.js +2 -1
  170. package/core/runtime/runtime.d.ts +1 -2
  171. package/core/runtime/runtime.js +41 -52
  172. package/dist/Client.d.ts +14 -19
  173. package/dist/api/errors/BadRequestError.js +7 -17
  174. package/dist/api/errors/ConflictError.js +7 -17
  175. package/dist/api/errors/ForbiddenError.js +7 -17
  176. package/dist/api/errors/InternalServerError.js +7 -17
  177. package/dist/api/errors/NotFoundError.js +7 -17
  178. package/dist/api/errors/UnauthorizedError.js +7 -17
  179. package/dist/api/errors/UnprocessableEntityError.js +7 -17
  180. package/dist/api/resources/bulkSync/client/Client.d.ts +173 -24
  181. package/dist/api/resources/bulkSync/client/Client.js +339 -118
  182. package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
  183. package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
  184. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
  185. package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
  186. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  187. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
  188. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
  189. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
  190. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
  191. package/dist/api/resources/bulkSync/resources/index.js +7 -17
  192. package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
  193. package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
  194. package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
  195. package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
  196. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
  197. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
  198. package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
  199. package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
  200. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
  201. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
  202. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
  203. package/dist/api/resources/connections/client/Client.d.ts +160 -12
  204. package/dist/api/resources/connections/client/Client.js +473 -86
  205. package/dist/api/resources/connections/client/requests/ApiRequest.d.ts +13 -0
  206. package/dist/api/resources/connections/client/requests/ApiRequest.js +5 -0
  207. package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +15 -0
  208. package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js +5 -0
  209. package/dist/api/resources/connections/client/requests/index.d.ts +2 -0
  210. package/dist/api/resources/events/client/Client.d.ts +20 -7
  211. package/dist/api/resources/events/client/Client.js +55 -33
  212. package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
  213. package/dist/api/resources/identity/client/Client.d.ts +11 -6
  214. package/dist/api/resources/identity/client/Client.js +31 -24
  215. package/dist/api/resources/index.js +7 -17
  216. package/dist/api/resources/jobs/client/Client.d.ts +15 -8
  217. package/dist/api/resources/jobs/client/Client.js +35 -26
  218. package/dist/api/resources/modelSync/client/Client.d.ts +110 -19
  219. package/dist/api/resources/modelSync/client/Client.js +287 -118
  220. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
  221. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
  222. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
  223. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
  224. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
  225. package/dist/api/resources/modelSync/resources/executions/client/Client.js +115 -56
  226. package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
  227. package/dist/api/resources/modelSync/resources/index.js +7 -17
  228. package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
  229. package/dist/api/resources/modelSync/resources/targets/client/Client.js +89 -49
  230. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
  231. package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
  232. package/dist/api/resources/models/client/Client.d.ts +79 -8
  233. package/dist/api/resources/models/client/Client.js +214 -86
  234. package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
  235. package/dist/api/resources/notifications/client/Client.d.ts +13 -5
  236. package/dist/api/resources/notifications/client/Client.js +48 -31
  237. package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
  238. package/dist/api/resources/organization/client/Client.d.ts +31 -13
  239. package/dist/api/resources/organization/client/Client.js +109 -55
  240. package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
  241. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
  242. package/dist/api/resources/permissions/client/Client.d.ts +2 -7
  243. package/dist/api/resources/permissions/resources/index.js +7 -17
  244. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
  245. package/dist/api/resources/permissions/resources/policies/client/Client.js +105 -47
  246. package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
  247. package/dist/api/resources/permissions/resources/roles/client/Client.js +110 -47
  248. package/dist/api/resources/queryRunner/client/Client.d.ts +26 -7
  249. package/dist/api/resources/queryRunner/client/Client.js +63 -35
  250. package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
  251. package/dist/api/resources/schemas/client/Client.d.ts +118 -23
  252. package/dist/api/resources/schemas/client/Client.js +232 -86
  253. package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
  254. package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
  255. package/dist/api/resources/users/client/Client.d.ts +44 -16
  256. package/dist/api/resources/users/client/Client.js +133 -66
  257. package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +4 -0
  258. package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +4 -0
  259. package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
  260. package/dist/api/resources/webhooks/client/Client.d.ts +67 -21
  261. package/dist/api/resources/webhooks/client/Client.js +165 -75
  262. package/dist/api/types/ApiKeyResponse.d.ts +1 -0
  263. package/dist/api/types/BulkBulkSyncSchedule.d.ts +1 -0
  264. package/dist/api/types/BulkDiscover.d.ts +1 -1
  265. package/dist/api/types/BulkExecutionStatus.d.ts +1 -1
  266. package/dist/api/types/BulkFetchMode.d.ts +1 -1
  267. package/dist/api/types/BulkNormalizeNames.d.ts +1 -1
  268. package/dist/api/types/BulkOutputDisposition.d.ts +9 -0
  269. package/dist/api/types/BulkOutputDisposition.js +11 -0
  270. package/dist/api/types/BulkResyncMode.d.ts +9 -0
  271. package/dist/api/types/BulkResyncMode.js +11 -0
  272. package/dist/api/types/BulkScheduleSyncMode.d.ts +1 -1
  273. package/dist/api/types/BulkSchema.d.ts +2 -0
  274. package/dist/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
  275. package/dist/api/types/BulkSchemaExecutionStatus.js +1 -0
  276. package/dist/api/types/BulkSelectiveMode.d.ts +1 -1
  277. package/dist/api/types/BulkSyncDest.d.ts +2 -0
  278. package/dist/api/types/BulkSyncExecution.d.ts +1 -0
  279. package/dist/api/types/BulkSyncExecutionStatus.d.ts +3 -0
  280. package/dist/api/types/BulkSyncIngestionStatus.d.ts +14 -0
  281. package/dist/api/types/BulkSyncIngestionStatus.js +5 -0
  282. package/dist/api/types/BulkSyncMode.d.ts +1 -1
  283. package/dist/api/types/BulkSyncResponse.d.ts +2 -2
  284. package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
  285. package/dist/api/types/BulkSyncSource.d.ts +1 -0
  286. package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -0
  287. package/dist/api/types/ConnectCardResponse.d.ts +1 -0
  288. package/dist/api/types/ConnectionResponseSchema.d.ts +4 -2
  289. package/dist/api/types/CreateSharedConnectionResponseSchema.d.ts +6 -0
  290. package/dist/api/types/CreateSharedConnectionResponseSchema.js +5 -0
  291. package/dist/api/types/Event.d.ts +4 -0
  292. package/dist/api/types/EventBody.d.ts +1 -1
  293. package/dist/api/types/ExecutionStatus.d.ts +1 -1
  294. package/dist/api/types/FilterFieldReferenceType.d.ts +1 -1
  295. package/dist/api/types/FilterFunction.d.ts +1 -1
  296. package/dist/api/types/GetIdentityResponseSchema.d.ts +2 -0
  297. package/dist/api/types/IngestionStatusLevel.d.ts +12 -0
  298. package/dist/api/types/IngestionStatusLevel.js +11 -0
  299. package/dist/api/types/JobResponse.d.ts +3 -0
  300. package/dist/api/types/JsonschemaDefinitions.d.ts +1 -1
  301. package/dist/api/types/JsonschemaForm.d.ts +1 -1
  302. package/dist/api/types/LabelLabel.d.ts +1 -1
  303. package/dist/api/types/ModelField.d.ts +1 -1
  304. package/dist/api/types/ModelResponse.d.ts +2 -2
  305. package/dist/api/types/ModelSyncMode.d.ts +2 -1
  306. package/dist/api/types/ModelSyncMode.js +1 -0
  307. package/dist/api/types/ModelSyncResponse.d.ts +2 -2
  308. package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
  309. package/dist/api/types/Organization.d.ts +5 -0
  310. package/dist/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
  311. package/dist/api/types/OutputActor.js +5 -0
  312. package/dist/api/types/ScheduleFrequency.d.ts +1 -1
  313. package/dist/api/types/SchemaIdentityFunction.d.ts +1 -1
  314. package/dist/api/types/SourceMeta.d.ts +3 -0
  315. package/dist/api/types/TypesType.d.ts +1 -1
  316. package/dist/api/types/User.d.ts +6 -0
  317. package/dist/api/types/UtilFieldType.d.ts +1 -1
  318. package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +7 -0
  319. package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.js +5 -0
  320. package/dist/api/types/V2EnricherConfiguration.d.ts +1 -1
  321. package/dist/api/types/V2EnricherMapping.d.ts +1 -1
  322. package/dist/api/types/V2ExecutionLogType.d.ts +1 -1
  323. package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
  324. package/dist/api/types/V2SampleRecord.d.ts +1 -1
  325. package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
  326. package/dist/api/types/V3BulkSyncSourceCapabilities.d.ts +6 -0
  327. package/dist/api/types/V3BulkSyncSourceCapabilities.js +5 -0
  328. package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
  329. package/dist/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
  330. package/dist/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
  331. package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
  332. package/dist/api/types/V4RunQueryResult.d.ts +2 -1
  333. package/dist/api/types/V4UserFieldRequest.d.ts +4 -0
  334. package/dist/api/types/WorkTaskStatus.d.ts +1 -1
  335. package/dist/api/types/index.d.ts +13 -6
  336. package/dist/api/types/index.js +13 -6
  337. package/dist/core/auth/BearerToken.d.ts +1 -1
  338. package/dist/core/fetcher/APIResponse.d.ts +1 -1
  339. package/dist/core/fetcher/Fetcher.d.ts +3 -6
  340. package/dist/core/fetcher/Fetcher.js +189 -20
  341. package/dist/core/fetcher/Supplier.d.ts +1 -1
  342. package/dist/core/fetcher/getHeader.js +2 -1
  343. package/dist/core/runtime/runtime.d.ts +1 -2
  344. package/dist/core/runtime/runtime.js +41 -52
  345. package/dist/environments.d.ts +1 -1
  346. package/dist/errors/PolytomicError.js +1 -2
  347. package/dist/errors/PolytomicTimeoutError.d.ts +1 -1
  348. package/dist/errors/PolytomicTimeoutError.js +2 -2
  349. package/dist/index.js +7 -17
  350. package/environments.d.ts +1 -1
  351. package/errors/PolytomicError.js +1 -2
  352. package/errors/PolytomicTimeoutError.d.ts +1 -1
  353. package/errors/PolytomicTimeoutError.js +2 -2
  354. package/index.js +7 -17
  355. package/{jest.config.mjs → jest.config.js} +1 -4
  356. package/package.json +17 -18
  357. package/core/fetcher/createRequestUrl.d.ts +0 -1
  358. package/core/fetcher/createRequestUrl.js +0 -12
  359. package/core/fetcher/getFetchFn.d.ts +0 -4
  360. package/core/fetcher/getFetchFn.js +0 -68
  361. package/core/fetcher/getRequestBody.d.ts +0 -7
  362. package/core/fetcher/getRequestBody.js +0 -23
  363. package/core/fetcher/getResponseBody.d.ts +0 -1
  364. package/core/fetcher/getResponseBody.js +0 -54
  365. package/core/fetcher/makeRequest.d.ts +0 -1
  366. package/core/fetcher/makeRequest.js +0 -42
  367. package/core/fetcher/requestWithRetries.d.ts +0 -1
  368. package/core/fetcher/requestWithRetries.js +0 -40
  369. package/core/fetcher/signals.d.ts +0 -11
  370. package/core/fetcher/signals.js +0 -36
  371. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  372. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  373. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  374. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  375. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  376. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  377. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  378. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  379. package/core/json.d.ts +0 -15
  380. package/core/json.js +0 -24
  381. package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
  382. package/dist/core/fetcher/createRequestUrl.js +0 -12
  383. package/dist/core/fetcher/getFetchFn.d.ts +0 -4
  384. package/dist/core/fetcher/getFetchFn.js +0 -68
  385. package/dist/core/fetcher/getRequestBody.d.ts +0 -7
  386. package/dist/core/fetcher/getRequestBody.js +0 -23
  387. package/dist/core/fetcher/getResponseBody.d.ts +0 -1
  388. package/dist/core/fetcher/getResponseBody.js +0 -54
  389. package/dist/core/fetcher/makeRequest.d.ts +0 -1
  390. package/dist/core/fetcher/makeRequest.js +0 -42
  391. package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
  392. package/dist/core/fetcher/requestWithRetries.js +0 -40
  393. package/dist/core/fetcher/signals.d.ts +0 -11
  394. package/dist/core/fetcher/signals.js +0 -36
  395. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  396. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  397. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  398. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  399. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  400. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  401. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  402. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  403. package/dist/core/json.d.ts +0 -15
  404. package/dist/core/json.js +0 -24
  405. package/dist/version.d.ts +0 -1
  406. package/reference.md +0 -6547
  407. package/scripts/rename-to-esm-files.js +0 -115
  408. package/version.d.ts +0 -1
  409. /package/api/{types/CommonOutputActor.js → resources/connections/client/requests/ApiRequest.js} +0 -0
  410. /package/{dist/api/types/CommonOutputActor.js → api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js} +0 -0
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type BulkOutputDisposition = "retain" | "truncate" | "rebuild";
5
+ export declare const BulkOutputDisposition: {
6
+ readonly Retain: "retain";
7
+ readonly Truncate: "truncate";
8
+ readonly Rebuild: "rebuild";
9
+ };
@@ -0,0 +1,11 @@
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
+ exports.BulkOutputDisposition = void 0;
7
+ exports.BulkOutputDisposition = {
8
+ Retain: "retain",
9
+ Truncate: "truncate",
10
+ Rebuild: "rebuild",
11
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type BulkResyncMode = "refetch" | "resync" | "rebuild";
5
+ export declare const BulkResyncMode: {
6
+ readonly Refetch: "refetch";
7
+ readonly Resync: "resync";
8
+ readonly Rebuild: "rebuild";
9
+ };
@@ -0,0 +1,11 @@
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
+ exports.BulkResyncMode = void 0;
7
+ exports.BulkResyncMode = {
8
+ Refetch: "refetch",
9
+ Resync: "resync",
10
+ Rebuild: "rebuild",
11
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type BulkScheduleSyncMode = "normal" | "refetch" | "resync" | "rebuild";
4
+ export declare type BulkScheduleSyncMode = "normal" | "refetch" | "resync" | "rebuild";
5
5
  export declare const BulkScheduleSyncMode: {
6
6
  readonly Normal: "normal";
7
7
  readonly Refetch: "refetch";
@@ -6,7 +6,9 @@ export interface BulkSchema {
6
6
  data_cutoff_timestamp?: string;
7
7
  disable_data_cutoff?: boolean;
8
8
  enabled?: boolean;
9
+ /** fields is not populated on the list endpoint and will be removed in a future version; retrieve individual schemas for fields. */
9
10
  fields?: Polytomic.BulkField[];
11
+ /** filters is not populated on the list endpoint and will be removed in a future version; retrieve individual schemas for filters. */
10
12
  filters?: Polytomic.BulkFilter[];
11
13
  id?: string;
12
14
  output_name?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type BulkSchemaExecutionStatus = "created" | "scheduled" | "running" | "exporting" | "canceled" | "completed" | "failed" | "interrupted";
4
+ export declare type BulkSchemaExecutionStatus = "created" | "scheduled" | "running" | "exporting" | "canceled" | "completed" | "failed" | "interrupted" | "processing";
5
5
  export declare const BulkSchemaExecutionStatus: {
6
6
  readonly Created: "created";
7
7
  readonly Scheduled: "scheduled";
@@ -11,4 +11,5 @@ export declare const BulkSchemaExecutionStatus: {
11
11
  readonly Completed: "completed";
12
12
  readonly Failed: "failed";
13
13
  readonly Interrupted: "interrupted";
14
+ readonly Processing: "processing";
14
15
  };
@@ -13,4 +13,5 @@ exports.BulkSchemaExecutionStatus = {
13
13
  Completed: "completed",
14
14
  Failed: "failed",
15
15
  Interrupted: "interrupted",
16
+ Processing: "processing",
16
17
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type BulkSelectiveMode = "none" | "incrementalFields" | "nonincrementalFields";
4
+ export declare type BulkSelectiveMode = "none" | "incrementalFields" | "nonincrementalFields";
5
5
  export declare const BulkSelectiveMode: {
6
6
  readonly None: "none";
7
7
  readonly IncrementalFields: "incrementalFields";
@@ -5,4 +5,6 @@ import * as Polytomic from "../index";
5
5
  export interface BulkSyncDest {
6
6
  configuration?: Record<string, unknown>;
7
7
  modes?: Polytomic.SupportedBulkMode[];
8
+ /** Resync modes supported by this destination (refetch, resync, rebuild). */
9
+ supported_resync_modes?: Polytomic.BulkResyncMode[];
8
10
  }
@@ -11,6 +11,7 @@ export interface BulkSyncExecution {
11
11
  is_partial?: boolean;
12
12
  is_resync?: boolean;
13
13
  is_test?: boolean;
14
+ output_disposition?: Polytomic.BulkOutputDisposition;
14
15
  record_count?: number;
15
16
  schemas?: Polytomic.BulkSyncSchemaExecution[];
16
17
  started_at?: string;
@@ -3,8 +3,11 @@
3
3
  */
4
4
  import * as Polytomic from "../index";
5
5
  export interface BulkSyncExecutionStatus {
6
+ /** Next scheduled execution time, if the sync has a schedule configured. */
6
7
  nextExecutionTime?: string;
8
+ /** Most recent execution status for each enabled schema in the sync. */
7
9
  schemas?: Polytomic.BulkSyncSchemaExecutionStatus[];
8
10
  status?: Polytomic.BulkExecutionStatus;
11
+ /** Unique identifier of the bulk sync. */
9
12
  sync_id?: string;
10
13
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Polytomic from "../index";
5
+ export interface BulkSyncIngestionStatus {
6
+ enabled?: boolean;
7
+ highwater_mark?: string;
8
+ is_running?: boolean;
9
+ position?: string;
10
+ position_time?: string;
11
+ status?: Polytomic.IngestionStatusLevel;
12
+ status_message?: string;
13
+ updated_at?: string;
14
+ }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.16.0";
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  *
6
6
  */
7
- export type BulkSyncMode = "snapshot" | "replicate";
7
+ export declare type BulkSyncMode = "snapshot" | "replicate";
8
8
  export declare const BulkSyncMode: {
9
9
  readonly Snapshot: "snapshot";
10
10
  readonly Replicate: "replicate";
@@ -9,7 +9,7 @@ export interface BulkSyncResponse {
9
9
  /** Per-sync concurrency limit override. */
10
10
  concurrency_limit?: number;
11
11
  created_at?: string;
12
- created_by?: Polytomic.CommonOutputActor;
12
+ created_by?: Polytomic.OutputActor;
13
13
  data_cutoff_timestamp?: string;
14
14
  /** Destination-specific bulk sync configuration. e.g. output schema name, s3 file format, etc. */
15
15
  destination_configuration?: Record<string, unknown>;
@@ -32,5 +32,5 @@ export interface BulkSyncResponse {
32
32
  source_configuration?: Record<string, unknown>;
33
33
  source_connection_id?: string;
34
34
  updated_at?: string;
35
- updated_by?: Polytomic.CommonOutputActor;
35
+ updated_by?: Polytomic.OutputActor;
36
36
  }
@@ -3,14 +3,21 @@
3
3
  */
4
4
  import * as Polytomic from "../index";
5
5
  export interface BulkSyncSchemaExecutionStatus {
6
+ /** Timestamp when the most recent execution finished. Null while the execution is still running. */
6
7
  completed_at?: string;
8
+ /** Number of errors emitted during the most recent execution. */
7
9
  error_count?: number;
8
10
  /** ID of the most recent execution for the schema. */
9
11
  execution_id?: string;
12
+ /** Number of records processed in the most recent execution. */
10
13
  record_count?: number;
14
+ /** Schema (table or object) identifier. */
11
15
  schema?: string;
16
+ /** Timestamp when the most recent execution started. */
12
17
  started_at?: string;
13
18
  status?: Polytomic.BulkSchemaExecutionStatus;
19
+ /** Human-readable detail for the current status (e.g. an error message when status is failed). */
14
20
  status_message?: string;
21
+ /** Number of warnings emitted during the most recent execution. */
15
22
  warning_count?: number;
16
23
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Polytomic from "../index";
5
5
  export interface BulkSyncSource {
6
+ capabilities?: Polytomic.V3BulkSyncSourceCapabilities;
6
7
  configuration?: unknown;
7
8
  schemas?: Polytomic.Schema[];
8
9
  }
@@ -4,6 +4,7 @@
4
4
  import * as Polytomic from "../index";
5
5
  export interface BulkSyncStatusResponse {
6
6
  current_execution?: Polytomic.BulkSyncExecution;
7
+ ingestion_status?: Polytomic.BulkSyncIngestionStatus;
7
8
  last_execution?: Polytomic.BulkSyncExecution;
8
9
  next_execution_time?: string;
9
10
  }
@@ -4,5 +4,6 @@
4
4
  export interface ConnectCardResponse {
5
5
  /** URL to redirect the user to in order to create the new connection. */
6
6
  redirect_url?: string;
7
+ /** Opaque single-use token identifying the Connect session. */
7
8
  token?: string;
8
9
  }
@@ -7,15 +7,17 @@ export interface ConnectionResponseSchema {
7
7
  api_calls_last_24_hours?: number;
8
8
  configuration?: Record<string, unknown>;
9
9
  created_at?: string;
10
- created_by?: Polytomic.CommonOutputActor;
10
+ created_by?: Polytomic.OutputActor;
11
11
  id?: string;
12
12
  name?: string;
13
13
  organization_id?: string;
14
+ /** For shared connections, the ID of the parent connection. */
15
+ parent_connection_id?: string;
14
16
  policies?: string[];
15
17
  saved?: boolean;
16
18
  status?: string;
17
19
  status_error?: string;
18
20
  type?: Polytomic.ConnectionTypeSchema;
19
21
  updated_at?: string;
20
- updated_by?: Polytomic.CommonOutputActor;
22
+ updated_by?: Polytomic.OutputActor;
21
23
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateSharedConnectionResponseSchema {
5
+ id?: string;
6
+ }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.16.0";
@@ -3,9 +3,13 @@
3
3
  */
4
4
  import * as Polytomic from "../index";
5
5
  export interface Event {
6
+ /** Timestamp the event was emitted. */
6
7
  created_at?: string;
7
8
  event?: Polytomic.EventBody;
9
+ /** Unique identifier of the event. */
8
10
  id?: string;
11
+ /** Organization the event belongs to. */
9
12
  organization_id?: string;
13
+ /** Event type identifier. */
10
14
  type?: string;
11
15
  }
@@ -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 type EventBody = Polytomic.SyncRunningEvent | Polytomic.SyncCompletedEvent | Polytomic.SyncFailedEvent | Polytomic.SyncCanceledEvent | Polytomic.SyncCompletedWithErrorsEvent | Polytomic.BulkSyncRunningEvent | Polytomic.BulkSyncCompletedEvent | Polytomic.BulkSyncCanceledEvent | Polytomic.BulkSyncCompletedWithErrorEvent | Polytomic.BulkSyncFailedEvent;
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;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ExecutionStatus = "created" | "scheduled" | "queued" | "waiting" | "running" | "processing" | "canceling" | "canceled" | "completed" | "failed" | "interrupted";
4
+ export declare 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 type FilterFieldReferenceType = "Model" | "Target";
4
+ export declare 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 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";
4
+ export declare 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";
@@ -10,6 +10,7 @@ export interface GetIdentityResponseSchema {
10
10
  is_organization?: boolean;
11
11
  /** Whether the caller is using a partner key. */
12
12
  is_partner?: boolean;
13
+ /** Whether the caller is a system actor. */
13
14
  is_system?: boolean;
14
15
  /** Whether the caller is a user. */
15
16
  is_user?: boolean;
@@ -17,5 +18,6 @@ export interface GetIdentityResponseSchema {
17
18
  organization_id?: string;
18
19
  /** The name of the organization the caller belongs to. */
19
20
  organization_name?: string;
21
+ /** Deprecated legacy role name. Populated only for user callers. */
20
22
  role?: string;
21
23
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The health status of CDC ingestion for a bulk sync. 'ok' means ingestion is operating normally. 'warning' indicates a non-fatal issue. 'error' indicates a potentially fatal ingestion error.
6
+ */
7
+ export declare type IngestionStatusLevel = "ok" | "warning" | "error";
8
+ export declare const IngestionStatusLevel: {
9
+ readonly Ok: "ok";
10
+ readonly Warning: "warning";
11
+ readonly Error: "error";
12
+ };
@@ -0,0 +1,11 @@
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
+ exports.IngestionStatusLevel = void 0;
7
+ exports.IngestionStatusLevel = {
8
+ Ok: "ok",
9
+ Warning: "warning",
10
+ Error: "error",
11
+ };
@@ -3,9 +3,12 @@
3
3
  */
4
4
  import * as Polytomic from "../index";
5
5
  export interface JobResponse {
6
+ /** Error message if the job failed. */
6
7
  error?: string;
8
+ /** Identifier of the job. */
7
9
  job_id?: string;
8
10
  result?: unknown;
9
11
  status?: Polytomic.WorkTaskStatus;
12
+ /** Job type. Matches the type used to fetch the job. */
10
13
  type?: string;
11
14
  }
@@ -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 type JsonschemaDefinitions = Record<string, Polytomic.JsonschemaSchema>;
5
+ export declare 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 type JsonschemaForm = Record<string, unknown>;
4
+ export declare 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 type LabelLabel = Record<string, unknown>;
4
+ export declare type LabelLabel = Record<string, unknown>;
@@ -4,7 +4,7 @@
4
4
  import * as Polytomic from "../index";
5
5
  export interface ModelField {
6
6
  created_at?: string;
7
- created_by?: Polytomic.CommonOutputActor;
7
+ created_by?: Polytomic.OutputActor;
8
8
  description?: string;
9
9
  example?: unknown;
10
10
  id?: string;
@@ -6,7 +6,7 @@ export interface ModelResponse {
6
6
  configuration?: Record<string, unknown>;
7
7
  connection_id?: string;
8
8
  created_at?: string;
9
- created_by?: Polytomic.CommonOutputActor;
9
+ created_by?: Polytomic.OutputActor;
10
10
  enricher?: Polytomic.Enrichment;
11
11
  fields?: Polytomic.ModelField[];
12
12
  id?: string;
@@ -19,6 +19,6 @@ export interface ModelResponse {
19
19
  tracking_columns?: string[];
20
20
  type?: string;
21
21
  updated_at?: string;
22
- updated_by?: Polytomic.CommonOutputActor;
22
+ updated_by?: Polytomic.OutputActor;
23
23
  version?: number;
24
24
  }
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  *
6
6
  */
7
- export type ModelSyncMode = "create" | "update" | "updateOrCreate" | "replace" | "append" | "remove";
7
+ export declare type ModelSyncMode = "create" | "update" | "updateOrCreate" | "replace" | "append" | "remove" | "snapshot";
8
8
  export declare const ModelSyncMode: {
9
9
  readonly Create: "create";
10
10
  readonly Update: "update";
@@ -12,4 +12,5 @@ export declare const ModelSyncMode: {
12
12
  readonly Replace: "replace";
13
13
  readonly Append: "append";
14
14
  readonly Remove: "remove";
15
+ readonly Snapshot: "snapshot";
15
16
  };
@@ -11,4 +11,5 @@ exports.ModelSyncMode = {
11
11
  Replace: "replace",
12
12
  Append: "append",
13
13
  Remove: "remove",
14
+ Snapshot: "snapshot",
14
15
  };
@@ -5,7 +5,7 @@ import * as Polytomic from "../index";
5
5
  export interface ModelSyncResponse {
6
6
  active?: boolean;
7
7
  created_at?: string;
8
- created_by?: Polytomic.CommonOutputActor;
8
+ created_by?: Polytomic.OutputActor;
9
9
  encryption_passphrase?: string;
10
10
  fields?: Polytomic.ModelSyncField[];
11
11
  filter_logic?: string;
@@ -26,5 +26,5 @@ export interface ModelSyncResponse {
26
26
  sync_all_records?: boolean;
27
27
  target?: Polytomic.Target;
28
28
  updated_at?: string;
29
- updated_by?: Polytomic.CommonOutputActor;
29
+ updated_by?: Polytomic.OutputActor;
30
30
  }
@@ -3,7 +3,10 @@
3
3
  */
4
4
  import * as Polytomic from "../index";
5
5
  export interface ModelSyncSourceMetaResponse {
6
+ /** Additional configuration fields available for this source, keyed by field name. */
6
7
  configuration?: Record<string, Polytomic.ConfigurationValue>;
8
+ /** Map of configuration item name to its metadata (available values, required-one-of groups). */
7
9
  items?: Record<string, Polytomic.SourceMeta | undefined>;
10
+ /** Configuration items where exactly one must be selected by the caller. */
8
11
  requires_one_of?: string[];
9
12
  }
@@ -2,9 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface Organization {
5
+ /** Unique identifier of the organization. */
5
6
  id?: string;
7
+ /** OIDC issuer URL for organizations using OpenID Connect single sign-on. */
6
8
  issuer?: string;
9
+ /** Human-readable name of the organization. */
7
10
  name?: string;
11
+ /** Email domain used to match users to this organization during SSO sign-in. */
8
12
  sso_domain?: string;
13
+ /** WorkOS organization identifier linking this organization to its SAML/SSO configuration. */
9
14
  sso_org_id?: string;
10
15
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface CommonOutputActor {
4
+ export interface OutputActor {
5
5
  id?: string;
6
6
  name?: string;
7
7
  type?: string;
@@ -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 type ScheduleFrequency = "manual" | "continuous" | "hourly" | "daily" | "weekly" | "custom" | "builder" | "runafter" | "multi" | "dbtcloud";
4
+ export declare 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";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type SchemaIdentityFunction = "Equality" | "ISubstring" | "OneOf" | "DomainMatch" | "HostnameMatch";
4
+ export declare type SchemaIdentityFunction = "Equality" | "ISubstring" | "OneOf" | "DomainMatch" | "HostnameMatch";
5
5
  export declare const SchemaIdentityFunction: {
6
6
  readonly Equality: "Equality";
7
7
  readonly ISubstring: "ISubstring";
@@ -2,7 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface SourceMeta {
5
+ /** True when items is non-empty. Callers should present the values as a picker. */
5
6
  has_items?: boolean;
7
+ /** Valid values the caller may choose for this configuration item. */
6
8
  items?: unknown[];
9
+ /** Other configuration items this item depends on; exactly one of the listed items must also be selected. */
7
10
  requires_one_of?: string[];
8
11
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TypesType = unknown;
4
+ export declare type TypesType = unknown;
@@ -2,8 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface User {
5
+ /** Email address used to sign in and receive notifications. */
5
6
  email?: string;
7
+ /** Unique identifier of the user. */
6
8
  id?: string;
9
+ /** Unique identifier of the organization the user belongs to. */
7
10
  organization_id?: string;
11
+ /** Deprecated legacy role name. Use role_ids instead. */
8
12
  role?: string;
13
+ /** Identifiers of the permissions roles assigned to the user. */
14
+ role_ids?: string[];
9
15
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type UtilFieldType = "unknown" | "string" | "number" | "boolean" | "datetime" | "array" | "object" | "binary";
4
+ export declare 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
+ import * as Polytomic from "../index";
5
+ export interface V2CreateSharedConnectionResponseEnvelope {
6
+ data?: Polytomic.CreateSharedConnectionResponseSchema;
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 type V2EnricherConfiguration = Record<string, unknown>;
7
+ export declare 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 type V2EnricherMapping = Record<string, string>;
7
+ export declare 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 type V2ExecutionLogType = "records" | "errors" | "warnings" | "inserts" | "updates" | "deletes";
4
+ export declare 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 type V2OrderedMapStringGithubComInvopopJsonschemaSchema = Record<string, unknown>;
4
+ export declare type V2OrderedMapStringGithubComInvopopJsonschemaSchema = Record<string, unknown>;