proto: update response to return metas with user

This commit is contained in:
Marco Ardizzone
2025-08-06 10:33:42 +02:00
parent e633ef87b3
commit 0668f09307
2 changed files with 19 additions and 1 deletions

View File

@@ -269,3 +269,21 @@ enum UsersByMetadataSorting {
USERS_BY_METADATA_SORT_BY_NICK_NAME = 10;
USERS_BY_METADATA_SORT_BY_UNSPECIFIED = 11;
}
message UserByMetadata {
User user = 1;
string key = 2 [
(validate.rules).string = {max_len: 200},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"key\""
}
];
bytes value = 3 [
(validate.rules).bytes = {max_len: 200},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"bXkgdmFsdWU=\""
description: "A base64 encoded value"
}
];
}

View File

@@ -1989,7 +1989,7 @@ message ListUsersByMetadataRequest {
}
message ListUsersByMetadataResponse {
repeated User users = 1;
repeated UserByMetadata users = 1;
// Contains the total number of apps matching the query and the applied limit.
zitadel.filter.v2.PaginationResponse pagination = 2;