diff --git a/packages/clients/src/api/iam/v1alpha1/api.gen.ts b/packages/clients/src/api/iam/v1alpha1/api.gen.ts index 422de9336..485f28152 100644 --- a/packages/clients/src/api/iam/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/iam/v1alpha1/api.gen.ts @@ -250,6 +250,7 @@ export class API extends ParentAPI { 'page_size', request.pageSize ?? this.client.settings.defaultPageSize, ], + ['tag', request.tag], ['user_ids', request.userIds], ), }, @@ -349,6 +350,7 @@ export class API extends ParentAPI { 'page_size', request.pageSize ?? this.client.settings.defaultPageSize, ], + ['tag', request.tag], ), }, unmarshalListApplicationsResponse, @@ -469,6 +471,7 @@ export class API extends ParentAPI { 'page_size', request.pageSize ?? this.client.settings.defaultPageSize, ], + ['tag', request.tag], ['user_ids', request.userIds], ), }, @@ -694,6 +697,7 @@ export class API extends ParentAPI { request.pageSize ?? this.client.settings.defaultPageSize, ], ['policy_name', request.policyName], + ['tag', request.tag], ['user_ids', request.userIds], ), }, diff --git a/packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts index d7d093f69..3430f8158 100644 --- a/packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts @@ -107,6 +107,7 @@ export const unmarshalApplication = (data: unknown): Application => { name: data.name, nbApiKeys: data.nb_api_keys, organizationId: data.organization_id, + tags: data.tags, updatedAt: unmarshalDate(data.updated_at), } as Application } @@ -125,6 +126,7 @@ export const unmarshalGroup = (data: unknown): Group => { id: data.id, name: data.name, organizationId: data.organization_id, + tags: data.tags, updatedAt: unmarshalDate(data.updated_at), userIds: data.user_ids, } as Group @@ -170,6 +172,7 @@ export const unmarshalPolicy = (data: unknown): Policy => { nbScopes: data.nb_scopes, noPrincipal: data.no_principal, organizationId: data.organization_id, + tags: data.tags, updatedAt: unmarshalDate(data.updated_at), userId: data.user_id, } as Policy @@ -226,6 +229,7 @@ export const unmarshalUser = (data: unknown): User => { mfa: data.mfa, organizationId: data.organization_id, status: data.status, + tags: data.tags, twoFactorEnabled: data.two_factor_enabled, type: data.type, updatedAt: unmarshalDate(data.updated_at), @@ -482,6 +486,7 @@ export const marshalCreateApplicationRequest = ( description: request.description, name: request.name || randomName('app'), organization_id: request.organizationId ?? defaults.defaultOrganizationId, + tags: request.tags, }) export const marshalCreateGroupRequest = ( @@ -491,6 +496,7 @@ export const marshalCreateGroupRequest = ( description: request.description, name: request.name || randomName('grp'), organization_id: request.organizationId ?? defaults.defaultOrganizationId, + tags: request.tags, }) const marshalRuleSpecs = ( @@ -515,6 +521,7 @@ export const marshalCreatePolicyRequest = ( request.rules !== undefined ? request.rules.map(elt => marshalRuleSpecs(elt, defaults)) : undefined, + tags: request.tags, ...resolveOneOf([ { param: 'user_id', value: request.userId }, { param: 'group_id', value: request.groupId }, @@ -538,6 +545,7 @@ export const marshalCreateUserRequest = ( ): Record => ({ email: request.email, organization_id: request.organizationId ?? defaults.defaultOrganizationId, + tags: request.tags, }) export const marshalRemoveGroupMemberRequest = ( @@ -580,6 +588,7 @@ export const marshalUpdateApplicationRequest = ( ): Record => ({ description: request.description, name: request.name, + tags: request.tags, }) export const marshalUpdateGroupRequest = ( @@ -588,6 +597,7 @@ export const marshalUpdateGroupRequest = ( ): Record => ({ description: request.description, name: request.name, + tags: request.tags, }) export const marshalUpdatePolicyRequest = ( @@ -596,6 +606,7 @@ export const marshalUpdatePolicyRequest = ( ): Record => ({ description: request.description, name: request.name, + tags: request.tags, ...resolveOneOf([ { param: 'user_id', value: request.userId }, { param: 'group_id', value: request.groupId }, diff --git a/packages/clients/src/api/iam/v1alpha1/types.gen.ts b/packages/clients/src/api/iam/v1alpha1/types.gen.ts index 4178ed3bd..8c0d58484 100644 --- a/packages/clients/src/api/iam/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/iam/v1alpha1/types.gen.ts @@ -177,6 +177,8 @@ export interface Application { editable: boolean /** Number of API keys attributed to the application. */ nbApiKeys: number + /** Tags associated with the user. */ + tags: string[] } export interface Group { @@ -196,6 +198,8 @@ export interface Group { userIds: string[] /** IDs of applications attached to this group. */ applicationIds: string[] + /** Tags associated to the group. */ + tags: string[] } export interface Log { @@ -253,6 +257,8 @@ export interface Policy { nbScopes: number /** Number of permission sets of the policy. */ nbPermissionSets: number + /** Tags associated with the policy. */ + tags: string[] /** * ID of the user attributed to the policy. * @@ -376,6 +382,8 @@ export interface User { mfa: boolean /** ID of the account root user associated with the user. */ accountRootUserId: string + /** Tags associated with the user. */ + tags: string[] } export type AddGroupMemberRequest = { @@ -436,6 +444,8 @@ export type CreateApplicationRequest = { organizationId?: string /** Description of the application (max length is 200 characters). */ description: string + /** Tags associated with the application (maximum of 10 tags). */ + tags?: string[] } export type CreateGroupRequest = { @@ -448,6 +458,8 @@ export type CreateGroupRequest = { name?: string /** Description of the group to create (max length is 200 chars). */ description: string + /** Tags associated with the group (maximum of 10 tags). */ + tags?: string[] } export type CreatePolicyRequest = { @@ -459,6 +471,8 @@ export type CreatePolicyRequest = { organizationId?: string /** Rules of the policy to create. */ rules?: RuleSpecs[] + /** Tags associated with the policy (maximum of 10 tags). */ + tags?: string[] /** * ID of user attributed to the policy. * @@ -506,6 +520,8 @@ export type CreateUserRequest = { organizationId?: string /** Email of the user. */ email: string + /** Tags associated with the user. */ + tags?: string[] } export type DeleteAPIKeyRequest = { @@ -646,6 +662,8 @@ export type ListApplicationsRequest = { editable?: boolean /** Filter by list of IDs. */ applicationIds?: string[] + /** Filter by tags containing a given string. */ + tag?: string } export interface ListApplicationsResponse { @@ -672,6 +690,8 @@ export type ListGroupsRequest = { userIds?: string[] /** Filter by a list of group IDs. */ groupIds?: string[] + /** Filter by tags containing a given string. */ + tag?: string } export interface ListGroupsResponse { @@ -766,6 +786,8 @@ export type ListPoliciesRequest = { noPrincipal?: boolean /** Name of the policy to fetch. */ policyName?: string + /** Filter by tags containing a given string. */ + tag?: string } export interface ListPoliciesResponse { @@ -846,6 +868,8 @@ export type ListUsersRequest = { userIds?: string[] /** Filter by MFA status. */ mfa?: boolean + /** Filter by tags containing a given string. */ + tag?: string } export interface ListUsersResponse { @@ -906,6 +930,8 @@ export type UpdateApplicationRequest = { name?: string /** New description for the application (max length is 200 chars). */ description?: string + /** New tags for the application (maximum of 10 tags). */ + tags?: string[] } export type UpdateGroupRequest = { @@ -918,6 +944,8 @@ export type UpdateGroupRequest = { name?: string /** New description for the group (max length is 200 chars). */ description?: string + /** New tags for the group (maximum of 10 tags). */ + tags?: string[] } export type UpdatePolicyRequest = { @@ -927,6 +955,8 @@ export type UpdatePolicyRequest = { name?: string /** New description of policy (max length is 200 characters). */ description?: string + /** New tags for the policy (maximum of 10 tags). */ + tags?: string[] /** * New ID of user attributed to the policy. *