diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index e774bfe..496e25f 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -117,6 +117,7 @@ src/models/EntityAliasesCreateDuplicatesRequest.ts src/models/EntityBatchDeleteRequest.ts src/models/EntityCreateAliasRequest.ts src/models/EntityCreateRequest.ts +src/models/EntityListAliasesByIdResponse.ts src/models/EntityListByIdResponse.ts src/models/EntityLookUpRequest.ts src/models/EntityMergeRequest.ts @@ -163,6 +164,7 @@ src/models/GoogleCloudWriteRolesetRequest.ts src/models/GoogleCloudWriteStaticAccountRequest.ts src/models/GroupCreateAliasRequest.ts src/models/GroupCreateRequest.ts +src/models/GroupListAliasesByIdResponse.ts src/models/GroupListByIdResponse.ts src/models/GroupLookUpRequest.ts src/models/GroupUpdateAliasByIdRequest.ts diff --git a/openapi.json b/openapi.json index 7f60620..53e5fde 100644 --- a/openapi.json +++ b/openapi.json @@ -8480,7 +8480,6 @@ "/identity/entity-alias/id/": { "description": "List all the alias IDs.", "get": { - "summary": "List all the alias IDs.", "operationId": "entity-list-aliases-by-id", "tags": [ "identity" @@ -8505,7 +8504,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/StandardListResponse" + "$ref": "#/components/schemas/EntityListAliasesByIdResponse" } } } @@ -8888,7 +8887,6 @@ "/identity/group-alias/id/": { "description": "List all the group alias IDs.", "get": { - "summary": "List all the group alias IDs.", "operationId": "group-list-aliases-by-id", "tags": [ "identity" @@ -8913,7 +8911,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/StandardListResponse" + "$ref": "#/components/schemas/GroupListAliasesByIdResponse" } } } @@ -50955,6 +50953,23 @@ } } }, + "EntityListAliasesByIdResponse": { + "type": "object", + "properties": { + "key_info": { + "type": "object", + "description": "Alias details keyed by the alias id", + "format": "map" + }, + "keys": { + "type": "array", + "description": "A list of alias ids", + "items": { + "type": "string" + } + } + } + }, "EntityListByIdResponse": { "type": "object", "properties": { @@ -52316,6 +52331,23 @@ } } }, + "GroupListAliasesByIdResponse": { + "type": "object", + "properties": { + "key_info": { + "type": "object", + "description": "Group alias details keyed by the group alias id", + "format": "map" + }, + "keys": { + "type": "array", + "description": "A list of group alias ids", + "items": { + "type": "string" + } + } + } + }, "GroupListByIdResponse": { "type": "object", "properties": { diff --git a/src/apis/IdentityApi.ts b/src/apis/IdentityApi.ts index 719e43a..d602986 100644 --- a/src/apis/IdentityApi.ts +++ b/src/apis/IdentityApi.ts @@ -28,6 +28,7 @@ import type { EntityBatchDeleteRequest, EntityCreateAliasRequest, EntityCreateRequest, + EntityListAliasesByIdResponse, EntityListByIdResponse, EntityLookUpRequest, EntityMergeRequest, @@ -36,6 +37,7 @@ import type { EntityUpdateByNameRequest, GroupCreateAliasRequest, GroupCreateRequest, + GroupListAliasesByIdResponse, GroupListByIdResponse, GroupLookUpRequest, GroupUpdateAliasByIdRequest, @@ -96,6 +98,8 @@ import { EntityCreateAliasRequestToJSON, EntityCreateRequestFromJSON, EntityCreateRequestToJSON, + EntityListAliasesByIdResponseFromJSON, + EntityListAliasesByIdResponseToJSON, EntityListByIdResponseFromJSON, EntityListByIdResponseToJSON, EntityLookUpRequestFromJSON, @@ -112,6 +116,8 @@ import { GroupCreateAliasRequestToJSON, GroupCreateRequestFromJSON, GroupCreateRequestToJSON, + GroupListAliasesByIdResponseFromJSON, + GroupListAliasesByIdResponseToJSON, GroupListByIdResponseFromJSON, GroupListByIdResponseToJSON, GroupLookUpRequestFromJSON, @@ -1457,9 +1463,8 @@ export class IdentityApi extends runtime.BaseAPI { } /** - * List all the alias IDs. */ - async entityListAliasesByIdRaw(requestParameters: IdentityApiEntityListAliasesByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async entityListAliasesByIdRaw(requestParameters: IdentityApiEntityListAliasesByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['list'] == null) { throw new runtime.RequiredError( 'list', @@ -1483,13 +1488,12 @@ export class IdentityApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => EntityListAliasesByIdResponseFromJSON(jsonValue)); } /** - * List all the alias IDs. */ - async entityListAliasesById(list: IdentityApiEntityListAliasesByIdListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async entityListAliasesById(list: IdentityApiEntityListAliasesByIdListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.entityListAliasesByIdRaw({ list: list }, initOverrides); return await response.value(); } @@ -2063,9 +2067,8 @@ export class IdentityApi extends runtime.BaseAPI { } /** - * List all the group alias IDs. */ - async groupListAliasesByIdRaw(requestParameters: IdentityApiGroupListAliasesByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async groupListAliasesByIdRaw(requestParameters: IdentityApiGroupListAliasesByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['list'] == null) { throw new runtime.RequiredError( 'list', @@ -2089,13 +2092,12 @@ export class IdentityApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => GroupListAliasesByIdResponseFromJSON(jsonValue)); } /** - * List all the group alias IDs. */ - async groupListAliasesById(list: IdentityApiGroupListAliasesByIdListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async groupListAliasesById(list: IdentityApiGroupListAliasesByIdListEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.groupListAliasesByIdRaw({ list: list }, initOverrides); return await response.value(); } diff --git a/src/models/EntityListAliasesByIdResponse.ts b/src/models/EntityListAliasesByIdResponse.ts new file mode 100644 index 0000000..7e07183 --- /dev/null +++ b/src/models/EntityListAliasesByIdResponse.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 EntityListAliasesByIdResponse + */ +export interface EntityListAliasesByIdResponse { + /** + * Alias details keyed by the alias id + * @type {object} + * @memberof EntityListAliasesByIdResponse + */ + key_info?: object; + /** + * A list of alias ids + * @type {Array} + * @memberof EntityListAliasesByIdResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the EntityListAliasesByIdResponse interface. + */ +export function instanceOfEntityListAliasesByIdResponse(value: object): value is EntityListAliasesByIdResponse { + return true; +} + +export function EntityListAliasesByIdResponseFromJSON(json: any): EntityListAliasesByIdResponse { + return EntityListAliasesByIdResponseFromJSONTyped(json, false); +} + +export function EntityListAliasesByIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityListAliasesByIdResponse { + 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 EntityListAliasesByIdResponseToJSON(json: any): EntityListAliasesByIdResponse { + return EntityListAliasesByIdResponseToJSONTyped(json, false); +} + +export function EntityListAliasesByIdResponseToJSONTyped(value?: EntityListAliasesByIdResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'key_info': value['key_info'], + 'keys': value['keys'], + }; +} + diff --git a/src/models/GroupListAliasesByIdResponse.ts b/src/models/GroupListAliasesByIdResponse.ts new file mode 100644 index 0000000..abeb730 --- /dev/null +++ b/src/models/GroupListAliasesByIdResponse.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 GroupListAliasesByIdResponse + */ +export interface GroupListAliasesByIdResponse { + /** + * Group alias details keyed by the group alias id + * @type {object} + * @memberof GroupListAliasesByIdResponse + */ + key_info?: object; + /** + * A list of group alias ids + * @type {Array} + * @memberof GroupListAliasesByIdResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the GroupListAliasesByIdResponse interface. + */ +export function instanceOfGroupListAliasesByIdResponse(value: object): value is GroupListAliasesByIdResponse { + return true; +} + +export function GroupListAliasesByIdResponseFromJSON(json: any): GroupListAliasesByIdResponse { + return GroupListAliasesByIdResponseFromJSONTyped(json, false); +} + +export function GroupListAliasesByIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupListAliasesByIdResponse { + 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 GroupListAliasesByIdResponseToJSON(json: any): GroupListAliasesByIdResponse { + return GroupListAliasesByIdResponseToJSONTyped(json, false); +} + +export function GroupListAliasesByIdResponseToJSONTyped(value?: GroupListAliasesByIdResponse | 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 76e823a..9bad220 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -115,6 +115,7 @@ export * from './EntityAliasesCreateDuplicatesRequest'; export * from './EntityBatchDeleteRequest'; export * from './EntityCreateAliasRequest'; export * from './EntityCreateRequest'; +export * from './EntityListAliasesByIdResponse'; export * from './EntityListByIdResponse'; export * from './EntityLookUpRequest'; export * from './EntityMergeRequest'; @@ -161,6 +162,7 @@ export * from './GoogleCloudWriteRolesetRequest'; export * from './GoogleCloudWriteStaticAccountRequest'; export * from './GroupCreateAliasRequest'; export * from './GroupCreateRequest'; +export * from './GroupListAliasesByIdResponse'; export * from './GroupListByIdResponse'; export * from './GroupLookUpRequest'; export * from './GroupUpdateAliasByIdRequest';