polytomic 25.9.3 → 25.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/BaseClient.d.ts +15 -0
  2. package/BaseClient.js +17 -2
  3. package/api/errors/BadGatewayError.d.ts +1 -0
  4. package/api/errors/BadGatewayError.js +1 -1
  5. package/api/errors/BadRequestError.d.ts +1 -0
  6. package/api/errors/BadRequestError.js +1 -1
  7. package/api/errors/ConflictError.d.ts +1 -0
  8. package/api/errors/ConflictError.js +1 -1
  9. package/api/errors/ForbiddenError.d.ts +1 -0
  10. package/api/errors/ForbiddenError.js +1 -1
  11. package/api/errors/GatewayTimeoutError.d.ts +1 -0
  12. package/api/errors/GatewayTimeoutError.js +1 -1
  13. package/api/errors/InternalServerError.d.ts +1 -0
  14. package/api/errors/InternalServerError.js +1 -1
  15. package/api/errors/NotFoundError.d.ts +1 -0
  16. package/api/errors/NotFoundError.js +1 -1
  17. package/api/errors/RequestTimeoutError.d.ts +1 -0
  18. package/api/errors/RequestTimeoutError.js +1 -1
  19. package/api/errors/ServiceUnavailableError.d.ts +1 -0
  20. package/api/errors/ServiceUnavailableError.js +1 -1
  21. package/api/errors/TooManyRequestsError.d.ts +1 -0
  22. package/api/errors/TooManyRequestsError.js +1 -1
  23. package/api/errors/UnauthorizedError.d.ts +1 -0
  24. package/api/errors/UnauthorizedError.js +1 -1
  25. package/api/errors/UnprocessableEntityError.d.ts +1 -0
  26. package/api/errors/UnprocessableEntityError.js +1 -1
  27. package/api/resources/bulkSync/client/Client.d.ts +22 -0
  28. package/api/resources/bulkSync/client/Client.js +27 -4
  29. package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +4 -0
  30. package/api/resources/bulkSync/resources/errorHandling/client/Client.js +6 -1
  31. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +18 -0
  32. package/api/resources/bulkSync/resources/executions/client/Client.js +18 -0
  33. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +10 -0
  34. package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
  35. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
  36. package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
  37. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  38. package/api/resources/connections/client/Client.d.ts +26 -0
  39. package/api/resources/connections/client/Client.js +32 -5
  40. package/api/resources/connections/resources/proxy/client/Client.d.ts +8 -0
  41. package/api/resources/connections/resources/proxy/client/Client.js +11 -2
  42. package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +6 -0
  43. package/api/resources/connections/resources/sharedConnections/client/Client.js +8 -1
  44. package/api/resources/entities/client/Client.d.ts +4 -0
  45. package/api/resources/entities/client/Client.js +4 -0
  46. package/api/resources/events/client/Client.d.ts +5 -0
  47. package/api/resources/events/client/Client.js +5 -0
  48. package/api/resources/harbors/client/Client.d.ts +67 -64
  49. package/api/resources/harbors/client/Client.js +77 -73
  50. package/api/resources/identity/client/Client.d.ts +2 -0
  51. package/api/resources/identity/client/Client.js +2 -0
  52. package/api/resources/jobs/client/Client.d.ts +2 -0
  53. package/api/resources/jobs/client/Client.js +2 -0
  54. package/api/resources/modelSync/client/Client.d.ts +24 -0
  55. package/api/resources/modelSync/client/Client.js +29 -4
  56. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
  57. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  58. package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +4 -0
  59. package/api/resources/modelSync/resources/errorHandling/client/Client.js +6 -1
  60. package/api/resources/modelSync/resources/executions/client/Client.d.ts +14 -0
  61. package/api/resources/modelSync/resources/executions/client/Client.js +14 -0
  62. package/api/resources/modelSync/resources/targets/client/Client.d.ts +6 -0
  63. package/api/resources/modelSync/resources/targets/client/Client.js +6 -0
  64. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +1 -1
  65. package/api/resources/models/client/Client.d.ts +18 -0
  66. package/api/resources/models/client/Client.js +23 -4
  67. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
  68. package/api/resources/notifications/client/Client.d.ts +4 -0
  69. package/api/resources/notifications/client/Client.js +6 -1
  70. package/api/resources/organization/client/Client.d.ts +16 -0
  71. package/api/resources/organization/client/Client.js +20 -3
  72. package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -0
  73. package/api/resources/permissions/resources/policies/client/Client.js +13 -2
  74. package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
  75. package/api/resources/permissions/resources/roles/client/Client.js +13 -2
  76. package/api/resources/queryRunner/client/Client.d.ts +4 -0
  77. package/api/resources/queryRunner/client/Client.js +6 -1
  78. package/api/resources/recordViewLinks/client/Client.d.ts +4 -4
  79. package/api/resources/recordViewLinks/client/Client.js +6 -5
  80. package/api/resources/schemas/client/Client.d.ts +18 -0
  81. package/api/resources/schemas/client/Client.js +22 -3
  82. package/api/resources/temporaryCredentials/client/Client.d.ts +2 -2
  83. package/api/resources/temporaryCredentials/client/Client.js +4 -3
  84. package/api/resources/users/client/Client.d.ts +22 -0
  85. package/api/resources/users/client/Client.js +27 -4
  86. package/api/resources/webhooks/client/Client.d.ts +14 -0
  87. package/api/resources/webhooks/client/Client.js +17 -2
  88. package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  89. package/api/types/ConnectionProxyResponse.d.ts +1 -1
  90. package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
  91. package/api/types/HarborSourceMappingResponse.d.ts +1 -1
  92. package/api/types/SyncSourceMetaResponse.d.ts +1 -1
  93. package/core/auth/AuthProvider.d.ts +1 -0
  94. package/core/auth/AuthProvider.js +7 -0
  95. package/core/auth/index.d.ts +1 -1
  96. package/core/auth/index.js +3 -1
  97. package/core/fetcher/Fetcher.js +9 -92
  98. package/core/fetcher/getResponseBody.js +11 -0
  99. package/core/fetcher/makePassthroughRequest.js +26 -4
  100. package/core/fetcher/redactUrl.d.ts +2 -0
  101. package/core/fetcher/redactUrl.js +88 -0
  102. package/core/fetcher/requestWithRetries.js +4 -1
  103. package/core/fetcher/signals.js +9 -1
  104. package/core/requestBody.d.ts +12 -0
  105. package/core/requestBody.js +26 -0
  106. package/core/runtime/index.d.ts +1 -1
  107. package/core/runtime/index.js +2 -1
  108. package/core/runtime/runtime.d.ts +19 -0
  109. package/core/runtime/runtime.js +74 -2
  110. package/core/url/qs.js +2 -2
  111. package/errors/PolytomicError.d.ts +1 -0
  112. package/errors/PolytomicError.js +5 -1
  113. package/errors/PolytomicTimeoutError.d.ts +2 -2
  114. package/errors/PolytomicTimeoutError.js +40 -6
  115. package/package.json +2 -2
  116. package/version.d.ts +1 -1
  117. package/version.js +1 -1
