mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 13:13:38 +00:00
fixup! Merge branch 'main' into org_api_merge
This commit is contained in:
@@ -548,6 +548,35 @@ message CreatedAdmin {
|
||||
optional string email_code = 2;
|
||||
optional string phone_code = 3;
|
||||
}
|
||||
message AssignedAdmin { string user_id = 1; }
|
||||
|
||||
message OrganizationAdmin {
|
||||
oneof OrganizationAdmin {
|
||||
option (validate.required) = true;
|
||||
|
||||
CreatedAdmin created_admin = 3;
|
||||
AssignedAdmin assigned_admin = 4;
|
||||
// The timestamp of the organization was created.
|
||||
google.protobuf.Timestamp created_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2024-12-18T07:50:47.492Z\"";
|
||||
}
|
||||
];
|
||||
|
||||
// Organization ID of the newly created organization.
|
||||
string id = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
|
||||
// The admins created for the Organization
|
||||
}
|
||||
}
|
||||
|
||||
message CreateOrganizationResponse{
|
||||
// The timestamp of the organization was created.
|
||||
@@ -569,7 +598,7 @@ message CreateOrganizationResponse{
|
||||
];
|
||||
|
||||
// The admins created for the Organization
|
||||
repeated CreatedAdmin created_admins = 3;
|
||||
repeated OrganizationAdmin organization_admins = 4;
|
||||
}
|
||||
|
||||
message UpdateOrganizationRequest {
|
||||
|
Reference in New Issue
Block a user