Change MetadataValueFilter to bytes

This commit is contained in:
Marco Ardizzone
2025-07-31 18:11:33 +02:00
parent 7964140d7c
commit d520f4399e
2 changed files with 11 additions and 6 deletions

View File

@@ -31,6 +31,11 @@ enum TimestampFilterMethod {
TIMESTAMP_FILTER_METHOD_BEFORE_OR_EQUALS = 4;
}
enum ByteFilterMethod {
BYTE_FILTER_METHOD_EQUALS = 0;
BYTE_FILTER_METHOD_NOT_EQUALS = 1;
}
message PaginationRequest {
// Starting point for retrieval, in combination of offset used to query a set list of objects.
uint64 offset = 1 [

View File

@@ -65,17 +65,17 @@ message UserByMetadataSearchFilter {
}
message MetadataValueFilter {
string value = 1 [
(validate.rules).string = {max_len: 200},
bytes value = 1 [
(validate.rules).bytes = {max_len: 200},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"my value\""
description: "A value matching the metadata values"
example: "\"bXkgdmFsdWU=\""
description: "A base64 encoded value"
}
];
zitadel.filter.v2.TextFilterMethod method = 2 [
zitadel.filter.v2.ByteFilterMethod method = 2 [
(validate.rules).enum.defined_only = true,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "defines which text equality method is used";
description: "defines which bytes equality method is used";
}
];
}