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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* page_token: "page_token"
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface ActionConfigurationListSchemasRequest {
|
|
10
10
|
/** Filter action schemas by ID or name. */
|
|
11
11
|
search?: string;
|
|
12
12
|
/** Maximum number of schemas to return */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* expected_revision: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface ActionConfigurationRemoveRequest {
|
|
8
8
|
/** Current revision of the Connection's action grants */
|
|
9
9
|
expected_revision: string;
|
|
10
10
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { ActionConfigurationListSchemasRequest } from "./ActionConfigurationListSchemasRequest";
|
|
2
|
+
export type { ActionConfigurationRemoveRequest } from "./ActionConfigurationRemoveRequest";
|
|
3
|
+
export type { SetHarborActionConfigurationRequest } from "./SetHarborActionConfigurationRequest";
|
|
@@ -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.ActionConfigurationClient = void 0;
|
|
19
|
+
var Client_1 = require("./client/Client");
|
|
20
|
+
Object.defineProperty(exports, "ActionConfigurationClient", { enumerable: true, get: function () { return Client_1.ActionConfigurationClient; } });
|
|
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);
|
|
@@ -82,6 +82,10 @@ export declare class ActionsClient {
|
|
|
82
82
|
* be active and bound to the credential and Harbor. Discovery is recorded as
|
|
83
83
|
* `action.listed`; no response is returned if that event cannot be recorded.
|
|
84
84
|
*
|
|
85
|
+
* Organization administrators manage these grants through
|
|
86
|
+
* [Harbor action configuration](../../../../api-reference/harbors/action-configuration/get).
|
|
87
|
+
* Runtime discovery does not enable additional operations or fields.
|
|
88
|
+
*
|
|
85
89
|
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
86
90
|
* @param {Polytomic.harbors.ActionsListRequest} request
|
|
87
91
|
* @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -174,6 +174,10 @@ class ActionsClient {
|
|
|
174
174
|
* be active and bound to the credential and Harbor. Discovery is recorded as
|
|
175
175
|
* `action.listed`; no response is returned if that event cannot be recorded.
|
|
176
176
|
*
|
|
177
|
+
* Organization administrators manage these grants through
|
|
178
|
+
* [Harbor action configuration](../../../../api-reference/harbors/action-configuration/get).
|
|
179
|
+
* Runtime discovery does not enable additional operations or fields.
|
|
180
|
+
*
|
|
177
181
|
* @param {string} harbor_id - Unique identifier of the Harbor
|
|
178
182
|
* @param {Polytomic.harbors.ActionsListRequest} request
|
|
179
183
|
* @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "
|
|
3
|
-
import * as core from "
|
|
4
|
-
import * as Polytomic from "
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../core";
|
|
4
|
+
import * as Polytomic from "../../../../../index";
|
|
5
5
|
export declare namespace ActivityClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -36,7 +36,7 @@ export declare class ActivityClient {
|
|
|
36
36
|
* > Polytomic retains Activity events for at least 90 days. Pagination tokens
|
|
37
37
|
* > expire 24 hours after the first page.
|
|
38
38
|
*
|
|
39
|
-
* @param {Polytomic.ActivityListRequest} request
|
|
39
|
+
* @param {Polytomic.harbors.ActivityListRequest} request
|
|
40
40
|
* @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -48,7 +48,7 @@ export declare class ActivityClient {
|
|
|
48
48
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
|
-
* await client.activity.list({
|
|
51
|
+
* await client.harbors.activity.list({
|
|
52
52
|
* start_time: "2024-01-15T09:30:00Z",
|
|
53
53
|
* end_time: "2024-01-15T09:30:00Z",
|
|
54
54
|
* limit: 1,
|
|
@@ -64,7 +64,7 @@ export declare class ActivityClient {
|
|
|
64
64
|
* connection_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
65
65
|
* })
|
|
66
66
|
*/
|
|
67
|
-
list(request: Polytomic.ActivityListRequest, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivityListEnvelope>;
|
|
67
|
+
list(request: Polytomic.harbors.ActivityListRequest, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivityListEnvelope>;
|
|
68
68
|
private __list;
|
|
69
69
|
/**
|
|
70
70
|
* Returns one Harbor Activity session and its events.
|
|
@@ -91,7 +91,7 @@ export declare class ActivityClient {
|
|
|
91
91
|
* > expire 24 hours after the first page.
|
|
92
92
|
*
|
|
93
93
|
* @param {string} session_id - Harbor Activity session ID
|
|
94
|
-
* @param {Polytomic.ActivityGetSessionRequest} request
|
|
94
|
+
* @param {Polytomic.harbors.ActivityGetSessionRequest} request
|
|
95
95
|
* @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
96
|
*
|
|
97
97
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -104,13 +104,13 @@ export declare class ActivityClient {
|
|
|
104
104
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
* await client.activity.getSession("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
107
|
+
* await client.harbors.activity.getSession("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
108
108
|
* limit: 1,
|
|
109
109
|
* page_token: "page_token",
|
|
110
110
|
* order: "asc"
|
|
111
111
|
* })
|
|
112
112
|
*/
|
|
113
|
-
getSession(session_id: string, request?: Polytomic.ActivityGetSessionRequest, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivitySessionEnvelope>;
|
|
113
|
+
getSession(session_id: string, request?: Polytomic.harbors.ActivityGetSessionRequest, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivitySessionEnvelope>;
|
|
114
114
|
private __getSession;
|
|
115
115
|
/**
|
|
116
116
|
* Returns one Harbor Activity event from the caller's organization.
|
|
@@ -137,7 +137,7 @@ export declare class ActivityClient {
|
|
|
137
137
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
138
138
|
*
|
|
139
139
|
* @example
|
|
140
|
-
* await client.activity.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
140
|
+
* await client.harbors.activity.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
141
141
|
*/
|
|
142
142
|
get(event_id: string, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivityEventEnvelope>;
|
|
143
143
|
private __get;
|
|
@@ -44,13 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.ActivityClient = void 0;
|
|
47
|
-
const BaseClient_1 = require("
|
|
48
|
-
const core = __importStar(require("
|
|
49
|
-
const headers_1 = require("
|
|
50
|
-
const environments = __importStar(require("
|
|
51
|
-
const handleNonStatusCodeError_1 = require("
|
|
52
|
-
const errors = __importStar(require("
|
|
53
|
-
const Polytomic = __importStar(require("
|
|
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
54
|
class ActivityClient {
|
|
55
55
|
constructor(options = {}) {
|
|
56
56
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -81,7 +81,7 @@ class ActivityClient {
|
|
|
81
81
|
* > Polytomic retains Activity events for at least 90 days. Pagination tokens
|
|
82
82
|
* > expire 24 hours after the first page.
|
|
83
83
|
*
|
|
84
|
-
* @param {Polytomic.ActivityListRequest} request
|
|
84
|
+
* @param {Polytomic.harbors.ActivityListRequest} request
|
|
85
85
|
* @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
86
|
*
|
|
87
87
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -93,7 +93,7 @@ class ActivityClient {
|
|
|
93
93
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
|
-
* await client.activity.list({
|
|
96
|
+
* await client.harbors.activity.list({
|
|
97
97
|
* start_time: "2024-01-15T09:30:00Z",
|
|
98
98
|
* end_time: "2024-01-15T09:30:00Z",
|
|
99
99
|
* limit: 1,
|
|
@@ -205,7 +205,7 @@ class ActivityClient {
|
|
|
205
205
|
* > expire 24 hours after the first page.
|
|
206
206
|
*
|
|
207
207
|
* @param {string} session_id - Harbor Activity session ID
|
|
208
|
-
* @param {Polytomic.ActivityGetSessionRequest} request
|
|
208
|
+
* @param {Polytomic.harbors.ActivityGetSessionRequest} request
|
|
209
209
|
* @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
210
210
|
*
|
|
211
211
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -218,7 +218,7 @@ class ActivityClient {
|
|
|
218
218
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
219
219
|
*
|
|
220
220
|
* @example
|
|
221
|
-
* await client.activity.getSession("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
221
|
+
* await client.harbors.activity.getSession("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
222
222
|
* limit: 1,
|
|
223
223
|
* page_token: "page_token",
|
|
224
224
|
* order: "asc"
|
|
@@ -311,7 +311,7 @@ class ActivityClient {
|
|
|
311
311
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
312
312
|
*
|
|
313
313
|
* @example
|
|
314
|
-
* await client.activity.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
314
|
+
* await client.harbors.activity.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
315
315
|
*/
|
|
316
316
|
get(event_id, requestOptions) {
|
|
317
317
|
return core.HttpResponsePromise.fromPromise(this.__get(event_id, requestOptions));
|
|
@@ -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);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as Polytomic from "
|
|
1
|
+
import type * as Polytomic from "../../../../../../index";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -13,5 +13,5 @@ export interface ActivityGetSessionRequest {
|
|
|
13
13
|
/** Opaque pagination cursor returned by the previous request. It expires 24 hours after the first page. */
|
|
14
14
|
page_token?: string;
|
|
15
15
|
/** Order in which events were recorded. Defaults to asc. */
|
|
16
|
-
order?: Polytomic.ActivityGetSessionRequestOrder;
|
|
16
|
+
order?: Polytomic.harbors.ActivityGetSessionRequestOrder;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as Polytomic from "
|
|
1
|
+
import type * as Polytomic from "../../../../../../index";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -27,7 +27,7 @@ export interface ActivityListRequest {
|
|
|
27
27
|
/** Opaque pagination cursor returned by the previous request. It expires 24 hours after the first page. */
|
|
28
28
|
page_token?: string;
|
|
29
29
|
/** Order in which events were recorded. Defaults to desc. */
|
|
30
|
-
order?: Polytomic.ActivityListRequestOrder;
|
|
30
|
+
order?: Polytomic.harbors.ActivityListRequestOrder;
|
|
31
31
|
/** Return events for these Harbors. Repeat the parameter to filter by multiple IDs. */
|
|
32
32
|
harbor_id?: string | string[];
|
|
33
33
|
/** Return events with these event types. Repeat the parameter to filter by multiple types. */
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../core";
|
|
4
|
+
import type * as Polytomic from "../../../../../index";
|
|
5
|
+
export declare namespace ConnectionsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ConnectionsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ConnectionsClient.Options>;
|
|
12
|
+
constructor(options?: ConnectionsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Lists profile-authorized connections and capabilities for the current Harbor credential.
|
|
15
|
+
*
|
|
16
|
+
* @param {Polytomic.harbors.ConnectionsListRequest} request
|
|
17
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link errors.PolytomicError}
|
|
20
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.harbors.connections.list({
|
|
24
|
+
* limit: 1,
|
|
25
|
+
* page_token: "page_token"
|
|
26
|
+
* })
|
|
27
|
+
*/
|
|
28
|
+
list(request?: Polytomic.harbors.ConnectionsListRequest, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborConnectionListEnvelope>;
|
|
29
|
+
private __list;
|
|
30
|
+
/**
|
|
31
|
+
* Lists one bounded page of schema resources authorized by the current Harbor profile.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} connection_id - Connection ID
|
|
34
|
+
* @param {Polytomic.harbors.ConnectionsListSchemasRequest} request
|
|
35
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link errors.PolytomicError}
|
|
38
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.harbors.connections.listSchemas("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
42
|
+
* limit: 1,
|
|
43
|
+
* page_token: "page_token"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
listSchemas(connection_id: string, request?: Polytomic.harbors.ConnectionsListSchemasRequest, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborSchemaListEnvelope>;
|
|
47
|
+
private __listSchemas;
|
|
48
|
+
/**
|
|
49
|
+
* Returns one schema resource authorized by the current Harbor profile.
|
|
50
|
+
*
|
|
51
|
+
* @param {string} connection_id - Connection ID
|
|
52
|
+
* @param {string} schema_id - Schema ID
|
|
53
|
+
* @param {Polytomic.harbors.ConnectionsGetSchemaRequest} request
|
|
54
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link errors.PolytomicError}
|
|
57
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* await client.harbors.connections.getSchema("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
|
|
61
|
+
*/
|
|
62
|
+
getSchema(connection_id: string, schema_id: string, request?: Polytomic.harbors.ConnectionsGetSchemaRequest, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborConnectionSchemaEnvelope>;
|
|
63
|
+
private __getSchema;
|
|
64
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
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.ConnectionsClient = 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
|
+
class ConnectionsClient {
|
|
54
|
+
constructor(options = {}) {
|
|
55
|
+
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Lists profile-authorized connections and capabilities for the current Harbor credential.
|
|
59
|
+
*
|
|
60
|
+
* @param {Polytomic.harbors.ConnectionsListRequest} request
|
|
61
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link errors.PolytomicError}
|
|
64
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.harbors.connections.list({
|
|
68
|
+
* limit: 1,
|
|
69
|
+
* page_token: "page_token"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
list(request = {}, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__list() {
|
|
76
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
77
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
78
|
+
const { limit, page_token: pageToken, "X-Polytomic-Harbor-Session": polytomicHarborSession, "X-Polytomic-Activity-Request-ID": polytomicActivityRequestId, } = request;
|
|
79
|
+
const _queryParams = {
|
|
80
|
+
limit,
|
|
81
|
+
page_token: pageToken,
|
|
82
|
+
};
|
|
83
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
85
|
+
"X-Polytomic-Harbor-Session": polytomicHarborSession,
|
|
86
|
+
"X-Polytomic-Activity-Request-ID": polytomicActivityRequestId,
|
|
87
|
+
"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",
|
|
88
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
89
|
+
const _response = yield core.fetcher({
|
|
90
|
+
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/harbor/connections"),
|
|
91
|
+
method: "GET",
|
|
92
|
+
headers: _headers,
|
|
93
|
+
queryString: core.url
|
|
94
|
+
.queryBuilder()
|
|
95
|
+
.addMany(_queryParams)
|
|
96
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
97
|
+
.build(),
|
|
98
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
99
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
100
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
101
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
102
|
+
logging: this._options.logging,
|
|
103
|
+
});
|
|
104
|
+
if (_response.ok) {
|
|
105
|
+
return {
|
|
106
|
+
data: _response.body,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
if (_response.error.reason === "status-code") {
|
|
111
|
+
throw new errors.PolytomicError({
|
|
112
|
+
statusCode: _response.error.statusCode,
|
|
113
|
+
body: _response.error.body,
|
|
114
|
+
rawResponse: _response.rawResponse,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbor/connections");
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Lists one bounded page of schema resources authorized by the current Harbor profile.
|
|
122
|
+
*
|
|
123
|
+
* @param {string} connection_id - Connection ID
|
|
124
|
+
* @param {Polytomic.harbors.ConnectionsListSchemasRequest} request
|
|
125
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link errors.PolytomicError}
|
|
128
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* await client.harbors.connections.listSchemas("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
132
|
+
* limit: 1,
|
|
133
|
+
* page_token: "page_token"
|
|
134
|
+
* })
|
|
135
|
+
*/
|
|
136
|
+
listSchemas(connection_id, request = {}, requestOptions) {
|
|
137
|
+
return core.HttpResponsePromise.fromPromise(this.__listSchemas(connection_id, request, requestOptions));
|
|
138
|
+
}
|
|
139
|
+
__listSchemas(connection_id_1) {
|
|
140
|
+
return __awaiter(this, arguments, void 0, function* (connection_id, request = {}, requestOptions) {
|
|
141
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
142
|
+
const { limit, page_token: pageToken, "X-Polytomic-Harbor-Session": polytomicHarborSession, "X-Polytomic-Activity-Request-ID": polytomicActivityRequestId, } = request;
|
|
143
|
+
const _queryParams = {
|
|
144
|
+
limit,
|
|
145
|
+
page_token: pageToken,
|
|
146
|
+
};
|
|
147
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
148
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
149
|
+
"X-Polytomic-Harbor-Session": polytomicHarborSession,
|
|
150
|
+
"X-Polytomic-Activity-Request-ID": polytomicActivityRequestId,
|
|
151
|
+
"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",
|
|
152
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
153
|
+
const _response = yield core.fetcher({
|
|
154
|
+
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/harbor/connections/${core.url.encodePathParam(connection_id)}/schemas`),
|
|
155
|
+
method: "GET",
|
|
156
|
+
headers: _headers,
|
|
157
|
+
queryString: core.url
|
|
158
|
+
.queryBuilder()
|
|
159
|
+
.addMany(_queryParams)
|
|
160
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
161
|
+
.build(),
|
|
162
|
+
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,
|
|
163
|
+
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,
|
|
164
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
165
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
166
|
+
logging: this._options.logging,
|
|
167
|
+
});
|
|
168
|
+
if (_response.ok) {
|
|
169
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
170
|
+
}
|
|
171
|
+
if (_response.error.reason === "status-code") {
|
|
172
|
+
throw new errors.PolytomicError({
|
|
173
|
+
statusCode: _response.error.statusCode,
|
|
174
|
+
body: _response.error.body,
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbor/connections/{connection_id}/schemas");
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Returns one schema resource authorized by the current Harbor profile.
|
|
183
|
+
*
|
|
184
|
+
* @param {string} connection_id - Connection ID
|
|
185
|
+
* @param {string} schema_id - Schema ID
|
|
186
|
+
* @param {Polytomic.harbors.ConnectionsGetSchemaRequest} request
|
|
187
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
188
|
+
*
|
|
189
|
+
* @throws {@link errors.PolytomicError}
|
|
190
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* await client.harbors.connections.getSchema("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
|
|
194
|
+
*/
|
|
195
|
+
getSchema(connection_id, schema_id, request = {}, requestOptions) {
|
|
196
|
+
return core.HttpResponsePromise.fromPromise(this.__getSchema(connection_id, schema_id, request, requestOptions));
|
|
197
|
+
}
|
|
198
|
+
__getSchema(connection_id_1, schema_id_1) {
|
|
199
|
+
return __awaiter(this, arguments, void 0, function* (connection_id, schema_id, request = {}, requestOptions) {
|
|
200
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
201
|
+
const { "X-Polytomic-Harbor-Session": polytomicHarborSession, "X-Polytomic-Activity-Request-ID": polytomicActivityRequestId, } = request;
|
|
202
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
203
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
204
|
+
"X-Polytomic-Harbor-Session": polytomicHarborSession,
|
|
205
|
+
"X-Polytomic-Activity-Request-ID": polytomicActivityRequestId,
|
|
206
|
+
"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",
|
|
207
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
208
|
+
const _response = yield core.fetcher({
|
|
209
|
+
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/harbor/connections/${core.url.encodePathParam(connection_id)}/schemas/${core.url.encodePathParam(schema_id)}`),
|
|
210
|
+
method: "GET",
|
|
211
|
+
headers: _headers,
|
|
212
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
213
|
+
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,
|
|
214
|
+
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,
|
|
215
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
216
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
217
|
+
logging: this._options.logging,
|
|
218
|
+
});
|
|
219
|
+
if (_response.ok) {
|
|
220
|
+
return {
|
|
221
|
+
data: _response.body,
|
|
222
|
+
rawResponse: _response.rawResponse,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
if (_response.error.reason === "status-code") {
|
|
226
|
+
throw new errors.PolytomicError({
|
|
227
|
+
statusCode: _response.error.statusCode,
|
|
228
|
+
body: _response.error.body,
|
|
229
|
+
rawResponse: _response.rawResponse,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbor/connections/{connection_id}/schemas/{schema_id}");
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
exports.ConnectionsClient = ConnectionsClient;
|
|
@@ -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 ConnectionsGetSchemaRequest {
|
|
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. */
|