From 3cc24fbecbee87728c4442987580a7353ceaf121 Mon Sep 17 00:00:00 2001 From: Jordan Reimer Date: Fri, 25 Apr 2025 10:36:23 -0600 Subject: [PATCH] [UI] API Client Update (#30380) * regenerates api client * updates systemReadUtilizationReport api method to generateUtilizationReport * updates VoidResponse interface to camelCase keys * fixes issue in api-client VoidApiResponse * updates tools components and tests to camel api response keys * test fixes * fixes more tests --- ui/api-client/.openapi-generator/FILES | 3 +- ui/api-client/dist/apis/SystemApi.d.ts | 25 ++-- ui/api-client/dist/apis/SystemApi.js | 63 ++++---- ui/api-client/dist/esm/apis/SystemApi.d.ts | 25 ++-- ui/api-client/dist/esm/apis/SystemApi.js | 65 +++++---- .../GenerateUtilizationReportResponse.d.ts | 86 +++++++++++ .../GenerateUtilizationReportResponse.js | 59 ++++++++ .../esm/models/PkiConfigureUrlsRequest.d.ts | 6 + .../esm/models/PkiConfigureUrlsRequest.js | 2 + .../esm/models/PkiConfigureUrlsResponse.d.ts | 6 + .../esm/models/PkiConfigureUrlsResponse.js | 2 + .../esm/models/PkiPatchIssuerResponse.d.ts | 6 + .../dist/esm/models/PkiPatchIssuerResponse.js | 2 + .../esm/models/PkiReadIssuerResponse.d.ts | 6 + .../dist/esm/models/PkiReadIssuerResponse.js | 2 + .../PkiReadUrlsConfigurationResponse.d.ts | 6 + .../PkiReadUrlsConfigurationResponse.js | 2 + .../esm/models/PkiRevokeIssuerResponse.d.ts | 6 + .../esm/models/PkiRevokeIssuerResponse.js | 2 + .../esm/models/PkiWriteIssuerRequest.d.ts | 6 + .../dist/esm/models/PkiWriteIssuerRequest.js | 2 + .../esm/models/PkiWriteIssuerResponse.d.ts | 6 + .../dist/esm/models/PkiWriteIssuerResponse.js | 2 + .../QueryTokenSelfCapabilitiesRequest.d.ts | 6 + .../QueryTokenSelfCapabilitiesRequest.js | 2 + .../esm/models/SshConfigureCaRequest.d.ts | 14 +- .../dist/esm/models/SshConfigureCaRequest.js | 4 + .../UiConfigListCustomMessagesResponse.d.ts | 38 +++++ .../UiConfigListCustomMessagesResponse.js | 43 ++++++ .../UiConfigReadCustomMessageResponse.d.ts | 54 +++++++ .../UiConfigReadCustomMessageResponse.js | 18 +++ .../UiConfigUpdateCustomMessageResponse.d.ts | 6 + .../UiConfigUpdateCustomMessageResponse.js | 2 + ui/api-client/dist/esm/models/index.d.ts | 3 +- ui/api-client/dist/esm/models/index.js | 3 +- ui/api-client/dist/esm/runtime.d.ts | 17 ++- ui/api-client/dist/esm/runtime.js | 29 +++- .../GenerateUtilizationReportResponse.d.ts | 86 +++++++++++ .../GenerateUtilizationReportResponse.js | 66 +++++++++ .../dist/models/PkiConfigureUrlsRequest.d.ts | 6 + .../dist/models/PkiConfigureUrlsRequest.js | 2 + .../dist/models/PkiConfigureUrlsResponse.d.ts | 6 + .../dist/models/PkiConfigureUrlsResponse.js | 2 + .../dist/models/PkiPatchIssuerResponse.d.ts | 6 + .../dist/models/PkiPatchIssuerResponse.js | 2 + .../dist/models/PkiReadIssuerResponse.d.ts | 6 + .../dist/models/PkiReadIssuerResponse.js | 2 + .../PkiReadUrlsConfigurationResponse.d.ts | 6 + .../PkiReadUrlsConfigurationResponse.js | 2 + .../dist/models/PkiRevokeIssuerResponse.d.ts | 6 + .../dist/models/PkiRevokeIssuerResponse.js | 2 + .../dist/models/PkiWriteIssuerRequest.d.ts | 6 + .../dist/models/PkiWriteIssuerRequest.js | 2 + .../dist/models/PkiWriteIssuerResponse.d.ts | 6 + .../dist/models/PkiWriteIssuerResponse.js | 2 + .../QueryTokenSelfCapabilitiesRequest.d.ts | 6 + .../QueryTokenSelfCapabilitiesRequest.js | 2 + .../dist/models/SshConfigureCaRequest.d.ts | 14 +- .../dist/models/SshConfigureCaRequest.js | 4 + .../UiConfigListCustomMessagesResponse.d.ts | 38 +++++ .../UiConfigListCustomMessagesResponse.js | 50 +++++++ .../UiConfigReadCustomMessageResponse.d.ts | 54 +++++++ .../UiConfigReadCustomMessageResponse.js | 18 +++ .../UiConfigUpdateCustomMessageResponse.d.ts | 6 + .../UiConfigUpdateCustomMessageResponse.js | 2 + ui/api-client/dist/models/index.d.ts | 3 +- ui/api-client/dist/models/index.js | 3 +- ui/api-client/dist/runtime.d.ts | 17 ++- ui/api-client/dist/runtime.js | 30 +++- ui/api-client/src/apis/SystemApi.ts | 86 ++++++----- .../GenerateUtilizationReportResponse.ts | 137 ++++++++++++++++++ .../src/models/PkiConfigureUrlsRequest.ts | 8 + .../src/models/PkiConfigureUrlsResponse.ts | 8 + .../src/models/PkiPatchIssuerResponse.ts | 8 + .../src/models/PkiReadIssuerResponse.ts | 8 + .../PkiReadUrlsConfigurationResponse.ts | 8 + .../src/models/PkiRevokeIssuerResponse.ts | 8 + .../src/models/PkiWriteIssuerRequest.ts | 8 + .../src/models/PkiWriteIssuerResponse.ts | 8 + .../QueryTokenSelfCapabilitiesRequest.ts | 8 + .../src/models/SshConfigureCaRequest.ts | 18 ++- .../UiConfigListCustomMessagesResponse.ts | 73 ++++++++++ .../UiConfigReadCustomMessageResponse.ts | 72 +++++++++ .../UiConfigUpdateCustomMessageResponse.ts | 8 + ui/api-client/src/models/index.ts | 3 +- ui/api-client/src/runtime.ts | 47 ++++-- ui/app/components/auth-form.js | 2 +- ui/app/components/tools/rewrap.ts | 4 +- ui/app/components/tools/unwrap.ts | 6 +- ui/app/components/tools/wrap.ts | 4 +- ui/app/components/usage/page.ts | 4 +- ui/app/services/capabilities.ts | 3 + ui/tests/acceptance/tools-test.js | 14 +- .../components/usage/page/index-test.js | 60 ++++---- 94 files changed, 1506 insertions(+), 199 deletions(-) create mode 100644 ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.d.ts create mode 100644 ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.js create mode 100644 ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.d.ts create mode 100644 ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.js create mode 100644 ui/api-client/dist/models/GenerateUtilizationReportResponse.d.ts create mode 100644 ui/api-client/dist/models/GenerateUtilizationReportResponse.js create mode 100644 ui/api-client/dist/models/UiConfigListCustomMessagesResponse.d.ts create mode 100644 ui/api-client/dist/models/UiConfigListCustomMessagesResponse.js create mode 100644 ui/api-client/src/models/GenerateUtilizationReportResponse.ts create mode 100644 ui/api-client/src/models/UiConfigListCustomMessagesResponse.ts diff --git a/ui/api-client/.openapi-generator/FILES b/ui/api-client/.openapi-generator/FILES index 28d0ffdf70..60ce9d2248 100644 --- a/ui/api-client/.openapi-generator/FILES +++ b/ui/api-client/.openapi-generator/FILES @@ -132,6 +132,7 @@ src/models/GenerateRandomWithSourceAndBytesRequest.ts src/models/GenerateRandomWithSourceAndBytesResponse.ts src/models/GenerateRandomWithSourceRequest.ts src/models/GenerateRandomWithSourceResponse.ts +src/models/GenerateUtilizationReportResponse.ts src/models/GithubConfigureRequest.ts src/models/GithubLoginRequest.ts src/models/GithubWriteTeamMappingRequest.ts @@ -744,7 +745,7 @@ src/models/TransitSignWithAlgorithmRequest.ts src/models/TransitTrimKeyRequest.ts src/models/TransitVerifyRequest.ts src/models/TransitVerifyWithAlgorithmRequest.ts -src/models/UiConfigDeleteCustomMessageResponse.ts +src/models/UiConfigListCustomMessagesResponse.ts src/models/UiConfigReadCustomMessageResponse.ts src/models/UiConfigUpdateCustomMessageRequest.ts src/models/UiConfigUpdateCustomMessageResponse.ts diff --git a/ui/api-client/dist/apis/SystemApi.d.ts b/ui/api-client/dist/apis/SystemApi.d.ts index 87cfef39fe..21c5d559ea 100644 --- a/ui/api-client/dist/apis/SystemApi.d.ts +++ b/ui/api-client/dist/apis/SystemApi.d.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { AuditingCalculateHashRequest, AuditingCalculateHashResponse, AuditingEnableDeviceRequest, AuditingEnableRequestHeaderRequest, AuditingListRequestHeadersResponse, AuthEnableMethodRequest, AuthReadConfigurationResponse, AuthReadTuningInformationResponse, AuthTuneConfigurationParametersRequest, CollectHostInformationResponse, CorsConfigureRequest, CorsReadConfigurationResponse, CreateCustomMessageRequest, DecodeTokenRequest, EncryptionKeyConfigureRotationRequest, EncryptionKeyReadRotationConfigurationResponse, GenerateHashRequest, GenerateHashResponse, GenerateHashWithAlgorithmRequest, GenerateHashWithAlgorithmResponse, GenerateRandomRequest, GenerateRandomResponse, GenerateRandomWithBytesRequest, GenerateRandomWithBytesResponse, GenerateRandomWithSourceAndBytesRequest, GenerateRandomWithSourceAndBytesResponse, GenerateRandomWithSourceRequest, GenerateRandomWithSourceResponse, HaStatusResponse, InitializeRequest, InternalClientActivityConfigureRequest, InternalCountEntitiesResponse, InternalCountTokensResponse, InternalGenerateOpenApiDocumentWithParametersRequest, InternalUiListEnabledFeatureFlagsResponse, InternalUiListEnabledVisibleMountsResponse, InternalUiListNamespacesResponse, InternalUiReadAuthenticatedActiveCustomMessagesResponse, InternalUiReadMountInformationResponse, InternalUiReadResultantAclResponse, InternalUiReadUnauthenticatedActiveCustomMessagesResponse, LeaderStatusResponse, LeasesCountResponse, LeasesListResponse, LeasesLookUpResponse, LeasesReadLeaseRequest, LeasesReadLeaseResponse, LeasesRenewLease2Request, LeasesRenewLeaseRequest, LeasesRenewLeaseWithId2Request, LeasesRenewLeaseWithIdRequest, LeasesRevokeLease2Request, LeasesRevokeLeaseRequest, LeasesRevokeLeaseWithId2Request, LeasesRevokeLeaseWithIdRequest, LeasesRevokeLeaseWithPrefix2Request, LeasesRevokeLeaseWithPrefixRequest, LoggersUpdateVerbosityLevelForRequest, LoggersUpdateVerbosityLevelRequest, MfaValidateRequest, MountsEnableSecretsEngineRequest, MountsReadConfigurationResponse, MountsReadTuningInformationResponse, MountsTuneConfigurationParametersRequest, PluginsCatalogListPluginsResponse, PluginsCatalogListPluginsWithTypeResponse, PluginsCatalogPinsCreatePinnedVersionRequest, PluginsCatalogPinsListPinnedVersionsResponse, PluginsCatalogPinsReadPinnedVersionResponse, PluginsCatalogReadPluginConfigurationResponse, PluginsCatalogReadPluginConfigurationWithTypeResponse, PluginsCatalogRegisterPluginRequest, PluginsCatalogRegisterPluginWithTypeRequest, PluginsReloadBackendsRequest, PluginsReloadBackendsResponse, PluginsRuntimesCatalogListPluginsRuntimesResponse, PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse, PluginsRuntimesCatalogRegisterPluginRuntimeRequest, PoliciesGeneratePasswordFromPasswordPolicyResponse, PoliciesListAclPolicies2Response, PoliciesListAclPolicies3Response, PoliciesListAclPoliciesResponse, PoliciesReadAclPolicy2Response, PoliciesReadAclPolicyResponse, PoliciesReadPasswordPolicyResponse, PoliciesWriteAclPolicy2Request, PoliciesWriteAclPolicyRequest, PoliciesWritePasswordPolicyRequest, QueryTokenAccessorCapabilitiesRequest, QueryTokenCapabilitiesRequest, QueryTokenSelfCapabilitiesRequest, RateLimitQuotasConfigureRequest, RateLimitQuotasReadConfigurationResponse, RateLimitQuotasReadResponse, RateLimitQuotasWriteRequest, RawReadResponse, RawWriteRequest, ReadWrappingProperties2Response, ReadWrappingPropertiesRequest, ReadWrappingPropertiesResponse, RekeyAttemptInitializeRequest, RekeyAttemptInitializeResponse, RekeyAttemptReadProgressResponse, RekeyAttemptUpdateRequest, RekeyAttemptUpdateResponse, RekeyReadBackupKeyResponse, RekeyReadBackupRecoveryKeyResponse, RekeyVerificationCancelResponse, RekeyVerificationReadProgressResponse, RekeyVerificationUpdateRequest, RekeyVerificationUpdateResponse, ReloadPluginsRequest, ReloadPluginsResponse, RemountRequest, RemountResponse, RemountStatusResponse, RewrapRequest, RootTokenGenerationInitialize2Request, RootTokenGenerationInitialize2Response, RootTokenGenerationInitializeRequest, RootTokenGenerationInitializeResponse, RootTokenGenerationReadProgress2Response, RootTokenGenerationReadProgressResponse, RootTokenGenerationUpdateRequest, RootTokenGenerationUpdateResponse, SealStatusResponse, StandardListResponse, SubscriptionsCreateResponse, SubscriptionsListEventsSubscriptionsResponse, SubscriptionsReadEventsSubscriptionsResponse, SubscriptionsWriteEventsSubscriptionsRequest, SubscriptionsWriteEventsSubscriptionsResponse, SystemDeleteSyncConfigResponse, SystemDeleteSyncGithubAppsNameResponse, SystemListSyncAssociationsResponse, SystemListSyncDestinationsResponse, SystemListSyncDestinationsTypeResponse, SystemListSyncGithubAppsResponse, SystemReadConfigGroupPolicyApplicationResponse, SystemReadSyncAssociationsDestinationsResponse, SystemReadSyncAssociationsMountSecretNameResponse, SystemReadSyncConfigResponse, SystemReadSyncDestinationsAwsSmNameResponse, SystemReadSyncDestinationsAzureKvNameResponse, SystemReadSyncDestinationsGcpSmNameResponse, SystemReadSyncDestinationsGhNameResponse, SystemReadSyncDestinationsInMemNameResponse, SystemReadSyncDestinationsTypeNameAssociationsResponse, SystemReadSyncDestinationsVercelProjectNameResponse, SystemReadSyncGithubAppsNameResponse, SystemWriteConfigControlGroupRequest, SystemWriteConfigGroupPolicyApplicationRequest, SystemWriteControlGroupAuthorizeRequest, SystemWriteControlGroupRequestRequest, SystemWriteInternalCountersActivityWriteRequest, SystemWriteManagedKeysTypeNameRequest, SystemWriteManagedKeysTypeNameTestSignRequest, SystemWriteMfaMethodDuoNameRequest, SystemWriteMfaMethodOktaNameRequest, SystemWriteMfaMethodPingidNameRequest, SystemWriteMfaMethodTotpNameAdminDestroyRequest, SystemWriteMfaMethodTotpNameAdminGenerateRequest, SystemWriteMfaMethodTotpNameRequest, SystemWriteNamespacesApiLockUnlockPathRequest, SystemWriteNamespacesApiLockUnlockRequest, SystemWriteNamespacesPathRequest, SystemWritePoliciesEgpNameRequest, SystemWritePoliciesRgpNameRequest, SystemWriteQuotasLeaseCountNameRequest, SystemWriteReplicationDrPrimaryEnableRequest, SystemWriteReplicationDrPrimaryRevokeSecondaryRequest, SystemWriteReplicationDrPrimarySecondaryTokenRequest, SystemWriteReplicationDrSecondaryDisableRequest, SystemWriteReplicationDrSecondaryEnableRequest, SystemWriteReplicationDrSecondaryMerkleCheckRequest, SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest, SystemWriteReplicationDrSecondaryPromoteRequest, SystemWriteReplicationDrSecondaryRecoverRequest, SystemWriteReplicationDrSecondaryReindexRequest, SystemWriteReplicationDrSecondaryUpdatePrimaryRequest, SystemWriteReplicationForceCorruptionRequest, SystemWriteReplicationPerformancePrimaryEnableRequest, SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest, SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest, SystemWriteReplicationPerformancePrimarySecondaryTokenRequest, SystemWriteReplicationPerformanceSecondaryEnableRequest, SystemWriteReplicationPerformanceSecondaryPromoteRequest, SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest, SystemWriteReplicationPrimaryEnableRequest, SystemWriteReplicationPrimaryRevokeSecondaryRequest, SystemWriteReplicationPrimarySecondaryTokenRequest, SystemWriteReplicationReindexRequest, SystemWriteReplicationSecondaryEnableRequest, SystemWriteReplicationSecondaryPromoteRequest, SystemWriteReplicationSecondaryUpdatePrimaryRequest, SystemWriteStorageRaftSnapshotAutoConfigNameRequest, SystemWriteSyncDestinationsAwsSmNameRequest, SystemWriteSyncDestinationsAwsSmNameResponse, SystemWriteSyncDestinationsAzureKvNameRequest, SystemWriteSyncDestinationsAzureKvNameResponse, SystemWriteSyncDestinationsGcpSmNameRequest, SystemWriteSyncDestinationsGcpSmNameResponse, SystemWriteSyncDestinationsGhNameRequest, SystemWriteSyncDestinationsGhNameResponse, SystemWriteSyncDestinationsInMemNameRequest, SystemWriteSyncDestinationsInMemNameResponse, SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest, SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse, SystemWriteSyncDestinationsTypeNameAssociationsSetRequest, SystemWriteSyncDestinationsTypeNameAssociationsSetResponse, SystemWriteSyncDestinationsVercelProjectNameRequest, SystemWriteSyncDestinationsVercelProjectNameResponse, SystemWriteSyncGithubAppsNameRequest, SystemWriteSyncGithubAppsNameResponse, SystemWriteUtilizationRequest, SystemWriteUtilizationResponse, UiConfigDeleteCustomMessageResponse, UiConfigReadCustomMessageResponse, UiConfigUpdateCustomMessageRequest, UiConfigUpdateCustomMessageResponse, UiHeadersConfigureRequest, UiHeadersListResponse, UiHeadersReadConfigurationResponse, UnsealRequest, UnsealResponse, UnwrapRequest, VersionHistoryResponse, WellKnownListLabels2Response, WellKnownListLabelsResponse, WellKnownReadLabelResponse } from '../models/index'; +import type { AuditingCalculateHashRequest, AuditingCalculateHashResponse, AuditingEnableDeviceRequest, AuditingEnableRequestHeaderRequest, AuditingListRequestHeadersResponse, AuthEnableMethodRequest, AuthReadConfigurationResponse, AuthReadTuningInformationResponse, AuthTuneConfigurationParametersRequest, CollectHostInformationResponse, CorsConfigureRequest, CorsReadConfigurationResponse, CreateCustomMessageRequest, DecodeTokenRequest, EncryptionKeyConfigureRotationRequest, EncryptionKeyReadRotationConfigurationResponse, GenerateHashRequest, GenerateHashResponse, GenerateHashWithAlgorithmRequest, GenerateHashWithAlgorithmResponse, GenerateRandomRequest, GenerateRandomResponse, GenerateRandomWithBytesRequest, GenerateRandomWithBytesResponse, GenerateRandomWithSourceAndBytesRequest, GenerateRandomWithSourceAndBytesResponse, GenerateRandomWithSourceRequest, GenerateRandomWithSourceResponse, GenerateUtilizationReportResponse, HaStatusResponse, InitializeRequest, InternalClientActivityConfigureRequest, InternalCountEntitiesResponse, InternalCountTokensResponse, InternalGenerateOpenApiDocumentWithParametersRequest, InternalUiListEnabledFeatureFlagsResponse, InternalUiListEnabledVisibleMountsResponse, InternalUiListNamespacesResponse, InternalUiReadAuthenticatedActiveCustomMessagesResponse, InternalUiReadMountInformationResponse, InternalUiReadResultantAclResponse, InternalUiReadUnauthenticatedActiveCustomMessagesResponse, LeaderStatusResponse, LeasesCountResponse, LeasesListResponse, LeasesLookUpResponse, LeasesReadLeaseRequest, LeasesReadLeaseResponse, LeasesRenewLease2Request, LeasesRenewLeaseRequest, LeasesRenewLeaseWithId2Request, LeasesRenewLeaseWithIdRequest, LeasesRevokeLease2Request, LeasesRevokeLeaseRequest, LeasesRevokeLeaseWithId2Request, LeasesRevokeLeaseWithIdRequest, LeasesRevokeLeaseWithPrefix2Request, LeasesRevokeLeaseWithPrefixRequest, LoggersUpdateVerbosityLevelForRequest, LoggersUpdateVerbosityLevelRequest, MfaValidateRequest, MountsEnableSecretsEngineRequest, MountsReadConfigurationResponse, MountsReadTuningInformationResponse, MountsTuneConfigurationParametersRequest, PluginsCatalogListPluginsResponse, PluginsCatalogListPluginsWithTypeResponse, PluginsCatalogPinsCreatePinnedVersionRequest, PluginsCatalogPinsListPinnedVersionsResponse, PluginsCatalogPinsReadPinnedVersionResponse, PluginsCatalogReadPluginConfigurationResponse, PluginsCatalogReadPluginConfigurationWithTypeResponse, PluginsCatalogRegisterPluginRequest, PluginsCatalogRegisterPluginWithTypeRequest, PluginsReloadBackendsRequest, PluginsReloadBackendsResponse, PluginsRuntimesCatalogListPluginsRuntimesResponse, PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse, PluginsRuntimesCatalogRegisterPluginRuntimeRequest, PoliciesGeneratePasswordFromPasswordPolicyResponse, PoliciesListAclPolicies2Response, PoliciesListAclPolicies3Response, PoliciesListAclPoliciesResponse, PoliciesReadAclPolicy2Response, PoliciesReadAclPolicyResponse, PoliciesReadPasswordPolicyResponse, PoliciesWriteAclPolicy2Request, PoliciesWriteAclPolicyRequest, PoliciesWritePasswordPolicyRequest, QueryTokenAccessorCapabilitiesRequest, QueryTokenCapabilitiesRequest, QueryTokenSelfCapabilitiesRequest, RateLimitQuotasConfigureRequest, RateLimitQuotasReadConfigurationResponse, RateLimitQuotasReadResponse, RateLimitQuotasWriteRequest, RawReadResponse, RawWriteRequest, ReadWrappingProperties2Response, ReadWrappingPropertiesRequest, ReadWrappingPropertiesResponse, RekeyAttemptInitializeRequest, RekeyAttemptInitializeResponse, RekeyAttemptReadProgressResponse, RekeyAttemptUpdateRequest, RekeyAttemptUpdateResponse, RekeyReadBackupKeyResponse, RekeyReadBackupRecoveryKeyResponse, RekeyVerificationCancelResponse, RekeyVerificationReadProgressResponse, RekeyVerificationUpdateRequest, RekeyVerificationUpdateResponse, ReloadPluginsRequest, ReloadPluginsResponse, RemountRequest, RemountResponse, RemountStatusResponse, RewrapRequest, RootTokenGenerationInitialize2Request, RootTokenGenerationInitialize2Response, RootTokenGenerationInitializeRequest, RootTokenGenerationInitializeResponse, RootTokenGenerationReadProgress2Response, RootTokenGenerationReadProgressResponse, RootTokenGenerationUpdateRequest, RootTokenGenerationUpdateResponse, SealStatusResponse, StandardListResponse, SubscriptionsCreateResponse, SubscriptionsListEventsSubscriptionsResponse, SubscriptionsReadEventsSubscriptionsResponse, SubscriptionsWriteEventsSubscriptionsRequest, SubscriptionsWriteEventsSubscriptionsResponse, SystemDeleteSyncConfigResponse, SystemDeleteSyncGithubAppsNameResponse, SystemListSyncAssociationsResponse, SystemListSyncDestinationsResponse, SystemListSyncDestinationsTypeResponse, SystemListSyncGithubAppsResponse, SystemReadConfigGroupPolicyApplicationResponse, SystemReadSyncAssociationsDestinationsResponse, SystemReadSyncAssociationsMountSecretNameResponse, SystemReadSyncConfigResponse, SystemReadSyncDestinationsAwsSmNameResponse, SystemReadSyncDestinationsAzureKvNameResponse, SystemReadSyncDestinationsGcpSmNameResponse, SystemReadSyncDestinationsGhNameResponse, SystemReadSyncDestinationsInMemNameResponse, SystemReadSyncDestinationsTypeNameAssociationsResponse, SystemReadSyncDestinationsVercelProjectNameResponse, SystemReadSyncGithubAppsNameResponse, SystemWriteConfigControlGroupRequest, SystemWriteConfigGroupPolicyApplicationRequest, SystemWriteControlGroupAuthorizeRequest, SystemWriteControlGroupRequestRequest, SystemWriteInternalCountersActivityWriteRequest, SystemWriteManagedKeysTypeNameRequest, SystemWriteManagedKeysTypeNameTestSignRequest, SystemWriteMfaMethodDuoNameRequest, SystemWriteMfaMethodOktaNameRequest, SystemWriteMfaMethodPingidNameRequest, SystemWriteMfaMethodTotpNameAdminDestroyRequest, SystemWriteMfaMethodTotpNameAdminGenerateRequest, SystemWriteMfaMethodTotpNameRequest, SystemWriteNamespacesApiLockUnlockPathRequest, SystemWriteNamespacesApiLockUnlockRequest, SystemWriteNamespacesPathRequest, SystemWritePoliciesEgpNameRequest, SystemWritePoliciesRgpNameRequest, SystemWriteQuotasLeaseCountNameRequest, SystemWriteReplicationDrPrimaryEnableRequest, SystemWriteReplicationDrPrimaryRevokeSecondaryRequest, SystemWriteReplicationDrPrimarySecondaryTokenRequest, SystemWriteReplicationDrSecondaryDisableRequest, SystemWriteReplicationDrSecondaryEnableRequest, SystemWriteReplicationDrSecondaryMerkleCheckRequest, SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest, SystemWriteReplicationDrSecondaryPromoteRequest, SystemWriteReplicationDrSecondaryRecoverRequest, SystemWriteReplicationDrSecondaryReindexRequest, SystemWriteReplicationDrSecondaryUpdatePrimaryRequest, SystemWriteReplicationForceCorruptionRequest, SystemWriteReplicationPerformancePrimaryEnableRequest, SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest, SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest, SystemWriteReplicationPerformancePrimarySecondaryTokenRequest, SystemWriteReplicationPerformanceSecondaryEnableRequest, SystemWriteReplicationPerformanceSecondaryPromoteRequest, SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest, SystemWriteReplicationPrimaryEnableRequest, SystemWriteReplicationPrimaryRevokeSecondaryRequest, SystemWriteReplicationPrimarySecondaryTokenRequest, SystemWriteReplicationReindexRequest, SystemWriteReplicationSecondaryEnableRequest, SystemWriteReplicationSecondaryPromoteRequest, SystemWriteReplicationSecondaryUpdatePrimaryRequest, SystemWriteStorageRaftSnapshotAutoConfigNameRequest, SystemWriteSyncDestinationsAwsSmNameRequest, SystemWriteSyncDestinationsAwsSmNameResponse, SystemWriteSyncDestinationsAzureKvNameRequest, SystemWriteSyncDestinationsAzureKvNameResponse, SystemWriteSyncDestinationsGcpSmNameRequest, SystemWriteSyncDestinationsGcpSmNameResponse, SystemWriteSyncDestinationsGhNameRequest, SystemWriteSyncDestinationsGhNameResponse, SystemWriteSyncDestinationsInMemNameRequest, SystemWriteSyncDestinationsInMemNameResponse, SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest, SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse, SystemWriteSyncDestinationsTypeNameAssociationsSetRequest, SystemWriteSyncDestinationsTypeNameAssociationsSetResponse, SystemWriteSyncDestinationsVercelProjectNameRequest, SystemWriteSyncDestinationsVercelProjectNameResponse, SystemWriteSyncGithubAppsNameRequest, SystemWriteSyncGithubAppsNameResponse, SystemWriteUtilizationRequest, SystemWriteUtilizationResponse, UiConfigListCustomMessagesResponse, UiConfigReadCustomMessageResponse, UiConfigUpdateCustomMessageRequest, UiConfigUpdateCustomMessageResponse, UiHeadersConfigureRequest, UiHeadersListResponse, UiHeadersReadConfigurationResponse, UnsealRequest, UnsealResponse, UnwrapRequest, VersionHistoryResponse, WellKnownListLabels2Response, WellKnownListLabelsResponse, WellKnownReadLabelResponse } from '../models/index'; export interface SystemApiAuditingCalculateHashOperationRequest { path: string; auditingCalculateHashRequest: AuditingCalculateHashRequest; @@ -763,6 +763,9 @@ export interface SystemApiUiConfigDeleteCustomMessageRequest { } export interface SystemApiUiConfigListCustomMessagesRequest { list: UiConfigListCustomMessagesListEnum; + active?: boolean; + authenticated?: boolean; + type?: string; } export interface SystemApiUiConfigReadCustomMessageRequest { id: string; @@ -1068,6 +1071,12 @@ export declare class SystemApi extends runtime.BaseAPI { /** */ generateRandomWithSourceAndBytes(source: string, urlbytes: string, generateRandomWithSourceAndBytesRequest: GenerateRandomWithSourceAndBytesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + */ + generateUtilizationReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + */ + generateUtilizationReport(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Check the HA status of a Vault cluster */ @@ -2716,12 +2725,6 @@ export declare class SystemApi extends runtime.BaseAPI { /** */ systemReadSyncGithubAppsName(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - */ - systemReadUtilizationReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - */ - systemReadUtilizationReport(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Configure control group global settings. */ @@ -3205,19 +3208,19 @@ export declare class SystemApi extends runtime.BaseAPI { /** * Delete custom message */ - uiConfigDeleteCustomMessageRaw(requestParameters: SystemApiUiConfigDeleteCustomMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + uiConfigDeleteCustomMessageRaw(requestParameters: SystemApiUiConfigDeleteCustomMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete custom message */ - uiConfigDeleteCustomMessage(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + uiConfigDeleteCustomMessage(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Lists custom messages */ - uiConfigListCustomMessagesRaw(requestParameters: SystemApiUiConfigListCustomMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + uiConfigListCustomMessagesRaw(requestParameters: SystemApiUiConfigListCustomMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Lists custom messages */ - uiConfigListCustomMessages(list: UiConfigListCustomMessagesListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + uiConfigListCustomMessages(list: UiConfigListCustomMessagesListEnum, active?: boolean, authenticated?: boolean, type?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Read custom message */ diff --git a/ui/api-client/dist/apis/SystemApi.js b/ui/api-client/dist/apis/SystemApi.js index 715bcbc023..da959b84ef 100644 --- a/ui/api-client/dist/apis/SystemApi.js +++ b/ui/api-client/dist/apis/SystemApi.js @@ -990,6 +990,29 @@ class SystemApi extends runtime.BaseAPI { return yield response.value(); }); } + /** + */ + generateUtilizationReportRaw(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + const response = yield this.request({ + path: `/sys/utilization-report`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GenerateUtilizationReportResponseFromJSON)(jsonValue)); + }); + } + /** + */ + generateUtilizationReport(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.generateUtilizationReportRaw(initOverrides); + return yield response.value(); + }); + } /** * Check the HA status of a Vault cluster */ @@ -7040,29 +7063,6 @@ class SystemApi extends runtime.BaseAPI { return yield response.value(); }); } - /** - */ - systemReadUtilizationReportRaw(initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const queryParameters = {}; - const headerParameters = {}; - const response = yield this.request({ - path: `/sys/utilization-report`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.VoidApiResponse(response); - }); - } - /** - */ - systemReadUtilizationReport(initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.systemReadUtilizationReportRaw(initOverrides); - return yield response.value(); - }); - } /** * Configure control group global settings. */ @@ -9153,7 +9153,7 @@ class SystemApi extends runtime.BaseAPI { headers: headerParameters, query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UiConfigDeleteCustomMessageResponseFromJSON)(jsonValue)); + return new runtime.VoidApiResponse(response); }); } /** @@ -9174,9 +9174,18 @@ class SystemApi extends runtime.BaseAPI { throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling uiConfigListCustomMessages().'); } const queryParameters = {}; + if (requestParameters['active'] != null) { + queryParameters['active'] = requestParameters['active']; + } + if (requestParameters['authenticated'] != null) { + queryParameters['authenticated'] = requestParameters['authenticated']; + } if (requestParameters['list'] != null) { queryParameters['list'] = requestParameters['list']; } + if (requestParameters['type'] != null) { + queryParameters['type'] = requestParameters['type']; + } const headerParameters = {}; const response = yield this.request({ path: `/sys/config/ui/custom-messages/`, @@ -9184,15 +9193,15 @@ class SystemApi extends runtime.BaseAPI { headers: headerParameters, query: queryParameters, }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UiConfigListCustomMessagesResponseFromJSON)(jsonValue)); }); } /** * Lists custom messages */ - uiConfigListCustomMessages(list, initOverrides) { + uiConfigListCustomMessages(list, active, authenticated, type, initOverrides) { return __awaiter(this, void 0, void 0, function* () { - const response = yield this.uiConfigListCustomMessagesRaw({ list: list }, initOverrides); + const response = yield this.uiConfigListCustomMessagesRaw({ list: list, active: active, authenticated: authenticated, type: type }, initOverrides); return yield response.value(); }); } diff --git a/ui/api-client/dist/esm/apis/SystemApi.d.ts b/ui/api-client/dist/esm/apis/SystemApi.d.ts index 87cfef39fe..21c5d559ea 100644 --- a/ui/api-client/dist/esm/apis/SystemApi.d.ts +++ b/ui/api-client/dist/esm/apis/SystemApi.d.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { AuditingCalculateHashRequest, AuditingCalculateHashResponse, AuditingEnableDeviceRequest, AuditingEnableRequestHeaderRequest, AuditingListRequestHeadersResponse, AuthEnableMethodRequest, AuthReadConfigurationResponse, AuthReadTuningInformationResponse, AuthTuneConfigurationParametersRequest, CollectHostInformationResponse, CorsConfigureRequest, CorsReadConfigurationResponse, CreateCustomMessageRequest, DecodeTokenRequest, EncryptionKeyConfigureRotationRequest, EncryptionKeyReadRotationConfigurationResponse, GenerateHashRequest, GenerateHashResponse, GenerateHashWithAlgorithmRequest, GenerateHashWithAlgorithmResponse, GenerateRandomRequest, GenerateRandomResponse, GenerateRandomWithBytesRequest, GenerateRandomWithBytesResponse, GenerateRandomWithSourceAndBytesRequest, GenerateRandomWithSourceAndBytesResponse, GenerateRandomWithSourceRequest, GenerateRandomWithSourceResponse, HaStatusResponse, InitializeRequest, InternalClientActivityConfigureRequest, InternalCountEntitiesResponse, InternalCountTokensResponse, InternalGenerateOpenApiDocumentWithParametersRequest, InternalUiListEnabledFeatureFlagsResponse, InternalUiListEnabledVisibleMountsResponse, InternalUiListNamespacesResponse, InternalUiReadAuthenticatedActiveCustomMessagesResponse, InternalUiReadMountInformationResponse, InternalUiReadResultantAclResponse, InternalUiReadUnauthenticatedActiveCustomMessagesResponse, LeaderStatusResponse, LeasesCountResponse, LeasesListResponse, LeasesLookUpResponse, LeasesReadLeaseRequest, LeasesReadLeaseResponse, LeasesRenewLease2Request, LeasesRenewLeaseRequest, LeasesRenewLeaseWithId2Request, LeasesRenewLeaseWithIdRequest, LeasesRevokeLease2Request, LeasesRevokeLeaseRequest, LeasesRevokeLeaseWithId2Request, LeasesRevokeLeaseWithIdRequest, LeasesRevokeLeaseWithPrefix2Request, LeasesRevokeLeaseWithPrefixRequest, LoggersUpdateVerbosityLevelForRequest, LoggersUpdateVerbosityLevelRequest, MfaValidateRequest, MountsEnableSecretsEngineRequest, MountsReadConfigurationResponse, MountsReadTuningInformationResponse, MountsTuneConfigurationParametersRequest, PluginsCatalogListPluginsResponse, PluginsCatalogListPluginsWithTypeResponse, PluginsCatalogPinsCreatePinnedVersionRequest, PluginsCatalogPinsListPinnedVersionsResponse, PluginsCatalogPinsReadPinnedVersionResponse, PluginsCatalogReadPluginConfigurationResponse, PluginsCatalogReadPluginConfigurationWithTypeResponse, PluginsCatalogRegisterPluginRequest, PluginsCatalogRegisterPluginWithTypeRequest, PluginsReloadBackendsRequest, PluginsReloadBackendsResponse, PluginsRuntimesCatalogListPluginsRuntimesResponse, PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse, PluginsRuntimesCatalogRegisterPluginRuntimeRequest, PoliciesGeneratePasswordFromPasswordPolicyResponse, PoliciesListAclPolicies2Response, PoliciesListAclPolicies3Response, PoliciesListAclPoliciesResponse, PoliciesReadAclPolicy2Response, PoliciesReadAclPolicyResponse, PoliciesReadPasswordPolicyResponse, PoliciesWriteAclPolicy2Request, PoliciesWriteAclPolicyRequest, PoliciesWritePasswordPolicyRequest, QueryTokenAccessorCapabilitiesRequest, QueryTokenCapabilitiesRequest, QueryTokenSelfCapabilitiesRequest, RateLimitQuotasConfigureRequest, RateLimitQuotasReadConfigurationResponse, RateLimitQuotasReadResponse, RateLimitQuotasWriteRequest, RawReadResponse, RawWriteRequest, ReadWrappingProperties2Response, ReadWrappingPropertiesRequest, ReadWrappingPropertiesResponse, RekeyAttemptInitializeRequest, RekeyAttemptInitializeResponse, RekeyAttemptReadProgressResponse, RekeyAttemptUpdateRequest, RekeyAttemptUpdateResponse, RekeyReadBackupKeyResponse, RekeyReadBackupRecoveryKeyResponse, RekeyVerificationCancelResponse, RekeyVerificationReadProgressResponse, RekeyVerificationUpdateRequest, RekeyVerificationUpdateResponse, ReloadPluginsRequest, ReloadPluginsResponse, RemountRequest, RemountResponse, RemountStatusResponse, RewrapRequest, RootTokenGenerationInitialize2Request, RootTokenGenerationInitialize2Response, RootTokenGenerationInitializeRequest, RootTokenGenerationInitializeResponse, RootTokenGenerationReadProgress2Response, RootTokenGenerationReadProgressResponse, RootTokenGenerationUpdateRequest, RootTokenGenerationUpdateResponse, SealStatusResponse, StandardListResponse, SubscriptionsCreateResponse, SubscriptionsListEventsSubscriptionsResponse, SubscriptionsReadEventsSubscriptionsResponse, SubscriptionsWriteEventsSubscriptionsRequest, SubscriptionsWriteEventsSubscriptionsResponse, SystemDeleteSyncConfigResponse, SystemDeleteSyncGithubAppsNameResponse, SystemListSyncAssociationsResponse, SystemListSyncDestinationsResponse, SystemListSyncDestinationsTypeResponse, SystemListSyncGithubAppsResponse, SystemReadConfigGroupPolicyApplicationResponse, SystemReadSyncAssociationsDestinationsResponse, SystemReadSyncAssociationsMountSecretNameResponse, SystemReadSyncConfigResponse, SystemReadSyncDestinationsAwsSmNameResponse, SystemReadSyncDestinationsAzureKvNameResponse, SystemReadSyncDestinationsGcpSmNameResponse, SystemReadSyncDestinationsGhNameResponse, SystemReadSyncDestinationsInMemNameResponse, SystemReadSyncDestinationsTypeNameAssociationsResponse, SystemReadSyncDestinationsVercelProjectNameResponse, SystemReadSyncGithubAppsNameResponse, SystemWriteConfigControlGroupRequest, SystemWriteConfigGroupPolicyApplicationRequest, SystemWriteControlGroupAuthorizeRequest, SystemWriteControlGroupRequestRequest, SystemWriteInternalCountersActivityWriteRequest, SystemWriteManagedKeysTypeNameRequest, SystemWriteManagedKeysTypeNameTestSignRequest, SystemWriteMfaMethodDuoNameRequest, SystemWriteMfaMethodOktaNameRequest, SystemWriteMfaMethodPingidNameRequest, SystemWriteMfaMethodTotpNameAdminDestroyRequest, SystemWriteMfaMethodTotpNameAdminGenerateRequest, SystemWriteMfaMethodTotpNameRequest, SystemWriteNamespacesApiLockUnlockPathRequest, SystemWriteNamespacesApiLockUnlockRequest, SystemWriteNamespacesPathRequest, SystemWritePoliciesEgpNameRequest, SystemWritePoliciesRgpNameRequest, SystemWriteQuotasLeaseCountNameRequest, SystemWriteReplicationDrPrimaryEnableRequest, SystemWriteReplicationDrPrimaryRevokeSecondaryRequest, SystemWriteReplicationDrPrimarySecondaryTokenRequest, SystemWriteReplicationDrSecondaryDisableRequest, SystemWriteReplicationDrSecondaryEnableRequest, SystemWriteReplicationDrSecondaryMerkleCheckRequest, SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest, SystemWriteReplicationDrSecondaryPromoteRequest, SystemWriteReplicationDrSecondaryRecoverRequest, SystemWriteReplicationDrSecondaryReindexRequest, SystemWriteReplicationDrSecondaryUpdatePrimaryRequest, SystemWriteReplicationForceCorruptionRequest, SystemWriteReplicationPerformancePrimaryEnableRequest, SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest, SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest, SystemWriteReplicationPerformancePrimarySecondaryTokenRequest, SystemWriteReplicationPerformanceSecondaryEnableRequest, SystemWriteReplicationPerformanceSecondaryPromoteRequest, SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest, SystemWriteReplicationPrimaryEnableRequest, SystemWriteReplicationPrimaryRevokeSecondaryRequest, SystemWriteReplicationPrimarySecondaryTokenRequest, SystemWriteReplicationReindexRequest, SystemWriteReplicationSecondaryEnableRequest, SystemWriteReplicationSecondaryPromoteRequest, SystemWriteReplicationSecondaryUpdatePrimaryRequest, SystemWriteStorageRaftSnapshotAutoConfigNameRequest, SystemWriteSyncDestinationsAwsSmNameRequest, SystemWriteSyncDestinationsAwsSmNameResponse, SystemWriteSyncDestinationsAzureKvNameRequest, SystemWriteSyncDestinationsAzureKvNameResponse, SystemWriteSyncDestinationsGcpSmNameRequest, SystemWriteSyncDestinationsGcpSmNameResponse, SystemWriteSyncDestinationsGhNameRequest, SystemWriteSyncDestinationsGhNameResponse, SystemWriteSyncDestinationsInMemNameRequest, SystemWriteSyncDestinationsInMemNameResponse, SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest, SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse, SystemWriteSyncDestinationsTypeNameAssociationsSetRequest, SystemWriteSyncDestinationsTypeNameAssociationsSetResponse, SystemWriteSyncDestinationsVercelProjectNameRequest, SystemWriteSyncDestinationsVercelProjectNameResponse, SystemWriteSyncGithubAppsNameRequest, SystemWriteSyncGithubAppsNameResponse, SystemWriteUtilizationRequest, SystemWriteUtilizationResponse, UiConfigDeleteCustomMessageResponse, UiConfigReadCustomMessageResponse, UiConfigUpdateCustomMessageRequest, UiConfigUpdateCustomMessageResponse, UiHeadersConfigureRequest, UiHeadersListResponse, UiHeadersReadConfigurationResponse, UnsealRequest, UnsealResponse, UnwrapRequest, VersionHistoryResponse, WellKnownListLabels2Response, WellKnownListLabelsResponse, WellKnownReadLabelResponse } from '../models/index'; +import type { AuditingCalculateHashRequest, AuditingCalculateHashResponse, AuditingEnableDeviceRequest, AuditingEnableRequestHeaderRequest, AuditingListRequestHeadersResponse, AuthEnableMethodRequest, AuthReadConfigurationResponse, AuthReadTuningInformationResponse, AuthTuneConfigurationParametersRequest, CollectHostInformationResponse, CorsConfigureRequest, CorsReadConfigurationResponse, CreateCustomMessageRequest, DecodeTokenRequest, EncryptionKeyConfigureRotationRequest, EncryptionKeyReadRotationConfigurationResponse, GenerateHashRequest, GenerateHashResponse, GenerateHashWithAlgorithmRequest, GenerateHashWithAlgorithmResponse, GenerateRandomRequest, GenerateRandomResponse, GenerateRandomWithBytesRequest, GenerateRandomWithBytesResponse, GenerateRandomWithSourceAndBytesRequest, GenerateRandomWithSourceAndBytesResponse, GenerateRandomWithSourceRequest, GenerateRandomWithSourceResponse, GenerateUtilizationReportResponse, HaStatusResponse, InitializeRequest, InternalClientActivityConfigureRequest, InternalCountEntitiesResponse, InternalCountTokensResponse, InternalGenerateOpenApiDocumentWithParametersRequest, InternalUiListEnabledFeatureFlagsResponse, InternalUiListEnabledVisibleMountsResponse, InternalUiListNamespacesResponse, InternalUiReadAuthenticatedActiveCustomMessagesResponse, InternalUiReadMountInformationResponse, InternalUiReadResultantAclResponse, InternalUiReadUnauthenticatedActiveCustomMessagesResponse, LeaderStatusResponse, LeasesCountResponse, LeasesListResponse, LeasesLookUpResponse, LeasesReadLeaseRequest, LeasesReadLeaseResponse, LeasesRenewLease2Request, LeasesRenewLeaseRequest, LeasesRenewLeaseWithId2Request, LeasesRenewLeaseWithIdRequest, LeasesRevokeLease2Request, LeasesRevokeLeaseRequest, LeasesRevokeLeaseWithId2Request, LeasesRevokeLeaseWithIdRequest, LeasesRevokeLeaseWithPrefix2Request, LeasesRevokeLeaseWithPrefixRequest, LoggersUpdateVerbosityLevelForRequest, LoggersUpdateVerbosityLevelRequest, MfaValidateRequest, MountsEnableSecretsEngineRequest, MountsReadConfigurationResponse, MountsReadTuningInformationResponse, MountsTuneConfigurationParametersRequest, PluginsCatalogListPluginsResponse, PluginsCatalogListPluginsWithTypeResponse, PluginsCatalogPinsCreatePinnedVersionRequest, PluginsCatalogPinsListPinnedVersionsResponse, PluginsCatalogPinsReadPinnedVersionResponse, PluginsCatalogReadPluginConfigurationResponse, PluginsCatalogReadPluginConfigurationWithTypeResponse, PluginsCatalogRegisterPluginRequest, PluginsCatalogRegisterPluginWithTypeRequest, PluginsReloadBackendsRequest, PluginsReloadBackendsResponse, PluginsRuntimesCatalogListPluginsRuntimesResponse, PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse, PluginsRuntimesCatalogRegisterPluginRuntimeRequest, PoliciesGeneratePasswordFromPasswordPolicyResponse, PoliciesListAclPolicies2Response, PoliciesListAclPolicies3Response, PoliciesListAclPoliciesResponse, PoliciesReadAclPolicy2Response, PoliciesReadAclPolicyResponse, PoliciesReadPasswordPolicyResponse, PoliciesWriteAclPolicy2Request, PoliciesWriteAclPolicyRequest, PoliciesWritePasswordPolicyRequest, QueryTokenAccessorCapabilitiesRequest, QueryTokenCapabilitiesRequest, QueryTokenSelfCapabilitiesRequest, RateLimitQuotasConfigureRequest, RateLimitQuotasReadConfigurationResponse, RateLimitQuotasReadResponse, RateLimitQuotasWriteRequest, RawReadResponse, RawWriteRequest, ReadWrappingProperties2Response, ReadWrappingPropertiesRequest, ReadWrappingPropertiesResponse, RekeyAttemptInitializeRequest, RekeyAttemptInitializeResponse, RekeyAttemptReadProgressResponse, RekeyAttemptUpdateRequest, RekeyAttemptUpdateResponse, RekeyReadBackupKeyResponse, RekeyReadBackupRecoveryKeyResponse, RekeyVerificationCancelResponse, RekeyVerificationReadProgressResponse, RekeyVerificationUpdateRequest, RekeyVerificationUpdateResponse, ReloadPluginsRequest, ReloadPluginsResponse, RemountRequest, RemountResponse, RemountStatusResponse, RewrapRequest, RootTokenGenerationInitialize2Request, RootTokenGenerationInitialize2Response, RootTokenGenerationInitializeRequest, RootTokenGenerationInitializeResponse, RootTokenGenerationReadProgress2Response, RootTokenGenerationReadProgressResponse, RootTokenGenerationUpdateRequest, RootTokenGenerationUpdateResponse, SealStatusResponse, StandardListResponse, SubscriptionsCreateResponse, SubscriptionsListEventsSubscriptionsResponse, SubscriptionsReadEventsSubscriptionsResponse, SubscriptionsWriteEventsSubscriptionsRequest, SubscriptionsWriteEventsSubscriptionsResponse, SystemDeleteSyncConfigResponse, SystemDeleteSyncGithubAppsNameResponse, SystemListSyncAssociationsResponse, SystemListSyncDestinationsResponse, SystemListSyncDestinationsTypeResponse, SystemListSyncGithubAppsResponse, SystemReadConfigGroupPolicyApplicationResponse, SystemReadSyncAssociationsDestinationsResponse, SystemReadSyncAssociationsMountSecretNameResponse, SystemReadSyncConfigResponse, SystemReadSyncDestinationsAwsSmNameResponse, SystemReadSyncDestinationsAzureKvNameResponse, SystemReadSyncDestinationsGcpSmNameResponse, SystemReadSyncDestinationsGhNameResponse, SystemReadSyncDestinationsInMemNameResponse, SystemReadSyncDestinationsTypeNameAssociationsResponse, SystemReadSyncDestinationsVercelProjectNameResponse, SystemReadSyncGithubAppsNameResponse, SystemWriteConfigControlGroupRequest, SystemWriteConfigGroupPolicyApplicationRequest, SystemWriteControlGroupAuthorizeRequest, SystemWriteControlGroupRequestRequest, SystemWriteInternalCountersActivityWriteRequest, SystemWriteManagedKeysTypeNameRequest, SystemWriteManagedKeysTypeNameTestSignRequest, SystemWriteMfaMethodDuoNameRequest, SystemWriteMfaMethodOktaNameRequest, SystemWriteMfaMethodPingidNameRequest, SystemWriteMfaMethodTotpNameAdminDestroyRequest, SystemWriteMfaMethodTotpNameAdminGenerateRequest, SystemWriteMfaMethodTotpNameRequest, SystemWriteNamespacesApiLockUnlockPathRequest, SystemWriteNamespacesApiLockUnlockRequest, SystemWriteNamespacesPathRequest, SystemWritePoliciesEgpNameRequest, SystemWritePoliciesRgpNameRequest, SystemWriteQuotasLeaseCountNameRequest, SystemWriteReplicationDrPrimaryEnableRequest, SystemWriteReplicationDrPrimaryRevokeSecondaryRequest, SystemWriteReplicationDrPrimarySecondaryTokenRequest, SystemWriteReplicationDrSecondaryDisableRequest, SystemWriteReplicationDrSecondaryEnableRequest, SystemWriteReplicationDrSecondaryMerkleCheckRequest, SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest, SystemWriteReplicationDrSecondaryPromoteRequest, SystemWriteReplicationDrSecondaryRecoverRequest, SystemWriteReplicationDrSecondaryReindexRequest, SystemWriteReplicationDrSecondaryUpdatePrimaryRequest, SystemWriteReplicationForceCorruptionRequest, SystemWriteReplicationPerformancePrimaryEnableRequest, SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest, SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest, SystemWriteReplicationPerformancePrimarySecondaryTokenRequest, SystemWriteReplicationPerformanceSecondaryEnableRequest, SystemWriteReplicationPerformanceSecondaryPromoteRequest, SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest, SystemWriteReplicationPrimaryEnableRequest, SystemWriteReplicationPrimaryRevokeSecondaryRequest, SystemWriteReplicationPrimarySecondaryTokenRequest, SystemWriteReplicationReindexRequest, SystemWriteReplicationSecondaryEnableRequest, SystemWriteReplicationSecondaryPromoteRequest, SystemWriteReplicationSecondaryUpdatePrimaryRequest, SystemWriteStorageRaftSnapshotAutoConfigNameRequest, SystemWriteSyncDestinationsAwsSmNameRequest, SystemWriteSyncDestinationsAwsSmNameResponse, SystemWriteSyncDestinationsAzureKvNameRequest, SystemWriteSyncDestinationsAzureKvNameResponse, SystemWriteSyncDestinationsGcpSmNameRequest, SystemWriteSyncDestinationsGcpSmNameResponse, SystemWriteSyncDestinationsGhNameRequest, SystemWriteSyncDestinationsGhNameResponse, SystemWriteSyncDestinationsInMemNameRequest, SystemWriteSyncDestinationsInMemNameResponse, SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest, SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse, SystemWriteSyncDestinationsTypeNameAssociationsSetRequest, SystemWriteSyncDestinationsTypeNameAssociationsSetResponse, SystemWriteSyncDestinationsVercelProjectNameRequest, SystemWriteSyncDestinationsVercelProjectNameResponse, SystemWriteSyncGithubAppsNameRequest, SystemWriteSyncGithubAppsNameResponse, SystemWriteUtilizationRequest, SystemWriteUtilizationResponse, UiConfigListCustomMessagesResponse, UiConfigReadCustomMessageResponse, UiConfigUpdateCustomMessageRequest, UiConfigUpdateCustomMessageResponse, UiHeadersConfigureRequest, UiHeadersListResponse, UiHeadersReadConfigurationResponse, UnsealRequest, UnsealResponse, UnwrapRequest, VersionHistoryResponse, WellKnownListLabels2Response, WellKnownListLabelsResponse, WellKnownReadLabelResponse } from '../models/index'; export interface SystemApiAuditingCalculateHashOperationRequest { path: string; auditingCalculateHashRequest: AuditingCalculateHashRequest; @@ -763,6 +763,9 @@ export interface SystemApiUiConfigDeleteCustomMessageRequest { } export interface SystemApiUiConfigListCustomMessagesRequest { list: UiConfigListCustomMessagesListEnum; + active?: boolean; + authenticated?: boolean; + type?: string; } export interface SystemApiUiConfigReadCustomMessageRequest { id: string; @@ -1068,6 +1071,12 @@ export declare class SystemApi extends runtime.BaseAPI { /** */ generateRandomWithSourceAndBytes(source: string, urlbytes: string, generateRandomWithSourceAndBytesRequest: GenerateRandomWithSourceAndBytesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + */ + generateUtilizationReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + */ + generateUtilizationReport(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Check the HA status of a Vault cluster */ @@ -2716,12 +2725,6 @@ export declare class SystemApi extends runtime.BaseAPI { /** */ systemReadSyncGithubAppsName(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - */ - systemReadUtilizationReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - */ - systemReadUtilizationReport(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Configure control group global settings. */ @@ -3205,19 +3208,19 @@ export declare class SystemApi extends runtime.BaseAPI { /** * Delete custom message */ - uiConfigDeleteCustomMessageRaw(requestParameters: SystemApiUiConfigDeleteCustomMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + uiConfigDeleteCustomMessageRaw(requestParameters: SystemApiUiConfigDeleteCustomMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete custom message */ - uiConfigDeleteCustomMessage(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + uiConfigDeleteCustomMessage(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Lists custom messages */ - uiConfigListCustomMessagesRaw(requestParameters: SystemApiUiConfigListCustomMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + uiConfigListCustomMessagesRaw(requestParameters: SystemApiUiConfigListCustomMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Lists custom messages */ - uiConfigListCustomMessages(list: UiConfigListCustomMessagesListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + uiConfigListCustomMessages(list: UiConfigListCustomMessagesListEnum, active?: boolean, authenticated?: boolean, type?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Read custom message */ diff --git a/ui/api-client/dist/esm/apis/SystemApi.js b/ui/api-client/dist/esm/apis/SystemApi.js index ee080ca729..c27731d449 100644 --- a/ui/api-client/dist/esm/apis/SystemApi.js +++ b/ui/api-client/dist/esm/apis/SystemApi.js @@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; import * as runtime from '../runtime'; -import { AuditingCalculateHashRequestToJSON, AuditingCalculateHashResponseFromJSON, AuditingEnableDeviceRequestToJSON, AuditingEnableRequestHeaderRequestToJSON, AuditingListRequestHeadersResponseFromJSON, AuthEnableMethodRequestToJSON, AuthReadConfigurationResponseFromJSON, AuthReadTuningInformationResponseFromJSON, AuthTuneConfigurationParametersRequestToJSON, CollectHostInformationResponseFromJSON, CorsConfigureRequestToJSON, CorsReadConfigurationResponseFromJSON, CreateCustomMessageRequestToJSON, DecodeTokenRequestToJSON, EncryptionKeyConfigureRotationRequestToJSON, EncryptionKeyReadRotationConfigurationResponseFromJSON, GenerateHashRequestToJSON, GenerateHashResponseFromJSON, GenerateHashWithAlgorithmRequestToJSON, GenerateHashWithAlgorithmResponseFromJSON, GenerateRandomRequestToJSON, GenerateRandomResponseFromJSON, GenerateRandomWithBytesRequestToJSON, GenerateRandomWithBytesResponseFromJSON, GenerateRandomWithSourceAndBytesRequestToJSON, GenerateRandomWithSourceAndBytesResponseFromJSON, GenerateRandomWithSourceRequestToJSON, GenerateRandomWithSourceResponseFromJSON, HaStatusResponseFromJSON, InitializeRequestToJSON, InternalClientActivityConfigureRequestToJSON, InternalCountEntitiesResponseFromJSON, InternalCountTokensResponseFromJSON, InternalGenerateOpenApiDocumentWithParametersRequestToJSON, InternalUiListEnabledFeatureFlagsResponseFromJSON, InternalUiListEnabledVisibleMountsResponseFromJSON, InternalUiListNamespacesResponseFromJSON, InternalUiReadAuthenticatedActiveCustomMessagesResponseFromJSON, InternalUiReadMountInformationResponseFromJSON, InternalUiReadResultantAclResponseFromJSON, InternalUiReadUnauthenticatedActiveCustomMessagesResponseFromJSON, LeaderStatusResponseFromJSON, LeasesCountResponseFromJSON, LeasesListResponseFromJSON, LeasesLookUpResponseFromJSON, LeasesReadLeaseRequestToJSON, LeasesReadLeaseResponseFromJSON, LeasesRenewLease2RequestToJSON, LeasesRenewLeaseRequestToJSON, LeasesRenewLeaseWithId2RequestToJSON, LeasesRenewLeaseWithIdRequestToJSON, LeasesRevokeLease2RequestToJSON, LeasesRevokeLeaseRequestToJSON, LeasesRevokeLeaseWithId2RequestToJSON, LeasesRevokeLeaseWithIdRequestToJSON, LeasesRevokeLeaseWithPrefix2RequestToJSON, LeasesRevokeLeaseWithPrefixRequestToJSON, LoggersUpdateVerbosityLevelForRequestToJSON, LoggersUpdateVerbosityLevelRequestToJSON, MfaValidateRequestToJSON, MountsEnableSecretsEngineRequestToJSON, MountsReadConfigurationResponseFromJSON, MountsReadTuningInformationResponseFromJSON, MountsTuneConfigurationParametersRequestToJSON, PluginsCatalogListPluginsResponseFromJSON, PluginsCatalogListPluginsWithTypeResponseFromJSON, PluginsCatalogPinsCreatePinnedVersionRequestToJSON, PluginsCatalogPinsListPinnedVersionsResponseFromJSON, PluginsCatalogPinsReadPinnedVersionResponseFromJSON, PluginsCatalogReadPluginConfigurationResponseFromJSON, PluginsCatalogReadPluginConfigurationWithTypeResponseFromJSON, PluginsCatalogRegisterPluginRequestToJSON, PluginsCatalogRegisterPluginWithTypeRequestToJSON, PluginsReloadBackendsRequestToJSON, PluginsReloadBackendsResponseFromJSON, PluginsRuntimesCatalogListPluginsRuntimesResponseFromJSON, PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSON, PluginsRuntimesCatalogRegisterPluginRuntimeRequestToJSON, PoliciesGeneratePasswordFromPasswordPolicyResponseFromJSON, PoliciesListAclPolicies2ResponseFromJSON, PoliciesListAclPolicies3ResponseFromJSON, PoliciesListAclPoliciesResponseFromJSON, PoliciesReadAclPolicy2ResponseFromJSON, PoliciesReadAclPolicyResponseFromJSON, PoliciesReadPasswordPolicyResponseFromJSON, PoliciesWriteAclPolicy2RequestToJSON, PoliciesWriteAclPolicyRequestToJSON, PoliciesWritePasswordPolicyRequestToJSON, QueryTokenAccessorCapabilitiesRequestToJSON, QueryTokenCapabilitiesRequestToJSON, QueryTokenSelfCapabilitiesRequestToJSON, RateLimitQuotasConfigureRequestToJSON, RateLimitQuotasReadConfigurationResponseFromJSON, RateLimitQuotasReadResponseFromJSON, RateLimitQuotasWriteRequestToJSON, RawReadResponseFromJSON, RawWriteRequestToJSON, ReadWrappingProperties2ResponseFromJSON, ReadWrappingPropertiesRequestToJSON, ReadWrappingPropertiesResponseFromJSON, RekeyAttemptInitializeRequestToJSON, RekeyAttemptInitializeResponseFromJSON, RekeyAttemptReadProgressResponseFromJSON, RekeyAttemptUpdateRequestToJSON, RekeyAttemptUpdateResponseFromJSON, RekeyReadBackupKeyResponseFromJSON, RekeyReadBackupRecoveryKeyResponseFromJSON, RekeyVerificationCancelResponseFromJSON, RekeyVerificationReadProgressResponseFromJSON, RekeyVerificationUpdateRequestToJSON, RekeyVerificationUpdateResponseFromJSON, ReloadPluginsRequestToJSON, ReloadPluginsResponseFromJSON, RemountRequestToJSON, RemountResponseFromJSON, RemountStatusResponseFromJSON, RewrapRequestToJSON, RootTokenGenerationInitialize2RequestToJSON, RootTokenGenerationInitialize2ResponseFromJSON, RootTokenGenerationInitializeRequestToJSON, RootTokenGenerationInitializeResponseFromJSON, RootTokenGenerationReadProgress2ResponseFromJSON, RootTokenGenerationReadProgressResponseFromJSON, RootTokenGenerationUpdateRequestToJSON, RootTokenGenerationUpdateResponseFromJSON, SealStatusResponseFromJSON, StandardListResponseFromJSON, SubscriptionsCreateResponseFromJSON, SubscriptionsListEventsSubscriptionsResponseFromJSON, SubscriptionsReadEventsSubscriptionsResponseFromJSON, SubscriptionsWriteEventsSubscriptionsRequestToJSON, SubscriptionsWriteEventsSubscriptionsResponseFromJSON, SystemDeleteSyncConfigResponseFromJSON, SystemDeleteSyncGithubAppsNameResponseFromJSON, SystemListSyncAssociationsResponseFromJSON, SystemListSyncDestinationsResponseFromJSON, SystemListSyncDestinationsTypeResponseFromJSON, SystemListSyncGithubAppsResponseFromJSON, SystemReadConfigGroupPolicyApplicationResponseFromJSON, SystemReadSyncAssociationsDestinationsResponseFromJSON, SystemReadSyncAssociationsMountSecretNameResponseFromJSON, SystemReadSyncConfigResponseFromJSON, SystemReadSyncDestinationsAwsSmNameResponseFromJSON, SystemReadSyncDestinationsAzureKvNameResponseFromJSON, SystemReadSyncDestinationsGcpSmNameResponseFromJSON, SystemReadSyncDestinationsGhNameResponseFromJSON, SystemReadSyncDestinationsInMemNameResponseFromJSON, SystemReadSyncDestinationsTypeNameAssociationsResponseFromJSON, SystemReadSyncDestinationsVercelProjectNameResponseFromJSON, SystemReadSyncGithubAppsNameResponseFromJSON, SystemWriteConfigControlGroupRequestToJSON, SystemWriteConfigGroupPolicyApplicationRequestToJSON, SystemWriteControlGroupAuthorizeRequestToJSON, SystemWriteControlGroupRequestRequestToJSON, SystemWriteInternalCountersActivityWriteRequestToJSON, SystemWriteManagedKeysTypeNameRequestToJSON, SystemWriteManagedKeysTypeNameTestSignRequestToJSON, SystemWriteMfaMethodDuoNameRequestToJSON, SystemWriteMfaMethodOktaNameRequestToJSON, SystemWriteMfaMethodPingidNameRequestToJSON, SystemWriteMfaMethodTotpNameAdminDestroyRequestToJSON, SystemWriteMfaMethodTotpNameAdminGenerateRequestToJSON, SystemWriteMfaMethodTotpNameRequestToJSON, SystemWriteNamespacesApiLockUnlockPathRequestToJSON, SystemWriteNamespacesApiLockUnlockRequestToJSON, SystemWriteNamespacesPathRequestToJSON, SystemWritePoliciesEgpNameRequestToJSON, SystemWritePoliciesRgpNameRequestToJSON, SystemWriteQuotasLeaseCountNameRequestToJSON, SystemWriteReplicationDrPrimaryEnableRequestToJSON, SystemWriteReplicationDrPrimaryRevokeSecondaryRequestToJSON, SystemWriteReplicationDrPrimarySecondaryTokenRequestToJSON, SystemWriteReplicationDrSecondaryDisableRequestToJSON, SystemWriteReplicationDrSecondaryEnableRequestToJSON, SystemWriteReplicationDrSecondaryMerkleCheckRequestToJSON, SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestToJSON, SystemWriteReplicationDrSecondaryPromoteRequestToJSON, SystemWriteReplicationDrSecondaryRecoverRequestToJSON, SystemWriteReplicationDrSecondaryReindexRequestToJSON, SystemWriteReplicationDrSecondaryUpdatePrimaryRequestToJSON, SystemWriteReplicationForceCorruptionRequestToJSON, SystemWriteReplicationPerformancePrimaryEnableRequestToJSON, SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestToJSON, SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestToJSON, SystemWriteReplicationPerformancePrimarySecondaryTokenRequestToJSON, SystemWriteReplicationPerformanceSecondaryEnableRequestToJSON, SystemWriteReplicationPerformanceSecondaryPromoteRequestToJSON, SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestToJSON, SystemWriteReplicationPrimaryEnableRequestToJSON, SystemWriteReplicationPrimaryRevokeSecondaryRequestToJSON, SystemWriteReplicationPrimarySecondaryTokenRequestToJSON, SystemWriteReplicationReindexRequestToJSON, SystemWriteReplicationSecondaryEnableRequestToJSON, SystemWriteReplicationSecondaryPromoteRequestToJSON, SystemWriteReplicationSecondaryUpdatePrimaryRequestToJSON, SystemWriteStorageRaftSnapshotAutoConfigNameRequestToJSON, SystemWriteSyncDestinationsAwsSmNameRequestToJSON, SystemWriteSyncDestinationsAwsSmNameResponseFromJSON, SystemWriteSyncDestinationsAzureKvNameRequestToJSON, SystemWriteSyncDestinationsAzureKvNameResponseFromJSON, SystemWriteSyncDestinationsGcpSmNameRequestToJSON, SystemWriteSyncDestinationsGcpSmNameResponseFromJSON, SystemWriteSyncDestinationsGhNameRequestToJSON, SystemWriteSyncDestinationsGhNameResponseFromJSON, SystemWriteSyncDestinationsInMemNameRequestToJSON, SystemWriteSyncDestinationsInMemNameResponseFromJSON, SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestToJSON, SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseFromJSON, SystemWriteSyncDestinationsTypeNameAssociationsSetRequestToJSON, SystemWriteSyncDestinationsTypeNameAssociationsSetResponseFromJSON, SystemWriteSyncDestinationsVercelProjectNameRequestToJSON, SystemWriteSyncDestinationsVercelProjectNameResponseFromJSON, SystemWriteSyncGithubAppsNameRequestToJSON, SystemWriteSyncGithubAppsNameResponseFromJSON, SystemWriteUtilizationRequestToJSON, SystemWriteUtilizationResponseFromJSON, UiConfigDeleteCustomMessageResponseFromJSON, UiConfigReadCustomMessageResponseFromJSON, UiConfigUpdateCustomMessageRequestToJSON, UiConfigUpdateCustomMessageResponseFromJSON, UiHeadersConfigureRequestToJSON, UiHeadersListResponseFromJSON, UiHeadersReadConfigurationResponseFromJSON, UnsealRequestToJSON, UnsealResponseFromJSON, UnwrapRequestToJSON, VersionHistoryResponseFromJSON, WellKnownListLabels2ResponseFromJSON, WellKnownListLabelsResponseFromJSON, WellKnownReadLabelResponseFromJSON, } from '../models/index'; +import { AuditingCalculateHashRequestToJSON, AuditingCalculateHashResponseFromJSON, AuditingEnableDeviceRequestToJSON, AuditingEnableRequestHeaderRequestToJSON, AuditingListRequestHeadersResponseFromJSON, AuthEnableMethodRequestToJSON, AuthReadConfigurationResponseFromJSON, AuthReadTuningInformationResponseFromJSON, AuthTuneConfigurationParametersRequestToJSON, CollectHostInformationResponseFromJSON, CorsConfigureRequestToJSON, CorsReadConfigurationResponseFromJSON, CreateCustomMessageRequestToJSON, DecodeTokenRequestToJSON, EncryptionKeyConfigureRotationRequestToJSON, EncryptionKeyReadRotationConfigurationResponseFromJSON, GenerateHashRequestToJSON, GenerateHashResponseFromJSON, GenerateHashWithAlgorithmRequestToJSON, GenerateHashWithAlgorithmResponseFromJSON, GenerateRandomRequestToJSON, GenerateRandomResponseFromJSON, GenerateRandomWithBytesRequestToJSON, GenerateRandomWithBytesResponseFromJSON, GenerateRandomWithSourceAndBytesRequestToJSON, GenerateRandomWithSourceAndBytesResponseFromJSON, GenerateRandomWithSourceRequestToJSON, GenerateRandomWithSourceResponseFromJSON, GenerateUtilizationReportResponseFromJSON, HaStatusResponseFromJSON, InitializeRequestToJSON, InternalClientActivityConfigureRequestToJSON, InternalCountEntitiesResponseFromJSON, InternalCountTokensResponseFromJSON, InternalGenerateOpenApiDocumentWithParametersRequestToJSON, InternalUiListEnabledFeatureFlagsResponseFromJSON, InternalUiListEnabledVisibleMountsResponseFromJSON, InternalUiListNamespacesResponseFromJSON, InternalUiReadAuthenticatedActiveCustomMessagesResponseFromJSON, InternalUiReadMountInformationResponseFromJSON, InternalUiReadResultantAclResponseFromJSON, InternalUiReadUnauthenticatedActiveCustomMessagesResponseFromJSON, LeaderStatusResponseFromJSON, LeasesCountResponseFromJSON, LeasesListResponseFromJSON, LeasesLookUpResponseFromJSON, LeasesReadLeaseRequestToJSON, LeasesReadLeaseResponseFromJSON, LeasesRenewLease2RequestToJSON, LeasesRenewLeaseRequestToJSON, LeasesRenewLeaseWithId2RequestToJSON, LeasesRenewLeaseWithIdRequestToJSON, LeasesRevokeLease2RequestToJSON, LeasesRevokeLeaseRequestToJSON, LeasesRevokeLeaseWithId2RequestToJSON, LeasesRevokeLeaseWithIdRequestToJSON, LeasesRevokeLeaseWithPrefix2RequestToJSON, LeasesRevokeLeaseWithPrefixRequestToJSON, LoggersUpdateVerbosityLevelForRequestToJSON, LoggersUpdateVerbosityLevelRequestToJSON, MfaValidateRequestToJSON, MountsEnableSecretsEngineRequestToJSON, MountsReadConfigurationResponseFromJSON, MountsReadTuningInformationResponseFromJSON, MountsTuneConfigurationParametersRequestToJSON, PluginsCatalogListPluginsResponseFromJSON, PluginsCatalogListPluginsWithTypeResponseFromJSON, PluginsCatalogPinsCreatePinnedVersionRequestToJSON, PluginsCatalogPinsListPinnedVersionsResponseFromJSON, PluginsCatalogPinsReadPinnedVersionResponseFromJSON, PluginsCatalogReadPluginConfigurationResponseFromJSON, PluginsCatalogReadPluginConfigurationWithTypeResponseFromJSON, PluginsCatalogRegisterPluginRequestToJSON, PluginsCatalogRegisterPluginWithTypeRequestToJSON, PluginsReloadBackendsRequestToJSON, PluginsReloadBackendsResponseFromJSON, PluginsRuntimesCatalogListPluginsRuntimesResponseFromJSON, PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSON, PluginsRuntimesCatalogRegisterPluginRuntimeRequestToJSON, PoliciesGeneratePasswordFromPasswordPolicyResponseFromJSON, PoliciesListAclPolicies2ResponseFromJSON, PoliciesListAclPolicies3ResponseFromJSON, PoliciesListAclPoliciesResponseFromJSON, PoliciesReadAclPolicy2ResponseFromJSON, PoliciesReadAclPolicyResponseFromJSON, PoliciesReadPasswordPolicyResponseFromJSON, PoliciesWriteAclPolicy2RequestToJSON, PoliciesWriteAclPolicyRequestToJSON, PoliciesWritePasswordPolicyRequestToJSON, QueryTokenAccessorCapabilitiesRequestToJSON, QueryTokenCapabilitiesRequestToJSON, QueryTokenSelfCapabilitiesRequestToJSON, RateLimitQuotasConfigureRequestToJSON, RateLimitQuotasReadConfigurationResponseFromJSON, RateLimitQuotasReadResponseFromJSON, RateLimitQuotasWriteRequestToJSON, RawReadResponseFromJSON, RawWriteRequestToJSON, ReadWrappingProperties2ResponseFromJSON, ReadWrappingPropertiesRequestToJSON, ReadWrappingPropertiesResponseFromJSON, RekeyAttemptInitializeRequestToJSON, RekeyAttemptInitializeResponseFromJSON, RekeyAttemptReadProgressResponseFromJSON, RekeyAttemptUpdateRequestToJSON, RekeyAttemptUpdateResponseFromJSON, RekeyReadBackupKeyResponseFromJSON, RekeyReadBackupRecoveryKeyResponseFromJSON, RekeyVerificationCancelResponseFromJSON, RekeyVerificationReadProgressResponseFromJSON, RekeyVerificationUpdateRequestToJSON, RekeyVerificationUpdateResponseFromJSON, ReloadPluginsRequestToJSON, ReloadPluginsResponseFromJSON, RemountRequestToJSON, RemountResponseFromJSON, RemountStatusResponseFromJSON, RewrapRequestToJSON, RootTokenGenerationInitialize2RequestToJSON, RootTokenGenerationInitialize2ResponseFromJSON, RootTokenGenerationInitializeRequestToJSON, RootTokenGenerationInitializeResponseFromJSON, RootTokenGenerationReadProgress2ResponseFromJSON, RootTokenGenerationReadProgressResponseFromJSON, RootTokenGenerationUpdateRequestToJSON, RootTokenGenerationUpdateResponseFromJSON, SealStatusResponseFromJSON, StandardListResponseFromJSON, SubscriptionsCreateResponseFromJSON, SubscriptionsListEventsSubscriptionsResponseFromJSON, SubscriptionsReadEventsSubscriptionsResponseFromJSON, SubscriptionsWriteEventsSubscriptionsRequestToJSON, SubscriptionsWriteEventsSubscriptionsResponseFromJSON, SystemDeleteSyncConfigResponseFromJSON, SystemDeleteSyncGithubAppsNameResponseFromJSON, SystemListSyncAssociationsResponseFromJSON, SystemListSyncDestinationsResponseFromJSON, SystemListSyncDestinationsTypeResponseFromJSON, SystemListSyncGithubAppsResponseFromJSON, SystemReadConfigGroupPolicyApplicationResponseFromJSON, SystemReadSyncAssociationsDestinationsResponseFromJSON, SystemReadSyncAssociationsMountSecretNameResponseFromJSON, SystemReadSyncConfigResponseFromJSON, SystemReadSyncDestinationsAwsSmNameResponseFromJSON, SystemReadSyncDestinationsAzureKvNameResponseFromJSON, SystemReadSyncDestinationsGcpSmNameResponseFromJSON, SystemReadSyncDestinationsGhNameResponseFromJSON, SystemReadSyncDestinationsInMemNameResponseFromJSON, SystemReadSyncDestinationsTypeNameAssociationsResponseFromJSON, SystemReadSyncDestinationsVercelProjectNameResponseFromJSON, SystemReadSyncGithubAppsNameResponseFromJSON, SystemWriteConfigControlGroupRequestToJSON, SystemWriteConfigGroupPolicyApplicationRequestToJSON, SystemWriteControlGroupAuthorizeRequestToJSON, SystemWriteControlGroupRequestRequestToJSON, SystemWriteInternalCountersActivityWriteRequestToJSON, SystemWriteManagedKeysTypeNameRequestToJSON, SystemWriteManagedKeysTypeNameTestSignRequestToJSON, SystemWriteMfaMethodDuoNameRequestToJSON, SystemWriteMfaMethodOktaNameRequestToJSON, SystemWriteMfaMethodPingidNameRequestToJSON, SystemWriteMfaMethodTotpNameAdminDestroyRequestToJSON, SystemWriteMfaMethodTotpNameAdminGenerateRequestToJSON, SystemWriteMfaMethodTotpNameRequestToJSON, SystemWriteNamespacesApiLockUnlockPathRequestToJSON, SystemWriteNamespacesApiLockUnlockRequestToJSON, SystemWriteNamespacesPathRequestToJSON, SystemWritePoliciesEgpNameRequestToJSON, SystemWritePoliciesRgpNameRequestToJSON, SystemWriteQuotasLeaseCountNameRequestToJSON, SystemWriteReplicationDrPrimaryEnableRequestToJSON, SystemWriteReplicationDrPrimaryRevokeSecondaryRequestToJSON, SystemWriteReplicationDrPrimarySecondaryTokenRequestToJSON, SystemWriteReplicationDrSecondaryDisableRequestToJSON, SystemWriteReplicationDrSecondaryEnableRequestToJSON, SystemWriteReplicationDrSecondaryMerkleCheckRequestToJSON, SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestToJSON, SystemWriteReplicationDrSecondaryPromoteRequestToJSON, SystemWriteReplicationDrSecondaryRecoverRequestToJSON, SystemWriteReplicationDrSecondaryReindexRequestToJSON, SystemWriteReplicationDrSecondaryUpdatePrimaryRequestToJSON, SystemWriteReplicationForceCorruptionRequestToJSON, SystemWriteReplicationPerformancePrimaryEnableRequestToJSON, SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestToJSON, SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestToJSON, SystemWriteReplicationPerformancePrimarySecondaryTokenRequestToJSON, SystemWriteReplicationPerformanceSecondaryEnableRequestToJSON, SystemWriteReplicationPerformanceSecondaryPromoteRequestToJSON, SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestToJSON, SystemWriteReplicationPrimaryEnableRequestToJSON, SystemWriteReplicationPrimaryRevokeSecondaryRequestToJSON, SystemWriteReplicationPrimarySecondaryTokenRequestToJSON, SystemWriteReplicationReindexRequestToJSON, SystemWriteReplicationSecondaryEnableRequestToJSON, SystemWriteReplicationSecondaryPromoteRequestToJSON, SystemWriteReplicationSecondaryUpdatePrimaryRequestToJSON, SystemWriteStorageRaftSnapshotAutoConfigNameRequestToJSON, SystemWriteSyncDestinationsAwsSmNameRequestToJSON, SystemWriteSyncDestinationsAwsSmNameResponseFromJSON, SystemWriteSyncDestinationsAzureKvNameRequestToJSON, SystemWriteSyncDestinationsAzureKvNameResponseFromJSON, SystemWriteSyncDestinationsGcpSmNameRequestToJSON, SystemWriteSyncDestinationsGcpSmNameResponseFromJSON, SystemWriteSyncDestinationsGhNameRequestToJSON, SystemWriteSyncDestinationsGhNameResponseFromJSON, SystemWriteSyncDestinationsInMemNameRequestToJSON, SystemWriteSyncDestinationsInMemNameResponseFromJSON, SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestToJSON, SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseFromJSON, SystemWriteSyncDestinationsTypeNameAssociationsSetRequestToJSON, SystemWriteSyncDestinationsTypeNameAssociationsSetResponseFromJSON, SystemWriteSyncDestinationsVercelProjectNameRequestToJSON, SystemWriteSyncDestinationsVercelProjectNameResponseFromJSON, SystemWriteSyncGithubAppsNameRequestToJSON, SystemWriteSyncGithubAppsNameResponseFromJSON, SystemWriteUtilizationRequestToJSON, SystemWriteUtilizationResponseFromJSON, UiConfigListCustomMessagesResponseFromJSON, UiConfigReadCustomMessageResponseFromJSON, UiConfigUpdateCustomMessageRequestToJSON, UiConfigUpdateCustomMessageResponseFromJSON, UiHeadersConfigureRequestToJSON, UiHeadersListResponseFromJSON, UiHeadersReadConfigurationResponseFromJSON, UnsealRequestToJSON, UnsealResponseFromJSON, UnwrapRequestToJSON, VersionHistoryResponseFromJSON, WellKnownListLabels2ResponseFromJSON, WellKnownListLabelsResponseFromJSON, WellKnownReadLabelResponseFromJSON, } from '../models/index'; /** * */ @@ -987,6 +987,29 @@ export class SystemApi extends runtime.BaseAPI { return yield response.value(); }); } + /** + */ + generateUtilizationReportRaw(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + const response = yield this.request({ + path: `/sys/utilization-report`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => GenerateUtilizationReportResponseFromJSON(jsonValue)); + }); + } + /** + */ + generateUtilizationReport(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.generateUtilizationReportRaw(initOverrides); + return yield response.value(); + }); + } /** * Check the HA status of a Vault cluster */ @@ -7037,29 +7060,6 @@ export class SystemApi extends runtime.BaseAPI { return yield response.value(); }); } - /** - */ - systemReadUtilizationReportRaw(initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const queryParameters = {}; - const headerParameters = {}; - const response = yield this.request({ - path: `/sys/utilization-report`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.VoidApiResponse(response); - }); - } - /** - */ - systemReadUtilizationReport(initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.systemReadUtilizationReportRaw(initOverrides); - return yield response.value(); - }); - } /** * Configure control group global settings. */ @@ -9150,7 +9150,7 @@ export class SystemApi extends runtime.BaseAPI { headers: headerParameters, query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => UiConfigDeleteCustomMessageResponseFromJSON(jsonValue)); + return new runtime.VoidApiResponse(response); }); } /** @@ -9171,9 +9171,18 @@ export class SystemApi extends runtime.BaseAPI { throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling uiConfigListCustomMessages().'); } const queryParameters = {}; + if (requestParameters['active'] != null) { + queryParameters['active'] = requestParameters['active']; + } + if (requestParameters['authenticated'] != null) { + queryParameters['authenticated'] = requestParameters['authenticated']; + } if (requestParameters['list'] != null) { queryParameters['list'] = requestParameters['list']; } + if (requestParameters['type'] != null) { + queryParameters['type'] = requestParameters['type']; + } const headerParameters = {}; const response = yield this.request({ path: `/sys/config/ui/custom-messages/`, @@ -9181,15 +9190,15 @@ export class SystemApi extends runtime.BaseAPI { headers: headerParameters, query: queryParameters, }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => UiConfigListCustomMessagesResponseFromJSON(jsonValue)); }); } /** * Lists custom messages */ - uiConfigListCustomMessages(list, initOverrides) { + uiConfigListCustomMessages(list, active, authenticated, type, initOverrides) { return __awaiter(this, void 0, void 0, function* () { - const response = yield this.uiConfigListCustomMessagesRaw({ list: list }, initOverrides); + const response = yield this.uiConfigListCustomMessagesRaw({ list: list, active: active, authenticated: authenticated, type: type }, initOverrides); return yield response.value(); }); } diff --git a/ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.d.ts b/ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.d.ts new file mode 100644 index 0000000000..7d0e270bcb --- /dev/null +++ b/ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.d.ts @@ -0,0 +1,86 @@ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GenerateUtilizationReportResponse + */ +export interface GenerateUtilizationReportResponse { + /** + * A map of auth methods, by type, to the number of mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + authMethods?: object; + /** + * Number of KVv1 secrets across all mounts and namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + kvv1Secrets?: number; + /** + * Number of KVv2 secrets across all mounts and namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + kvv2Secrets?: number; + /** + * A map containing details of lease count quotas, if in use, including total quotas and the status of the global lease count quota, if one is configured. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + leaseCountQuotas?: object; + /** + * A map of all auth methods, by type, to the number of active leases created by auth mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + leasesByAuthMethod?: object; + /** + * Number of namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + namespaces?: number; + /** + * A map containing 'total_roles' and 'total_issuers' for all PKI mounts across all namespaces, if PKI is in use. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + pki?: object; + /** + * A map containing details about replication status. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + replicationStatus?: object; + /** + * A map of secret engines, by type, to the number of mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + secretEngines?: object; + /** + * A map containing 'total_sources' and 'total_destinations' for secret syncs, if configured. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + secretSync?: object; +} +/** + * Check if a given object implements the GenerateUtilizationReportResponse interface. + */ +export declare function instanceOfGenerateUtilizationReportResponse(value: object): value is GenerateUtilizationReportResponse; +export declare function GenerateUtilizationReportResponseFromJSON(json: any): GenerateUtilizationReportResponse; +export declare function GenerateUtilizationReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateUtilizationReportResponse; +export declare function GenerateUtilizationReportResponseToJSON(json: any): GenerateUtilizationReportResponse; +export declare function GenerateUtilizationReportResponseToJSONTyped(value?: GenerateUtilizationReportResponse | null, ignoreDiscriminator?: boolean): any; diff --git a/ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.js b/ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.js new file mode 100644 index 0000000000..c8b81e6842 --- /dev/null +++ b/ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GenerateUtilizationReportResponse interface. + */ +export function instanceOfGenerateUtilizationReportResponse(value) { + return true; +} +export function GenerateUtilizationReportResponseFromJSON(json) { + return GenerateUtilizationReportResponseFromJSONTyped(json, false); +} +export function GenerateUtilizationReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'authMethods': json['auth_methods'] == null ? undefined : json['auth_methods'], + 'kvv1Secrets': json['kvv1_secrets'] == null ? undefined : json['kvv1_secrets'], + 'kvv2Secrets': json['kvv2_secrets'] == null ? undefined : json['kvv2_secrets'], + 'leaseCountQuotas': json['lease_count_quotas'] == null ? undefined : json['lease_count_quotas'], + 'leasesByAuthMethod': json['leases_by_auth_method'] == null ? undefined : json['leases_by_auth_method'], + 'namespaces': json['namespaces'] == null ? undefined : json['namespaces'], + 'pki': json['pki'] == null ? undefined : json['pki'], + 'replicationStatus': json['replication_status'] == null ? undefined : json['replication_status'], + 'secretEngines': json['secret_engines'] == null ? undefined : json['secret_engines'], + 'secretSync': json['secret_sync'] == null ? undefined : json['secret_sync'], + }; +} +export function GenerateUtilizationReportResponseToJSON(json) { + return GenerateUtilizationReportResponseToJSONTyped(json, false); +} +export function GenerateUtilizationReportResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'auth_methods': value['authMethods'], + 'kvv1_secrets': value['kvv1Secrets'], + 'kvv2_secrets': value['kvv2Secrets'], + 'lease_count_quotas': value['leaseCountQuotas'], + 'leases_by_auth_method': value['leasesByAuthMethod'], + 'namespaces': value['namespaces'], + 'pki': value['pki'], + 'replication_status': value['replicationStatus'], + 'secret_engines': value['secretEngines'], + 'secret_sync': value['secretSync'], + }; +} diff --git a/ui/api-client/dist/esm/models/PkiConfigureUrlsRequest.d.ts b/ui/api-client/dist/esm/models/PkiConfigureUrlsRequest.d.ts index 6a15e59ced..cd68255464 100644 --- a/ui/api-client/dist/esm/models/PkiConfigureUrlsRequest.d.ts +++ b/ui/api-client/dist/esm/models/PkiConfigureUrlsRequest.d.ts @@ -21,6 +21,12 @@ export interface PkiConfigureUrlsRequest { * @memberof PkiConfigureUrlsRequest */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiConfigureUrlsRequest + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}', '{{cluster_path}}', and '{{cluster_aia_path}}' are available, but the addresses are not checked for URI validity until issuance time. Using '{{cluster_path}}' requires /config/cluster's 'path' member to be set on all PR Secondary clusters and using '{{cluster_aia_path}}' requires /config/cluster's 'aia_path' member to be set on all PR secondary clusters. * @type {boolean} diff --git a/ui/api-client/dist/esm/models/PkiConfigureUrlsRequest.js b/ui/api-client/dist/esm/models/PkiConfigureUrlsRequest.js index 821708efba..0f99995af1 100644 --- a/ui/api-client/dist/esm/models/PkiConfigureUrlsRequest.js +++ b/ui/api-client/dist/esm/models/PkiConfigureUrlsRequest.js @@ -26,6 +26,7 @@ export function PkiConfigureUrlsRequestFromJSONTyped(json, ignoreDiscriminator) } return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -40,6 +41,7 @@ export function PkiConfigureUrlsRequestToJSONTyped(value, ignoreDiscriminator = } return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/dist/esm/models/PkiConfigureUrlsResponse.d.ts b/ui/api-client/dist/esm/models/PkiConfigureUrlsResponse.d.ts index c17bd33636..6311645019 100644 --- a/ui/api-client/dist/esm/models/PkiConfigureUrlsResponse.d.ts +++ b/ui/api-client/dist/esm/models/PkiConfigureUrlsResponse.d.ts @@ -21,6 +21,12 @@ export interface PkiConfigureUrlsResponse { * @memberof PkiConfigureUrlsResponse */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiConfigureUrlsResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}' and '{{cluster_path}}' are available, but the addresses are not checked for URI validity until issuance time. This requires /config/cluster's path to be set on all PR Secondary clusters. * @type {boolean} diff --git a/ui/api-client/dist/esm/models/PkiConfigureUrlsResponse.js b/ui/api-client/dist/esm/models/PkiConfigureUrlsResponse.js index e65722615c..350f2c589c 100644 --- a/ui/api-client/dist/esm/models/PkiConfigureUrlsResponse.js +++ b/ui/api-client/dist/esm/models/PkiConfigureUrlsResponse.js @@ -26,6 +26,7 @@ export function PkiConfigureUrlsResponseFromJSONTyped(json, ignoreDiscriminator) } return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -40,6 +41,7 @@ export function PkiConfigureUrlsResponseToJSONTyped(value, ignoreDiscriminator = } return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/dist/esm/models/PkiPatchIssuerResponse.d.ts b/ui/api-client/dist/esm/models/PkiPatchIssuerResponse.d.ts index ee1f3f43ba..45681c2ddd 100644 --- a/ui/api-client/dist/esm/models/PkiPatchIssuerResponse.d.ts +++ b/ui/api-client/dist/esm/models/PkiPatchIssuerResponse.d.ts @@ -33,6 +33,12 @@ export interface PkiPatchIssuerResponse { * @memberof PkiPatchIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiPatchIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/esm/models/PkiPatchIssuerResponse.js b/ui/api-client/dist/esm/models/PkiPatchIssuerResponse.js index f3cf0c8281..f5e0f1c2f9 100644 --- a/ui/api-client/dist/esm/models/PkiPatchIssuerResponse.js +++ b/ui/api-client/dist/esm/models/PkiPatchIssuerResponse.js @@ -28,6 +28,7 @@ export function PkiPatchIssuerResponseFromJSONTyped(json, ignoreDiscriminator) { 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -58,6 +59,7 @@ export function PkiPatchIssuerResponseToJSONTyped(value, ignoreDiscriminator = f 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/esm/models/PkiReadIssuerResponse.d.ts b/ui/api-client/dist/esm/models/PkiReadIssuerResponse.d.ts index 11fca021e5..d4b214dcd2 100644 --- a/ui/api-client/dist/esm/models/PkiReadIssuerResponse.d.ts +++ b/ui/api-client/dist/esm/models/PkiReadIssuerResponse.d.ts @@ -33,6 +33,12 @@ export interface PkiReadIssuerResponse { * @memberof PkiReadIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiReadIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/esm/models/PkiReadIssuerResponse.js b/ui/api-client/dist/esm/models/PkiReadIssuerResponse.js index 8105aa34a4..1863592214 100644 --- a/ui/api-client/dist/esm/models/PkiReadIssuerResponse.js +++ b/ui/api-client/dist/esm/models/PkiReadIssuerResponse.js @@ -28,6 +28,7 @@ export function PkiReadIssuerResponseFromJSONTyped(json, ignoreDiscriminator) { 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -58,6 +59,7 @@ export function PkiReadIssuerResponseToJSONTyped(value, ignoreDiscriminator = fa 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/esm/models/PkiReadUrlsConfigurationResponse.d.ts b/ui/api-client/dist/esm/models/PkiReadUrlsConfigurationResponse.d.ts index a4e27b2061..eff2f9547c 100644 --- a/ui/api-client/dist/esm/models/PkiReadUrlsConfigurationResponse.d.ts +++ b/ui/api-client/dist/esm/models/PkiReadUrlsConfigurationResponse.d.ts @@ -21,6 +21,12 @@ export interface PkiReadUrlsConfigurationResponse { * @memberof PkiReadUrlsConfigurationResponse */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiReadUrlsConfigurationResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enable templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}' and '{{cluster_path}}' are available, but the addresses are not checked for URI validity until issuance time. This requires /config/cluster's path to be set on all PR Secondary clusters. * @type {boolean} diff --git a/ui/api-client/dist/esm/models/PkiReadUrlsConfigurationResponse.js b/ui/api-client/dist/esm/models/PkiReadUrlsConfigurationResponse.js index 780fa57db3..553944aac2 100644 --- a/ui/api-client/dist/esm/models/PkiReadUrlsConfigurationResponse.js +++ b/ui/api-client/dist/esm/models/PkiReadUrlsConfigurationResponse.js @@ -26,6 +26,7 @@ export function PkiReadUrlsConfigurationResponseFromJSONTyped(json, ignoreDiscri } return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -40,6 +41,7 @@ export function PkiReadUrlsConfigurationResponseToJSONTyped(value, ignoreDiscrim } return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/dist/esm/models/PkiRevokeIssuerResponse.d.ts b/ui/api-client/dist/esm/models/PkiRevokeIssuerResponse.d.ts index 1925a8d9de..ccf9f02f57 100644 --- a/ui/api-client/dist/esm/models/PkiRevokeIssuerResponse.d.ts +++ b/ui/api-client/dist/esm/models/PkiRevokeIssuerResponse.d.ts @@ -33,6 +33,12 @@ export interface PkiRevokeIssuerResponse { * @memberof PkiRevokeIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiRevokeIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/esm/models/PkiRevokeIssuerResponse.js b/ui/api-client/dist/esm/models/PkiRevokeIssuerResponse.js index 70855b2e9c..070a934bc9 100644 --- a/ui/api-client/dist/esm/models/PkiRevokeIssuerResponse.js +++ b/ui/api-client/dist/esm/models/PkiRevokeIssuerResponse.js @@ -28,6 +28,7 @@ export function PkiRevokeIssuerResponseFromJSONTyped(json, ignoreDiscriminator) 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -58,6 +59,7 @@ export function PkiRevokeIssuerResponseToJSONTyped(value, ignoreDiscriminator = 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/esm/models/PkiWriteIssuerRequest.d.ts b/ui/api-client/dist/esm/models/PkiWriteIssuerRequest.d.ts index 63bf6697b1..d85c268f30 100644 --- a/ui/api-client/dist/esm/models/PkiWriteIssuerRequest.d.ts +++ b/ui/api-client/dist/esm/models/PkiWriteIssuerRequest.d.ts @@ -21,6 +21,12 @@ export interface PkiWriteIssuerRequest { * @memberof PkiWriteIssuerRequest */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute, also known as Freshest CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiWriteIssuerRequest + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/esm/models/PkiWriteIssuerRequest.js b/ui/api-client/dist/esm/models/PkiWriteIssuerRequest.js index e6491336d4..2de20c048a 100644 --- a/ui/api-client/dist/esm/models/PkiWriteIssuerRequest.js +++ b/ui/api-client/dist/esm/models/PkiWriteIssuerRequest.js @@ -26,6 +26,7 @@ export function PkiWriteIssuerRequestFromJSONTyped(json, ignoreDiscriminator) { } return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -49,6 +50,7 @@ export function PkiWriteIssuerRequestToJSONTyped(value, ignoreDiscriminator = fa } return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/esm/models/PkiWriteIssuerResponse.d.ts b/ui/api-client/dist/esm/models/PkiWriteIssuerResponse.d.ts index 37755a9f42..d40bc3d058 100644 --- a/ui/api-client/dist/esm/models/PkiWriteIssuerResponse.d.ts +++ b/ui/api-client/dist/esm/models/PkiWriteIssuerResponse.d.ts @@ -33,6 +33,12 @@ export interface PkiWriteIssuerResponse { * @memberof PkiWriteIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiWriteIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/esm/models/PkiWriteIssuerResponse.js b/ui/api-client/dist/esm/models/PkiWriteIssuerResponse.js index 7a6236c440..1a4bf70278 100644 --- a/ui/api-client/dist/esm/models/PkiWriteIssuerResponse.js +++ b/ui/api-client/dist/esm/models/PkiWriteIssuerResponse.js @@ -28,6 +28,7 @@ export function PkiWriteIssuerResponseFromJSONTyped(json, ignoreDiscriminator) { 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -58,6 +59,7 @@ export function PkiWriteIssuerResponseToJSONTyped(value, ignoreDiscriminator = f 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/esm/models/QueryTokenSelfCapabilitiesRequest.d.ts b/ui/api-client/dist/esm/models/QueryTokenSelfCapabilitiesRequest.d.ts index aa92839ff2..c6dbd683ab 100644 --- a/ui/api-client/dist/esm/models/QueryTokenSelfCapabilitiesRequest.d.ts +++ b/ui/api-client/dist/esm/models/QueryTokenSelfCapabilitiesRequest.d.ts @@ -15,6 +15,12 @@ * @interface QueryTokenSelfCapabilitiesRequest */ export interface QueryTokenSelfCapabilitiesRequest { + /** + * Namespace for which capabilities are being queried. + * @type {string} + * @memberof QueryTokenSelfCapabilitiesRequest + */ + namespace?: string; /** * Use 'paths' instead. * @type {Array} diff --git a/ui/api-client/dist/esm/models/QueryTokenSelfCapabilitiesRequest.js b/ui/api-client/dist/esm/models/QueryTokenSelfCapabilitiesRequest.js index 78c095d1d7..8106627c66 100644 --- a/ui/api-client/dist/esm/models/QueryTokenSelfCapabilitiesRequest.js +++ b/ui/api-client/dist/esm/models/QueryTokenSelfCapabilitiesRequest.js @@ -25,6 +25,7 @@ export function QueryTokenSelfCapabilitiesRequestFromJSONTyped(json, ignoreDiscr return json; } return { + 'namespace': json['namespace'] == null ? undefined : json['namespace'], 'path': json['path'] == null ? undefined : json['path'], 'paths': json['paths'] == null ? undefined : json['paths'], 'token': json['token'] == null ? undefined : json['token'], @@ -38,6 +39,7 @@ export function QueryTokenSelfCapabilitiesRequestToJSONTyped(value, ignoreDiscri return value; } return { + 'namespace': value['namespace'], 'path': value['path'], 'paths': value['paths'], 'token': value['token'], diff --git a/ui/api-client/dist/esm/models/SshConfigureCaRequest.d.ts b/ui/api-client/dist/esm/models/SshConfigureCaRequest.d.ts index f584c6ba40..cb4708d946 100644 --- a/ui/api-client/dist/esm/models/SshConfigureCaRequest.d.ts +++ b/ui/api-client/dist/esm/models/SshConfigureCaRequest.d.ts @@ -16,7 +16,7 @@ */ export interface SshConfigureCaRequest { /** - * Generate SSH key pair internally rather than use the private_key and public_key fields. + * Generate SSH key pair internally rather than use the private_key and public_key fields. If managed key config is provided, this field is ignored. * @type {boolean} * @memberof SshConfigureCaRequest */ @@ -33,6 +33,18 @@ export interface SshConfigureCaRequest { * @memberof SshConfigureCaRequest */ keyType?: string; + /** + * The id of the managed key to use. When using a managed key, this field or managed_key_name is required. + * @type {string} + * @memberof SshConfigureCaRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use. When using a managed key, this field or managed_key_id is required. + * @type {string} + * @memberof SshConfigureCaRequest + */ + managedKeyName?: string; /** * Private half of the SSH key that will be used to sign certificates. * @type {string} diff --git a/ui/api-client/dist/esm/models/SshConfigureCaRequest.js b/ui/api-client/dist/esm/models/SshConfigureCaRequest.js index 40cf341e1c..293caee2fb 100644 --- a/ui/api-client/dist/esm/models/SshConfigureCaRequest.js +++ b/ui/api-client/dist/esm/models/SshConfigureCaRequest.js @@ -28,6 +28,8 @@ export function SshConfigureCaRequestFromJSONTyped(json, ignoreDiscriminator) { 'generateSigningKey': json['generate_signing_key'] == null ? undefined : json['generate_signing_key'], 'keyBits': json['key_bits'] == null ? undefined : json['key_bits'], 'keyType': json['key_type'] == null ? undefined : json['key_type'], + 'managedKeyId': json['managed_key_id'] == null ? undefined : json['managed_key_id'], + 'managedKeyName': json['managed_key_name'] == null ? undefined : json['managed_key_name'], 'privateKey': json['private_key'] == null ? undefined : json['private_key'], 'publicKey': json['public_key'] == null ? undefined : json['public_key'], }; @@ -43,6 +45,8 @@ export function SshConfigureCaRequestToJSONTyped(value, ignoreDiscriminator = fa 'generate_signing_key': value['generateSigningKey'], 'key_bits': value['keyBits'], 'key_type': value['keyType'], + 'managed_key_id': value['managedKeyId'], + 'managed_key_name': value['managedKeyName'], 'private_key': value['privateKey'], 'public_key': value['publicKey'], }; diff --git a/ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.d.ts b/ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.d.ts new file mode 100644 index 0000000000..856ce1f0a6 --- /dev/null +++ b/ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.d.ts @@ -0,0 +1,38 @@ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UiConfigListCustomMessagesResponse + */ +export interface UiConfigListCustomMessagesResponse { + /** + * + * @type {object} + * @memberof UiConfigListCustomMessagesResponse + */ + keyInfo?: object; + /** + * + * @type {Array} + * @memberof UiConfigListCustomMessagesResponse + */ + keys?: Array; +} +/** + * Check if a given object implements the UiConfigListCustomMessagesResponse interface. + */ +export declare function instanceOfUiConfigListCustomMessagesResponse(value: object): value is UiConfigListCustomMessagesResponse; +export declare function UiConfigListCustomMessagesResponseFromJSON(json: any): UiConfigListCustomMessagesResponse; +export declare function UiConfigListCustomMessagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UiConfigListCustomMessagesResponse; +export declare function UiConfigListCustomMessagesResponseToJSON(json: any): UiConfigListCustomMessagesResponse; +export declare function UiConfigListCustomMessagesResponseToJSONTyped(value?: UiConfigListCustomMessagesResponse | null, ignoreDiscriminator?: boolean): any; diff --git a/ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.js b/ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.js new file mode 100644 index 0000000000..aca17e778a --- /dev/null +++ b/ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the UiConfigListCustomMessagesResponse interface. + */ +export function instanceOfUiConfigListCustomMessagesResponse(value) { + return true; +} +export function UiConfigListCustomMessagesResponseFromJSON(json) { + return UiConfigListCustomMessagesResponseFromJSONTyped(json, false); +} +export function UiConfigListCustomMessagesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'keyInfo': json['key_info'] == null ? undefined : json['key_info'], + 'keys': json['keys'] == null ? undefined : json['keys'], + }; +} +export function UiConfigListCustomMessagesResponseToJSON(json) { + return UiConfigListCustomMessagesResponseToJSONTyped(json, false); +} +export function UiConfigListCustomMessagesResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'key_info': value['keyInfo'], + 'keys': value['keys'], + }; +} diff --git a/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.d.ts b/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.d.ts index d34b846db2..11d8e4c708 100644 --- a/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.d.ts +++ b/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.d.ts @@ -15,12 +15,66 @@ * @interface UiConfigReadCustomMessageResponse */ export interface UiConfigReadCustomMessageResponse { + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + active?: boolean; + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + authenticated?: boolean; + /** + * + * @type {Date} + * @memberof UiConfigReadCustomMessageResponse + */ + endTime?: Date; /** * * @type {string} * @memberof UiConfigReadCustomMessageResponse */ id?: string; + /** + * + * @type {object} + * @memberof UiConfigReadCustomMessageResponse + */ + link?: object; + /** + * + * @type {string} + * @memberof UiConfigReadCustomMessageResponse + */ + message?: string; + /** + * + * @type {object} + * @memberof UiConfigReadCustomMessageResponse + */ + options?: object; + /** + * + * @type {Date} + * @memberof UiConfigReadCustomMessageResponse + */ + startTime?: Date; + /** + * + * @type {string} + * @memberof UiConfigReadCustomMessageResponse + */ + title?: string; + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + type?: boolean; } /** * Check if a given object implements the UiConfigReadCustomMessageResponse interface. diff --git a/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.js b/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.js index 6995a27257..41617e448a 100644 --- a/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.js +++ b/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.js @@ -25,7 +25,16 @@ export function UiConfigReadCustomMessageResponseFromJSONTyped(json, ignoreDiscr return json; } return { + 'active': json['active'] == null ? undefined : json['active'], + 'authenticated': json['authenticated'] == null ? undefined : json['authenticated'], + 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])), 'id': json['id'] == null ? undefined : json['id'], + 'link': json['link'] == null ? undefined : json['link'], + 'message': json['message'] == null ? undefined : json['message'], + 'options': json['options'] == null ? undefined : json['options'], + 'startTime': json['start_time'] == null ? undefined : (new Date(json['start_time'])), + 'title': json['title'] == null ? undefined : json['title'], + 'type': json['type'] == null ? undefined : json['type'], }; } export function UiConfigReadCustomMessageResponseToJSON(json) { @@ -36,6 +45,15 @@ export function UiConfigReadCustomMessageResponseToJSONTyped(value, ignoreDiscri return value; } return { + 'active': value['active'], + 'authenticated': value['authenticated'], + 'end_time': value['endTime'] == null ? undefined : ((value['endTime']).toISOString()), 'id': value['id'], + 'link': value['link'], + 'message': value['message'], + 'options': value['options'], + 'start_time': value['startTime'] == null ? undefined : ((value['startTime']).toISOString()), + 'title': value['title'], + 'type': value['type'], }; } diff --git a/ui/api-client/dist/esm/models/UiConfigUpdateCustomMessageResponse.d.ts b/ui/api-client/dist/esm/models/UiConfigUpdateCustomMessageResponse.d.ts index 05c2d24794..a5051f09c6 100644 --- a/ui/api-client/dist/esm/models/UiConfigUpdateCustomMessageResponse.d.ts +++ b/ui/api-client/dist/esm/models/UiConfigUpdateCustomMessageResponse.d.ts @@ -15,6 +15,12 @@ * @interface UiConfigUpdateCustomMessageResponse */ export interface UiConfigUpdateCustomMessageResponse { + /** + * + * @type {boolean} + * @memberof UiConfigUpdateCustomMessageResponse + */ + active?: boolean; /** * * @type {boolean} diff --git a/ui/api-client/dist/esm/models/UiConfigUpdateCustomMessageResponse.js b/ui/api-client/dist/esm/models/UiConfigUpdateCustomMessageResponse.js index 7a823ec493..d5aca218fd 100644 --- a/ui/api-client/dist/esm/models/UiConfigUpdateCustomMessageResponse.js +++ b/ui/api-client/dist/esm/models/UiConfigUpdateCustomMessageResponse.js @@ -25,6 +25,7 @@ export function UiConfigUpdateCustomMessageResponseFromJSONTyped(json, ignoreDis return json; } return { + 'active': json['active'] == null ? undefined : json['active'], 'authenticated': json['authenticated'] == null ? undefined : json['authenticated'], 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])), 'id': json['id'] == null ? undefined : json['id'], @@ -44,6 +45,7 @@ export function UiConfigUpdateCustomMessageResponseToJSONTyped(value, ignoreDisc return value; } return { + 'active': value['active'], 'authenticated': value['authenticated'], 'end_time': value['endTime'] == null ? undefined : ((value['endTime']).toISOString()), 'id': value['id'], diff --git a/ui/api-client/dist/esm/models/index.d.ts b/ui/api-client/dist/esm/models/index.d.ts index ead674d1ee..3f3a8d034e 100644 --- a/ui/api-client/dist/esm/models/index.d.ts +++ b/ui/api-client/dist/esm/models/index.d.ts @@ -123,6 +123,7 @@ export * from './GenerateRandomWithSourceAndBytesRequest'; export * from './GenerateRandomWithSourceAndBytesResponse'; export * from './GenerateRandomWithSourceRequest'; export * from './GenerateRandomWithSourceResponse'; +export * from './GenerateUtilizationReportResponse'; export * from './GithubConfigureRequest'; export * from './GithubLoginRequest'; export * from './GithubWriteTeamMappingRequest'; @@ -735,7 +736,7 @@ export * from './TransitSignWithAlgorithmRequest'; export * from './TransitTrimKeyRequest'; export * from './TransitVerifyRequest'; export * from './TransitVerifyWithAlgorithmRequest'; -export * from './UiConfigDeleteCustomMessageResponse'; +export * from './UiConfigListCustomMessagesResponse'; export * from './UiConfigReadCustomMessageResponse'; export * from './UiConfigUpdateCustomMessageRequest'; export * from './UiConfigUpdateCustomMessageResponse'; diff --git a/ui/api-client/dist/esm/models/index.js b/ui/api-client/dist/esm/models/index.js index 45ef104b71..fa4bb4b641 100644 --- a/ui/api-client/dist/esm/models/index.js +++ b/ui/api-client/dist/esm/models/index.js @@ -125,6 +125,7 @@ export * from './GenerateRandomWithSourceAndBytesRequest'; export * from './GenerateRandomWithSourceAndBytesResponse'; export * from './GenerateRandomWithSourceRequest'; export * from './GenerateRandomWithSourceResponse'; +export * from './GenerateUtilizationReportResponse'; export * from './GithubConfigureRequest'; export * from './GithubLoginRequest'; export * from './GithubWriteTeamMappingRequest'; @@ -737,7 +738,7 @@ export * from './TransitSignWithAlgorithmRequest'; export * from './TransitTrimKeyRequest'; export * from './TransitVerifyRequest'; export * from './TransitVerifyWithAlgorithmRequest'; -export * from './UiConfigDeleteCustomMessageResponse'; +export * from './UiConfigListCustomMessagesResponse'; export * from './UiConfigReadCustomMessageResponse'; export * from './UiConfigUpdateCustomMessageRequest'; export * from './UiConfigUpdateCustomMessageResponse'; diff --git a/ui/api-client/dist/esm/runtime.d.ts b/ui/api-client/dist/esm/runtime.d.ts index b6bf707005..d4880b9abf 100644 --- a/ui/api-client/dist/esm/runtime.d.ts +++ b/ui/api-client/dist/esm/runtime.d.ts @@ -159,17 +159,17 @@ export interface ApiResponse { export interface VoidResponse { auth: unknown; data: unknown; - lease_duration: number; - lease_id: string; - mount_type: string; + leaseDuration: number; + leaseId: string; + mountType: string; renewable: boolean; - request_id: string; + requestId: string; warnings: Array | null; - wrap_info: { + wrapInfo: { accessor: string; - creation_path: string; - creation_time: string; - wrapped_accessor: string; + creationPath: string; + creationTime: string; + wrappedAccessor: string; token: string; ttl: number; } | null; @@ -177,6 +177,7 @@ export interface VoidResponse { export interface ResponseTransformer { (json: any): T; } +export declare function camelizeResponseKeys(json: any): any; export declare class JSONApiResponse { raw: Response; private transformer; diff --git a/ui/api-client/dist/esm/runtime.js b/ui/api-client/dist/esm/runtime.js index e97c31dfb4..f9dc105d4e 100644 --- a/ui/api-client/dist/esm/runtime.js +++ b/ui/api-client/dist/esm/runtime.js @@ -285,6 +285,28 @@ export function canConsumeForm(consumes) { } return false; } +export function camelizeResponseKeys(json) { + const camelizeKeys = (json) => { + const notAnObject = (obj) => Object.prototype.toString.call(obj) !== '[object Object]'; + if (notAnObject(json)) { + return json; + } + if (Array.isArray(json)) { + return json.map(camelizeKeys); + } + return Object.keys(json).reduce((convertedJson, key) => { + const value = json[key]; + const convertedValue = notAnObject(value) ? value : camelizeKeys(value); + const convertedKey = key.split('_').reduce((str, segment, index) => { + const capitalized = index ? segment.charAt(0).toUpperCase() + segment.slice(1) : segment; + return str.concat(capitalized); + }, ''); + convertedJson[convertedKey] = convertedValue; + return convertedJson; + }, {}); + }; + return camelizeKeys(json); +} export class JSONApiResponse { constructor(raw, transformer = (jsonValue) => jsonValue) { this.raw = raw; @@ -293,7 +315,8 @@ export class JSONApiResponse { value() { return __awaiter(this, void 0, void 0, function* () { const response = yield this.raw.json(); - return this.transformer(response.data); + const transformed = this.transformer(response.data); + return camelizeResponseKeys(transformed); }); } } @@ -303,7 +326,9 @@ export class VoidApiResponse { } value() { return __awaiter(this, void 0, void 0, function* () { - return yield this.raw.json(); + var _a; + const response = yield ((_a = this.raw) === null || _a === void 0 ? void 0 : _a.json()); + return camelizeResponseKeys(response); }); } } diff --git a/ui/api-client/dist/models/GenerateUtilizationReportResponse.d.ts b/ui/api-client/dist/models/GenerateUtilizationReportResponse.d.ts new file mode 100644 index 0000000000..7d0e270bcb --- /dev/null +++ b/ui/api-client/dist/models/GenerateUtilizationReportResponse.d.ts @@ -0,0 +1,86 @@ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GenerateUtilizationReportResponse + */ +export interface GenerateUtilizationReportResponse { + /** + * A map of auth methods, by type, to the number of mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + authMethods?: object; + /** + * Number of KVv1 secrets across all mounts and namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + kvv1Secrets?: number; + /** + * Number of KVv2 secrets across all mounts and namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + kvv2Secrets?: number; + /** + * A map containing details of lease count quotas, if in use, including total quotas and the status of the global lease count quota, if one is configured. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + leaseCountQuotas?: object; + /** + * A map of all auth methods, by type, to the number of active leases created by auth mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + leasesByAuthMethod?: object; + /** + * Number of namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + namespaces?: number; + /** + * A map containing 'total_roles' and 'total_issuers' for all PKI mounts across all namespaces, if PKI is in use. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + pki?: object; + /** + * A map containing details about replication status. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + replicationStatus?: object; + /** + * A map of secret engines, by type, to the number of mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + secretEngines?: object; + /** + * A map containing 'total_sources' and 'total_destinations' for secret syncs, if configured. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + secretSync?: object; +} +/** + * Check if a given object implements the GenerateUtilizationReportResponse interface. + */ +export declare function instanceOfGenerateUtilizationReportResponse(value: object): value is GenerateUtilizationReportResponse; +export declare function GenerateUtilizationReportResponseFromJSON(json: any): GenerateUtilizationReportResponse; +export declare function GenerateUtilizationReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateUtilizationReportResponse; +export declare function GenerateUtilizationReportResponseToJSON(json: any): GenerateUtilizationReportResponse; +export declare function GenerateUtilizationReportResponseToJSONTyped(value?: GenerateUtilizationReportResponse | null, ignoreDiscriminator?: boolean): any; diff --git a/ui/api-client/dist/models/GenerateUtilizationReportResponse.js b/ui/api-client/dist/models/GenerateUtilizationReportResponse.js new file mode 100644 index 0000000000..a3f13012fa --- /dev/null +++ b/ui/api-client/dist/models/GenerateUtilizationReportResponse.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGenerateUtilizationReportResponse = instanceOfGenerateUtilizationReportResponse; +exports.GenerateUtilizationReportResponseFromJSON = GenerateUtilizationReportResponseFromJSON; +exports.GenerateUtilizationReportResponseFromJSONTyped = GenerateUtilizationReportResponseFromJSONTyped; +exports.GenerateUtilizationReportResponseToJSON = GenerateUtilizationReportResponseToJSON; +exports.GenerateUtilizationReportResponseToJSONTyped = GenerateUtilizationReportResponseToJSONTyped; +/** + * Check if a given object implements the GenerateUtilizationReportResponse interface. + */ +function instanceOfGenerateUtilizationReportResponse(value) { + return true; +} +function GenerateUtilizationReportResponseFromJSON(json) { + return GenerateUtilizationReportResponseFromJSONTyped(json, false); +} +function GenerateUtilizationReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'authMethods': json['auth_methods'] == null ? undefined : json['auth_methods'], + 'kvv1Secrets': json['kvv1_secrets'] == null ? undefined : json['kvv1_secrets'], + 'kvv2Secrets': json['kvv2_secrets'] == null ? undefined : json['kvv2_secrets'], + 'leaseCountQuotas': json['lease_count_quotas'] == null ? undefined : json['lease_count_quotas'], + 'leasesByAuthMethod': json['leases_by_auth_method'] == null ? undefined : json['leases_by_auth_method'], + 'namespaces': json['namespaces'] == null ? undefined : json['namespaces'], + 'pki': json['pki'] == null ? undefined : json['pki'], + 'replicationStatus': json['replication_status'] == null ? undefined : json['replication_status'], + 'secretEngines': json['secret_engines'] == null ? undefined : json['secret_engines'], + 'secretSync': json['secret_sync'] == null ? undefined : json['secret_sync'], + }; +} +function GenerateUtilizationReportResponseToJSON(json) { + return GenerateUtilizationReportResponseToJSONTyped(json, false); +} +function GenerateUtilizationReportResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'auth_methods': value['authMethods'], + 'kvv1_secrets': value['kvv1Secrets'], + 'kvv2_secrets': value['kvv2Secrets'], + 'lease_count_quotas': value['leaseCountQuotas'], + 'leases_by_auth_method': value['leasesByAuthMethod'], + 'namespaces': value['namespaces'], + 'pki': value['pki'], + 'replication_status': value['replicationStatus'], + 'secret_engines': value['secretEngines'], + 'secret_sync': value['secretSync'], + }; +} diff --git a/ui/api-client/dist/models/PkiConfigureUrlsRequest.d.ts b/ui/api-client/dist/models/PkiConfigureUrlsRequest.d.ts index 6a15e59ced..cd68255464 100644 --- a/ui/api-client/dist/models/PkiConfigureUrlsRequest.d.ts +++ b/ui/api-client/dist/models/PkiConfigureUrlsRequest.d.ts @@ -21,6 +21,12 @@ export interface PkiConfigureUrlsRequest { * @memberof PkiConfigureUrlsRequest */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiConfigureUrlsRequest + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}', '{{cluster_path}}', and '{{cluster_aia_path}}' are available, but the addresses are not checked for URI validity until issuance time. Using '{{cluster_path}}' requires /config/cluster's 'path' member to be set on all PR Secondary clusters and using '{{cluster_aia_path}}' requires /config/cluster's 'aia_path' member to be set on all PR secondary clusters. * @type {boolean} diff --git a/ui/api-client/dist/models/PkiConfigureUrlsRequest.js b/ui/api-client/dist/models/PkiConfigureUrlsRequest.js index 1d7b77cb7e..12fca59660 100644 --- a/ui/api-client/dist/models/PkiConfigureUrlsRequest.js +++ b/ui/api-client/dist/models/PkiConfigureUrlsRequest.js @@ -33,6 +33,7 @@ function PkiConfigureUrlsRequestFromJSONTyped(json, ignoreDiscriminator) { } return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -47,6 +48,7 @@ function PkiConfigureUrlsRequestToJSONTyped(value, ignoreDiscriminator = false) } return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/dist/models/PkiConfigureUrlsResponse.d.ts b/ui/api-client/dist/models/PkiConfigureUrlsResponse.d.ts index c17bd33636..6311645019 100644 --- a/ui/api-client/dist/models/PkiConfigureUrlsResponse.d.ts +++ b/ui/api-client/dist/models/PkiConfigureUrlsResponse.d.ts @@ -21,6 +21,12 @@ export interface PkiConfigureUrlsResponse { * @memberof PkiConfigureUrlsResponse */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiConfigureUrlsResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}' and '{{cluster_path}}' are available, but the addresses are not checked for URI validity until issuance time. This requires /config/cluster's path to be set on all PR Secondary clusters. * @type {boolean} diff --git a/ui/api-client/dist/models/PkiConfigureUrlsResponse.js b/ui/api-client/dist/models/PkiConfigureUrlsResponse.js index bb27fb031a..6ebc6771a2 100644 --- a/ui/api-client/dist/models/PkiConfigureUrlsResponse.js +++ b/ui/api-client/dist/models/PkiConfigureUrlsResponse.js @@ -33,6 +33,7 @@ function PkiConfigureUrlsResponseFromJSONTyped(json, ignoreDiscriminator) { } return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -47,6 +48,7 @@ function PkiConfigureUrlsResponseToJSONTyped(value, ignoreDiscriminator = false) } return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/dist/models/PkiPatchIssuerResponse.d.ts b/ui/api-client/dist/models/PkiPatchIssuerResponse.d.ts index ee1f3f43ba..45681c2ddd 100644 --- a/ui/api-client/dist/models/PkiPatchIssuerResponse.d.ts +++ b/ui/api-client/dist/models/PkiPatchIssuerResponse.d.ts @@ -33,6 +33,12 @@ export interface PkiPatchIssuerResponse { * @memberof PkiPatchIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiPatchIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/models/PkiPatchIssuerResponse.js b/ui/api-client/dist/models/PkiPatchIssuerResponse.js index 0f3fa32dc5..08dd849930 100644 --- a/ui/api-client/dist/models/PkiPatchIssuerResponse.js +++ b/ui/api-client/dist/models/PkiPatchIssuerResponse.js @@ -35,6 +35,7 @@ function PkiPatchIssuerResponseFromJSONTyped(json, ignoreDiscriminator) { 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -65,6 +66,7 @@ function PkiPatchIssuerResponseToJSONTyped(value, ignoreDiscriminator = false) { 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/models/PkiReadIssuerResponse.d.ts b/ui/api-client/dist/models/PkiReadIssuerResponse.d.ts index 11fca021e5..d4b214dcd2 100644 --- a/ui/api-client/dist/models/PkiReadIssuerResponse.d.ts +++ b/ui/api-client/dist/models/PkiReadIssuerResponse.d.ts @@ -33,6 +33,12 @@ export interface PkiReadIssuerResponse { * @memberof PkiReadIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiReadIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/models/PkiReadIssuerResponse.js b/ui/api-client/dist/models/PkiReadIssuerResponse.js index 7022eb6be3..6fb0cc9f6d 100644 --- a/ui/api-client/dist/models/PkiReadIssuerResponse.js +++ b/ui/api-client/dist/models/PkiReadIssuerResponse.js @@ -35,6 +35,7 @@ function PkiReadIssuerResponseFromJSONTyped(json, ignoreDiscriminator) { 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -65,6 +66,7 @@ function PkiReadIssuerResponseToJSONTyped(value, ignoreDiscriminator = false) { 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.d.ts b/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.d.ts index a4e27b2061..eff2f9547c 100644 --- a/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.d.ts +++ b/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.d.ts @@ -21,6 +21,12 @@ export interface PkiReadUrlsConfigurationResponse { * @memberof PkiReadUrlsConfigurationResponse */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiReadUrlsConfigurationResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enable templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}' and '{{cluster_path}}' are available, but the addresses are not checked for URI validity until issuance time. This requires /config/cluster's path to be set on all PR Secondary clusters. * @type {boolean} diff --git a/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.js b/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.js index 0825dabe8e..8d9607914a 100644 --- a/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.js +++ b/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.js @@ -33,6 +33,7 @@ function PkiReadUrlsConfigurationResponseFromJSONTyped(json, ignoreDiscriminator } return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -47,6 +48,7 @@ function PkiReadUrlsConfigurationResponseToJSONTyped(value, ignoreDiscriminator } return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/dist/models/PkiRevokeIssuerResponse.d.ts b/ui/api-client/dist/models/PkiRevokeIssuerResponse.d.ts index 1925a8d9de..ccf9f02f57 100644 --- a/ui/api-client/dist/models/PkiRevokeIssuerResponse.d.ts +++ b/ui/api-client/dist/models/PkiRevokeIssuerResponse.d.ts @@ -33,6 +33,12 @@ export interface PkiRevokeIssuerResponse { * @memberof PkiRevokeIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiRevokeIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/models/PkiRevokeIssuerResponse.js b/ui/api-client/dist/models/PkiRevokeIssuerResponse.js index 47ac233cb2..445d40a057 100644 --- a/ui/api-client/dist/models/PkiRevokeIssuerResponse.js +++ b/ui/api-client/dist/models/PkiRevokeIssuerResponse.js @@ -35,6 +35,7 @@ function PkiRevokeIssuerResponseFromJSONTyped(json, ignoreDiscriminator) { 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -65,6 +66,7 @@ function PkiRevokeIssuerResponseToJSONTyped(value, ignoreDiscriminator = false) 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/models/PkiWriteIssuerRequest.d.ts b/ui/api-client/dist/models/PkiWriteIssuerRequest.d.ts index 63bf6697b1..d85c268f30 100644 --- a/ui/api-client/dist/models/PkiWriteIssuerRequest.d.ts +++ b/ui/api-client/dist/models/PkiWriteIssuerRequest.d.ts @@ -21,6 +21,12 @@ export interface PkiWriteIssuerRequest { * @memberof PkiWriteIssuerRequest */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute, also known as Freshest CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiWriteIssuerRequest + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/models/PkiWriteIssuerRequest.js b/ui/api-client/dist/models/PkiWriteIssuerRequest.js index 63c5f1f1e0..5ee039d1c7 100644 --- a/ui/api-client/dist/models/PkiWriteIssuerRequest.js +++ b/ui/api-client/dist/models/PkiWriteIssuerRequest.js @@ -33,6 +33,7 @@ function PkiWriteIssuerRequestFromJSONTyped(json, ignoreDiscriminator) { } return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -56,6 +57,7 @@ function PkiWriteIssuerRequestToJSONTyped(value, ignoreDiscriminator = false) { } return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/models/PkiWriteIssuerResponse.d.ts b/ui/api-client/dist/models/PkiWriteIssuerResponse.d.ts index 37755a9f42..d40bc3d058 100644 --- a/ui/api-client/dist/models/PkiWriteIssuerResponse.d.ts +++ b/ui/api-client/dist/models/PkiWriteIssuerResponse.d.ts @@ -33,6 +33,12 @@ export interface PkiWriteIssuerResponse { * @memberof PkiWriteIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiWriteIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} diff --git a/ui/api-client/dist/models/PkiWriteIssuerResponse.js b/ui/api-client/dist/models/PkiWriteIssuerResponse.js index 031c90e054..661c68b935 100644 --- a/ui/api-client/dist/models/PkiWriteIssuerResponse.js +++ b/ui/api-client/dist/models/PkiWriteIssuerResponse.js @@ -35,6 +35,7 @@ function PkiWriteIssuerResponseFromJSONTyped(json, ignoreDiscriminator) { 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -65,6 +66,7 @@ function PkiWriteIssuerResponseToJSONTyped(value, ignoreDiscriminator = false) { 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/dist/models/QueryTokenSelfCapabilitiesRequest.d.ts b/ui/api-client/dist/models/QueryTokenSelfCapabilitiesRequest.d.ts index aa92839ff2..c6dbd683ab 100644 --- a/ui/api-client/dist/models/QueryTokenSelfCapabilitiesRequest.d.ts +++ b/ui/api-client/dist/models/QueryTokenSelfCapabilitiesRequest.d.ts @@ -15,6 +15,12 @@ * @interface QueryTokenSelfCapabilitiesRequest */ export interface QueryTokenSelfCapabilitiesRequest { + /** + * Namespace for which capabilities are being queried. + * @type {string} + * @memberof QueryTokenSelfCapabilitiesRequest + */ + namespace?: string; /** * Use 'paths' instead. * @type {Array} diff --git a/ui/api-client/dist/models/QueryTokenSelfCapabilitiesRequest.js b/ui/api-client/dist/models/QueryTokenSelfCapabilitiesRequest.js index 7975072c53..0d26431762 100644 --- a/ui/api-client/dist/models/QueryTokenSelfCapabilitiesRequest.js +++ b/ui/api-client/dist/models/QueryTokenSelfCapabilitiesRequest.js @@ -32,6 +32,7 @@ function QueryTokenSelfCapabilitiesRequestFromJSONTyped(json, ignoreDiscriminato return json; } return { + 'namespace': json['namespace'] == null ? undefined : json['namespace'], 'path': json['path'] == null ? undefined : json['path'], 'paths': json['paths'] == null ? undefined : json['paths'], 'token': json['token'] == null ? undefined : json['token'], @@ -45,6 +46,7 @@ function QueryTokenSelfCapabilitiesRequestToJSONTyped(value, ignoreDiscriminator return value; } return { + 'namespace': value['namespace'], 'path': value['path'], 'paths': value['paths'], 'token': value['token'], diff --git a/ui/api-client/dist/models/SshConfigureCaRequest.d.ts b/ui/api-client/dist/models/SshConfigureCaRequest.d.ts index f584c6ba40..cb4708d946 100644 --- a/ui/api-client/dist/models/SshConfigureCaRequest.d.ts +++ b/ui/api-client/dist/models/SshConfigureCaRequest.d.ts @@ -16,7 +16,7 @@ */ export interface SshConfigureCaRequest { /** - * Generate SSH key pair internally rather than use the private_key and public_key fields. + * Generate SSH key pair internally rather than use the private_key and public_key fields. If managed key config is provided, this field is ignored. * @type {boolean} * @memberof SshConfigureCaRequest */ @@ -33,6 +33,18 @@ export interface SshConfigureCaRequest { * @memberof SshConfigureCaRequest */ keyType?: string; + /** + * The id of the managed key to use. When using a managed key, this field or managed_key_name is required. + * @type {string} + * @memberof SshConfigureCaRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use. When using a managed key, this field or managed_key_id is required. + * @type {string} + * @memberof SshConfigureCaRequest + */ + managedKeyName?: string; /** * Private half of the SSH key that will be used to sign certificates. * @type {string} diff --git a/ui/api-client/dist/models/SshConfigureCaRequest.js b/ui/api-client/dist/models/SshConfigureCaRequest.js index 482202d6b3..be528b6954 100644 --- a/ui/api-client/dist/models/SshConfigureCaRequest.js +++ b/ui/api-client/dist/models/SshConfigureCaRequest.js @@ -35,6 +35,8 @@ function SshConfigureCaRequestFromJSONTyped(json, ignoreDiscriminator) { 'generateSigningKey': json['generate_signing_key'] == null ? undefined : json['generate_signing_key'], 'keyBits': json['key_bits'] == null ? undefined : json['key_bits'], 'keyType': json['key_type'] == null ? undefined : json['key_type'], + 'managedKeyId': json['managed_key_id'] == null ? undefined : json['managed_key_id'], + 'managedKeyName': json['managed_key_name'] == null ? undefined : json['managed_key_name'], 'privateKey': json['private_key'] == null ? undefined : json['private_key'], 'publicKey': json['public_key'] == null ? undefined : json['public_key'], }; @@ -50,6 +52,8 @@ function SshConfigureCaRequestToJSONTyped(value, ignoreDiscriminator = false) { 'generate_signing_key': value['generateSigningKey'], 'key_bits': value['keyBits'], 'key_type': value['keyType'], + 'managed_key_id': value['managedKeyId'], + 'managed_key_name': value['managedKeyName'], 'private_key': value['privateKey'], 'public_key': value['publicKey'], }; diff --git a/ui/api-client/dist/models/UiConfigListCustomMessagesResponse.d.ts b/ui/api-client/dist/models/UiConfigListCustomMessagesResponse.d.ts new file mode 100644 index 0000000000..856ce1f0a6 --- /dev/null +++ b/ui/api-client/dist/models/UiConfigListCustomMessagesResponse.d.ts @@ -0,0 +1,38 @@ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UiConfigListCustomMessagesResponse + */ +export interface UiConfigListCustomMessagesResponse { + /** + * + * @type {object} + * @memberof UiConfigListCustomMessagesResponse + */ + keyInfo?: object; + /** + * + * @type {Array} + * @memberof UiConfigListCustomMessagesResponse + */ + keys?: Array; +} +/** + * Check if a given object implements the UiConfigListCustomMessagesResponse interface. + */ +export declare function instanceOfUiConfigListCustomMessagesResponse(value: object): value is UiConfigListCustomMessagesResponse; +export declare function UiConfigListCustomMessagesResponseFromJSON(json: any): UiConfigListCustomMessagesResponse; +export declare function UiConfigListCustomMessagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UiConfigListCustomMessagesResponse; +export declare function UiConfigListCustomMessagesResponseToJSON(json: any): UiConfigListCustomMessagesResponse; +export declare function UiConfigListCustomMessagesResponseToJSONTyped(value?: UiConfigListCustomMessagesResponse | null, ignoreDiscriminator?: boolean): any; diff --git a/ui/api-client/dist/models/UiConfigListCustomMessagesResponse.js b/ui/api-client/dist/models/UiConfigListCustomMessagesResponse.js new file mode 100644 index 0000000000..403c416748 --- /dev/null +++ b/ui/api-client/dist/models/UiConfigListCustomMessagesResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUiConfigListCustomMessagesResponse = instanceOfUiConfigListCustomMessagesResponse; +exports.UiConfigListCustomMessagesResponseFromJSON = UiConfigListCustomMessagesResponseFromJSON; +exports.UiConfigListCustomMessagesResponseFromJSONTyped = UiConfigListCustomMessagesResponseFromJSONTyped; +exports.UiConfigListCustomMessagesResponseToJSON = UiConfigListCustomMessagesResponseToJSON; +exports.UiConfigListCustomMessagesResponseToJSONTyped = UiConfigListCustomMessagesResponseToJSONTyped; +/** + * Check if a given object implements the UiConfigListCustomMessagesResponse interface. + */ +function instanceOfUiConfigListCustomMessagesResponse(value) { + return true; +} +function UiConfigListCustomMessagesResponseFromJSON(json) { + return UiConfigListCustomMessagesResponseFromJSONTyped(json, false); +} +function UiConfigListCustomMessagesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'keyInfo': json['key_info'] == null ? undefined : json['key_info'], + 'keys': json['keys'] == null ? undefined : json['keys'], + }; +} +function UiConfigListCustomMessagesResponseToJSON(json) { + return UiConfigListCustomMessagesResponseToJSONTyped(json, false); +} +function UiConfigListCustomMessagesResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'key_info': value['keyInfo'], + 'keys': value['keys'], + }; +} diff --git a/ui/api-client/dist/models/UiConfigReadCustomMessageResponse.d.ts b/ui/api-client/dist/models/UiConfigReadCustomMessageResponse.d.ts index d34b846db2..11d8e4c708 100644 --- a/ui/api-client/dist/models/UiConfigReadCustomMessageResponse.d.ts +++ b/ui/api-client/dist/models/UiConfigReadCustomMessageResponse.d.ts @@ -15,12 +15,66 @@ * @interface UiConfigReadCustomMessageResponse */ export interface UiConfigReadCustomMessageResponse { + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + active?: boolean; + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + authenticated?: boolean; + /** + * + * @type {Date} + * @memberof UiConfigReadCustomMessageResponse + */ + endTime?: Date; /** * * @type {string} * @memberof UiConfigReadCustomMessageResponse */ id?: string; + /** + * + * @type {object} + * @memberof UiConfigReadCustomMessageResponse + */ + link?: object; + /** + * + * @type {string} + * @memberof UiConfigReadCustomMessageResponse + */ + message?: string; + /** + * + * @type {object} + * @memberof UiConfigReadCustomMessageResponse + */ + options?: object; + /** + * + * @type {Date} + * @memberof UiConfigReadCustomMessageResponse + */ + startTime?: Date; + /** + * + * @type {string} + * @memberof UiConfigReadCustomMessageResponse + */ + title?: string; + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + type?: boolean; } /** * Check if a given object implements the UiConfigReadCustomMessageResponse interface. diff --git a/ui/api-client/dist/models/UiConfigReadCustomMessageResponse.js b/ui/api-client/dist/models/UiConfigReadCustomMessageResponse.js index ba75217a42..10aebcd34b 100644 --- a/ui/api-client/dist/models/UiConfigReadCustomMessageResponse.js +++ b/ui/api-client/dist/models/UiConfigReadCustomMessageResponse.js @@ -32,7 +32,16 @@ function UiConfigReadCustomMessageResponseFromJSONTyped(json, ignoreDiscriminato return json; } return { + 'active': json['active'] == null ? undefined : json['active'], + 'authenticated': json['authenticated'] == null ? undefined : json['authenticated'], + 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])), 'id': json['id'] == null ? undefined : json['id'], + 'link': json['link'] == null ? undefined : json['link'], + 'message': json['message'] == null ? undefined : json['message'], + 'options': json['options'] == null ? undefined : json['options'], + 'startTime': json['start_time'] == null ? undefined : (new Date(json['start_time'])), + 'title': json['title'] == null ? undefined : json['title'], + 'type': json['type'] == null ? undefined : json['type'], }; } function UiConfigReadCustomMessageResponseToJSON(json) { @@ -43,6 +52,15 @@ function UiConfigReadCustomMessageResponseToJSONTyped(value, ignoreDiscriminator return value; } return { + 'active': value['active'], + 'authenticated': value['authenticated'], + 'end_time': value['endTime'] == null ? undefined : ((value['endTime']).toISOString()), 'id': value['id'], + 'link': value['link'], + 'message': value['message'], + 'options': value['options'], + 'start_time': value['startTime'] == null ? undefined : ((value['startTime']).toISOString()), + 'title': value['title'], + 'type': value['type'], }; } diff --git a/ui/api-client/dist/models/UiConfigUpdateCustomMessageResponse.d.ts b/ui/api-client/dist/models/UiConfigUpdateCustomMessageResponse.d.ts index 05c2d24794..a5051f09c6 100644 --- a/ui/api-client/dist/models/UiConfigUpdateCustomMessageResponse.d.ts +++ b/ui/api-client/dist/models/UiConfigUpdateCustomMessageResponse.d.ts @@ -15,6 +15,12 @@ * @interface UiConfigUpdateCustomMessageResponse */ export interface UiConfigUpdateCustomMessageResponse { + /** + * + * @type {boolean} + * @memberof UiConfigUpdateCustomMessageResponse + */ + active?: boolean; /** * * @type {boolean} diff --git a/ui/api-client/dist/models/UiConfigUpdateCustomMessageResponse.js b/ui/api-client/dist/models/UiConfigUpdateCustomMessageResponse.js index f2e4ecbd49..d8b9ca6f48 100644 --- a/ui/api-client/dist/models/UiConfigUpdateCustomMessageResponse.js +++ b/ui/api-client/dist/models/UiConfigUpdateCustomMessageResponse.js @@ -32,6 +32,7 @@ function UiConfigUpdateCustomMessageResponseFromJSONTyped(json, ignoreDiscrimina return json; } return { + 'active': json['active'] == null ? undefined : json['active'], 'authenticated': json['authenticated'] == null ? undefined : json['authenticated'], 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])), 'id': json['id'] == null ? undefined : json['id'], @@ -51,6 +52,7 @@ function UiConfigUpdateCustomMessageResponseToJSONTyped(value, ignoreDiscriminat return value; } return { + 'active': value['active'], 'authenticated': value['authenticated'], 'end_time': value['endTime'] == null ? undefined : ((value['endTime']).toISOString()), 'id': value['id'], diff --git a/ui/api-client/dist/models/index.d.ts b/ui/api-client/dist/models/index.d.ts index ead674d1ee..3f3a8d034e 100644 --- a/ui/api-client/dist/models/index.d.ts +++ b/ui/api-client/dist/models/index.d.ts @@ -123,6 +123,7 @@ export * from './GenerateRandomWithSourceAndBytesRequest'; export * from './GenerateRandomWithSourceAndBytesResponse'; export * from './GenerateRandomWithSourceRequest'; export * from './GenerateRandomWithSourceResponse'; +export * from './GenerateUtilizationReportResponse'; export * from './GithubConfigureRequest'; export * from './GithubLoginRequest'; export * from './GithubWriteTeamMappingRequest'; @@ -735,7 +736,7 @@ export * from './TransitSignWithAlgorithmRequest'; export * from './TransitTrimKeyRequest'; export * from './TransitVerifyRequest'; export * from './TransitVerifyWithAlgorithmRequest'; -export * from './UiConfigDeleteCustomMessageResponse'; +export * from './UiConfigListCustomMessagesResponse'; export * from './UiConfigReadCustomMessageResponse'; export * from './UiConfigUpdateCustomMessageRequest'; export * from './UiConfigUpdateCustomMessageResponse'; diff --git a/ui/api-client/dist/models/index.js b/ui/api-client/dist/models/index.js index 54dc25f4f6..7fa012fde8 100644 --- a/ui/api-client/dist/models/index.js +++ b/ui/api-client/dist/models/index.js @@ -141,6 +141,7 @@ __exportStar(require("./GenerateRandomWithSourceAndBytesRequest"), exports); __exportStar(require("./GenerateRandomWithSourceAndBytesResponse"), exports); __exportStar(require("./GenerateRandomWithSourceRequest"), exports); __exportStar(require("./GenerateRandomWithSourceResponse"), exports); +__exportStar(require("./GenerateUtilizationReportResponse"), exports); __exportStar(require("./GithubConfigureRequest"), exports); __exportStar(require("./GithubLoginRequest"), exports); __exportStar(require("./GithubWriteTeamMappingRequest"), exports); @@ -753,7 +754,7 @@ __exportStar(require("./TransitSignWithAlgorithmRequest"), exports); __exportStar(require("./TransitTrimKeyRequest"), exports); __exportStar(require("./TransitVerifyRequest"), exports); __exportStar(require("./TransitVerifyWithAlgorithmRequest"), exports); -__exportStar(require("./UiConfigDeleteCustomMessageResponse"), exports); +__exportStar(require("./UiConfigListCustomMessagesResponse"), exports); __exportStar(require("./UiConfigReadCustomMessageResponse"), exports); __exportStar(require("./UiConfigUpdateCustomMessageRequest"), exports); __exportStar(require("./UiConfigUpdateCustomMessageResponse"), exports); diff --git a/ui/api-client/dist/runtime.d.ts b/ui/api-client/dist/runtime.d.ts index b6bf707005..d4880b9abf 100644 --- a/ui/api-client/dist/runtime.d.ts +++ b/ui/api-client/dist/runtime.d.ts @@ -159,17 +159,17 @@ export interface ApiResponse { export interface VoidResponse { auth: unknown; data: unknown; - lease_duration: number; - lease_id: string; - mount_type: string; + leaseDuration: number; + leaseId: string; + mountType: string; renewable: boolean; - request_id: string; + requestId: string; warnings: Array | null; - wrap_info: { + wrapInfo: { accessor: string; - creation_path: string; - creation_time: string; - wrapped_accessor: string; + creationPath: string; + creationTime: string; + wrappedAccessor: string; token: string; ttl: number; } | null; @@ -177,6 +177,7 @@ export interface VoidResponse { export interface ResponseTransformer { (json: any): T; } +export declare function camelizeResponseKeys(json: any): any; export declare class JSONApiResponse { raw: Response; private transformer; diff --git a/ui/api-client/dist/runtime.js b/ui/api-client/dist/runtime.js index c4bc1ced95..14815707df 100644 --- a/ui/api-client/dist/runtime.js +++ b/ui/api-client/dist/runtime.js @@ -27,6 +27,7 @@ exports.querystring = querystring; exports.exists = exists; exports.mapValues = mapValues; exports.canConsumeForm = canConsumeForm; +exports.camelizeResponseKeys = camelizeResponseKeys; exports.BASE_PATH = "http://localhost".replace(/\/+$/, ""); class Configuration { constructor(configuration = {}) { @@ -297,6 +298,28 @@ function canConsumeForm(consumes) { } return false; } +function camelizeResponseKeys(json) { + const camelizeKeys = (json) => { + const notAnObject = (obj) => Object.prototype.toString.call(obj) !== '[object Object]'; + if (notAnObject(json)) { + return json; + } + if (Array.isArray(json)) { + return json.map(camelizeKeys); + } + return Object.keys(json).reduce((convertedJson, key) => { + const value = json[key]; + const convertedValue = notAnObject(value) ? value : camelizeKeys(value); + const convertedKey = key.split('_').reduce((str, segment, index) => { + const capitalized = index ? segment.charAt(0).toUpperCase() + segment.slice(1) : segment; + return str.concat(capitalized); + }, ''); + convertedJson[convertedKey] = convertedValue; + return convertedJson; + }, {}); + }; + return camelizeKeys(json); +} class JSONApiResponse { constructor(raw, transformer = (jsonValue) => jsonValue) { this.raw = raw; @@ -305,7 +328,8 @@ class JSONApiResponse { value() { return __awaiter(this, void 0, void 0, function* () { const response = yield this.raw.json(); - return this.transformer(response.data); + const transformed = this.transformer(response.data); + return camelizeResponseKeys(transformed); }); } } @@ -316,7 +340,9 @@ class VoidApiResponse { } value() { return __awaiter(this, void 0, void 0, function* () { - return yield this.raw.json(); + var _a; + const response = yield ((_a = this.raw) === null || _a === void 0 ? void 0 : _a.json()); + return camelizeResponseKeys(response); }); } } diff --git a/ui/api-client/src/apis/SystemApi.ts b/ui/api-client/src/apis/SystemApi.ts index b2cff0f9ad..b3b330d77a 100644 --- a/ui/api-client/src/apis/SystemApi.ts +++ b/ui/api-client/src/apis/SystemApi.ts @@ -43,6 +43,7 @@ import type { GenerateRandomWithSourceAndBytesResponse, GenerateRandomWithSourceRequest, GenerateRandomWithSourceResponse, + GenerateUtilizationReportResponse, HaStatusResponse, InitializeRequest, InternalClientActivityConfigureRequest, @@ -231,7 +232,7 @@ import type { SystemWriteSyncGithubAppsNameResponse, SystemWriteUtilizationRequest, SystemWriteUtilizationResponse, - UiConfigDeleteCustomMessageResponse, + UiConfigListCustomMessagesResponse, UiConfigReadCustomMessageResponse, UiConfigUpdateCustomMessageRequest, UiConfigUpdateCustomMessageResponse, @@ -303,6 +304,8 @@ import { GenerateRandomWithSourceRequestToJSON, GenerateRandomWithSourceResponseFromJSON, GenerateRandomWithSourceResponseToJSON, + GenerateUtilizationReportResponseFromJSON, + GenerateUtilizationReportResponseToJSON, HaStatusResponseFromJSON, HaStatusResponseToJSON, InitializeRequestFromJSON, @@ -679,8 +682,8 @@ import { SystemWriteUtilizationRequestToJSON, SystemWriteUtilizationResponseFromJSON, SystemWriteUtilizationResponseToJSON, - UiConfigDeleteCustomMessageResponseFromJSON, - UiConfigDeleteCustomMessageResponseToJSON, + UiConfigListCustomMessagesResponseFromJSON, + UiConfigListCustomMessagesResponseToJSON, UiConfigReadCustomMessageResponseFromJSON, UiConfigReadCustomMessageResponseToJSON, UiConfigUpdateCustomMessageRequestFromJSON, @@ -1684,6 +1687,9 @@ export interface SystemApiUiConfigDeleteCustomMessageRequest { export interface SystemApiUiConfigListCustomMessagesRequest { list: UiConfigListCustomMessagesListEnum; + active?: boolean; + authenticated?: boolean; + type?: string; } export interface SystemApiUiConfigReadCustomMessageRequest { @@ -2875,6 +2881,30 @@ export class SystemApi extends runtime.BaseAPI { return await response.value(); } + /** + */ + async generateUtilizationReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/sys/utilization-report`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GenerateUtilizationReportResponseFromJSON(jsonValue)); + } + + /** + */ + async generateUtilizationReport(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.generateUtilizationReportRaw(initOverrides); + return await response.value(); + } + /** * Check the HA status of a Vault cluster */ @@ -9932,30 +9962,6 @@ export class SystemApi extends runtime.BaseAPI { return await response.value(); } - /** - */ - async systemReadUtilizationReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/sys/utilization-report`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async systemReadUtilizationReport(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.systemReadUtilizationReportRaw(initOverrides); - return await response.value(); - } - /** * Configure control group global settings. */ @@ -12505,7 +12511,7 @@ export class SystemApi extends runtime.BaseAPI { /** * Delete custom message */ - async uiConfigDeleteCustomMessageRaw(requestParameters: SystemApiUiConfigDeleteCustomMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async uiConfigDeleteCustomMessageRaw(requestParameters: SystemApiUiConfigDeleteCustomMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { throw new runtime.RequiredError( 'id', @@ -12524,13 +12530,13 @@ export class SystemApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => UiConfigDeleteCustomMessageResponseFromJSON(jsonValue)); + return new runtime.VoidApiResponse(response); } /** * Delete custom message */ - async uiConfigDeleteCustomMessage(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async uiConfigDeleteCustomMessage(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.uiConfigDeleteCustomMessageRaw({ id: id }, initOverrides); return await response.value(); } @@ -12538,7 +12544,7 @@ export class SystemApi extends runtime.BaseAPI { /** * Lists custom messages */ - async uiConfigListCustomMessagesRaw(requestParameters: SystemApiUiConfigListCustomMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async uiConfigListCustomMessagesRaw(requestParameters: SystemApiUiConfigListCustomMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['list'] == null) { throw new runtime.RequiredError( 'list', @@ -12548,10 +12554,22 @@ export class SystemApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['active'] != null) { + queryParameters['active'] = requestParameters['active']; + } + + if (requestParameters['authenticated'] != null) { + queryParameters['authenticated'] = requestParameters['authenticated']; + } + if (requestParameters['list'] != null) { queryParameters['list'] = requestParameters['list']; } + if (requestParameters['type'] != null) { + queryParameters['type'] = requestParameters['type']; + } + const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ @@ -12561,14 +12579,14 @@ export class SystemApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => UiConfigListCustomMessagesResponseFromJSON(jsonValue)); } /** * Lists custom messages */ - async uiConfigListCustomMessages(list: UiConfigListCustomMessagesListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.uiConfigListCustomMessagesRaw({ list: list }, initOverrides); + async uiConfigListCustomMessages(list: UiConfigListCustomMessagesListEnum, active?: boolean, authenticated?: boolean, type?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.uiConfigListCustomMessagesRaw({ list: list, active: active, authenticated: authenticated, type: type }, initOverrides); return await response.value(); } diff --git a/ui/api-client/src/models/GenerateUtilizationReportResponse.ts b/ui/api-client/src/models/GenerateUtilizationReportResponse.ts new file mode 100644 index 0000000000..0d0c873d3d --- /dev/null +++ b/ui/api-client/src/models/GenerateUtilizationReportResponse.ts @@ -0,0 +1,137 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateUtilizationReportResponse + */ +export interface GenerateUtilizationReportResponse { + /** + * A map of auth methods, by type, to the number of mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + authMethods?: object; + /** + * Number of KVv1 secrets across all mounts and namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + kvv1Secrets?: number; + /** + * Number of KVv2 secrets across all mounts and namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + kvv2Secrets?: number; + /** + * A map containing details of lease count quotas, if in use, including total quotas and the status of the global lease count quota, if one is configured. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + leaseCountQuotas?: object; + /** + * A map of all auth methods, by type, to the number of active leases created by auth mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + leasesByAuthMethod?: object; + /** + * Number of namespaces. + * @type {number} + * @memberof GenerateUtilizationReportResponse + */ + namespaces?: number; + /** + * A map containing 'total_roles' and 'total_issuers' for all PKI mounts across all namespaces, if PKI is in use. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + pki?: object; + /** + * A map containing details about replication status. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + replicationStatus?: object; + /** + * A map of secret engines, by type, to the number of mounts of that type across all namespaces. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + secretEngines?: object; + /** + * A map containing 'total_sources' and 'total_destinations' for secret syncs, if configured. + * @type {object} + * @memberof GenerateUtilizationReportResponse + */ + secretSync?: object; +} + +/** + * Check if a given object implements the GenerateUtilizationReportResponse interface. + */ +export function instanceOfGenerateUtilizationReportResponse(value: object): value is GenerateUtilizationReportResponse { + return true; +} + +export function GenerateUtilizationReportResponseFromJSON(json: any): GenerateUtilizationReportResponse { + return GenerateUtilizationReportResponseFromJSONTyped(json, false); +} + +export function GenerateUtilizationReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateUtilizationReportResponse { + if (json == null) { + return json; + } + return { + + 'authMethods': json['auth_methods'] == null ? undefined : json['auth_methods'], + 'kvv1Secrets': json['kvv1_secrets'] == null ? undefined : json['kvv1_secrets'], + 'kvv2Secrets': json['kvv2_secrets'] == null ? undefined : json['kvv2_secrets'], + 'leaseCountQuotas': json['lease_count_quotas'] == null ? undefined : json['lease_count_quotas'], + 'leasesByAuthMethod': json['leases_by_auth_method'] == null ? undefined : json['leases_by_auth_method'], + 'namespaces': json['namespaces'] == null ? undefined : json['namespaces'], + 'pki': json['pki'] == null ? undefined : json['pki'], + 'replicationStatus': json['replication_status'] == null ? undefined : json['replication_status'], + 'secretEngines': json['secret_engines'] == null ? undefined : json['secret_engines'], + 'secretSync': json['secret_sync'] == null ? undefined : json['secret_sync'], + }; +} + +export function GenerateUtilizationReportResponseToJSON(json: any): GenerateUtilizationReportResponse { + return GenerateUtilizationReportResponseToJSONTyped(json, false); +} + +export function GenerateUtilizationReportResponseToJSONTyped(value?: GenerateUtilizationReportResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'auth_methods': value['authMethods'], + 'kvv1_secrets': value['kvv1Secrets'], + 'kvv2_secrets': value['kvv2Secrets'], + 'lease_count_quotas': value['leaseCountQuotas'], + 'leases_by_auth_method': value['leasesByAuthMethod'], + 'namespaces': value['namespaces'], + 'pki': value['pki'], + 'replication_status': value['replicationStatus'], + 'secret_engines': value['secretEngines'], + 'secret_sync': value['secretSync'], + }; +} + diff --git a/ui/api-client/src/models/PkiConfigureUrlsRequest.ts b/ui/api-client/src/models/PkiConfigureUrlsRequest.ts index ebf6ae623f..96df318a5d 100644 --- a/ui/api-client/src/models/PkiConfigureUrlsRequest.ts +++ b/ui/api-client/src/models/PkiConfigureUrlsRequest.ts @@ -25,6 +25,12 @@ export interface PkiConfigureUrlsRequest { * @memberof PkiConfigureUrlsRequest */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiConfigureUrlsRequest + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}', '{{cluster_path}}', and '{{cluster_aia_path}}' are available, but the addresses are not checked for URI validity until issuance time. Using '{{cluster_path}}' requires /config/cluster's 'path' member to be set on all PR Secondary clusters and using '{{cluster_aia_path}}' requires /config/cluster's 'aia_path' member to be set on all PR secondary clusters. * @type {boolean} @@ -63,6 +69,7 @@ export function PkiConfigureUrlsRequestFromJSONTyped(json: any, ignoreDiscrimina return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -81,6 +88,7 @@ export function PkiConfigureUrlsRequestToJSONTyped(value?: PkiConfigureUrlsReque return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/src/models/PkiConfigureUrlsResponse.ts b/ui/api-client/src/models/PkiConfigureUrlsResponse.ts index 56740540bb..a8e8711dd8 100644 --- a/ui/api-client/src/models/PkiConfigureUrlsResponse.ts +++ b/ui/api-client/src/models/PkiConfigureUrlsResponse.ts @@ -25,6 +25,12 @@ export interface PkiConfigureUrlsResponse { * @memberof PkiConfigureUrlsResponse */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiConfigureUrlsResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}' and '{{cluster_path}}' are available, but the addresses are not checked for URI validity until issuance time. This requires /config/cluster's path to be set on all PR Secondary clusters. * @type {boolean} @@ -63,6 +69,7 @@ export function PkiConfigureUrlsResponseFromJSONTyped(json: any, ignoreDiscrimin return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -81,6 +88,7 @@ export function PkiConfigureUrlsResponseToJSONTyped(value?: PkiConfigureUrlsResp return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/src/models/PkiPatchIssuerResponse.ts b/ui/api-client/src/models/PkiPatchIssuerResponse.ts index 7e127636cc..1d02e54e93 100644 --- a/ui/api-client/src/models/PkiPatchIssuerResponse.ts +++ b/ui/api-client/src/models/PkiPatchIssuerResponse.ts @@ -37,6 +37,12 @@ export interface PkiPatchIssuerResponse { * @memberof PkiPatchIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiPatchIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} @@ -161,6 +167,7 @@ export function PkiPatchIssuerResponseFromJSONTyped(json: any, ignoreDiscriminat 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -195,6 +202,7 @@ export function PkiPatchIssuerResponseToJSONTyped(value?: PkiPatchIssuerResponse 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/src/models/PkiReadIssuerResponse.ts b/ui/api-client/src/models/PkiReadIssuerResponse.ts index cefabd6789..a3822f0135 100644 --- a/ui/api-client/src/models/PkiReadIssuerResponse.ts +++ b/ui/api-client/src/models/PkiReadIssuerResponse.ts @@ -37,6 +37,12 @@ export interface PkiReadIssuerResponse { * @memberof PkiReadIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiReadIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} @@ -161,6 +167,7 @@ export function PkiReadIssuerResponseFromJSONTyped(json: any, ignoreDiscriminato 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -195,6 +202,7 @@ export function PkiReadIssuerResponseToJSONTyped(value?: PkiReadIssuerResponse | 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/src/models/PkiReadUrlsConfigurationResponse.ts b/ui/api-client/src/models/PkiReadUrlsConfigurationResponse.ts index b6d6ee2a94..157a6ba4d8 100644 --- a/ui/api-client/src/models/PkiReadUrlsConfigurationResponse.ts +++ b/ui/api-client/src/models/PkiReadUrlsConfigurationResponse.ts @@ -25,6 +25,12 @@ export interface PkiReadUrlsConfigurationResponse { * @memberof PkiReadUrlsConfigurationResponse */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiReadUrlsConfigurationResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether or not to enable templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}' and '{{cluster_path}}' are available, but the addresses are not checked for URI validity until issuance time. This requires /config/cluster's path to be set on all PR Secondary clusters. * @type {boolean} @@ -63,6 +69,7 @@ export function PkiReadUrlsConfigurationResponseFromJSONTyped(json: any, ignoreD return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'], 'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], 'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], @@ -81,6 +88,7 @@ export function PkiReadUrlsConfigurationResponseToJSONTyped(value?: PkiReadUrlsC return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'enable_templating': value['enableTemplating'], 'issuing_certificates': value['issuingCertificates'], 'ocsp_servers': value['ocspServers'], diff --git a/ui/api-client/src/models/PkiRevokeIssuerResponse.ts b/ui/api-client/src/models/PkiRevokeIssuerResponse.ts index 5017bde957..2479209e26 100644 --- a/ui/api-client/src/models/PkiRevokeIssuerResponse.ts +++ b/ui/api-client/src/models/PkiRevokeIssuerResponse.ts @@ -37,6 +37,12 @@ export interface PkiRevokeIssuerResponse { * @memberof PkiRevokeIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiRevokeIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} @@ -161,6 +167,7 @@ export function PkiRevokeIssuerResponseFromJSONTyped(json: any, ignoreDiscrimina 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -195,6 +202,7 @@ export function PkiRevokeIssuerResponseToJSONTyped(value?: PkiRevokeIssuerRespon 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/src/models/PkiWriteIssuerRequest.ts b/ui/api-client/src/models/PkiWriteIssuerRequest.ts index 9ee7342d24..64d91d20f6 100644 --- a/ui/api-client/src/models/PkiWriteIssuerRequest.ts +++ b/ui/api-client/src/models/PkiWriteIssuerRequest.ts @@ -25,6 +25,12 @@ export interface PkiWriteIssuerRequest { * @memberof PkiWriteIssuerRequest */ crlDistributionPoints?: Array; + /** + * Comma-separated list of URLs to be used for the Delta CRL distribution points attribute, also known as Freshest CRL distribution points attribute. See also RFC 5280 Section 4.2.1.15. + * @type {Array} + * @memberof PkiWriteIssuerRequest + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} @@ -117,6 +123,7 @@ export function PkiWriteIssuerRequestFromJSONTyped(json: any, ignoreDiscriminato return { 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -144,6 +151,7 @@ export function PkiWriteIssuerRequestToJSONTyped(value?: PkiWriteIssuerRequest | return { 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/src/models/PkiWriteIssuerResponse.ts b/ui/api-client/src/models/PkiWriteIssuerResponse.ts index c72c7bc973..4101ab959b 100644 --- a/ui/api-client/src/models/PkiWriteIssuerResponse.ts +++ b/ui/api-client/src/models/PkiWriteIssuerResponse.ts @@ -37,6 +37,12 @@ export interface PkiWriteIssuerResponse { * @memberof PkiWriteIssuerResponse */ crlDistributionPoints?: Array; + /** + * Delta CRL Distribution Points + * @type {Array} + * @memberof PkiWriteIssuerResponse + */ + deltaCrlDistributionPoints?: Array; /** * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) * @type {boolean} @@ -161,6 +167,7 @@ export function PkiWriteIssuerResponseFromJSONTyped(json: any, ignoreDiscriminat 'caChain': json['ca_chain'] == null ? undefined : json['ca_chain'], 'certificate': json['certificate'] == null ? undefined : json['certificate'], 'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + 'deltaCrlDistributionPoints': json['delta_crl_distribution_points'] == null ? undefined : json['delta_crl_distribution_points'], 'disableCriticalExtensionChecks': json['disable_critical_extension_checks'] == null ? undefined : json['disable_critical_extension_checks'], 'disableNameChecks': json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], 'disableNameConstraintChecks': json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], @@ -195,6 +202,7 @@ export function PkiWriteIssuerResponseToJSONTyped(value?: PkiWriteIssuerResponse 'ca_chain': value['caChain'], 'certificate': value['certificate'], 'crl_distribution_points': value['crlDistributionPoints'], + 'delta_crl_distribution_points': value['deltaCrlDistributionPoints'], 'disable_critical_extension_checks': value['disableCriticalExtensionChecks'], 'disable_name_checks': value['disableNameChecks'], 'disable_name_constraint_checks': value['disableNameConstraintChecks'], diff --git a/ui/api-client/src/models/QueryTokenSelfCapabilitiesRequest.ts b/ui/api-client/src/models/QueryTokenSelfCapabilitiesRequest.ts index 53a144dff8..5559ea91fc 100644 --- a/ui/api-client/src/models/QueryTokenSelfCapabilitiesRequest.ts +++ b/ui/api-client/src/models/QueryTokenSelfCapabilitiesRequest.ts @@ -19,6 +19,12 @@ import { mapValues } from '../runtime'; * @interface QueryTokenSelfCapabilitiesRequest */ export interface QueryTokenSelfCapabilitiesRequest { + /** + * Namespace for which capabilities are being queried. + * @type {string} + * @memberof QueryTokenSelfCapabilitiesRequest + */ + namespace?: string; /** * Use 'paths' instead. * @type {Array} @@ -57,6 +63,7 @@ export function QueryTokenSelfCapabilitiesRequestFromJSONTyped(json: any, ignore } return { + 'namespace': json['namespace'] == null ? undefined : json['namespace'], 'path': json['path'] == null ? undefined : json['path'], 'paths': json['paths'] == null ? undefined : json['paths'], 'token': json['token'] == null ? undefined : json['token'], @@ -74,6 +81,7 @@ export function QueryTokenSelfCapabilitiesRequestToJSONTyped(value?: QueryTokenS return { + 'namespace': value['namespace'], 'path': value['path'], 'paths': value['paths'], 'token': value['token'], diff --git a/ui/api-client/src/models/SshConfigureCaRequest.ts b/ui/api-client/src/models/SshConfigureCaRequest.ts index 85a1bcea03..69d9ddd546 100644 --- a/ui/api-client/src/models/SshConfigureCaRequest.ts +++ b/ui/api-client/src/models/SshConfigureCaRequest.ts @@ -20,7 +20,7 @@ import { mapValues } from '../runtime'; */ export interface SshConfigureCaRequest { /** - * Generate SSH key pair internally rather than use the private_key and public_key fields. + * Generate SSH key pair internally rather than use the private_key and public_key fields. If managed key config is provided, this field is ignored. * @type {boolean} * @memberof SshConfigureCaRequest */ @@ -37,6 +37,18 @@ export interface SshConfigureCaRequest { * @memberof SshConfigureCaRequest */ keyType?: string; + /** + * The id of the managed key to use. When using a managed key, this field or managed_key_name is required. + * @type {string} + * @memberof SshConfigureCaRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use. When using a managed key, this field or managed_key_id is required. + * @type {string} + * @memberof SshConfigureCaRequest + */ + managedKeyName?: string; /** * Private half of the SSH key that will be used to sign certificates. * @type {string} @@ -71,6 +83,8 @@ export function SshConfigureCaRequestFromJSONTyped(json: any, ignoreDiscriminato 'generateSigningKey': json['generate_signing_key'] == null ? undefined : json['generate_signing_key'], 'keyBits': json['key_bits'] == null ? undefined : json['key_bits'], 'keyType': json['key_type'] == null ? undefined : json['key_type'], + 'managedKeyId': json['managed_key_id'] == null ? undefined : json['managed_key_id'], + 'managedKeyName': json['managed_key_name'] == null ? undefined : json['managed_key_name'], 'privateKey': json['private_key'] == null ? undefined : json['private_key'], 'publicKey': json['public_key'] == null ? undefined : json['public_key'], }; @@ -90,6 +104,8 @@ export function SshConfigureCaRequestToJSONTyped(value?: SshConfigureCaRequest | 'generate_signing_key': value['generateSigningKey'], 'key_bits': value['keyBits'], 'key_type': value['keyType'], + 'managed_key_id': value['managedKeyId'], + 'managed_key_name': value['managedKeyName'], 'private_key': value['privateKey'], 'public_key': value['publicKey'], }; diff --git a/ui/api-client/src/models/UiConfigListCustomMessagesResponse.ts b/ui/api-client/src/models/UiConfigListCustomMessagesResponse.ts new file mode 100644 index 0000000000..5ad1042c6a --- /dev/null +++ b/ui/api-client/src/models/UiConfigListCustomMessagesResponse.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UiConfigListCustomMessagesResponse + */ +export interface UiConfigListCustomMessagesResponse { + /** + * + * @type {object} + * @memberof UiConfigListCustomMessagesResponse + */ + keyInfo?: object; + /** + * + * @type {Array} + * @memberof UiConfigListCustomMessagesResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the UiConfigListCustomMessagesResponse interface. + */ +export function instanceOfUiConfigListCustomMessagesResponse(value: object): value is UiConfigListCustomMessagesResponse { + return true; +} + +export function UiConfigListCustomMessagesResponseFromJSON(json: any): UiConfigListCustomMessagesResponse { + return UiConfigListCustomMessagesResponseFromJSONTyped(json, false); +} + +export function UiConfigListCustomMessagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UiConfigListCustomMessagesResponse { + if (json == null) { + return json; + } + return { + + 'keyInfo': json['key_info'] == null ? undefined : json['key_info'], + 'keys': json['keys'] == null ? undefined : json['keys'], + }; +} + +export function UiConfigListCustomMessagesResponseToJSON(json: any): UiConfigListCustomMessagesResponse { + return UiConfigListCustomMessagesResponseToJSONTyped(json, false); +} + +export function UiConfigListCustomMessagesResponseToJSONTyped(value?: UiConfigListCustomMessagesResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'key_info': value['keyInfo'], + 'keys': value['keys'], + }; +} + diff --git a/ui/api-client/src/models/UiConfigReadCustomMessageResponse.ts b/ui/api-client/src/models/UiConfigReadCustomMessageResponse.ts index 197b20e208..9c19a5661a 100644 --- a/ui/api-client/src/models/UiConfigReadCustomMessageResponse.ts +++ b/ui/api-client/src/models/UiConfigReadCustomMessageResponse.ts @@ -19,12 +19,66 @@ import { mapValues } from '../runtime'; * @interface UiConfigReadCustomMessageResponse */ export interface UiConfigReadCustomMessageResponse { + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + active?: boolean; + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + authenticated?: boolean; + /** + * + * @type {Date} + * @memberof UiConfigReadCustomMessageResponse + */ + endTime?: Date; /** * * @type {string} * @memberof UiConfigReadCustomMessageResponse */ id?: string; + /** + * + * @type {object} + * @memberof UiConfigReadCustomMessageResponse + */ + link?: object; + /** + * + * @type {string} + * @memberof UiConfigReadCustomMessageResponse + */ + message?: string; + /** + * + * @type {object} + * @memberof UiConfigReadCustomMessageResponse + */ + options?: object; + /** + * + * @type {Date} + * @memberof UiConfigReadCustomMessageResponse + */ + startTime?: Date; + /** + * + * @type {string} + * @memberof UiConfigReadCustomMessageResponse + */ + title?: string; + /** + * + * @type {boolean} + * @memberof UiConfigReadCustomMessageResponse + */ + type?: boolean; } /** @@ -44,7 +98,16 @@ export function UiConfigReadCustomMessageResponseFromJSONTyped(json: any, ignore } return { + 'active': json['active'] == null ? undefined : json['active'], + 'authenticated': json['authenticated'] == null ? undefined : json['authenticated'], + 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])), 'id': json['id'] == null ? undefined : json['id'], + 'link': json['link'] == null ? undefined : json['link'], + 'message': json['message'] == null ? undefined : json['message'], + 'options': json['options'] == null ? undefined : json['options'], + 'startTime': json['start_time'] == null ? undefined : (new Date(json['start_time'])), + 'title': json['title'] == null ? undefined : json['title'], + 'type': json['type'] == null ? undefined : json['type'], }; } @@ -59,7 +122,16 @@ export function UiConfigReadCustomMessageResponseToJSONTyped(value?: UiConfigRea return { + 'active': value['active'], + 'authenticated': value['authenticated'], + 'end_time': value['endTime'] == null ? undefined : ((value['endTime']).toISOString()), 'id': value['id'], + 'link': value['link'], + 'message': value['message'], + 'options': value['options'], + 'start_time': value['startTime'] == null ? undefined : ((value['startTime']).toISOString()), + 'title': value['title'], + 'type': value['type'], }; } diff --git a/ui/api-client/src/models/UiConfigUpdateCustomMessageResponse.ts b/ui/api-client/src/models/UiConfigUpdateCustomMessageResponse.ts index 5a612d6864..891bcf6f01 100644 --- a/ui/api-client/src/models/UiConfigUpdateCustomMessageResponse.ts +++ b/ui/api-client/src/models/UiConfigUpdateCustomMessageResponse.ts @@ -19,6 +19,12 @@ import { mapValues } from '../runtime'; * @interface UiConfigUpdateCustomMessageResponse */ export interface UiConfigUpdateCustomMessageResponse { + /** + * + * @type {boolean} + * @memberof UiConfigUpdateCustomMessageResponse + */ + active?: boolean; /** * * @type {boolean} @@ -92,6 +98,7 @@ export function UiConfigUpdateCustomMessageResponseFromJSONTyped(json: any, igno } return { + 'active': json['active'] == null ? undefined : json['active'], 'authenticated': json['authenticated'] == null ? undefined : json['authenticated'], 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])), 'id': json['id'] == null ? undefined : json['id'], @@ -115,6 +122,7 @@ export function UiConfigUpdateCustomMessageResponseToJSONTyped(value?: UiConfigU return { + 'active': value['active'], 'authenticated': value['authenticated'], 'end_time': value['endTime'] == null ? undefined : ((value['endTime']).toISOString()), 'id': value['id'], diff --git a/ui/api-client/src/models/index.ts b/ui/api-client/src/models/index.ts index 45ef104b71..fa4bb4b641 100644 --- a/ui/api-client/src/models/index.ts +++ b/ui/api-client/src/models/index.ts @@ -125,6 +125,7 @@ export * from './GenerateRandomWithSourceAndBytesRequest'; export * from './GenerateRandomWithSourceAndBytesResponse'; export * from './GenerateRandomWithSourceRequest'; export * from './GenerateRandomWithSourceResponse'; +export * from './GenerateUtilizationReportResponse'; export * from './GithubConfigureRequest'; export * from './GithubLoginRequest'; export * from './GithubWriteTeamMappingRequest'; @@ -737,7 +738,7 @@ export * from './TransitSignWithAlgorithmRequest'; export * from './TransitTrimKeyRequest'; export * from './TransitVerifyRequest'; export * from './TransitVerifyWithAlgorithmRequest'; -export * from './UiConfigDeleteCustomMessageResponse'; +export * from './UiConfigListCustomMessagesResponse'; export * from './UiConfigReadCustomMessageResponse'; export * from './UiConfigUpdateCustomMessageRequest'; export * from './UiConfigUpdateCustomMessageResponse'; diff --git a/ui/api-client/src/runtime.ts b/ui/api-client/src/runtime.ts index cd36b6381a..9d1f7a967f 100644 --- a/ui/api-client/src/runtime.ts +++ b/ui/api-client/src/runtime.ts @@ -399,17 +399,17 @@ export interface ApiResponse { export interface VoidResponse { auth: unknown; data: unknown; - lease_duration: number; - lease_id: string; - mount_type: string; + leaseDuration: number; + leaseId: string; + mountType: string; renewable: boolean; - request_id: string; + requestId: string; warnings: Array | null; - wrap_info: { + wrapInfo: { accessor: string; - creation_path: string; - creation_time: string; - wrapped_accessor: string; + creationPath: string; + creationTime: string; + wrappedAccessor: string; token: string; ttl: number; } | null; @@ -419,19 +419,46 @@ export interface ResponseTransformer { (json: any): T; } +export function camelizeResponseKeys(json: any) { + const camelizeKeys = (json: any) => { + const notAnObject = (obj: unknown) => Object.prototype.toString.call(obj) !== '[object Object]'; + + if (notAnObject(json)) { + return json; + } + if (Array.isArray(json)) { + return json.map(camelizeKeys); + } + return Object.keys(json).reduce((convertedJson: Record, key) => { + const value = json[key]; + const convertedValue = notAnObject(value) ? value : camelizeKeys(value); + const convertedKey = key.split('_').reduce((str, segment, index) => { + const capitalized = index ? segment.charAt(0).toUpperCase() + segment.slice(1) : segment; + return str.concat(capitalized); + }, ''); + convertedJson[convertedKey] = convertedValue; + return convertedJson; + }, {}); + }; + + return camelizeKeys(json); +} + export class JSONApiResponse { constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} async value(): Promise { const response = await this.raw.json(); - return this.transformer(response.data); + const transformed = this.transformer(response.data); + return camelizeResponseKeys(transformed); } } export class VoidApiResponse { constructor(public raw: Response) {} async value(): Promise { - return await this.raw.json(); + const response = await this.raw?.json(); + return camelizeResponseKeys(response); } } diff --git a/ui/app/components/auth-form.js b/ui/app/components/auth-form.js index 68bbb2473b..a2050ffa2e 100644 --- a/ui/app/components/auth-form.js +++ b/ui/app/components/auth-form.js @@ -187,7 +187,7 @@ export default Component.extend(DEFAULTS, { this.set('selectedAuth', 'token'); try { const response = yield this.api.sys.unwrap({}, this.api.buildHeaders({ token })); - this.set('token', response.auth.client_token); + this.set('token', response.auth.clientToken); this.send('doSubmit'); } catch (e) { const error = yield apiErrorMessage(e); diff --git a/ui/app/components/tools/rewrap.ts b/ui/app/components/tools/rewrap.ts index bacd98a438..6f8836db2a 100644 --- a/ui/app/components/tools/rewrap.ts +++ b/ui/app/components/tools/rewrap.ts @@ -42,8 +42,8 @@ export default class ToolsRewrap extends Component { const data = { token: this.originalToken.trim() }; try { - const { wrap_info } = await this.api.sys.rewrap(data); - this.rewrappedToken = wrap_info?.token || ''; + const { wrapInfo } = await this.api.sys.rewrap(data); + this.rewrappedToken = wrapInfo?.token || ''; this.flashMessages.success('Rewrap was successful.'); } catch (error) { this.errorMessage = await apiErrorMessage(error); diff --git a/ui/app/components/tools/unwrap.ts b/ui/app/components/tools/unwrap.ts index 524e96cbe0..4efca96bcc 100644 --- a/ui/app/components/tools/unwrap.ts +++ b/ui/app/components/tools/unwrap.ts @@ -47,10 +47,10 @@ export default class ToolsUnwrap extends Component { const resp = await this.api.sys.unwrap(data); this.unwrapData = (resp && resp.data) || resp.auth; this.unwrapDetails = { - 'Request ID': resp.request_id, - 'Lease ID': resp.lease_id || 'None', + 'Request ID': resp.requestId, + 'Lease ID': resp.leaseId || 'None', Renewable: resp.renewable, - 'Lease Duration': resp.lease_duration || 'None', + 'Lease Duration': resp.leaseDuration || 'None', }; this.flashMessages.success('Unwrap was successful.'); } catch (error) { diff --git a/ui/app/components/tools/wrap.ts b/ui/app/components/tools/wrap.ts index b78d03bcc4..c7c30826ad 100644 --- a/ui/app/components/tools/wrap.ts +++ b/ui/app/components/tools/wrap.ts @@ -83,8 +83,8 @@ export default class ToolsWrap extends Component { const wrap = this.wrapTTL || ''; try { - const { wrap_info } = await this.api.sys.wrap(data, this.api.buildHeaders({ wrap })); - this.token = wrap_info?.token || ''; + const { wrapInfo } = await this.api.sys.wrap(data, this.api.buildHeaders({ wrap })); + this.token = wrapInfo?.token || ''; this.flashMessages.success('Wrap was successful.'); } catch (error) { this.errorMessage = await apiErrorMessage(error); diff --git a/ui/app/components/usage/page.ts b/ui/app/components/usage/page.ts index 5ce92bcb09..8fb42bc1b2 100644 --- a/ui/app/components/usage/page.ts +++ b/ui/app/components/usage/page.ts @@ -32,8 +32,8 @@ export default class UsagePage extends Component { handleFetchUsageData: getUsageDataFunction = async () => { //TODO: Update client with typed response after the API is updated https://hashicorp.atlassian.net/browse/VAULT-35108 - const response = await this.api.sys.systemReadUtilizationReport(); - const data = response.data as UsageDashboardData; + const response = await this.api.sys.generateUtilizationReport(); + const data = response as UsageDashboardData; // Replace engine names with display names if available allEngines().forEach((engine) => { if (engine.type in data.secret_engines) { diff --git a/ui/app/services/capabilities.ts b/ui/app/services/capabilities.ts index e6f92732ff..d413db4c90 100644 --- a/ui/app/services/capabilities.ts +++ b/ui/app/services/capabilities.ts @@ -81,6 +81,9 @@ export default class CapabilitiesService extends Service { paths: paths.map((path) => this.relativeNamespacePath(path)), namespace: sanitizePath(this.namespace.userRootNamespace), }; + if (!payload.namespace) { + delete payload.namespace; + } try { const { data } = await this.api.sys.queryTokenSelfCapabilities(payload); diff --git a/ui/tests/acceptance/tools-test.js b/ui/tests/acceptance/tools-test.js index d969b4528e..262b0e44c8 100644 --- a/ui/tests/acceptance/tools-test.js +++ b/ui/tests/acceptance/tools-test.js @@ -8,7 +8,7 @@ import { module, test } from 'qunit'; import { setupApplicationTest } from 'ember-qunit'; import { toolsActions } from 'vault/helpers/tools-actions'; import { login } from 'vault/tests/helpers/auth/auth-helpers'; -import { capitalize } from '@ember/string'; +import { capitalize, camelize } from '@ember/string'; import codemirror from 'vault/tests/helpers/codemirror'; import { setupMirage } from 'ember-cli-mirage/test-support'; import { GENERAL } from 'vault/tests/helpers/general-selectors'; @@ -164,13 +164,13 @@ module('Acceptance | tools', function (hooks) { await fillIn(TS.toolsInput('unwrap-token'), 'sometoken'); await click(TS.submit); - await waitUntil(() => find('.CodeMirror')); - assert.deepEqual( - JSON.parse(codemirror().getValue()), - AUTH_RESPONSE.auth, - 'unwrapped data equals input data' - ); + + const expected = Object.keys(AUTH_RESPONSE.auth).reduce((obj, auth) => { + obj[camelize(auth)] = AUTH_RESPONSE.auth[auth]; + return obj; + }, {}); + assert.deepEqual(expected, JSON.parse(codemirror().getValue()), 'unwrapped data equals input data'); }); }); diff --git a/ui/tests/integration/components/usage/page/index-test.js b/ui/tests/integration/components/usage/page/index-test.js index 35b6cfdad9..4a7a412f8c 100644 --- a/ui/tests/integration/components/usage/page/index-test.js +++ b/ui/tests/integration/components/usage/page/index-test.js @@ -13,49 +13,45 @@ module('Integration | Component | usage | Page::Usage', function (hooks) { hooks.beforeEach(async function () { this.api = this.owner.lookup('service:api'); - this.systemReadUtilizationReportStub = sinon - .stub(this.api.sys, 'systemReadUtilizationReport') - .resolves({}); + this.generateUtilizationReportStub = sinon.stub(this.api.sys, 'generateUtilizationReport').resolves({}); }); hooks.afterEach(function () { - this.systemReadUtilizationReportStub.restore(); + this.generateUtilizationReportStub.restore(); }); test('it provides the correct fetch function to the dashboard component', async function (assert) { await render(hbs``); - assert.true(this.systemReadUtilizationReportStub.calledOnce, 'fetch function is called on render'); + assert.true(this.generateUtilizationReportStub.calledOnce, 'fetch function is called on render'); }); test('it remaps data to friendly names if available', async function (assert) { - this.systemReadUtilizationReportStub.resolves({ - data: { - auth_methods: { alicloud: 2, cert: 2, userpass: 2, 'unknown-random-method': 1 }, - kvv1_secrets: 15, - kvv2_secrets: 146, - lease_count_quotas: { - global_lease_count_quota: { - capacity: 300000, - count: 244121, - name: 'default', - }, - total_lease_count_quotas: 2, - }, - namespaces: 10, - secrets_sync: 79, - pki: { total_issuers: 2, total_roles: 6 }, - replication_status: { - dr_primary: false, - dr_state: 'disabled', - pr_primary: false, - pr_state: 'enabled', - }, - secret_engines: { - keymgmt: 5, - gcpkms: 10, - pki: 11, - 'unknown-random-engine': 1, + this.generateUtilizationReportStub.resolves({ + auth_methods: { alicloud: 2, cert: 2, userpass: 2, 'unknown-random-method': 1 }, + kvv1_secrets: 15, + kvv2_secrets: 146, + lease_count_quotas: { + global_lease_count_quota: { + capacity: 300000, + count: 244121, + name: 'default', }, + total_lease_count_quotas: 2, + }, + namespaces: 10, + secrets_sync: 79, + pki: { total_issuers: 2, total_roles: 6 }, + replication_status: { + dr_primary: false, + dr_state: 'disabled', + pr_primary: false, + pr_state: 'enabled', + }, + secret_engines: { + keymgmt: 5, + gcpkms: 10, + pki: 11, + 'unknown-random-engine': 1, }, }); await render(hbs``);