@@ -75,6 +75,8 @@ class JobsClient {
75
75
  * @throws {@link Polytomic.BadRequestError}
76
76
  * @throws {@link Polytomic.NotFoundError}
77
77
  * @throws {@link Polytomic.InternalServerError}
78
+ * @throws {@link errors.PolytomicError}
79
+ * @throws {@link errors.PolytomicTimeoutError}
78
80
  *
79
81
  * @example
80
82
  * await client.jobs.get("createmodel", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -37,6 +37,8 @@ export declare class ModelSyncClient {
37
37
  * @throws {@link Polytomic.ForbiddenError}
38
38
  * @throws {@link Polytomic.NotFoundError}
39
39
  * @throws {@link Polytomic.InternalServerError}
40
+ * @throws {@link errors.PolytomicError}
41
+ * @throws {@link errors.PolytomicTimeoutError}
40
42
  *
41
43
  * @example
42
44
  * await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -65,6 +67,8 @@ export declare class ModelSyncClient {
65
67
  * @throws {@link Polytomic.ForbiddenError}
66
68
  * @throws {@link Polytomic.NotFoundError}
67
69
  * @throws {@link Polytomic.InternalServerError}
70
+ * @throws {@link errors.PolytomicError}
71
+ * @throws {@link errors.PolytomicTimeoutError}
68
72
  *
69
73
  * @example
70
74
  * await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -93,6 +97,8 @@ export declare class ModelSyncClient {
93
97
  * @throws {@link Polytomic.BadRequestError}
94
98
  * @throws {@link Polytomic.NotFoundError}
95
99
  * @throws {@link Polytomic.InternalServerError}
100
+ * @throws {@link errors.PolytomicError}
101
+ * @throws {@link errors.PolytomicTimeoutError}
96
102
  *
97
103
  * @example
98
104
  * await client.modelSync.list({
@@ -173,6 +179,8 @@ export declare class ModelSyncClient {
173
179
  * @throws {@link Polytomic.NotFoundError}
174
180
  * @throws {@link Polytomic.UnprocessableEntityError}
175
181
  * @throws {@link Polytomic.InternalServerError}
182
+ * @throws {@link errors.PolytomicError}
183
+ * @throws {@link errors.PolytomicTimeoutError}
176
184
  *
177
185
  * @example
178
186
  * await client.modelSync.create({
@@ -199,6 +207,8 @@ export declare class ModelSyncClient {
199
207
  * @param {ModelSyncClient.RequestOptions} requestOptions - Request-specific configuration.
200
208
  *
201
209
  * @throws {@link Polytomic.InternalServerError}
210
+ * @throws {@link errors.PolytomicError}
211
+ * @throws {@link errors.PolytomicTimeoutError}
202
212
  *
203
213
  * @example
204
214
  * await client.modelSync.getScheduleOptions()
@@ -217,6 +227,8 @@ export declare class ModelSyncClient {
217
227
  *
218
228
  * @throws {@link Polytomic.NotFoundError}
219
229
  * @throws {@link Polytomic.InternalServerError}
230
+ * @throws {@link errors.PolytomicError}
231
+ * @throws {@link errors.PolytomicTimeoutError}
220
232
  *
221
233
  * @example
222
234
  * await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -250,6 +262,8 @@ export declare class ModelSyncClient {
250
262
  * @throws {@link Polytomic.NotFoundError}
251
263
  * @throws {@link Polytomic.UnprocessableEntityError}
252
264
  * @throws {@link Polytomic.InternalServerError}
265
+ * @throws {@link errors.PolytomicError}
266
+ * @throws {@link errors.PolytomicTimeoutError}
253
267
  *
254
268
  * @example
255
269
  * await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -281,6 +295,8 @@ export declare class ModelSyncClient {
281
295
  * @throws {@link Polytomic.NotFoundError}
282
296
  * @throws {@link Polytomic.ConflictError}
283
297
  * @throws {@link Polytomic.InternalServerError}
298
+ * @throws {@link errors.PolytomicError}
299
+ * @throws {@link errors.PolytomicTimeoutError}
284
300
  *
285
301
  * @example
286
302
  * await client.modelSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -305,6 +321,8 @@ export declare class ModelSyncClient {
305
321
  * @throws {@link Polytomic.NotFoundError}
306
322
  * @throws {@link Polytomic.UnprocessableEntityError}
307
323
  * @throws {@link Polytomic.InternalServerError}
324
+ * @throws {@link errors.PolytomicError}
325
+ * @throws {@link errors.PolytomicTimeoutError}
308
326
  *
309
327
  * @example
310
328
  * await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -328,6 +346,8 @@ export declare class ModelSyncClient {
328
346
  * @throws {@link Polytomic.ForbiddenError}
329
347
  * @throws {@link Polytomic.NotFoundError}
330
348
  * @throws {@link Polytomic.InternalServerError}
349
+ * @throws {@link errors.PolytomicError}
350
+ * @throws {@link errors.PolytomicTimeoutError}
331
351
  *
332
352
  * @example
333
353
  * await client.modelSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -350,6 +370,8 @@ export declare class ModelSyncClient {
350
370
  * @throws {@link Polytomic.NotFoundError}
351
371
  * @throws {@link Polytomic.ConflictError}
352
372
  * @throws {@link Polytomic.InternalServerError}
373
+ * @throws {@link errors.PolytomicError}
374
+ * @throws {@link errors.PolytomicTimeoutError}
353
375
  *
354
376
  * @example
355
377
  * await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -368,6 +390,8 @@ export declare class ModelSyncClient {
368
390
  *
369
391
  * @throws {@link Polytomic.NotFoundError}
370
392
  * @throws {@link Polytomic.InternalServerError}
393
+ * @throws {@link errors.PolytomicError}
394
+ * @throws {@link errors.PolytomicTimeoutError}
371
395
  *
372
396
  * @example
373
397
  * await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -48,6 +48,7 @@ const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
50
  const json_1 = require("../../../../core/json");
51
+ const requestBody_1 = require("../../../../core/requestBody");
51
52
  const environments = __importStar(require("../../../../environments"));
52
53
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
53
54
  const errors = __importStar(require("../../../../errors/index"));
@@ -87,6 +88,8 @@ class ModelSyncClient {
87
88
  * @throws {@link Polytomic.ForbiddenError}
88
89
  * @throws {@link Polytomic.NotFoundError}
89
90
  * @throws {@link Polytomic.InternalServerError}
91
+ * @throws {@link errors.PolytomicError}
92
+ * @throws {@link errors.PolytomicTimeoutError}
90
93
  *
91
94
  * @example
92
95
  * await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -166,6 +169,8 @@ class ModelSyncClient {
166
169
  * @throws {@link Polytomic.ForbiddenError}
167
170
  * @throws {@link Polytomic.NotFoundError}
168
171
  * @throws {@link Polytomic.InternalServerError}
172
+ * @throws {@link errors.PolytomicError}
173
+ * @throws {@link errors.PolytomicTimeoutError}
169
174
  *
170
175
  * @example
171
176
  * await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -245,6 +250,8 @@ class ModelSyncClient {
245
250
  * @throws {@link Polytomic.BadRequestError}
246
251
  * @throws {@link Polytomic.NotFoundError}
247
252
  * @throws {@link Polytomic.InternalServerError}
253
+ * @throws {@link errors.PolytomicError}
254
+ * @throws {@link errors.PolytomicTimeoutError}
248
255
  *
249
256
  * @example
250
257
  * await client.modelSync.list({
@@ -378,6 +385,8 @@ class ModelSyncClient {
378
385
  * @throws {@link Polytomic.NotFoundError}
379
386
  * @throws {@link Polytomic.UnprocessableEntityError}
380
387
  * @throws {@link Polytomic.InternalServerError}
388
+ * @throws {@link errors.PolytomicError}
389
+ * @throws {@link errors.PolytomicTimeoutError}
381
390
  *
382
391
  * @example
383
392
  * await client.modelSync.create({
@@ -410,7 +419,7 @@ class ModelSyncClient {
410
419
  contentType: "application/json",
411
420
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
412
421
  requestType: "json",
413
- body: request,
422
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
414
423
  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,
415
424
  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,
416
425
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -456,6 +465,8 @@ class ModelSyncClient {
456
465
  * @param {ModelSyncClient.RequestOptions} requestOptions - Request-specific configuration.
457
466
  *
458
467
  * @throws {@link Polytomic.InternalServerError}
468
+ * @throws {@link errors.PolytomicError}
469
+ * @throws {@link errors.PolytomicTimeoutError}
459
470
  *
460
471
  * @example
461
472
  * await client.modelSync.getScheduleOptions()
@@ -514,6 +525,8 @@ class ModelSyncClient {
514
525
  *
515
526
  * @throws {@link Polytomic.NotFoundError}
516
527
  * @throws {@link Polytomic.InternalServerError}
528
+ * @throws {@link errors.PolytomicError}
529
+ * @throws {@link errors.PolytomicTimeoutError}
517
530
  *
518
531
  * @example
519
532
  * await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -589,6 +602,8 @@ class ModelSyncClient {
589
602
  * @throws {@link Polytomic.NotFoundError}
590
603
  * @throws {@link Polytomic.UnprocessableEntityError}
591
604
  * @throws {@link Polytomic.InternalServerError}
605
+ * @throws {@link errors.PolytomicError}
606
+ * @throws {@link errors.PolytomicTimeoutError}
592
607
  *
593
608
  * @example
594
609
  * await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -621,7 +636,7 @@ class ModelSyncClient {
621
636
  contentType: "application/json",
622
637
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
623
638
  requestType: "json",
624
- body: request,
639
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
625
640
  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,
626
641
  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,
627
642
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -674,6 +689,8 @@ class ModelSyncClient {
674
689
  * @throws {@link Polytomic.NotFoundError}
675
690
  * @throws {@link Polytomic.ConflictError}
676
691
  * @throws {@link Polytomic.InternalServerError}
692
+ * @throws {@link errors.PolytomicError}
693
+ * @throws {@link errors.PolytomicTimeoutError}
677
694
  *
678
695
  * @example
679
696
  * await client.modelSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -744,6 +761,8 @@ class ModelSyncClient {
744
761
  * @throws {@link Polytomic.NotFoundError}
745
762
  * @throws {@link Polytomic.UnprocessableEntityError}
746
763
  * @throws {@link Polytomic.InternalServerError}
764
+ * @throws {@link errors.PolytomicError}
765
+ * @throws {@link errors.PolytomicTimeoutError}
747
766
  *
748
767
  * @example
749
768
  * await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -768,7 +787,7 @@ class ModelSyncClient {
768
787
  contentType: "application/json",
769
788
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
770
789
  requestType: "json",
771
- body: request,
790
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
772
791
  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,
773
792
  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,
774
793
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -814,6 +833,8 @@ class ModelSyncClient {
814
833
  * @throws {@link Polytomic.ForbiddenError}
815
834
  * @throws {@link Polytomic.NotFoundError}
816
835
  * @throws {@link Polytomic.InternalServerError}
836
+ * @throws {@link errors.PolytomicError}
837
+ * @throws {@link errors.PolytomicTimeoutError}
817
838
  *
818
839
  * @example
819
840
  * await client.modelSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -878,6 +899,8 @@ class ModelSyncClient {
878
899
  * @throws {@link Polytomic.NotFoundError}
879
900
  * @throws {@link Polytomic.ConflictError}
880
901
  * @throws {@link Polytomic.InternalServerError}
902
+ * @throws {@link errors.PolytomicError}
903
+ * @throws {@link errors.PolytomicTimeoutError}
881
904
  *
882
905
  * @example
883
906
  * await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -900,7 +923,7 @@ class ModelSyncClient {
900
923
  contentType: "application/json",
901
924
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
902
925
  requestType: "json",
903
- body: request,
926
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
904
927
  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,
905
928
  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,
906
929
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -945,6 +968,8 @@ class ModelSyncClient {
945
968
  *
946
969
  * @throws {@link Polytomic.NotFoundError}
947
970
  * @throws {@link Polytomic.InternalServerError}
971
+ * @throws {@link errors.PolytomicError}
972
+ * @throws {@link errors.PolytomicTimeoutError}
948
973
  *
949
974
  * @example
950
975
  * await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export interface ModelSyncGetSourceFieldsRequest {
6
6
  /** Source configuration, matching the params used with GET /api/connections/{id}/modelsync/source, that selects the specific source to return fields for. */
7
- params?: Record<string, string[]>;
7
+ params?: Record<string, string[] | undefined>;
8
8
  }
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export interface ModelSyncGetSourceRequest {
6
6
  /** Query parameters used to incrementally refine a dependent source configuration. Keys correspond to configuration fields returned by previous calls to this endpoint. */
7
- params?: Record<string, string[]>;
7
+ params?: Record<string, string[] | undefined>;
8
8
  }
@@ -21,6 +21,8 @@ export declare class ErrorHandlingClient {
21
21
  * @throws {@link Polytomic.ForbiddenError}
22
22
  * @throws {@link Polytomic.NotFoundError}
23
23
  * @throws {@link Polytomic.InternalServerError}
24
+ * @throws {@link errors.PolytomicError}
25
+ * @throws {@link errors.PolytomicTimeoutError}
24
26
  *
25
27
  * @example
26
28
  * await client.modelSync.errorHandling.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -38,6 +40,8 @@ export declare class ErrorHandlingClient {
38
40
  * @throws {@link Polytomic.ForbiddenError}
39
41
  * @throws {@link Polytomic.NotFoundError}
40
42
  * @throws {@link Polytomic.InternalServerError}
43
+ * @throws {@link errors.PolytomicError}
44
+ * @throws {@link errors.PolytomicTimeoutError}
41
45
  *
42
46
  * @example
43
47
  * await client.modelSync.errorHandling.update("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.ErrorHandlingClient = 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 ErrorHandlingClient {
64
65
  * @throws {@link Polytomic.ForbiddenError}
65
66
  * @throws {@link Polytomic.NotFoundError}
66
67
  * @throws {@link Polytomic.InternalServerError}
68
+ * @throws {@link errors.PolytomicError}
69
+ * @throws {@link errors.PolytomicTimeoutError}
67
70
  *
68
71
  * @example
69
72
  * await client.modelSync.errorHandling.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -122,6 +125,8 @@ class ErrorHandlingClient {
122
125
  * @throws {@link Polytomic.ForbiddenError}
123
126
  * @throws {@link Polytomic.NotFoundError}
124
127
  * @throws {@link Polytomic.InternalServerError}
128
+ * @throws {@link errors.PolytomicError}
129
+ * @throws {@link errors.PolytomicTimeoutError}
125
130
  *
126
131
  * @example
127
132
  * await client.modelSync.errorHandling.update("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -144,7 +149,7 @@ class ErrorHandlingClient {
144
149
  contentType: "application/json",
145
150
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
146
151
  requestType: "json",
147
- body: request,
152
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
148
153
  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
154
  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
155
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -30,6 +30,8 @@ export declare class ExecutionsClient {
30
30
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
31
31
  *
32
32
  * @throws {@link Polytomic.NotFoundError}
33
+ * @throws {@link errors.PolytomicError}
34
+ * @throws {@link errors.PolytomicTimeoutError}
33
35
  *
34
36
  * @example
35
37
  * await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -53,6 +55,8 @@ export declare class ExecutionsClient {
53
55
  *
54
56
  * @throws {@link Polytomic.NotFoundError}
55
57
  * @throws {@link Polytomic.InternalServerError}
58
+ * @throws {@link errors.PolytomicError}
59
+ * @throws {@link errors.PolytomicTimeoutError}
56
60
  *
57
61
  * @example
58
62
  * await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -70,6 +74,8 @@ export declare class ExecutionsClient {
70
74
  * @throws {@link Polytomic.ForbiddenError}
71
75
  * @throws {@link Polytomic.NotFoundError}
72
76
  * @throws {@link Polytomic.InternalServerError}
77
+ * @throws {@link errors.PolytomicError}
78
+ * @throws {@link errors.PolytomicTimeoutError}
73
79
  *
74
80
  * @example
75
81
  * await client.modelSync.executions.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -88,6 +94,8 @@ export declare class ExecutionsClient {
88
94
  * @throws {@link Polytomic.NotFoundError}
89
95
  * @throws {@link Polytomic.RequestTimeoutError}
90
96
  * @throws {@link Polytomic.InternalServerError}
97
+ * @throws {@link errors.PolytomicError}
98
+ * @throws {@link errors.PolytomicTimeoutError}
91
99
  *
92
100
  * @example
93
101
  * await client.modelSync.executions.getConsoleLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", {
@@ -106,6 +114,8 @@ export declare class ExecutionsClient {
106
114
  *
107
115
  * @throws {@link Polytomic.NotFoundError}
108
116
  * @throws {@link Polytomic.InternalServerError}
117
+ * @throws {@link errors.PolytomicError}
118
+ * @throws {@link errors.PolytomicTimeoutError}
109
119
  *
110
120
  * @example
111
121
  * await client.modelSync.executions.getLogsIndex("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -130,6 +140,8 @@ export declare class ExecutionsClient {
130
140
  * @throws {@link Polytomic.BadRequestError}
131
141
  * @throws {@link Polytomic.NotFoundError}
132
142
  * @throws {@link Polytomic.InternalServerError}
143
+ * @throws {@link errors.PolytomicError}
144
+ * @throws {@link errors.PolytomicTimeoutError}
133
145
  *
134
146
  * @example
135
147
  * await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
@@ -153,6 +165,8 @@ export declare class ExecutionsClient {
153
165
  * @throws {@link Polytomic.BadRequestError}
154
166
  * @throws {@link Polytomic.NotFoundError}
155
167
  * @throws {@link Polytomic.InternalServerError}
168
+ * @throws {@link errors.PolytomicError}
169
+ * @throws {@link errors.PolytomicTimeoutError}
156
170
  *
157
171
  * @example
158
172
  * await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "records", "file.json")
@@ -73,6 +73,8 @@ class ExecutionsClient {
73
73
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
74
74
  *
75
75
  * @throws {@link Polytomic.NotFoundError}
76
+ * @throws {@link errors.PolytomicError}
77
+ * @throws {@link errors.PolytomicTimeoutError}
76
78
  *
77
79
  * @example
78
80
  * await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -146,6 +148,8 @@ class ExecutionsClient {
146
148
  *
147
149
  * @throws {@link Polytomic.NotFoundError}
148
150
  * @throws {@link Polytomic.InternalServerError}
151
+ * @throws {@link errors.PolytomicError}
152
+ * @throws {@link errors.PolytomicTimeoutError}
149
153
  *
150
154
  * @example
151
155
  * await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -205,6 +209,8 @@ class ExecutionsClient {
205
209
  * @throws {@link Polytomic.ForbiddenError}
206
210
  * @throws {@link Polytomic.NotFoundError}
207
211
  * @throws {@link Polytomic.InternalServerError}
212
+ * @throws {@link errors.PolytomicError}
213
+ * @throws {@link errors.PolytomicTimeoutError}
208
214
  *
209
215
  * @example
210
216
  * await client.modelSync.executions.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -270,6 +276,8 @@ class ExecutionsClient {
270
276
  * @throws {@link Polytomic.NotFoundError}
271
277
  * @throws {@link Polytomic.RequestTimeoutError}
272
278
  * @throws {@link Polytomic.InternalServerError}
279
+ * @throws {@link errors.PolytomicError}
280
+ * @throws {@link errors.PolytomicTimeoutError}
273
281
  *
274
282
  * @example
275
283
  * await client.modelSync.executions.getConsoleLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", {
@@ -343,6 +351,8 @@ class ExecutionsClient {
343
351
  *
344
352
  * @throws {@link Polytomic.NotFoundError}
345
353
  * @throws {@link Polytomic.InternalServerError}
354
+ * @throws {@link errors.PolytomicError}
355
+ * @throws {@link errors.PolytomicTimeoutError}
346
356
  *
347
357
  * @example
348
358
  * await client.modelSync.executions.getLogsIndex("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -406,6 +416,8 @@ class ExecutionsClient {
406
416
  * @throws {@link Polytomic.BadRequestError}
407
417
  * @throws {@link Polytomic.NotFoundError}
408
418
  * @throws {@link Polytomic.InternalServerError}
419
+ * @throws {@link errors.PolytomicError}
420
+ * @throws {@link errors.PolytomicTimeoutError}
409
421
  *
410
422
  * @example
411
423
  * await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
@@ -473,6 +485,8 @@ class ExecutionsClient {
473
485
  * @throws {@link Polytomic.BadRequestError}
474
486
  * @throws {@link Polytomic.NotFoundError}
475
487
  * @throws {@link Polytomic.InternalServerError}
488
+ * @throws {@link errors.PolytomicError}
489
+ * @throws {@link errors.PolytomicTimeoutError}
476
490
  *
477
491
  * @example
478
492
  * await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "records", "file.json")
@@ -62,6 +62,8 @@ export declare class TargetsClient {
62
62
  * @throws {@link Polytomic.ForbiddenError}
63
63
  * @throws {@link Polytomic.NotFoundError}
64
64
  * @throws {@link Polytomic.InternalServerError}
65
+ * @throws {@link errors.PolytomicError}
66
+ * @throws {@link errors.PolytomicTimeoutError}
65
67
  *
66
68
  * @example
67
69
  * await client.modelSync.targets.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -100,6 +102,8 @@ export declare class TargetsClient {
100
102
  * @throws {@link Polytomic.ForbiddenError}
101
103
  * @throws {@link Polytomic.NotFoundError}
102
104
  * @throws {@link Polytomic.InternalServerError}
105
+ * @throws {@link errors.PolytomicError}
106
+ * @throws {@link errors.PolytomicTimeoutError}
103
107
  *
104
108
  * @example
105
109
  * await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -150,6 +154,8 @@ export declare class TargetsClient {
150
154
  * @throws {@link Polytomic.ForbiddenError}
151
155
  * @throws {@link Polytomic.NotFoundError}
152
156
  * @throws {@link Polytomic.InternalServerError}
157
+ * @throws {@link errors.PolytomicError}
158
+ * @throws {@link errors.PolytomicTimeoutError}
153
159
  *
154
160
  * @example
155
161
  * await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac447e668d", "property")
@@ -108,6 +108,8 @@ class TargetsClient {
108
108
  * @throws {@link Polytomic.ForbiddenError}
109
109
  * @throws {@link Polytomic.NotFoundError}
110
110
  * @throws {@link Polytomic.InternalServerError}
111
+ * @throws {@link errors.PolytomicError}
112
+ * @throws {@link errors.PolytomicTimeoutError}
111
113
  *
112
114
  * @example
113
115
  * await client.modelSync.targets.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -199,6 +201,8 @@ class TargetsClient {
199
201
  * @throws {@link Polytomic.ForbiddenError}
200
202
  * @throws {@link Polytomic.NotFoundError}
201
203
  * @throws {@link Polytomic.InternalServerError}
204
+ * @throws {@link errors.PolytomicError}
205
+ * @throws {@link errors.PolytomicTimeoutError}
202
206
  *
203
207
  * @example
204
208
  * await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -303,6 +307,8 @@ class TargetsClient {
303
307
  * @throws {@link Polytomic.ForbiddenError}
304
308
  * @throws {@link Polytomic.NotFoundError}
305
309
  * @throws {@link Polytomic.InternalServerError}
310
+ * @throws {@link errors.PolytomicError}
311
+ * @throws {@link errors.PolytomicTimeoutError}
306
312
  *
307
313
  * @example
308
314
  * await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac447e668d", "property")
@@ -11,5 +11,5 @@ export interface TargetsGetTargetFieldsRequest {
11
11
  /** When true, force a cache refresh of the target's schema before returning its fields. Ignored when properties is supplied. */
12
12
  refresh?: boolean;
13
13
  /** Target-creation property values, supplied as properties[key]=value, matching the target_creation.properties returned by GET /api/connections/{id}/modelsync/targetobjects. When supplied, the response describes the not-yet-created target that would result from these inputs, in the same shape as for an existing target. Exactly one of target or properties must be supplied. */
14
- properties?: Record<string, string[]>;
14
+ properties?: Record<string, string[] | undefined>;
15
15
  }
@@ -35,6 +35,8 @@ export declare class ModelsClient {
35
35
  * @throws {@link Polytomic.ForbiddenError}
36
36
  * @throws {@link Polytomic.NotFoundError}
37
37
  * @throws {@link Polytomic.InternalServerError}
38
+ * @throws {@link errors.PolytomicError}
39
+ * @throws {@link errors.PolytomicTimeoutError}
38
40
  *
39
41
  * @example
40
42
  * await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -57,6 +59,8 @@ export declare class ModelsClient {
57
59
  * @throws {@link Polytomic.ForbiddenError}
58
60
  * @throws {@link Polytomic.NotFoundError}
59
61
  * @throws {@link Polytomic.InternalServerError}
62
+ * @throws {@link errors.PolytomicError}
63
+ * @throws {@link errors.PolytomicTimeoutError}
60
64
  *
61
65
  * @example
62
66
  * await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -77,6 +81,8 @@ export declare class ModelsClient {
77
81
  * @throws {@link Polytomic.BadRequestError}
78
82
  * @throws {@link Polytomic.NotFoundError}
79
83
  * @throws {@link Polytomic.InternalServerError}
84
+ * @throws {@link errors.PolytomicError}
85
+ * @throws {@link errors.PolytomicTimeoutError}
80
86
  *
81
87
  * @example
82
88
  * await client.models.preview({
@@ -107,6 +113,8 @@ export declare class ModelsClient {
107
113
  * @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
108
114
  *
109
115
  * @throws {@link Polytomic.NotFoundError}
116
+ * @throws {@link errors.PolytomicError}
117
+ * @throws {@link errors.PolytomicTimeoutError}
110
118
  *
111
119
  * @example
112
120
  * await client.models.list()
@@ -130,6 +138,8 @@ export declare class ModelsClient {
130
138
  * @throws {@link Polytomic.BadRequestError}
131
139
  * @throws {@link Polytomic.ForbiddenError}
132
140
  * @throws {@link Polytomic.InternalServerError}
141
+ * @throws {@link errors.PolytomicError}
142
+ * @throws {@link errors.PolytomicTimeoutError}
133
143
  *
134
144
  * @example
135
145
  * await client.models.create({
@@ -158,6 +168,8 @@ export declare class ModelsClient {
158
168
  *
159
169
  * @throws {@link Polytomic.NotFoundError}
160
170
  * @throws {@link Polytomic.InternalServerError}
171
+ * @throws {@link errors.PolytomicError}
172
+ * @throws {@link errors.PolytomicTimeoutError}
161
173
  *
162
174
  * @example
163
175
  * await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -187,6 +199,8 @@ export declare class ModelsClient {
187
199
  * @throws {@link Polytomic.BadRequestError}
188
200
  * @throws {@link Polytomic.NotFoundError}
189
201
  * @throws {@link Polytomic.InternalServerError}
202
+ * @throws {@link errors.PolytomicError}
203
+ * @throws {@link errors.PolytomicTimeoutError}
190
204
  *
191
205
  * @example
192
206
  * await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -213,6 +227,8 @@ export declare class ModelsClient {
213
227
  * @throws {@link Polytomic.ForbiddenError}
214
228
  * @throws {@link Polytomic.NotFoundError}
215
229
  * @throws {@link Polytomic.InternalServerError}
230
+ * @throws {@link errors.PolytomicError}
231
+ * @throws {@link errors.PolytomicTimeoutError}
216
232
  *
217
233
  * @example
218
234
  * await client.models.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -235,6 +251,8 @@ export declare class ModelsClient {
235
251
  * @throws {@link Polytomic.BadRequestError}
236
252
  * @throws {@link Polytomic.NotFoundError}
237
253
  * @throws {@link Polytomic.InternalServerError}
254
+ * @throws {@link errors.PolytomicError}
255
+ * @throws {@link errors.PolytomicTimeoutError}
238
256
  *
239
257
  * @example
240
258
  * await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d", {