polytomic 25.9.3 → 25.9.5

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 (183) hide show
  1. package/BaseClient.d.ts +15 -0
  2. package/BaseClient.js +17 -2
  3. package/Client.d.ts +3 -0
  4. package/Client.js +41 -36
  5. package/api/errors/BadGatewayError.d.ts +1 -0
  6. package/api/errors/BadGatewayError.js +1 -1
  7. package/api/errors/BadRequestError.d.ts +1 -0
  8. package/api/errors/BadRequestError.js +1 -1
  9. package/api/errors/ConflictError.d.ts +1 -0
  10. package/api/errors/ConflictError.js +1 -1
  11. package/api/errors/ForbiddenError.d.ts +1 -0
  12. package/api/errors/ForbiddenError.js +1 -1
  13. package/api/errors/GatewayTimeoutError.d.ts +1 -0
  14. package/api/errors/GatewayTimeoutError.js +1 -1
  15. package/api/errors/GoneError.d.ts +7 -0
  16. package/api/errors/GoneError.js +54 -0
  17. package/api/errors/InternalServerError.d.ts +1 -0
  18. package/api/errors/InternalServerError.js +1 -1
  19. package/api/errors/NotFoundError.d.ts +1 -0
  20. package/api/errors/NotFoundError.js +1 -1
  21. package/api/errors/RequestTimeoutError.d.ts +1 -0
  22. package/api/errors/RequestTimeoutError.js +1 -1
  23. package/api/errors/ServiceUnavailableError.d.ts +1 -0
  24. package/api/errors/ServiceUnavailableError.js +1 -1
  25. package/api/errors/TooManyRequestsError.d.ts +1 -0
  26. package/api/errors/TooManyRequestsError.js +1 -1
  27. package/api/errors/UnauthorizedError.d.ts +1 -0
  28. package/api/errors/UnauthorizedError.js +1 -1
  29. package/api/errors/UnprocessableEntityError.d.ts +1 -0
  30. package/api/errors/UnprocessableEntityError.js +1 -1
  31. package/api/errors/index.d.ts +1 -0
  32. package/api/errors/index.js +1 -0
  33. package/api/resources/activity/client/Client.d.ts +144 -0
  34. package/api/resources/activity/client/Client.js +359 -0
  35. package/api/resources/activity/client/index.d.ts +1 -0
  36. package/api/resources/activity/client/index.js +17 -0
  37. package/api/resources/activity/client/requests/ActivityGetSessionRequest.d.ts +17 -0
  38. package/api/resources/activity/client/requests/ActivityGetSessionRequest.js +3 -0
  39. package/api/resources/activity/client/requests/ActivityListRequest.d.ts +47 -0
  40. package/api/resources/activity/client/requests/ActivityListRequest.js +3 -0
  41. package/api/resources/activity/client/requests/index.d.ts +2 -0
  42. package/api/resources/activity/client/requests/index.js +2 -0
  43. package/api/resources/activity/exports.d.ts +2 -0
  44. package/api/resources/activity/exports.js +21 -0
  45. package/api/resources/activity/index.d.ts +2 -0
  46. package/api/resources/activity/index.js +18 -0
  47. package/api/resources/activity/types/ActivityGetSessionRequestOrder.d.ts +6 -0
  48. package/api/resources/activity/types/ActivityGetSessionRequestOrder.js +9 -0
  49. package/api/resources/activity/types/ActivityListRequestOrder.d.ts +6 -0
  50. package/api/resources/activity/types/ActivityListRequestOrder.js +9 -0
  51. package/api/resources/activity/types/index.d.ts +2 -0
  52. package/api/resources/activity/types/index.js +18 -0
  53. package/api/resources/bulkSync/client/Client.d.ts +22 -0
  54. package/api/resources/bulkSync/client/Client.js +27 -4
  55. package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +4 -0
  56. package/api/resources/bulkSync/resources/errorHandling/client/Client.js +6 -1
  57. package/api/resources/bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +2 -0
  58. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +18 -0
  59. package/api/resources/bulkSync/resources/executions/client/Client.js +18 -0
  60. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +10 -0
  61. package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
  62. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
  63. package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
  64. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  65. package/api/resources/connections/client/Client.d.ts +38 -0
  66. package/api/resources/connections/client/Client.js +48 -5
  67. package/api/resources/connections/resources/proxy/client/Client.d.ts +8 -0
  68. package/api/resources/connections/resources/proxy/client/Client.js +11 -2
  69. package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +6 -0
  70. package/api/resources/connections/resources/sharedConnections/client/Client.js +8 -1
  71. package/api/resources/entities/client/Client.d.ts +4 -0
  72. package/api/resources/entities/client/Client.js +4 -0
  73. package/api/resources/events/client/Client.d.ts +5 -0
  74. package/api/resources/events/client/Client.js +5 -0
  75. package/api/resources/harbors/client/Client.d.ts +71 -64
  76. package/api/resources/harbors/client/Client.js +81 -73
  77. package/api/resources/identity/client/Client.d.ts +2 -0
  78. package/api/resources/identity/client/Client.js +2 -0
  79. package/api/resources/index.d.ts +3 -0
  80. package/api/resources/index.js +4 -1
  81. package/api/resources/jobs/client/Client.d.ts +2 -0
  82. package/api/resources/jobs/client/Client.js +2 -0
  83. package/api/resources/modelSync/client/Client.d.ts +24 -0
  84. package/api/resources/modelSync/client/Client.js +29 -4
  85. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
  86. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  87. package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +4 -0
  88. package/api/resources/modelSync/resources/errorHandling/client/Client.js +6 -1
  89. package/api/resources/modelSync/resources/executions/client/Client.d.ts +14 -0
  90. package/api/resources/modelSync/resources/executions/client/Client.js +14 -0
  91. package/api/resources/modelSync/resources/targets/client/Client.d.ts +6 -0
  92. package/api/resources/modelSync/resources/targets/client/Client.js +6 -0
  93. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +1 -1
  94. package/api/resources/models/client/Client.d.ts +18 -0
  95. package/api/resources/models/client/Client.js +23 -4
  96. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
  97. package/api/resources/notifications/client/Client.d.ts +4 -0
  98. package/api/resources/notifications/client/Client.js +6 -1
  99. package/api/resources/organization/client/Client.d.ts +16 -0
  100. package/api/resources/organization/client/Client.js +20 -3
  101. package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -0
  102. package/api/resources/permissions/resources/policies/client/Client.js +13 -2
  103. package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
  104. package/api/resources/permissions/resources/roles/client/Client.js +13 -2
  105. package/api/resources/queryRunner/client/Client.d.ts +15 -1
  106. package/api/resources/queryRunner/client/Client.js +35 -4
  107. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +2 -0
  108. package/api/resources/queryRunner/client/requests/RunQueryRequest.d.ts +2 -0
  109. package/api/resources/recordViewLinks/client/Client.d.ts +6 -4
  110. package/api/resources/recordViewLinks/client/Client.js +26 -5
  111. package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +2 -0
  112. package/api/resources/schemas/client/Client.d.ts +18 -0
  113. package/api/resources/schemas/client/Client.js +22 -3
  114. package/api/resources/temporaryCredentials/client/Client.d.ts +2 -2
  115. package/api/resources/temporaryCredentials/client/Client.js +4 -3
  116. package/api/resources/users/client/Client.d.ts +22 -0
  117. package/api/resources/users/client/Client.js +27 -4
  118. package/api/resources/webhooks/client/Client.d.ts +14 -0
  119. package/api/resources/webhooks/client/Client.js +17 -2
  120. package/api/types/BulkSyncErrorHandling.d.ts +2 -0
  121. package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  122. package/api/types/ConnectionProxyResponse.d.ts +1 -1
  123. package/api/types/Filter.d.ts +1 -0
  124. package/api/types/HarborActivityEventEnvelope.d.ts +4 -0
  125. package/api/types/HarborActivityEventEnvelope.js +3 -0
  126. package/api/types/HarborActivityListEnvelope.d.ts +5 -0
  127. package/api/types/HarborActivityListEnvelope.js +3 -0
  128. package/api/types/HarborActivitySessionEnvelope.d.ts +5 -0
  129. package/api/types/HarborActivitySessionEnvelope.js +3 -0
  130. package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
  131. package/api/types/HarborSourceMappingResponse.d.ts +1 -1
  132. package/api/types/HarboractivityapiHarborActivityActorSnapshot.d.ts +6 -0
  133. package/api/types/HarboractivityapiHarborActivityActorSnapshot.js +3 -0
  134. package/api/types/HarboractivityapiHarborActivityEvent.d.ts +24 -0
  135. package/api/types/HarboractivityapiHarborActivityEvent.js +3 -0
  136. package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.d.ts +3 -0
  137. package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.js +3 -0
  138. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +31 -0
  139. package/api/types/HarboractivityapiHarborActivityMetadata.js +3 -0
  140. package/api/types/HarboractivityapiHarborActivitySession.d.ts +27 -0
  141. package/api/types/HarboractivityapiHarborActivitySession.js +12 -0
  142. package/api/types/HarboractivityapiHarborActivityTarget.d.ts +6 -0
  143. package/api/types/HarboractivityapiHarborActivityTarget.js +3 -0
  144. package/api/types/ModelFilterCondition.d.ts +1 -1
  145. package/api/types/ModelFilters.d.ts +1 -1
  146. package/api/types/QueryStatus.d.ts +8 -0
  147. package/api/types/QueryStatus.js +11 -0
  148. package/api/types/RunQueryResult.d.ts +2 -2
  149. package/api/types/SchemaField.d.ts +4 -0
  150. package/api/types/SupportedFilterFunction.d.ts +12 -0
  151. package/api/types/SupportedFilterFunction.js +3 -0
  152. package/api/types/SyncSourceMetaResponse.d.ts +1 -1
  153. package/api/types/TargetField.d.ts +2 -0
  154. package/api/types/TargetFilterCondition.d.ts +2 -2
  155. package/api/types/TargetFilters.d.ts +1 -1
  156. package/api/types/index.d.ts +11 -0
  157. package/api/types/index.js +11 -0
  158. package/core/auth/AuthProvider.d.ts +1 -0
  159. package/core/auth/AuthProvider.js +7 -0
  160. package/core/auth/index.d.ts +1 -1
  161. package/core/auth/index.js +3 -1
  162. package/core/fetcher/Fetcher.js +9 -92
  163. package/core/fetcher/getResponseBody.js +11 -0
  164. package/core/fetcher/makePassthroughRequest.js +26 -4
  165. package/core/fetcher/redactUrl.d.ts +2 -0
  166. package/core/fetcher/redactUrl.js +88 -0
  167. package/core/fetcher/requestWithRetries.js +4 -1
  168. package/core/fetcher/signals.js +9 -1
  169. package/core/requestBody.d.ts +12 -0
  170. package/core/requestBody.js +26 -0
  171. package/core/runtime/index.d.ts +1 -1
  172. package/core/runtime/index.js +2 -1
  173. package/core/runtime/runtime.d.ts +19 -0
  174. package/core/runtime/runtime.js +74 -2
  175. package/core/url/qs.js +2 -2
  176. package/errors/PolytomicError.d.ts +1 -0
  177. package/errors/PolytomicError.js +5 -1
  178. package/errors/PolytomicTimeoutError.d.ts +2 -2
  179. package/errors/PolytomicTimeoutError.js +40 -6
  180. package/package.json +2 -2
  181. package/reference.md +291 -1
  182. package/version.d.ts +1 -1
  183. package/version.js +1 -1
