@pidgeon-ai/cli 0.0.0-stage → 1.0.0

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.
@@ -0,0 +1,2603 @@
1
+ #!/usr/bin/env node
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, { get: all[name], enumerable: true });
6
+ };
7
+
8
+ // src/commands.gen.ts
9
+ var COMMANDS = [
10
+ {
11
+ "group": "agent",
12
+ "name": "attachHuman",
13
+ "operationId": "agentAttachHuman",
14
+ "method": "POST",
15
+ "path": "/agent/human",
16
+ "summary": "Name the human for a signup",
17
+ "flags": [
18
+ {
19
+ "name": "signup_id",
20
+ "kind": "string",
21
+ "required": true,
22
+ "where": "body"
23
+ },
24
+ {
25
+ "name": "human_email",
26
+ "kind": "string",
27
+ "required": true,
28
+ "where": "body"
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "group": "agent",
34
+ "name": "signUp",
35
+ "operationId": "agentSignUp",
36
+ "method": "POST",
37
+ "path": "/agent/signup",
38
+ "summary": "Sign an agent up",
39
+ "flags": [
40
+ {
41
+ "name": "username",
42
+ "kind": "string",
43
+ "required": true,
44
+ "where": "body"
45
+ },
46
+ {
47
+ "name": "human_email",
48
+ "kind": "string",
49
+ "required": true,
50
+ "where": "body"
51
+ },
52
+ {
53
+ "name": "source",
54
+ "kind": "string",
55
+ "required": false,
56
+ "where": "body"
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "group": "agent",
62
+ "name": "verify",
63
+ "operationId": "agentVerify",
64
+ "method": "POST",
65
+ "path": "/agent/verify",
66
+ "summary": "Verify an agent with the human\u2019s code",
67
+ "flags": [
68
+ {
69
+ "name": "signup_id",
70
+ "kind": "string",
71
+ "required": true,
72
+ "where": "body"
73
+ },
74
+ {
75
+ "name": "code",
76
+ "kind": "string",
77
+ "required": true,
78
+ "where": "body"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "group": "appPasswords",
84
+ "name": "create",
85
+ "operationId": "appPasswordsCreate",
86
+ "method": "POST",
87
+ "path": "/app-passwords",
88
+ "summary": "Issue IMAP and SMTP credentials for one address",
89
+ "flags": [
90
+ {
91
+ "name": "identity_id",
92
+ "kind": "string",
93
+ "required": true,
94
+ "where": "body"
95
+ },
96
+ {
97
+ "name": "name",
98
+ "kind": "string",
99
+ "required": true,
100
+ "where": "body"
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "group": "appPasswords",
106
+ "name": "list",
107
+ "operationId": "appPasswordsList",
108
+ "method": "GET",
109
+ "path": "/app-passwords",
110
+ "summary": "List the devices that reach one address",
111
+ "flags": [
112
+ {
113
+ "name": "identity_id",
114
+ "kind": "string",
115
+ "required": true,
116
+ "where": "query"
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "group": "appPasswords",
122
+ "name": "revoke",
123
+ "operationId": "appPasswordsRevoke",
124
+ "method": "DELETE",
125
+ "path": "/app-passwords/{id}",
126
+ "summary": "Revoke an app password",
127
+ "flags": [
128
+ {
129
+ "name": "id",
130
+ "kind": "string",
131
+ "required": true,
132
+ "where": "path"
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "group": "attachments",
138
+ "name": "downloadUrl",
139
+ "operationId": "attachmentsDownloadUrl",
140
+ "method": "GET",
141
+ "path": "/attachments/{id}",
142
+ "summary": "Get a download link for an attachment",
143
+ "flags": [
144
+ {
145
+ "name": "id",
146
+ "kind": "string",
147
+ "required": true,
148
+ "where": "path"
149
+ }
150
+ ]
151
+ },
152
+ {
153
+ "group": "attachments",
154
+ "name": "upload",
155
+ "operationId": "attachmentsUpload",
156
+ "method": "POST",
157
+ "path": "/attachments",
158
+ "summary": "Upload a file to send",
159
+ "flags": []
160
+ },
161
+ {
162
+ "group": "calendar",
163
+ "name": "createEvent",
164
+ "operationId": "calendarCreateEvent",
165
+ "method": "POST",
166
+ "path": "/identities/{id}/calendar/events",
167
+ "summary": "Put something on the calendar",
168
+ "flags": [
169
+ {
170
+ "name": "id",
171
+ "kind": "string",
172
+ "required": true,
173
+ "where": "path"
174
+ },
175
+ {
176
+ "name": "title",
177
+ "kind": "string",
178
+ "required": true,
179
+ "where": "body"
180
+ },
181
+ {
182
+ "name": "start",
183
+ "kind": "string",
184
+ "required": true,
185
+ "where": "body"
186
+ },
187
+ {
188
+ "name": "end",
189
+ "kind": "string",
190
+ "required": true,
191
+ "where": "body"
192
+ },
193
+ {
194
+ "name": "timezone",
195
+ "kind": "string",
196
+ "required": false,
197
+ "where": "body"
198
+ },
199
+ {
200
+ "name": "all_day",
201
+ "kind": "boolean",
202
+ "required": false,
203
+ "where": "body"
204
+ },
205
+ {
206
+ "name": "description",
207
+ "kind": "string",
208
+ "required": false,
209
+ "where": "body"
210
+ },
211
+ {
212
+ "name": "location",
213
+ "kind": "string",
214
+ "required": false,
215
+ "where": "body"
216
+ },
217
+ {
218
+ "name": "status",
219
+ "kind": "string",
220
+ "required": false,
221
+ "where": "body"
222
+ },
223
+ {
224
+ "name": "metadata",
225
+ "kind": "string",
226
+ "required": false,
227
+ "where": "body"
228
+ },
229
+ {
230
+ "name": "attendees",
231
+ "kind": "json",
232
+ "required": false,
233
+ "where": "body"
234
+ },
235
+ {
236
+ "name": "send_invites",
237
+ "kind": "boolean",
238
+ "required": false,
239
+ "where": "body"
240
+ },
241
+ {
242
+ "name": "recurrence",
243
+ "kind": "json",
244
+ "required": false,
245
+ "where": "body"
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "group": "calendar",
251
+ "name": "deleteEvent",
252
+ "operationId": "calendarDeleteEvent",
253
+ "method": "DELETE",
254
+ "path": "/identities/{id}/calendar/events/{eventId}",
255
+ "summary": "Take it off the calendar",
256
+ "flags": [
257
+ {
258
+ "name": "id",
259
+ "kind": "string",
260
+ "required": true,
261
+ "where": "path"
262
+ },
263
+ {
264
+ "name": "eventId",
265
+ "kind": "string",
266
+ "required": true,
267
+ "where": "path"
268
+ },
269
+ {
270
+ "name": "mode",
271
+ "kind": "string",
272
+ "required": false,
273
+ "where": "query"
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "group": "calendar",
279
+ "name": "get",
280
+ "operationId": "calendarGet",
281
+ "method": "GET",
282
+ "path": "/identities/{id}/calendar",
283
+ "summary": "A mailbox\u2019s calendar",
284
+ "flags": [
285
+ {
286
+ "name": "id",
287
+ "kind": "string",
288
+ "required": true,
289
+ "where": "path"
290
+ }
291
+ ]
292
+ },
293
+ {
294
+ "group": "calendar",
295
+ "name": "getAgenda",
296
+ "operationId": "calendarGetAgenda",
297
+ "method": "GET",
298
+ "path": "/identities/{id}/calendar/agenda",
299
+ "summary": "What is on, in a window, in order",
300
+ "flags": [
301
+ {
302
+ "name": "id",
303
+ "kind": "string",
304
+ "required": true,
305
+ "where": "path"
306
+ },
307
+ {
308
+ "name": "after",
309
+ "kind": "string",
310
+ "required": false,
311
+ "where": "query"
312
+ },
313
+ {
314
+ "name": "before",
315
+ "kind": "string",
316
+ "required": false,
317
+ "where": "query"
318
+ },
319
+ {
320
+ "name": "include_overlapping",
321
+ "kind": "string",
322
+ "required": false,
323
+ "where": "query"
324
+ },
325
+ {
326
+ "name": "limit",
327
+ "kind": "number",
328
+ "required": false,
329
+ "where": "query"
330
+ }
331
+ ]
332
+ },
333
+ {
334
+ "group": "calendar",
335
+ "name": "getEvent",
336
+ "operationId": "calendarGetEvent",
337
+ "method": "GET",
338
+ "path": "/identities/{id}/calendar/events/{eventId}",
339
+ "summary": "One event",
340
+ "flags": [
341
+ {
342
+ "name": "id",
343
+ "kind": "string",
344
+ "required": true,
345
+ "where": "path"
346
+ },
347
+ {
348
+ "name": "eventId",
349
+ "kind": "string",
350
+ "required": true,
351
+ "where": "path"
352
+ }
353
+ ]
354
+ },
355
+ {
356
+ "group": "calendar",
357
+ "name": "listEventInstances",
358
+ "operationId": "calendarListEventInstances",
359
+ "method": "GET",
360
+ "path": "/identities/{id}/calendar/events/{eventId}/instances",
361
+ "summary": "The dates a series actually happens",
362
+ "flags": [
363
+ {
364
+ "name": "id",
365
+ "kind": "string",
366
+ "required": true,
367
+ "where": "path"
368
+ },
369
+ {
370
+ "name": "eventId",
371
+ "kind": "string",
372
+ "required": true,
373
+ "where": "path"
374
+ },
375
+ {
376
+ "name": "after",
377
+ "kind": "string",
378
+ "required": false,
379
+ "where": "query"
380
+ },
381
+ {
382
+ "name": "before",
383
+ "kind": "string",
384
+ "required": false,
385
+ "where": "query"
386
+ },
387
+ {
388
+ "name": "limit",
389
+ "kind": "number",
390
+ "required": false,
391
+ "where": "query"
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "group": "calendar",
397
+ "name": "listEvents",
398
+ "operationId": "calendarListEvents",
399
+ "method": "GET",
400
+ "path": "/identities/{id}/calendar/events",
401
+ "summary": "Everything on the calendar",
402
+ "flags": [
403
+ {
404
+ "name": "id",
405
+ "kind": "string",
406
+ "required": true,
407
+ "where": "path"
408
+ },
409
+ {
410
+ "name": "limit",
411
+ "kind": "number",
412
+ "required": false,
413
+ "where": "query"
414
+ },
415
+ {
416
+ "name": "cursor",
417
+ "kind": "string",
418
+ "required": false,
419
+ "where": "query"
420
+ }
421
+ ]
422
+ },
423
+ {
424
+ "group": "calendar",
425
+ "name": "respondToEvent",
426
+ "operationId": "calendarRespondToEvent",
427
+ "method": "POST",
428
+ "path": "/identities/{id}/calendar/events/{eventId}/respond",
429
+ "summary": "Answer a meeting from the calendar",
430
+ "flags": [
431
+ {
432
+ "name": "id",
433
+ "kind": "string",
434
+ "required": true,
435
+ "where": "path"
436
+ },
437
+ {
438
+ "name": "eventId",
439
+ "kind": "string",
440
+ "required": true,
441
+ "where": "path"
442
+ },
443
+ {
444
+ "name": "status",
445
+ "kind": "string",
446
+ "required": true,
447
+ "where": "body"
448
+ },
449
+ {
450
+ "name": "comment",
451
+ "kind": "string",
452
+ "required": false,
453
+ "where": "body"
454
+ },
455
+ {
456
+ "name": "send_reply",
457
+ "kind": "boolean",
458
+ "required": false,
459
+ "where": "body"
460
+ }
461
+ ]
462
+ },
463
+ {
464
+ "group": "calendar",
465
+ "name": "update",
466
+ "operationId": "calendarUpdate",
467
+ "method": "PATCH",
468
+ "path": "/identities/{id}/calendar",
469
+ "summary": "Set the default time zone",
470
+ "flags": [
471
+ {
472
+ "name": "id",
473
+ "kind": "string",
474
+ "required": true,
475
+ "where": "path"
476
+ },
477
+ {
478
+ "name": "timezone",
479
+ "kind": "string",
480
+ "required": true,
481
+ "where": "body"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "group": "calendar",
487
+ "name": "updateEvent",
488
+ "operationId": "calendarUpdateEvent",
489
+ "method": "PATCH",
490
+ "path": "/identities/{id}/calendar/events/{eventId}",
491
+ "summary": "Change an event",
492
+ "flags": [
493
+ {
494
+ "name": "id",
495
+ "kind": "string",
496
+ "required": true,
497
+ "where": "path"
498
+ },
499
+ {
500
+ "name": "eventId",
501
+ "kind": "string",
502
+ "required": true,
503
+ "where": "path"
504
+ },
505
+ {
506
+ "name": "mode",
507
+ "kind": "string",
508
+ "required": false,
509
+ "where": "query"
510
+ },
511
+ {
512
+ "name": "title",
513
+ "kind": "string",
514
+ "required": false,
515
+ "where": "body"
516
+ },
517
+ {
518
+ "name": "start",
519
+ "kind": "string",
520
+ "required": false,
521
+ "where": "body"
522
+ },
523
+ {
524
+ "name": "end",
525
+ "kind": "string",
526
+ "required": false,
527
+ "where": "body"
528
+ },
529
+ {
530
+ "name": "timezone",
531
+ "kind": "string",
532
+ "required": false,
533
+ "where": "body"
534
+ },
535
+ {
536
+ "name": "all_day",
537
+ "kind": "boolean",
538
+ "required": false,
539
+ "where": "body"
540
+ },
541
+ {
542
+ "name": "description",
543
+ "kind": "string",
544
+ "required": false,
545
+ "where": "body"
546
+ },
547
+ {
548
+ "name": "location",
549
+ "kind": "string",
550
+ "required": false,
551
+ "where": "body"
552
+ },
553
+ {
554
+ "name": "status",
555
+ "kind": "string",
556
+ "required": false,
557
+ "where": "body"
558
+ },
559
+ {
560
+ "name": "metadata",
561
+ "kind": "string",
562
+ "required": false,
563
+ "where": "body"
564
+ },
565
+ {
566
+ "name": "attendees",
567
+ "kind": "json",
568
+ "required": false,
569
+ "where": "body"
570
+ },
571
+ {
572
+ "name": "recurrence",
573
+ "kind": "json",
574
+ "required": false,
575
+ "where": "body"
576
+ },
577
+ {
578
+ "name": "send_invites",
579
+ "kind": "boolean",
580
+ "required": false,
581
+ "where": "body"
582
+ }
583
+ ]
584
+ },
585
+ {
586
+ "group": "domains",
587
+ "name": "create",
588
+ "operationId": "domainsCreate",
589
+ "method": "POST",
590
+ "path": "/domains",
591
+ "summary": "Connect a domain",
592
+ "flags": [
593
+ {
594
+ "name": "domain",
595
+ "kind": "string",
596
+ "required": true,
597
+ "where": "body"
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "group": "domains",
603
+ "name": "delete",
604
+ "operationId": "domainsDelete",
605
+ "method": "DELETE",
606
+ "path": "/domains/{id}",
607
+ "summary": "Disconnect a domain",
608
+ "flags": [
609
+ {
610
+ "name": "id",
611
+ "kind": "string",
612
+ "required": true,
613
+ "where": "path"
614
+ }
615
+ ]
616
+ },
617
+ {
618
+ "group": "domains",
619
+ "name": "get",
620
+ "operationId": "domainsGet",
621
+ "method": "GET",
622
+ "path": "/domains/{id}",
623
+ "summary": "Fetch one domain, with the state of each record",
624
+ "flags": [
625
+ {
626
+ "name": "id",
627
+ "kind": "string",
628
+ "required": true,
629
+ "where": "path"
630
+ }
631
+ ]
632
+ },
633
+ {
634
+ "group": "domains",
635
+ "name": "getSetupLink",
636
+ "operationId": "domainsGetSetupLink",
637
+ "method": "GET",
638
+ "path": "/domains/{id}/setup-link",
639
+ "summary": "One-click DNS setup, when the provider supports it",
640
+ "flags": [
641
+ {
642
+ "name": "id",
643
+ "kind": "string",
644
+ "required": true,
645
+ "where": "path"
646
+ },
647
+ {
648
+ "name": "template",
649
+ "kind": "string",
650
+ "required": false,
651
+ "where": "query"
652
+ }
653
+ ]
654
+ },
655
+ {
656
+ "group": "domains",
657
+ "name": "list",
658
+ "operationId": "domainsList",
659
+ "method": "GET",
660
+ "path": "/domains",
661
+ "summary": "List domains",
662
+ "flags": [
663
+ {
664
+ "name": "limit",
665
+ "kind": "number",
666
+ "required": false,
667
+ "where": "query"
668
+ },
669
+ {
670
+ "name": "cursor",
671
+ "kind": "string",
672
+ "required": false,
673
+ "where": "query"
674
+ }
675
+ ]
676
+ },
677
+ {
678
+ "group": "domains",
679
+ "name": "update",
680
+ "operationId": "domainsUpdate",
681
+ "method": "PATCH",
682
+ "path": "/domains/{id}",
683
+ "summary": "Turn the catch-all on or off",
684
+ "flags": [
685
+ {
686
+ "name": "id",
687
+ "kind": "string",
688
+ "required": true,
689
+ "where": "path"
690
+ },
691
+ {
692
+ "name": "catch_all_enabled",
693
+ "kind": "boolean",
694
+ "required": true,
695
+ "where": "body"
696
+ }
697
+ ]
698
+ },
699
+ {
700
+ "group": "domains",
701
+ "name": "verify",
702
+ "operationId": "domainsVerify",
703
+ "method": "POST",
704
+ "path": "/domains/{id}/verify",
705
+ "summary": "Check the zone again",
706
+ "flags": [
707
+ {
708
+ "name": "id",
709
+ "kind": "string",
710
+ "required": true,
711
+ "where": "path"
712
+ }
713
+ ]
714
+ },
715
+ {
716
+ "group": "domains",
717
+ "name": "zoneFile",
718
+ "operationId": "domainsZoneFile",
719
+ "method": "GET",
720
+ "path": "/domains/{id}/zone-file",
721
+ "summary": "The records as a zone file",
722
+ "flags": [
723
+ {
724
+ "name": "id",
725
+ "kind": "string",
726
+ "required": true,
727
+ "where": "path"
728
+ }
729
+ ]
730
+ },
731
+ {
732
+ "group": "drafts",
733
+ "name": "cancelSchedule",
734
+ "operationId": "draftsCancelSchedule",
735
+ "method": "DELETE",
736
+ "path": "/drafts/{id}/schedule",
737
+ "summary": "Back to being an ordinary draft",
738
+ "flags": [
739
+ {
740
+ "name": "id",
741
+ "kind": "string",
742
+ "required": true,
743
+ "where": "path"
744
+ }
745
+ ]
746
+ },
747
+ {
748
+ "group": "drafts",
749
+ "name": "create",
750
+ "operationId": "draftsCreate",
751
+ "method": "POST",
752
+ "path": "/drafts",
753
+ "summary": "Write one without sending it",
754
+ "flags": [
755
+ {
756
+ "name": "identity_id",
757
+ "kind": "string",
758
+ "required": true,
759
+ "where": "body"
760
+ },
761
+ {
762
+ "name": "from",
763
+ "kind": "string",
764
+ "required": false,
765
+ "where": "body"
766
+ },
767
+ {
768
+ "name": "to",
769
+ "kind": "list",
770
+ "required": false,
771
+ "where": "body"
772
+ },
773
+ {
774
+ "name": "cc",
775
+ "kind": "list",
776
+ "required": false,
777
+ "where": "body"
778
+ },
779
+ {
780
+ "name": "bcc",
781
+ "kind": "list",
782
+ "required": false,
783
+ "where": "body"
784
+ },
785
+ {
786
+ "name": "subject",
787
+ "kind": "string",
788
+ "required": false,
789
+ "where": "body"
790
+ },
791
+ {
792
+ "name": "text",
793
+ "kind": "string",
794
+ "required": false,
795
+ "where": "body"
796
+ },
797
+ {
798
+ "name": "in_reply_to_message_id",
799
+ "kind": "string",
800
+ "required": false,
801
+ "where": "body"
802
+ },
803
+ {
804
+ "name": "attachment_ids",
805
+ "kind": "list",
806
+ "required": false,
807
+ "where": "body"
808
+ }
809
+ ]
810
+ },
811
+ {
812
+ "group": "drafts",
813
+ "name": "delete",
814
+ "operationId": "draftsDelete",
815
+ "method": "DELETE",
816
+ "path": "/drafts/{id}",
817
+ "summary": "Throw it away",
818
+ "flags": [
819
+ {
820
+ "name": "id",
821
+ "kind": "string",
822
+ "required": true,
823
+ "where": "path"
824
+ }
825
+ ]
826
+ },
827
+ {
828
+ "group": "drafts",
829
+ "name": "get",
830
+ "operationId": "draftsGet",
831
+ "method": "GET",
832
+ "path": "/drafts/{id}",
833
+ "summary": "Fetch one draft",
834
+ "flags": [
835
+ {
836
+ "name": "id",
837
+ "kind": "string",
838
+ "required": true,
839
+ "where": "path"
840
+ }
841
+ ]
842
+ },
843
+ {
844
+ "group": "drafts",
845
+ "name": "list",
846
+ "operationId": "draftsList",
847
+ "method": "GET",
848
+ "path": "/drafts",
849
+ "summary": "Every draft in one mailbox",
850
+ "flags": [
851
+ {
852
+ "name": "identity_id",
853
+ "kind": "string",
854
+ "required": true,
855
+ "where": "query"
856
+ },
857
+ {
858
+ "name": "limit",
859
+ "kind": "number",
860
+ "required": false,
861
+ "where": "query"
862
+ }
863
+ ]
864
+ },
865
+ {
866
+ "group": "drafts",
867
+ "name": "removeAttachment",
868
+ "operationId": "draftsRemoveAttachment",
869
+ "method": "DELETE",
870
+ "path": "/drafts/{id}/attachments/{attachmentId}",
871
+ "summary": "Take a file off a draft",
872
+ "flags": [
873
+ {
874
+ "name": "id",
875
+ "kind": "string",
876
+ "required": true,
877
+ "where": "path"
878
+ },
879
+ {
880
+ "name": "attachmentId",
881
+ "kind": "string",
882
+ "required": true,
883
+ "where": "path"
884
+ }
885
+ ]
886
+ },
887
+ {
888
+ "group": "drafts",
889
+ "name": "schedule",
890
+ "operationId": "draftsSchedule",
891
+ "method": "POST",
892
+ "path": "/drafts/{id}/schedule",
893
+ "summary": "Send it later",
894
+ "flags": [
895
+ {
896
+ "name": "id",
897
+ "kind": "string",
898
+ "required": true,
899
+ "where": "path"
900
+ },
901
+ {
902
+ "name": "send_at",
903
+ "kind": "string",
904
+ "required": true,
905
+ "where": "body"
906
+ }
907
+ ]
908
+ },
909
+ {
910
+ "group": "drafts",
911
+ "name": "send",
912
+ "operationId": "draftsSend",
913
+ "method": "POST",
914
+ "path": "/drafts/{id}/send",
915
+ "summary": "Send what is stored",
916
+ "flags": [
917
+ {
918
+ "name": "id",
919
+ "kind": "string",
920
+ "required": true,
921
+ "where": "path"
922
+ }
923
+ ]
924
+ },
925
+ {
926
+ "group": "drafts",
927
+ "name": "update",
928
+ "operationId": "draftsUpdate",
929
+ "method": "PATCH",
930
+ "path": "/drafts/{id}",
931
+ "summary": "Change some of it, and leave the rest",
932
+ "flags": [
933
+ {
934
+ "name": "id",
935
+ "kind": "string",
936
+ "required": true,
937
+ "where": "path"
938
+ },
939
+ {
940
+ "name": "from",
941
+ "kind": "string",
942
+ "required": false,
943
+ "where": "body"
944
+ },
945
+ {
946
+ "name": "to",
947
+ "kind": "list",
948
+ "required": false,
949
+ "where": "body"
950
+ },
951
+ {
952
+ "name": "cc",
953
+ "kind": "list",
954
+ "required": false,
955
+ "where": "body"
956
+ },
957
+ {
958
+ "name": "bcc",
959
+ "kind": "list",
960
+ "required": false,
961
+ "where": "body"
962
+ },
963
+ {
964
+ "name": "subject",
965
+ "kind": "string",
966
+ "required": false,
967
+ "where": "body"
968
+ },
969
+ {
970
+ "name": "text",
971
+ "kind": "string",
972
+ "required": false,
973
+ "where": "body"
974
+ },
975
+ {
976
+ "name": "attachment_ids",
977
+ "kind": "list",
978
+ "required": false,
979
+ "where": "body"
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "group": "events",
985
+ "name": "get",
986
+ "operationId": "eventsGet",
987
+ "method": "GET",
988
+ "path": "/events/{id}",
989
+ "summary": "Fetch one event",
990
+ "flags": [
991
+ {
992
+ "name": "id",
993
+ "kind": "string",
994
+ "required": true,
995
+ "where": "path"
996
+ }
997
+ ]
998
+ },
999
+ {
1000
+ "group": "events",
1001
+ "name": "list",
1002
+ "operationId": "eventsList",
1003
+ "method": "GET",
1004
+ "path": "/events",
1005
+ "summary": "List events",
1006
+ "flags": [
1007
+ {
1008
+ "name": "limit",
1009
+ "kind": "number",
1010
+ "required": false,
1011
+ "where": "query"
1012
+ },
1013
+ {
1014
+ "name": "cursor",
1015
+ "kind": "string",
1016
+ "required": false,
1017
+ "where": "query"
1018
+ },
1019
+ {
1020
+ "name": "type",
1021
+ "kind": "string",
1022
+ "required": false,
1023
+ "where": "query"
1024
+ },
1025
+ {
1026
+ "name": "identity_id",
1027
+ "kind": "string",
1028
+ "required": false,
1029
+ "where": "query"
1030
+ },
1031
+ {
1032
+ "name": "after",
1033
+ "kind": "string",
1034
+ "required": false,
1035
+ "where": "query"
1036
+ }
1037
+ ]
1038
+ },
1039
+ {
1040
+ "group": "identities",
1041
+ "name": "accessCreate",
1042
+ "operationId": "identitiesAccessCreate",
1043
+ "method": "POST",
1044
+ "path": "/identities/{id}/access",
1045
+ "summary": "Grant access",
1046
+ "flags": [
1047
+ {
1048
+ "name": "id",
1049
+ "kind": "string",
1050
+ "required": true,
1051
+ "where": "path"
1052
+ },
1053
+ {
1054
+ "name": "user_id",
1055
+ "kind": "string",
1056
+ "required": false,
1057
+ "where": "body"
1058
+ },
1059
+ {
1060
+ "name": "api_key_id",
1061
+ "kind": "string",
1062
+ "required": false,
1063
+ "where": "body"
1064
+ },
1065
+ {
1066
+ "name": "everyone",
1067
+ "kind": "boolean",
1068
+ "required": false,
1069
+ "where": "body"
1070
+ },
1071
+ {
1072
+ "name": "access",
1073
+ "kind": "string",
1074
+ "required": true,
1075
+ "where": "body"
1076
+ }
1077
+ ]
1078
+ },
1079
+ {
1080
+ "group": "identities",
1081
+ "name": "accessDelete",
1082
+ "operationId": "identitiesAccessDelete",
1083
+ "method": "DELETE",
1084
+ "path": "/identities/{id}/access",
1085
+ "summary": "Revoke access",
1086
+ "flags": [
1087
+ {
1088
+ "name": "id",
1089
+ "kind": "string",
1090
+ "required": true,
1091
+ "where": "path"
1092
+ },
1093
+ {
1094
+ "name": "grant_id",
1095
+ "kind": "string",
1096
+ "required": true,
1097
+ "where": "query"
1098
+ }
1099
+ ]
1100
+ },
1101
+ {
1102
+ "group": "identities",
1103
+ "name": "accessGet",
1104
+ "operationId": "identitiesAccessGet",
1105
+ "method": "GET",
1106
+ "path": "/identities/{id}/access",
1107
+ "summary": "Who can reach this address",
1108
+ "flags": [
1109
+ {
1110
+ "name": "id",
1111
+ "kind": "string",
1112
+ "required": true,
1113
+ "where": "path"
1114
+ }
1115
+ ]
1116
+ },
1117
+ {
1118
+ "group": "identities",
1119
+ "name": "create",
1120
+ "operationId": "identitiesCreate",
1121
+ "method": "POST",
1122
+ "path": "/identities",
1123
+ "summary": "Create an address",
1124
+ "flags": [
1125
+ {
1126
+ "name": "domain_id",
1127
+ "kind": "string",
1128
+ "required": true,
1129
+ "where": "body"
1130
+ },
1131
+ {
1132
+ "name": "local_part",
1133
+ "kind": "string",
1134
+ "required": true,
1135
+ "where": "body"
1136
+ },
1137
+ {
1138
+ "name": "display_name",
1139
+ "kind": "string",
1140
+ "required": false,
1141
+ "where": "body"
1142
+ },
1143
+ {
1144
+ "name": "type",
1145
+ "kind": "string",
1146
+ "required": false,
1147
+ "where": "body"
1148
+ },
1149
+ {
1150
+ "name": "mode",
1151
+ "kind": "string",
1152
+ "required": false,
1153
+ "where": "body"
1154
+ },
1155
+ {
1156
+ "name": "expires_at",
1157
+ "kind": "string",
1158
+ "required": false,
1159
+ "where": "body"
1160
+ },
1161
+ {
1162
+ "name": "send_policy",
1163
+ "kind": "string",
1164
+ "required": false,
1165
+ "where": "body"
1166
+ },
1167
+ {
1168
+ "name": "tenant_id",
1169
+ "kind": "string",
1170
+ "required": false,
1171
+ "where": "body"
1172
+ }
1173
+ ]
1174
+ },
1175
+ {
1176
+ "group": "identities",
1177
+ "name": "delete",
1178
+ "operationId": "identitiesDelete",
1179
+ "method": "DELETE",
1180
+ "path": "/identities/{id}",
1181
+ "summary": "Delete an address",
1182
+ "flags": [
1183
+ {
1184
+ "name": "id",
1185
+ "kind": "string",
1186
+ "required": true,
1187
+ "where": "path"
1188
+ }
1189
+ ]
1190
+ },
1191
+ {
1192
+ "group": "identities",
1193
+ "name": "get",
1194
+ "operationId": "identitiesGet",
1195
+ "method": "GET",
1196
+ "path": "/identities/{id}",
1197
+ "summary": "Fetch one address",
1198
+ "flags": [
1199
+ {
1200
+ "name": "id",
1201
+ "kind": "string",
1202
+ "required": true,
1203
+ "where": "path"
1204
+ }
1205
+ ]
1206
+ },
1207
+ {
1208
+ "group": "identities",
1209
+ "name": "list",
1210
+ "operationId": "identitiesList",
1211
+ "method": "GET",
1212
+ "path": "/identities",
1213
+ "summary": "List addresses",
1214
+ "flags": [
1215
+ {
1216
+ "name": "limit",
1217
+ "kind": "number",
1218
+ "required": false,
1219
+ "where": "query"
1220
+ },
1221
+ {
1222
+ "name": "cursor",
1223
+ "kind": "string",
1224
+ "required": false,
1225
+ "where": "query"
1226
+ },
1227
+ {
1228
+ "name": "tenant_id",
1229
+ "kind": "string",
1230
+ "required": false,
1231
+ "where": "query"
1232
+ }
1233
+ ]
1234
+ },
1235
+ {
1236
+ "group": "identities",
1237
+ "name": "receiveRulesCreate",
1238
+ "operationId": "identitiesReceiveRulesCreate",
1239
+ "method": "POST",
1240
+ "path": "/identities/{id}/receive-rules",
1241
+ "summary": "Decide what happens to a sender",
1242
+ "flags": [
1243
+ {
1244
+ "name": "id",
1245
+ "kind": "string",
1246
+ "required": true,
1247
+ "where": "path"
1248
+ },
1249
+ {
1250
+ "name": "action",
1251
+ "kind": "string",
1252
+ "required": true,
1253
+ "where": "body"
1254
+ },
1255
+ {
1256
+ "name": "value",
1257
+ "kind": "string",
1258
+ "required": true,
1259
+ "where": "body"
1260
+ }
1261
+ ]
1262
+ },
1263
+ {
1264
+ "group": "identities",
1265
+ "name": "receiveRulesDelete",
1266
+ "operationId": "identitiesReceiveRulesDelete",
1267
+ "method": "DELETE",
1268
+ "path": "/identities/{id}/receive-rules",
1269
+ "summary": "Remove a rule",
1270
+ "flags": [
1271
+ {
1272
+ "name": "id",
1273
+ "kind": "string",
1274
+ "required": true,
1275
+ "where": "path"
1276
+ },
1277
+ {
1278
+ "name": "rule_id",
1279
+ "kind": "string",
1280
+ "required": true,
1281
+ "where": "query"
1282
+ }
1283
+ ]
1284
+ },
1285
+ {
1286
+ "group": "identities",
1287
+ "name": "receiveRulesGet",
1288
+ "operationId": "identitiesReceiveRulesGet",
1289
+ "method": "GET",
1290
+ "path": "/identities/{id}/receive-rules",
1291
+ "summary": "Who may write to this address",
1292
+ "flags": [
1293
+ {
1294
+ "name": "id",
1295
+ "kind": "string",
1296
+ "required": true,
1297
+ "where": "path"
1298
+ }
1299
+ ]
1300
+ },
1301
+ {
1302
+ "group": "identities",
1303
+ "name": "sendRulesCreate",
1304
+ "operationId": "identitiesSendRulesCreate",
1305
+ "method": "POST",
1306
+ "path": "/identities/{id}/send-rules",
1307
+ "summary": "Allow or block a recipient",
1308
+ "flags": [
1309
+ {
1310
+ "name": "id",
1311
+ "kind": "string",
1312
+ "required": true,
1313
+ "where": "path"
1314
+ },
1315
+ {
1316
+ "name": "effect",
1317
+ "kind": "string",
1318
+ "required": true,
1319
+ "where": "body"
1320
+ },
1321
+ {
1322
+ "name": "value",
1323
+ "kind": "string",
1324
+ "required": true,
1325
+ "where": "body"
1326
+ }
1327
+ ]
1328
+ },
1329
+ {
1330
+ "group": "identities",
1331
+ "name": "sendRulesDelete",
1332
+ "operationId": "identitiesSendRulesDelete",
1333
+ "method": "DELETE",
1334
+ "path": "/identities/{id}/send-rules",
1335
+ "summary": "Remove a rule",
1336
+ "flags": [
1337
+ {
1338
+ "name": "id",
1339
+ "kind": "string",
1340
+ "required": true,
1341
+ "where": "path"
1342
+ },
1343
+ {
1344
+ "name": "rule_id",
1345
+ "kind": "string",
1346
+ "required": true,
1347
+ "where": "query"
1348
+ }
1349
+ ]
1350
+ },
1351
+ {
1352
+ "group": "identities",
1353
+ "name": "sendRulesGet",
1354
+ "operationId": "identitiesSendRulesGet",
1355
+ "method": "GET",
1356
+ "path": "/identities/{id}/send-rules",
1357
+ "summary": "What this address may write to",
1358
+ "flags": [
1359
+ {
1360
+ "name": "id",
1361
+ "kind": "string",
1362
+ "required": true,
1363
+ "where": "path"
1364
+ }
1365
+ ]
1366
+ },
1367
+ {
1368
+ "group": "identities",
1369
+ "name": "suspendTenant",
1370
+ "operationId": "identitiesSuspendTenant",
1371
+ "method": "POST",
1372
+ "path": "/tenants/{id}/suspend",
1373
+ "summary": "Offboard one of your customers",
1374
+ "flags": [
1375
+ {
1376
+ "name": "id",
1377
+ "kind": "string",
1378
+ "required": true,
1379
+ "where": "path"
1380
+ }
1381
+ ]
1382
+ },
1383
+ {
1384
+ "group": "identities",
1385
+ "name": "update",
1386
+ "operationId": "identitiesUpdate",
1387
+ "method": "PATCH",
1388
+ "path": "/identities/{id}",
1389
+ "summary": "Update an address",
1390
+ "flags": [
1391
+ {
1392
+ "name": "id",
1393
+ "kind": "string",
1394
+ "required": true,
1395
+ "where": "path"
1396
+ },
1397
+ {
1398
+ "name": "display_name",
1399
+ "kind": "string",
1400
+ "required": false,
1401
+ "where": "body"
1402
+ },
1403
+ {
1404
+ "name": "mode",
1405
+ "kind": "string",
1406
+ "required": false,
1407
+ "where": "body"
1408
+ },
1409
+ {
1410
+ "name": "capabilities",
1411
+ "kind": "json",
1412
+ "required": false,
1413
+ "where": "body"
1414
+ },
1415
+ {
1416
+ "name": "status",
1417
+ "kind": "string",
1418
+ "required": false,
1419
+ "where": "body"
1420
+ },
1421
+ {
1422
+ "name": "expires_at",
1423
+ "kind": "string",
1424
+ "required": false,
1425
+ "where": "body"
1426
+ },
1427
+ {
1428
+ "name": "send_policy",
1429
+ "kind": "string",
1430
+ "required": false,
1431
+ "where": "body"
1432
+ },
1433
+ {
1434
+ "name": "tenant_id",
1435
+ "kind": "string",
1436
+ "required": false,
1437
+ "where": "body"
1438
+ }
1439
+ ]
1440
+ },
1441
+ {
1442
+ "group": "keys",
1443
+ "name": "create",
1444
+ "operationId": "keysCreate",
1445
+ "method": "POST",
1446
+ "path": "/api-keys",
1447
+ "summary": "Mint a key",
1448
+ "flags": [
1449
+ {
1450
+ "name": "name",
1451
+ "kind": "string",
1452
+ "required": true,
1453
+ "where": "body"
1454
+ },
1455
+ {
1456
+ "name": "identity_ids",
1457
+ "kind": "list",
1458
+ "required": true,
1459
+ "where": "body"
1460
+ },
1461
+ {
1462
+ "name": "access",
1463
+ "kind": "string",
1464
+ "required": false,
1465
+ "where": "body"
1466
+ },
1467
+ {
1468
+ "name": "expires_at",
1469
+ "kind": "string",
1470
+ "required": false,
1471
+ "where": "body"
1472
+ }
1473
+ ]
1474
+ },
1475
+ {
1476
+ "group": "keys",
1477
+ "name": "get",
1478
+ "operationId": "keysGet",
1479
+ "method": "GET",
1480
+ "path": "/api-keys/{id}",
1481
+ "summary": "Fetch one key",
1482
+ "flags": [
1483
+ {
1484
+ "name": "id",
1485
+ "kind": "string",
1486
+ "required": true,
1487
+ "where": "path"
1488
+ }
1489
+ ]
1490
+ },
1491
+ {
1492
+ "group": "keys",
1493
+ "name": "list",
1494
+ "operationId": "keysList",
1495
+ "method": "GET",
1496
+ "path": "/api-keys",
1497
+ "summary": "List the keys in this workspace",
1498
+ "flags": []
1499
+ },
1500
+ {
1501
+ "group": "keys",
1502
+ "name": "revoke",
1503
+ "operationId": "keysRevoke",
1504
+ "method": "DELETE",
1505
+ "path": "/api-keys/{id}",
1506
+ "summary": "Revoke a key, and everything it minted",
1507
+ "flags": [
1508
+ {
1509
+ "name": "id",
1510
+ "kind": "string",
1511
+ "required": true,
1512
+ "where": "path"
1513
+ }
1514
+ ]
1515
+ },
1516
+ {
1517
+ "group": "keys",
1518
+ "name": "update",
1519
+ "operationId": "keysUpdate",
1520
+ "method": "PATCH",
1521
+ "path": "/api-keys/{id}",
1522
+ "summary": "Rename a key",
1523
+ "flags": [
1524
+ {
1525
+ "name": "id",
1526
+ "kind": "string",
1527
+ "required": true,
1528
+ "where": "path"
1529
+ },
1530
+ {
1531
+ "name": "name",
1532
+ "kind": "string",
1533
+ "required": true,
1534
+ "where": "body"
1535
+ }
1536
+ ]
1537
+ },
1538
+ {
1539
+ "group": "labels",
1540
+ "name": "create",
1541
+ "operationId": "labelsCreate",
1542
+ "method": "POST",
1543
+ "path": "/labels",
1544
+ "summary": "Create a label",
1545
+ "flags": [
1546
+ {
1547
+ "name": "identity_id",
1548
+ "kind": "string",
1549
+ "required": true,
1550
+ "where": "body"
1551
+ },
1552
+ {
1553
+ "name": "name",
1554
+ "kind": "string",
1555
+ "required": true,
1556
+ "where": "body"
1557
+ },
1558
+ {
1559
+ "name": "colour",
1560
+ "kind": "string",
1561
+ "required": false,
1562
+ "where": "body"
1563
+ }
1564
+ ]
1565
+ },
1566
+ {
1567
+ "group": "labels",
1568
+ "name": "delete",
1569
+ "operationId": "labelsDelete",
1570
+ "method": "DELETE",
1571
+ "path": "/labels/{id}",
1572
+ "summary": "Delete a label",
1573
+ "flags": [
1574
+ {
1575
+ "name": "id",
1576
+ "kind": "string",
1577
+ "required": true,
1578
+ "where": "path"
1579
+ }
1580
+ ]
1581
+ },
1582
+ {
1583
+ "group": "labels",
1584
+ "name": "list",
1585
+ "operationId": "labelsList",
1586
+ "method": "GET",
1587
+ "path": "/labels",
1588
+ "summary": "List labels",
1589
+ "flags": [
1590
+ {
1591
+ "name": "identity_id",
1592
+ "kind": "string",
1593
+ "required": true,
1594
+ "where": "query"
1595
+ }
1596
+ ]
1597
+ },
1598
+ {
1599
+ "group": "labels",
1600
+ "name": "update",
1601
+ "operationId": "labelsUpdate",
1602
+ "method": "PATCH",
1603
+ "path": "/labels/{id}",
1604
+ "summary": "Rename or recolour a label",
1605
+ "flags": [
1606
+ {
1607
+ "name": "id",
1608
+ "kind": "string",
1609
+ "required": true,
1610
+ "where": "path"
1611
+ },
1612
+ {
1613
+ "name": "name",
1614
+ "kind": "string",
1615
+ "required": false,
1616
+ "where": "body"
1617
+ },
1618
+ {
1619
+ "name": "colour",
1620
+ "kind": "string",
1621
+ "required": false,
1622
+ "where": "body"
1623
+ }
1624
+ ]
1625
+ },
1626
+ {
1627
+ "group": "mailboxes",
1628
+ "name": "changes",
1629
+ "operationId": "mailboxesChanges",
1630
+ "method": "GET",
1631
+ "path": "/mailboxes/changes",
1632
+ "summary": "What changed since you last looked",
1633
+ "flags": [
1634
+ {
1635
+ "name": "identity_id",
1636
+ "kind": "string",
1637
+ "required": true,
1638
+ "where": "query"
1639
+ },
1640
+ {
1641
+ "name": "since",
1642
+ "kind": "string",
1643
+ "required": true,
1644
+ "where": "query"
1645
+ },
1646
+ {
1647
+ "name": "limit",
1648
+ "kind": "number",
1649
+ "required": false,
1650
+ "where": "query"
1651
+ }
1652
+ ]
1653
+ },
1654
+ {
1655
+ "group": "mailboxes",
1656
+ "name": "emptyTrash",
1657
+ "operationId": "mailboxesEmptyTrash",
1658
+ "method": "DELETE",
1659
+ "path": "/mailboxes/{folder}",
1660
+ "summary": "Empty the trash",
1661
+ "flags": [
1662
+ {
1663
+ "name": "folder",
1664
+ "kind": "string",
1665
+ "required": true,
1666
+ "where": "path"
1667
+ },
1668
+ {
1669
+ "name": "identity_id",
1670
+ "kind": "string",
1671
+ "required": true,
1672
+ "where": "query"
1673
+ }
1674
+ ]
1675
+ },
1676
+ {
1677
+ "group": "mailboxes",
1678
+ "name": "list",
1679
+ "operationId": "mailboxesList",
1680
+ "method": "GET",
1681
+ "path": "/mailboxes",
1682
+ "summary": "List the folders of one mailbox",
1683
+ "flags": [
1684
+ {
1685
+ "name": "identity_id",
1686
+ "kind": "string",
1687
+ "required": true,
1688
+ "where": "query"
1689
+ }
1690
+ ]
1691
+ },
1692
+ {
1693
+ "group": "mailboxes",
1694
+ "name": "listFolder",
1695
+ "operationId": "mailboxesListFolder",
1696
+ "method": "GET",
1697
+ "path": "/mailboxes/{folder}",
1698
+ "summary": "List one folder",
1699
+ "flags": [
1700
+ {
1701
+ "name": "folder",
1702
+ "kind": "string",
1703
+ "required": true,
1704
+ "where": "path"
1705
+ },
1706
+ {
1707
+ "name": "identity_id",
1708
+ "kind": "string",
1709
+ "required": true,
1710
+ "where": "query"
1711
+ },
1712
+ {
1713
+ "name": "limit",
1714
+ "kind": "number",
1715
+ "required": false,
1716
+ "where": "query"
1717
+ },
1718
+ {
1719
+ "name": "cursor",
1720
+ "kind": "string",
1721
+ "required": false,
1722
+ "where": "query"
1723
+ },
1724
+ {
1725
+ "name": "label_id",
1726
+ "kind": "string",
1727
+ "required": false,
1728
+ "where": "query"
1729
+ }
1730
+ ]
1731
+ },
1732
+ {
1733
+ "group": "messages",
1734
+ "name": "act",
1735
+ "operationId": "messagesAct",
1736
+ "method": "POST",
1737
+ "path": "/messages/actions",
1738
+ "summary": "Apply one action to many conversations",
1739
+ "flags": [
1740
+ {
1741
+ "name": "message_ids",
1742
+ "kind": "list",
1743
+ "required": true,
1744
+ "where": "body"
1745
+ },
1746
+ {
1747
+ "name": "action",
1748
+ "kind": "string",
1749
+ "required": true,
1750
+ "where": "body"
1751
+ }
1752
+ ]
1753
+ },
1754
+ {
1755
+ "group": "messages",
1756
+ "name": "forward",
1757
+ "operationId": "messagesForward",
1758
+ "method": "POST",
1759
+ "path": "/messages/{id}/forward",
1760
+ "summary": "Forward one message",
1761
+ "flags": [
1762
+ {
1763
+ "name": "id",
1764
+ "kind": "string",
1765
+ "required": true,
1766
+ "where": "path"
1767
+ },
1768
+ {
1769
+ "name": "text",
1770
+ "kind": "string",
1771
+ "required": false,
1772
+ "where": "body"
1773
+ },
1774
+ {
1775
+ "name": "html",
1776
+ "kind": "string",
1777
+ "required": false,
1778
+ "where": "body"
1779
+ },
1780
+ {
1781
+ "name": "to",
1782
+ "kind": "list",
1783
+ "required": false,
1784
+ "where": "body"
1785
+ },
1786
+ {
1787
+ "name": "cc",
1788
+ "kind": "list",
1789
+ "required": false,
1790
+ "where": "body"
1791
+ },
1792
+ {
1793
+ "name": "bcc",
1794
+ "kind": "list",
1795
+ "required": false,
1796
+ "where": "body"
1797
+ },
1798
+ {
1799
+ "name": "attachment_ids",
1800
+ "kind": "list",
1801
+ "required": false,
1802
+ "where": "body"
1803
+ }
1804
+ ]
1805
+ },
1806
+ {
1807
+ "group": "messages",
1808
+ "name": "get",
1809
+ "operationId": "messagesGet",
1810
+ "method": "GET",
1811
+ "path": "/messages/{id}",
1812
+ "summary": "Fetch one message",
1813
+ "flags": [
1814
+ {
1815
+ "name": "id",
1816
+ "kind": "string",
1817
+ "required": true,
1818
+ "where": "path"
1819
+ }
1820
+ ]
1821
+ },
1822
+ {
1823
+ "group": "messages",
1824
+ "name": "listInThread",
1825
+ "operationId": "messagesListInThread",
1826
+ "method": "GET",
1827
+ "path": "/messages",
1828
+ "summary": "List messages",
1829
+ "flags": [
1830
+ {
1831
+ "name": "limit",
1832
+ "kind": "number",
1833
+ "required": false,
1834
+ "where": "query"
1835
+ },
1836
+ {
1837
+ "name": "cursor",
1838
+ "kind": "string",
1839
+ "required": false,
1840
+ "where": "query"
1841
+ },
1842
+ {
1843
+ "name": "thread_id",
1844
+ "kind": "string",
1845
+ "required": true,
1846
+ "where": "query"
1847
+ }
1848
+ ]
1849
+ },
1850
+ {
1851
+ "group": "messages",
1852
+ "name": "raw",
1853
+ "operationId": "messagesRaw",
1854
+ "method": "GET",
1855
+ "path": "/messages/{id}/raw",
1856
+ "summary": "The message as it arrived",
1857
+ "flags": [
1858
+ {
1859
+ "name": "id",
1860
+ "kind": "string",
1861
+ "required": true,
1862
+ "where": "path"
1863
+ }
1864
+ ]
1865
+ },
1866
+ {
1867
+ "group": "messages",
1868
+ "name": "reply",
1869
+ "operationId": "messagesReply",
1870
+ "method": "POST",
1871
+ "path": "/messages/{id}/reply",
1872
+ "summary": "Reply to one message",
1873
+ "flags": [
1874
+ {
1875
+ "name": "id",
1876
+ "kind": "string",
1877
+ "required": true,
1878
+ "where": "path"
1879
+ },
1880
+ {
1881
+ "name": "text",
1882
+ "kind": "string",
1883
+ "required": false,
1884
+ "where": "body"
1885
+ },
1886
+ {
1887
+ "name": "html",
1888
+ "kind": "string",
1889
+ "required": false,
1890
+ "where": "body"
1891
+ },
1892
+ {
1893
+ "name": "to",
1894
+ "kind": "list",
1895
+ "required": false,
1896
+ "where": "body"
1897
+ },
1898
+ {
1899
+ "name": "cc",
1900
+ "kind": "list",
1901
+ "required": false,
1902
+ "where": "body"
1903
+ },
1904
+ {
1905
+ "name": "bcc",
1906
+ "kind": "list",
1907
+ "required": false,
1908
+ "where": "body"
1909
+ },
1910
+ {
1911
+ "name": "attachment_ids",
1912
+ "kind": "list",
1913
+ "required": false,
1914
+ "where": "body"
1915
+ }
1916
+ ]
1917
+ },
1918
+ {
1919
+ "group": "messages",
1920
+ "name": "replyAll",
1921
+ "operationId": "messagesReplyAll",
1922
+ "method": "POST",
1923
+ "path": "/messages/{id}/reply-all",
1924
+ "summary": "Reply to everybody on one message",
1925
+ "flags": [
1926
+ {
1927
+ "name": "id",
1928
+ "kind": "string",
1929
+ "required": true,
1930
+ "where": "path"
1931
+ },
1932
+ {
1933
+ "name": "text",
1934
+ "kind": "string",
1935
+ "required": false,
1936
+ "where": "body"
1937
+ },
1938
+ {
1939
+ "name": "html",
1940
+ "kind": "string",
1941
+ "required": false,
1942
+ "where": "body"
1943
+ },
1944
+ {
1945
+ "name": "to",
1946
+ "kind": "list",
1947
+ "required": false,
1948
+ "where": "body"
1949
+ },
1950
+ {
1951
+ "name": "cc",
1952
+ "kind": "list",
1953
+ "required": false,
1954
+ "where": "body"
1955
+ },
1956
+ {
1957
+ "name": "bcc",
1958
+ "kind": "list",
1959
+ "required": false,
1960
+ "where": "body"
1961
+ },
1962
+ {
1963
+ "name": "attachment_ids",
1964
+ "kind": "list",
1965
+ "required": false,
1966
+ "where": "body"
1967
+ }
1968
+ ]
1969
+ },
1970
+ {
1971
+ "group": "messages",
1972
+ "name": "respondToInvitation",
1973
+ "operationId": "messagesRespondToInvitation",
1974
+ "method": "POST",
1975
+ "path": "/messages/{id}/invitation/respond",
1976
+ "summary": "Accept, decline or tentatively accept a meeting",
1977
+ "flags": [
1978
+ {
1979
+ "name": "id",
1980
+ "kind": "string",
1981
+ "required": true,
1982
+ "where": "path"
1983
+ },
1984
+ {
1985
+ "name": "status",
1986
+ "kind": "string",
1987
+ "required": true,
1988
+ "where": "body"
1989
+ },
1990
+ {
1991
+ "name": "comment",
1992
+ "kind": "string",
1993
+ "required": false,
1994
+ "where": "body"
1995
+ }
1996
+ ]
1997
+ },
1998
+ {
1999
+ "group": "messages",
2000
+ "name": "search",
2001
+ "operationId": "messagesSearch",
2002
+ "method": "GET",
2003
+ "path": "/messages/search",
2004
+ "summary": "Search one mailbox",
2005
+ "flags": [
2006
+ {
2007
+ "name": "identity_id",
2008
+ "kind": "string",
2009
+ "required": true,
2010
+ "where": "query"
2011
+ },
2012
+ {
2013
+ "name": "q",
2014
+ "kind": "string",
2015
+ "required": false,
2016
+ "where": "query"
2017
+ },
2018
+ {
2019
+ "name": "in",
2020
+ "kind": "string",
2021
+ "required": false,
2022
+ "where": "query"
2023
+ },
2024
+ {
2025
+ "name": "from",
2026
+ "kind": "string",
2027
+ "required": false,
2028
+ "where": "query"
2029
+ },
2030
+ {
2031
+ "name": "to",
2032
+ "kind": "string",
2033
+ "required": false,
2034
+ "where": "query"
2035
+ },
2036
+ {
2037
+ "name": "has_attachment",
2038
+ "kind": "string",
2039
+ "required": false,
2040
+ "where": "query"
2041
+ },
2042
+ {
2043
+ "name": "is_unread",
2044
+ "kind": "string",
2045
+ "required": false,
2046
+ "where": "query"
2047
+ },
2048
+ {
2049
+ "name": "is_starred",
2050
+ "kind": "string",
2051
+ "required": false,
2052
+ "where": "query"
2053
+ },
2054
+ {
2055
+ "name": "label_id",
2056
+ "kind": "string",
2057
+ "required": false,
2058
+ "where": "query"
2059
+ },
2060
+ {
2061
+ "name": "limit",
2062
+ "kind": "number",
2063
+ "required": false,
2064
+ "where": "query"
2065
+ }
2066
+ ]
2067
+ },
2068
+ {
2069
+ "group": "messages",
2070
+ "name": "send",
2071
+ "operationId": "messagesSend",
2072
+ "method": "POST",
2073
+ "path": "/messages",
2074
+ "summary": "Send a message",
2075
+ "flags": [
2076
+ {
2077
+ "name": "from",
2078
+ "kind": "string",
2079
+ "required": true,
2080
+ "where": "body"
2081
+ },
2082
+ {
2083
+ "name": "to",
2084
+ "kind": "list",
2085
+ "required": true,
2086
+ "where": "body"
2087
+ },
2088
+ {
2089
+ "name": "cc",
2090
+ "kind": "list",
2091
+ "required": false,
2092
+ "where": "body"
2093
+ },
2094
+ {
2095
+ "name": "bcc",
2096
+ "kind": "list",
2097
+ "required": false,
2098
+ "where": "body"
2099
+ },
2100
+ {
2101
+ "name": "subject",
2102
+ "kind": "string",
2103
+ "required": false,
2104
+ "where": "body"
2105
+ },
2106
+ {
2107
+ "name": "text",
2108
+ "kind": "string",
2109
+ "required": false,
2110
+ "where": "body"
2111
+ },
2112
+ {
2113
+ "name": "html",
2114
+ "kind": "string",
2115
+ "required": false,
2116
+ "where": "body"
2117
+ },
2118
+ {
2119
+ "name": "attachment_ids",
2120
+ "kind": "list",
2121
+ "required": false,
2122
+ "where": "body"
2123
+ },
2124
+ {
2125
+ "name": "in_reply_to",
2126
+ "kind": "string",
2127
+ "required": false,
2128
+ "where": "body"
2129
+ }
2130
+ ]
2131
+ },
2132
+ {
2133
+ "group": "messages",
2134
+ "name": "undo",
2135
+ "operationId": "messagesUndo",
2136
+ "method": "POST",
2137
+ "path": "/messages/undo",
2138
+ "summary": "Put an action back",
2139
+ "flags": [
2140
+ {
2141
+ "name": "undo",
2142
+ "kind": "list",
2143
+ "required": true,
2144
+ "where": "body"
2145
+ }
2146
+ ]
2147
+ },
2148
+ {
2149
+ "group": "messages",
2150
+ "name": "update",
2151
+ "operationId": "messagesUpdate",
2152
+ "method": "PATCH",
2153
+ "path": "/messages/{id}",
2154
+ "summary": "Change one conversation",
2155
+ "flags": [
2156
+ {
2157
+ "name": "id",
2158
+ "kind": "string",
2159
+ "required": true,
2160
+ "where": "path"
2161
+ },
2162
+ {
2163
+ "name": "is_read",
2164
+ "kind": "boolean",
2165
+ "required": false,
2166
+ "where": "body"
2167
+ },
2168
+ {
2169
+ "name": "is_starred",
2170
+ "kind": "boolean",
2171
+ "required": false,
2172
+ "where": "body"
2173
+ },
2174
+ {
2175
+ "name": "folder",
2176
+ "kind": "string",
2177
+ "required": false,
2178
+ "where": "body"
2179
+ }
2180
+ ]
2181
+ },
2182
+ {
2183
+ "group": "metrics",
2184
+ "name": "query",
2185
+ "operationId": "metricsQuery",
2186
+ "method": "GET",
2187
+ "path": "/metrics",
2188
+ "summary": "What happened to the mail",
2189
+ "flags": [
2190
+ {
2191
+ "name": "days",
2192
+ "kind": "number",
2193
+ "required": false,
2194
+ "where": "query"
2195
+ },
2196
+ {
2197
+ "name": "identity_id",
2198
+ "kind": "string",
2199
+ "required": false,
2200
+ "where": "query"
2201
+ }
2202
+ ]
2203
+ },
2204
+ {
2205
+ "group": "routing",
2206
+ "name": "create",
2207
+ "operationId": "routingCreate",
2208
+ "method": "POST",
2209
+ "path": "/routing-rules",
2210
+ "summary": "Route an address somewhere",
2211
+ "flags": []
2212
+ },
2213
+ {
2214
+ "group": "routing",
2215
+ "name": "delete",
2216
+ "operationId": "routingDelete",
2217
+ "method": "DELETE",
2218
+ "path": "/routing-rules/{id}",
2219
+ "summary": "Delete a routing rule",
2220
+ "flags": [
2221
+ {
2222
+ "name": "id",
2223
+ "kind": "string",
2224
+ "required": true,
2225
+ "where": "path"
2226
+ }
2227
+ ]
2228
+ },
2229
+ {
2230
+ "group": "routing",
2231
+ "name": "list",
2232
+ "operationId": "routingList",
2233
+ "method": "GET",
2234
+ "path": "/routing-rules",
2235
+ "summary": "List routing rules",
2236
+ "flags": [
2237
+ {
2238
+ "name": "domain_id",
2239
+ "kind": "string",
2240
+ "required": false,
2241
+ "where": "query"
2242
+ }
2243
+ ]
2244
+ },
2245
+ {
2246
+ "group": "routing",
2247
+ "name": "update",
2248
+ "operationId": "routingUpdate",
2249
+ "method": "PATCH",
2250
+ "path": "/routing-rules/{id}",
2251
+ "summary": "Enable or disable a rule",
2252
+ "flags": [
2253
+ {
2254
+ "name": "id",
2255
+ "kind": "string",
2256
+ "required": true,
2257
+ "where": "path"
2258
+ },
2259
+ {
2260
+ "name": "status",
2261
+ "kind": "string",
2262
+ "required": true,
2263
+ "where": "body"
2264
+ }
2265
+ ]
2266
+ },
2267
+ {
2268
+ "group": "threads",
2269
+ "name": "get",
2270
+ "operationId": "threadsGet",
2271
+ "method": "GET",
2272
+ "path": "/threads/{id}",
2273
+ "summary": "Read a conversation",
2274
+ "flags": [
2275
+ {
2276
+ "name": "id",
2277
+ "kind": "string",
2278
+ "required": true,
2279
+ "where": "path"
2280
+ }
2281
+ ]
2282
+ },
2283
+ {
2284
+ "group": "threads",
2285
+ "name": "labelsCreate",
2286
+ "operationId": "threadsLabelsCreate",
2287
+ "method": "POST",
2288
+ "path": "/threads/{id}/labels",
2289
+ "summary": "Apply a label",
2290
+ "flags": [
2291
+ {
2292
+ "name": "id",
2293
+ "kind": "string",
2294
+ "required": true,
2295
+ "where": "path"
2296
+ },
2297
+ {
2298
+ "name": "label_id",
2299
+ "kind": "string",
2300
+ "required": true,
2301
+ "where": "body"
2302
+ }
2303
+ ]
2304
+ },
2305
+ {
2306
+ "group": "threads",
2307
+ "name": "labelsDelete",
2308
+ "operationId": "threadsLabelsDelete",
2309
+ "method": "DELETE",
2310
+ "path": "/threads/{id}/labels",
2311
+ "summary": "Remove a label",
2312
+ "flags": [
2313
+ {
2314
+ "name": "id",
2315
+ "kind": "string",
2316
+ "required": true,
2317
+ "where": "path"
2318
+ },
2319
+ {
2320
+ "name": "label_id",
2321
+ "kind": "string",
2322
+ "required": true,
2323
+ "where": "query"
2324
+ }
2325
+ ]
2326
+ },
2327
+ {
2328
+ "group": "threads",
2329
+ "name": "labelsGet",
2330
+ "operationId": "threadsLabelsGet",
2331
+ "method": "GET",
2332
+ "path": "/threads/{id}/labels",
2333
+ "summary": "The labels on a conversation",
2334
+ "flags": [
2335
+ {
2336
+ "name": "id",
2337
+ "kind": "string",
2338
+ "required": true,
2339
+ "where": "path"
2340
+ }
2341
+ ]
2342
+ },
2343
+ {
2344
+ "group": "threads",
2345
+ "name": "list",
2346
+ "operationId": "threadsList",
2347
+ "method": "GET",
2348
+ "path": "/threads",
2349
+ "summary": "List threads",
2350
+ "flags": [
2351
+ {
2352
+ "name": "limit",
2353
+ "kind": "number",
2354
+ "required": false,
2355
+ "where": "query"
2356
+ },
2357
+ {
2358
+ "name": "cursor",
2359
+ "kind": "string",
2360
+ "required": false,
2361
+ "where": "query"
2362
+ }
2363
+ ]
2364
+ },
2365
+ {
2366
+ "group": "threads",
2367
+ "name": "update",
2368
+ "operationId": "threadsUpdate",
2369
+ "method": "PATCH",
2370
+ "path": "/threads/{id}",
2371
+ "summary": "Update a thread",
2372
+ "flags": [
2373
+ {
2374
+ "name": "id",
2375
+ "kind": "string",
2376
+ "required": true,
2377
+ "where": "path"
2378
+ },
2379
+ {
2380
+ "name": "status",
2381
+ "kind": "string",
2382
+ "required": false,
2383
+ "where": "body"
2384
+ },
2385
+ {
2386
+ "name": "owner_type",
2387
+ "kind": "string",
2388
+ "required": false,
2389
+ "where": "body"
2390
+ },
2391
+ {
2392
+ "name": "assignee_id",
2393
+ "kind": "string",
2394
+ "required": false,
2395
+ "where": "body"
2396
+ }
2397
+ ]
2398
+ },
2399
+ {
2400
+ "group": "webhooks",
2401
+ "name": "create",
2402
+ "operationId": "webhooksCreate",
2403
+ "method": "POST",
2404
+ "path": "/webhooks",
2405
+ "summary": "Create a webhook",
2406
+ "flags": [
2407
+ {
2408
+ "name": "url",
2409
+ "kind": "string",
2410
+ "required": true,
2411
+ "where": "body"
2412
+ },
2413
+ {
2414
+ "name": "identity_id",
2415
+ "kind": "string",
2416
+ "required": false,
2417
+ "where": "body"
2418
+ },
2419
+ {
2420
+ "name": "event_types",
2421
+ "kind": "list",
2422
+ "required": false,
2423
+ "where": "body"
2424
+ }
2425
+ ]
2426
+ },
2427
+ {
2428
+ "group": "webhooks",
2429
+ "name": "delete",
2430
+ "operationId": "webhooksDelete",
2431
+ "method": "DELETE",
2432
+ "path": "/webhooks/{id}",
2433
+ "summary": "Delete a webhook",
2434
+ "flags": [
2435
+ {
2436
+ "name": "id",
2437
+ "kind": "string",
2438
+ "required": true,
2439
+ "where": "path"
2440
+ }
2441
+ ]
2442
+ },
2443
+ {
2444
+ "group": "webhooks",
2445
+ "name": "deliveries",
2446
+ "operationId": "webhooksDeliveries",
2447
+ "method": "GET",
2448
+ "path": "/deliveries",
2449
+ "summary": "What happened to each event we tried to hand you",
2450
+ "flags": [
2451
+ {
2452
+ "name": "webhook_id",
2453
+ "kind": "string",
2454
+ "required": true,
2455
+ "where": "query"
2456
+ },
2457
+ {
2458
+ "name": "limit",
2459
+ "kind": "number",
2460
+ "required": false,
2461
+ "where": "query"
2462
+ }
2463
+ ]
2464
+ },
2465
+ {
2466
+ "group": "webhooks",
2467
+ "name": "get",
2468
+ "operationId": "webhooksGet",
2469
+ "method": "GET",
2470
+ "path": "/webhooks/{id}",
2471
+ "summary": "Fetch one endpoint",
2472
+ "flags": [
2473
+ {
2474
+ "name": "id",
2475
+ "kind": "string",
2476
+ "required": true,
2477
+ "where": "path"
2478
+ }
2479
+ ]
2480
+ },
2481
+ {
2482
+ "group": "webhooks",
2483
+ "name": "getHeaders",
2484
+ "operationId": "webhooksGetHeaders",
2485
+ "method": "GET",
2486
+ "path": "/webhooks/{id}/headers",
2487
+ "summary": "The headers this endpoint carries",
2488
+ "flags": [
2489
+ {
2490
+ "name": "id",
2491
+ "kind": "string",
2492
+ "required": true,
2493
+ "where": "path"
2494
+ }
2495
+ ]
2496
+ },
2497
+ {
2498
+ "group": "webhooks",
2499
+ "name": "list",
2500
+ "operationId": "webhooksList",
2501
+ "method": "GET",
2502
+ "path": "/webhooks",
2503
+ "summary": "List webhooks",
2504
+ "flags": [
2505
+ {
2506
+ "name": "limit",
2507
+ "kind": "number",
2508
+ "required": false,
2509
+ "where": "query"
2510
+ },
2511
+ {
2512
+ "name": "cursor",
2513
+ "kind": "string",
2514
+ "required": false,
2515
+ "where": "query"
2516
+ }
2517
+ ]
2518
+ },
2519
+ {
2520
+ "group": "webhooks",
2521
+ "name": "replay",
2522
+ "operationId": "webhooksReplay",
2523
+ "method": "POST",
2524
+ "path": "/deliveries/{id}/replay",
2525
+ "summary": "Send it again",
2526
+ "flags": [
2527
+ {
2528
+ "name": "id",
2529
+ "kind": "string",
2530
+ "required": true,
2531
+ "where": "path"
2532
+ }
2533
+ ]
2534
+ },
2535
+ {
2536
+ "group": "webhooks",
2537
+ "name": "update",
2538
+ "operationId": "webhooksUpdate",
2539
+ "method": "PATCH",
2540
+ "path": "/webhooks/{id}",
2541
+ "summary": "Turn an endpoint off, or back on",
2542
+ "flags": [
2543
+ {
2544
+ "name": "id",
2545
+ "kind": "string",
2546
+ "required": true,
2547
+ "where": "path"
2548
+ },
2549
+ {
2550
+ "name": "status",
2551
+ "kind": "string",
2552
+ "required": true,
2553
+ "where": "body"
2554
+ }
2555
+ ]
2556
+ },
2557
+ {
2558
+ "group": "webhooks",
2559
+ "name": "updateHeaders",
2560
+ "operationId": "webhooksUpdateHeaders",
2561
+ "method": "PUT",
2562
+ "path": "/webhooks/{id}/headers",
2563
+ "summary": "Replace the headers this endpoint carries",
2564
+ "flags": [
2565
+ {
2566
+ "name": "id",
2567
+ "kind": "string",
2568
+ "required": true,
2569
+ "where": "path"
2570
+ },
2571
+ {
2572
+ "name": "headers",
2573
+ "kind": "json",
2574
+ "required": false,
2575
+ "where": "body"
2576
+ }
2577
+ ]
2578
+ },
2579
+ {
2580
+ "group": "workspace",
2581
+ "name": "get",
2582
+ "operationId": "workspaceGet",
2583
+ "method": "GET",
2584
+ "path": "/workspace",
2585
+ "summary": "Which account this key is for",
2586
+ "flags": []
2587
+ },
2588
+ {
2589
+ "group": "workspace",
2590
+ "name": "members",
2591
+ "operationId": "workspaceMembers",
2592
+ "method": "GET",
2593
+ "path": "/workspace/members",
2594
+ "summary": "List the people in this workspace",
2595
+ "flags": []
2596
+ }
2597
+ ];
2598
+
2599
+ export {
2600
+ __export,
2601
+ COMMANDS
2602
+ };
2603
+ //# sourceMappingURL=chunk-Z2RNBVEN.js.map