Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proto messages used by the app #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
37 changes: 37 additions & 0 deletions anki_vector/messaging/alexa.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,41 @@ syntax = "proto3";

package Anki.Vector.external_interface;

import "anki_vector/messaging/response_status.proto";


enum AlexaAuthState {
// Invalid/error/versioning issue
ALEXA_AUTH_INVALID = 0;

// Not opted in, or opt-in attempted but failed
ALEXA_AUTH_UNINITIALIZED = 1;
// Opted in, and attempting to authorize
ALEXA_AUTH_REQUESTING_AUTH = 2;
// Opted in, and waiting on the user to enter a code
ALEXA_AUTH_WAITING_FOR_CODE = 3;
// Opted in, and authorized / in use
ALEXA_AUTH_AUTHORIZED = 4;
}

message AlexaAuthStateRequest {
}

message AlexaAuthStateResponse {
ResponseStatus status = 1;
AlexaAuthState auth_state = 2;
string extra = 3;
}

message AlexaOptInRequest {
bool opt_in = 1;
}

message AlexaOptInResponse{
ResponseStatus status = 1;
}

message AlexaAuthEvent {
AlexaAuthState auth_state = 1;
string extra = 2;
}
259 changes: 258 additions & 1 deletion anki_vector/messaging/alexa_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading