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
@@ -31,6 +31,8 @@ export declare class SchemasClient {
31
31
  * @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
32
32
  *
33
33
  * @throws {@link Polytomic.NotFoundError}
34
+ * @throws {@link errors.PolytomicError}
35
+ * @throws {@link errors.PolytomicTimeoutError}
34
36
  *
35
37
  * @example
36
38
  * await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -62,6 +64,8 @@ export declare class SchemasClient {
62
64
  * @throws {@link Polytomic.ForbiddenError}
63
65
  * @throws {@link Polytomic.NotFoundError}
64
66
  * @throws {@link Polytomic.InternalServerError}
67
+ * @throws {@link errors.PolytomicError}
68
+ * @throws {@link errors.PolytomicTimeoutError}
65
69
  *
66
70
  * @example
67
71
  * await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -85,6 +89,8 @@ export declare class SchemasClient {
85
89
  * @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
86
90
  *
87
91
  * @throws {@link Polytomic.NotFoundError}
92
+ * @throws {@link errors.PolytomicError}
93
+ * @throws {@link errors.PolytomicTimeoutError}
88
94
  *
89
95
  * @example
90
96
  * await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact")
@@ -116,6 +122,8 @@ export declare class SchemasClient {
116
122
  * @throws {@link Polytomic.ForbiddenError}
117
123
  * @throws {@link Polytomic.NotFoundError}
118
124
  * @throws {@link Polytomic.InternalServerError}
125
+ * @throws {@link errors.PolytomicError}
126
+ * @throws {@link errors.PolytomicTimeoutError}
119
127
  *
120
128
  * @example
121
129
  * await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact")
@@ -139,6 +147,8 @@ export declare class SchemasClient {
139
147
  * @throws {@link Polytomic.ForbiddenError}
140
148
  * @throws {@link Polytomic.NotFoundError}
141
149
  * @throws {@link Polytomic.InternalServerError}
150
+ * @throws {@link errors.PolytomicError}
151
+ * @throws {@link errors.PolytomicTimeoutError}
142
152
  *
143
153
  * @example
144
154
  * await client.bulkSync.schemas.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
@@ -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"));
@@ -75,6 +76,8 @@ class SchemasClient {
75
76
  * @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
76
77
  *
77
78
  * @throws {@link Polytomic.NotFoundError}
79
+ * @throws {@link errors.PolytomicError}
80
+ * @throws {@link errors.PolytomicTimeoutError}
78
81
  *
79
82
  * @example
80
83
  * await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -151,6 +154,8 @@ class SchemasClient {
151
154
  * @throws {@link Polytomic.ForbiddenError}
152
155
  * @throws {@link Polytomic.NotFoundError}
153
156
  * @throws {@link Polytomic.InternalServerError}
157
+ * @throws {@link errors.PolytomicError}
158
+ * @throws {@link errors.PolytomicTimeoutError}
154
159
  *
155
160
  * @example
156
161
  * await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -173,7 +178,7 @@ class SchemasClient {
173
178
  contentType: "application/json",
174
179
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
175
180
  requestType: "json",
176
- body: request,
181
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
177
182
  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,
178
183
  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,
179
184
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -224,6 +229,8 @@ class SchemasClient {
224
229
  * @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
225
230
  *
226
231
  * @throws {@link Polytomic.NotFoundError}
232
+ * @throws {@link errors.PolytomicError}
233
+ * @throws {@link errors.PolytomicTimeoutError}
227
234
  *
228
235
  * @example
229
236
  * await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact")
@@ -292,6 +299,8 @@ class SchemasClient {
292
299
  * @throws {@link Polytomic.ForbiddenError}
293
300
  * @throws {@link Polytomic.NotFoundError}
294
301
  * @throws {@link Polytomic.InternalServerError}
302
+ * @throws {@link errors.PolytomicError}
303
+ * @throws {@link errors.PolytomicTimeoutError}
295
304
  *
296
305
  * @example
297
306
  * await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact")
@@ -314,7 +323,7 @@ class SchemasClient {
314
323
  contentType: "application/json",
315
324
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
316
325
  requestType: "json",
317
- body: request,
326
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
318
327
  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,
319
328
  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,
320
329
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -360,6 +369,8 @@ class SchemasClient {
360
369
  * @throws {@link Polytomic.ForbiddenError}
361
370
  * @throws {@link Polytomic.NotFoundError}
362
371
  * @throws {@link Polytomic.InternalServerError}
372
+ * @throws {@link errors.PolytomicError}
373
+ * @throws {@link errors.PolytomicTimeoutError}
363
374
  *
364
375
  * @example
365
376
  * await client.bulkSync.schemas.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export interface SchemasListRequest {
6
6
  /** Optional filters applied to the returned schemas. Supports enabled=true to return only enabled schemas and enabled=false to return only disabled schemas. */
7
- filters?: Record<string, string>;
7
+ filters?: Record<string, string | undefined>;
8
8
  }
@@ -31,6 +31,8 @@ export declare class ConnectionsClient {
31
31
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
32
32
  *
33
33
  * @throws {@link Polytomic.InternalServerError}
34
+ * @throws {@link errors.PolytomicError}
35
+ * @throws {@link errors.PolytomicTimeoutError}
34
36
  *
35
37
  * @example
36
38
  * await client.connections.getTypes()
@@ -52,6 +54,8 @@ export declare class ConnectionsClient {
52
54
  *
53
55
  * @throws {@link Polytomic.NotFoundError}
54
56
  * @throws {@link Polytomic.InternalServerError}
57
+ * @throws {@link errors.PolytomicError}
58
+ * @throws {@link errors.PolytomicTimeoutError}
55
59
  *
56
60
  * @example
57
61
  * await client.connections.getConnectionTypeSchema("postgresql")
@@ -76,6 +80,8 @@ export declare class ConnectionsClient {
76
80
  * @throws {@link Polytomic.BadRequestError}
77
81
  * @throws {@link Polytomic.NotFoundError}
78
82
  * @throws {@link Polytomic.InternalServerError}
83
+ * @throws {@link errors.PolytomicError}
84
+ * @throws {@link errors.PolytomicTimeoutError}
79
85
  *
80
86
  * @example
81
87
  * await client.connections.getTypeParameterValues("type", {
@@ -99,6 +105,8 @@ export declare class ConnectionsClient {
99
105
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
100
106
  *
101
107
  * @throws {@link Polytomic.InternalServerError}
108
+ * @throws {@link errors.PolytomicError}
109
+ * @throws {@link errors.PolytomicTimeoutError}
102
110
  *
103
111
  * @example
104
112
  * await client.connections.list()
@@ -126,6 +134,8 @@ export declare class ConnectionsClient {
126
134
  * @throws {@link Polytomic.ForbiddenError}
127
135
  * @throws {@link Polytomic.UnprocessableEntityError}
128
136
  * @throws {@link Polytomic.InternalServerError}
137
+ * @throws {@link errors.PolytomicError}
138
+ * @throws {@link errors.PolytomicTimeoutError}
129
139
  *
130
140
  * @example
131
141
  * await client.connections.create({
@@ -164,6 +174,8 @@ export declare class ConnectionsClient {
164
174
  * @throws {@link Polytomic.ConflictError}
165
175
  * @throws {@link Polytomic.UnprocessableEntityError}
166
176
  * @throws {@link Polytomic.InternalServerError}
177
+ * @throws {@link errors.PolytomicError}
178
+ * @throws {@link errors.PolytomicTimeoutError}
167
179
  *
168
180
  * @example
169
181
  * await client.connections.connect({
@@ -183,6 +195,8 @@ export declare class ConnectionsClient {
183
195
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
184
196
  *
185
197
  * @throws {@link Polytomic.UnauthorizedError}
198
+ * @throws {@link errors.PolytomicError}
199
+ * @throws {@link errors.PolytomicTimeoutError}
186
200
  *
187
201
  * @example
188
202
  * await client.connections.getConnectSession()
@@ -209,6 +223,8 @@ export declare class ConnectionsClient {
209
223
  * @throws {@link Polytomic.BadRequestError}
210
224
  * @throws {@link Polytomic.NotFoundError}
211
225
  * @throws {@link Polytomic.InternalServerError}
226
+ * @throws {@link errors.PolytomicError}
227
+ * @throws {@link errors.PolytomicTimeoutError}
212
228
  *
213
229
  * @example
214
230
  * await client.connections.testConnection({
@@ -237,6 +253,8 @@ export declare class ConnectionsClient {
237
253
  *
238
254
  * @throws {@link Polytomic.NotFoundError}
239
255
  * @throws {@link Polytomic.InternalServerError}
256
+ * @throws {@link errors.PolytomicError}
257
+ * @throws {@link errors.PolytomicTimeoutError}
240
258
  *
241
259
  * @example
242
260
  * await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -246,6 +264,10 @@ export declare class ConnectionsClient {
246
264
  /**
247
265
  * Updates a connection's configuration.
248
266
  *
267
+ * Connections owned by a managed Harbor return `409 Conflict`. To rename the
268
+ * Connection, [update its Harbor](../../../api-reference/harbors/update). Customer-managed
269
+ * Harbor backing Connections remain independently editable.
270
+ *
249
271
  * Updating a connection is a **full replacement** of its configuration. Any
250
272
  * `configuration` field you omit is cleared. To make a partial change, fetch
251
273
  * the current connection with
@@ -267,8 +289,11 @@ export declare class ConnectionsClient {
267
289
  * @throws {@link Polytomic.UnauthorizedError}
268
290
  * @throws {@link Polytomic.ForbiddenError}
269
291
  * @throws {@link Polytomic.NotFoundError}
292
+ * @throws {@link Polytomic.ConflictError}
270
293
  * @throws {@link Polytomic.UnprocessableEntityError}
271
294
  * @throws {@link Polytomic.InternalServerError}
295
+ * @throws {@link errors.PolytomicError}
296
+ * @throws {@link errors.PolytomicTimeoutError}
272
297
  *
273
298
  * @example
274
299
  * await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -287,6 +312,12 @@ export declare class ConnectionsClient {
287
312
  /**
288
313
  * Deletes a connection.
289
314
  *
315
+ * A Connection that backs any active Harbor returns `409 Conflict`, including
316
+ * when you pass `force=true`. No dependent resources are deleted in this case.
317
+ * [Delete the Harbor](../../../api-reference/harbors/delete) first. Deleting a managed
318
+ * Harbor also deletes its managed Connection; deleting a customer-managed Harbor
319
+ * preserves its backing Connection.
320
+ *
290
321
  * > 🚧 Deleting a connection that is referenced by fieldsets, syncs, bulk
291
322
  * > syncs, or schedules returns `422 connection in use` unless you pass
292
323
  * > `force=true`. With `force=true`, the API deletes those dependent
@@ -299,8 +330,11 @@ export declare class ConnectionsClient {
299
330
  * @throws {@link Polytomic.UnauthorizedError}
300
331
  * @throws {@link Polytomic.ForbiddenError}
301
332
  * @throws {@link Polytomic.NotFoundError}
333
+ * @throws {@link Polytomic.ConflictError}
302
334
  * @throws {@link Polytomic.UnprocessableEntityError}
303
335
  * @throws {@link Polytomic.InternalServerError}
336
+ * @throws {@link errors.PolytomicError}
337
+ * @throws {@link errors.PolytomicTimeoutError}
304
338
  *
305
339
  * @example
306
340
  * await client.connections.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -326,6 +360,8 @@ export declare class ConnectionsClient {
326
360
  *
327
361
  * @throws {@link Polytomic.NotFoundError}
328
362
  * @throws {@link Polytomic.InternalServerError}
363
+ * @throws {@link errors.PolytomicError}
364
+ * @throws {@link errors.PolytomicTimeoutError}
329
365
  *
330
366
  * @example
331
367
  * await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -355,6 +391,8 @@ export declare class ConnectionsClient {
355
391
  * @throws {@link Polytomic.UnauthorizedError}
356
392
  * @throws {@link Polytomic.NotFoundError}
357
393
  * @throws {@link Polytomic.InternalServerError}
394
+ * @throws {@link errors.PolytomicError}
395
+ * @throws {@link errors.PolytomicTimeoutError}
358
396
  *
359
397
  * @example
360
398
  * await client.connections.getUsage("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.ConnectionsClient = 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"));
@@ -78,6 +79,8 @@ class ConnectionsClient {
78
79
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
79
80
  *
80
81
  * @throws {@link Polytomic.InternalServerError}
82
+ * @throws {@link errors.PolytomicError}
83
+ * @throws {@link errors.PolytomicTimeoutError}
81
84
  *
82
85
  * @example
83
86
  * await client.connections.getTypes()
@@ -138,6 +141,8 @@ class ConnectionsClient {
138
141
  *
139
142
  * @throws {@link Polytomic.NotFoundError}
140
143
  * @throws {@link Polytomic.InternalServerError}
144
+ * @throws {@link errors.PolytomicError}
145
+ * @throws {@link errors.PolytomicTimeoutError}
141
146
  *
142
147
  * @example
143
148
  * await client.connections.getConnectionTypeSchema("postgresql")
@@ -201,6 +206,8 @@ class ConnectionsClient {
201
206
  * @throws {@link Polytomic.BadRequestError}
202
207
  * @throws {@link Polytomic.NotFoundError}
203
208
  * @throws {@link Polytomic.InternalServerError}
209
+ * @throws {@link errors.PolytomicError}
210
+ * @throws {@link errors.PolytomicTimeoutError}
204
211
  *
205
212
  * @example
206
213
  * await client.connections.getTypeParameterValues("type", {
@@ -225,7 +232,7 @@ class ConnectionsClient {
225
232
  contentType: "application/json",
226
233
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
227
234
  requestType: "json",
228
- body: request,
235
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
229
236
  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,
230
237
  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,
231
238
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -272,6 +279,8 @@ class ConnectionsClient {
272
279
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
273
280
  *
274
281
  * @throws {@link Polytomic.InternalServerError}
282
+ * @throws {@link errors.PolytomicError}
283
+ * @throws {@link errors.PolytomicTimeoutError}
275
284
  *
276
285
  * @example
277
286
  * await client.connections.list()
@@ -339,6 +348,8 @@ class ConnectionsClient {
339
348
  * @throws {@link Polytomic.ForbiddenError}
340
349
  * @throws {@link Polytomic.UnprocessableEntityError}
341
350
  * @throws {@link Polytomic.InternalServerError}
351
+ * @throws {@link errors.PolytomicError}
352
+ * @throws {@link errors.PolytomicTimeoutError}
342
353
  *
343
354
  * @example
344
355
  * await client.connections.create({
@@ -371,7 +382,7 @@ class ConnectionsClient {
371
382
  contentType: "application/json",
372
383
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
373
384
  requestType: "json",
374
- body: request,
385
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
375
386
  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,
376
387
  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,
377
388
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -429,6 +440,8 @@ class ConnectionsClient {
429
440
  * @throws {@link Polytomic.ConflictError}
430
441
  * @throws {@link Polytomic.UnprocessableEntityError}
431
442
  * @throws {@link Polytomic.InternalServerError}
443
+ * @throws {@link errors.PolytomicError}
444
+ * @throws {@link errors.PolytomicTimeoutError}
432
445
  *
433
446
  * @example
434
447
  * await client.connections.connect({
@@ -454,7 +467,7 @@ class ConnectionsClient {
454
467
  contentType: "application/json",
455
468
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
456
469
  requestType: "json",
457
- body: request,
470
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
458
471
  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,
459
472
  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,
460
473
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -502,6 +515,8 @@ class ConnectionsClient {
502
515
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
503
516
  *
504
517
  * @throws {@link Polytomic.UnauthorizedError}
518
+ * @throws {@link errors.PolytomicError}
519
+ * @throws {@link errors.PolytomicTimeoutError}
505
520
  *
506
521
  * @example
507
522
  * await client.connections.getConnectSession()
@@ -568,6 +583,8 @@ class ConnectionsClient {
568
583
  * @throws {@link Polytomic.BadRequestError}
569
584
  * @throws {@link Polytomic.NotFoundError}
570
585
  * @throws {@link Polytomic.InternalServerError}
586
+ * @throws {@link errors.PolytomicError}
587
+ * @throws {@link errors.PolytomicTimeoutError}
571
588
  *
572
589
  * @example
573
590
  * await client.connections.testConnection({
@@ -598,7 +615,7 @@ class ConnectionsClient {
598
615
  contentType: "application/json",
599
616
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
600
617
  requestType: "json",
601
- body: request,
618
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
602
619
  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,
603
620
  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,
604
621
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -640,6 +657,8 @@ class ConnectionsClient {
640
657
  *
641
658
  * @throws {@link Polytomic.NotFoundError}
642
659
  * @throws {@link Polytomic.InternalServerError}
660
+ * @throws {@link errors.PolytomicError}
661
+ * @throws {@link errors.PolytomicTimeoutError}
643
662
  *
644
663
  * @example
645
664
  * await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -688,6 +707,10 @@ class ConnectionsClient {
688
707
  /**
689
708
  * Updates a connection's configuration.
690
709
  *
710
+ * Connections owned by a managed Harbor return `409 Conflict`. To rename the
711
+ * Connection, [update its Harbor](../../../api-reference/harbors/update). Customer-managed
712
+ * Harbor backing Connections remain independently editable.
713
+ *
691
714
  * Updating a connection is a **full replacement** of its configuration. Any
692
715
  * `configuration` field you omit is cleared. To make a partial change, fetch
693
716
  * the current connection with
@@ -709,8 +732,11 @@ class ConnectionsClient {
709
732
  * @throws {@link Polytomic.UnauthorizedError}
710
733
  * @throws {@link Polytomic.ForbiddenError}
711
734
  * @throws {@link Polytomic.NotFoundError}
735
+ * @throws {@link Polytomic.ConflictError}
712
736
  * @throws {@link Polytomic.UnprocessableEntityError}
713
737
  * @throws {@link Polytomic.InternalServerError}
738
+ * @throws {@link errors.PolytomicError}
739
+ * @throws {@link errors.PolytomicTimeoutError}
714
740
  *
715
741
  * @example
716
742
  * await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -742,7 +768,7 @@ class ConnectionsClient {
742
768
  contentType: "application/json",
743
769
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
744
770
  requestType: "json",
745
- body: request,
771
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
746
772
  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,
747
773
  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,
748
774
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -765,6 +791,8 @@ class ConnectionsClient {
765
791
  throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
766
792
  case 404:
767
793
  throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
794
+ case 409:
795
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
768
796
  case 422:
769
797
  throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
770
798
  case 500:
@@ -783,6 +811,12 @@ class ConnectionsClient {
783
811
  /**
784
812
  * Deletes a connection.
785
813
  *
814
+ * A Connection that backs any active Harbor returns `409 Conflict`, including
815
+ * when you pass `force=true`. No dependent resources are deleted in this case.
816
+ * [Delete the Harbor](../../../api-reference/harbors/delete) first. Deleting a managed
817
+ * Harbor also deletes its managed Connection; deleting a customer-managed Harbor
818
+ * preserves its backing Connection.
819
+ *
786
820
  * > 🚧 Deleting a connection that is referenced by fieldsets, syncs, bulk
787
821
  * > syncs, or schedules returns `422 connection in use` unless you pass
788
822
  * > `force=true`. With `force=true`, the API deletes those dependent
@@ -795,8 +829,11 @@ class ConnectionsClient {
795
829
  * @throws {@link Polytomic.UnauthorizedError}
796
830
  * @throws {@link Polytomic.ForbiddenError}
797
831
  * @throws {@link Polytomic.NotFoundError}
832
+ * @throws {@link Polytomic.ConflictError}
798
833
  * @throws {@link Polytomic.UnprocessableEntityError}
799
834
  * @throws {@link Polytomic.InternalServerError}
835
+ * @throws {@link errors.PolytomicError}
836
+ * @throws {@link errors.PolytomicTimeoutError}
800
837
  *
801
838
  * @example
802
839
  * await client.connections.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -844,6 +881,8 @@ class ConnectionsClient {
844
881
  throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
845
882
  case 404:
846
883
  throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
884
+ case 409:
885
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
847
886
  case 422:
848
887
  throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
849
888
  case 500:
@@ -876,6 +915,8 @@ class ConnectionsClient {
876
915
  *
877
916
  * @throws {@link Polytomic.NotFoundError}
878
917
  * @throws {@link Polytomic.InternalServerError}
918
+ * @throws {@link errors.PolytomicError}
919
+ * @throws {@link errors.PolytomicTimeoutError}
879
920
  *
880
921
  * @example
881
922
  * await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -947,6 +988,8 @@ class ConnectionsClient {
947
988
  * @throws {@link Polytomic.UnauthorizedError}
948
989
  * @throws {@link Polytomic.NotFoundError}
949
990
  * @throws {@link Polytomic.InternalServerError}
991
+ * @throws {@link errors.PolytomicError}
992
+ * @throws {@link errors.PolytomicTimeoutError}
950
993
  *
951
994
  * @example
952
995
  * await client.connections.getUsage("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -58,6 +58,8 @@ export declare class ProxyClient {
58
58
  * @throws {@link Polytomic.InternalServerError}
59
59
  * @throws {@link Polytomic.BadGatewayError}
60
60
  * @throws {@link Polytomic.GatewayTimeoutError}
61
+ * @throws {@link errors.PolytomicError}
62
+ * @throws {@link errors.PolytomicTimeoutError}
61
63
  *
62
64
  * @example
63
65
  * await client.connections.proxy.executeProxy("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -94,6 +96,8 @@ export declare class ProxyClient {
94
96
  * @throws {@link Polytomic.ForbiddenError}
95
97
  * @throws {@link Polytomic.NotFoundError}
96
98
  * @throws {@link Polytomic.InternalServerError}
99
+ * @throws {@link errors.PolytomicError}
100
+ * @throws {@link errors.PolytomicTimeoutError}
97
101
  *
98
102
  * @example
99
103
  * await client.connections.proxy.getProxyInfo("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -114,6 +118,8 @@ export declare class ProxyClient {
114
118
  * @throws {@link Polytomic.UnauthorizedError}
115
119
  * @throws {@link Polytomic.NotFoundError}
116
120
  * @throws {@link Polytomic.InternalServerError}
121
+ * @throws {@link errors.PolytomicError}
122
+ * @throws {@link errors.PolytomicTimeoutError}
117
123
  *
118
124
  * @example
119
125
  * await client.connections.proxy.getProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -142,6 +148,8 @@ export declare class ProxyClient {
142
148
  * @throws {@link Polytomic.ForbiddenError}
143
149
  * @throws {@link Polytomic.NotFoundError}
144
150
  * @throws {@link Polytomic.InternalServerError}
151
+ * @throws {@link errors.PolytomicError}
152
+ * @throws {@link errors.PolytomicTimeoutError}
145
153
  *
146
154
  * @example
147
155
  * await client.connections.proxy.updateProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -47,6 +47,7 @@ exports.ProxyClient = 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"));
@@ -101,6 +102,8 @@ class ProxyClient {
101
102
  * @throws {@link Polytomic.InternalServerError}
102
103
  * @throws {@link Polytomic.BadGatewayError}
103
104
  * @throws {@link Polytomic.GatewayTimeoutError}
105
+ * @throws {@link errors.PolytomicError}
106
+ * @throws {@link errors.PolytomicTimeoutError}
104
107
  *
105
108
  * @example
106
109
  * await client.connections.proxy.executeProxy("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -128,7 +131,7 @@ class ProxyClient {
128
131
  contentType: "application/json",
129
132
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
130
133
  requestType: "json",
131
- body: request,
134
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
132
135
  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,
133
136
  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,
134
137
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -195,6 +198,8 @@ class ProxyClient {
195
198
  * @throws {@link Polytomic.ForbiddenError}
196
199
  * @throws {@link Polytomic.NotFoundError}
197
200
  * @throws {@link Polytomic.InternalServerError}
201
+ * @throws {@link errors.PolytomicError}
202
+ * @throws {@link errors.PolytomicTimeoutError}
198
203
  *
199
204
  * @example
200
205
  * await client.connections.proxy.getProxyInfo("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -263,6 +268,8 @@ class ProxyClient {
263
268
  * @throws {@link Polytomic.UnauthorizedError}
264
269
  * @throws {@link Polytomic.NotFoundError}
265
270
  * @throws {@link Polytomic.InternalServerError}
271
+ * @throws {@link errors.PolytomicError}
272
+ * @throws {@link errors.PolytomicTimeoutError}
266
273
  *
267
274
  * @example
268
275
  * await client.connections.proxy.getProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -335,6 +342,8 @@ class ProxyClient {
335
342
  * @throws {@link Polytomic.ForbiddenError}
336
343
  * @throws {@link Polytomic.NotFoundError}
337
344
  * @throws {@link Polytomic.InternalServerError}
345
+ * @throws {@link errors.PolytomicError}
346
+ * @throws {@link errors.PolytomicTimeoutError}
338
347
  *
339
348
  * @example
340
349
  * await client.connections.proxy.updateProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -359,7 +368,7 @@ class ProxyClient {
359
368
  contentType: "application/json",
360
369
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
361
370
  requestType: "json",
362
- body: request,
371
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
363
372
  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,
364
373
  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,
365
374
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -30,6 +30,8 @@ export declare class SharedConnectionsClient {
30
30
  * @throws {@link Polytomic.NotFoundError}
31
31
  * @throws {@link Polytomic.UnprocessableEntityError}
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.connections.sharedConnections.listSharedConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -55,6 +57,8 @@ export declare class SharedConnectionsClient {
55
57
  * @throws {@link Polytomic.NotFoundError}
56
58
  * @throws {@link Polytomic.UnprocessableEntityError}
57
59
  * @throws {@link Polytomic.InternalServerError}
60
+ * @throws {@link errors.PolytomicError}
61
+ * @throws {@link errors.PolytomicTimeoutError}
58
62
  *
59
63
  * @example
60
64
  * await client.connections.sharedConnections.listSharedConnectionsForPartner("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -72,6 +76,8 @@ export declare class SharedConnectionsClient {
72
76
  * @throws {@link Polytomic.ForbiddenError}
73
77
  * @throws {@link Polytomic.NotFoundError}
74
78
  * @throws {@link Polytomic.InternalServerError}
79
+ * @throws {@link errors.PolytomicError}
80
+ * @throws {@link errors.PolytomicTimeoutError}
75
81
  *
76
82
  * @example
77
83
  * await client.connections.sharedConnections.createSharedConnection("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -47,6 +47,7 @@ exports.SharedConnectionsClient = 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"));
@@ -73,6 +74,8 @@ class SharedConnectionsClient {
73
74
  * @throws {@link Polytomic.NotFoundError}
74
75
  * @throws {@link Polytomic.UnprocessableEntityError}
75
76
  * @throws {@link Polytomic.InternalServerError}
77
+ * @throws {@link errors.PolytomicError}
78
+ * @throws {@link errors.PolytomicTimeoutError}
76
79
  *
77
80
  * @example
78
81
  * await client.connections.sharedConnections.listSharedConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -144,6 +147,8 @@ class SharedConnectionsClient {
144
147
  * @throws {@link Polytomic.NotFoundError}
145
148
  * @throws {@link Polytomic.UnprocessableEntityError}
146
149
  * @throws {@link Polytomic.InternalServerError}
150
+ * @throws {@link errors.PolytomicError}
151
+ * @throws {@link errors.PolytomicTimeoutError}
147
152
  *
148
153
  * @example
149
154
  * await client.connections.sharedConnections.listSharedConnectionsForPartner("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -207,6 +212,8 @@ class SharedConnectionsClient {
207
212
  * @throws {@link Polytomic.ForbiddenError}
208
213
  * @throws {@link Polytomic.NotFoundError}
209
214
  * @throws {@link Polytomic.InternalServerError}
215
+ * @throws {@link errors.PolytomicError}
216
+ * @throws {@link errors.PolytomicTimeoutError}
210
217
  *
211
218
  * @example
212
219
  * await client.connections.sharedConnections.createSharedConnection("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -231,7 +238,7 @@ class SharedConnectionsClient {
231
238
  contentType: "application/json",
232
239
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
233
240
  requestType: "json",
234
- body: request,
241
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
235
242
  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,
236
243
  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,
237
244
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,