mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-11 02:13:40 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
46 lines
1.2 KiB
Protocol Buffer
46 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "zitadel/object.proto";
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
import "validate/validate.proto";
|
|
|
|
package zitadel.metadata.v1;
|
|
|
|
option go_package ="github.com/zitadel/zitadel/pkg/grpc/metadata";
|
|
|
|
message Metadata {
|
|
zitadel.v1.ObjectDetails details = 1;
|
|
string key = 2 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "metadata key"
|
|
}
|
|
];
|
|
bytes value = 3 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "metadata value"
|
|
}
|
|
];
|
|
}
|
|
|
|
message MetadataQuery {
|
|
oneof query {
|
|
option (validate.required) = true;
|
|
MetadataKeyQuery key_query = 1;
|
|
}
|
|
}
|
|
|
|
message MetadataKeyQuery {
|
|
string key = 1 [
|
|
(validate.rules).string = {max_len: 200},
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"key\""
|
|
}
|
|
];
|
|
zitadel.v1.TextQueryMethod method = 2 [
|
|
(validate.rules).enum.defined_only = true,
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "defines which text equality method is used";
|
|
}
|
|
];
|
|
}
|