Skip to content

Commit

Permalink
feat(frontier): batch invite user ids in org invitation
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma committed Aug 18, 2023
1 parent 9ec8320 commit 7318ecc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1742,15 +1742,16 @@ message CreateOrganizationInvitationRequest {
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "unique id of the organization to which user is invited"}
];
string user_id = 2 [
repeated string user_ids = 2 [

Check failure on line 1745 in raystack/frontier/v1beta1/frontier.proto

View workflow job for this annotation

GitHub Actions / validate

Field "2" on message "CreateOrganizationInvitationRequest" changed label from "optional" to "repeated".

Check failure on line 1745 in raystack/frontier/v1beta1/frontier.proto

View workflow job for this annotation

GitHub Actions / validate

Field "2" on message "CreateOrganizationInvitationRequest" changed label from "optional" to "repeated".
(google.api.field_behavior) = REQUIRED,
(validate.rules).repeated = {min_items: 1, max_items: 10},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "user_id is email id of user who are invited inside the organization. If user is not registered on the platform, it will be notified"}
];
repeated string group_ids = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "list of group ids to which user needs to be added as a member."}];
}

message CreateOrganizationInvitationResponse {
Invitation invitation = 1;
repeated Invitation invitations = 1;

Check failure on line 1754 in raystack/frontier/v1beta1/frontier.proto

View workflow job for this annotation

GitHub Actions / validate

Field "1" on message "CreateOrganizationInvitationResponse" changed label from "optional" to "repeated".

Check failure on line 1754 in raystack/frontier/v1beta1/frontier.proto

View workflow job for this annotation

GitHub Actions / validate

Field "1" on message "CreateOrganizationInvitationResponse" changed label from "optional" to "repeated".
}

message GetOrganizationInvitationRequest {
Expand Down

0 comments on commit 7318ecc

Please sign in to comment.