From 723738b64054f33f8c39fdd32561289d58e545ab Mon Sep 17 00:00:00 2001 From: kiannaquach <30884335+kiannaquach@users.noreply.github.com> Date: Fri, 19 Jun 2026 15:36:52 +0000 Subject: [PATCH 1/2] auto: openapi spec update --- openapi.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/openapi.json b/openapi.json index 8bad4e3..48a4474 100644 --- a/openapi.json +++ b/openapi.json @@ -21601,7 +21601,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/StandardListResponse" + "$ref": "#/components/schemas/RegistrationListByIdResponse" } } } @@ -72781,6 +72781,23 @@ "entity_id" ] }, + "RegistrationListByIdResponse": { + "type": "object", + "properties": { + "key_info": { + "type": "object", + "description": "Map of registration ID to registration info, including display_name and entity_id.", + "format": "map" + }, + "keys": { + "type": "array", + "description": "List of registration IDs.", + "items": { + "type": "string" + } + } + } + }, "RegistrationUpdateByIdRequest": { "type": "object", "properties": { From b1a623280b3f7691a6b74e563d4d9f998a6b5f98 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Fri, 19 Jun 2026 15:37:40 +0000 Subject: [PATCH 2/2] auto: generated client updates --- .openapi-generator/FILES | 1 + src/apis/SecretsApi.ts | 9 ++- src/models/RegistrationListByIdResponse.ts | 77 ++++++++++++++++++++++ src/models/index.ts | 1 + 4 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 src/models/RegistrationListByIdResponse.ts diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 37836e9..5765c1f 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -635,6 +635,7 @@ src/models/ReadWrappingProperties2Response.ts src/models/ReadWrappingPropertiesRequest.ts src/models/ReadWrappingPropertiesResponse.ts src/models/RegisterCreateRequest.ts +src/models/RegistrationListByIdResponse.ts src/models/RegistrationUpdateByIdRequest.ts src/models/RegistrationUpdateByNameRequest.ts src/models/RekeyAttemptInitializeRequest.ts diff --git a/src/apis/SecretsApi.ts b/src/apis/SecretsApi.ts index e0c2dd7..4f59f9a 100644 --- a/src/apis/SecretsApi.ts +++ b/src/apis/SecretsApi.ts @@ -379,6 +379,7 @@ import type { RabbitMqConfigureLeaseRequest, RabbitMqWriteRoleRequest, RegisterCreateRequest, + RegistrationListByIdResponse, RegistrationUpdateByIdRequest, RegistrationUpdateByNameRequest, SpiffeConfigureRequest, @@ -1179,6 +1180,8 @@ import { RabbitMqWriteRoleRequestToJSON, RegisterCreateRequestFromJSON, RegisterCreateRequestToJSON, + RegistrationListByIdResponseFromJSON, + RegistrationListByIdResponseToJSON, RegistrationUpdateByIdRequestFromJSON, RegistrationUpdateByIdRequestToJSON, RegistrationUpdateByNameRequestFromJSON, @@ -29477,7 +29480,7 @@ export class SecretsApi extends runtime.BaseAPI { /** */ - async registrationListByIdRaw(requestParameters: SecretsApiRegistrationListByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async registrationListByIdRaw(requestParameters: SecretsApiRegistrationListByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['agent_registry_mount_path'] == null) { throw new runtime.RequiredError( 'agent_registry_mount_path', @@ -29508,12 +29511,12 @@ export class SecretsApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => RegistrationListByIdResponseFromJSON(jsonValue)); } /** */ - async registrationListById(agent_registry_mount_path: string, list: SecretsApiRegistrationListByIdListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async registrationListById(agent_registry_mount_path: string, list: SecretsApiRegistrationListByIdListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.registrationListByIdRaw({ agent_registry_mount_path: agent_registry_mount_path, list: list }, initOverrides); return await response.value(); } diff --git a/src/models/RegistrationListByIdResponse.ts b/src/models/RegistrationListByIdResponse.ts new file mode 100644 index 0000000..d1716c1 --- /dev/null +++ b/src/models/RegistrationListByIdResponse.ts @@ -0,0 +1,77 @@ +/** + * Copyright IBM Corp. 2025, 2026 + */ + +/* 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: 3.0.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 RegistrationListByIdResponse + */ +export interface RegistrationListByIdResponse { + /** + * Map of registration ID to registration info, including display_name and entity_id. + * @type {object} + * @memberof RegistrationListByIdResponse + */ + key_info?: object; + /** + * List of registration IDs. + * @type {Array} + * @memberof RegistrationListByIdResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the RegistrationListByIdResponse interface. + */ +export function instanceOfRegistrationListByIdResponse(value: object): value is RegistrationListByIdResponse { + return true; +} + +export function RegistrationListByIdResponseFromJSON(json: any): RegistrationListByIdResponse { + return RegistrationListByIdResponseFromJSONTyped(json, false); +} + +export function RegistrationListByIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistrationListByIdResponse { + if (json == null) { + return json; + } + return { + + 'key_info': json['key_info'] == null ? undefined : json['key_info'], + 'keys': json['keys'] == null ? undefined : json['keys'], + }; +} + +export function RegistrationListByIdResponseToJSON(json: any): RegistrationListByIdResponse { + return RegistrationListByIdResponseToJSONTyped(json, false); +} + +export function RegistrationListByIdResponseToJSONTyped(value?: RegistrationListByIdResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'key_info': value['key_info'], + 'keys': value['keys'], + }; +} + diff --git a/src/models/index.ts b/src/models/index.ts index ba6c577..a2e6860 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -633,6 +633,7 @@ export * from './ReadWrappingProperties2Response'; export * from './ReadWrappingPropertiesRequest'; export * from './ReadWrappingPropertiesResponse'; export * from './RegisterCreateRequest'; +export * from './RegistrationListByIdResponse'; export * from './RegistrationUpdateByIdRequest'; export * from './RegistrationUpdateByNameRequest'; export * from './RekeyAttemptInitializeRequest';