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.
- package/BaseClient.d.ts +15 -0
- package/BaseClient.js +17 -2
- package/Client.d.ts +3 -0
- package/Client.js +41 -36
- 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/GoneError.d.ts +7 -0
- package/api/errors/GoneError.js +54 -0
- 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/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/activity/client/Client.d.ts +144 -0
- package/api/resources/activity/client/Client.js +359 -0
- package/api/resources/activity/client/index.d.ts +1 -0
- package/api/resources/activity/client/index.js +17 -0
- package/api/resources/activity/client/requests/ActivityGetSessionRequest.d.ts +17 -0
- package/api/resources/activity/client/requests/ActivityGetSessionRequest.js +3 -0
- package/api/resources/activity/client/requests/ActivityListRequest.d.ts +47 -0
- package/api/resources/activity/client/requests/ActivityListRequest.js +3 -0
- package/api/resources/activity/client/requests/index.d.ts +2 -0
- package/api/resources/activity/client/requests/index.js +2 -0
- package/api/resources/activity/exports.d.ts +2 -0
- package/api/resources/activity/exports.js +21 -0
- package/api/resources/activity/index.d.ts +2 -0
- package/api/resources/activity/index.js +18 -0
- package/api/resources/activity/types/ActivityGetSessionRequestOrder.d.ts +6 -0
- package/api/resources/activity/types/ActivityGetSessionRequestOrder.js +9 -0
- package/api/resources/activity/types/ActivityListRequestOrder.d.ts +6 -0
- package/api/resources/activity/types/ActivityListRequestOrder.js +9 -0
- package/api/resources/activity/types/index.d.ts +2 -0
- package/api/resources/activity/types/index.js +18 -0
- 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/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +2 -0
- 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 +38 -0
- package/api/resources/connections/client/Client.js +48 -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 +71 -64
- package/api/resources/harbors/client/Client.js +81 -73
- package/api/resources/identity/client/Client.d.ts +2 -0
- package/api/resources/identity/client/Client.js +2 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- 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 +15 -1
- package/api/resources/queryRunner/client/Client.js +35 -4
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +2 -0
- package/api/resources/queryRunner/client/requests/RunQueryRequest.d.ts +2 -0
- package/api/resources/recordViewLinks/client/Client.d.ts +6 -4
- package/api/resources/recordViewLinks/client/Client.js +26 -5
- package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +2 -0
- 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/BulkSyncErrorHandling.d.ts +2 -0
- package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionProxyResponse.d.ts +1 -1
- package/api/types/Filter.d.ts +1 -0
- package/api/types/HarborActivityEventEnvelope.d.ts +4 -0
- package/api/types/HarborActivityEventEnvelope.js +3 -0
- package/api/types/HarborActivityListEnvelope.d.ts +5 -0
- package/api/types/HarborActivityListEnvelope.js +3 -0
- package/api/types/HarborActivitySessionEnvelope.d.ts +5 -0
- package/api/types/HarborActivitySessionEnvelope.js +3 -0
- package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
- package/api/types/HarborSourceMappingResponse.d.ts +1 -1
- package/api/types/HarboractivityapiHarborActivityActorSnapshot.d.ts +6 -0
- package/api/types/HarboractivityapiHarborActivityActorSnapshot.js +3 -0
- package/api/types/HarboractivityapiHarborActivityEvent.d.ts +24 -0
- package/api/types/HarboractivityapiHarborActivityEvent.js +3 -0
- package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.d.ts +3 -0
- package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.js +3 -0
- package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +31 -0
- package/api/types/HarboractivityapiHarborActivityMetadata.js +3 -0
- package/api/types/HarboractivityapiHarborActivitySession.d.ts +27 -0
- package/api/types/HarboractivityapiHarborActivitySession.js +12 -0
- package/api/types/HarboractivityapiHarborActivityTarget.d.ts +6 -0
- package/api/types/HarboractivityapiHarborActivityTarget.js +3 -0
- package/api/types/ModelFilterCondition.d.ts +1 -1
- package/api/types/ModelFilters.d.ts +1 -1
- package/api/types/QueryStatus.d.ts +8 -0
- package/api/types/QueryStatus.js +11 -0
- package/api/types/RunQueryResult.d.ts +2 -2
- package/api/types/SchemaField.d.ts +4 -0
- package/api/types/SupportedFilterFunction.d.ts +12 -0
- package/api/types/SupportedFilterFunction.js +3 -0
- package/api/types/SyncSourceMetaResponse.d.ts +1 -1
- package/api/types/TargetField.d.ts +2 -0
- package/api/types/TargetFilterCondition.d.ts +2 -2
- package/api/types/TargetFilters.d.ts +1 -1
- package/api/types/index.d.ts +11 -0
- package/api/types/index.js +11 -0
- 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/reference.md +291 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -58,6 +58,7 @@ exports.HarborsClient = void 0;
|
|
|
58
58
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
59
59
|
const core = __importStar(require("../../../../core"));
|
|
60
60
|
const headers_1 = require("../../../../core/headers");
|
|
61
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
61
62
|
const environments = __importStar(require("../../../../environments"));
|
|
62
63
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
63
64
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -67,13 +68,14 @@ class HarborsClient {
|
|
|
67
68
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
70
|
-
* @beta This endpoint is in pre-release and may change.
|
|
71
|
-
*
|
|
72
71
|
* Lists profile-authorized connections and capabilities for the current Harbor credential.
|
|
73
72
|
*
|
|
74
73
|
* @param {Polytomic.HarborsListAuthorizedConnectionsRequest} request
|
|
75
74
|
* @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
75
|
*
|
|
76
|
+
* @throws {@link errors.PolytomicError}
|
|
77
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
78
|
+
*
|
|
77
79
|
* @example
|
|
78
80
|
* await client.harbors.listAuthorizedConnections({
|
|
79
81
|
* limit: 1,
|
|
@@ -129,14 +131,15 @@ class HarborsClient {
|
|
|
129
131
|
});
|
|
130
132
|
}
|
|
131
133
|
/**
|
|
132
|
-
* @beta This endpoint is in pre-release and may change.
|
|
133
|
-
*
|
|
134
134
|
* Lists one bounded page of schema resources authorized by the current Harbor profile.
|
|
135
135
|
*
|
|
136
136
|
* @param {string} connection_id
|
|
137
137
|
* @param {Polytomic.HarborsListAuthorizedSchemasRequest} request
|
|
138
138
|
* @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
139
|
*
|
|
140
|
+
* @throws {@link errors.PolytomicError}
|
|
141
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
142
|
+
*
|
|
140
143
|
* @example
|
|
141
144
|
* await client.harbors.listAuthorizedSchemas("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
142
145
|
* limit: 1,
|
|
@@ -189,8 +192,6 @@ class HarborsClient {
|
|
|
189
192
|
});
|
|
190
193
|
}
|
|
191
194
|
/**
|
|
192
|
-
* @beta This endpoint is in pre-release and may change.
|
|
193
|
-
*
|
|
194
195
|
* Returns one schema resource authorized by the current Harbor profile.
|
|
195
196
|
*
|
|
196
197
|
* @param {string} connection_id
|
|
@@ -198,6 +199,9 @@ class HarborsClient {
|
|
|
198
199
|
* @param {Polytomic.HarborsGetAuthorizedSchemaRequest} request
|
|
199
200
|
* @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
200
201
|
*
|
|
202
|
+
* @throws {@link errors.PolytomicError}
|
|
203
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
204
|
+
*
|
|
201
205
|
* @example
|
|
202
206
|
* await client.harbors.getAuthorizedSchema("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
|
|
203
207
|
*/
|
|
@@ -242,8 +246,6 @@ class HarborsClient {
|
|
|
242
246
|
});
|
|
243
247
|
}
|
|
244
248
|
/**
|
|
245
|
-
* @beta This endpoint is in pre-release and may change.
|
|
246
|
-
*
|
|
247
249
|
* Registers a service-attested MCP transport session for a scoped Harbor credential.
|
|
248
250
|
*
|
|
249
251
|
* @param {Polytomic.RegisterHarborSessionRequest} request
|
|
@@ -251,6 +253,8 @@ class HarborsClient {
|
|
|
251
253
|
*
|
|
252
254
|
* @throws {@link Polytomic.ForbiddenError}
|
|
253
255
|
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
256
|
+
* @throws {@link errors.PolytomicError}
|
|
257
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
254
258
|
*
|
|
255
259
|
* @example
|
|
256
260
|
* await client.harbors.registerSession()
|
|
@@ -279,7 +283,7 @@ class HarborsClient {
|
|
|
279
283
|
contentType: "application/json",
|
|
280
284
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
281
285
|
requestType: "json",
|
|
282
|
-
body: _body,
|
|
286
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
283
287
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
284
288
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
285
289
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -310,8 +314,6 @@ class HarborsClient {
|
|
|
310
314
|
});
|
|
311
315
|
}
|
|
312
316
|
/**
|
|
313
|
-
* @beta This endpoint is in pre-release and may change.
|
|
314
|
-
*
|
|
315
317
|
* Closes a service-attested Harbor MCP transport session.
|
|
316
318
|
*
|
|
317
319
|
* @param {string} session_id
|
|
@@ -320,6 +322,8 @@ class HarborsClient {
|
|
|
320
322
|
*
|
|
321
323
|
* @throws {@link Polytomic.ForbiddenError}
|
|
322
324
|
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
325
|
+
* @throws {@link errors.PolytomicError}
|
|
326
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
323
327
|
*
|
|
324
328
|
* @example
|
|
325
329
|
* await client.harbors.closeSession("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -374,8 +378,6 @@ class HarborsClient {
|
|
|
374
378
|
});
|
|
375
379
|
}
|
|
376
380
|
/**
|
|
377
|
-
* @beta This endpoint is in pre-release and may change.
|
|
378
|
-
*
|
|
379
381
|
* Lists Harbors in the caller's current organization.
|
|
380
382
|
*
|
|
381
383
|
* Returns Harbors in creation order. Use `pagination.next_page_token` to continue when more results are available.
|
|
@@ -386,6 +388,8 @@ class HarborsClient {
|
|
|
386
388
|
* @throws {@link Polytomic.ForbiddenError}
|
|
387
389
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
388
390
|
* @throws {@link Polytomic.InternalServerError}
|
|
391
|
+
* @throws {@link errors.PolytomicError}
|
|
392
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
389
393
|
*
|
|
390
394
|
* @example
|
|
391
395
|
* await client.harbors.list({
|
|
@@ -446,8 +450,6 @@ class HarborsClient {
|
|
|
446
450
|
});
|
|
447
451
|
}
|
|
448
452
|
/**
|
|
449
|
-
* @beta This endpoint is in pre-release and may change.
|
|
450
|
-
*
|
|
451
453
|
* Creates a managed or customer-managed Harbor in the caller's current organization.
|
|
452
454
|
*
|
|
453
455
|
* `generate_api_key` defaults to `true`. Polytomic returns a new plaintext credential only in this response. Set it to `false` to create the Harbor without a credential.
|
|
@@ -461,6 +463,8 @@ class HarborsClient {
|
|
|
461
463
|
* @throws {@link Polytomic.ConflictError}
|
|
462
464
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
463
465
|
* @throws {@link Polytomic.InternalServerError}
|
|
466
|
+
* @throws {@link errors.PolytomicError}
|
|
467
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
464
468
|
*
|
|
465
469
|
* @example
|
|
466
470
|
* await client.harbors.create({
|
|
@@ -486,7 +490,7 @@ class HarborsClient {
|
|
|
486
490
|
contentType: "application/json",
|
|
487
491
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
488
492
|
requestType: "json",
|
|
489
|
-
body: request,
|
|
493
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
490
494
|
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,
|
|
491
495
|
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,
|
|
492
496
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -518,8 +522,6 @@ class HarborsClient {
|
|
|
518
522
|
});
|
|
519
523
|
}
|
|
520
524
|
/**
|
|
521
|
-
* @beta This endpoint is in pre-release and may change.
|
|
522
|
-
*
|
|
523
525
|
* Returns one Harbor by its first-class Harbor ID.
|
|
524
526
|
*
|
|
525
527
|
* The response exposes the backing Connection ID but not the internal profile used to authorize Harbor credentials.
|
|
@@ -530,6 +532,8 @@ class HarborsClient {
|
|
|
530
532
|
* @throws {@link Polytomic.ForbiddenError}
|
|
531
533
|
* @throws {@link Polytomic.NotFoundError}
|
|
532
534
|
* @throws {@link Polytomic.InternalServerError}
|
|
535
|
+
* @throws {@link errors.PolytomicError}
|
|
536
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
533
537
|
*
|
|
534
538
|
* @example
|
|
535
539
|
* await client.harbors.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -578,10 +582,12 @@ class HarborsClient {
|
|
|
578
582
|
});
|
|
579
583
|
}
|
|
580
584
|
/**
|
|
581
|
-
* @beta This endpoint is in pre-release and may change.
|
|
582
|
-
*
|
|
583
585
|
* Updates a Harbor's name and description.
|
|
584
586
|
*
|
|
587
|
+
* Renaming a managed Harbor also renames its backing Connection. Both names
|
|
588
|
+
* change together; a name conflict returns `409 Conflict` and leaves both
|
|
589
|
+
* unchanged. Renaming a customer-managed Harbor preserves its Connection's name.
|
|
590
|
+
*
|
|
585
591
|
* This operation does not change `backing_mode` or `backing_connection_id`.
|
|
586
592
|
*
|
|
587
593
|
* @param {string} harbor_id - Unique identifier of the Harbor.
|
|
@@ -593,6 +599,8 @@ class HarborsClient {
|
|
|
593
599
|
* @throws {@link Polytomic.ConflictError}
|
|
594
600
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
595
601
|
* @throws {@link Polytomic.InternalServerError}
|
|
602
|
+
* @throws {@link errors.PolytomicError}
|
|
603
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
596
604
|
*
|
|
597
605
|
* @example
|
|
598
606
|
* await client.harbors.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -617,7 +625,7 @@ class HarborsClient {
|
|
|
617
625
|
contentType: "application/json",
|
|
618
626
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
619
627
|
requestType: "json",
|
|
620
|
-
body: request,
|
|
628
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
621
629
|
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,
|
|
622
630
|
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,
|
|
623
631
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -651,8 +659,6 @@ class HarborsClient {
|
|
|
651
659
|
});
|
|
652
660
|
}
|
|
653
661
|
/**
|
|
654
|
-
* @beta This endpoint is in pre-release and may change.
|
|
655
|
-
*
|
|
656
662
|
* Deletes a Harbor and revokes its credentials.
|
|
657
663
|
*
|
|
658
664
|
* > 🚧 Harbor deletion
|
|
@@ -666,6 +672,8 @@ class HarborsClient {
|
|
|
666
672
|
* @throws {@link Polytomic.NotFoundError}
|
|
667
673
|
* @throws {@link Polytomic.ConflictError}
|
|
668
674
|
* @throws {@link Polytomic.InternalServerError}
|
|
675
|
+
* @throws {@link errors.PolytomicError}
|
|
676
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
669
677
|
*
|
|
670
678
|
* @example
|
|
671
679
|
* await client.harbors.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -717,8 +725,6 @@ class HarborsClient {
|
|
|
717
725
|
});
|
|
718
726
|
}
|
|
719
727
|
/**
|
|
720
|
-
* @beta This endpoint is in pre-release and may change.
|
|
721
|
-
*
|
|
722
728
|
* Lists context document metadata for a Harbor without returning document content.
|
|
723
729
|
*
|
|
724
730
|
* Collection items include the current published `version` number and omit
|
|
@@ -735,6 +741,8 @@ class HarborsClient {
|
|
|
735
741
|
* @throws {@link Polytomic.NotFoundError}
|
|
736
742
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
737
743
|
* @throws {@link Polytomic.InternalServerError}
|
|
744
|
+
* @throws {@link errors.PolytomicError}
|
|
745
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
738
746
|
*
|
|
739
747
|
* @example
|
|
740
748
|
* await client.harbors.listContexts("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -799,8 +807,6 @@ class HarborsClient {
|
|
|
799
807
|
});
|
|
800
808
|
}
|
|
801
809
|
/**
|
|
802
|
-
* @beta This endpoint is in pre-release and may change.
|
|
803
|
-
*
|
|
804
810
|
* Creates and attaches a context document to a Harbor.
|
|
805
811
|
*
|
|
806
812
|
* The new document belongs only to this Harbor. Context documents cannot be attached to multiple Harbors.
|
|
@@ -813,6 +819,8 @@ class HarborsClient {
|
|
|
813
819
|
* @throws {@link Polytomic.NotFoundError}
|
|
814
820
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
815
821
|
* @throws {@link Polytomic.InternalServerError}
|
|
822
|
+
* @throws {@link errors.PolytomicError}
|
|
823
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
816
824
|
*
|
|
817
825
|
* @example
|
|
818
826
|
* await client.harbors.createContext("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -838,7 +846,7 @@ class HarborsClient {
|
|
|
838
846
|
contentType: "application/json",
|
|
839
847
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
840
848
|
requestType: "json",
|
|
841
|
-
body: request,
|
|
849
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
842
850
|
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,
|
|
843
851
|
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,
|
|
844
852
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -870,8 +878,6 @@ class HarborsClient {
|
|
|
870
878
|
});
|
|
871
879
|
}
|
|
872
880
|
/**
|
|
873
|
-
* @beta This endpoint is in pre-release and may change.
|
|
874
|
-
*
|
|
875
881
|
* Lists mutable Harbor context drafts without returning document content.
|
|
876
882
|
*
|
|
877
883
|
* The collection includes drafts for published context documents and initial drafts
|
|
@@ -890,6 +896,8 @@ class HarborsClient {
|
|
|
890
896
|
* @throws {@link Polytomic.NotFoundError}
|
|
891
897
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
892
898
|
* @throws {@link Polytomic.InternalServerError}
|
|
899
|
+
* @throws {@link errors.PolytomicError}
|
|
900
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
893
901
|
*
|
|
894
902
|
* @example
|
|
895
903
|
* await client.harbors.listContextDrafts("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -955,8 +963,6 @@ class HarborsClient {
|
|
|
955
963
|
});
|
|
956
964
|
}
|
|
957
965
|
/**
|
|
958
|
-
* @beta This endpoint is in pre-release and may change.
|
|
959
|
-
*
|
|
960
966
|
* Creates an unpublished context document with its initial mutable draft.
|
|
961
967
|
*
|
|
962
968
|
* Creates a stable context identity and its initial mutable draft without publishing
|
|
@@ -976,6 +982,8 @@ class HarborsClient {
|
|
|
976
982
|
* @throws {@link Polytomic.NotFoundError}
|
|
977
983
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
978
984
|
* @throws {@link Polytomic.InternalServerError}
|
|
985
|
+
* @throws {@link errors.PolytomicError}
|
|
986
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
979
987
|
*
|
|
980
988
|
* @example
|
|
981
989
|
* await client.harbors.createContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -1001,7 +1009,7 @@ class HarborsClient {
|
|
|
1001
1009
|
contentType: "application/json",
|
|
1002
1010
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1003
1011
|
requestType: "json",
|
|
1004
|
-
body: request,
|
|
1012
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1005
1013
|
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,
|
|
1006
1014
|
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,
|
|
1007
1015
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1033,8 +1041,6 @@ class HarborsClient {
|
|
|
1033
1041
|
});
|
|
1034
1042
|
}
|
|
1035
1043
|
/**
|
|
1036
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1037
|
-
*
|
|
1038
1044
|
* Returns one complete Harbor context document.
|
|
1039
1045
|
*
|
|
1040
1046
|
* The response includes the current published `version` number and complete
|
|
@@ -1051,6 +1057,8 @@ class HarborsClient {
|
|
|
1051
1057
|
* @throws {@link Polytomic.ForbiddenError}
|
|
1052
1058
|
* @throws {@link Polytomic.NotFoundError}
|
|
1053
1059
|
* @throws {@link Polytomic.InternalServerError}
|
|
1060
|
+
* @throws {@link errors.PolytomicError}
|
|
1061
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1054
1062
|
*
|
|
1055
1063
|
* @example
|
|
1056
1064
|
* await client.harbors.getContext("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1102,8 +1110,6 @@ class HarborsClient {
|
|
|
1102
1110
|
});
|
|
1103
1111
|
}
|
|
1104
1112
|
/**
|
|
1105
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1106
|
-
*
|
|
1107
1113
|
* Replaces one Harbor context document.
|
|
1108
1114
|
*
|
|
1109
1115
|
* Each successful request publishes the next immutable version. You can omit
|
|
@@ -1120,6 +1126,8 @@ class HarborsClient {
|
|
|
1120
1126
|
* @throws {@link Polytomic.NotFoundError}
|
|
1121
1127
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
1122
1128
|
* @throws {@link Polytomic.InternalServerError}
|
|
1129
|
+
* @throws {@link errors.PolytomicError}
|
|
1130
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1123
1131
|
*
|
|
1124
1132
|
* @example
|
|
1125
1133
|
* await client.harbors.updateContext("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -1148,7 +1156,7 @@ class HarborsClient {
|
|
|
1148
1156
|
contentType: "application/json",
|
|
1149
1157
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1150
1158
|
requestType: "json",
|
|
1151
|
-
body: _body,
|
|
1159
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1152
1160
|
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,
|
|
1153
1161
|
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,
|
|
1154
1162
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1180,8 +1188,6 @@ class HarborsClient {
|
|
|
1180
1188
|
});
|
|
1181
1189
|
}
|
|
1182
1190
|
/**
|
|
1183
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1184
|
-
*
|
|
1185
1191
|
* Deletes one context document from a Harbor.
|
|
1186
1192
|
*
|
|
1187
1193
|
* Deleting a context document does not affect the Harbor or its other context documents.
|
|
@@ -1194,6 +1200,8 @@ class HarborsClient {
|
|
|
1194
1200
|
* @throws {@link Polytomic.ForbiddenError}
|
|
1195
1201
|
* @throws {@link Polytomic.NotFoundError}
|
|
1196
1202
|
* @throws {@link Polytomic.InternalServerError}
|
|
1203
|
+
* @throws {@link errors.PolytomicError}
|
|
1204
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1197
1205
|
*
|
|
1198
1206
|
* @example
|
|
1199
1207
|
* await client.harbors.deleteContext("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1249,8 +1257,6 @@ class HarborsClient {
|
|
|
1249
1257
|
});
|
|
1250
1258
|
}
|
|
1251
1259
|
/**
|
|
1252
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1253
|
-
*
|
|
1254
1260
|
* Returns the mutable draft for a Harbor context document.
|
|
1255
1261
|
*
|
|
1256
1262
|
* Drafts are available only through the draft endpoints. `base_revision_id`
|
|
@@ -1266,6 +1272,8 @@ class HarborsClient {
|
|
|
1266
1272
|
* @throws {@link Polytomic.ForbiddenError}
|
|
1267
1273
|
* @throws {@link Polytomic.NotFoundError}
|
|
1268
1274
|
* @throws {@link Polytomic.InternalServerError}
|
|
1275
|
+
* @throws {@link errors.PolytomicError}
|
|
1276
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1269
1277
|
*
|
|
1270
1278
|
* @example
|
|
1271
1279
|
* await client.harbors.getContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1317,8 +1325,6 @@ class HarborsClient {
|
|
|
1317
1325
|
});
|
|
1318
1326
|
}
|
|
1319
1327
|
/**
|
|
1320
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1321
|
-
*
|
|
1322
1328
|
* Creates or completely replaces the mutable draft for a Harbor context document.
|
|
1323
1329
|
*
|
|
1324
1330
|
* The request supplies the complete draft payload. If a draft already exists,
|
|
@@ -1340,6 +1346,8 @@ class HarborsClient {
|
|
|
1340
1346
|
* @throws {@link Polytomic.NotFoundError}
|
|
1341
1347
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
1342
1348
|
* @throws {@link Polytomic.InternalServerError}
|
|
1349
|
+
* @throws {@link errors.PolytomicError}
|
|
1350
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1343
1351
|
*
|
|
1344
1352
|
* @example
|
|
1345
1353
|
* await client.harbors.saveContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -1368,7 +1376,7 @@ class HarborsClient {
|
|
|
1368
1376
|
contentType: "application/json",
|
|
1369
1377
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1370
1378
|
requestType: "json",
|
|
1371
|
-
body: _body,
|
|
1379
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1372
1380
|
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,
|
|
1373
1381
|
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,
|
|
1374
1382
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1400,8 +1408,6 @@ class HarborsClient {
|
|
|
1400
1408
|
});
|
|
1401
1409
|
}
|
|
1402
1410
|
/**
|
|
1403
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1404
|
-
*
|
|
1405
1411
|
* Discards the mutable draft for a Harbor context document.
|
|
1406
1412
|
*
|
|
1407
1413
|
* Discarding a draft does not change the current published version or its
|
|
@@ -1416,6 +1422,8 @@ class HarborsClient {
|
|
|
1416
1422
|
* @throws {@link Polytomic.ForbiddenError}
|
|
1417
1423
|
* @throws {@link Polytomic.NotFoundError}
|
|
1418
1424
|
* @throws {@link Polytomic.InternalServerError}
|
|
1425
|
+
* @throws {@link errors.PolytomicError}
|
|
1426
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1419
1427
|
*
|
|
1420
1428
|
* @example
|
|
1421
1429
|
* await client.harbors.deleteContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1471,8 +1479,6 @@ class HarborsClient {
|
|
|
1471
1479
|
});
|
|
1472
1480
|
}
|
|
1473
1481
|
/**
|
|
1474
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1475
|
-
*
|
|
1476
1482
|
* Promotes the draft to the next immutable published context version.
|
|
1477
1483
|
*
|
|
1478
1484
|
* Promotion publishes the draft's exact title, description, content, and optional
|
|
@@ -1492,6 +1498,8 @@ class HarborsClient {
|
|
|
1492
1498
|
* @throws {@link Polytomic.NotFoundError}
|
|
1493
1499
|
* @throws {@link Polytomic.ConflictError}
|
|
1494
1500
|
* @throws {@link Polytomic.InternalServerError}
|
|
1501
|
+
* @throws {@link errors.PolytomicError}
|
|
1502
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1495
1503
|
*
|
|
1496
1504
|
* @example
|
|
1497
1505
|
* await client.harbors.promoteContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1549,8 +1557,6 @@ class HarborsClient {
|
|
|
1549
1557
|
});
|
|
1550
1558
|
}
|
|
1551
1559
|
/**
|
|
1552
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1553
|
-
*
|
|
1554
1560
|
* Lists immutable published versions of a Harbor context document without returning content.
|
|
1555
1561
|
*
|
|
1556
1562
|
* Versions are ordered from newest to oldest. Collection items omit `content`,
|
|
@@ -1575,6 +1581,8 @@ class HarborsClient {
|
|
|
1575
1581
|
* @throws {@link Polytomic.NotFoundError}
|
|
1576
1582
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
1577
1583
|
* @throws {@link Polytomic.InternalServerError}
|
|
1584
|
+
* @throws {@link errors.PolytomicError}
|
|
1585
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1578
1586
|
*
|
|
1579
1587
|
* @example
|
|
1580
1588
|
* await client.harbors.listContextVersions("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -1642,8 +1650,6 @@ class HarborsClient {
|
|
|
1642
1650
|
});
|
|
1643
1651
|
}
|
|
1644
1652
|
/**
|
|
1645
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1646
|
-
*
|
|
1647
1653
|
* Returns one immutable published version of a Harbor context document.
|
|
1648
1654
|
*
|
|
1649
1655
|
* The response includes the complete title, description, and plain-text
|
|
@@ -1661,6 +1667,8 @@ class HarborsClient {
|
|
|
1661
1667
|
* @throws {@link Polytomic.ForbiddenError}
|
|
1662
1668
|
* @throws {@link Polytomic.NotFoundError}
|
|
1663
1669
|
* @throws {@link Polytomic.InternalServerError}
|
|
1670
|
+
* @throws {@link errors.PolytomicError}
|
|
1671
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1664
1672
|
*
|
|
1665
1673
|
* @example
|
|
1666
1674
|
* await client.harbors.getContextVersion("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1715,8 +1723,6 @@ class HarborsClient {
|
|
|
1715
1723
|
});
|
|
1716
1724
|
}
|
|
1717
1725
|
/**
|
|
1718
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1719
|
-
*
|
|
1720
1726
|
* Lists active masked credentials for a Harbor.
|
|
1721
1727
|
*
|
|
1722
1728
|
* Each item contains a masked `key_hint`. Polytomic never returns a credential plaintext after creation.
|
|
@@ -1729,6 +1735,8 @@ class HarborsClient {
|
|
|
1729
1735
|
* @throws {@link Polytomic.NotFoundError}
|
|
1730
1736
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
1731
1737
|
* @throws {@link Polytomic.InternalServerError}
|
|
1738
|
+
* @throws {@link errors.PolytomicError}
|
|
1739
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1732
1740
|
*
|
|
1733
1741
|
* @example
|
|
1734
1742
|
* await client.harbors.listKeys("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -1791,8 +1799,6 @@ class HarborsClient {
|
|
|
1791
1799
|
});
|
|
1792
1800
|
}
|
|
1793
1801
|
/**
|
|
1794
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1795
|
-
*
|
|
1796
1802
|
* Generates a new Harbor credential and returns its plaintext value once.
|
|
1797
1803
|
*
|
|
1798
1804
|
* Store the returned `value` securely. Polytomic returns it only in this response.
|
|
@@ -1803,6 +1809,8 @@ class HarborsClient {
|
|
|
1803
1809
|
* @throws {@link Polytomic.ForbiddenError}
|
|
1804
1810
|
* @throws {@link Polytomic.NotFoundError}
|
|
1805
1811
|
* @throws {@link Polytomic.InternalServerError}
|
|
1812
|
+
* @throws {@link errors.PolytomicError}
|
|
1813
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1806
1814
|
*
|
|
1807
1815
|
* @example
|
|
1808
1816
|
* await client.harbors.createKey("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1852,8 +1860,6 @@ class HarborsClient {
|
|
|
1852
1860
|
});
|
|
1853
1861
|
}
|
|
1854
1862
|
/**
|
|
1855
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1856
|
-
*
|
|
1857
1863
|
* Revokes one Harbor credential by its credential ID.
|
|
1858
1864
|
*
|
|
1859
1865
|
* Revocation affects only the selected credential. Other active Harbor credentials remain valid.
|
|
@@ -1865,6 +1871,8 @@ class HarborsClient {
|
|
|
1865
1871
|
* @throws {@link Polytomic.ForbiddenError}
|
|
1866
1872
|
* @throws {@link Polytomic.NotFoundError}
|
|
1867
1873
|
* @throws {@link Polytomic.InternalServerError}
|
|
1874
|
+
* @throws {@link errors.PolytomicError}
|
|
1875
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1868
1876
|
*
|
|
1869
1877
|
* @example
|
|
1870
1878
|
* await client.harbors.deleteKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1914,8 +1922,6 @@ class HarborsClient {
|
|
|
1914
1922
|
});
|
|
1915
1923
|
}
|
|
1916
1924
|
/**
|
|
1917
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1918
|
-
*
|
|
1919
1925
|
* Resolves documented source table and field identities to the names a Harbor's backing Connection accepts.
|
|
1920
1926
|
*
|
|
1921
1927
|
* @param {string} harbor_id - Unique identifier of the Harbor.
|
|
@@ -1926,6 +1932,8 @@ class HarborsClient {
|
|
|
1926
1932
|
* @throws {@link Polytomic.NotFoundError}
|
|
1927
1933
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
1928
1934
|
* @throws {@link Polytomic.InternalServerError}
|
|
1935
|
+
* @throws {@link errors.PolytomicError}
|
|
1936
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
1929
1937
|
*
|
|
1930
1938
|
* @example
|
|
1931
1939
|
* await client.harbors.resolveSourceMappings("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -1948,7 +1956,7 @@ class HarborsClient {
|
|
|
1948
1956
|
contentType: "application/json",
|
|
1949
1957
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1950
1958
|
requestType: "json",
|
|
1951
|
-
body: request,
|
|
1959
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1952
1960
|
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,
|
|
1953
1961
|
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,
|
|
1954
1962
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1983,8 +1991,6 @@ class HarborsClient {
|
|
|
1983
1991
|
});
|
|
1984
1992
|
}
|
|
1985
1993
|
/**
|
|
1986
|
-
* @beta This endpoint is in pre-release and may change.
|
|
1987
|
-
*
|
|
1988
1994
|
* Returns raw Polytomic refresh evidence for datasets written to a Harbor.
|
|
1989
1995
|
*
|
|
1990
1996
|
* Each pipeline corresponds to a bulk sync or model sync that writes at least one
|
|
@@ -2025,6 +2031,8 @@ class HarborsClient {
|
|
|
2025
2031
|
* @throws {@link Polytomic.ForbiddenError}
|
|
2026
2032
|
* @throws {@link Polytomic.NotFoundError}
|
|
2027
2033
|
* @throws {@link Polytomic.InternalServerError}
|
|
2034
|
+
* @throws {@link errors.PolytomicError}
|
|
2035
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
2028
2036
|
*
|
|
2029
2037
|
* @example
|
|
2030
2038
|
* await client.harbors.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -2073,8 +2081,6 @@ class HarborsClient {
|
|
|
2073
2081
|
});
|
|
2074
2082
|
}
|
|
2075
2083
|
/**
|
|
2076
|
-
* @beta This endpoint is in pre-release and may change.
|
|
2077
|
-
*
|
|
2078
2084
|
* Lists Harbor-only users assigned to a Harbor.
|
|
2079
2085
|
*
|
|
2080
2086
|
* The response contains only Harbor-only users currently assigned to this Harbor.
|
|
@@ -2087,6 +2093,8 @@ class HarborsClient {
|
|
|
2087
2093
|
* @throws {@link Polytomic.NotFoundError}
|
|
2088
2094
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
2089
2095
|
* @throws {@link Polytomic.InternalServerError}
|
|
2096
|
+
* @throws {@link errors.PolytomicError}
|
|
2097
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
2090
2098
|
*
|
|
2091
2099
|
* @example
|
|
2092
2100
|
* await client.harbors.listUsers("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -2149,8 +2157,6 @@ class HarborsClient {
|
|
|
2149
2157
|
});
|
|
2150
2158
|
}
|
|
2151
2159
|
/**
|
|
2152
|
-
* @beta This endpoint is in pre-release and may change.
|
|
2153
|
-
*
|
|
2154
2160
|
* Invites and assigns a new Harbor-only user.
|
|
2155
2161
|
*
|
|
2156
2162
|
* The invited account is restricted to assigned Harbors and does not receive regular Polytomic application access.
|
|
@@ -2164,6 +2170,8 @@ class HarborsClient {
|
|
|
2164
2170
|
* @throws {@link Polytomic.ConflictError}
|
|
2165
2171
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
2166
2172
|
* @throws {@link Polytomic.InternalServerError}
|
|
2173
|
+
* @throws {@link errors.PolytomicError}
|
|
2174
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
2167
2175
|
*
|
|
2168
2176
|
* @example
|
|
2169
2177
|
* await client.harbors.inviteUser("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -2188,7 +2196,7 @@ class HarborsClient {
|
|
|
2188
2196
|
contentType: "application/json",
|
|
2189
2197
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
2190
2198
|
requestType: "json",
|
|
2191
|
-
body: request,
|
|
2199
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
2192
2200
|
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,
|
|
2193
2201
|
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,
|
|
2194
2202
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -2222,8 +2230,6 @@ class HarborsClient {
|
|
|
2222
2230
|
});
|
|
2223
2231
|
}
|
|
2224
2232
|
/**
|
|
2225
|
-
* @beta This endpoint is in pre-release and may change.
|
|
2226
|
-
*
|
|
2227
2233
|
* Assigns an existing Harbor-only user to a Harbor.
|
|
2228
2234
|
*
|
|
2229
2235
|
* The assignment is idempotent. Regular Polytomic users cannot be assigned because they already have application access to Harbors.
|
|
@@ -2236,6 +2242,8 @@ class HarborsClient {
|
|
|
2236
2242
|
* @throws {@link Polytomic.NotFoundError}
|
|
2237
2243
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
2238
2244
|
* @throws {@link Polytomic.InternalServerError}
|
|
2245
|
+
* @throws {@link errors.PolytomicError}
|
|
2246
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
2239
2247
|
*
|
|
2240
2248
|
* @example
|
|
2241
2249
|
* await client.harbors.assignUser("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -2287,8 +2295,6 @@ class HarborsClient {
|
|
|
2287
2295
|
});
|
|
2288
2296
|
}
|
|
2289
2297
|
/**
|
|
2290
|
-
* @beta This endpoint is in pre-release and may change.
|
|
2291
|
-
*
|
|
2292
2298
|
* Removes a Harbor assignment without deleting the user.
|
|
2293
2299
|
*
|
|
2294
2300
|
* This removes only the Harbor assignment. The organization user remains available and may retain assignments to other Harbors.
|
|
@@ -2301,6 +2307,8 @@ class HarborsClient {
|
|
|
2301
2307
|
* @throws {@link Polytomic.NotFoundError}
|
|
2302
2308
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
2303
2309
|
* @throws {@link Polytomic.InternalServerError}
|
|
2310
|
+
* @throws {@link errors.PolytomicError}
|
|
2311
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
2304
2312
|
*
|
|
2305
2313
|
* @example
|
|
2306
2314
|
* await client.harbors.unassignUser("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -27,6 +27,8 @@ export declare class IdentityClient {
|
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
29
29
|
* @throws {@link Polytomic.InternalServerError}
|
|
30
|
+
* @throws {@link errors.PolytomicError}
|
|
31
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
30
32
|
*
|
|
31
33
|
* @example
|
|
32
34
|
* await client.identity.get()
|
|
@@ -72,6 +72,8 @@ class IdentityClient {
|
|
|
72
72
|
*
|
|
73
73
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
74
74
|
* @throws {@link Polytomic.InternalServerError}
|
|
75
|
+
* @throws {@link errors.PolytomicError}
|
|
76
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
75
77
|
*
|
|
76
78
|
* @example
|
|
77
79
|
* await client.identity.get()
|
package/api/resources/index.d.ts
CHANGED