Skip to content

Commit

Permalink
versioning idea
Browse files Browse the repository at this point in the history
  • Loading branch information
ldulcic committed Oct 3, 2024
1 parent 4328f93 commit f859ae0
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 22 deletions.
13 changes: 13 additions & 0 deletions proto/self_serve/app/self_serve.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
syntax = "proto3";

package self_serve.app;

message AppSelfServeModeMessage {
oneof message {
StartCapture start_capture = 1;
RequestState request_state = 2;
}
}

message StartCapture {}
message RequestState {}
6 changes: 0 additions & 6 deletions proto/self_serve/app/v1/app.proto

This file was deleted.

21 changes: 21 additions & 0 deletions proto/self_serve/orb/orb.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
syntax = "proto3";

package self_serve.orb;

enum OrbMode {
ORB_MODE_UNSPECIFIED = 0;
LEGACY = 1;
SELF_SERVE = 2;
}

enum OrbType {
ORB_TYPE_UNSPECIFIED = 0;
PEARL = 1;
DIAMOND = 2;
}

message OrbMetadata {
string orb_id = 1;
OrbType orb_type = 2;
OrbMode orb_mode = 3;
}
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
syntax = "proto3";

package self_serve.orb.v1;
package self_serve.orb;

enum OrbMode {
ORB_MODE_UNSPECIFIED = 0;
LEGACY = 1;
SELF_SERVE = 2;
}

enum OrbType {
ORB_TYPE_UNSPECIFIED = 0;
PEARL = 1;
DIAMOND = 2;
message OrbSelfServeModeMessage {
oneof message {
NoState no_state = 1;
SelfServeStatus self_serve_status = 2;
CaptureStarted capture_started = 3;
CaptureTriggerTimeout capture_trigger_timeout = 4;
CaptureEnded capture_ended = 5;
SignupEnded signup_ended = 6;
AgeVerificationRequiredFromOperator age_verification_required_from_operator = 7;
}
}

message NoState {}
message SelfServeStatus {
bool is_self_serve_enabled = 1;
}
message AnnounceOrbId {
string orb_id = 1;
OrbType orb_type = 2;
OrbMode orb_mode = 3;
}
message CaptureStarted {}
message CaptureTriggerTimeout {}
message CaptureEnded {
Expand Down

0 comments on commit f859ae0

Please sign in to comment.