polytomic 25.9.12 → 25.9.14
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.js +2 -2
- package/Client.d.ts +0 -3
- package/Client.js +38 -43
- package/api/resources/bulkSync/client/Client.d.ts +42 -18
- package/api/resources/bulkSync/client/Client.js +54 -22
- package/api/resources/bulkSync/client/requests/BulkSyncGetDestinationRequest.d.ts +10 -0
- package/api/resources/bulkSync/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +17 -10
- package/api/resources/bulkSync/resources/executions/client/Client.js +17 -10
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +8 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.js +8 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +13 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.js +10 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/index.js +3 -0
- package/api/resources/connections/client/Client.d.ts +8 -7
- package/api/resources/connections/client/Client.js +8 -7
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -1
- package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +5 -1
- package/api/resources/connections/resources/proxy/client/Client.d.ts +13 -2
- package/api/resources/connections/resources/proxy/client/Client.js +13 -2
- package/api/resources/events/client/Client.d.ts +10 -7
- package/api/resources/events/client/Client.js +10 -7
- package/api/resources/harbors/client/Client.d.ts +73 -1290
- package/api/resources/harbors/client/Client.js +108 -3353
- package/api/resources/harbors/client/requests/index.d.ts +0 -29
- package/api/resources/harbors/resources/actionConfiguration/client/Client.d.ts +267 -0
- package/api/resources/harbors/resources/actionConfiguration/client/Client.js +686 -0
- package/api/resources/harbors/{client/requests/HarborsListActionConfigurationSchemasRequest.d.ts → resources/actionConfiguration/client/requests/ActionConfigurationListSchemasRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsRemoveActionConfigurationRequest.d.ts → resources/actionConfiguration/client/requests/ActionConfigurationRemoveRequest.d.ts} +1 -1
- package/api/resources/harbors/{client → resources/actionConfiguration/client}/requests/SetHarborActionConfigurationRequest.d.ts +1 -1
- package/api/resources/harbors/resources/actionConfiguration/client/requests/index.d.ts +3 -0
- package/api/resources/harbors/resources/actionConfiguration/exports.d.ts +2 -0
- package/api/resources/harbors/resources/actionConfiguration/exports.js +21 -0
- package/api/resources/harbors/resources/actionConfiguration/index.d.ts +1 -0
- package/api/resources/harbors/resources/actionConfiguration/index.js +17 -0
- package/api/resources/harbors/resources/actions/client/Client.d.ts +4 -0
- package/api/resources/harbors/resources/actions/client/Client.js +4 -0
- package/api/resources/{activity → harbors/resources/activity}/client/Client.d.ts +11 -11
- package/api/resources/{activity → harbors/resources/activity}/client/Client.js +12 -12
- package/api/resources/harbors/resources/activity/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/activity/client/index.js +17 -0
- package/api/resources/{activity → harbors/resources/activity}/client/requests/ActivityGetSessionRequest.d.ts +2 -2
- package/api/resources/{activity → harbors/resources/activity}/client/requests/ActivityListRequest.d.ts +2 -2
- package/api/resources/harbors/resources/activity/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/connections/client/Client.d.ts +64 -0
- package/api/resources/harbors/resources/connections/client/Client.js +236 -0
- package/api/resources/harbors/resources/connections/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/connections/client/index.js +17 -0
- package/api/resources/harbors/{client/requests/HarborsDeleteContextRequest.d.ts → resources/connections/client/requests/ConnectionsGetSchemaRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListAuthorizedSchemasRequest.d.ts → resources/connections/client/requests/ConnectionsListRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListAuthorizedConnectionsRequest.d.ts → resources/connections/client/requests/ConnectionsListSchemasRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/connections/client/requests/index.d.ts +3 -0
- package/api/resources/harbors/resources/connections/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/connections/exports.d.ts +2 -0
- package/api/resources/harbors/resources/connections/exports.js +21 -0
- package/api/resources/harbors/resources/connections/index.d.ts +1 -0
- package/api/resources/harbors/resources/connections/index.js +17 -0
- package/api/resources/harbors/resources/contexts/client/Client.d.ts +395 -0
- package/api/resources/harbors/resources/contexts/client/Client.js +1142 -0
- package/api/resources/harbors/resources/contexts/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/contexts/client/index.js +17 -0
- package/api/resources/harbors/{client/requests/HarborsGetSavedQueryRequest.d.ts → resources/contexts/client/requests/ContextsDeleteDraftRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsGetContextRequest.d.ts → resources/contexts/client/requests/ContextsDeleteRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsGetContextDraftRequest.d.ts → resources/contexts/client/requests/ContextsGetDraftRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/contexts/client/requests/ContextsGetRequest.d.ts +10 -0
- package/api/resources/harbors/resources/contexts/client/requests/ContextsGetVersionRequest.d.ts +10 -0
- package/api/resources/harbors/{client/requests/HarborsListContextDraftsRequest.d.ts → resources/contexts/client/requests/ContextsListDraftsRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListContextsRequest.d.ts → resources/contexts/client/requests/ContextsListRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListContextVersionsRequest.d.ts → resources/contexts/client/requests/ContextsListVersionsRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/contexts/client/requests/ContextsPromoteDraftRequest.d.ts +10 -0
- package/api/resources/harbors/{client → resources/contexts/client}/requests/ResolveHarborSourceMappingsRequest.d.ts +6 -2
- package/api/resources/harbors/resources/contexts/client/requests/index.d.ts +14 -0
- package/api/resources/harbors/resources/contexts/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/contexts/exports.d.ts +2 -0
- package/api/resources/harbors/resources/contexts/exports.js +21 -0
- package/api/resources/harbors/resources/contexts/index.d.ts +1 -0
- package/api/resources/harbors/resources/contexts/index.js +17 -0
- package/api/resources/harbors/resources/index.d.ts +15 -0
- package/api/resources/harbors/resources/index.js +16 -1
- package/api/resources/harbors/resources/keys/client/Client.d.ts +86 -0
- package/api/resources/harbors/resources/keys/client/Client.js +266 -0
- package/api/resources/harbors/resources/keys/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/keys/client/index.js +17 -0
- package/api/resources/harbors/{client/requests/HarborsListKeysRequest.d.ts → resources/keys/client/requests/KeysListRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/keys/client/requests/index.d.ts +1 -0
- package/api/resources/harbors/resources/keys/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/keys/exports.d.ts +2 -0
- package/api/resources/harbors/resources/keys/exports.js +21 -0
- package/api/resources/harbors/resources/keys/index.d.ts +1 -0
- package/api/resources/harbors/resources/keys/index.js +17 -0
- package/api/resources/harbors/resources/savedQueries/client/Client.d.ts +430 -0
- package/api/resources/harbors/resources/savedQueries/client/Client.js +1008 -0
- package/api/resources/harbors/resources/savedQueries/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/savedQueries/client/index.js +17 -0
- package/api/resources/harbors/{client → resources/savedQueries/client}/requests/CreateHarborSavedQueryDraftRequest.d.ts +1 -1
- package/api/resources/harbors/{client → resources/savedQueries/client}/requests/SaveHarborSavedQueryDraftRequest.d.ts +1 -1
- package/api/resources/harbors/resources/savedQueries/client/requests/SavedQueriesGetRequest.d.ts +10 -0
- package/api/resources/harbors/{client/requests/HarborsListSavedQueryDraftsRequest.d.ts → resources/savedQueries/client/requests/SavedQueriesListDraftsRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListSavedQueriesRequest.d.ts → resources/savedQueries/client/requests/SavedQueriesListRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/savedQueries/client/requests/index.d.ts +6 -0
- package/api/resources/harbors/resources/savedQueries/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/savedQueries/exports.d.ts +2 -0
- package/api/resources/harbors/resources/savedQueries/exports.js +21 -0
- package/api/resources/harbors/resources/savedQueries/index.d.ts +1 -0
- package/api/resources/harbors/resources/savedQueries/index.js +17 -0
- package/api/resources/harbors/resources/users/client/Client.d.ts +105 -0
- package/api/resources/harbors/resources/users/client/Client.js +342 -0
- package/api/resources/harbors/resources/users/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/users/client/index.js +17 -0
- package/api/resources/harbors/{client/requests/HarborsListUsersRequest.d.ts → resources/users/client/requests/UsersListRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/users/client/requests/UsersListRequest.js +3 -0
- package/api/resources/harbors/resources/users/client/requests/index.d.ts +2 -0
- package/api/resources/harbors/resources/users/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/users/exports.d.ts +2 -0
- package/api/resources/harbors/resources/users/exports.js +21 -0
- package/api/resources/harbors/resources/users/index.d.ts +1 -0
- package/api/resources/harbors/resources/users/index.js +17 -0
- package/api/resources/index.d.ts +0 -3
- package/api/resources/index.js +1 -4
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +12 -6
- package/api/resources/modelSync/resources/executions/client/Client.js +12 -6
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +1 -1
- package/api/resources/models/client/Client.d.ts +83 -10
- package/api/resources/models/client/Client.js +83 -10
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +2 -0
- package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -2
- package/api/resources/permissions/resources/policies/client/Client.js +10 -2
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +5 -1
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +5 -1
- package/api/resources/queryRunner/client/Client.d.ts +5 -0
- package/api/resources/queryRunner/client/Client.js +5 -0
- package/api/resources/recordViewLinks/client/Client.d.ts +5 -0
- package/api/resources/recordViewLinks/client/Client.js +5 -0
- package/api/resources/schemas/client/Client.d.ts +4 -11
- package/api/resources/schemas/client/Client.js +4 -11
- package/api/resources/temporaryCredentials/client/Client.d.ts +3 -0
- package/api/resources/temporaryCredentials/client/Client.js +3 -0
- package/api/resources/users/client/Client.d.ts +30 -15
- package/api/resources/users/client/Client.js +30 -15
- package/api/resources/webhooks/client/Client.d.ts +7 -7
- package/api/resources/webhooks/client/Client.js +7 -7
- package/api/types/BulkBulkSyncSchedule.d.ts +0 -1
- package/api/types/BulkSchema.d.ts +13 -0
- package/api/types/BulkSchema.js +10 -0
- package/api/types/BulkSchemaListItem.d.ts +11 -0
- package/api/types/BulkSchemaListItem.js +10 -0
- package/api/types/BulkSelectiveMode.d.ts +9 -0
- package/api/types/BulkSelectiveMode.js +9 -0
- package/api/types/BulkSyncAdditionalScheduleRequest.d.ts +0 -1
- package/api/types/BulkSyncAdditionalScheduleResponse.d.ts +0 -1
- package/api/types/BulkSyncDest.d.ts +2 -0
- package/api/types/BulkSyncScheduleApi.d.ts +0 -1
- package/api/types/BulkSyncSourceCapabilities.d.ts +2 -0
- package/api/types/BulkSyncSourceStatus.d.ts +5 -0
- package/api/types/ConnectAccessLevel.d.ts +5 -0
- package/api/types/ConnectAccessLevel.js +8 -0
- package/api/types/ConnectionType.d.ts +4 -0
- package/api/types/CreateModelRequest.d.ts +2 -0
- package/api/types/EventPayload.d.ts +1 -1
- package/api/types/EventingBulkSyncCanceledEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncCompletedEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncFailedEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncRunningEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncSchedule.d.ts +1 -1
- package/api/types/EventingIngestionRecoveredEvent.d.ts +17 -0
- package/api/types/EventingIngestionRecoveredEvent.js +3 -0
- package/api/types/EventingIngestionStalledEvent.d.ts +19 -0
- package/api/types/EventingIngestionStalledEvent.js +3 -0
- package/api/types/EventingSyncCanceledEvent.d.ts +5 -2
- package/api/types/EventingSyncCompletedEvent.d.ts +6 -3
- package/api/types/EventingSyncCompletedWithErrorsEvent.d.ts +5 -2
- package/api/types/EventingSyncFailedEvent.d.ts +5 -2
- package/api/types/EventingSyncRunningEvent.d.ts +5 -2
- package/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/api/types/HarborStatusScheduleResponse.d.ts +0 -1
- package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +2 -2
- package/api/types/IdentityCredentialSchema.d.ts +2 -0
- package/api/types/IdentityCredentialSupportAccessSchema.d.ts +6 -0
- package/api/types/IdentityCredentialSupportAccessSchema.js +3 -0
- package/api/types/ModelModelFieldOverride.d.ts +17 -0
- package/api/types/ModelModelFieldOverride.js +17 -0
- package/api/types/SchemaConfiguration.d.ts +11 -0
- package/api/types/SchemaConfiguration.js +10 -0
- package/api/types/SchemaField.d.ts +4 -0
- package/api/types/SchemaSchemaError.d.ts +4 -0
- package/api/types/SchemaSchemaError.js +3 -0
- package/api/types/SyncDestinationProperties.d.ts +2 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/package.json +1 -1
- package/reference.md +2822 -2622
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.d.ts +0 -10
- package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.d.ts +0 -10
- package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.d.ts +0 -10
- package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.d.ts +0 -10
- /package/api/resources/{activity/client/requests/ActivityGetSessionRequest.js → bulkSync/client/requests/BulkSyncGetDestinationRequest.js} +0 -0
- /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/index.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/index.js +0 -0
- /package/api/resources/{activity/client/requests/ActivityListRequest.js → harbors/resources/actionConfiguration/client/requests/ActionConfigurationListSchemasRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/CreateHarborContextDraftRequest.js → resources/actionConfiguration/client/requests/ActionConfigurationRemoveRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/actionConfiguration/client}/requests/SetHarborActionConfigurationRequest.js +0 -0
- /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/requests/index.js +0 -0
- /package/api/resources/harbors/{client/requests/CreateHarborContextRequest.js → resources/activity/client/requests/ActivityGetSessionRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/CreateHarborSavedQueryDraftRequest.js → resources/activity/client/requests/ActivityListRequest.js} +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/client/requests/index.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/exports.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/exports.js +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/index.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/index.js +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/ActivityGetSessionRequestOrder.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/ActivityGetSessionRequestOrder.js +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/ActivityListRequestOrder.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/ActivityListRequestOrder.js +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/index.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/index.js +0 -0
- /package/api/resources/harbors/{client/requests/ExecuteHarborSavedQueryRequest.js → resources/connections/client/requests/ConnectionsGetSchemaRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsDeleteContextDraftRequest.js → resources/connections/client/requests/ConnectionsListRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsDeleteContextRequest.js → resources/connections/client/requests/ConnectionsListSchemasRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetAuthorizedSchemaRequest.js → resources/contexts/client/requests/ContextsDeleteDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetContextDraftRequest.js → resources/contexts/client/requests/ContextsDeleteRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetContextRequest.js → resources/contexts/client/requests/ContextsGetDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetContextVersionRequest.js → resources/contexts/client/requests/ContextsGetRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetSavedQueryRequest.js → resources/contexts/client/requests/ContextsGetVersionRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListActionConfigurationSchemasRequest.js → resources/contexts/client/requests/ContextsListDraftsRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListAuthorizedConnectionsRequest.js → resources/contexts/client/requests/ContextsListRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListAuthorizedSchemasRequest.js → resources/contexts/client/requests/ContextsListVersionsRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListContextDraftsRequest.js → resources/contexts/client/requests/ContextsPromoteDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/CreateHarborContextDraftRequest.d.ts +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListContextVersionsRequest.js → resources/contexts/client/requests/CreateHarborContextDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/CreateHarborContextRequest.d.ts +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListContextsRequest.js → resources/contexts/client/requests/CreateHarborContextRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/ResolveHarborSourceMappingsRequest.js +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextDraftRequest.d.ts +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextDraftRequest.js +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextRequest.d.ts +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextRequest.js +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListKeysRequest.js → resources/keys/client/requests/KeysListRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListSavedQueriesRequest.js → resources/savedQueries/client/requests/CreateHarborSavedQueryDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/savedQueries/client}/requests/ExecuteHarborSavedQueryRequest.d.ts +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListSavedQueryDraftsRequest.js → resources/savedQueries/client/requests/ExecuteHarborSavedQueryRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/savedQueries/client}/requests/SaveHarborSavedQueryDraftRequest.js +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListUsersRequest.js → resources/savedQueries/client/requests/SavedQueriesGetRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsPromoteContextDraftRequest.js → resources/savedQueries/client/requests/SavedQueriesListDraftsRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsRemoveActionConfigurationRequest.js → resources/savedQueries/client/requests/SavedQueriesListRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/users/client}/requests/InviteHarborUserRequest.d.ts +0 -0
- /package/api/resources/harbors/{client → resources/users/client}/requests/InviteHarborUserRequest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ContextsDeleteDraftRequest {
|
|
6
6
|
/** Harbor session token; when supplied, the session must be active and bound to this credential and Harbor. */
|
|
7
7
|
"X-Polytomic-Harbor-Session"?: string;
|
|
8
8
|
/** New nonzero UUID for each request, required for scoped credentials; a reused value is rejected. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ContextsDeleteRequest {
|
|
6
6
|
/** Harbor session token; when supplied, the session must be active and bound to this credential and Harbor. */
|
|
7
7
|
"X-Polytomic-Harbor-Session"?: string;
|
|
8
8
|
/** New nonzero UUID for each request, required for scoped credentials; a reused value is rejected. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ContextsGetDraftRequest {
|
|
6
6
|
/** Harbor session token; when supplied, the session must be active and bound to this credential and Harbor. */
|
|
7
7
|
"X-Polytomic-Harbor-Session"?: string;
|
|
8
8
|
/** New nonzero UUID for each request, required for scoped credentials; a reused value is rejected. */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ContextsGetRequest {
|
|
6
|
+
/** Harbor session token; when supplied, the session must be active and bound to this credential and Harbor. */
|
|
7
|
+
"X-Polytomic-Harbor-Session"?: string;
|
|
8
|
+
/** New nonzero UUID for each request, required for scoped credentials; a reused value is rejected. */
|
|
9
|
+
"X-Polytomic-Activity-Request-ID"?: string;
|
|
10
|
+
}
|
package/api/resources/harbors/resources/contexts/client/requests/ContextsGetVersionRequest.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ContextsGetVersionRequest {
|
|
6
|
+
/** Harbor session token; when supplied, the session must be active and bound to this credential and Harbor. */
|
|
7
|
+
"X-Polytomic-Harbor-Session"?: string;
|
|
8
|
+
/** New nonzero UUID for each request, required for scoped credentials; a reused value is rejected. */
|
|
9
|
+
"X-Polytomic-Activity-Request-ID"?: string;
|
|
10
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* page_token: "page_token"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface ContextsListDraftsRequest {
|
|
9
9
|
/** Maximum number of mutable drafts to return. Defaults to 50 and cannot exceed 50. */
|
|
10
10
|
limit?: number;
|
|
11
11
|
/** Opaque pagination cursor returned by the previous request */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* page_token: "page_token"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface ContextsListRequest {
|
|
9
9
|
/** Maximum number of context documents to return. Defaults to 50 and cannot exceed 50. */
|
|
10
10
|
limit?: number;
|
|
11
11
|
/** Opaque pagination cursor returned by the previous request */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* page_token: "page_token"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface ContextsListVersionsRequest {
|
|
9
9
|
/** Maximum number of published versions to return. Defaults to 50 and cannot exceed 50. */
|
|
10
10
|
limit?: number;
|
|
11
11
|
/** Opaque pagination cursor returned by the previous request */
|
package/api/resources/harbors/resources/contexts/client/requests/ContextsPromoteDraftRequest.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ContextsPromoteDraftRequest {
|
|
6
|
+
/** Harbor session token; when supplied, the session must be active and bound to this credential and Harbor. */
|
|
7
|
+
"X-Polytomic-Harbor-Session"?: string;
|
|
8
|
+
/** New nonzero UUID for each request, required for scoped credentials; a reused value is rejected. */
|
|
9
|
+
"X-Polytomic-Activity-Request-ID"?: string;
|
|
10
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type * as Polytomic from "
|
|
1
|
+
import type * as Polytomic from "../../../../../../index";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
|
-
* {
|
|
4
|
+
* {
|
|
5
|
+
* sources: [{
|
|
6
|
+
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
7
|
+
* }]
|
|
8
|
+
* }
|
|
5
9
|
*/
|
|
6
10
|
export interface ResolveHarborSourceMappingsRequest {
|
|
7
11
|
/** Source tables to resolve. Answered in request order; maximum 200 entries, each naming at most 500 fields. */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type { ContextsDeleteDraftRequest } from "./ContextsDeleteDraftRequest";
|
|
2
|
+
export type { ContextsDeleteRequest } from "./ContextsDeleteRequest";
|
|
3
|
+
export type { ContextsGetDraftRequest } from "./ContextsGetDraftRequest";
|
|
4
|
+
export type { ContextsGetRequest } from "./ContextsGetRequest";
|
|
5
|
+
export type { ContextsGetVersionRequest } from "./ContextsGetVersionRequest";
|
|
6
|
+
export type { ContextsListDraftsRequest } from "./ContextsListDraftsRequest";
|
|
7
|
+
export type { ContextsListRequest } from "./ContextsListRequest";
|
|
8
|
+
export type { ContextsListVersionsRequest } from "./ContextsListVersionsRequest";
|
|
9
|
+
export type { ContextsPromoteDraftRequest } from "./ContextsPromoteDraftRequest";
|
|
10
|
+
export type { CreateHarborContextDraftRequest } from "./CreateHarborContextDraftRequest";
|
|
11
|
+
export type { CreateHarborContextRequest } from "./CreateHarborContextRequest";
|
|
12
|
+
export type { ResolveHarborSourceMappingsRequest } from "./ResolveHarborSourceMappingsRequest";
|
|
13
|
+
export type { SaveHarborContextDraftRequest } from "./SaveHarborContextDraftRequest";
|
|
14
|
+
export type { SaveHarborContextRequest } from "./SaveHarborContextRequest";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ContextsClient = void 0;
|
|
19
|
+
var Client_1 = require("./client/Client");
|
|
20
|
+
Object.defineProperty(exports, "ContextsClient", { enumerable: true, get: function () { return Client_1.ContextsClient; } });
|
|
21
|
+
__exportStar(require("./client/index"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
export * as actionConfiguration from "./actionConfiguration";
|
|
2
|
+
export * from "./actionConfiguration/client/requests";
|
|
1
3
|
export * as actions from "./actions";
|
|
2
4
|
export * from "./actions/client/requests";
|
|
5
|
+
export * as activity from "./activity";
|
|
6
|
+
export * from "./activity/client/requests";
|
|
7
|
+
export * from "./activity/types";
|
|
8
|
+
export * as connections from "./connections";
|
|
9
|
+
export * from "./connections/client/requests";
|
|
10
|
+
export * as contexts from "./contexts";
|
|
11
|
+
export * from "./contexts/client/requests";
|
|
12
|
+
export * as keys from "./keys";
|
|
13
|
+
export * from "./keys/client/requests";
|
|
14
|
+
export * as savedQueries from "./savedQueries";
|
|
15
|
+
export * from "./savedQueries/client/requests";
|
|
16
|
+
export * as users from "./users";
|
|
17
|
+
export * from "./users/client/requests";
|
|
@@ -36,6 +36,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.actions = void 0;
|
|
39
|
+
exports.users = exports.savedQueries = exports.keys = exports.contexts = exports.connections = exports.activity = exports.actions = exports.actionConfiguration = void 0;
|
|
40
|
+
exports.actionConfiguration = __importStar(require("./actionConfiguration"));
|
|
41
|
+
__exportStar(require("./actionConfiguration/client/requests"), exports);
|
|
40
42
|
exports.actions = __importStar(require("./actions"));
|
|
41
43
|
__exportStar(require("./actions/client/requests"), exports);
|
|
44
|
+
exports.activity = __importStar(require("./activity"));
|
|
45
|
+
__exportStar(require("./activity/client/requests"), exports);
|
|
46
|
+
__exportStar(require("./activity/types"), exports);
|
|
47
|
+
exports.connections = __importStar(require("./connections"));
|
|
48
|
+
__exportStar(require("./connections/client/requests"), exports);
|
|
49
|
+
exports.contexts = __importStar(require("./contexts"));
|
|
50
|
+
__exportStar(require("./contexts/client/requests"), exports);
|
|
51
|
+
exports.keys = __importStar(require("./keys"));
|
|
52
|
+
__exportStar(require("./keys/client/requests"), exports);
|
|
53
|
+
exports.savedQueries = __importStar(require("./savedQueries"));
|
|
54
|
+
__exportStar(require("./savedQueries/client/requests"), exports);
|
|
55
|
+
exports.users = __importStar(require("./users"));
|
|
56
|
+
__exportStar(require("./users/client/requests"), exports);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../core";
|
|
4
|
+
import * as Polytomic from "../../../../../index";
|
|
5
|
+
export declare namespace KeysClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class KeysClient {
|
|
13
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<KeysClient.Options>;
|
|
14
|
+
constructor(options?: KeysClient.Options);
|
|
15
|
+
/**
|
|
16
|
+
* Lists non-expiring masked credentials for a Harbor.
|
|
17
|
+
*
|
|
18
|
+
* Only credentials with no expiration timestamp are returned. Credentials with
|
|
19
|
+
* an expiration timestamp are excluded, even if they have not yet expired.
|
|
20
|
+
*
|
|
21
|
+
* Each item contains a masked `key_hint`. Polytomic never returns a credential's
|
|
22
|
+
* plaintext value after creation.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
25
|
+
* @param {Polytomic.harbors.KeysListRequest} request
|
|
26
|
+
* @param {KeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
29
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
30
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
31
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
32
|
+
* @throws {@link errors.PolytomicError}
|
|
33
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.harbors.keys.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
37
|
+
* limit: 50,
|
|
38
|
+
* page_token: "page_token"
|
|
39
|
+
* })
|
|
40
|
+
*/
|
|
41
|
+
list(harbor_id: string, request?: Polytomic.harbors.KeysListRequest, requestOptions?: KeysClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborKeyListEnvelope>;
|
|
42
|
+
private __list;
|
|
43
|
+
/**
|
|
44
|
+
* Generates a new Harbor credential and returns its plaintext value once.
|
|
45
|
+
*
|
|
46
|
+
* Store the returned `value` securely. Polytomic returns it only in this response.
|
|
47
|
+
*
|
|
48
|
+
* For access that expires automatically, issue a Harbor-subject
|
|
49
|
+
* [temporary credential](../../../../api-reference/temporary-credentials/create) instead.
|
|
50
|
+
* Temporary credential issuance also supports user subjects.
|
|
51
|
+
*
|
|
52
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
53
|
+
* @param {KeysClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
56
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
57
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
58
|
+
* @throws {@link errors.PolytomicError}
|
|
59
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* await client.harbors.keys.create("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
63
|
+
*/
|
|
64
|
+
create(harbor_id: string, requestOptions?: KeysClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborKeyEnvelope>;
|
|
65
|
+
private __create;
|
|
66
|
+
/**
|
|
67
|
+
* Revokes one Harbor credential by its credential ID.
|
|
68
|
+
*
|
|
69
|
+
* Revocation affects only the selected credential. Other active Harbor credentials remain valid.
|
|
70
|
+
*
|
|
71
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
72
|
+
* @param {string} key_id - Unique identifier of the Harbor credential
|
|
73
|
+
* @param {KeysClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
76
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
77
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
78
|
+
* @throws {@link errors.PolytomicError}
|
|
79
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await client.harbors.keys.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
83
|
+
*/
|
|
84
|
+
delete(harbor_id: string, key_id: string, requestOptions?: KeysClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.RevokedHarborKeyEnvelope>;
|
|
85
|
+
private __delete;
|
|
86
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.KeysClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
53
|
+
const Polytomic = __importStar(require("../../../../../index"));
|
|
54
|
+
class KeysClient {
|
|
55
|
+
constructor(options = {}) {
|
|
56
|
+
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Lists non-expiring masked credentials for a Harbor.
|
|
60
|
+
*
|
|
61
|
+
* Only credentials with no expiration timestamp are returned. Credentials with
|
|
62
|
+
* an expiration timestamp are excluded, even if they have not yet expired.
|
|
63
|
+
*
|
|
64
|
+
* Each item contains a masked `key_hint`. Polytomic never returns a credential's
|
|
65
|
+
* plaintext value after creation.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
68
|
+
* @param {Polytomic.harbors.KeysListRequest} request
|
|
69
|
+
* @param {KeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
72
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
73
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
74
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
75
|
+
* @throws {@link errors.PolytomicError}
|
|
76
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.harbors.keys.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
80
|
+
* limit: 50,
|
|
81
|
+
* page_token: "page_token"
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
list(harbor_id, request = {}, requestOptions) {
|
|
85
|
+
return core.HttpResponsePromise.fromPromise(this.__list(harbor_id, request, requestOptions));
|
|
86
|
+
}
|
|
87
|
+
__list(harbor_id_1) {
|
|
88
|
+
return __awaiter(this, arguments, void 0, function* (harbor_id, request = {}, requestOptions) {
|
|
89
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
90
|
+
const { limit, page_token: pageToken } = request;
|
|
91
|
+
const _queryParams = {
|
|
92
|
+
limit,
|
|
93
|
+
page_token: pageToken,
|
|
94
|
+
};
|
|
95
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
96
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
97
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
98
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
99
|
+
const _response = yield core.fetcher({
|
|
100
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/keys`),
|
|
101
|
+
method: "GET",
|
|
102
|
+
headers: _headers,
|
|
103
|
+
queryString: core.url
|
|
104
|
+
.queryBuilder()
|
|
105
|
+
.addMany(_queryParams)
|
|
106
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
107
|
+
.build(),
|
|
108
|
+
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,
|
|
109
|
+
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,
|
|
110
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
111
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
112
|
+
logging: this._options.logging,
|
|
113
|
+
});
|
|
114
|
+
if (_response.ok) {
|
|
115
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
116
|
+
}
|
|
117
|
+
if (_response.error.reason === "status-code") {
|
|
118
|
+
switch (_response.error.statusCode) {
|
|
119
|
+
case 403:
|
|
120
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
121
|
+
case 404:
|
|
122
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
123
|
+
case 422:
|
|
124
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
125
|
+
case 500:
|
|
126
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
127
|
+
default:
|
|
128
|
+
throw new errors.PolytomicError({
|
|
129
|
+
statusCode: _response.error.statusCode,
|
|
130
|
+
body: _response.error.body,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/keys");
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Generates a new Harbor credential and returns its plaintext value once.
|
|
140
|
+
*
|
|
141
|
+
* Store the returned `value` securely. Polytomic returns it only in this response.
|
|
142
|
+
*
|
|
143
|
+
* For access that expires automatically, issue a Harbor-subject
|
|
144
|
+
* [temporary credential](../../../../api-reference/temporary-credentials/create) instead.
|
|
145
|
+
* Temporary credential issuance also supports user subjects.
|
|
146
|
+
*
|
|
147
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
148
|
+
* @param {KeysClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
151
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
152
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
153
|
+
* @throws {@link errors.PolytomicError}
|
|
154
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* await client.harbors.keys.create("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
158
|
+
*/
|
|
159
|
+
create(harbor_id, requestOptions) {
|
|
160
|
+
return core.HttpResponsePromise.fromPromise(this.__create(harbor_id, requestOptions));
|
|
161
|
+
}
|
|
162
|
+
__create(harbor_id, requestOptions) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
165
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
166
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
167
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
168
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
169
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
170
|
+
const _response = yield core.fetcher({
|
|
171
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/keys`),
|
|
172
|
+
method: "POST",
|
|
173
|
+
headers: _headers,
|
|
174
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
175
|
+
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,
|
|
176
|
+
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,
|
|
177
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
178
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
179
|
+
logging: this._options.logging,
|
|
180
|
+
});
|
|
181
|
+
if (_response.ok) {
|
|
182
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
183
|
+
}
|
|
184
|
+
if (_response.error.reason === "status-code") {
|
|
185
|
+
switch (_response.error.statusCode) {
|
|
186
|
+
case 403:
|
|
187
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
188
|
+
case 404:
|
|
189
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
190
|
+
case 500:
|
|
191
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
192
|
+
default:
|
|
193
|
+
throw new errors.PolytomicError({
|
|
194
|
+
statusCode: _response.error.statusCode,
|
|
195
|
+
body: _response.error.body,
|
|
196
|
+
rawResponse: _response.rawResponse,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/harbors/{harbor_id}/keys");
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Revokes one Harbor credential by its credential ID.
|
|
205
|
+
*
|
|
206
|
+
* Revocation affects only the selected credential. Other active Harbor credentials remain valid.
|
|
207
|
+
*
|
|
208
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
209
|
+
* @param {string} key_id - Unique identifier of the Harbor credential
|
|
210
|
+
* @param {KeysClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
211
|
+
*
|
|
212
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
213
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
214
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
215
|
+
* @throws {@link errors.PolytomicError}
|
|
216
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* await client.harbors.keys.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
220
|
+
*/
|
|
221
|
+
delete(harbor_id, key_id, requestOptions) {
|
|
222
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(harbor_id, key_id, requestOptions));
|
|
223
|
+
}
|
|
224
|
+
__delete(harbor_id, key_id, requestOptions) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
227
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
228
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
229
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
230
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
231
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
232
|
+
const _response = yield core.fetcher({
|
|
233
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/keys/${core.url.encodePathParam(key_id)}`),
|
|
234
|
+
method: "DELETE",
|
|
235
|
+
headers: _headers,
|
|
236
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
237
|
+
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,
|
|
238
|
+
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,
|
|
239
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
240
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
241
|
+
logging: this._options.logging,
|
|
242
|
+
});
|
|
243
|
+
if (_response.ok) {
|
|
244
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
245
|
+
}
|
|
246
|
+
if (_response.error.reason === "status-code") {
|
|
247
|
+
switch (_response.error.statusCode) {
|
|
248
|
+
case 403:
|
|
249
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
250
|
+
case 404:
|
|
251
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
252
|
+
case 500:
|
|
253
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
254
|
+
default:
|
|
255
|
+
throw new errors.PolytomicError({
|
|
256
|
+
statusCode: _response.error.statusCode,
|
|
257
|
+
body: _response.error.body,
|
|
258
|
+
rawResponse: _response.rawResponse,
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/harbors/{harbor_id}/keys/{key_id}");
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
exports.KeysClient = KeysClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* page_token: "page_token"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface KeysListRequest {
|
|
9
9
|
/** Maximum number of active credentials to return. Defaults to 50 and cannot exceed 50. */
|
|
10
10
|
limit?: number;
|
|
11
11
|
/** Opaque pagination cursor returned by the previous request */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { KeysListRequest } from "./KeysListRequest";
|