polytomic 25.9.1 → 25.9.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 (429) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +9 -0
  3. package/Client.js +37 -22
  4. package/api/errors/ServiceUnavailableError.d.ts +6 -0
  5. package/api/errors/ServiceUnavailableError.js +54 -0
  6. package/api/errors/index.d.ts +1 -0
  7. package/api/errors/index.js +1 -0
  8. package/api/resources/bulkSync/client/Client.d.ts +7 -4
  9. package/api/resources/bulkSync/client/Client.js +16 -11
  10. package/api/resources/bulkSync/client/requests/{BulkSyncRemoveRequest.d.ts → BulkSyncDeleteRequest.d.ts} +1 -1
  11. package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -1
  12. package/api/resources/bulkSync/client/requests/index.d.ts +1 -1
  13. package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +47 -0
  14. package/api/resources/bulkSync/resources/errorHandling/client/Client.js +185 -0
  15. package/api/resources/bulkSync/resources/errorHandling/client/index.d.ts +1 -0
  16. package/api/resources/bulkSync/resources/errorHandling/client/index.js +17 -0
  17. package/api/resources/bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +8 -0
  18. package/api/resources/bulkSync/resources/errorHandling/client/requests/index.d.ts +1 -0
  19. package/api/resources/bulkSync/resources/errorHandling/client/requests/index.js +2 -0
  20. package/api/resources/bulkSync/resources/errorHandling/exports.d.ts +2 -0
  21. package/api/resources/bulkSync/resources/errorHandling/exports.js +21 -0
  22. package/api/resources/bulkSync/resources/errorHandling/index.d.ts +1 -0
  23. package/api/resources/bulkSync/resources/errorHandling/index.js +17 -0
  24. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +23 -6
  25. package/api/resources/bulkSync/resources/executions/client/Client.js +79 -6
  26. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetIngestConsoleLogsRequest.d.ts +16 -0
  27. package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  28. package/api/resources/bulkSync/resources/index.d.ts +2 -0
  29. package/api/resources/bulkSync/resources/index.js +3 -1
  30. package/api/resources/connections/client/Client.d.ts +51 -150
  31. package/api/resources/connections/client/Client.js +104 -360
  32. package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -0
  33. package/api/resources/connections/client/requests/{ConnectionsRemoveRequest.d.ts → ConnectionsDeleteRequest.d.ts} +1 -1
  34. package/api/resources/connections/client/requests/index.d.ts +1 -3
  35. package/api/resources/connections/exports.d.ts +1 -0
  36. package/api/resources/connections/exports.js +1 -0
  37. package/api/resources/connections/index.d.ts +1 -0
  38. package/api/resources/connections/index.js +1 -0
  39. package/api/resources/connections/resources/index.d.ts +4 -0
  40. package/api/resources/connections/resources/index.js +43 -0
  41. package/api/resources/connections/resources/proxy/client/Client.d.ts +153 -0
  42. package/api/resources/connections/resources/proxy/client/Client.js +399 -0
  43. package/api/resources/connections/resources/proxy/client/index.d.ts +1 -0
  44. package/api/resources/connections/resources/proxy/client/index.js +17 -0
  45. package/api/resources/connections/{client → resources/proxy/client}/requests/ExecuteConnectionProxyRequest.d.ts +3 -1
  46. package/api/resources/connections/resources/proxy/client/requests/UpdateConnectionProxySettingsRequest.d.ts +10 -0
  47. package/api/resources/connections/resources/proxy/client/requests/index.d.ts +2 -0
  48. package/api/resources/connections/resources/proxy/client/requests/index.js +2 -0
  49. package/api/resources/connections/resources/proxy/exports.d.ts +2 -0
  50. package/api/resources/connections/resources/proxy/exports.js +21 -0
  51. package/api/resources/connections/resources/proxy/index.d.ts +1 -0
  52. package/api/resources/connections/resources/proxy/index.js +17 -0
  53. package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +83 -0
  54. package/api/resources/connections/resources/sharedConnections/client/Client.js +267 -0
  55. package/api/resources/connections/resources/sharedConnections/client/index.d.ts +1 -0
  56. package/api/resources/connections/resources/sharedConnections/client/index.js +17 -0
  57. package/api/resources/connections/resources/sharedConnections/client/requests/index.d.ts +1 -0
  58. package/api/resources/connections/resources/sharedConnections/client/requests/index.js +2 -0
  59. package/api/resources/connections/resources/sharedConnections/exports.d.ts +2 -0
  60. package/api/resources/connections/resources/sharedConnections/exports.js +21 -0
  61. package/api/resources/connections/resources/sharedConnections/index.d.ts +1 -0
  62. package/api/resources/connections/resources/sharedConnections/index.js +17 -0
  63. package/api/resources/entities/client/Client.d.ts +11 -2
  64. package/api/resources/entities/client/Client.js +11 -2
  65. package/api/resources/harbors/client/Client.d.ts +786 -0
  66. package/api/resources/harbors/client/Client.js +2358 -0
  67. package/api/resources/harbors/client/index.d.ts +1 -0
  68. package/api/resources/harbors/client/index.js +17 -0
  69. package/api/resources/harbors/client/requests/CreateHarborContextDraftRequest.d.ts +17 -0
  70. package/api/resources/harbors/client/requests/CreateHarborContextRequest.d.ts +15 -0
  71. package/api/resources/harbors/client/requests/CreateHarborRequest.d.ts +19 -0
  72. package/api/resources/harbors/client/requests/HarborsCloseSessionRequest.d.ts +12 -0
  73. package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.d.ts +8 -0
  74. package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.js +3 -0
  75. package/api/resources/harbors/client/requests/HarborsDeleteContextRequest.d.ts +8 -0
  76. package/api/resources/harbors/client/requests/HarborsDeleteContextRequest.js +3 -0
  77. package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.d.ts +8 -0
  78. package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.js +3 -0
  79. package/api/resources/harbors/client/requests/HarborsGetContextDraftRequest.d.ts +8 -0
  80. package/api/resources/harbors/client/requests/HarborsGetContextDraftRequest.js +3 -0
  81. package/api/resources/harbors/client/requests/HarborsGetContextRequest.d.ts +8 -0
  82. package/api/resources/harbors/client/requests/HarborsGetContextRequest.js +3 -0
  83. package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.d.ts +8 -0
  84. package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.js +3 -0
  85. package/api/resources/harbors/client/requests/HarborsListAuthorizedConnectionsRequest.d.ts +13 -0
  86. package/api/resources/harbors/client/requests/HarborsListAuthorizedConnectionsRequest.js +3 -0
  87. package/api/resources/harbors/client/requests/HarborsListAuthorizedSchemasRequest.d.ts +13 -0
  88. package/api/resources/harbors/client/requests/HarborsListAuthorizedSchemasRequest.js +3 -0
  89. package/api/resources/harbors/client/requests/HarborsListContextDraftsRequest.d.ts +13 -0
  90. package/api/resources/harbors/client/requests/HarborsListContextDraftsRequest.js +3 -0
  91. package/api/resources/harbors/client/requests/HarborsListContextVersionsRequest.d.ts +15 -0
  92. package/api/resources/harbors/client/requests/HarborsListContextVersionsRequest.js +3 -0
  93. package/api/resources/harbors/client/requests/HarborsListContextsRequest.d.ts +15 -0
  94. package/api/resources/harbors/client/requests/HarborsListContextsRequest.js +3 -0
  95. package/api/resources/harbors/client/requests/HarborsListKeysRequest.d.ts +13 -0
  96. package/api/resources/harbors/client/requests/HarborsListKeysRequest.js +3 -0
  97. package/api/resources/harbors/client/requests/HarborsListRequest.d.ts +13 -0
  98. package/api/resources/harbors/client/requests/HarborsListRequest.js +3 -0
  99. package/api/resources/harbors/client/requests/HarborsListUsersRequest.d.ts +13 -0
  100. package/api/resources/harbors/client/requests/HarborsListUsersRequest.js +3 -0
  101. package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.d.ts +8 -0
  102. package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.js +3 -0
  103. package/api/resources/harbors/client/requests/InviteHarborUserRequest.d.ts +10 -0
  104. package/api/resources/harbors/client/requests/InviteHarborUserRequest.js +3 -0
  105. package/api/resources/harbors/client/requests/RegisterHarborSessionRequest.d.ts +17 -0
  106. package/api/resources/harbors/client/requests/RegisterHarborSessionRequest.js +3 -0
  107. package/api/resources/harbors/client/requests/ResolveHarborSourceMappingsRequest.d.ts +9 -0
  108. package/api/resources/harbors/client/requests/ResolveHarborSourceMappingsRequest.js +3 -0
  109. package/api/resources/harbors/client/requests/SaveHarborContextDraftRequest.d.ts +19 -0
  110. package/api/resources/harbors/client/requests/SaveHarborContextDraftRequest.js +3 -0
  111. package/api/resources/harbors/client/requests/SaveHarborContextRequest.d.ts +19 -0
  112. package/api/resources/harbors/client/requests/SaveHarborContextRequest.js +3 -0
  113. package/api/resources/harbors/client/requests/UpdateHarborRequest.d.ts +12 -0
  114. package/api/resources/harbors/client/requests/UpdateHarborRequest.js +3 -0
  115. package/api/resources/harbors/client/requests/index.d.ts +25 -0
  116. package/api/resources/harbors/client/requests/index.js +2 -0
  117. package/api/resources/harbors/exports.d.ts +2 -0
  118. package/api/resources/harbors/exports.js +21 -0
  119. package/api/resources/harbors/index.d.ts +1 -0
  120. package/api/resources/harbors/index.js +17 -0
  121. package/api/resources/index.d.ts +6 -0
  122. package/api/resources/index.js +7 -1
  123. package/api/resources/jobs/client/Client.d.ts +1 -1
  124. package/api/resources/jobs/client/Client.js +1 -1
  125. package/api/resources/modelSync/client/Client.d.ts +13 -10
  126. package/api/resources/modelSync/client/Client.js +33 -15
  127. package/api/resources/modelSync/client/requests/{CreateSyncRequest.d.ts → CreateModelSyncV5Request.d.ts} +8 -6
  128. package/api/resources/modelSync/client/requests/CreateModelSyncV5Request.js +3 -0
  129. package/api/resources/modelSync/client/requests/{UpdateSyncRequest.d.ts → UpdateModelSyncV5Request.d.ts} +8 -6
  130. package/api/resources/modelSync/client/requests/UpdateModelSyncV5Request.js +3 -0
  131. package/api/resources/modelSync/client/requests/index.d.ts +2 -2
  132. package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +47 -0
  133. package/api/resources/modelSync/resources/errorHandling/client/Client.js +179 -0
  134. package/api/resources/modelSync/resources/errorHandling/client/index.d.ts +1 -0
  135. package/api/resources/modelSync/resources/errorHandling/client/index.js +17 -0
  136. package/api/resources/modelSync/resources/errorHandling/client/requests/UpdateSyncErrorHandlingRequest.d.ts +14 -0
  137. package/api/resources/modelSync/resources/errorHandling/client/requests/UpdateSyncErrorHandlingRequest.js +3 -0
  138. package/api/resources/modelSync/resources/errorHandling/client/requests/index.d.ts +1 -0
  139. package/api/resources/modelSync/resources/errorHandling/client/requests/index.js +2 -0
  140. package/api/resources/modelSync/resources/errorHandling/exports.d.ts +2 -0
  141. package/api/resources/modelSync/resources/errorHandling/exports.js +21 -0
  142. package/api/resources/modelSync/resources/errorHandling/index.d.ts +1 -0
  143. package/api/resources/modelSync/resources/errorHandling/index.js +17 -0
  144. package/api/resources/modelSync/resources/executions/client/Client.d.ts +21 -6
  145. package/api/resources/modelSync/resources/executions/client/Client.js +60 -6
  146. package/api/resources/modelSync/resources/index.d.ts +2 -0
  147. package/api/resources/modelSync/resources/index.js +3 -1
  148. package/api/resources/modelSync/resources/targets/client/Client.d.ts +40 -5
  149. package/api/resources/modelSync/resources/targets/client/Client.js +59 -12
  150. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +5 -3
  151. package/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.d.ts +10 -0
  152. package/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.js +3 -0
  153. package/api/resources/modelSync/resources/targets/client/requests/index.d.ts +1 -0
  154. package/api/resources/models/client/Client.d.ts +4 -4
  155. package/api/resources/models/client/Client.js +5 -5
  156. package/api/resources/models/client/requests/{ModelsRemoveRequest.d.ts → ModelsDeleteRequest.d.ts} +1 -1
  157. package/api/resources/models/client/requests/ModelsDeleteRequest.js +3 -0
  158. package/api/resources/models/client/requests/index.d.ts +1 -1
  159. package/api/resources/organization/client/Client.d.ts +36 -3
  160. package/api/resources/organization/client/Client.js +133 -4
  161. package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.d.ts +12 -0
  162. package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.js +3 -0
  163. package/api/resources/organization/client/requests/index.d.ts +1 -0
  164. package/api/resources/permissions/resources/policies/client/Client.d.ts +3 -3
  165. package/api/resources/permissions/resources/policies/client/Client.js +4 -4
  166. package/api/resources/permissions/resources/roles/client/Client.d.ts +3 -3
  167. package/api/resources/permissions/resources/roles/client/Client.js +4 -4
  168. package/api/resources/recordViewLinks/client/Client.d.ts +59 -0
  169. package/api/resources/recordViewLinks/client/Client.js +210 -0
  170. package/api/resources/recordViewLinks/client/index.d.ts +1 -0
  171. package/api/resources/recordViewLinks/client/index.js +17 -0
  172. package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +25 -0
  173. package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.js +3 -0
  174. package/api/resources/recordViewLinks/client/requests/RecordViewLinksGetCapabilitiesRequest.d.ts +15 -0
  175. package/api/resources/recordViewLinks/client/requests/RecordViewLinksGetCapabilitiesRequest.js +3 -0
  176. package/api/resources/recordViewLinks/client/requests/index.d.ts +2 -0
  177. package/api/resources/recordViewLinks/client/requests/index.js +2 -0
  178. package/api/resources/recordViewLinks/exports.d.ts +2 -0
  179. package/api/resources/recordViewLinks/exports.js +21 -0
  180. package/api/resources/recordViewLinks/index.d.ts +1 -0
  181. package/api/resources/recordViewLinks/index.js +17 -0
  182. package/api/resources/schemas/client/Client.d.ts +18 -0
  183. package/api/resources/schemas/client/Client.js +66 -0
  184. package/api/resources/schemas/client/requests/PatchSchemaFieldRequest.d.ts +16 -0
  185. package/api/resources/schemas/client/requests/PatchSchemaFieldRequest.js +3 -0
  186. package/api/resources/schemas/client/requests/index.d.ts +1 -0
  187. package/api/resources/temporaryCredentials/client/Client.d.ts +79 -0
  188. package/api/resources/temporaryCredentials/client/Client.js +177 -0
  189. package/api/resources/temporaryCredentials/client/index.d.ts +1 -0
  190. package/api/resources/temporaryCredentials/client/index.js +17 -0
  191. package/api/resources/temporaryCredentials/client/requests/CreateTemporaryCredentialRequest.d.ts +16 -0
  192. package/api/resources/temporaryCredentials/client/requests/CreateTemporaryCredentialRequest.js +3 -0
  193. package/api/resources/temporaryCredentials/client/requests/index.d.ts +1 -0
  194. package/api/resources/temporaryCredentials/client/requests/index.js +2 -0
  195. package/api/resources/temporaryCredentials/exports.d.ts +2 -0
  196. package/api/resources/temporaryCredentials/exports.js +21 -0
  197. package/api/resources/temporaryCredentials/index.d.ts +1 -0
  198. package/api/resources/temporaryCredentials/index.js +17 -0
  199. package/api/resources/users/client/Client.d.ts +8 -8
  200. package/api/resources/users/client/Client.js +12 -9
  201. package/api/resources/webhooks/client/Client.d.ts +3 -3
  202. package/api/resources/webhooks/client/Client.js +4 -4
  203. package/api/types/BackendConnectionCapabilities.d.ts +1 -0
  204. package/api/types/BulkSyncErrorHandling.d.ts +4 -0
  205. package/api/types/BulkSyncErrorHandling.js +3 -0
  206. package/api/types/BulkSyncErrorHandlingEnvelope.d.ts +4 -0
  207. package/api/types/BulkSyncErrorHandlingEnvelope.js +3 -0
  208. package/api/types/BulkSyncExecution.d.ts +2 -0
  209. package/api/types/BulkSyncSchemaExecution.d.ts +2 -0
  210. package/api/types/BulkSyncSourceCapabilities.d.ts +2 -0
  211. package/api/types/CloseHarborSessionEnvelope.d.ts +9 -0
  212. package/api/types/CloseHarborSessionEnvelope.js +3 -0
  213. package/api/types/ConnectCardResponse.d.ts +2 -2
  214. package/api/types/ConnectSessionResponse.d.ts +22 -0
  215. package/api/types/ConnectSessionResponse.js +3 -0
  216. package/api/types/ConnectSessionResponseEnvelope.d.ts +4 -0
  217. package/api/types/ConnectSessionResponseEnvelope.js +3 -0
  218. package/api/types/ConnectionParameterValue.d.ts +1 -0
  219. package/api/types/ConnectionProxyResponse.d.ts +7 -1
  220. package/api/types/ConnectionProxySettingsEnvelope.d.ts +4 -0
  221. package/api/types/ConnectionProxySettingsEnvelope.js +3 -0
  222. package/api/types/ConnectionProxySettingsResponse.d.ts +12 -0
  223. package/api/types/ConnectionProxySettingsResponse.js +3 -0
  224. package/api/types/ConnectionType.d.ts +1 -0
  225. package/api/types/ConnectionTypeSchema.d.ts +1 -0
  226. package/api/types/ConnectionUsageCategoryStats.d.ts +8 -0
  227. package/api/types/ConnectionUsageCategoryStats.js +3 -0
  228. package/api/types/ConnectionUsageResponse.d.ts +11 -0
  229. package/api/types/ConnectionUsageResponse.js +3 -0
  230. package/api/types/ConnectionUsageSyncStats.d.ts +15 -0
  231. package/api/types/ConnectionUsageSyncStats.js +3 -0
  232. package/api/types/CreateHarborEnvelope.d.ts +4 -0
  233. package/api/types/CreateHarborEnvelope.js +3 -0
  234. package/api/types/CreateHarborResponse.d.ts +5 -0
  235. package/api/types/CreateHarborResponse.js +3 -0
  236. package/api/types/CreateRecordViewLinkEnvelope.d.ts +4 -0
  237. package/api/types/CreateRecordViewLinkEnvelope.js +3 -0
  238. package/api/types/CreateRecordViewLinkResponse.d.ts +10 -0
  239. package/api/types/CreateRecordViewLinkResponse.js +3 -0
  240. package/api/types/CurrentOrgListUsersEnvelope.d.ts +4 -0
  241. package/api/types/CurrentOrgListUsersEnvelope.js +3 -0
  242. package/api/types/CurrentOrgUserEnvelope.d.ts +4 -0
  243. package/api/types/CurrentOrgUserEnvelope.js +3 -0
  244. package/api/types/CurrentOrgUserResponse.d.ts +16 -0
  245. package/api/types/CurrentOrgUserResponse.js +3 -0
  246. package/api/types/DeletedHarborContextDraftEnvelope.d.ts +9 -0
  247. package/api/types/DeletedHarborContextDraftEnvelope.js +3 -0
  248. package/api/types/DeletedHarborContextEnvelope.d.ts +9 -0
  249. package/api/types/DeletedHarborContextEnvelope.js +3 -0
  250. package/api/types/DeletedHarborEnvelope.d.ts +4 -0
  251. package/api/types/DeletedHarborEnvelope.js +3 -0
  252. package/api/types/DeletedHarborResponse.d.ts +4 -0
  253. package/api/types/DeletedHarborResponse.js +3 -0
  254. package/api/types/EntityResponse.d.ts +2 -2
  255. package/api/types/EventingBulkSyncCompletedEvent.d.ts +2 -0
  256. package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +2 -0
  257. package/api/types/EventingBulkSyncFailedEvent.d.ts +2 -0
  258. package/api/types/EventingBulkSyncSchedule.d.ts +4 -0
  259. package/api/types/EventingBulkSyncSchedule.js +3 -0
  260. package/api/types/EventingSyncCompletedEvent.d.ts +3 -0
  261. package/api/types/EventingSyncSchedule.d.ts +3 -0
  262. package/api/types/EventingSyncSchedule.js +3 -0
  263. package/api/types/Filter.d.ts +3 -2
  264. package/api/types/GetConnectionUsageEnvelope.d.ts +4 -0
  265. package/api/types/GetConnectionUsageEnvelope.js +3 -0
  266. package/api/types/GetExecutionResponseSchema.d.ts +2 -0
  267. package/api/types/GetIdentityResponseSchema.d.ts +2 -0
  268. package/api/types/GetRecordViewCapabilitiesEnvelope.d.ts +4 -0
  269. package/api/types/GetRecordViewCapabilitiesEnvelope.js +3 -0
  270. package/api/types/HarborApiKeyCreatedResponse.d.ts +10 -0
  271. package/api/types/HarborApiKeyCreatedResponse.js +3 -0
  272. package/api/types/HarborConnectionListEnvelope.d.ts +5 -0
  273. package/api/types/HarborConnectionListEnvelope.js +3 -0
  274. package/api/types/HarborConnectionResponse.d.ts +6 -0
  275. package/api/types/HarborConnectionResponse.js +3 -0
  276. package/api/types/HarborConnectionSchemaEnvelope.d.ts +4 -0
  277. package/api/types/HarborConnectionSchemaEnvelope.js +3 -0
  278. package/api/types/HarborContextDraftEnvelope.d.ts +4 -0
  279. package/api/types/HarborContextDraftEnvelope.js +3 -0
  280. package/api/types/HarborContextDraftListEnvelope.d.ts +5 -0
  281. package/api/types/HarborContextDraftListEnvelope.js +3 -0
  282. package/api/types/HarborContextDraftMetadataResponse.d.ts +26 -0
  283. package/api/types/HarborContextDraftMetadataResponse.js +3 -0
  284. package/api/types/HarborContextDraftResponse.d.ts +28 -0
  285. package/api/types/HarborContextDraftResponse.js +3 -0
  286. package/api/types/HarborContextEnvelope.d.ts +4 -0
  287. package/api/types/HarborContextEnvelope.js +3 -0
  288. package/api/types/HarborContextListEnvelope.d.ts +5 -0
  289. package/api/types/HarborContextListEnvelope.js +3 -0
  290. package/api/types/HarborContextMetadataResponse.d.ts +16 -0
  291. package/api/types/HarborContextMetadataResponse.js +3 -0
  292. package/api/types/HarborContextResponse.d.ts +18 -0
  293. package/api/types/HarborContextResponse.js +3 -0
  294. package/api/types/HarborContextVersionEnvelope.d.ts +4 -0
  295. package/api/types/HarborContextVersionEnvelope.js +3 -0
  296. package/api/types/HarborContextVersionListEnvelope.d.ts +5 -0
  297. package/api/types/HarborContextVersionListEnvelope.js +3 -0
  298. package/api/types/HarborContextVersionMetadataResponse.d.ts +18 -0
  299. package/api/types/HarborContextVersionMetadataResponse.js +3 -0
  300. package/api/types/HarborContextVersionResponse.d.ts +20 -0
  301. package/api/types/HarborContextVersionResponse.js +3 -0
  302. package/api/types/HarborDatasetStatusResponse.d.ts +8 -0
  303. package/api/types/HarborDatasetStatusResponse.js +3 -0
  304. package/api/types/HarborEnvelope.d.ts +4 -0
  305. package/api/types/HarborEnvelope.js +3 -0
  306. package/api/types/HarborKeyEnvelope.d.ts +4 -0
  307. package/api/types/HarborKeyEnvelope.js +3 -0
  308. package/api/types/HarborKeyListEnvelope.d.ts +5 -0
  309. package/api/types/HarborKeyListEnvelope.js +3 -0
  310. package/api/types/HarborKeyResponse.d.ts +16 -0
  311. package/api/types/HarborKeyResponse.js +3 -0
  312. package/api/types/HarborListEnvelope.d.ts +5 -0
  313. package/api/types/HarborListEnvelope.js +3 -0
  314. package/api/types/HarborPipelineStatusResponse.d.ts +21 -0
  315. package/api/types/HarborPipelineStatusResponse.js +12 -0
  316. package/api/types/HarborResponse.d.ts +20 -0
  317. package/api/types/HarborResponse.js +3 -0
  318. package/api/types/HarborSchemaListEnvelope.d.ts +6 -0
  319. package/api/types/HarborSchemaListEnvelope.js +3 -0
  320. package/api/types/HarborSchemaResponse.d.ts +4 -0
  321. package/api/types/HarborSchemaResponse.js +3 -0
  322. package/api/types/HarborSourceMappingResponse.d.ts +8 -0
  323. package/api/types/HarborSourceMappingResponse.js +3 -0
  324. package/api/types/HarborSourceReference.d.ts +8 -0
  325. package/api/types/HarborSourceReference.js +3 -0
  326. package/api/types/HarborStatusEnvelope.d.ts +4 -0
  327. package/api/types/HarborStatusEnvelope.js +3 -0
  328. package/api/types/HarborStatusResponse.d.ts +7 -0
  329. package/api/types/HarborStatusResponse.js +3 -0
  330. package/api/types/HarborStatusScheduleResponse.d.ts +28 -0
  331. package/api/types/HarborStatusScheduleResponse.js +3 -0
  332. package/api/types/HarborUserEnvelope.d.ts +4 -0
  333. package/api/types/HarborUserEnvelope.js +3 -0
  334. package/api/types/HarborUserListEnvelope.d.ts +5 -0
  335. package/api/types/HarborUserListEnvelope.js +3 -0
  336. package/api/types/HarborUserResponse.d.ts +16 -0
  337. package/api/types/HarborUserResponse.js +3 -0
  338. package/api/types/IdentityCredentialApiKeyProfileSchema.d.ts +12 -0
  339. package/api/types/IdentityCredentialApiKeyProfileSchema.js +3 -0
  340. package/api/types/IdentityCredentialCapabilitiesSchema.d.ts +5 -0
  341. package/api/types/IdentityCredentialCapabilitiesSchema.js +3 -0
  342. package/api/types/IdentityCredentialConnectionCapabilitySchema.d.ts +4 -0
  343. package/api/types/IdentityCredentialConnectionCapabilitySchema.js +3 -0
  344. package/api/types/IdentityCredentialHarborSchema.d.ts +10 -0
  345. package/api/types/IdentityCredentialHarborSchema.js +3 -0
  346. package/api/types/IdentityCredentialSchema.d.ts +13 -0
  347. package/api/types/IdentityCredentialSchema.js +3 -0
  348. package/api/types/IdentityFunction.d.ts +2 -0
  349. package/api/types/LogsIndexEntry.d.ts +6 -0
  350. package/api/types/LogsIndexEntry.js +3 -0
  351. package/api/types/LogsIndexResponse.d.ts +9 -0
  352. package/api/types/LogsIndexResponse.js +3 -0
  353. package/api/types/LogsIndexResponseEnvelope.d.ts +4 -0
  354. package/api/types/LogsIndexResponseEnvelope.js +3 -0
  355. package/api/types/Mode.d.ts +6 -0
  356. package/api/types/ModelFilterCondition.d.ts +11 -0
  357. package/api/types/ModelFilterCondition.js +3 -0
  358. package/api/types/ModelFilters.d.ts +10 -0
  359. package/api/types/ModelFilters.js +3 -0
  360. package/api/types/{SyncResponse.d.ts → ModelSyncV5Response.d.ts} +7 -3
  361. package/api/types/ModelSyncV5Response.js +3 -0
  362. package/api/types/ModelSyncV5ResponseEnvelope.d.ts +4 -0
  363. package/api/types/ModelSyncV5ResponseEnvelope.js +3 -0
  364. package/api/types/{Target.d.ts → ModelSyncV5Target.d.ts} +2 -1
  365. package/api/types/ModelSyncV5Target.js +3 -0
  366. package/api/types/OverrideField.d.ts +13 -0
  367. package/api/types/OverrideField.js +3 -0
  368. package/api/types/OverrideFieldInput.d.ts +18 -0
  369. package/api/types/OverrideFieldInput.js +3 -0
  370. package/api/types/RecordLoggingSettingsEnvelope.d.ts +4 -0
  371. package/api/types/RecordLoggingSettingsEnvelope.js +3 -0
  372. package/api/types/RecordLoggingSettingsResponse.d.ts +8 -0
  373. package/api/types/RecordLoggingSettingsResponse.js +3 -0
  374. package/api/types/RecordviewCapabilities.d.ts +12 -0
  375. package/api/types/RecordviewCapabilities.js +3 -0
  376. package/api/types/RegisterHarborSessionEnvelope.d.ts +4 -0
  377. package/api/types/RegisterHarborSessionEnvelope.js +3 -0
  378. package/api/types/RegisterHarborSessionResponse.d.ts +6 -0
  379. package/api/types/RegisterHarborSessionResponse.js +3 -0
  380. package/api/types/ResolveHarborSourceMappingsEnvelope.d.ts +12 -0
  381. package/api/types/ResolveHarborSourceMappingsEnvelope.js +3 -0
  382. package/api/types/RevokedHarborKeyEnvelope.d.ts +9 -0
  383. package/api/types/RevokedHarborKeyEnvelope.js +3 -0
  384. package/api/types/SchemaField.d.ts +5 -1
  385. package/api/types/SchemaFieldResponseEnvelope.d.ts +4 -0
  386. package/api/types/SchemaFieldResponseEnvelope.js +3 -0
  387. package/api/types/SyncDestinationProperties.d.ts +15 -0
  388. package/api/types/SyncErrorHandling.d.ts +10 -0
  389. package/api/types/SyncErrorHandling.js +3 -0
  390. package/api/types/SyncErrorHandlingEnvelope.d.ts +4 -0
  391. package/api/types/SyncErrorHandlingEnvelope.js +3 -0
  392. package/api/types/SyncField.d.ts +1 -1
  393. package/api/types/TargetCreator.d.ts +1 -1
  394. package/api/types/TargetField.d.ts +15 -0
  395. package/api/types/TargetFilterCondition.d.ts +13 -0
  396. package/api/types/TargetFilterCondition.js +3 -0
  397. package/api/types/TargetFilters.d.ts +10 -0
  398. package/api/types/TargetFilters.js +3 -0
  399. package/api/types/TargetResponse.d.ts +5 -0
  400. package/api/types/TemporaryCredentialResponse.d.ts +10 -0
  401. package/api/types/TemporaryCredentialResponse.js +3 -0
  402. package/api/types/TemporaryCredentialResponseEnvelope.d.ts +4 -0
  403. package/api/types/TemporaryCredentialResponseEnvelope.js +3 -0
  404. package/api/types/TemporaryCredentialSubject.d.ts +26 -0
  405. package/api/types/TemporaryCredentialSubject.js +17 -0
  406. package/api/types/TypesDefinition.d.ts +1 -0
  407. package/api/types/TypesDefinition.js +3 -0
  408. package/api/types/UnassignedHarborUserEnvelope.d.ts +9 -0
  409. package/api/types/UnassignedHarborUserEnvelope.js +3 -0
  410. package/api/types/index.d.ts +91 -4
  411. package/api/types/index.js +91 -4
  412. package/package.json +1 -1
  413. package/reference.md +5057 -1352
  414. package/version.d.ts +1 -1
  415. package/version.js +1 -1
  416. package/api/types/SyncResponseEnvelope.d.ts +0 -4
  417. package/api/types/TargetCreateInput.d.ts +0 -8
  418. /package/api/resources/bulkSync/client/requests/{BulkSyncRemoveRequest.js → BulkSyncDeleteRequest.js} +0 -0
  419. /package/api/resources/{connections/client/requests/ConnectionsRemoveRequest.js → bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.js} +0 -0
  420. /package/api/resources/{connections/client/requests/ExecuteConnectionProxyRequest.js → bulkSync/resources/executions/client/requests/ExecutionsGetIngestConsoleLogsRequest.js} +0 -0
  421. /package/api/resources/connections/client/requests/{PartnerCreateSharedConnectionRequestSchema.js → ConnectionsDeleteRequest.js} +0 -0
  422. /package/api/resources/{modelSync/client/requests/CreateSyncRequest.js → connections/resources/proxy/client/requests/ExecuteConnectionProxyRequest.js} +0 -0
  423. /package/api/resources/{modelSync/client/requests/UpdateSyncRequest.js → connections/resources/proxy/client/requests/UpdateConnectionProxySettingsRequest.js} +0 -0
  424. /package/api/resources/connections/{client → resources/sharedConnections/client}/requests/PartnerCreateSharedConnectionRequestSchema.d.ts +0 -0
  425. /package/api/resources/{models/client/requests/ModelsRemoveRequest.js → connections/resources/sharedConnections/client/requests/PartnerCreateSharedConnectionRequestSchema.js} +0 -0
  426. /package/api/{types/SyncResponse.js → resources/harbors/client/requests/CreateHarborContextDraftRequest.js} +0 -0
  427. /package/api/{types/SyncResponseEnvelope.js → resources/harbors/client/requests/CreateHarborContextRequest.js} +0 -0
  428. /package/api/{types/Target.js → resources/harbors/client/requests/CreateHarborRequest.js} +0 -0
  429. /package/api/{types/TargetCreateInput.js → resources/harbors/client/requests/HarborsCloseSessionRequest.js} +0 -0
