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,686 @@
|
|
|
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.ActionConfigurationClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../../../core/requestBody");
|
|
51
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
52
|
+
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
53
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
54
|
+
const Polytomic = __importStar(require("../../../../../index"));
|
|
55
|
+
class ActionConfigurationClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns configured action grants and revisions for a Harbor.
|
|
61
|
+
*
|
|
62
|
+
* You must be an Organization administrator with permission to edit the Harbor.
|
|
63
|
+
* Use a writable API credential, not a Harbor profile credential. Read-only keys
|
|
64
|
+
* are denied because this endpoint requires Harbor edit permission.
|
|
65
|
+
*
|
|
66
|
+
* This response includes grants for Connections that no longer populate the
|
|
67
|
+
* Harbor. You can remove those stale grants without reattaching the Connection.
|
|
68
|
+
* Reading configuration does not require the Harbor Actions entitlement.
|
|
69
|
+
*
|
|
70
|
+
* Use each Connection's `revision` as `expected_revision` when replacing or
|
|
71
|
+
* removing its grants. Configuration responses contain metadata only, not provider
|
|
72
|
+
* credentials or record values.
|
|
73
|
+
*
|
|
74
|
+
* To discover and run granted operations with a Harbor credential, use
|
|
75
|
+
* [List actions](../../../../api-reference/harbors/actions/list). Configuration describes
|
|
76
|
+
* administrative grants; runtime discovery checks what the credential can use.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
79
|
+
* @param {ActionConfigurationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
82
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
83
|
+
* @throws {@link Polytomic.ConflictError}
|
|
84
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
85
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
86
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
87
|
+
* @throws {@link errors.PolytomicError}
|
|
88
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* await client.harbors.actionConfiguration.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
92
|
+
*/
|
|
93
|
+
get(harbor_id, requestOptions) {
|
|
94
|
+
return core.HttpResponsePromise.fromPromise(this.__get(harbor_id, requestOptions));
|
|
95
|
+
}
|
|
96
|
+
__get(harbor_id, requestOptions) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
99
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
100
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
101
|
+
"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",
|
|
102
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
103
|
+
const _response = yield core.fetcher({
|
|
104
|
+
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)}/action-configuration`),
|
|
105
|
+
method: "GET",
|
|
106
|
+
headers: _headers,
|
|
107
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).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 {
|
|
116
|
+
data: _response.body,
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
if (_response.error.reason === "status-code") {
|
|
121
|
+
switch (_response.error.statusCode) {
|
|
122
|
+
case 403:
|
|
123
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
124
|
+
case 404:
|
|
125
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
126
|
+
case 409:
|
|
127
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
128
|
+
case 422:
|
|
129
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
130
|
+
case 500:
|
|
131
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
132
|
+
case 503:
|
|
133
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
134
|
+
default:
|
|
135
|
+
throw new errors.PolytomicError({
|
|
136
|
+
statusCode: _response.error.statusCode,
|
|
137
|
+
body: _response.error.body,
|
|
138
|
+
rawResponse: _response.rawResponse,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/action-configuration");
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Disables all configured actions for a Harbor.
|
|
147
|
+
*
|
|
148
|
+
* You must be an Organization administrator with permission to edit the Harbor.
|
|
149
|
+
* Use a normal writable API credential, not a Harbor profile credential. Your
|
|
150
|
+
* Organization must have the Harbor Actions entitlement.
|
|
151
|
+
*
|
|
152
|
+
* > 🚧 Disable all actions
|
|
153
|
+
* >
|
|
154
|
+
* > This removes every configured action grant from the Harbor, including grants
|
|
155
|
+
* > for detached Connections. There is no per-Connection revision check.
|
|
156
|
+
*
|
|
157
|
+
* The response contains the empty configuration. This request does not delete
|
|
158
|
+
* Connections, syncs, or provider records.
|
|
159
|
+
*
|
|
160
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
161
|
+
* @param {ActionConfigurationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
162
|
+
*
|
|
163
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
164
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
165
|
+
* @throws {@link Polytomic.ConflictError}
|
|
166
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
167
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
168
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
169
|
+
* @throws {@link errors.PolytomicError}
|
|
170
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* await client.harbors.actionConfiguration.disable("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
174
|
+
*/
|
|
175
|
+
disable(harbor_id, requestOptions) {
|
|
176
|
+
return core.HttpResponsePromise.fromPromise(this.__disable(harbor_id, requestOptions));
|
|
177
|
+
}
|
|
178
|
+
__disable(harbor_id, requestOptions) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
181
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
182
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
183
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
184
|
+
"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",
|
|
185
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
186
|
+
const _response = yield core.fetcher({
|
|
187
|
+
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)}/action-configuration`),
|
|
188
|
+
method: "DELETE",
|
|
189
|
+
headers: _headers,
|
|
190
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
191
|
+
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,
|
|
192
|
+
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,
|
|
193
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
194
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
195
|
+
logging: this._options.logging,
|
|
196
|
+
});
|
|
197
|
+
if (_response.ok) {
|
|
198
|
+
return {
|
|
199
|
+
data: _response.body,
|
|
200
|
+
rawResponse: _response.rawResponse,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
if (_response.error.reason === "status-code") {
|
|
204
|
+
switch (_response.error.statusCode) {
|
|
205
|
+
case 403:
|
|
206
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
207
|
+
case 404:
|
|
208
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
209
|
+
case 409:
|
|
210
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
211
|
+
case 422:
|
|
212
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
213
|
+
case 500:
|
|
214
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
215
|
+
case 503:
|
|
216
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
217
|
+
default:
|
|
218
|
+
throw new errors.PolytomicError({
|
|
219
|
+
statusCode: _response.error.statusCode,
|
|
220
|
+
body: _response.error.body,
|
|
221
|
+
rawResponse: _response.rawResponse,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/harbors/{harbor_id}/action-configuration");
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Lists action-capable source Connections that populate a Harbor.
|
|
230
|
+
*
|
|
231
|
+
* You must be an Organization administrator with permission to edit the Harbor.
|
|
232
|
+
* Use a writable API credential, not a Harbor profile credential. Read-only keys
|
|
233
|
+
* are denied because this endpoint requires Harbor edit permission. Discovery does
|
|
234
|
+
* not require the Harbor Actions entitlement.
|
|
235
|
+
*
|
|
236
|
+
* A Connection is eligible when it supports actions and is a source of a
|
|
237
|
+
* non-deleted Bulk Sync or Model Sync targeting the Harbor's backing Connection.
|
|
238
|
+
* Only saved, non-shared Connections in your Organization that you can query are
|
|
239
|
+
* included. Disabled syncs still establish source membership.
|
|
240
|
+
*
|
|
241
|
+
* Discover schemas and operations before choosing the grants to configure.
|
|
242
|
+
*
|
|
243
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
244
|
+
* @param {ActionConfigurationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
245
|
+
*
|
|
246
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
247
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
248
|
+
* @throws {@link Polytomic.ConflictError}
|
|
249
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
250
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
251
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
252
|
+
* @throws {@link errors.PolytomicError}
|
|
253
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* await client.harbors.actionConfiguration.listConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
257
|
+
*/
|
|
258
|
+
listConnections(harbor_id, requestOptions) {
|
|
259
|
+
return core.HttpResponsePromise.fromPromise(this.__listConnections(harbor_id, requestOptions));
|
|
260
|
+
}
|
|
261
|
+
__listConnections(harbor_id, requestOptions) {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
264
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
265
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
266
|
+
"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",
|
|
267
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
268
|
+
const _response = yield core.fetcher({
|
|
269
|
+
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)}/action-configuration/connections`),
|
|
270
|
+
method: "GET",
|
|
271
|
+
headers: _headers,
|
|
272
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
273
|
+
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,
|
|
274
|
+
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,
|
|
275
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
276
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
277
|
+
logging: this._options.logging,
|
|
278
|
+
});
|
|
279
|
+
if (_response.ok) {
|
|
280
|
+
return {
|
|
281
|
+
data: _response.body,
|
|
282
|
+
rawResponse: _response.rawResponse,
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
if (_response.error.reason === "status-code") {
|
|
286
|
+
switch (_response.error.statusCode) {
|
|
287
|
+
case 403:
|
|
288
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
289
|
+
case 404:
|
|
290
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
291
|
+
case 409:
|
|
292
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
293
|
+
case 422:
|
|
294
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
295
|
+
case 500:
|
|
296
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
297
|
+
case 503:
|
|
298
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
299
|
+
default:
|
|
300
|
+
throw new errors.PolytomicError({
|
|
301
|
+
statusCode: _response.error.statusCode,
|
|
302
|
+
body: _response.error.body,
|
|
303
|
+
rawResponse: _response.rawResponse,
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/action-configuration/connections");
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Creates or replaces action grants for an eligible Harbor source Connection.
|
|
312
|
+
*
|
|
313
|
+
* You must be an Organization administrator with permission to edit both the
|
|
314
|
+
* Harbor and the source Connection. Use a normal writable API credential, not a
|
|
315
|
+
* Harbor profile credential. Your Organization must have the Harbor Actions
|
|
316
|
+
* entitlement.
|
|
317
|
+
*
|
|
318
|
+
* The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
|
|
319
|
+
* Sync targeting its backing Connection. This requirement applies to new grants
|
|
320
|
+
* and replacements, even when you only remove fields from an existing grant.
|
|
321
|
+
*
|
|
322
|
+
* Submit the complete grant set for this Connection. Omit `expected_revision` to
|
|
323
|
+
* create it, or supply the current revision to replace it. A missing, stale, or
|
|
324
|
+
* unexpected revision returns `409 Conflict`; read configuration again before
|
|
325
|
+
* retrying. Successful replacement creates a new revision.
|
|
326
|
+
*
|
|
327
|
+
* For mutating operations, `field_ids` selects input fields and
|
|
328
|
+
* `lookup_field_ids` must be omitted. For read-only operations, `field_ids`
|
|
329
|
+
* selects output fields and `lookup_field_ids` selects allowed lookup fields.
|
|
330
|
+
* Duplicate operations or field IDs are invalid. An empty grant set is invalid;
|
|
331
|
+
* remove the Connection's grants instead.
|
|
332
|
+
*
|
|
333
|
+
* This request changes permissions only. It does not execute provider actions.
|
|
334
|
+
*
|
|
335
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
336
|
+
* @param {string} connection_id - Source Connection whose action grants you want to manage
|
|
337
|
+
* @param {Polytomic.harbors.SetHarborActionConfigurationRequest} request
|
|
338
|
+
* @param {ActionConfigurationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
339
|
+
*
|
|
340
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
341
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
342
|
+
* @throws {@link Polytomic.ConflictError}
|
|
343
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
344
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
345
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
346
|
+
* @throws {@link errors.PolytomicError}
|
|
347
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
348
|
+
*
|
|
349
|
+
* @example
|
|
350
|
+
* await client.harbors.actionConfiguration.set("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
351
|
+
*/
|
|
352
|
+
set(harbor_id, connection_id, request = {}, requestOptions) {
|
|
353
|
+
return core.HttpResponsePromise.fromPromise(this.__set(harbor_id, connection_id, request, requestOptions));
|
|
354
|
+
}
|
|
355
|
+
__set(harbor_id_1, connection_id_1) {
|
|
356
|
+
return __awaiter(this, arguments, void 0, function* (harbor_id, connection_id, request = {}, requestOptions) {
|
|
357
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
358
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
359
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
360
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
361
|
+
"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",
|
|
362
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
363
|
+
const _response = yield core.fetcher({
|
|
364
|
+
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)}/action-configuration/connections/${core.url.encodePathParam(connection_id)}`),
|
|
365
|
+
method: "PUT",
|
|
366
|
+
headers: _headers,
|
|
367
|
+
contentType: "application/json",
|
|
368
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
369
|
+
requestType: "json",
|
|
370
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
371
|
+
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,
|
|
372
|
+
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,
|
|
373
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
374
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
375
|
+
logging: this._options.logging,
|
|
376
|
+
});
|
|
377
|
+
if (_response.ok) {
|
|
378
|
+
return {
|
|
379
|
+
data: _response.body,
|
|
380
|
+
rawResponse: _response.rawResponse,
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
if (_response.error.reason === "status-code") {
|
|
384
|
+
switch (_response.error.statusCode) {
|
|
385
|
+
case 403:
|
|
386
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
387
|
+
case 404:
|
|
388
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
389
|
+
case 409:
|
|
390
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
391
|
+
case 422:
|
|
392
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
393
|
+
case 500:
|
|
394
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
395
|
+
case 503:
|
|
396
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
397
|
+
default:
|
|
398
|
+
throw new errors.PolytomicError({
|
|
399
|
+
statusCode: _response.error.statusCode,
|
|
400
|
+
body: _response.error.body,
|
|
401
|
+
rawResponse: _response.rawResponse,
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/harbors/{harbor_id}/action-configuration/connections/{connection_id}");
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Removes a Connection's action grants from a Harbor.
|
|
410
|
+
*
|
|
411
|
+
* You must be an Organization administrator with permission to edit the Harbor.
|
|
412
|
+
* Use a normal writable API credential, not a Harbor profile credential. Your
|
|
413
|
+
* Organization must have the Harbor Actions entitlement.
|
|
414
|
+
*
|
|
415
|
+
* Supply the current `expected_revision` as a query parameter. A stale revision
|
|
416
|
+
* returns `409 Conflict`; read configuration again before retrying.
|
|
417
|
+
*
|
|
418
|
+
* You can remove grants after the Connection stops populating the Harbor, or after
|
|
419
|
+
* the Connection is deleted. The response contains the remaining configured action
|
|
420
|
+
* Connections. This request does not delete the Connection or provider records.
|
|
421
|
+
*
|
|
422
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
423
|
+
* @param {string} connection_id - Source Connection whose action grants you want to manage
|
|
424
|
+
* @param {Polytomic.harbors.ActionConfigurationRemoveRequest} request
|
|
425
|
+
* @param {ActionConfigurationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
426
|
+
*
|
|
427
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
428
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
429
|
+
* @throws {@link Polytomic.ConflictError}
|
|
430
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
431
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
432
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
433
|
+
* @throws {@link errors.PolytomicError}
|
|
434
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
435
|
+
*
|
|
436
|
+
* @example
|
|
437
|
+
* await client.harbors.actionConfiguration.remove("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
438
|
+
* expected_revision: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
439
|
+
* })
|
|
440
|
+
*/
|
|
441
|
+
remove(harbor_id, connection_id, request, requestOptions) {
|
|
442
|
+
return core.HttpResponsePromise.fromPromise(this.__remove(harbor_id, connection_id, request, requestOptions));
|
|
443
|
+
}
|
|
444
|
+
__remove(harbor_id, connection_id, request, requestOptions) {
|
|
445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
446
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
447
|
+
const { expected_revision: expectedRevision } = request;
|
|
448
|
+
const _queryParams = {
|
|
449
|
+
expected_revision: expectedRevision,
|
|
450
|
+
};
|
|
451
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
452
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
453
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
454
|
+
"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",
|
|
455
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
456
|
+
const _response = yield core.fetcher({
|
|
457
|
+
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)}/action-configuration/connections/${core.url.encodePathParam(connection_id)}`),
|
|
458
|
+
method: "DELETE",
|
|
459
|
+
headers: _headers,
|
|
460
|
+
queryString: core.url
|
|
461
|
+
.queryBuilder()
|
|
462
|
+
.addMany(_queryParams)
|
|
463
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
464
|
+
.build(),
|
|
465
|
+
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,
|
|
466
|
+
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,
|
|
467
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
468
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
469
|
+
logging: this._options.logging,
|
|
470
|
+
});
|
|
471
|
+
if (_response.ok) {
|
|
472
|
+
return {
|
|
473
|
+
data: _response.body,
|
|
474
|
+
rawResponse: _response.rawResponse,
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
if (_response.error.reason === "status-code") {
|
|
478
|
+
switch (_response.error.statusCode) {
|
|
479
|
+
case 403:
|
|
480
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
481
|
+
case 404:
|
|
482
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
483
|
+
case 409:
|
|
484
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
485
|
+
case 422:
|
|
486
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
487
|
+
case 500:
|
|
488
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
489
|
+
case 503:
|
|
490
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
491
|
+
default:
|
|
492
|
+
throw new errors.PolytomicError({
|
|
493
|
+
statusCode: _response.error.statusCode,
|
|
494
|
+
body: _response.error.body,
|
|
495
|
+
rawResponse: _response.rawResponse,
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/harbors/{harbor_id}/action-configuration/connections/{connection_id}");
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Lists available action schemas for an eligible Harbor source Connection.
|
|
504
|
+
*
|
|
505
|
+
* You must be an Organization administrator with permission to edit the Harbor
|
|
506
|
+
* and query the source Connection. Use a writable API credential, not a Harbor
|
|
507
|
+
* profile credential. Read-only keys are denied because this endpoint requires
|
|
508
|
+
* Harbor edit permission. Discovery does not require the Harbor Actions entitlement.
|
|
509
|
+
*
|
|
510
|
+
* The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
|
|
511
|
+
* Sync targeting its backing Connection. The response lists action schemas, not
|
|
512
|
+
* records. Use the next page token with the same search filter to continue.
|
|
513
|
+
*
|
|
514
|
+
* Operation IDs in the catalog are hints. Operation discovery returns the current
|
|
515
|
+
* configurable fields for a schema.
|
|
516
|
+
*
|
|
517
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
518
|
+
* @param {string} connection_id - Source Connection whose action grants you want to manage
|
|
519
|
+
* @param {Polytomic.harbors.ActionConfigurationListSchemasRequest} request
|
|
520
|
+
* @param {ActionConfigurationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
521
|
+
*
|
|
522
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
523
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
524
|
+
* @throws {@link Polytomic.ConflictError}
|
|
525
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
526
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
527
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
528
|
+
* @throws {@link errors.PolytomicError}
|
|
529
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
530
|
+
*
|
|
531
|
+
* @example
|
|
532
|
+
* await client.harbors.actionConfiguration.listSchemas("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
533
|
+
* search: "search",
|
|
534
|
+
* limit: 1,
|
|
535
|
+
* page_token: "page_token"
|
|
536
|
+
* })
|
|
537
|
+
*/
|
|
538
|
+
listSchemas(harbor_id, connection_id, request = {}, requestOptions) {
|
|
539
|
+
return core.HttpResponsePromise.fromPromise(this.__listSchemas(harbor_id, connection_id, request, requestOptions));
|
|
540
|
+
}
|
|
541
|
+
__listSchemas(harbor_id_1, connection_id_1) {
|
|
542
|
+
return __awaiter(this, arguments, void 0, function* (harbor_id, connection_id, request = {}, requestOptions) {
|
|
543
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
544
|
+
const { search, limit, page_token: pageToken } = request;
|
|
545
|
+
const _queryParams = {
|
|
546
|
+
search,
|
|
547
|
+
limit,
|
|
548
|
+
page_token: pageToken,
|
|
549
|
+
};
|
|
550
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
551
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
552
|
+
"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",
|
|
553
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
554
|
+
const _response = yield core.fetcher({
|
|
555
|
+
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)}/action-configuration/connections/${core.url.encodePathParam(connection_id)}/schemas`),
|
|
556
|
+
method: "GET",
|
|
557
|
+
headers: _headers,
|
|
558
|
+
queryString: core.url
|
|
559
|
+
.queryBuilder()
|
|
560
|
+
.addMany(_queryParams)
|
|
561
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
562
|
+
.build(),
|
|
563
|
+
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,
|
|
564
|
+
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,
|
|
565
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
566
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
567
|
+
logging: this._options.logging,
|
|
568
|
+
});
|
|
569
|
+
if (_response.ok) {
|
|
570
|
+
return {
|
|
571
|
+
data: _response.body,
|
|
572
|
+
rawResponse: _response.rawResponse,
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
if (_response.error.reason === "status-code") {
|
|
576
|
+
switch (_response.error.statusCode) {
|
|
577
|
+
case 403:
|
|
578
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
579
|
+
case 404:
|
|
580
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
581
|
+
case 409:
|
|
582
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
583
|
+
case 422:
|
|
584
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
585
|
+
case 500:
|
|
586
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
587
|
+
case 503:
|
|
588
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
589
|
+
default:
|
|
590
|
+
throw new errors.PolytomicError({
|
|
591
|
+
statusCode: _response.error.statusCode,
|
|
592
|
+
body: _response.error.body,
|
|
593
|
+
rawResponse: _response.rawResponse,
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/action-configuration/connections/{connection_id}/schemas");
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Lists operations and configurable fields for an eligible Harbor action schema.
|
|
602
|
+
*
|
|
603
|
+
* You must be an Organization administrator with permission to edit the Harbor
|
|
604
|
+
* and query the source Connection. Use a writable API credential, not a Harbor
|
|
605
|
+
* profile credential. Read-only keys are denied because this endpoint requires
|
|
606
|
+
* Harbor edit permission. Discovery does not require the Harbor Actions entitlement.
|
|
607
|
+
*
|
|
608
|
+
* The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
|
|
609
|
+
* Sync targeting its backing Connection. This request returns operation metadata,
|
|
610
|
+
* not provider records, and does not execute an action.
|
|
611
|
+
*
|
|
612
|
+
* For a mutating operation, choose input field IDs. For a read-only operation,
|
|
613
|
+
* choose output field IDs and at least one lookup field ID. Required input fields
|
|
614
|
+
* must be included in the grant.
|
|
615
|
+
*
|
|
616
|
+
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
617
|
+
* @param {string} connection_id - Source Connection whose action grants you want to manage
|
|
618
|
+
* @param {string} schema_id - Exact action schema ID returned by schema discovery
|
|
619
|
+
* @param {ActionConfigurationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
620
|
+
*
|
|
621
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
622
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
623
|
+
* @throws {@link Polytomic.ConflictError}
|
|
624
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
625
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
626
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
627
|
+
* @throws {@link errors.PolytomicError}
|
|
628
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
629
|
+
*
|
|
630
|
+
* @example
|
|
631
|
+
* await client.harbors.actionConfiguration.listOperations("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
|
|
632
|
+
*/
|
|
633
|
+
listOperations(harbor_id, connection_id, schema_id, requestOptions) {
|
|
634
|
+
return core.HttpResponsePromise.fromPromise(this.__listOperations(harbor_id, connection_id, schema_id, requestOptions));
|
|
635
|
+
}
|
|
636
|
+
__listOperations(harbor_id, connection_id, schema_id, requestOptions) {
|
|
637
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
638
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
639
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
640
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
641
|
+
"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",
|
|
642
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
643
|
+
const _response = yield core.fetcher({
|
|
644
|
+
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)}/action-configuration/connections/${core.url.encodePathParam(connection_id)}/schemas/${core.url.encodePathParam(schema_id)}/operations`),
|
|
645
|
+
method: "GET",
|
|
646
|
+
headers: _headers,
|
|
647
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
648
|
+
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,
|
|
649
|
+
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,
|
|
650
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
651
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
652
|
+
logging: this._options.logging,
|
|
653
|
+
});
|
|
654
|
+
if (_response.ok) {
|
|
655
|
+
return {
|
|
656
|
+
data: _response.body,
|
|
657
|
+
rawResponse: _response.rawResponse,
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
if (_response.error.reason === "status-code") {
|
|
661
|
+
switch (_response.error.statusCode) {
|
|
662
|
+
case 403:
|
|
663
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
664
|
+
case 404:
|
|
665
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
666
|
+
case 409:
|
|
667
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
668
|
+
case 422:
|
|
669
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
670
|
+
case 500:
|
|
671
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
672
|
+
case 503:
|
|
673
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
674
|
+
default:
|
|
675
|
+
throw new errors.PolytomicError({
|
|
676
|
+
statusCode: _response.error.statusCode,
|
|
677
|
+
body: _response.error.body,
|
|
678
|
+
rawResponse: _response.rawResponse,
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/action-configuration/connections/{connection_id}/schemas/{schema_id}/operations");
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
exports.ActionConfigurationClient = ActionConfigurationClient;
|