123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- syntax = "proto3";
- package ticket;
- // golang
- option go_package = "./ticket";
- // java
- option java_package = "com.gshopper.crm.ticket.v2";
- option java_outer_classname = "proto";
- import "google/protobuf/timestamp.proto";
- message EmailAddress {
- string address = 1 [json_name = "address"];
- string name = 2 [json_name = "name"];
- }
- message Attachment {
- string id = 1 [json_name = "id"];
- string filename = 2 [json_name = "filename"];
- string content_type = 3 [json_name = "content_type"];
- string content_encoding = 4 [json_name = "content_encoding"];
- string bucket = 5 [json_name = "bucket"];
- string key = 6 [json_name = "key"];
- }
- message AssistantRequest {
- string to = 1 [json_name = "to"];
- EmailAddress from = 2 [json_name = "from"];
- string subject = 3 [json_name = "subject"];
- google.protobuf.Timestamp date = 4 [json_name = "date"];
- string body = 5 [json_name = "body"];
- repeated Attachment attachments = 10 [json_name = "attachments"];
- }
- message AssistantCallback {
- EmailAddress to = 1 [json_name = "to"];
- string subject = 2 [json_name = "subject"];
- string body = 3 [json_name = "body"];
- repeated Attachment attachments = 10 [json_name = "attachments"];
- }
- enum MessageFlag {
- unknown_message_flag = 0 [deprecated = true];
- SENT = 1;
- MODIFIED = 2;
- }
- enum TicketFlag {
- unknown_ticket_flag = 0 [deprecated = true];
- READ = 1;
- REPLIED = 2;
- }
- message Message {
- enum Type {
- unknown = 0 [deprecated = true];
- TEXT = 1;
- EMAIL = 2;
- ASSISTANT_CALLBACK = 3;
- TICKET_WITH_REASON = 4;
- }
- string message_id = 1 [json_name = "message_id"];
- string ticket_id = 2 [json_name = "ticket_id"];
- string role = 3 [json_name = "role"];
- Type type = 4 [json_name = "type"];
- string content = 5 [json_name = "content"];
- google.protobuf.Timestamp date = 6 [json_name = "date"];
- bytes raw = 7 [json_name = "raw"];
- bytes flags = 8 [json_name = "flags"];
- map<string, string> headers = 10 [json_name = "headers"];
- map<string, string> meta = 11 [json_name = "meta"];
- repeated Attachment attachments = 12 [json_name = "attachments"];
- }
- message Ticket {
- string ticket_id = 1 [json_name = "ticket_id"];
- string thread_id = 2 [json_name = "thread_id"];
- string to = 3 [json_name = "to"];
- EmailAddress from = 4 [json_name = "from"];
- bytes flags = 5 [json_name = "flags"];
- google.protobuf.Timestamp created_at = 6 [json_name = "created_at"];
- google.protobuf.Timestamp updated_at = 7 [json_name = "updated_at"];
- repeated Message messages = 10 [json_name = "messages"];
- map<string, string> meta = 11 [json_name = "meta"];
- repeated string tags = 12 [json_name = "tags"];
- repeated string message_ids = 100 [json_name = "message_ids"];
- repeated string subjects = 101 [json_name = "subjects"];
- }
|