fixup! Merge branch 'main' into org_api_merge

This commit is contained in:
Iraq Jaber
2025-05-30 15:55:21 +02:00
parent f073a8ff3a
commit f4b6b3a06c
7 changed files with 144 additions and 23 deletions

View File

@@ -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 {