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
@@ -59,6 +59,7 @@ const BaseClient_1 = require("../../../../BaseClient");
59
59
  const core = __importStar(require("../../../../core"));
60
60
  const headers_1 = require("../../../../core/headers");
61
61
  const json_1 = require("../../../../core/json");
62
+ const requestBody_1 = require("../../../../core/requestBody");
62
63
  const environments = __importStar(require("../../../../environments"));
63
64
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
64
65
  const errors = __importStar(require("../../../../errors/index"));
@@ -90,6 +91,8 @@ class ModelsClient {
90
91
  * @throws {@link Polytomic.ForbiddenError}
91
92
  * @throws {@link Polytomic.NotFoundError}
92
93
  * @throws {@link Polytomic.InternalServerError}
94
+ * @throws {@link errors.PolytomicError}
95
+ * @throws {@link errors.PolytomicTimeoutError}
93
96
  *
94
97
  * @example
95
98
  * await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -163,6 +166,8 @@ class ModelsClient {
163
166
  * @throws {@link Polytomic.ForbiddenError}
164
167
  * @throws {@link Polytomic.NotFoundError}
165
168
  * @throws {@link Polytomic.InternalServerError}
169
+ * @throws {@link errors.PolytomicError}
170
+ * @throws {@link errors.PolytomicTimeoutError}
166
171
  *
167
172
  * @example
168
173
  * await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -185,7 +190,7 @@ class ModelsClient {
185
190
  contentType: "application/json",
186
191
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
187
192
  requestType: "json",
188
- body: request,
193
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
189
194
  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,
190
195
  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,
191
196
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -231,6 +236,8 @@ class ModelsClient {
231
236
  * @throws {@link Polytomic.BadRequestError}
232
237
  * @throws {@link Polytomic.NotFoundError}
233
238
  * @throws {@link Polytomic.InternalServerError}
239
+ * @throws {@link errors.PolytomicError}
240
+ * @throws {@link errors.PolytomicTimeoutError}
234
241
  *
235
242
  * @example
236
243
  * await client.models.preview({
@@ -270,7 +277,7 @@ class ModelsClient {
270
277
  .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
271
278
  .build(),
272
279
  requestType: "json",
273
- body: _body,
280
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
274
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,
275
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,
276
283
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -314,6 +321,8 @@ class ModelsClient {
314
321
  * @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
315
322
  *
316
323
  * @throws {@link Polytomic.NotFoundError}
324
+ * @throws {@link errors.PolytomicError}
325
+ * @throws {@link errors.PolytomicTimeoutError}
317
326
  *
318
327
  * @example
319
328
  * await client.models.list()
@@ -374,6 +383,8 @@ class ModelsClient {
374
383
  * @throws {@link Polytomic.BadRequestError}
375
384
  * @throws {@link Polytomic.ForbiddenError}
376
385
  * @throws {@link Polytomic.InternalServerError}
386
+ * @throws {@link errors.PolytomicError}
387
+ * @throws {@link errors.PolytomicTimeoutError}
377
388
  *
378
389
  * @example
379
390
  * await client.models.create({
@@ -413,7 +424,7 @@ class ModelsClient {
413
424
  .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
414
425
  .build(),
415
426
  requestType: "json",
416
- body: _body,
427
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
417
428
  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,
418
429
  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,
419
430
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -455,6 +466,8 @@ class ModelsClient {
455
466
  *
456
467
  * @throws {@link Polytomic.NotFoundError}
457
468
  * @throws {@link Polytomic.InternalServerError}
469
+ * @throws {@link errors.PolytomicError}
470
+ * @throws {@link errors.PolytomicTimeoutError}
458
471
  *
459
472
  * @example
460
473
  * await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -531,6 +544,8 @@ class ModelsClient {
531
544
  * @throws {@link Polytomic.BadRequestError}
532
545
  * @throws {@link Polytomic.NotFoundError}
533
546
  * @throws {@link Polytomic.InternalServerError}
547
+ * @throws {@link errors.PolytomicError}
548
+ * @throws {@link errors.PolytomicTimeoutError}
534
549
  *
535
550
  * @example
536
551
  * await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -568,7 +583,7 @@ class ModelsClient {
568
583
  .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
569
584
  .build(),
570
585
  requestType: "json",
571
- body: _body,
586
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
572
587
  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,
573
588
  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,
574
589
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -610,6 +625,8 @@ class ModelsClient {
610
625
  * @throws {@link Polytomic.ForbiddenError}
611
626
  * @throws {@link Polytomic.NotFoundError}
612
627
  * @throws {@link Polytomic.InternalServerError}
628
+ * @throws {@link errors.PolytomicError}
629
+ * @throws {@link errors.PolytomicTimeoutError}
613
630
  *
614
631
  * @example
615
632
  * await client.models.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -682,6 +699,8 @@ class ModelsClient {
682
699
  * @throws {@link Polytomic.BadRequestError}
683
700
  * @throws {@link Polytomic.NotFoundError}
684
701
  * @throws {@link Polytomic.InternalServerError}
702
+ * @throws {@link errors.PolytomicError}
703
+ * @throws {@link errors.PolytomicTimeoutError}
685
704
  *
686
705
  * @example
687
706
  * await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export interface ModelsGetEnrichmentSourceRequest {
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 NotificationsClient {
21
21
  * @param {NotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
22
22
  *
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.notifications.getGlobalErrorSubscribers()
@@ -41,6 +43,8 @@ export declare class NotificationsClient {
41
43
  *
42
44
  * @throws {@link Polytomic.BadRequestError}
43
45
  * @throws {@link Polytomic.InternalServerError}
46
+ * @throws {@link errors.PolytomicError}
47
+ * @throws {@link errors.PolytomicTimeoutError}
44
48
  *
45
49
  * @example
46
50
  * await client.notifications.setGlobalErrorSubscribers()
@@ -47,6 +47,7 @@ exports.NotificationsClient = 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 NotificationsClient {
64
65
  * @param {NotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
65
66
  *
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.notifications.getGlobalErrorSubscribers()
@@ -124,6 +127,8 @@ class NotificationsClient {
124
127
  *
125
128
  * @throws {@link Polytomic.BadRequestError}
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.notifications.setGlobalErrorSubscribers()
@@ -146,7 +151,7 @@ class NotificationsClient {
146
151
  contentType: "application/json",
147
152
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
148
153
  requestType: "json",
149
- body: request,
154
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
150
155
  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,
151
156
  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,
152
157
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -29,6 +29,8 @@ export declare class OrganizationClient {
29
29
  * @throws {@link Polytomic.UnauthorizedError}
30
30
  * @throws {@link Polytomic.ForbiddenError}
31
31
  * @throws {@link Polytomic.NotFoundError}
32
+ * @throws {@link errors.PolytomicError}
33
+ * @throws {@link errors.PolytomicTimeoutError}
32
34
  *
33
35
  * @example
34
36
  * await client.organization.getCurrent()
@@ -43,6 +45,8 @@ export declare class OrganizationClient {
43
45
  * @throws {@link Polytomic.UnauthorizedError}
44
46
  * @throws {@link Polytomic.ForbiddenError}
45
47
  * @throws {@link Polytomic.InternalServerError}
48
+ * @throws {@link errors.PolytomicError}
49
+ * @throws {@link errors.PolytomicTimeoutError}
46
50
  *
47
51
  * @example
48
52
  * await client.organization.getRecordLogging()
@@ -60,6 +64,8 @@ export declare class OrganizationClient {
60
64
  * @throws {@link Polytomic.NotFoundError}
61
65
  * @throws {@link Polytomic.UnprocessableEntityError}
62
66
  * @throws {@link Polytomic.InternalServerError}
67
+ * @throws {@link errors.PolytomicError}
68
+ * @throws {@link errors.PolytomicTimeoutError}
63
69
  *
64
70
  * @example
65
71
  * await client.organization.updateRecordLogging({
@@ -84,6 +90,8 @@ export declare class OrganizationClient {
84
90
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
85
91
  *
86
92
  * @throws {@link Polytomic.InternalServerError}
93
+ * @throws {@link errors.PolytomicError}
94
+ * @throws {@link errors.PolytomicTimeoutError}
87
95
  *
88
96
  * @example
89
97
  * await client.organization.list()
@@ -106,6 +114,8 @@ export declare class OrganizationClient {
106
114
  * @throws {@link Polytomic.ConflictError}
107
115
  * @throws {@link Polytomic.UnprocessableEntityError}
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.organization.create({
@@ -129,6 +139,8 @@ export declare class OrganizationClient {
129
139
  * @throws {@link Polytomic.ForbiddenError}
130
140
  * @throws {@link Polytomic.NotFoundError}
131
141
  * @throws {@link Polytomic.InternalServerError}
142
+ * @throws {@link errors.PolytomicError}
143
+ * @throws {@link errors.PolytomicTimeoutError}
132
144
  *
133
145
  * @example
134
146
  * await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -153,6 +165,8 @@ export declare class OrganizationClient {
153
165
  * @throws {@link Polytomic.ConflictError}
154
166
  * @throws {@link Polytomic.UnprocessableEntityError}
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.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -172,6 +186,8 @@ export declare class OrganizationClient {
172
186
  * @throws {@link Polytomic.ForbiddenError}
173
187
  * @throws {@link Polytomic.NotFoundError}
174
188
  * @throws {@link Polytomic.InternalServerError}
189
+ * @throws {@link errors.PolytomicError}
190
+ * @throws {@link errors.PolytomicTimeoutError}
175
191
  *
176
192
  * @example
177
193
  * await client.organization.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.OrganizationClient = 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"));
@@ -72,6 +73,8 @@ class OrganizationClient {
72
73
  * @throws {@link Polytomic.UnauthorizedError}
73
74
  * @throws {@link Polytomic.ForbiddenError}
74
75
  * @throws {@link Polytomic.NotFoundError}
76
+ * @throws {@link errors.PolytomicError}
77
+ * @throws {@link errors.PolytomicTimeoutError}
75
78
  *
76
79
  * @example
77
80
  * await client.organization.getCurrent()
@@ -127,6 +130,8 @@ class OrganizationClient {
127
130
  * @throws {@link Polytomic.UnauthorizedError}
128
131
  * @throws {@link Polytomic.ForbiddenError}
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.organization.getRecordLogging()
@@ -188,6 +193,8 @@ class OrganizationClient {
188
193
  * @throws {@link Polytomic.NotFoundError}
189
194
  * @throws {@link Polytomic.UnprocessableEntityError}
190
195
  * @throws {@link Polytomic.InternalServerError}
196
+ * @throws {@link errors.PolytomicError}
197
+ * @throws {@link errors.PolytomicTimeoutError}
191
198
  *
192
199
  * @example
193
200
  * await client.organization.updateRecordLogging({
@@ -212,7 +219,7 @@ class OrganizationClient {
212
219
  contentType: "application/json",
213
220
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
214
221
  requestType: "json",
215
- body: request,
222
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
216
223
  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,
217
224
  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,
218
225
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -264,6 +271,8 @@ class OrganizationClient {
264
271
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
265
272
  *
266
273
  * @throws {@link Polytomic.InternalServerError}
274
+ * @throws {@link errors.PolytomicError}
275
+ * @throws {@link errors.PolytomicTimeoutError}
267
276
  *
268
277
  * @example
269
278
  * await client.organization.list()
@@ -323,6 +332,8 @@ class OrganizationClient {
323
332
  * @throws {@link Polytomic.ConflictError}
324
333
  * @throws {@link Polytomic.UnprocessableEntityError}
325
334
  * @throws {@link Polytomic.InternalServerError}
335
+ * @throws {@link errors.PolytomicError}
336
+ * @throws {@link errors.PolytomicTimeoutError}
326
337
  *
327
338
  * @example
328
339
  * await client.organization.create({
@@ -347,7 +358,7 @@ class OrganizationClient {
347
358
  contentType: "application/json",
348
359
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
349
360
  requestType: "json",
350
- body: request,
361
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
351
362
  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,
352
363
  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,
353
364
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -391,6 +402,8 @@ class OrganizationClient {
391
402
  * @throws {@link Polytomic.ForbiddenError}
392
403
  * @throws {@link Polytomic.NotFoundError}
393
404
  * @throws {@link Polytomic.InternalServerError}
405
+ * @throws {@link errors.PolytomicError}
406
+ * @throws {@link errors.PolytomicTimeoutError}
394
407
  *
395
408
  * @example
396
409
  * await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -456,6 +469,8 @@ class OrganizationClient {
456
469
  * @throws {@link Polytomic.ConflictError}
457
470
  * @throws {@link Polytomic.UnprocessableEntityError}
458
471
  * @throws {@link Polytomic.InternalServerError}
472
+ * @throws {@link errors.PolytomicError}
473
+ * @throws {@link errors.PolytomicTimeoutError}
459
474
  *
460
475
  * @example
461
476
  * await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -480,7 +495,7 @@ class OrganizationClient {
480
495
  contentType: "application/json",
481
496
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
482
497
  requestType: "json",
483
- body: request,
498
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
484
499
  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,
485
500
  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,
486
501
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -522,6 +537,8 @@ class OrganizationClient {
522
537
  * @throws {@link Polytomic.ForbiddenError}
523
538
  * @throws {@link Polytomic.NotFoundError}
524
539
  * @throws {@link Polytomic.InternalServerError}
540
+ * @throws {@link errors.PolytomicError}
541
+ * @throws {@link errors.PolytomicTimeoutError}
525
542
  *
526
543
  * @example
527
544
  * await client.organization.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -24,6 +24,8 @@ export declare class PoliciesClient {
24
24
  * @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
25
25
  *
26
26
  * @throws {@link Polytomic.InternalServerError}
27
+ * @throws {@link errors.PolytomicError}
28
+ * @throws {@link errors.PolytomicTimeoutError}
27
29
  *
28
30
  * @example
29
31
  * await client.permissions.policies.list()
@@ -45,6 +47,8 @@ export declare class PoliciesClient {
45
47
  * @throws {@link Polytomic.ForbiddenError}
46
48
  * @throws {@link Polytomic.NotFoundError}
47
49
  * @throws {@link Polytomic.InternalServerError}
50
+ * @throws {@link errors.PolytomicError}
51
+ * @throws {@link errors.PolytomicTimeoutError}
48
52
  *
49
53
  * @example
50
54
  * await client.permissions.policies.create({
@@ -64,6 +68,8 @@ export declare class PoliciesClient {
64
68
  *
65
69
  * @throws {@link Polytomic.NotFoundError}
66
70
  * @throws {@link Polytomic.InternalServerError}
71
+ * @throws {@link errors.PolytomicError}
72
+ * @throws {@link errors.PolytomicTimeoutError}
67
73
  *
68
74
  * @example
69
75
  * await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -87,6 +93,8 @@ export declare class PoliciesClient {
87
93
  * @throws {@link Polytomic.ForbiddenError}
88
94
  * @throws {@link Polytomic.NotFoundError}
89
95
  * @throws {@link Polytomic.InternalServerError}
96
+ * @throws {@link errors.PolytomicError}
97
+ * @throws {@link errors.PolytomicTimeoutError}
90
98
  *
91
99
  * @example
92
100
  * await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -107,6 +115,8 @@ export declare class PoliciesClient {
107
115
  * @throws {@link Polytomic.ForbiddenError}
108
116
  * @throws {@link Polytomic.NotFoundError}
109
117
  * @throws {@link Polytomic.InternalServerError}
118
+ * @throws {@link errors.PolytomicError}
119
+ * @throws {@link errors.PolytomicTimeoutError}
110
120
  *
111
121
  * @example
112
122
  * await client.permissions.policies.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.PoliciesClient = 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"));
@@ -67,6 +68,8 @@ class PoliciesClient {
67
68
  * @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
68
69
  *
69
70
  * @throws {@link Polytomic.InternalServerError}
71
+ * @throws {@link errors.PolytomicError}
72
+ * @throws {@link errors.PolytomicTimeoutError}
70
73
  *
71
74
  * @example
72
75
  * await client.permissions.policies.list()
@@ -128,6 +131,8 @@ class PoliciesClient {
128
131
  * @throws {@link Polytomic.ForbiddenError}
129
132
  * @throws {@link Polytomic.NotFoundError}
130
133
  * @throws {@link Polytomic.InternalServerError}
134
+ * @throws {@link errors.PolytomicError}
135
+ * @throws {@link errors.PolytomicTimeoutError}
131
136
  *
132
137
  * @example
133
138
  * await client.permissions.policies.create({
@@ -152,7 +157,7 @@ class PoliciesClient {
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,
@@ -194,6 +199,8 @@ class PoliciesClient {
194
199
  *
195
200
  * @throws {@link Polytomic.NotFoundError}
196
201
  * @throws {@link Polytomic.InternalServerError}
202
+ * @throws {@link errors.PolytomicError}
203
+ * @throws {@link errors.PolytomicTimeoutError}
197
204
  *
198
205
  * @example
199
206
  * await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -256,6 +263,8 @@ class PoliciesClient {
256
263
  * @throws {@link Polytomic.ForbiddenError}
257
264
  * @throws {@link Polytomic.NotFoundError}
258
265
  * @throws {@link Polytomic.InternalServerError}
266
+ * @throws {@link errors.PolytomicError}
267
+ * @throws {@link errors.PolytomicTimeoutError}
259
268
  *
260
269
  * @example
261
270
  * await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -280,7 +289,7 @@ class PoliciesClient {
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,
@@ -323,6 +332,8 @@ class PoliciesClient {
323
332
  * @throws {@link Polytomic.ForbiddenError}
324
333
  * @throws {@link Polytomic.NotFoundError}
325
334
  * @throws {@link Polytomic.InternalServerError}
335
+ * @throws {@link errors.PolytomicError}
336
+ * @throws {@link errors.PolytomicTimeoutError}
326
337
  *
327
338
  * @example
328
339
  * await client.permissions.policies.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -25,6 +25,8 @@ export declare class RolesClient {
25
25
  * @param {RolesClient.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.permissions.roles.list()
@@ -47,6 +49,8 @@ export declare class RolesClient {
47
49
  * @throws {@link Polytomic.ForbiddenError}
48
50
  * @throws {@link Polytomic.NotFoundError}
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.permissions.roles.create({
@@ -64,6 +68,8 @@ export declare class RolesClient {
64
68
  * @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
65
69
  *
66
70
  * @throws {@link Polytomic.NotFoundError}
71
+ * @throws {@link errors.PolytomicError}
72
+ * @throws {@link errors.PolytomicTimeoutError}
67
73
  *
68
74
  * @example
69
75
  * await client.permissions.roles.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -86,6 +92,8 @@ export declare class RolesClient {
86
92
  * @throws {@link Polytomic.ForbiddenError}
87
93
  * @throws {@link Polytomic.NotFoundError}
88
94
  * @throws {@link Polytomic.InternalServerError}
95
+ * @throws {@link errors.PolytomicError}
96
+ * @throws {@link errors.PolytomicTimeoutError}
89
97
  *
90
98
  * @example
91
99
  * await client.permissions.roles.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -111,6 +119,8 @@ export declare class RolesClient {
111
119
  * @throws {@link Polytomic.ForbiddenError}
112
120
  * @throws {@link Polytomic.NotFoundError}
113
121
  * @throws {@link Polytomic.InternalServerError}
122
+ * @throws {@link errors.PolytomicError}
123
+ * @throws {@link errors.PolytomicTimeoutError}
114
124
  *
115
125
  * @example
116
126
  * await client.permissions.roles.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.RolesClient = 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 RolesClient {
68
69
  * @param {RolesClient.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.permissions.roles.list()
@@ -127,6 +130,8 @@ class RolesClient {
127
130
  * @throws {@link Polytomic.ForbiddenError}
128
131
  * @throws {@link Polytomic.NotFoundError}
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.permissions.roles.create({
@@ -151,7 +156,7 @@ class RolesClient {
151
156
  contentType: "application/json",
152
157
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
153
158
  requestType: "json",
154
- body: request,
159
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
155
160
  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,
156
161
  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,
157
162
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -191,6 +196,8 @@ class RolesClient {
191
196
  * @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
192
197
  *
193
198
  * @throws {@link Polytomic.NotFoundError}
199
+ * @throws {@link errors.PolytomicError}
200
+ * @throws {@link errors.PolytomicTimeoutError}
194
201
  *
195
202
  * @example
196
203
  * await client.permissions.roles.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -250,6 +257,8 @@ class RolesClient {
250
257
  * @throws {@link Polytomic.ForbiddenError}
251
258
  * @throws {@link Polytomic.NotFoundError}
252
259
  * @throws {@link Polytomic.InternalServerError}
260
+ * @throws {@link errors.PolytomicError}
261
+ * @throws {@link errors.PolytomicTimeoutError}
253
262
  *
254
263
  * @example
255
264
  * await client.permissions.roles.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -274,7 +283,7 @@ class RolesClient {
274
283
  contentType: "application/json",
275
284
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
276
285
  requestType: "json",
277
- body: request,
286
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
278
287
  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,
279
288
  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,
280
289
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -322,6 +331,8 @@ class RolesClient {
322
331
  * @throws {@link Polytomic.ForbiddenError}
323
332
  * @throws {@link Polytomic.NotFoundError}
324
333
  * @throws {@link Polytomic.InternalServerError}
334
+ * @throws {@link errors.PolytomicError}
335
+ * @throws {@link errors.PolytomicTimeoutError}
325
336
  *
326
337
  * @example
327
338
  * await client.permissions.roles.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -30,6 +30,8 @@ export declare class QueryRunnerClient {
30
30
  * @throws {@link Polytomic.BadRequestError}
31
31
  * @throws {@link Polytomic.NotFoundError}
32
32
  * @throws {@link Polytomic.InternalServerError}
33
+ * @throws {@link errors.PolytomicError}
34
+ * @throws {@link errors.PolytomicTimeoutError}
33
35
  *
34
36
  * @example
35
37
  * await client.queryRunner.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -60,6 +62,8 @@ export declare class QueryRunnerClient {
60
62
  * @throws {@link Polytomic.BadRequestError}
61
63
  * @throws {@link Polytomic.NotFoundError}
62
64
  * @throws {@link Polytomic.InternalServerError}
65
+ * @throws {@link errors.PolytomicError}
66
+ * @throws {@link errors.PolytomicTimeoutError}
63
67
  *
64
68
  * @example
65
69
  * await client.queryRunner.getQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -58,6 +58,7 @@ exports.QueryRunnerClient = void 0;
58
58
  const BaseClient_1 = require("../../../../BaseClient");
59
59
  const core = __importStar(require("../../../../core"));
60
60
  const headers_1 = require("../../../../core/headers");
61
+ const requestBody_1 = require("../../../../core/requestBody");
61
62
  const environments = __importStar(require("../../../../environments"));
62
63
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
63
64
  const errors = __importStar(require("../../../../errors/index"));
@@ -84,6 +85,8 @@ class QueryRunnerClient {
84
85
  * @throws {@link Polytomic.BadRequestError}
85
86
  * @throws {@link Polytomic.NotFoundError}
86
87
  * @throws {@link Polytomic.InternalServerError}
88
+ * @throws {@link errors.PolytomicError}
89
+ * @throws {@link errors.PolytomicTimeoutError}
87
90
  *
88
91
  * @example
89
92
  * await client.queryRunner.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -116,7 +119,7 @@ class QueryRunnerClient {
116
119
  .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
117
120
  .build(),
118
121
  requestType: "json",
119
- body: _body,
122
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
120
123
  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,
121
124
  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,
122
125
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -167,6 +170,8 @@ class QueryRunnerClient {
167
170
  * @throws {@link Polytomic.BadRequestError}
168
171
  * @throws {@link Polytomic.NotFoundError}
169
172
  * @throws {@link Polytomic.InternalServerError}
173
+ * @throws {@link errors.PolytomicError}
174
+ * @throws {@link errors.PolytomicTimeoutError}
170
175
  *
171
176
  * @example
172
177
  * await client.queryRunner.getQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {