@elizaos/schemas 2.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +199 -0
- package/buf.gen.yaml +28 -0
- package/buf.yaml +16 -0
- package/eliza/v1/agent.proto +119 -0
- package/eliza/v1/components.proto +111 -0
- package/eliza/v1/database.proto +199 -0
- package/eliza/v1/environment.proto +91 -0
- package/eliza/v1/events.proto +235 -0
- package/eliza/v1/ipc.proto +212 -0
- package/eliza/v1/knowledge.proto +25 -0
- package/eliza/v1/memory.proto +91 -0
- package/eliza/v1/message_service.proto +48 -0
- package/eliza/v1/messaging.proto +67 -0
- package/eliza/v1/model.proto +183 -0
- package/eliza/v1/payment.proto +45 -0
- package/eliza/v1/plugin.proto +94 -0
- package/eliza/v1/primitives.proto +94 -0
- package/eliza/v1/prompts.proto +43 -0
- package/eliza/v1/service.proto +43 -0
- package/eliza/v1/service_interfaces.proto +752 -0
- package/eliza/v1/settings.proto +44 -0
- package/eliza/v1/state.proto +86 -0
- package/eliza/v1/task.proto +38 -0
- package/eliza/v1/tee.proto +64 -0
- package/eliza/v1/testing.proto +16 -0
- package/package.json +29 -0
|
@@ -0,0 +1,752 @@
|
|
|
1
|
+
// service_interfaces.proto - Shared service data types for elizaOS
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package eliza.v1;
|
|
5
|
+
|
|
6
|
+
import "google/protobuf/struct.proto";
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// Token & Wallet Types
|
|
11
|
+
// ============================================================================
|
|
12
|
+
|
|
13
|
+
message TokenBalance {
|
|
14
|
+
string address = 1;
|
|
15
|
+
string balance = 2;
|
|
16
|
+
int32 decimals = 3;
|
|
17
|
+
optional double ui_amount = 4;
|
|
18
|
+
optional string name = 5;
|
|
19
|
+
optional string symbol = 6;
|
|
20
|
+
optional string logo_uri = 7;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message TokenData {
|
|
24
|
+
string id = 1;
|
|
25
|
+
string symbol = 2;
|
|
26
|
+
string name = 3;
|
|
27
|
+
string address = 4;
|
|
28
|
+
string chain = 5;
|
|
29
|
+
string source_provider = 6;
|
|
30
|
+
optional double price = 7;
|
|
31
|
+
optional double price_change_24h_percent = 8;
|
|
32
|
+
optional double price_change_24h_usd = 9;
|
|
33
|
+
optional double volume_24h_usd = 10;
|
|
34
|
+
optional double market_cap_usd = 11;
|
|
35
|
+
optional double liquidity = 12;
|
|
36
|
+
optional double holders = 13;
|
|
37
|
+
optional string logo_uri = 14;
|
|
38
|
+
optional int32 decimals = 15;
|
|
39
|
+
optional google.protobuf.Timestamp last_updated_at = 16;
|
|
40
|
+
google.protobuf.Struct raw = 17;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message WalletAsset {
|
|
44
|
+
string address = 1;
|
|
45
|
+
string balance = 2;
|
|
46
|
+
int32 decimals = 3;
|
|
47
|
+
optional double ui_amount = 4;
|
|
48
|
+
optional string name = 5;
|
|
49
|
+
optional string symbol = 6;
|
|
50
|
+
optional string logo_uri = 7;
|
|
51
|
+
optional double price_usd = 8;
|
|
52
|
+
optional double value_usd = 9;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message WalletPortfolio {
|
|
56
|
+
double total_value_usd = 1;
|
|
57
|
+
repeated WalletAsset assets = 2;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// ============================================================================
|
|
61
|
+
// Liquidity Pool Types
|
|
62
|
+
// ============================================================================
|
|
63
|
+
|
|
64
|
+
message PoolTokenInfo {
|
|
65
|
+
string mint = 1;
|
|
66
|
+
optional string symbol = 2;
|
|
67
|
+
optional string reserve = 3;
|
|
68
|
+
optional int32 decimals = 4;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message PoolInfo {
|
|
72
|
+
string id = 1;
|
|
73
|
+
optional string display_name = 2;
|
|
74
|
+
string dex = 3;
|
|
75
|
+
PoolTokenInfo token_a = 4;
|
|
76
|
+
PoolTokenInfo token_b = 5;
|
|
77
|
+
optional string lp_token_mint = 6;
|
|
78
|
+
optional double apr = 7;
|
|
79
|
+
optional double apy = 8;
|
|
80
|
+
optional double tvl = 9;
|
|
81
|
+
optional double fee = 10;
|
|
82
|
+
google.protobuf.Struct metadata = 11;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message LpPositionDetails {
|
|
86
|
+
string pool_id = 1;
|
|
87
|
+
string dex = 2;
|
|
88
|
+
TokenBalance lp_token_balance = 3;
|
|
89
|
+
repeated TokenBalance underlying_tokens = 4;
|
|
90
|
+
optional double value_usd = 5;
|
|
91
|
+
repeated TokenBalance accrued_fees = 6;
|
|
92
|
+
repeated TokenBalance rewards = 7;
|
|
93
|
+
google.protobuf.Struct metadata = 8;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message TransactionResult {
|
|
97
|
+
bool success = 1;
|
|
98
|
+
optional string transaction_id = 2;
|
|
99
|
+
optional string error = 3;
|
|
100
|
+
google.protobuf.Struct data = 4;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// ============================================================================
|
|
104
|
+
// Transcription & Speech Types
|
|
105
|
+
// ============================================================================
|
|
106
|
+
|
|
107
|
+
message TranscriptionOptions {
|
|
108
|
+
optional string language = 1;
|
|
109
|
+
optional string model = 2;
|
|
110
|
+
optional double temperature = 3;
|
|
111
|
+
optional string prompt = 4;
|
|
112
|
+
optional string response_format = 5;
|
|
113
|
+
repeated string timestamp_granularities = 6;
|
|
114
|
+
optional bool word_timestamps = 7;
|
|
115
|
+
optional bool segment_timestamps = 8;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message TranscriptionResult {
|
|
119
|
+
string text = 1;
|
|
120
|
+
optional string language = 2;
|
|
121
|
+
optional double duration = 3;
|
|
122
|
+
repeated TranscriptionSegment segments = 4;
|
|
123
|
+
repeated TranscriptionWord words = 5;
|
|
124
|
+
optional double confidence = 6;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
message TranscriptionSegment {
|
|
128
|
+
int32 id = 1;
|
|
129
|
+
string text = 2;
|
|
130
|
+
double start = 3;
|
|
131
|
+
double end = 4;
|
|
132
|
+
optional double confidence = 5;
|
|
133
|
+
repeated int32 tokens = 6;
|
|
134
|
+
optional double temperature = 7;
|
|
135
|
+
optional double avg_logprob = 8;
|
|
136
|
+
optional double compression_ratio = 9;
|
|
137
|
+
optional double no_speech_prob = 10;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message TranscriptionWord {
|
|
141
|
+
string word = 1;
|
|
142
|
+
double start = 2;
|
|
143
|
+
double end = 3;
|
|
144
|
+
optional double confidence = 4;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message SpeechToTextOptions {
|
|
148
|
+
optional string language = 1;
|
|
149
|
+
optional string model = 2;
|
|
150
|
+
optional bool continuous = 3;
|
|
151
|
+
optional bool interim_results = 4;
|
|
152
|
+
optional int32 max_alternatives = 5;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message TextToSpeechOptions {
|
|
156
|
+
optional string voice = 1;
|
|
157
|
+
optional string model = 2;
|
|
158
|
+
optional double speed = 3;
|
|
159
|
+
optional string format = 4;
|
|
160
|
+
optional string response_format = 5;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// ============================================================================
|
|
164
|
+
// Video Types
|
|
165
|
+
// ============================================================================
|
|
166
|
+
|
|
167
|
+
message VideoInfo {
|
|
168
|
+
optional string title = 1;
|
|
169
|
+
optional double duration = 2;
|
|
170
|
+
string url = 3;
|
|
171
|
+
optional string thumbnail = 4;
|
|
172
|
+
optional string description = 5;
|
|
173
|
+
optional string uploader = 6;
|
|
174
|
+
optional double view_count = 7;
|
|
175
|
+
optional google.protobuf.Timestamp upload_date = 8;
|
|
176
|
+
repeated VideoFormat formats = 9;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message VideoFormat {
|
|
180
|
+
string format_id = 1;
|
|
181
|
+
string url = 2;
|
|
182
|
+
string extension = 3;
|
|
183
|
+
string quality = 4;
|
|
184
|
+
optional int64 file_size = 5;
|
|
185
|
+
optional string video_codec = 6;
|
|
186
|
+
optional string audio_codec = 7;
|
|
187
|
+
optional string resolution = 8;
|
|
188
|
+
optional double fps = 9;
|
|
189
|
+
optional double bitrate = 10;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message VideoDownloadOptions {
|
|
193
|
+
optional string format = 1;
|
|
194
|
+
optional string quality = 2;
|
|
195
|
+
optional string output_path = 3;
|
|
196
|
+
optional bool audio_only = 4;
|
|
197
|
+
optional bool video_only = 5;
|
|
198
|
+
optional bool subtitles = 6;
|
|
199
|
+
optional bool embed_subs = 7;
|
|
200
|
+
optional bool write_info_json = 8;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
message VideoProcessingOptions {
|
|
204
|
+
optional double start_time = 1;
|
|
205
|
+
optional double end_time = 2;
|
|
206
|
+
optional string output_format = 3;
|
|
207
|
+
optional string resolution = 4;
|
|
208
|
+
optional string bitrate = 5;
|
|
209
|
+
optional double framerate = 6;
|
|
210
|
+
optional string audio_codec = 7;
|
|
211
|
+
optional string video_codec = 8;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// ============================================================================
|
|
215
|
+
// Browser Types
|
|
216
|
+
// ============================================================================
|
|
217
|
+
|
|
218
|
+
message BrowserViewport {
|
|
219
|
+
int32 width = 1;
|
|
220
|
+
int32 height = 2;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
message BrowserNavigationOptions {
|
|
224
|
+
optional int32 timeout = 1;
|
|
225
|
+
optional string wait_until = 2;
|
|
226
|
+
optional BrowserViewport viewport = 3;
|
|
227
|
+
optional string user_agent = 4;
|
|
228
|
+
map<string, string> headers = 5;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message ScreenshotClip {
|
|
232
|
+
int32 x = 1;
|
|
233
|
+
int32 y = 2;
|
|
234
|
+
int32 width = 3;
|
|
235
|
+
int32 height = 4;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
message ScreenshotOptions {
|
|
239
|
+
optional bool full_page = 1;
|
|
240
|
+
optional ScreenshotClip clip = 2;
|
|
241
|
+
optional string format = 3;
|
|
242
|
+
optional int32 quality = 4;
|
|
243
|
+
optional bool omit_background = 5;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
message ElementSelector {
|
|
247
|
+
string selector = 1;
|
|
248
|
+
optional string text = 2;
|
|
249
|
+
optional int32 timeout = 3;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message LinkInfo {
|
|
253
|
+
string url = 1;
|
|
254
|
+
string text = 2;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
message ImageInfo {
|
|
258
|
+
string src = 1;
|
|
259
|
+
optional string alt = 2;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
message ExtractedContent {
|
|
263
|
+
string text = 1;
|
|
264
|
+
string html = 2;
|
|
265
|
+
repeated LinkInfo links = 3;
|
|
266
|
+
repeated ImageInfo images = 4;
|
|
267
|
+
optional string title = 5;
|
|
268
|
+
map<string, string> metadata = 6;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
message ClickOptions {
|
|
272
|
+
optional int32 timeout = 1;
|
|
273
|
+
optional bool force = 2;
|
|
274
|
+
optional bool wait_for_navigation = 3;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
message TypeOptions {
|
|
278
|
+
optional int32 delay = 1;
|
|
279
|
+
optional int32 timeout = 2;
|
|
280
|
+
optional bool clear = 3;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// ============================================================================
|
|
284
|
+
// PDF Types
|
|
285
|
+
// ============================================================================
|
|
286
|
+
|
|
287
|
+
message PdfMetadata {
|
|
288
|
+
optional string title = 1;
|
|
289
|
+
optional string author = 2;
|
|
290
|
+
optional google.protobuf.Timestamp created_at = 3;
|
|
291
|
+
optional google.protobuf.Timestamp modified_at = 4;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
message PdfExtractionResult {
|
|
295
|
+
string text = 1;
|
|
296
|
+
int32 page_count = 2;
|
|
297
|
+
optional PdfMetadata metadata = 3;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
message PdfMargins {
|
|
301
|
+
optional double top = 1;
|
|
302
|
+
optional double bottom = 2;
|
|
303
|
+
optional double left = 3;
|
|
304
|
+
optional double right = 4;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
message PdfGenerationOptions {
|
|
308
|
+
optional string format = 1;
|
|
309
|
+
optional string orientation = 2;
|
|
310
|
+
optional PdfMargins margins = 3;
|
|
311
|
+
optional string header = 4;
|
|
312
|
+
optional string footer = 5;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
message PdfConversionOptions {
|
|
316
|
+
optional string quality = 1;
|
|
317
|
+
optional string output_format = 2;
|
|
318
|
+
optional bool compression = 3;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// ============================================================================
|
|
322
|
+
// Web Search Types
|
|
323
|
+
// ============================================================================
|
|
324
|
+
|
|
325
|
+
message DateRange {
|
|
326
|
+
optional google.protobuf.Timestamp start = 1;
|
|
327
|
+
optional google.protobuf.Timestamp end = 2;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
message SearchOptions {
|
|
331
|
+
optional int32 limit = 1;
|
|
332
|
+
optional int32 offset = 2;
|
|
333
|
+
optional string language = 3;
|
|
334
|
+
optional string region = 4;
|
|
335
|
+
optional DateRange date_range = 5;
|
|
336
|
+
optional string file_type = 6;
|
|
337
|
+
optional string site = 7;
|
|
338
|
+
optional string sort_by = 8;
|
|
339
|
+
optional string safe_search = 9;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
message SearchResult {
|
|
343
|
+
string title = 1;
|
|
344
|
+
string url = 2;
|
|
345
|
+
string description = 3;
|
|
346
|
+
optional string display_url = 4;
|
|
347
|
+
optional string thumbnail = 5;
|
|
348
|
+
optional google.protobuf.Timestamp published_date = 6;
|
|
349
|
+
optional string source = 7;
|
|
350
|
+
optional double relevance_score = 8;
|
|
351
|
+
optional string snippet = 9;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
message SearchResponse {
|
|
355
|
+
string query = 1;
|
|
356
|
+
repeated SearchResult results = 2;
|
|
357
|
+
optional int32 total_results = 3;
|
|
358
|
+
optional double search_time = 4;
|
|
359
|
+
repeated string suggestions = 5;
|
|
360
|
+
optional string next_page_token = 6;
|
|
361
|
+
repeated string related_searches = 7;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
message NewsSearchOptions {
|
|
365
|
+
SearchOptions base = 1;
|
|
366
|
+
optional string category = 2;
|
|
367
|
+
optional string freshness = 3;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
message ImageSearchOptions {
|
|
371
|
+
SearchOptions base = 1;
|
|
372
|
+
optional string size = 2;
|
|
373
|
+
optional string color = 3;
|
|
374
|
+
optional string type = 4;
|
|
375
|
+
optional string layout = 5;
|
|
376
|
+
optional string license = 6;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
message VideoSearchOptions {
|
|
380
|
+
SearchOptions base = 1;
|
|
381
|
+
optional string duration = 2;
|
|
382
|
+
optional string resolution = 3;
|
|
383
|
+
optional string quality = 4;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
// ============================================================================
|
|
387
|
+
// Email Types
|
|
388
|
+
// ============================================================================
|
|
389
|
+
|
|
390
|
+
message EmailAddress {
|
|
391
|
+
string email = 1;
|
|
392
|
+
optional string name = 2;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
message EmailAttachment {
|
|
396
|
+
string filename = 1;
|
|
397
|
+
oneof content {
|
|
398
|
+
bytes content_bytes = 2;
|
|
399
|
+
string content_text = 3;
|
|
400
|
+
}
|
|
401
|
+
optional string content_type = 4;
|
|
402
|
+
optional string content_disposition = 5;
|
|
403
|
+
optional string cid = 6;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
message EmailMessage {
|
|
407
|
+
EmailAddress from = 1;
|
|
408
|
+
repeated EmailAddress to = 2;
|
|
409
|
+
repeated EmailAddress cc = 3;
|
|
410
|
+
repeated EmailAddress bcc = 4;
|
|
411
|
+
string subject = 5;
|
|
412
|
+
optional string text = 6;
|
|
413
|
+
optional string html = 7;
|
|
414
|
+
repeated EmailAttachment attachments = 8;
|
|
415
|
+
optional EmailAddress reply_to = 9;
|
|
416
|
+
optional google.protobuf.Timestamp date = 10;
|
|
417
|
+
optional string message_id = 11;
|
|
418
|
+
repeated string references = 12;
|
|
419
|
+
optional string in_reply_to = 13;
|
|
420
|
+
optional string priority = 14;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
message EmailSendOptions {
|
|
424
|
+
optional int32 retry = 1;
|
|
425
|
+
optional int32 timeout = 2;
|
|
426
|
+
optional bool track_opens = 3;
|
|
427
|
+
optional bool track_clicks = 4;
|
|
428
|
+
repeated string tags = 5;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
message EmailSearchOptions {
|
|
432
|
+
optional string query = 1;
|
|
433
|
+
optional string from = 2;
|
|
434
|
+
optional string to = 3;
|
|
435
|
+
optional string subject = 4;
|
|
436
|
+
optional string folder = 5;
|
|
437
|
+
optional google.protobuf.Timestamp since = 6;
|
|
438
|
+
optional google.protobuf.Timestamp before = 7;
|
|
439
|
+
optional int32 limit = 8;
|
|
440
|
+
optional int32 offset = 9;
|
|
441
|
+
optional bool unread = 10;
|
|
442
|
+
optional bool flagged = 11;
|
|
443
|
+
optional bool has_attachments = 12;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
message EmailFolder {
|
|
447
|
+
string name = 1;
|
|
448
|
+
string path = 2;
|
|
449
|
+
string type = 3;
|
|
450
|
+
optional int32 message_count = 4;
|
|
451
|
+
optional int32 unread_count = 5;
|
|
452
|
+
repeated EmailFolder children = 6;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
message EmailAccount {
|
|
456
|
+
string email = 1;
|
|
457
|
+
optional string name = 2;
|
|
458
|
+
optional string provider = 3;
|
|
459
|
+
repeated EmailFolder folders = 4;
|
|
460
|
+
optional int64 quota_used = 5;
|
|
461
|
+
optional int64 quota_limit = 6;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
// ============================================================================
|
|
465
|
+
// Messaging Types
|
|
466
|
+
// ============================================================================
|
|
467
|
+
|
|
468
|
+
message MessageParticipant {
|
|
469
|
+
string id = 1;
|
|
470
|
+
string name = 2;
|
|
471
|
+
optional string username = 3;
|
|
472
|
+
optional string avatar = 4;
|
|
473
|
+
optional string status = 5;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
message MessageAttachment {
|
|
477
|
+
string id = 1;
|
|
478
|
+
string filename = 2;
|
|
479
|
+
string url = 3;
|
|
480
|
+
string mime_type = 4;
|
|
481
|
+
int64 size = 5;
|
|
482
|
+
optional int32 width = 6;
|
|
483
|
+
optional int32 height = 7;
|
|
484
|
+
optional double duration = 8;
|
|
485
|
+
optional string thumbnail = 9;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
message MessageReaction {
|
|
489
|
+
string emoji = 1;
|
|
490
|
+
int32 count = 2;
|
|
491
|
+
repeated string users = 3;
|
|
492
|
+
bool has_reacted = 4;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
message MessageReference {
|
|
496
|
+
string message_id = 1;
|
|
497
|
+
string channel_id = 2;
|
|
498
|
+
string type = 3;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
message EmbedField {
|
|
502
|
+
string name = 1;
|
|
503
|
+
string value = 2;
|
|
504
|
+
optional bool inline = 3;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
message MessageEmbed {
|
|
508
|
+
optional string title = 1;
|
|
509
|
+
optional string description = 2;
|
|
510
|
+
optional string url = 3;
|
|
511
|
+
optional string image = 4;
|
|
512
|
+
repeated EmbedField fields = 5;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
message MessageContent {
|
|
516
|
+
optional string text = 1;
|
|
517
|
+
optional string html = 2;
|
|
518
|
+
optional string markdown = 3;
|
|
519
|
+
repeated MessageAttachment attachments = 4;
|
|
520
|
+
repeated MessageReaction reactions = 5;
|
|
521
|
+
optional MessageReference reference = 6;
|
|
522
|
+
repeated string mentions = 7;
|
|
523
|
+
repeated MessageEmbed embeds = 8;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
message MessageThreadInfo {
|
|
527
|
+
string id = 1;
|
|
528
|
+
int32 message_count = 2;
|
|
529
|
+
repeated string participants = 3;
|
|
530
|
+
google.protobuf.Timestamp last_message_at = 4;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
message MessageInfo {
|
|
534
|
+
string id = 1;
|
|
535
|
+
string channel_id = 2;
|
|
536
|
+
string sender_id = 3;
|
|
537
|
+
MessageContent content = 4;
|
|
538
|
+
google.protobuf.Timestamp timestamp = 5;
|
|
539
|
+
optional google.protobuf.Timestamp edited = 6;
|
|
540
|
+
optional google.protobuf.Timestamp deleted = 7;
|
|
541
|
+
optional bool pinned = 8;
|
|
542
|
+
optional MessageThreadInfo thread = 9;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
message MessageSendOptions {
|
|
546
|
+
optional string reply_to = 1;
|
|
547
|
+
optional bool ephemeral = 2;
|
|
548
|
+
optional bool silent = 3;
|
|
549
|
+
optional google.protobuf.Timestamp scheduled = 4;
|
|
550
|
+
optional string thread = 5;
|
|
551
|
+
optional string nonce = 6;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
message MessageSearchOptions {
|
|
555
|
+
optional string query = 1;
|
|
556
|
+
optional string channel_id = 2;
|
|
557
|
+
optional string sender_id = 3;
|
|
558
|
+
optional google.protobuf.Timestamp before = 4;
|
|
559
|
+
optional google.protobuf.Timestamp after = 5;
|
|
560
|
+
optional int32 limit = 6;
|
|
561
|
+
optional int32 offset = 7;
|
|
562
|
+
optional bool has_attachments = 8;
|
|
563
|
+
optional bool pinned = 9;
|
|
564
|
+
optional string mentions = 10;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
message ChannelPermissions {
|
|
568
|
+
bool can_send = 1;
|
|
569
|
+
bool can_read = 2;
|
|
570
|
+
bool can_delete = 3;
|
|
571
|
+
bool can_pin = 4;
|
|
572
|
+
bool can_manage = 5;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
message MessageChannel {
|
|
576
|
+
string id = 1;
|
|
577
|
+
string name = 2;
|
|
578
|
+
string type = 3;
|
|
579
|
+
optional string description = 4;
|
|
580
|
+
repeated MessageParticipant participants = 5;
|
|
581
|
+
optional ChannelPermissions permissions = 6;
|
|
582
|
+
optional google.protobuf.Timestamp last_message_at = 7;
|
|
583
|
+
optional int32 message_count = 8;
|
|
584
|
+
optional int32 unread_count = 9;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// ============================================================================
|
|
588
|
+
// Post/Social Types
|
|
589
|
+
// ============================================================================
|
|
590
|
+
|
|
591
|
+
message PostMedia {
|
|
592
|
+
string id = 1;
|
|
593
|
+
string url = 2;
|
|
594
|
+
string type = 3;
|
|
595
|
+
string mime_type = 4;
|
|
596
|
+
int64 size = 5;
|
|
597
|
+
optional int32 width = 6;
|
|
598
|
+
optional int32 height = 7;
|
|
599
|
+
optional double duration = 8;
|
|
600
|
+
optional string thumbnail = 9;
|
|
601
|
+
optional string description = 10;
|
|
602
|
+
optional string alt_text = 11;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
message PostLocationCoordinates {
|
|
606
|
+
double latitude = 1;
|
|
607
|
+
double longitude = 2;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
message PostLocation {
|
|
611
|
+
string name = 1;
|
|
612
|
+
optional string address = 2;
|
|
613
|
+
optional PostLocationCoordinates coordinates = 3;
|
|
614
|
+
optional string place_id = 4;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
message PostAuthor {
|
|
618
|
+
string id = 1;
|
|
619
|
+
string username = 2;
|
|
620
|
+
string display_name = 3;
|
|
621
|
+
optional string avatar = 4;
|
|
622
|
+
optional bool verified = 5;
|
|
623
|
+
optional int32 follower_count = 6;
|
|
624
|
+
optional int32 following_count = 7;
|
|
625
|
+
optional string bio = 8;
|
|
626
|
+
optional string website = 9;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
message PostEngagement {
|
|
630
|
+
int32 likes = 1;
|
|
631
|
+
int32 shares = 2;
|
|
632
|
+
int32 comments = 3;
|
|
633
|
+
optional int32 views = 4;
|
|
634
|
+
bool has_liked = 5;
|
|
635
|
+
bool has_shared = 6;
|
|
636
|
+
bool has_commented = 7;
|
|
637
|
+
bool has_saved = 8;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
message PostLinkPreview {
|
|
641
|
+
string url = 1;
|
|
642
|
+
optional string title = 2;
|
|
643
|
+
optional string description = 3;
|
|
644
|
+
optional string image = 4;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
message PostPollOption {
|
|
648
|
+
string text = 1;
|
|
649
|
+
int32 votes = 2;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
message PostPoll {
|
|
653
|
+
string question = 1;
|
|
654
|
+
repeated PostPollOption options = 2;
|
|
655
|
+
optional google.protobuf.Timestamp expires_at = 3;
|
|
656
|
+
optional bool multiple_choice = 4;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
message PostContent {
|
|
660
|
+
optional string text = 1;
|
|
661
|
+
optional string html = 2;
|
|
662
|
+
repeated PostMedia media = 3;
|
|
663
|
+
optional PostLocation location = 4;
|
|
664
|
+
repeated string tags = 5;
|
|
665
|
+
repeated string mentions = 6;
|
|
666
|
+
repeated PostLinkPreview links = 7;
|
|
667
|
+
optional PostPoll poll = 8;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
message PostThreadInfo {
|
|
671
|
+
string id = 1;
|
|
672
|
+
int32 position = 2;
|
|
673
|
+
int32 total = 3;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
message CrossPostInfo {
|
|
677
|
+
string platform = 1;
|
|
678
|
+
string platform_id = 2;
|
|
679
|
+
string url = 3;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
message PostInfo {
|
|
683
|
+
string id = 1;
|
|
684
|
+
PostAuthor author = 2;
|
|
685
|
+
PostContent content = 3;
|
|
686
|
+
string platform = 4;
|
|
687
|
+
string platform_id = 5;
|
|
688
|
+
string url = 6;
|
|
689
|
+
google.protobuf.Timestamp created_at = 7;
|
|
690
|
+
optional google.protobuf.Timestamp edited_at = 8;
|
|
691
|
+
optional google.protobuf.Timestamp scheduled_at = 9;
|
|
692
|
+
PostEngagement engagement = 10;
|
|
693
|
+
string visibility = 11;
|
|
694
|
+
optional string reply_to = 12;
|
|
695
|
+
optional PostThreadInfo thread = 13;
|
|
696
|
+
repeated CrossPostInfo cross_posted = 14;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
message PostCreateOptions {
|
|
700
|
+
repeated string platforms = 1;
|
|
701
|
+
optional google.protobuf.Timestamp scheduled_at = 2;
|
|
702
|
+
optional string visibility = 3;
|
|
703
|
+
optional string reply_to = 4;
|
|
704
|
+
optional bool thread = 5;
|
|
705
|
+
optional PostLocation location = 6;
|
|
706
|
+
repeated string tags = 7;
|
|
707
|
+
repeated string mentions = 8;
|
|
708
|
+
optional bool enable_comments = 9;
|
|
709
|
+
optional bool enable_sharing = 10;
|
|
710
|
+
optional string content_warning = 11;
|
|
711
|
+
optional bool sensitive = 12;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
message PostSearchOptions {
|
|
715
|
+
optional string query = 1;
|
|
716
|
+
optional string author = 2;
|
|
717
|
+
optional string platform = 3;
|
|
718
|
+
repeated string tags = 4;
|
|
719
|
+
repeated string mentions = 5;
|
|
720
|
+
optional google.protobuf.Timestamp since = 6;
|
|
721
|
+
optional google.protobuf.Timestamp before = 7;
|
|
722
|
+
optional int32 limit = 8;
|
|
723
|
+
optional int32 offset = 9;
|
|
724
|
+
optional bool has_media = 10;
|
|
725
|
+
optional bool has_location = 11;
|
|
726
|
+
optional string visibility = 12;
|
|
727
|
+
optional string sort_by = 13;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
message Demographics {
|
|
731
|
+
map<string, double> age = 1;
|
|
732
|
+
map<string, double> gender = 2;
|
|
733
|
+
map<string, double> location = 3;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
message TopPerformingHour {
|
|
737
|
+
int32 hour = 1;
|
|
738
|
+
int32 engagement = 2;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
message PostAnalytics {
|
|
742
|
+
string post_id = 1;
|
|
743
|
+
string platform = 2;
|
|
744
|
+
int32 impressions = 3;
|
|
745
|
+
int32 reach = 4;
|
|
746
|
+
PostEngagement engagement = 5;
|
|
747
|
+
int32 clicks = 6;
|
|
748
|
+
int32 shares = 7;
|
|
749
|
+
int32 saves = 8;
|
|
750
|
+
optional Demographics demographics = 9;
|
|
751
|
+
repeated TopPerformingHour top_performing_hours = 10;
|
|
752
|
+
}
|