mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-11 11:53:40 +00:00
e4fe097ec4
* tests * chore: set vars for platform in dockerfile * simplyfy generate * correct dockerfile * add openapi to gitignore * object files * protos * update protoc version * admin only secuity missing * texts * start secutiry * add handler * add description * add descriptions and remove adddress * default limit * add mapping for openapi * generate statik for openapi * remove address converter * executable * operator test Co-authored-by: Livio Amstutz <livio.a@gmail.com>
142 lines
3.9 KiB
Protocol Buffer
142 lines
3.9 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "zitadel/object.proto";
|
|
import "validate/validate.proto";
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
|
|
package zitadel.org.v1;
|
|
|
|
option go_package ="github.com/caos/zitadel/pkg/grpc/org";
|
|
|
|
message Org {
|
|
string id = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"69629023906488334\""
|
|
}
|
|
];
|
|
zitadel.v1.ObjectDetails details = 2;
|
|
OrgState state = 3 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "current state of the organisation";
|
|
}
|
|
];
|
|
string name = 4 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"CAOS AG\"";
|
|
}
|
|
];
|
|
string primary_domain = 5 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"caos.ch\"";
|
|
}
|
|
];
|
|
}
|
|
|
|
enum OrgState {
|
|
ORG_STATE_UNSPECIFIED = 0;
|
|
ORG_STATE_ACTIVE = 1;
|
|
ORG_STATE_INACTIVE = 2;
|
|
}
|
|
|
|
message Domain {
|
|
string org_id = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"69629023906488334\""
|
|
}
|
|
];
|
|
zitadel.v1.ObjectDetails details = 2;
|
|
string domain_name = 3 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"caos.ch\"";
|
|
}
|
|
];
|
|
bool is_verified = 4 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "defines if the domain is verified"
|
|
}
|
|
];
|
|
bool is_primary = 5 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "defines if the domain is the primary domain"
|
|
}
|
|
];
|
|
DomainValidationType validation_type = 6 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "defines the protocol the domain was validated with";
|
|
}
|
|
];
|
|
}
|
|
|
|
enum DomainValidationType {
|
|
DOMAIN_VALIDATION_TYPE_UNSPECIFIED = 0;
|
|
DOMAIN_VALIDATION_TYPE_HTTP = 1;
|
|
DOMAIN_VALIDATION_TYPE_DNS = 2;
|
|
}
|
|
|
|
message OrgQuery {
|
|
oneof query {
|
|
option (validate.required) = true;
|
|
|
|
OrgNameQuery name_query = 1;
|
|
OrgDomainQuery domain_query = 2;
|
|
}
|
|
}
|
|
|
|
message OrgNameQuery {
|
|
string name = 1 [
|
|
(validate.rules).string = {max_len: 200},
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"caos ag\"";
|
|
}
|
|
];
|
|
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";
|
|
}
|
|
];
|
|
}
|
|
|
|
message OrgDomainQuery {
|
|
string domain = 1 [
|
|
(validate.rules).string = {max_len: 200},
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"CAOS.C\"";
|
|
}
|
|
];
|
|
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";
|
|
}
|
|
];
|
|
}
|
|
|
|
enum OrgFieldName {
|
|
ORG_FIELD_NAME_UNSPECIFIED = 0;
|
|
ORG_FIELD_NAME_NAME = 1;
|
|
}
|
|
|
|
message DomainSearchQuery {
|
|
oneof query {
|
|
option (validate.required) = true;
|
|
|
|
DomainNameQuery domain_name_query = 1;
|
|
}
|
|
}
|
|
|
|
message DomainNameQuery {
|
|
string name = 1 [
|
|
(validate.rules).string = {max_len: 200},
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"caos.ch\"";
|
|
}
|
|
];
|
|
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";
|
|
}
|
|
];
|
|
}
|