Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions accrescent/console/v1/get_my_organization_request.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-FileCopyrightText: © 2026 Logan Magee
//
// SPDX-License-Identifier: Apache-2.0

syntax = "proto3";

package accrescent.console.v1;

option java_multiple_files = true;
option java_package = "app.accrescent.console.v1";

// Request defining parameters for getting the organization owned by the
// currently authenticated user.
message GetMyOrganizationRequest {}
20 changes: 20 additions & 0 deletions accrescent/console/v1/get_my_organization_response.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// SPDX-FileCopyrightText: © 2026 Logan Magee
//
// SPDX-License-Identifier: Apache-2.0

syntax = "proto3";

package accrescent.console.v1;

import "accrescent/console/v1/organization.proto";
import "buf/validate/validate.proto";

option java_multiple_files = true;
option java_package = "app.accrescent.console.v1";

// Response to getting the organization owned by the currently authenticated
// user.
message GetMyOrganizationResponse {
// The organization owned by the currently authenticated user.
Organization organization = 1 [(buf.validate.field).required = true];
}
22 changes: 0 additions & 22 deletions accrescent/console/v1/list_organizations_request.proto

This file was deleted.

27 changes: 0 additions & 27 deletions accrescent/console/v1/list_organizations_response.proto

This file was deleted.

8 changes: 4 additions & 4 deletions accrescent/console/v1/organization_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ syntax = "proto3";

package accrescent.console.v1;

import "accrescent/console/v1/get_my_organization_request.proto";
import "accrescent/console/v1/get_my_organization_response.proto";
import "accrescent/console/v1/get_organization_request.proto";
import "accrescent/console/v1/get_organization_response.proto";
import "accrescent/console/v1/list_organizations_request.proto";
import "accrescent/console/v1/list_organizations_response.proto";
import "google/api/client.proto";

option java_multiple_files = true;
Expand All @@ -24,8 +24,8 @@ service OrganizationService {
option idempotency_level = NO_SIDE_EFFECTS;
}

// Lists organizations.
rpc ListOrganizations(ListOrganizationsRequest) returns (ListOrganizationsResponse) {
// Gets the organization owned by the currently authenticated user.
rpc GetMyOrganization(GetMyOrganizationRequest) returns (GetMyOrganizationResponse) {
option idempotency_level = NO_SIDE_EFFECTS;
}
}
Loading