Skip to content
Draft
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
72 changes: 72 additions & 0 deletions proto/viam/app/v1/app.proto
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,25 @@ service AppService {
rpc GetAppContent(GetAppContentRequest) returns (GetAppContentResponse);

rpc GetAppBranding(GetAppBrandingRequest) returns (GetAppBrandingResponse);

// Upload a device push token for the user.
rpc UploadDevicePushToken(UploadDevicePushTokenRequest) returns (UploadDevicePushTokenResponse);

// Delete a device push token for the user.
rpc DeleteDevicePushToken(DeleteDevicePushTokenRequest) returns (DeleteDevicePushTokenResponse);

// Gets all device push tokens for the user.
rpc GetDevicePushTokens(GetDevicePushTokensRequest) returns (GetDevicePushTokensResponse);

// Set the Firebase config JSON for a specific app bundle id.
rpc SetFirebaseConfig(SetFirebaseConfigRequest) returns (SetFirebaseConfigResponse);

// Read the bundle ID for an organization.
// This RPC returns only the bundle_id configured for the org, not the Firebase config JSON.
rpc GetFirebaseConfig(GetFirebaseConfigRequest) returns (GetFirebaseConfigResponse);

// Deletes a Firebase config JSON for a specific app bundle id.
rpc DeleteFirebaseConfig(DeleteFirebaseConfigRequest) returns (DeleteFirebaseConfigResponse);
}

enum OnlineState {
Expand Down Expand Up @@ -2022,3 +2041,56 @@ message MachinePickerCustomizations {
optional string heading = 1;
optional string subheading = 2;
}

// Device push token messages

message UploadDevicePushTokenRequest {
string email = 1;
string bundle_id = 2;
string device_token = 3;
string device_uuid = 4;
}

message UploadDevicePushTokenResponse {}

message DeleteDevicePushTokenRequest {
string email = 1;
string bundle_id = 2;
string device_uuid = 3;
}

message DeleteDevicePushTokenResponse {}

message GetDevicePushTokensRequest {
string email = 1;
string bundle_id = 2;
}

message GetDevicePushTokensResponse {
repeated string device_tokens = 1;
}

// Firebase config messages

message SetFirebaseConfigRequest {
string org_id = 1;
string bundle_id = 2;
string config_json = 3;
}

message SetFirebaseConfigResponse {}

message GetFirebaseConfigRequest {
string org_id = 1;
}

message GetFirebaseConfigResponse {
string bundle_id = 1;
}

message DeleteFirebaseConfigRequest {
string org_id = 1;
string bundle_id = 2;
}

message DeleteFirebaseConfigResponse {}
Loading