Skip to content

Commit 9631c74

Browse files
shawnblakesleyikkez
authored andcommitted
Add proto messages used by the app
1 parent 766e0e1 commit 9631c74

12 files changed

+6676
-641
lines changed

anki_vector/messaging/alexa.proto

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,41 @@ syntax = "proto3";
1818

1919
package Anki.Vector.external_interface;
2020

21+
import "anki_vector/messaging/response_status.proto";
2122

23+
24+
enum AlexaAuthState {
25+
// Invalid/error/versioning issue
26+
ALEXA_AUTH_INVALID = 0;
27+
28+
// Not opted in, or opt-in attempted but failed
29+
ALEXA_AUTH_UNINITIALIZED = 1;
30+
// Opted in, and attempting to authorize
31+
ALEXA_AUTH_REQUESTING_AUTH = 2;
32+
// Opted in, and waiting on the user to enter a code
33+
ALEXA_AUTH_WAITING_FOR_CODE = 3;
34+
// Opted in, and authorized / in use
35+
ALEXA_AUTH_AUTHORIZED = 4;
36+
}
37+
38+
message AlexaAuthStateRequest {
39+
}
40+
41+
message AlexaAuthStateResponse {
42+
ResponseStatus status = 1;
43+
AlexaAuthState auth_state = 2;
44+
string extra = 3;
45+
}
46+
47+
message AlexaOptInRequest {
48+
bool opt_in = 1;
49+
}
50+
51+
message AlexaOptInResponse{
52+
ResponseStatus status = 1;
53+
}
54+
55+
message AlexaAuthEvent {
56+
AlexaAuthState auth_state = 1;
57+
string extra = 2;
58+
}

anki_vector/messaging/alexa_pb2.py

Lines changed: 258 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)