37 lines
672 B
Protocol Buffer
37 lines
672 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package imeeting.android.common;
|
|
|
|
option java_multiple_files = true;
|
|
option java_package = "com.imeeting.grpc.common";
|
|
option java_outer_classname = "AndroidCommonProto";
|
|
|
|
message ClientAuth {
|
|
enum AuthType {
|
|
AUTH_TYPE_UNSPECIFIED = 0;
|
|
NONE = 1;
|
|
DEVICE_TOKEN = 2;
|
|
USER_JWT = 3;
|
|
STREAM_TOKEN = 4;
|
|
}
|
|
|
|
AuthType auth_type = 1;
|
|
string access_token = 2;
|
|
string device_id = 3;
|
|
string tenant_code = 4;
|
|
string app_id = 5;
|
|
string app_version = 6;
|
|
string platform = 7;
|
|
}
|
|
|
|
message ErrorEvent {
|
|
string code = 1;
|
|
string message = 2;
|
|
bool retryable = 3;
|
|
}
|
|
|
|
message JsonPayload {
|
|
string topic = 1;
|
|
string json = 2;
|
|
}
|