@@ -68,7 +68,7 @@ class JobsClient {
68
68
  * Only specific job types are supported by this endpoint. Passing an unknown
69
69
  * `type` returns `400`.
70
70
  *
71
- * @param {string} type - Job type. One of: createmodel, updatemodel, previewmodel, samplemodel, exportlogs.
71
+ * @param {string} type - Job type. One of: createmodel, updatemodel, previewmodel, samplemodel, exportlogs, connectionproxy.
72
72
  * @param {string} id - Unique identifier of the job (usually returned by whichever endpoint started the job).
73
73
  * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
74
74
  *
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOption
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
3
3
  import * as core from "../../../../core";
4
4
  import * as Polytomic from "../../../index";
5
+ import { ErrorHandlingClient } from "../resources/errorHandling/client/Client";
5
6
  import { ExecutionsClient } from "../resources/executions/client/Client";
6
7
  import { TargetsClient } from "../resources/targets/client/Client";
7
8
  export declare namespace ModelSyncClient {
@@ -14,9 +15,11 @@ export declare namespace ModelSyncClient {
14
15
  export declare class ModelSyncClient {
15
16
  protected readonly _options: NormalizedClientOptionsWithAuth<ModelSyncClient.Options>;
16
17
  protected _targets: TargetsClient | undefined;
18
+ protected _errorHandling: ErrorHandlingClient | undefined;
17
19
  protected _executions: ExecutionsClient | undefined;
18
20
  constructor(options?: ModelSyncClient.Options);
19
21
  get targets(): TargetsClient;
22
+ get errorHandling(): ErrorHandlingClient;
20
23
  get executions(): ExecutionsClient;
21
24
  /**
22
25
  * Describes the source configuration available on a connection for use as a model sync source.
@@ -69,8 +72,6 @@ export declare class ModelSyncClient {
69
72
  getSourceFields(id: string, request?: Polytomic.ModelSyncGetSourceFieldsRequest, requestOptions?: ModelSyncClient.RequestOptions): core.HttpResponsePromise<Polytomic.ModelFieldResponse>;
70
73
  private __getSourceFields;
71
74
  /**
72
- * @beta This endpoint is in pre-release and may change.
73
- *
74
75
  * Lists model syncs in the caller's organization.
75
76
  *
76
77
  * Results are ordered by `updated_at` descending, with `id` used as a tiebreaker.
@@ -164,11 +165,12 @@ export declare class ModelSyncClient {
164
165
  * The [Get Target List](../../api-reference/model-sync/targets/list) endpoint returns information about whether
165
166
  * a connection supports target creation.
166
167
  *
167
- * @param {Polytomic.CreateSyncRequest} request
168
+ * @param {Polytomic.CreateModelSyncV5Request} request
168
169
  * @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
169
170
  *
170
171
  * @throws {@link Polytomic.BadRequestError}
171
172
  * @throws {@link Polytomic.ForbiddenError}
173
+ * @throws {@link Polytomic.NotFoundError}
172
174
  * @throws {@link Polytomic.UnprocessableEntityError}
173
175
  * @throws {@link Polytomic.InternalServerError}
174
176
  *
@@ -185,7 +187,7 @@ export declare class ModelSyncClient {
185
187
  * }
186
188
  * })
187
189
  */
188
- create(request: Polytomic.CreateSyncRequest, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.SyncResponseEnvelope>;
190
+ create(request: Polytomic.CreateModelSyncV5Request, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ModelSyncV5ResponseEnvelope>;
189
191
  private __create;
190
192
  /**
191
193
  * Returns the schedule types available when creating or updating a model sync.
@@ -219,7 +221,7 @@ export declare class ModelSyncClient {
219
221
  * @example
220
222
  * await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
221
223
  */
222
- get(id: string, requestOptions?: ModelSyncClient.RequestOptions): core.HttpResponsePromise<Polytomic.SyncResponseEnvelope>;
224
+ get(id: string, requestOptions?: ModelSyncClient.RequestOptions): core.HttpResponsePromise<Polytomic.ModelSyncV5ResponseEnvelope>;
223
225
  private __get;
224
226
  /**
225
227
  * Updates a model sync's configuration.
@@ -239,7 +241,7 @@ export declare class ModelSyncClient {
239
241
  * take effect on the sync's next execution.
240
242
  *
241
243
  * @param {string} id
242
- * @param {Polytomic.UpdateSyncRequest} request
244
+ * @param {Polytomic.UpdateModelSyncV5Request} request
243
245
  * @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
244
246
  *
245
247
  * @throws {@link Polytomic.BadRequestError}
@@ -262,7 +264,7 @@ export declare class ModelSyncClient {
262
264
  * }
263
265
  * })
264
266
  */
265
- update(id: string, request: Polytomic.UpdateSyncRequest, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.SyncResponseEnvelope>;
267
+ update(id: string, request: Polytomic.UpdateModelSyncV5Request, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ModelSyncV5ResponseEnvelope>;
266
268
  private __update;
267
269
  /**
268
270
  * Deletes a model sync, cancelling any running executions.
@@ -281,10 +283,10 @@ export declare class ModelSyncClient {
281
283
  * @throws {@link Polytomic.InternalServerError}
282
284
  *
283
285
  * @example
284
- * await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
286
+ * await client.modelSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
285
287
  */
286
- remove(id: string, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<void>;
287
- private __remove;
288
+ delete(id: string, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<void>;
289
+ private __delete;
288
290
  /**
289
291
  * Sets whether a model sync is active.
290
292
  *
@@ -301,6 +303,7 @@ export declare class ModelSyncClient {
301
303
  *
302
304
  * @throws {@link Polytomic.ForbiddenError}
303
305
  * @throws {@link Polytomic.NotFoundError}
306
+ * @throws {@link Polytomic.UnprocessableEntityError}
304
307
  * @throws {@link Polytomic.InternalServerError}
305
308
  *
306
309
  * @example
@@ -52,19 +52,24 @@ const environments = __importStar(require("../../../../environments"));
52
52
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  const Polytomic = __importStar(require("../../../index"));
55
- const Client_1 = require("../resources/executions/client/Client");
56
- const Client_2 = require("../resources/targets/client/Client");
55
+ const Client_1 = require("../resources/errorHandling/client/Client");
56
+ const Client_2 = require("../resources/executions/client/Client");
57
+ const Client_3 = require("../resources/targets/client/Client");
57
58
  class ModelSyncClient {
58
59
  constructor(options = {}) {
59
60
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
60
61
  }
61
62
  get targets() {
62
63
  var _a;
63
- return ((_a = this._targets) !== null && _a !== void 0 ? _a : (this._targets = new Client_2.TargetsClient(this._options)));
64
+ return ((_a = this._targets) !== null && _a !== void 0 ? _a : (this._targets = new Client_3.TargetsClient(this._options)));
65
+ }
66
+ get errorHandling() {
67
+ var _a;
68
+ return ((_a = this._errorHandling) !== null && _a !== void 0 ? _a : (this._errorHandling = new Client_1.ErrorHandlingClient(this._options)));
64
69
  }
65
70
  get executions() {
66
71
  var _a;
67
- return ((_a = this._executions) !== null && _a !== void 0 ? _a : (this._executions = new Client_1.ExecutionsClient(this._options)));
72
+ return ((_a = this._executions) !== null && _a !== void 0 ? _a : (this._executions = new Client_2.ExecutionsClient(this._options)));
68
73
  }
69
74
  /**
70
75
  * Describes the source configuration available on a connection for use as a model sync source.
@@ -219,8 +224,6 @@ class ModelSyncClient {
219
224
  });
220
225
  }
221
226
  /**
222
- * @beta This endpoint is in pre-release and may change.
223
- *
224
227
  * Lists model syncs in the caller's organization.
225
228
  *
226
229
  * Results are ordered by `updated_at` descending, with `id` used as a tiebreaker.
@@ -367,11 +370,12 @@ class ModelSyncClient {
367
370
  * The [Get Target List](../../api-reference/model-sync/targets/list) endpoint returns information about whether
368
371
  * a connection supports target creation.
369
372
  *
370
- * @param {Polytomic.CreateSyncRequest} request
373
+ * @param {Polytomic.CreateModelSyncV5Request} request
371
374
  * @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
372
375
  *
373
376
  * @throws {@link Polytomic.BadRequestError}
374
377
  * @throws {@link Polytomic.ForbiddenError}
378
+ * @throws {@link Polytomic.NotFoundError}
375
379
  * @throws {@link Polytomic.UnprocessableEntityError}
376
380
  * @throws {@link Polytomic.InternalServerError}
377
381
  *
@@ -414,7 +418,10 @@ class ModelSyncClient {
414
418
  logging: this._options.logging,
415
419
  });
416
420
  if (_response.ok) {
417
- return { data: _response.body, rawResponse: _response.rawResponse };
421
+ return {
422
+ data: _response.body,
423
+ rawResponse: _response.rawResponse,
424
+ };
418
425
  }
419
426
  if (_response.error.reason === "status-code") {
420
427
  switch (_response.error.statusCode) {
@@ -422,6 +429,8 @@ class ModelSyncClient {
422
429
  throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
423
430
  case 403:
424
431
  throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
432
+ case 404:
433
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
425
434
  case 422:
426
435
  throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
427
436
  case 500:
@@ -531,7 +540,10 @@ class ModelSyncClient {
531
540
  logging: this._options.logging,
532
541
  });
533
542
  if (_response.ok) {
534
- return { data: _response.body, rawResponse: _response.rawResponse };
543
+ return {
544
+ data: _response.body,
545
+ rawResponse: _response.rawResponse,
546
+ };
535
547
  }
536
548
  if (_response.error.reason === "status-code") {
537
549
  switch (_response.error.statusCode) {
@@ -568,7 +580,7 @@ class ModelSyncClient {
568
580
  * take effect on the sync's next execution.
569
581
  *
570
582
  * @param {string} id
571
- * @param {Polytomic.UpdateSyncRequest} request
583
+ * @param {Polytomic.UpdateModelSyncV5Request} request
572
584
  * @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
573
585
  *
574
586
  * @throws {@link Polytomic.BadRequestError}
@@ -617,7 +629,10 @@ class ModelSyncClient {
617
629
  logging: this._options.logging,
618
630
  });
619
631
  if (_response.ok) {
620
- return { data: _response.body, rawResponse: _response.rawResponse };
632
+ return {
633
+ data: _response.body,
634
+ rawResponse: _response.rawResponse,
635
+ };
621
636
  }
622
637
  if (_response.error.reason === "status-code") {
623
638
  switch (_response.error.statusCode) {
@@ -661,12 +676,12 @@ class ModelSyncClient {
661
676
  * @throws {@link Polytomic.InternalServerError}
662
677
  *
663
678
  * @example
664
- * await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
679
+ * await client.modelSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
665
680
  */
666
- remove(id, requestOptions) {
667
- return core.HttpResponsePromise.fromPromise(this.__remove(id, requestOptions));
681
+ delete(id, requestOptions) {
682
+ return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
668
683
  }
669
- __remove(id, requestOptions) {
684
+ __delete(id, requestOptions) {
670
685
  return __awaiter(this, void 0, void 0, function* () {
671
686
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
672
687
  const _authRequest = yield this._options.authProvider.getAuthRequest();
@@ -727,6 +742,7 @@ class ModelSyncClient {
727
742
  *
728
743
  * @throws {@link Polytomic.ForbiddenError}
729
744
  * @throws {@link Polytomic.NotFoundError}
745
+ * @throws {@link Polytomic.UnprocessableEntityError}
730
746
  * @throws {@link Polytomic.InternalServerError}
731
747
  *
732
748
  * @example
@@ -768,6 +784,8 @@ class ModelSyncClient {
768
784
  throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
769
785
  case 404:
770
786
  throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
787
+ case 422:
788
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
771
789
  case 500:
772
790
  throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
773
791
  default:
@@ -13,26 +13,27 @@ import type * as Polytomic from "../../../../index";
13
13
  * }
14
14
  * }
15
15
  */
16
- export interface CreateSyncRequest {
16
+ export interface CreateModelSyncV5Request {
17
17
  /** Whether the sync is enabled and scheduled. */
18
18
  active?: boolean;
19
19
  /** Passphrase for encrypting the sync data. */
20
20
  encryption_passphrase?: string;
21
21
  /** Fields to sync from source to destination. */
22
22
  fields: Polytomic.SyncField[];
23
- /** Logical expression to combine filters. */
23
+ /** Deprecated. Use 'model_filters.logic'. Combines the model filters in 'filters' only. */
24
24
  filter_logic?: string;
25
- /** Filters to apply to the source data. */
25
+ /** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions', which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters. */
26
26
  filters?: Polytomic.Filter[];
27
27
  identity?: Polytomic.Identity;
28
28
  mode: Polytomic.ModelsyncSyncTargetMode;
29
+ model_filters?: Polytomic.ModelFilters;
29
30
  name: string;
30
31
  /** Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync. */
31
32
  only_enrich_updates?: boolean;
32
33
  /** Organization ID for the sync; read-only with a partner key. */
33
34
  organization_id?: string;
34
- /** Values to set in the target unconditionally. */
35
- override_fields?: Polytomic.SyncField[];
35
+ /** Target fields which are set to a fixed value for every record, rather than mapped from a model field. */
36
+ override_fields?: Polytomic.OverrideFieldInput[];
36
37
  /** Conditional value replacement for fields. */
37
38
  overrides?: Polytomic.Override[];
38
39
  policies?: string[];
@@ -41,5 +42,6 @@ export interface CreateSyncRequest {
41
42
  skip_initial_backfill?: boolean;
42
43
  /** Whether to sync all records from the source, regardless of whether they've changed since the previous execution. */
43
44
  sync_all_records?: boolean;
44
- target: Polytomic.Target;
45
+ target: Polytomic.ModelSyncV5Target;
46
+ target_filters?: Polytomic.TargetFilters;
45
47
  }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,26 +13,27 @@ import type * as Polytomic from "../../../../index";
13
13
  * }
14
14
  * }
15
15
  */
16
- export interface UpdateSyncRequest {
16
+ export interface UpdateModelSyncV5Request {
17
17
  /** Whether the sync is enabled and scheduled. */
18
18
  active?: boolean;
19
19
  /** Passphrase for encrypting the sync data. */
20
20
  encryption_passphrase?: string;
21
21
  /** Fields to sync from source to destination. */
22
22
  fields: Polytomic.SyncField[];
23
- /** Logical expression to combine filters. */
23
+ /** Deprecated. Use 'model_filters.logic'. Combines the model filters in 'filters' only. */
24
24
  filter_logic?: string;
25
- /** Filters to apply to the source data. */
25
+ /** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions', which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters. */
26
26
  filters?: Polytomic.Filter[];
27
27
  identity?: Polytomic.Identity;
28
28
  mode: Polytomic.ModelsyncSyncTargetMode;
29
+ model_filters?: Polytomic.ModelFilters;
29
30
  name: string;
30
31
  /** Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync. */
31
32
  only_enrich_updates?: boolean;
32
33
  /** Organization ID for the sync; read-only with a partner key. */
33
34
  organization_id?: string;
34
- /** Values to set in the target unconditionally. */
35
- override_fields?: Polytomic.SyncField[];
35
+ /** Target fields which are set to a fixed value for every record, rather than mapped from a model field. */
36
+ override_fields?: Polytomic.OverrideFieldInput[];
36
37
  /** Conditional value replacement for fields. */
37
38
  overrides?: Polytomic.Override[];
38
39
  policies?: string[];
@@ -41,5 +42,6 @@ export interface UpdateSyncRequest {
41
42
  skip_initial_backfill?: boolean;
42
43
  /** Whether to sync all records from the source, regardless of whether they've changed since the previous execution. */
43
44
  sync_all_records?: boolean;
44
- target: Polytomic.Target;
45
+ target: Polytomic.ModelSyncV5Target;
46
+ target_filters?: Polytomic.TargetFilters;
45
47
  }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
- export type { CreateSyncRequest } from "./CreateSyncRequest";
1
+ export type { CreateModelSyncV5Request } from "./CreateModelSyncV5Request";
2
2
  export type { ModelSyncGetSourceFieldsRequest } from "./ModelSyncGetSourceFieldsRequest";
3
3
  export type { ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
4
4
  export type { ModelSyncListRequest } from "./ModelSyncListRequest";
5
5
  export type { StartSyncRequest } from "./StartSyncRequest";
6
- export type { UpdateSyncRequest } from "./UpdateSyncRequest";
6
+ export type { UpdateModelSyncV5Request } from "./UpdateModelSyncV5Request";
@@ -0,0 +1,47 @@
1
+ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
3
+ import * as core from "../../../../../../core";
4
+ import * as Polytomic from "../../../../../index";
5
+ export declare namespace ErrorHandlingClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
10
+ }
11
+ }
12
+ export declare class ErrorHandlingClient {
13
+ protected readonly _options: NormalizedClientOptionsWithAuth<ErrorHandlingClient.Options>;
14
+ constructor(options?: ErrorHandlingClient.Options);
15
+ /**
16
+ * Returns the error handling settings for a model sync.
17
+ *
18
+ * @param {string} id - Unique identifier of the model sync.
19
+ * @param {ErrorHandlingClient.RequestOptions} requestOptions - Request-specific configuration.
20
+ *
21
+ * @throws {@link Polytomic.ForbiddenError}
22
+ * @throws {@link Polytomic.NotFoundError}
23
+ * @throws {@link Polytomic.InternalServerError}
24
+ *
25
+ * @example
26
+ * await client.modelSync.errorHandling.get("248df4b7-aa70-47b8-a036-33ac447e668d")
27
+ */
28
+ get(id: string, requestOptions?: ErrorHandlingClient.RequestOptions): core.HttpResponsePromise<Polytomic.SyncErrorHandlingEnvelope>;
29
+ private __get;
30
+ /**
31
+ * Updates the error handling settings for a model sync.
32
+ *
33
+ * @param {string} id - Unique identifier of the model sync.
34
+ * @param {Polytomic.modelSync.UpdateSyncErrorHandlingRequest} request
35
+ * @param {ErrorHandlingClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link Polytomic.BadRequestError}
38
+ * @throws {@link Polytomic.ForbiddenError}
39
+ * @throws {@link Polytomic.NotFoundError}
40
+ * @throws {@link Polytomic.InternalServerError}
41
+ *
42
+ * @example
43
+ * await client.modelSync.errorHandling.update("248df4b7-aa70-47b8-a036-33ac447e668d")
44
+ */
45
+ update(id: string, request?: Polytomic.modelSync.UpdateSyncErrorHandlingRequest, requestOptions?: ErrorHandlingClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.SyncErrorHandlingEnvelope>;
46
+ private __update;
47
+ }
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.ErrorHandlingClient = void 0;
47
+ const BaseClient_1 = require("../../../../../../BaseClient");
48
+ const core = __importStar(require("../../../../../../core"));
49
+ const headers_1 = require("../../../../../../core/headers");
50
+ const environments = __importStar(require("../../../../../../environments"));
51
+ const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
52
+ const errors = __importStar(require("../../../../../../errors/index"));
53
+ const Polytomic = __importStar(require("../../../../../index"));
54
+ class ErrorHandlingClient {
55
+ constructor(options = {}) {
56
+ this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * Returns the error handling settings for a model sync.
60
+ *
61
+ * @param {string} id - Unique identifier of the model sync.
62
+ * @param {ErrorHandlingClient.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Polytomic.ForbiddenError}
65
+ * @throws {@link Polytomic.NotFoundError}
66
+ * @throws {@link Polytomic.InternalServerError}
67
+ *
68
+ * @example
69
+ * await client.modelSync.errorHandling.get("248df4b7-aa70-47b8-a036-33ac447e668d")
70
+ */
71
+ get(id, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
73
+ }
74
+ __get(id, requestOptions) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
77
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
78
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
79
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
80
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
81
+ const _response = yield core.fetcher({
82
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/syncs/${core.url.encodePathParam(id)}/error-handling`),
83
+ method: "GET",
84
+ headers: _headers,
85
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
86
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
87
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
88
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
89
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
90
+ logging: this._options.logging,
91
+ });
92
+ if (_response.ok) {
93
+ return { data: _response.body, rawResponse: _response.rawResponse };
94
+ }
95
+ if (_response.error.reason === "status-code") {
96
+ switch (_response.error.statusCode) {
97
+ case 403:
98
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
99
+ case 404:
100
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
101
+ case 500:
102
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
103
+ default:
104
+ throw new errors.PolytomicError({
105
+ statusCode: _response.error.statusCode,
106
+ body: _response.error.body,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ }
111
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/syncs/{id}/error-handling");
112
+ });
113
+ }
114
+ /**
115
+ * Updates the error handling settings for a model sync.
116
+ *
117
+ * @param {string} id - Unique identifier of the model sync.
118
+ * @param {Polytomic.modelSync.UpdateSyncErrorHandlingRequest} request
119
+ * @param {ErrorHandlingClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
120
+ *
121
+ * @throws {@link Polytomic.BadRequestError}
122
+ * @throws {@link Polytomic.ForbiddenError}
123
+ * @throws {@link Polytomic.NotFoundError}
124
+ * @throws {@link Polytomic.InternalServerError}
125
+ *
126
+ * @example
127
+ * await client.modelSync.errorHandling.update("248df4b7-aa70-47b8-a036-33ac447e668d")
128
+ */
129
+ update(id, request = {}, requestOptions) {
130
+ return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
131
+ }
132
+ __update(id_1) {
133
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
134
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
135
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
136
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
137
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
138
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
139
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
140
+ const _response = yield core.fetcher({
141
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/syncs/${core.url.encodePathParam(id)}/error-handling`),
142
+ method: "PUT",
143
+ headers: _headers,
144
+ contentType: "application/json",
145
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
146
+ requestType: "json",
147
+ body: request,
148
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
149
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
150
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
151
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
152
+ logging: this._options.logging,
153
+ });
154
+ if (_response.ok) {
155
+ return { data: _response.body, rawResponse: _response.rawResponse };
156
+ }
157
+ if (_response.error.reason === "status-code") {
158
+ switch (_response.error.statusCode) {
159
+ case 400:
160
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
161
+ case 403:
162
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
163
+ case 404:
164
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
165
+ case 500:
166
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
167
+ default:
168
+ throw new errors.PolytomicError({
169
+ statusCode: _response.error.statusCode,
170
+ body: _response.error.body,
171
+ rawResponse: _response.rawResponse,
172
+ });
173
+ }
174
+ }
175
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/syncs/{id}/error-handling");
176
+ });
177
+ }
178
+ }
179
+ exports.ErrorHandlingClient = ErrorHandlingClient;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface UpdateSyncErrorHandlingRequest {
6
+ /** Whether records that fail are automatically retried on the next run. Omit to leave unchanged. */
7
+ auto_retry_record_errors?: boolean;
8
+ /** Whether subscribers are notified when individual records fail, in addition to whole-sync failures. Omit to leave unchanged. */
9
+ notify_on_record_errors?: boolean;
10
+ /** Email addresses notified when this sync fails. Replaces the current list; pass an empty list to unsubscribe everyone. Omit to leave the list unchanged. */
11
+ subscribers?: string[];
12
+ /** Whether subscribers are notified when the sync completes with warnings. Omit to leave unchanged. */
13
+ warning_notifications?: boolean;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { UpdateSyncErrorHandlingRequest } from "./UpdateSyncErrorHandlingRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ErrorHandlingClient } from "./client/Client";
2
+ export * from "./client/index";