@@ -47,6 +47,7 @@ exports.UsersClient = void 0;
47
47
  const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
+ const requestBody_1 = require("../../../../core/requestBody");
50
51
  const environments = __importStar(require("../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../errors/index"));
@@ -64,6 +65,8 @@ class UsersClient {
64
65
  *
65
66
  * @throws {@link Polytomic.ForbiddenError}
66
67
  * @throws {@link Polytomic.NotFoundError}
68
+ * @throws {@link errors.PolytomicError}
69
+ * @throws {@link errors.PolytomicTimeoutError}
67
70
  *
68
71
  * @example
69
72
  * await client.users.listCurrentOrgUsers()
@@ -124,6 +127,8 @@ class UsersClient {
124
127
  * @throws {@link Polytomic.ForbiddenError}
125
128
  * @throws {@link Polytomic.UnprocessableEntityError}
126
129
  * @throws {@link Polytomic.InternalServerError}
130
+ * @throws {@link errors.PolytomicError}
131
+ * @throws {@link errors.PolytomicTimeoutError}
127
132
  *
128
133
  * @example
129
134
  * await client.users.createCurrentOrgUser({
@@ -148,7 +153,7 @@ class UsersClient {
148
153
  contentType: "application/json",
149
154
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
150
155
  requestType: "json",
151
- body: request,
156
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
152
157
  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,
153
158
  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,
154
159
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -186,6 +191,8 @@ class UsersClient {
186
191
  * @throws {@link Polytomic.ForbiddenError}
187
192
  * @throws {@link Polytomic.NotFoundError}
188
193
  * @throws {@link Polytomic.InternalServerError}
194
+ * @throws {@link errors.PolytomicError}
195
+ * @throws {@link errors.PolytomicTimeoutError}
189
196
  *
190
197
  * @example
191
198
  * await client.users.getCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -246,6 +253,8 @@ class UsersClient {
246
253
  * @throws {@link Polytomic.ForbiddenError}
247
254
  * @throws {@link Polytomic.UnprocessableEntityError}
248
255
  * @throws {@link Polytomic.InternalServerError}
256
+ * @throws {@link errors.PolytomicError}
257
+ * @throws {@link errors.PolytomicTimeoutError}
249
258
  *
250
259
  * @example
251
260
  * await client.users.updateCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -268,7 +277,7 @@ class UsersClient {
268
277
  contentType: "application/json",
269
278
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
270
279
  requestType: "json",
271
- body: request,
280
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
272
281
  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,
273
282
  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,
274
283
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -310,6 +319,8 @@ class UsersClient {
310
319
  * @throws {@link Polytomic.ForbiddenError}
311
320
  * @throws {@link Polytomic.NotFoundError}
312
321
  * @throws {@link Polytomic.InternalServerError}
322
+ * @throws {@link errors.PolytomicError}
323
+ * @throws {@link errors.PolytomicTimeoutError}
313
324
  *
314
325
  * @example
315
326
  * await client.users.deleteCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -372,6 +383,8 @@ class UsersClient {
372
383
  *
373
384
  * @throws {@link Polytomic.ForbiddenError}
374
385
  * @throws {@link Polytomic.NotFoundError}
386
+ * @throws {@link errors.PolytomicError}
387
+ * @throws {@link errors.PolytomicTimeoutError}
375
388
  *
376
389
  * @example
377
390
  * await client.users.list("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -434,6 +447,8 @@ class UsersClient {
434
447
  * @throws {@link Polytomic.ForbiddenError}
435
448
  * @throws {@link Polytomic.UnprocessableEntityError}
436
449
  * @throws {@link Polytomic.InternalServerError}
450
+ * @throws {@link errors.PolytomicError}
451
+ * @throws {@link errors.PolytomicTimeoutError}
437
452
  *
438
453
  * @example
439
454
  * await client.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -458,7 +473,7 @@ class UsersClient {
458
473
  contentType: "application/json",
459
474
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
460
475
  requestType: "json",
461
- body: request,
476
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
462
477
  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,
463
478
  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,
464
479
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -501,6 +516,8 @@ class UsersClient {
501
516
  * @throws {@link Polytomic.ForbiddenError}
502
517
  * @throws {@link Polytomic.NotFoundError}
503
518
  * @throws {@link Polytomic.InternalServerError}
519
+ * @throws {@link errors.PolytomicError}
520
+ * @throws {@link errors.PolytomicTimeoutError}
504
521
  *
505
522
  * @example
506
523
  * await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -566,6 +583,8 @@ class UsersClient {
566
583
  * @throws {@link Polytomic.ForbiddenError}
567
584
  * @throws {@link Polytomic.UnprocessableEntityError}
568
585
  * @throws {@link Polytomic.InternalServerError}
586
+ * @throws {@link errors.PolytomicError}
587
+ * @throws {@link errors.PolytomicTimeoutError}
569
588
  *
570
589
  * @example
571
590
  * await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -590,7 +609,7 @@ class UsersClient {
590
609
  contentType: "application/json",
591
610
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
592
611
  requestType: "json",
593
- body: request,
612
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
594
613
  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,
595
614
  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,
596
615
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -637,6 +656,8 @@ class UsersClient {
637
656
  * @throws {@link Polytomic.ForbiddenError}
638
657
  * @throws {@link Polytomic.NotFoundError}
639
658
  * @throws {@link Polytomic.InternalServerError}
659
+ * @throws {@link errors.PolytomicError}
660
+ * @throws {@link errors.PolytomicTimeoutError}
640
661
  *
641
662
  * @example
642
663
  * await client.users.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -699,6 +720,8 @@ class UsersClient {
699
720
  * @throws {@link Polytomic.ForbiddenError}
700
721
  * @throws {@link Polytomic.NotFoundError}
701
722
  * @throws {@link Polytomic.InternalServerError}
723
+ * @throws {@link errors.PolytomicError}
724
+ * @throws {@link errors.PolytomicTimeoutError}
702
725
  *
703
726
  * @example
704
727
  * await client.users.createApiKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -25,6 +25,8 @@ export declare class WebhooksClient {
25
25
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @throws {@link Polytomic.InternalServerError}
28
+ * @throws {@link errors.PolytomicError}
29
+ * @throws {@link errors.PolytomicTimeoutError}
28
30
  *
29
31
  * @example
30
32
  * await client.webhooks.list()
@@ -47,6 +49,8 @@ export declare class WebhooksClient {
47
49
  * @throws {@link Polytomic.UnauthorizedError}
48
50
  * @throws {@link Polytomic.UnprocessableEntityError}
49
51
  * @throws {@link Polytomic.InternalServerError}
52
+ * @throws {@link errors.PolytomicError}
53
+ * @throws {@link errors.PolytomicTimeoutError}
50
54
  *
51
55
  * @example
52
56
  * await client.webhooks.create({
@@ -70,6 +74,8 @@ export declare class WebhooksClient {
70
74
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
71
75
  *
72
76
  * @throws {@link Polytomic.NotFoundError}
77
+ * @throws {@link errors.PolytomicError}
78
+ * @throws {@link errors.PolytomicTimeoutError}
73
79
  *
74
80
  * @example
75
81
  * await client.webhooks.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -93,6 +99,8 @@ export declare class WebhooksClient {
93
99
  * @throws {@link Polytomic.UnauthorizedError}
94
100
  * @throws {@link Polytomic.UnprocessableEntityError}
95
101
  * @throws {@link Polytomic.InternalServerError}
102
+ * @throws {@link errors.PolytomicError}
103
+ * @throws {@link errors.PolytomicTimeoutError}
96
104
  *
97
105
  * @example
98
106
  * await client.webhooks.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -121,6 +129,8 @@ export declare class WebhooksClient {
121
129
  *
122
130
  * @throws {@link Polytomic.NotFoundError}
123
131
  * @throws {@link Polytomic.InternalServerError}
132
+ * @throws {@link errors.PolytomicError}
133
+ * @throws {@link errors.PolytomicTimeoutError}
124
134
  *
125
135
  * @example
126
136
  * await client.webhooks.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -148,6 +158,8 @@ export declare class WebhooksClient {
148
158
  * @throws {@link Polytomic.UnauthorizedError}
149
159
  * @throws {@link Polytomic.NotFoundError}
150
160
  * @throws {@link Polytomic.InternalServerError}
161
+ * @throws {@link errors.PolytomicError}
162
+ * @throws {@link errors.PolytomicTimeoutError}
151
163
  *
152
164
  * @example
153
165
  * await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -173,6 +185,8 @@ export declare class WebhooksClient {
173
185
  * @throws {@link Polytomic.UnauthorizedError}
174
186
  * @throws {@link Polytomic.NotFoundError}
175
187
  * @throws {@link Polytomic.InternalServerError}
188
+ * @throws {@link errors.PolytomicError}
189
+ * @throws {@link errors.PolytomicTimeoutError}
176
190
  *
177
191
  * @example
178
192
  * await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.WebhooksClient = void 0;
47
47
  const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
+ const requestBody_1 = require("../../../../core/requestBody");
50
51
  const environments = __importStar(require("../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../errors/index"));
@@ -68,6 +69,8 @@ class WebhooksClient {
68
69
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
69
70
  *
70
71
  * @throws {@link Polytomic.InternalServerError}
72
+ * @throws {@link errors.PolytomicError}
73
+ * @throws {@link errors.PolytomicTimeoutError}
71
74
  *
72
75
  * @example
73
76
  * await client.webhooks.list()
@@ -127,6 +130,8 @@ class WebhooksClient {
127
130
  * @throws {@link Polytomic.UnauthorizedError}
128
131
  * @throws {@link Polytomic.UnprocessableEntityError}
129
132
  * @throws {@link Polytomic.InternalServerError}
133
+ * @throws {@link errors.PolytomicError}
134
+ * @throws {@link errors.PolytomicTimeoutError}
130
135
  *
131
136
  * @example
132
137
  * await client.webhooks.create({
@@ -152,7 +157,7 @@ class WebhooksClient {
152
157
  contentType: "application/json",
153
158
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
154
159
  requestType: "json",
155
- body: request,
160
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
156
161
  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,
157
162
  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,
158
163
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -195,6 +200,8 @@ class WebhooksClient {
195
200
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
196
201
  *
197
202
  * @throws {@link Polytomic.NotFoundError}
203
+ * @throws {@link errors.PolytomicError}
204
+ * @throws {@link errors.PolytomicTimeoutError}
198
205
  *
199
206
  * @example
200
207
  * await client.webhooks.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -255,6 +262,8 @@ class WebhooksClient {
255
262
  * @throws {@link Polytomic.UnauthorizedError}
256
263
  * @throws {@link Polytomic.UnprocessableEntityError}
257
264
  * @throws {@link Polytomic.InternalServerError}
265
+ * @throws {@link errors.PolytomicError}
266
+ * @throws {@link errors.PolytomicTimeoutError}
258
267
  *
259
268
  * @example
260
269
  * await client.webhooks.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -280,7 +289,7 @@ class WebhooksClient {
280
289
  contentType: "application/json",
281
290
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
282
291
  requestType: "json",
283
- body: request,
292
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
284
293
  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,
285
294
  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,
286
295
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -328,6 +337,8 @@ class WebhooksClient {
328
337
  *
329
338
  * @throws {@link Polytomic.NotFoundError}
330
339
  * @throws {@link Polytomic.InternalServerError}
340
+ * @throws {@link errors.PolytomicError}
341
+ * @throws {@link errors.PolytomicTimeoutError}
331
342
  *
332
343
  * @example
333
344
  * await client.webhooks.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -395,6 +406,8 @@ class WebhooksClient {
395
406
  * @throws {@link Polytomic.UnauthorizedError}
396
407
  * @throws {@link Polytomic.NotFoundError}
397
408
  * @throws {@link Polytomic.InternalServerError}
409
+ * @throws {@link errors.PolytomicError}
410
+ * @throws {@link errors.PolytomicTimeoutError}
398
411
  *
399
412
  * @example
400
413
  * await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -462,6 +475,8 @@ class WebhooksClient {
462
475
  * @throws {@link Polytomic.UnauthorizedError}
463
476
  * @throws {@link Polytomic.NotFoundError}
464
477
  * @throws {@link Polytomic.InternalServerError}
478
+ * @throws {@link errors.PolytomicError}
479
+ * @throws {@link errors.PolytomicTimeoutError}
465
480
  *
466
481
  * @example
467
482
  * await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -1,4 +1,6 @@
1
1
  export interface BulkSyncErrorHandling {
2
+ /** How far behind ingestion may fall before a terminal execution is failed, in the unit this sync's source reports: seconds for a source carrying event timestamps, outstanding items for a queue-backed source such as S3. Null means this sync has no threshold of its own: a source reporting seconds then follows the deployment-wide default, while a queue-backed source is left unchecked. */
3
+ ingestion_failure_threshold?: number | undefined;
2
4
  /** Email addresses notified when this sync fails. */
3
5
  subscribers?: string[] | undefined;
4
6
  }
@@ -1,4 +1,4 @@
1
1
  import type * as Polytomic from "../index";
2
2
  export interface ConnectionParameterValuesResponseEnvelope {
3
- data?: Record<string, Polytomic.ConnectionParameterValuesResp> | undefined;
3
+ data?: Record<string, Polytomic.ConnectionParameterValuesResp | undefined> | undefined;
4
4
  }
@@ -5,7 +5,7 @@ export interface ConnectionProxyResponse {
5
5
  /** Content-Type of the upstream response. */
6
6
  contentType?: string | undefined;
7
7
  /** Response headers returned by the upstream service. Headers listed in blockedResponseHeaders are removed. */
8
- headers?: Record<string, string> | undefined;
8
+ headers?: Record<string, string | undefined> | undefined;
9
9
  /** Identifier for the async proxy job when async is true. */
10
10
  jobId?: string | undefined;
11
11
  jobStatus?: Polytomic.WorkTaskStatus | undefined;
@@ -10,5 +10,6 @@ export interface Filter {
10
10
  function: Polytomic.FilterFunction;
11
11
  label?: string | undefined;
12
12
  value?: unknown | undefined;
13
+ /** Model field whose value this filter compares against, resolved separately for each record. Only valid on a target filter, mutually exclusive with 'value', and accepted only by destinations reporting 'supports_filter_value_fields'. */
13
14
  value_field?: Polytomic.Source | undefined;
14
15
  }
@@ -0,0 +1,4 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActivityEventEnvelope {
3
+ data?: Polytomic.HarboractivityapiHarborActivityEvent | undefined;
4
+ }
@@ -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,5 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActivityListEnvelope {
3
+ data?: Polytomic.HarboractivityapiHarborActivityEvent[] | undefined;
4
+ pagination?: Polytomic.PaginationDetails | undefined;
5
+ }
@@ -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,5 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActivitySessionEnvelope {
3
+ data?: Polytomic.HarboractivityapiHarborActivitySession | undefined;
4
+ pagination?: Polytomic.PaginationDetails | undefined;
5
+ }
@@ -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,7 +1,7 @@
1
1
  import type * as Polytomic from "../index";
2
2
  export interface HarborPipelineStatusResponse {
3
3
  /** Dataset refresh evidence keyed by the effective destination name visible to Harbor queries. */
4
- datasets?: Record<string, Polytomic.HarborDatasetStatusResponse> | undefined;
4
+ datasets?: Record<string, Polytomic.HarborDatasetStatusResponse | undefined> | undefined;
5
5
  /** Unique identifier of the Polytomic pipeline. */
6
6
  id: string;
7
7
  /** Whether this pipeline is enabled. */
@@ -2,7 +2,7 @@ export interface HarborSourceMappingResponse {
2
2
  /** Qualified table name in the Harbor's backing Connection. Empty unless status is resolved. */
3
3
  destination_schema_id?: string | undefined;
4
4
  /** Requested source field identifiers mapped to their destination names. A requested field that was not materialized is absent. */
5
- fields?: Record<string, string> | undefined;
5
+ fields?: Record<string, string | undefined> | undefined;
6
6
  /** resolved when exactly one completed materialization was found, unresolved when none was, ambiguous when more than one was. */
7
7
  status?: string | undefined;
8
8
  }
@@ -0,0 +1,6 @@
1
+ export interface HarboractivityapiHarborActivityActorSnapshot {
2
+ display_name?: string | undefined;
3
+ email?: string | undefined;
4
+ id?: string | undefined;
5
+ type?: string | undefined;
6
+ }
@@ -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,24 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarboractivityapiHarborActivityEvent {
3
+ actor?: Polytomic.HarboractivityapiHarborActivityActorSnapshot | undefined;
4
+ attempt_id?: string | undefined;
5
+ client_name?: string | undefined;
6
+ client_version?: string | undefined;
7
+ connection_id?: string | undefined;
8
+ context_id?: string | undefined;
9
+ context_revision_id?: string | undefined;
10
+ credential?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
11
+ event_type?: string | undefined;
12
+ harbor_id?: string | undefined;
13
+ id?: string | undefined;
14
+ lifecycle_events?: Polytomic.HarboractivityapiHarborActivityEvent[] | undefined;
15
+ metadata?: Polytomic.HarboractivityapiHarborActivityMetadata | undefined;
16
+ occurred_at?: string | undefined;
17
+ operation_id?: string | undefined;
18
+ outcome?: string | undefined;
19
+ profile?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
20
+ provenance?: string | undefined;
21
+ recorded_at?: string | undefined;
22
+ session_id?: string | undefined;
23
+ targets?: Polytomic.HarboractivityapiHarborActivityTarget[] | undefined;
24
+ }
@@ -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,3 @@
1
+ export interface HarboractivityapiHarborActivityIdentitySnapshot {
2
+ id?: string | undefined;
3
+ }
@@ -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,31 @@
1
+ export interface HarboractivityapiHarborActivityMetadata {
2
+ attempt_number?: number | undefined;
3
+ category?: string | undefined;
4
+ client_name?: string | undefined;
5
+ client_version?: string | undefined;
6
+ connection_name?: string | undefined;
7
+ connection_name_truncated?: boolean | undefined;
8
+ connection_type?: string | undefined;
9
+ /** Published context version number at fetch time, when recorded. */
10
+ context_version?: number | undefined;
11
+ error_category?: string | undefined;
12
+ execution_duration_ms?: number | undefined;
13
+ external_run_id?: string | undefined;
14
+ /** Number of fields returned by a query. Raw field names are not returned. */
15
+ field_count?: number | undefined;
16
+ has_next_page?: boolean | undefined;
17
+ /** Bounded resource label snapshot. */
18
+ label?: string | undefined;
19
+ /** Whether the resource label snapshot was truncated. */
20
+ label_truncated?: boolean | undefined;
21
+ operation?: string | undefined;
22
+ phase?: string | undefined;
23
+ queue_duration_ms?: number | undefined;
24
+ reason?: string | undefined;
25
+ record_id?: string | undefined;
26
+ row_count?: number | undefined;
27
+ schema_id?: string | undefined;
28
+ statement_category?: string | undefined;
29
+ supported?: boolean | undefined;
30
+ total_duration_ms?: number | undefined;
31
+ }
@@ -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,27 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarboractivityapiHarborActivitySession {
3
+ client_name?: string | undefined;
4
+ client_version?: string | undefined;
5
+ credential?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
6
+ ended_at?: string | undefined;
7
+ events?: Polytomic.HarboractivityapiHarborActivityEvent[] | undefined;
8
+ expires_at?: string | undefined;
9
+ external_run_id?: string | undefined;
10
+ harbor_id?: string | undefined;
11
+ /** Whether retention removed events from the beginning of the session. */
12
+ history_truncated?: boolean | undefined;
13
+ id?: string | undefined;
14
+ profile?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
15
+ started_at?: string | undefined;
16
+ started_event_id?: string | undefined;
17
+ status?: HarboractivityapiHarborActivitySession.Status | undefined;
18
+ terminal_event_id?: string | undefined;
19
+ }
20
+ export declare namespace HarboractivityapiHarborActivitySession {
21
+ const Status: {
22
+ readonly Active: "active";
23
+ readonly Closed: "closed";
24
+ readonly Expired: "expired";
25
+ };
26
+ type Status = (typeof Status)[keyof typeof Status];
27
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.HarboractivityapiHarborActivitySession = void 0;
5
+ var HarboractivityapiHarborActivitySession;
6
+ (function (HarboractivityapiHarborActivitySession) {
7
+ HarboractivityapiHarborActivitySession.Status = {
8
+ Active: "active",
9
+ Closed: "closed",
10
+ Expired: "expired",
11
+ };
12
+ })(HarboractivityapiHarborActivitySession || (exports.HarboractivityapiHarborActivitySession = HarboractivityapiHarborActivitySession = {}));
@@ -0,0 +1,6 @@
1
+ export interface HarboractivityapiHarborActivityTarget {
2
+ id?: string | undefined;
3
+ label?: string | undefined;
4
+ label_truncated?: boolean | undefined;
5
+ type?: string | undefined;
6
+ }
@@ -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 });
@@ -2,7 +2,7 @@ import type * as Polytomic from "../index";
2
2
  export interface ModelFilterCondition {
3
3
  /** Comparison this condition applies to the field's value. */
4
4
  function: Polytomic.FilterFunction;
5
- /** Handle naming this condition in 'logic'. Labels are scoped to this object, so a model condition and a target condition may share one. Optional: label every condition in the object or none of them, and an unlabelled object is labelled by position -- A, B, C -- which is how labels are always reported back. */
5
+ /** Handle naming this condition in 'logic'. A label starts with a letter or underscore and continues with letters, digits and underscores. Labels are scoped to this object, so a model condition and a target condition may share one. Optional: label every condition in the object or none of them, and an unlabelled object is labelled by position -- A, B, C -- which is how labels are always reported back. */
6
6
  label?: string | undefined;
7
7
  /** Model field this condition tests, named the same way as a field mapping's source. */
8
8
  source: Polytomic.Source;
@@ -5,6 +5,6 @@ import type * as Polytomic from "../index";
5
5
  export interface ModelFilters {
6
6
  /** Conditions a source record must satisfy to be read. An empty list reads every record. */
7
7
  conditions?: Polytomic.ModelFilterCondition[] | undefined;
8
- /** Expression combining the conditions in this object by their labels; 'and', 'or', and parentheses are supported. An empty expression means every condition must be satisfied. */
8
+ /** Expression combining the conditions in this object by their labels; 'and', 'or', and parentheses are supported. The operators are not case-sensitive but the labels are, and the expression has to name every condition in this object -- a condition may be repeated, as in '(A and B) or (A and C)' -- and an expression which leaves one out is rejected. An empty expression means every condition must be satisfied. */
9
9
  logic?: string | undefined;
10
10
  }
@@ -0,0 +1,8 @@
1
+ export declare const QueryStatus: {
2
+ readonly Created: "created";
3
+ readonly Running: "running";
4
+ readonly Unknown: "unknown";
5
+ readonly Done: "done";
6
+ readonly Failed: "failed";
7
+ };
8
+ export type QueryStatus = (typeof QueryStatus)[keyof typeof QueryStatus];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.QueryStatus = void 0;
5
+ exports.QueryStatus = {
6
+ Created: "created",
7
+ Running: "running",
8
+ Unknown: "unknown",
9
+ Done: "done",
10
+ Failed: "failed",
11
+ };
@@ -8,9 +8,9 @@ export interface RunQueryResult {
8
8
  expires?: string | undefined;
9
9
  /** The names of the fields returned by the query. This will not be returned until the query completes. */
10
10
  fields?: string[] | undefined;
11
- /** The ID of the query task. Poll GET /api/queries/{id} until the task reaches done or failed to retrieve results. */
11
+ /** The ID of the query task. Poll GET /api/queries/{id} until the task reaches the terminal status done, failed, or unknown. */
12
12
  id?: string | undefined;
13
13
  /** The query results, returned as an array of objects. */
14
14
  results?: Record<string, unknown>[] | undefined;
15
- status?: Polytomic.WorkTaskStatus | undefined;
15
+ status?: Polytomic.QueryStatus | undefined;
16
16
  }
@@ -7,8 +7,12 @@ export interface SchemaField {
7
7
  name?: string | undefined;
8
8
  /** JSONPath used to extract the field from each source record; only meaningful for document-style backends. */
9
9
  path?: string | undefined;
10
+ /** The user-set primary key status for this field, which takes precedence over source_primary_key; omitted when no override is set. */
11
+ primary_key_override?: boolean | undefined;
10
12
  /** The type of the field from the remote system. */
11
13
  remote_type?: string | undefined;
14
+ /** Whether the source system reports this field as part of the schema's primary key. */
15
+ source_primary_key?: boolean | undefined;
12
16
  type?: Polytomic.UtilFieldType | undefined;
13
17
  type_spec?: Polytomic.TypesType | undefined;
14
18
  /** True when the field's effective definition came from a user override. */
@@ -0,0 +1,12 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface SupportedFilterFunction {
3
+ id?: Polytomic.FilterFunction | undefined;
4
+ /** Human-readable label for the comparison. */
5
+ label?: string | undefined;
6
+ /** True if this comparison takes a list of values rather than a single one. */
7
+ multi_value?: boolean | undefined;
8
+ /** True if a condition using this comparison must carry a value; comparisons such as 'IsNotNull' take none. */
9
+ requires_value?: boolean | undefined;
10
+ /** Closed set of values this comparison accepts. A condition whose value is absent from this list is rejected when the sync is saved: the relative datetime comparisons ('InTheLast', 'RelativeOnOrAfter', 'RelativeOnOrBefore') take one of these duration keywords rather than a timestamp. Empty when the comparison accepts any value that coerces to the field's type. */
11
+ values?: Polytomic.PickValue[] | undefined;
12
+ }
@@ -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 });
@@ -3,7 +3,7 @@ export interface SyncSourceMetaResponse {
3
3
  /** Additional configuration fields available for this source, keyed by field name. */
4
4
  configuration?: Record<string, Polytomic.ConfigurationValue> | undefined;
5
5
  /** Map of configuration item name to its metadata (available values, required-one-of groups). */
6
- items?: Record<string, Polytomic.SourceMeta> | undefined;
6
+ items?: Record<string, Polytomic.SourceMeta | undefined> | undefined;
7
7
  /** Configuration items where exactly one must be selected by the caller. */
8
8
  requires_one_of?: string[] | undefined;
9
9
  }
@@ -8,6 +8,8 @@ export interface TargetField {
8
8
  description?: string | undefined;
9
9
  /** True if this field supports field-level encryption. */
10
10
  encryptable?: boolean | undefined;
11
+ /** Comparisons this field accepts in a target filter. A condition whose function is absent from this list is rejected when the sync is saved. Empty when the destination publishes no per-field list, in which case any comparison is accepted. */
12
+ filter_functions?: Polytomic.SupportedFilterFunction[] | undefined;
11
13
  /** True if this field can be used in a target filter. */
12
14
  filterable?: boolean | undefined;
13
15
  /** Backend-specific identifier of the field; use this value when configuring field mappings. */