mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
[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
This commit is contained in:
parent
c5c302bd72
commit
3cc24fbecb
@ -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
|
||||
|
||||
25
ui/api-client/dist/apis/SystemApi.d.ts
vendored
25
ui/api-client/dist/apis/SystemApi.d.ts
vendored
File diff suppressed because one or more lines are too long
63
ui/api-client/dist/apis/SystemApi.js
vendored
63
ui/api-client/dist/apis/SystemApi.js
vendored
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
25
ui/api-client/dist/esm/apis/SystemApi.d.ts
vendored
25
ui/api-client/dist/esm/apis/SystemApi.d.ts
vendored
File diff suppressed because one or more lines are too long
65
ui/api-client/dist/esm/apis/SystemApi.js
vendored
65
ui/api-client/dist/esm/apis/SystemApi.js
vendored
File diff suppressed because one or more lines are too long
86
ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.d.ts
vendored
Normal file
86
ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.d.ts
vendored
Normal file
@ -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;
|
||||
59
ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.js
vendored
Normal file
59
ui/api-client/dist/esm/models/GenerateUtilizationReportResponse.js
vendored
Normal file
@ -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'],
|
||||
};
|
||||
}
|
||||
@ -21,6 +21,12 @@ export interface PkiConfigureUrlsRequest {
|
||||
* @memberof PkiConfigureUrlsRequest
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiConfigureUrlsRequest
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -21,6 +21,12 @@ export interface PkiConfigureUrlsResponse {
|
||||
* @memberof PkiConfigureUrlsResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiConfigureUrlsResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -33,6 +33,12 @@ export interface PkiPatchIssuerResponse {
|
||||
* @memberof PkiPatchIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiPatchIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -33,6 +33,12 @@ export interface PkiReadIssuerResponse {
|
||||
* @memberof PkiReadIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiReadIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -21,6 +21,12 @@ export interface PkiReadUrlsConfigurationResponse {
|
||||
* @memberof PkiReadUrlsConfigurationResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiReadUrlsConfigurationResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -33,6 +33,12 @@ export interface PkiRevokeIssuerResponse {
|
||||
* @memberof PkiRevokeIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiRevokeIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -21,6 +21,12 @@ export interface PkiWriteIssuerRequest {
|
||||
* @memberof PkiWriteIssuerRequest
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiWriteIssuerRequest
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -33,6 +33,12 @@ export interface PkiWriteIssuerResponse {
|
||||
* @memberof PkiWriteIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiWriteIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -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<string>}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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'],
|
||||
};
|
||||
|
||||
38
ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.d.ts
vendored
Normal file
38
ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.d.ts
vendored
Normal file
@ -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<string>}
|
||||
* @memberof UiConfigListCustomMessagesResponse
|
||||
*/
|
||||
keys?: Array<string>;
|
||||
}
|
||||
/**
|
||||
* 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;
|
||||
43
ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.js
vendored
Normal file
43
ui/api-client/dist/esm/models/UiConfigListCustomMessagesResponse.js
vendored
Normal file
@ -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'],
|
||||
};
|
||||
}
|
||||
@ -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.
|
||||
|
||||
@ -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'],
|
||||
};
|
||||
}
|
||||
|
||||
@ -15,6 +15,12 @@
|
||||
* @interface UiConfigUpdateCustomMessageResponse
|
||||
*/
|
||||
export interface UiConfigUpdateCustomMessageResponse {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UiConfigUpdateCustomMessageResponse
|
||||
*/
|
||||
active?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
3
ui/api-client/dist/esm/models/index.d.ts
vendored
3
ui/api-client/dist/esm/models/index.d.ts
vendored
@ -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';
|
||||
|
||||
3
ui/api-client/dist/esm/models/index.js
vendored
3
ui/api-client/dist/esm/models/index.js
vendored
@ -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';
|
||||
|
||||
17
ui/api-client/dist/esm/runtime.d.ts
vendored
17
ui/api-client/dist/esm/runtime.d.ts
vendored
@ -159,17 +159,17 @@ export interface ApiResponse<T> {
|
||||
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<string> | 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<T> {
|
||||
(json: any): T;
|
||||
}
|
||||
export declare function camelizeResponseKeys(json: any): any;
|
||||
export declare class JSONApiResponse<T> {
|
||||
raw: Response;
|
||||
private transformer;
|
||||
|
||||
29
ui/api-client/dist/esm/runtime.js
vendored
29
ui/api-client/dist/esm/runtime.js
vendored
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
86
ui/api-client/dist/models/GenerateUtilizationReportResponse.d.ts
vendored
Normal file
86
ui/api-client/dist/models/GenerateUtilizationReportResponse.d.ts
vendored
Normal file
@ -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;
|
||||
66
ui/api-client/dist/models/GenerateUtilizationReportResponse.js
vendored
Normal file
66
ui/api-client/dist/models/GenerateUtilizationReportResponse.js
vendored
Normal file
@ -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'],
|
||||
};
|
||||
}
|
||||
@ -21,6 +21,12 @@ export interface PkiConfigureUrlsRequest {
|
||||
* @memberof PkiConfigureUrlsRequest
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiConfigureUrlsRequest
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -21,6 +21,12 @@ export interface PkiConfigureUrlsResponse {
|
||||
* @memberof PkiConfigureUrlsResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiConfigureUrlsResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -33,6 +33,12 @@ export interface PkiPatchIssuerResponse {
|
||||
* @memberof PkiPatchIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiPatchIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -33,6 +33,12 @@ export interface PkiReadIssuerResponse {
|
||||
* @memberof PkiReadIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiReadIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -21,6 +21,12 @@ export interface PkiReadUrlsConfigurationResponse {
|
||||
* @memberof PkiReadUrlsConfigurationResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiReadUrlsConfigurationResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -33,6 +33,12 @@ export interface PkiRevokeIssuerResponse {
|
||||
* @memberof PkiRevokeIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiRevokeIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -21,6 +21,12 @@ export interface PkiWriteIssuerRequest {
|
||||
* @memberof PkiWriteIssuerRequest
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiWriteIssuerRequest
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -33,6 +33,12 @@ export interface PkiWriteIssuerResponse {
|
||||
* @memberof PkiWriteIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiWriteIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Whether critical extension checks should be performed when issuing certificates. (Enterprise only)
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -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<string>}
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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'],
|
||||
};
|
||||
|
||||
38
ui/api-client/dist/models/UiConfigListCustomMessagesResponse.d.ts
vendored
Normal file
38
ui/api-client/dist/models/UiConfigListCustomMessagesResponse.d.ts
vendored
Normal file
@ -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<string>}
|
||||
* @memberof UiConfigListCustomMessagesResponse
|
||||
*/
|
||||
keys?: Array<string>;
|
||||
}
|
||||
/**
|
||||
* 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;
|
||||
50
ui/api-client/dist/models/UiConfigListCustomMessagesResponse.js
vendored
Normal file
50
ui/api-client/dist/models/UiConfigListCustomMessagesResponse.js
vendored
Normal file
@ -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'],
|
||||
};
|
||||
}
|
||||
@ -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.
|
||||
|
||||
@ -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'],
|
||||
};
|
||||
}
|
||||
|
||||
@ -15,6 +15,12 @@
|
||||
* @interface UiConfigUpdateCustomMessageResponse
|
||||
*/
|
||||
export interface UiConfigUpdateCustomMessageResponse {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UiConfigUpdateCustomMessageResponse
|
||||
*/
|
||||
active?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
|
||||
@ -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'],
|
||||
|
||||
3
ui/api-client/dist/models/index.d.ts
vendored
3
ui/api-client/dist/models/index.d.ts
vendored
@ -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';
|
||||
|
||||
3
ui/api-client/dist/models/index.js
vendored
3
ui/api-client/dist/models/index.js
vendored
@ -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);
|
||||
|
||||
17
ui/api-client/dist/runtime.d.ts
vendored
17
ui/api-client/dist/runtime.d.ts
vendored
@ -159,17 +159,17 @@ export interface ApiResponse<T> {
|
||||
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<string> | 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<T> {
|
||||
(json: any): T;
|
||||
}
|
||||
export declare function camelizeResponseKeys(json: any): any;
|
||||
export declare class JSONApiResponse<T> {
|
||||
raw: Response;
|
||||
private transformer;
|
||||
|
||||
30
ui/api-client/dist/runtime.js
vendored
30
ui/api-client/dist/runtime.js
vendored
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -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<runtime.ApiResponse<GenerateUtilizationReportResponse>> {
|
||||
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<GenerateUtilizationReportResponse> {
|
||||
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<runtime.ApiResponse<runtime.VoidResponse>> {
|
||||
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<runtime.VoidResponse> {
|
||||
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<runtime.ApiResponse<UiConfigDeleteCustomMessageResponse>> {
|
||||
async uiConfigDeleteCustomMessageRaw(requestParameters: SystemApiUiConfigDeleteCustomMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.VoidResponse>> {
|
||||
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<UiConfigDeleteCustomMessageResponse> {
|
||||
async uiConfigDeleteCustomMessage(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.VoidResponse> {
|
||||
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<runtime.ApiResponse<runtime.VoidResponse>> {
|
||||
async uiConfigListCustomMessagesRaw(requestParameters: SystemApiUiConfigListCustomMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UiConfigListCustomMessagesResponse>> {
|
||||
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<runtime.VoidResponse> {
|
||||
const response = await this.uiConfigListCustomMessagesRaw({ list: list }, initOverrides);
|
||||
async uiConfigListCustomMessages(list: UiConfigListCustomMessagesListEnum, active?: boolean, authenticated?: boolean, type?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UiConfigListCustomMessagesResponse> {
|
||||
const response = await this.uiConfigListCustomMessagesRaw({ list: list, active: active, authenticated: authenticated, type: type }, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
|
||||
137
ui/api-client/src/models/GenerateUtilizationReportResponse.ts
Normal file
137
ui/api-client/src/models/GenerateUtilizationReportResponse.ts
Normal file
@ -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'],
|
||||
};
|
||||
}
|
||||
|
||||
@ -25,6 +25,12 @@ export interface PkiConfigureUrlsRequest {
|
||||
* @memberof PkiConfigureUrlsRequest
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiConfigureUrlsRequest
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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'],
|
||||
|
||||
@ -25,6 +25,12 @@ export interface PkiConfigureUrlsResponse {
|
||||
* @memberof PkiConfigureUrlsResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiConfigureUrlsResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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'],
|
||||
|
||||
@ -37,6 +37,12 @@ export interface PkiPatchIssuerResponse {
|
||||
* @memberof PkiPatchIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiPatchIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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'],
|
||||
|
||||
@ -37,6 +37,12 @@ export interface PkiReadIssuerResponse {
|
||||
* @memberof PkiReadIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiReadIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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'],
|
||||
|
||||
@ -25,6 +25,12 @@ export interface PkiReadUrlsConfigurationResponse {
|
||||
* @memberof PkiReadUrlsConfigurationResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiReadUrlsConfigurationResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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'],
|
||||
|
||||
@ -37,6 +37,12 @@ export interface PkiRevokeIssuerResponse {
|
||||
* @memberof PkiRevokeIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiRevokeIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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'],
|
||||
|
||||
@ -25,6 +25,12 @@ export interface PkiWriteIssuerRequest {
|
||||
* @memberof PkiWriteIssuerRequest
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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<string>}
|
||||
* @memberof PkiWriteIssuerRequest
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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'],
|
||||
|
||||
@ -37,6 +37,12 @@ export interface PkiWriteIssuerResponse {
|
||||
* @memberof PkiWriteIssuerResponse
|
||||
*/
|
||||
crlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* Delta CRL Distribution Points
|
||||
* @type {Array<string>}
|
||||
* @memberof PkiWriteIssuerResponse
|
||||
*/
|
||||
deltaCrlDistributionPoints?: Array<string>;
|
||||
/**
|
||||
* 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'],
|
||||
|
||||
@ -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<string>}
|
||||
@ -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'],
|
||||
|
||||
@ -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'],
|
||||
};
|
||||
|
||||
@ -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<string>}
|
||||
* @memberof UiConfigListCustomMessagesResponse
|
||||
*/
|
||||
keys?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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'],
|
||||
};
|
||||
}
|
||||
|
||||
@ -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'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -399,17 +399,17 @@ export interface ApiResponse<T> {
|
||||
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<string> | 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<T> {
|
||||
(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<string, unknown>, 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<T> {
|
||||
constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}
|
||||
|
||||
async value(): Promise<T> {
|
||||
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<VoidResponse> {
|
||||
return await this.raw.json();
|
||||
const response = await this.raw?.json();
|
||||
return camelizeResponseKeys(response);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -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`<Usage::Page />`);
|
||||
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`<Usage::Page />`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user