Skip to content

Commit

Permalink
Merge pull request #15 from depot/billy/move-share-build
Browse files Browse the repository at this point in the history
move ShareBuild to the core api instead of build
  • Loading branch information
billyb2 authored Oct 21, 2024
2 parents ccac06d + 69fccb0 commit 0003fc0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
16 changes: 0 additions & 16 deletions proto/depot/build/v1/build.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ package depot.build.v1;
service BuildService {
rpc CreateBuild(CreateBuildRequest) returns (CreateBuildResponse);
rpc FinishBuild(FinishBuildRequest) returns (FinishBuildResponse);
rpc ShareBuild(ShareBuildRequest) returns (ShareBuildResponse);
rpc StopSharingBuild(StopSharingBuildRequest) returns (StopSharingBuildResponse);
}

message CreateBuildRequest {
Expand All @@ -32,17 +30,3 @@ message FinishBuildRequest {
}

message FinishBuildResponse {}

message ShareBuildRequest {
string build_id = 1;
}

message ShareBuildResponse {
string share_url = 1;
}

message StopSharingBuildRequest {
string build_id = 1;
}

message StopSharingBuildResponse {}
24 changes: 24 additions & 0 deletions proto/depot/core/v1/build.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
syntax = "proto3";
package depot.core.v1;

service BuildService {
// Share a URL to a build with users outside of your organization
rpc ShareBuild(ShareBuildRequest) returns (ShareBuildResponse);

// Stop sharing a build
rpc StopSharingBuild(StopSharingBuildRequest) returns (StopSharingBuildResponse);
}

message ShareBuildRequest {
string build_id = 1;
}

message ShareBuildResponse {
string share_url = 1;
}

message StopSharingBuildRequest {
string build_id = 1;
}

message StopSharingBuildResponse {}

0 comments on commit 0003fc0

Please sign in to comment.