This repository was archived by the owner on Jan 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.proto
105 lines (95 loc) · 1.99 KB
/
plugin.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
syntax = "proto3";
package proto;
import "google/protobuf/timestamp.proto";
// Bot ...
//
// These are the messages that can be moved through
// the outbox and the inbox.
message Bot {
oneof bot {
// message types to send, or reply
Message message = 1;
Message reply = 2;
Message private = 3;
}
}
// Message ...
message Message {
// TextFormat ...
enum TextFormat {
PLAIN_TEXT = 0;
}
// User ...
//
// This is a user interaction ...
message User {
// ID ...
string id = 1;
// Name ...
string name = 2;
// Team ...
Team team = 3;
}
// Team ...
//
// This is a team interaction ...
message Team {
// ID ...
string id = 1;
// Name ...
string name = 2;
}
// Channel ...
//
// This is the channel of the interaction ...
message Channel {
// ID ...
string id = 1;
// Name ...
string name = 2;
}
// Recipient ...
//
// This is the recipient of an interaction ...
message Recipient {
// ID ...
string id = 1;
// Name ...
string name = 2;
// Team ...
Team team = 3;
}
// UUID ...
string uuid = 1;
// ID ...
string id = 2;
// Type ...
string type = 3;
// Channel ...
Channel channel = 4;
// From ...
User from = 5;
// Recipient ...
Recipient recipient = 6;
// isBot ...
bool is_bot = 7;
// isDirectMessage ...
bool is_direct_message = 8;
// ThreadId is the identifier of the
// parent thread (or the message itself if the thread
// doesn't exist)
string thread_id = 11;
// ReplyInThread is enabled when we want the reply
// to be nested under the parent thread (as desc by ThreadId)
bool reply_in_thread = 12;
// Timestamp ...
google.protobuf.Timestamp timestamp = 10;
// TextFormat ...
TextFormat text_format = 20;
// Text ...
string text = 21;
}
// Empty ...
//
// Empty reply.
message Empty {}