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.
- package/BaseClient.d.ts +15 -0
- package/BaseClient.js +17 -2
- package/api/errors/BadGatewayError.d.ts +1 -0
- package/api/errors/BadGatewayError.js +1 -1
- package/api/errors/BadRequestError.d.ts +1 -0
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ConflictError.d.ts +1 -0
- package/api/errors/ConflictError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +1 -0
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/GatewayTimeoutError.d.ts +1 -0
- package/api/errors/GatewayTimeoutError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -0
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -0
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/RequestTimeoutError.d.ts +1 -0
- package/api/errors/RequestTimeoutError.js +1 -1
- package/api/errors/ServiceUnavailableError.d.ts +1 -0
- package/api/errors/ServiceUnavailableError.js +1 -1
- package/api/errors/TooManyRequestsError.d.ts +1 -0
- package/api/errors/TooManyRequestsError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +1 -0
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +1 -0
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +22 -0
- package/api/resources/bulkSync/client/Client.js +27 -4
- package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +4 -0
- package/api/resources/bulkSync/resources/errorHandling/client/Client.js +6 -1
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +18 -0
- package/api/resources/bulkSync/resources/executions/client/Client.js +18 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +10 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/api/resources/connections/client/Client.d.ts +26 -0
- package/api/resources/connections/client/Client.js +32 -5
- package/api/resources/connections/resources/proxy/client/Client.d.ts +8 -0
- package/api/resources/connections/resources/proxy/client/Client.js +11 -2
- package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +6 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.js +8 -1
- package/api/resources/entities/client/Client.d.ts +4 -0
- package/api/resources/entities/client/Client.js +4 -0
- package/api/resources/events/client/Client.d.ts +5 -0
- package/api/resources/events/client/Client.js +5 -0
- package/api/resources/harbors/client/Client.d.ts +67 -64
- package/api/resources/harbors/client/Client.js +77 -73
- package/api/resources/identity/client/Client.d.ts +2 -0
- package/api/resources/identity/client/Client.js +2 -0
- package/api/resources/jobs/client/Client.d.ts +2 -0
- package/api/resources/jobs/client/Client.js +2 -0
- package/api/resources/modelSync/client/Client.d.ts +24 -0
- package/api/resources/modelSync/client/Client.js +29 -4
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +4 -0
- package/api/resources/modelSync/resources/errorHandling/client/Client.js +6 -1
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +14 -0
- package/api/resources/modelSync/resources/executions/client/Client.js +14 -0
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +6 -0
- package/api/resources/modelSync/resources/targets/client/Client.js +6 -0
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +1 -1
- package/api/resources/models/client/Client.d.ts +18 -0
- package/api/resources/models/client/Client.js +23 -4
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
- package/api/resources/notifications/client/Client.d.ts +4 -0
- package/api/resources/notifications/client/Client.js +6 -1
- package/api/resources/organization/client/Client.d.ts +16 -0
- package/api/resources/organization/client/Client.js +20 -3
- package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -0
- package/api/resources/permissions/resources/policies/client/Client.js +13 -2
- package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
- package/api/resources/permissions/resources/roles/client/Client.js +13 -2
- package/api/resources/queryRunner/client/Client.d.ts +4 -0
- package/api/resources/queryRunner/client/Client.js +6 -1
- package/api/resources/recordViewLinks/client/Client.d.ts +4 -4
- package/api/resources/recordViewLinks/client/Client.js +6 -5
- package/api/resources/schemas/client/Client.d.ts +18 -0
- package/api/resources/schemas/client/Client.js +22 -3
- package/api/resources/temporaryCredentials/client/Client.d.ts +2 -2
- package/api/resources/temporaryCredentials/client/Client.js +4 -3
- package/api/resources/users/client/Client.d.ts +22 -0
- package/api/resources/users/client/Client.js +27 -4
- package/api/resources/webhooks/client/Client.d.ts +14 -0
- package/api/resources/webhooks/client/Client.js +17 -2
- package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionProxyResponse.d.ts +1 -1
- package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
- package/api/types/HarborSourceMappingResponse.d.ts +1 -1
- package/api/types/SyncSourceMetaResponse.d.ts +1 -1
- package/core/auth/AuthProvider.d.ts +1 -0
- package/core/auth/AuthProvider.js +7 -0
- package/core/auth/index.d.ts +1 -1
- package/core/auth/index.js +3 -1
- package/core/fetcher/Fetcher.js +9 -92
- package/core/fetcher/getResponseBody.js +11 -0
- package/core/fetcher/makePassthroughRequest.js +26 -4
- package/core/fetcher/redactUrl.d.ts +2 -0
- package/core/fetcher/redactUrl.js +88 -0
- package/core/fetcher/requestWithRetries.js +4 -1
- package/core/fetcher/signals.js +9 -1
- package/core/requestBody.d.ts +12 -0
- package/core/requestBody.js +26 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -1
- package/core/runtime/runtime.d.ts +19 -0
- package/core/runtime/runtime.js +74 -2
- package/core/url/qs.js +2 -2
- package/errors/PolytomicError.d.ts +1 -0
- package/errors/PolytomicError.js +5 -1
- package/errors/PolytomicTimeoutError.d.ts +2 -2
- package/errors/PolytomicTimeoutError.js +40 -6
- package/package.json +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -13,8 +13,6 @@ export declare class RecordViewLinksClient {
|
|
|
13
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<RecordViewLinksClient.Options>;
|
|
14
14
|
constructor(options?: RecordViewLinksClient.Options);
|
|
15
15
|
/**
|
|
16
|
-
* @beta This endpoint is in pre-release and may change.
|
|
17
|
-
*
|
|
18
16
|
* Creates a short-lived capability link for viewing one stored record snapshot.
|
|
19
17
|
*
|
|
20
18
|
* @param {Polytomic.CreateRecordViewLinkRequest} request
|
|
@@ -24,6 +22,8 @@ export declare class RecordViewLinksClient {
|
|
|
24
22
|
* @throws {@link Polytomic.ForbiddenError}
|
|
25
23
|
* @throws {@link Polytomic.NotFoundError}
|
|
26
24
|
* @throws {@link Polytomic.InternalServerError}
|
|
25
|
+
* @throws {@link errors.PolytomicError}
|
|
26
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* await client.recordViewLinks.create({
|
|
@@ -36,8 +36,6 @@ export declare class RecordViewLinksClient {
|
|
|
36
36
|
create(request: Polytomic.CreateRecordViewLinkRequest, requestOptions?: RecordViewLinksClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.CreateRecordViewLinkEnvelope>;
|
|
37
37
|
private __create;
|
|
38
38
|
/**
|
|
39
|
-
* @beta This endpoint is in pre-release and may change.
|
|
40
|
-
*
|
|
41
39
|
* Checks whether record-view links can be created for a connection schema.
|
|
42
40
|
*
|
|
43
41
|
* @param {Polytomic.RecordViewLinksGetCapabilitiesRequest} request
|
|
@@ -47,6 +45,8 @@ export declare class RecordViewLinksClient {
|
|
|
47
45
|
* @throws {@link Polytomic.ForbiddenError}
|
|
48
46
|
* @throws {@link Polytomic.NotFoundError}
|
|
49
47
|
* @throws {@link Polytomic.InternalServerError}
|
|
48
|
+
* @throws {@link errors.PolytomicError}
|
|
49
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
52
|
* await client.recordViewLinks.getCapabilities({
|
|
@@ -47,6 +47,7 @@ exports.RecordViewLinksClient = 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"));
|
|
@@ -56,8 +57,6 @@ class RecordViewLinksClient {
|
|
|
56
57
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
* @beta This endpoint is in pre-release and may change.
|
|
60
|
-
*
|
|
61
60
|
* Creates a short-lived capability link for viewing one stored record snapshot.
|
|
62
61
|
*
|
|
63
62
|
* @param {Polytomic.CreateRecordViewLinkRequest} request
|
|
@@ -67,6 +66,8 @@ class RecordViewLinksClient {
|
|
|
67
66
|
* @throws {@link Polytomic.ForbiddenError}
|
|
68
67
|
* @throws {@link Polytomic.NotFoundError}
|
|
69
68
|
* @throws {@link Polytomic.InternalServerError}
|
|
69
|
+
* @throws {@link errors.PolytomicError}
|
|
70
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
70
71
|
*
|
|
71
72
|
* @example
|
|
72
73
|
* await client.recordViewLinks.create({
|
|
@@ -94,7 +95,7 @@ class RecordViewLinksClient {
|
|
|
94
95
|
contentType: "application/json",
|
|
95
96
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
96
97
|
requestType: "json",
|
|
97
|
-
body: request,
|
|
98
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
98
99
|
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,
|
|
99
100
|
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,
|
|
100
101
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -129,8 +130,6 @@ class RecordViewLinksClient {
|
|
|
129
130
|
});
|
|
130
131
|
}
|
|
131
132
|
/**
|
|
132
|
-
* @beta This endpoint is in pre-release and may change.
|
|
133
|
-
*
|
|
134
133
|
* Checks whether record-view links can be created for a connection schema.
|
|
135
134
|
*
|
|
136
135
|
* @param {Polytomic.RecordViewLinksGetCapabilitiesRequest} request
|
|
@@ -140,6 +139,8 @@ class RecordViewLinksClient {
|
|
|
140
139
|
* @throws {@link Polytomic.ForbiddenError}
|
|
141
140
|
* @throws {@link Polytomic.NotFoundError}
|
|
142
141
|
* @throws {@link Polytomic.InternalServerError}
|
|
142
|
+
* @throws {@link errors.PolytomicError}
|
|
143
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
143
144
|
*
|
|
144
145
|
* @example
|
|
145
146
|
* await client.recordViewLinks.getCapabilities({
|
|
@@ -33,6 +33,8 @@ export declare class SchemasClient {
|
|
|
33
33
|
* @throws {@link Polytomic.BadRequestError}
|
|
34
34
|
* @throws {@link Polytomic.NotFoundError}
|
|
35
35
|
* @throws {@link Polytomic.InternalServerError}
|
|
36
|
+
* @throws {@link errors.PolytomicError}
|
|
37
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
36
38
|
*
|
|
37
39
|
* @example
|
|
38
40
|
* await client.schemas.upsertField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -59,6 +61,8 @@ export declare class SchemasClient {
|
|
|
59
61
|
* @throws {@link Polytomic.BadRequestError}
|
|
60
62
|
* @throws {@link Polytomic.NotFoundError}
|
|
61
63
|
* @throws {@link Polytomic.InternalServerError}
|
|
64
|
+
* @throws {@link errors.PolytomicError}
|
|
65
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
62
66
|
*
|
|
63
67
|
* @example
|
|
64
68
|
* await client.schemas.deleteField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users", "first_name")
|
|
@@ -77,6 +81,8 @@ export declare class SchemasClient {
|
|
|
77
81
|
* @throws {@link Polytomic.BadRequestError}
|
|
78
82
|
* @throws {@link Polytomic.NotFoundError}
|
|
79
83
|
* @throws {@link Polytomic.InternalServerError}
|
|
84
|
+
* @throws {@link errors.PolytomicError}
|
|
85
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
80
86
|
*
|
|
81
87
|
* @example
|
|
82
88
|
* await client.schemas.patchField("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id", "field_id")
|
|
@@ -105,6 +111,8 @@ export declare class SchemasClient {
|
|
|
105
111
|
* @throws {@link Polytomic.BadRequestError}
|
|
106
112
|
* @throws {@link Polytomic.NotFoundError}
|
|
107
113
|
* @throws {@link Polytomic.InternalServerError}
|
|
114
|
+
* @throws {@link errors.PolytomicError}
|
|
115
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
108
116
|
*
|
|
109
117
|
* @example
|
|
110
118
|
* await client.schemas.setPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -125,6 +133,8 @@ export declare class SchemasClient {
|
|
|
125
133
|
* @throws {@link Polytomic.BadRequestError}
|
|
126
134
|
* @throws {@link Polytomic.NotFoundError}
|
|
127
135
|
* @throws {@link Polytomic.InternalServerError}
|
|
136
|
+
* @throws {@link errors.PolytomicError}
|
|
137
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
128
138
|
*
|
|
129
139
|
* @example
|
|
130
140
|
* await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -159,6 +169,8 @@ export declare class SchemasClient {
|
|
|
159
169
|
* @throws {@link Polytomic.BadRequestError}
|
|
160
170
|
* @throws {@link Polytomic.NotFoundError}
|
|
161
171
|
* @throws {@link Polytomic.InternalServerError}
|
|
172
|
+
* @throws {@link errors.PolytomicError}
|
|
173
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
162
174
|
*
|
|
163
175
|
* @example
|
|
164
176
|
* await client.schemas.refresh("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -190,6 +202,8 @@ export declare class SchemasClient {
|
|
|
190
202
|
* @throws {@link Polytomic.BadRequestError}
|
|
191
203
|
* @throws {@link Polytomic.NotFoundError}
|
|
192
204
|
* @throws {@link Polytomic.InternalServerError}
|
|
205
|
+
* @throws {@link errors.PolytomicError}
|
|
206
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
193
207
|
*
|
|
194
208
|
* @example
|
|
195
209
|
* await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -214,6 +228,8 @@ export declare class SchemasClient {
|
|
|
214
228
|
* @throws {@link Polytomic.BadRequestError}
|
|
215
229
|
* @throws {@link Polytomic.NotFoundError}
|
|
216
230
|
* @throws {@link Polytomic.InternalServerError}
|
|
231
|
+
* @throws {@link errors.PolytomicError}
|
|
232
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
217
233
|
*
|
|
218
234
|
* @example
|
|
219
235
|
* await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -242,6 +258,8 @@ export declare class SchemasClient {
|
|
|
242
258
|
* @throws {@link Polytomic.ForbiddenError}
|
|
243
259
|
* @throws {@link Polytomic.NotFoundError}
|
|
244
260
|
* @throws {@link Polytomic.InternalServerError}
|
|
261
|
+
* @throws {@link errors.PolytomicError}
|
|
262
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
245
263
|
*
|
|
246
264
|
* @example
|
|
247
265
|
* await client.schemas.getRecords("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -47,6 +47,7 @@ exports.SchemasClient = 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"));
|
|
@@ -76,6 +77,8 @@ class SchemasClient {
|
|
|
76
77
|
* @throws {@link Polytomic.BadRequestError}
|
|
77
78
|
* @throws {@link Polytomic.NotFoundError}
|
|
78
79
|
* @throws {@link Polytomic.InternalServerError}
|
|
80
|
+
* @throws {@link errors.PolytomicError}
|
|
81
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
79
82
|
*
|
|
80
83
|
* @example
|
|
81
84
|
* await client.schemas.upsertField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -98,7 +101,7 @@ class SchemasClient {
|
|
|
98
101
|
contentType: "application/json",
|
|
99
102
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
100
103
|
requestType: "json",
|
|
101
|
-
body: request,
|
|
104
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
102
105
|
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,
|
|
103
106
|
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,
|
|
104
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -147,6 +150,8 @@ class SchemasClient {
|
|
|
147
150
|
* @throws {@link Polytomic.BadRequestError}
|
|
148
151
|
* @throws {@link Polytomic.NotFoundError}
|
|
149
152
|
* @throws {@link Polytomic.InternalServerError}
|
|
153
|
+
* @throws {@link errors.PolytomicError}
|
|
154
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
150
155
|
*
|
|
151
156
|
* @example
|
|
152
157
|
* await client.schemas.deleteField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users", "first_name")
|
|
@@ -207,6 +212,8 @@ class SchemasClient {
|
|
|
207
212
|
* @throws {@link Polytomic.BadRequestError}
|
|
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.schemas.patchField("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id", "field_id")
|
|
@@ -229,7 +236,7 @@ class SchemasClient {
|
|
|
229
236
|
contentType: "application/json",
|
|
230
237
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
231
238
|
requestType: "json",
|
|
232
|
-
body: request,
|
|
239
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
233
240
|
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,
|
|
234
241
|
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,
|
|
235
242
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -283,6 +290,8 @@ class SchemasClient {
|
|
|
283
290
|
* @throws {@link Polytomic.BadRequestError}
|
|
284
291
|
* @throws {@link Polytomic.NotFoundError}
|
|
285
292
|
* @throws {@link Polytomic.InternalServerError}
|
|
293
|
+
* @throws {@link errors.PolytomicError}
|
|
294
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
286
295
|
*
|
|
287
296
|
* @example
|
|
288
297
|
* await client.schemas.setPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -305,7 +314,7 @@ class SchemasClient {
|
|
|
305
314
|
contentType: "application/json",
|
|
306
315
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
307
316
|
requestType: "json",
|
|
308
|
-
body: request,
|
|
317
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
309
318
|
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,
|
|
310
319
|
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,
|
|
311
320
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -348,6 +357,8 @@ class SchemasClient {
|
|
|
348
357
|
* @throws {@link Polytomic.BadRequestError}
|
|
349
358
|
* @throws {@link Polytomic.NotFoundError}
|
|
350
359
|
* @throws {@link Polytomic.InternalServerError}
|
|
360
|
+
* @throws {@link errors.PolytomicError}
|
|
361
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
351
362
|
*
|
|
352
363
|
* @example
|
|
353
364
|
* await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -424,6 +435,8 @@ class SchemasClient {
|
|
|
424
435
|
* @throws {@link Polytomic.BadRequestError}
|
|
425
436
|
* @throws {@link Polytomic.NotFoundError}
|
|
426
437
|
* @throws {@link Polytomic.InternalServerError}
|
|
438
|
+
* @throws {@link errors.PolytomicError}
|
|
439
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
427
440
|
*
|
|
428
441
|
* @example
|
|
429
442
|
* await client.schemas.refresh("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -497,6 +510,8 @@ class SchemasClient {
|
|
|
497
510
|
* @throws {@link Polytomic.BadRequestError}
|
|
498
511
|
* @throws {@link Polytomic.NotFoundError}
|
|
499
512
|
* @throws {@link Polytomic.InternalServerError}
|
|
513
|
+
* @throws {@link errors.PolytomicError}
|
|
514
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
500
515
|
*
|
|
501
516
|
* @example
|
|
502
517
|
* await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -565,6 +580,8 @@ class SchemasClient {
|
|
|
565
580
|
* @throws {@link Polytomic.BadRequestError}
|
|
566
581
|
* @throws {@link Polytomic.NotFoundError}
|
|
567
582
|
* @throws {@link Polytomic.InternalServerError}
|
|
583
|
+
* @throws {@link errors.PolytomicError}
|
|
584
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
568
585
|
*
|
|
569
586
|
* @example
|
|
570
587
|
* await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -637,6 +654,8 @@ class SchemasClient {
|
|
|
637
654
|
* @throws {@link Polytomic.ForbiddenError}
|
|
638
655
|
* @throws {@link Polytomic.NotFoundError}
|
|
639
656
|
* @throws {@link Polytomic.InternalServerError}
|
|
657
|
+
* @throws {@link errors.PolytomicError}
|
|
658
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
640
659
|
*
|
|
641
660
|
* @example
|
|
642
661
|
* await client.schemas.getRecords("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -13,8 +13,6 @@ export declare class TemporaryCredentialsClient {
|
|
|
13
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<TemporaryCredentialsClient.Options>;
|
|
14
14
|
constructor(options?: TemporaryCredentialsClient.Options);
|
|
15
15
|
/**
|
|
16
|
-
* @beta This endpoint is in pre-release and may change.
|
|
17
|
-
*
|
|
18
16
|
* Issues a non-renewable credential with a bounded lifetime for a user or Agent Data profile.
|
|
19
17
|
*
|
|
20
18
|
* The response contains the credential secret once. Store it securely and send it
|
|
@@ -66,6 +64,8 @@ export declare class TemporaryCredentialsClient {
|
|
|
66
64
|
* @throws {@link Polytomic.NotFoundError}
|
|
67
65
|
* @throws {@link Polytomic.TooManyRequestsError}
|
|
68
66
|
* @throws {@link Polytomic.InternalServerError}
|
|
67
|
+
* @throws {@link errors.PolytomicError}
|
|
68
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.temporaryCredentials.create({
|
|
@@ -47,6 +47,7 @@ exports.TemporaryCredentialsClient = 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"));
|
|
@@ -56,8 +57,6 @@ class TemporaryCredentialsClient {
|
|
|
56
57
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
* @beta This endpoint is in pre-release and may change.
|
|
60
|
-
*
|
|
61
60
|
* Issues a non-renewable credential with a bounded lifetime for a user or Agent Data profile.
|
|
62
61
|
*
|
|
63
62
|
* The response contains the credential secret once. Store it securely and send it
|
|
@@ -109,6 +108,8 @@ class TemporaryCredentialsClient {
|
|
|
109
108
|
* @throws {@link Polytomic.NotFoundError}
|
|
110
109
|
* @throws {@link Polytomic.TooManyRequestsError}
|
|
111
110
|
* @throws {@link Polytomic.InternalServerError}
|
|
111
|
+
* @throws {@link errors.PolytomicError}
|
|
112
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
112
113
|
*
|
|
113
114
|
* @example
|
|
114
115
|
* await client.temporaryCredentials.create({
|
|
@@ -135,7 +136,7 @@ class TemporaryCredentialsClient {
|
|
|
135
136
|
contentType: "application/json",
|
|
136
137
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
137
138
|
requestType: "json",
|
|
138
|
-
body: request,
|
|
139
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
139
140
|
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,
|
|
140
141
|
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,
|
|
141
142
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -21,6 +21,8 @@ export declare class UsersClient {
|
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link Polytomic.ForbiddenError}
|
|
23
23
|
* @throws {@link Polytomic.NotFoundError}
|
|
24
|
+
* @throws {@link errors.PolytomicError}
|
|
25
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
28
|
* await client.users.listCurrentOrgUsers()
|
|
@@ -39,6 +41,8 @@ export declare class UsersClient {
|
|
|
39
41
|
* @throws {@link Polytomic.ForbiddenError}
|
|
40
42
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
41
43
|
* @throws {@link Polytomic.InternalServerError}
|
|
44
|
+
* @throws {@link errors.PolytomicError}
|
|
45
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
42
46
|
*
|
|
43
47
|
* @example
|
|
44
48
|
* await client.users.createCurrentOrgUser({
|
|
@@ -56,6 +60,8 @@ export declare class UsersClient {
|
|
|
56
60
|
* @throws {@link Polytomic.ForbiddenError}
|
|
57
61
|
* @throws {@link Polytomic.NotFoundError}
|
|
58
62
|
* @throws {@link Polytomic.InternalServerError}
|
|
63
|
+
* @throws {@link errors.PolytomicError}
|
|
64
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
59
65
|
*
|
|
60
66
|
* @example
|
|
61
67
|
* await client.users.getCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -75,6 +81,8 @@ export declare class UsersClient {
|
|
|
75
81
|
* @throws {@link Polytomic.ForbiddenError}
|
|
76
82
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
77
83
|
* @throws {@link Polytomic.InternalServerError}
|
|
84
|
+
* @throws {@link errors.PolytomicError}
|
|
85
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
78
86
|
*
|
|
79
87
|
* @example
|
|
80
88
|
* await client.users.updateCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -94,6 +102,8 @@ export declare class UsersClient {
|
|
|
94
102
|
* @throws {@link Polytomic.ForbiddenError}
|
|
95
103
|
* @throws {@link Polytomic.NotFoundError}
|
|
96
104
|
* @throws {@link Polytomic.InternalServerError}
|
|
105
|
+
* @throws {@link errors.PolytomicError}
|
|
106
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
97
107
|
*
|
|
98
108
|
* @example
|
|
99
109
|
* await client.users.deleteCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -114,6 +124,8 @@ export declare class UsersClient {
|
|
|
114
124
|
*
|
|
115
125
|
* @throws {@link Polytomic.ForbiddenError}
|
|
116
126
|
* @throws {@link Polytomic.NotFoundError}
|
|
127
|
+
* @throws {@link errors.PolytomicError}
|
|
128
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
117
129
|
*
|
|
118
130
|
* @example
|
|
119
131
|
* await client.users.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -137,6 +149,8 @@ export declare class UsersClient {
|
|
|
137
149
|
* @throws {@link Polytomic.ForbiddenError}
|
|
138
150
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
139
151
|
* @throws {@link Polytomic.InternalServerError}
|
|
152
|
+
* @throws {@link errors.PolytomicError}
|
|
153
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
140
154
|
*
|
|
141
155
|
* @example
|
|
142
156
|
* await client.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -159,6 +173,8 @@ export declare class UsersClient {
|
|
|
159
173
|
* @throws {@link Polytomic.ForbiddenError}
|
|
160
174
|
* @throws {@link Polytomic.NotFoundError}
|
|
161
175
|
* @throws {@link Polytomic.InternalServerError}
|
|
176
|
+
* @throws {@link errors.PolytomicError}
|
|
177
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
162
178
|
*
|
|
163
179
|
* @example
|
|
164
180
|
* await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -183,6 +199,8 @@ export declare class UsersClient {
|
|
|
183
199
|
* @throws {@link Polytomic.ForbiddenError}
|
|
184
200
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
185
201
|
* @throws {@link Polytomic.InternalServerError}
|
|
202
|
+
* @throws {@link errors.PolytomicError}
|
|
203
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
186
204
|
*
|
|
187
205
|
* @example
|
|
188
206
|
* await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -209,6 +227,8 @@ export declare class UsersClient {
|
|
|
209
227
|
* @throws {@link Polytomic.ForbiddenError}
|
|
210
228
|
* @throws {@link Polytomic.NotFoundError}
|
|
211
229
|
* @throws {@link Polytomic.InternalServerError}
|
|
230
|
+
* @throws {@link errors.PolytomicError}
|
|
231
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
212
232
|
*
|
|
213
233
|
* @example
|
|
214
234
|
* await client.users.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -229,6 +249,8 @@ export declare class UsersClient {
|
|
|
229
249
|
* @throws {@link Polytomic.ForbiddenError}
|
|
230
250
|
* @throws {@link Polytomic.NotFoundError}
|
|
231
251
|
* @throws {@link Polytomic.InternalServerError}
|
|
252
|
+
* @throws {@link errors.PolytomicError}
|
|
253
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
232
254
|
*
|
|
233
255
|
* @example
|
|
234
256
|
* await client.users.createApiKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -47,6 +47,7 @@ exports.UsersClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -64,6 +65,8 @@ class UsersClient {
|
|
|
64
65
|
*
|
|
65
66
|
* @throws {@link Polytomic.ForbiddenError}
|
|
66
67
|
* @throws {@link Polytomic.NotFoundError}
|
|
68
|
+
* @throws {@link errors.PolytomicError}
|
|
69
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
67
70
|
*
|
|
68
71
|
* @example
|
|
69
72
|
* await client.users.listCurrentOrgUsers()
|
|
@@ -124,6 +127,8 @@ class UsersClient {
|
|
|
124
127
|
* @throws {@link Polytomic.ForbiddenError}
|
|
125
128
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
126
129
|
* @throws {@link Polytomic.InternalServerError}
|
|
130
|
+
* @throws {@link errors.PolytomicError}
|
|
131
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
127
132
|
*
|
|
128
133
|
* @example
|
|
129
134
|
* await client.users.createCurrentOrgUser({
|
|
@@ -148,7 +153,7 @@ class UsersClient {
|
|
|
148
153
|
contentType: "application/json",
|
|
149
154
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
150
155
|
requestType: "json",
|
|
151
|
-
body: request,
|
|
156
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
152
157
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
153
158
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
154
159
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -186,6 +191,8 @@ class UsersClient {
|
|
|
186
191
|
* @throws {@link Polytomic.ForbiddenError}
|
|
187
192
|
* @throws {@link Polytomic.NotFoundError}
|
|
188
193
|
* @throws {@link Polytomic.InternalServerError}
|
|
194
|
+
* @throws {@link errors.PolytomicError}
|
|
195
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
189
196
|
*
|
|
190
197
|
* @example
|
|
191
198
|
* await client.users.getCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -246,6 +253,8 @@ class UsersClient {
|
|
|
246
253
|
* @throws {@link Polytomic.ForbiddenError}
|
|
247
254
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
248
255
|
* @throws {@link Polytomic.InternalServerError}
|
|
256
|
+
* @throws {@link errors.PolytomicError}
|
|
257
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
249
258
|
*
|
|
250
259
|
* @example
|
|
251
260
|
* await client.users.updateCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -268,7 +277,7 @@ class UsersClient {
|
|
|
268
277
|
contentType: "application/json",
|
|
269
278
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
270
279
|
requestType: "json",
|
|
271
|
-
body: request,
|
|
280
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
272
281
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
273
282
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
274
283
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -310,6 +319,8 @@ class UsersClient {
|
|
|
310
319
|
* @throws {@link Polytomic.ForbiddenError}
|
|
311
320
|
* @throws {@link Polytomic.NotFoundError}
|
|
312
321
|
* @throws {@link Polytomic.InternalServerError}
|
|
322
|
+
* @throws {@link errors.PolytomicError}
|
|
323
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
313
324
|
*
|
|
314
325
|
* @example
|
|
315
326
|
* await client.users.deleteCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -372,6 +383,8 @@ class UsersClient {
|
|
|
372
383
|
*
|
|
373
384
|
* @throws {@link Polytomic.ForbiddenError}
|
|
374
385
|
* @throws {@link Polytomic.NotFoundError}
|
|
386
|
+
* @throws {@link errors.PolytomicError}
|
|
387
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
375
388
|
*
|
|
376
389
|
* @example
|
|
377
390
|
* await client.users.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -434,6 +447,8 @@ class UsersClient {
|
|
|
434
447
|
* @throws {@link Polytomic.ForbiddenError}
|
|
435
448
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
436
449
|
* @throws {@link Polytomic.InternalServerError}
|
|
450
|
+
* @throws {@link errors.PolytomicError}
|
|
451
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
437
452
|
*
|
|
438
453
|
* @example
|
|
439
454
|
* await client.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -458,7 +473,7 @@ class UsersClient {
|
|
|
458
473
|
contentType: "application/json",
|
|
459
474
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
460
475
|
requestType: "json",
|
|
461
|
-
body: request,
|
|
476
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
462
477
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
463
478
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
464
479
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -501,6 +516,8 @@ class UsersClient {
|
|
|
501
516
|
* @throws {@link Polytomic.ForbiddenError}
|
|
502
517
|
* @throws {@link Polytomic.NotFoundError}
|
|
503
518
|
* @throws {@link Polytomic.InternalServerError}
|
|
519
|
+
* @throws {@link errors.PolytomicError}
|
|
520
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
504
521
|
*
|
|
505
522
|
* @example
|
|
506
523
|
* await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -566,6 +583,8 @@ class UsersClient {
|
|
|
566
583
|
* @throws {@link Polytomic.ForbiddenError}
|
|
567
584
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
568
585
|
* @throws {@link Polytomic.InternalServerError}
|
|
586
|
+
* @throws {@link errors.PolytomicError}
|
|
587
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
569
588
|
*
|
|
570
589
|
* @example
|
|
571
590
|
* await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -590,7 +609,7 @@ class UsersClient {
|
|
|
590
609
|
contentType: "application/json",
|
|
591
610
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
592
611
|
requestType: "json",
|
|
593
|
-
body: request,
|
|
612
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
594
613
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
595
614
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
596
615
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -637,6 +656,8 @@ class UsersClient {
|
|
|
637
656
|
* @throws {@link Polytomic.ForbiddenError}
|
|
638
657
|
* @throws {@link Polytomic.NotFoundError}
|
|
639
658
|
* @throws {@link Polytomic.InternalServerError}
|
|
659
|
+
* @throws {@link errors.PolytomicError}
|
|
660
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
640
661
|
*
|
|
641
662
|
* @example
|
|
642
663
|
* await client.users.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -699,6 +720,8 @@ class UsersClient {
|
|
|
699
720
|
* @throws {@link Polytomic.ForbiddenError}
|
|
700
721
|
* @throws {@link Polytomic.NotFoundError}
|
|
701
722
|
* @throws {@link Polytomic.InternalServerError}
|
|
723
|
+
* @throws {@link errors.PolytomicError}
|
|
724
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
702
725
|
*
|
|
703
726
|
* @example
|
|
704
727
|
* await client.users.createApiKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -25,6 +25,8 @@ export declare class WebhooksClient {
|
|
|
25
25
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @throws {@link Polytomic.InternalServerError}
|
|
28
|
+
* @throws {@link errors.PolytomicError}
|
|
29
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
28
30
|
*
|
|
29
31
|
* @example
|
|
30
32
|
* await client.webhooks.list()
|
|
@@ -47,6 +49,8 @@ export declare class WebhooksClient {
|
|
|
47
49
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
48
50
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
49
51
|
* @throws {@link Polytomic.InternalServerError}
|
|
52
|
+
* @throws {@link errors.PolytomicError}
|
|
53
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
50
54
|
*
|
|
51
55
|
* @example
|
|
52
56
|
* await client.webhooks.create({
|
|
@@ -70,6 +74,8 @@ export declare class WebhooksClient {
|
|
|
70
74
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
75
|
*
|
|
72
76
|
* @throws {@link Polytomic.NotFoundError}
|
|
77
|
+
* @throws {@link errors.PolytomicError}
|
|
78
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
73
79
|
*
|
|
74
80
|
* @example
|
|
75
81
|
* await client.webhooks.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -93,6 +99,8 @@ export declare class WebhooksClient {
|
|
|
93
99
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
94
100
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
95
101
|
* @throws {@link Polytomic.InternalServerError}
|
|
102
|
+
* @throws {@link errors.PolytomicError}
|
|
103
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
96
104
|
*
|
|
97
105
|
* @example
|
|
98
106
|
* await client.webhooks.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -121,6 +129,8 @@ export declare class WebhooksClient {
|
|
|
121
129
|
*
|
|
122
130
|
* @throws {@link Polytomic.NotFoundError}
|
|
123
131
|
* @throws {@link Polytomic.InternalServerError}
|
|
132
|
+
* @throws {@link errors.PolytomicError}
|
|
133
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
124
134
|
*
|
|
125
135
|
* @example
|
|
126
136
|
* await client.webhooks.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -148,6 +158,8 @@ export declare class WebhooksClient {
|
|
|
148
158
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
149
159
|
* @throws {@link Polytomic.NotFoundError}
|
|
150
160
|
* @throws {@link Polytomic.InternalServerError}
|
|
161
|
+
* @throws {@link errors.PolytomicError}
|
|
162
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
151
163
|
*
|
|
152
164
|
* @example
|
|
153
165
|
* await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -173,6 +185,8 @@ export declare class WebhooksClient {
|
|
|
173
185
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
174
186
|
* @throws {@link Polytomic.NotFoundError}
|
|
175
187
|
* @throws {@link Polytomic.InternalServerError}
|
|
188
|
+
* @throws {@link errors.PolytomicError}
|
|
189
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
176
190
|
*
|
|
177
191
|
* @example
|
|
178
192
|
* await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d")
|