diff --git a/proto/zitadel/filter/v2/filter.proto b/proto/zitadel/filter/v2/filter.proto index ec85519b44..be8fb184b6 100644 --- a/proto/zitadel/filter/v2/filter.proto +++ b/proto/zitadel/filter/v2/filter.proto @@ -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 [ diff --git a/proto/zitadel/metadata/v2/metadata.proto b/proto/zitadel/metadata/v2/metadata.proto index 612e939cbc..174d93265e 100644 --- a/proto/zitadel/metadata/v2/metadata.proto +++ b/proto/zitadel/metadata/v2/metadata.proto @@ -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"; } ]; } \ No newline at end of file