@harkly/js 0.1.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,4794 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/boards": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /**
14
+ * List boards
15
+ * @description Needs an API key with `feedback:read`.
16
+ */
17
+ get: operations["getBoards"];
18
+ put?: never;
19
+ /**
20
+ * Create a board
21
+ * @description Needs an API key with `feedback:write`.
22
+ */
23
+ post: operations["postBoards"];
24
+ delete?: never;
25
+ options?: never;
26
+ head?: never;
27
+ patch?: never;
28
+ trace?: never;
29
+ };
30
+ "/boards/{id}": {
31
+ parameters: {
32
+ query?: never;
33
+ header?: never;
34
+ path?: never;
35
+ cookie?: never;
36
+ };
37
+ get?: never;
38
+ put?: never;
39
+ post?: never;
40
+ /**
41
+ * Delete a board
42
+ * @description Needs an API key with `feedback:write`.
43
+ */
44
+ delete: operations["deleteBoardsId"];
45
+ options?: never;
46
+ head?: never;
47
+ /**
48
+ * Update a board
49
+ * @description Needs an API key with `feedback:write`.
50
+ */
51
+ patch: operations["patchBoardsId"];
52
+ trace?: never;
53
+ };
54
+ "/statuses": {
55
+ parameters: {
56
+ query?: never;
57
+ header?: never;
58
+ path?: never;
59
+ cookie?: never;
60
+ };
61
+ /**
62
+ * List statuses
63
+ * @description Needs an API key with `feedback:read`.
64
+ */
65
+ get: operations["getStatuses"];
66
+ put?: never;
67
+ /**
68
+ * Create a status
69
+ * @description Needs an API key with `feedback:write`.
70
+ */
71
+ post: operations["postStatuses"];
72
+ delete?: never;
73
+ options?: never;
74
+ head?: never;
75
+ patch?: never;
76
+ trace?: never;
77
+ };
78
+ "/tags": {
79
+ parameters: {
80
+ query?: never;
81
+ header?: never;
82
+ path?: never;
83
+ cookie?: never;
84
+ };
85
+ /**
86
+ * List tags
87
+ * @description Needs an API key with `feedback:read`.
88
+ */
89
+ get: operations["getTags"];
90
+ put?: never;
91
+ /**
92
+ * Create a tag
93
+ * @description Needs an API key with `feedback:write`.
94
+ */
95
+ post: operations["postTags"];
96
+ delete?: never;
97
+ options?: never;
98
+ head?: never;
99
+ patch?: never;
100
+ trace?: never;
101
+ };
102
+ "/posts": {
103
+ parameters: {
104
+ query?: never;
105
+ header?: never;
106
+ path?: never;
107
+ cookie?: never;
108
+ };
109
+ /**
110
+ * List posts
111
+ * @description Needs an API key with `feedback:read`.
112
+ */
113
+ get: operations["getPosts"];
114
+ put?: never;
115
+ /**
116
+ * Create a post
117
+ * @description Needs an API key with `feedback:write`.
118
+ */
119
+ post: operations["postPosts"];
120
+ delete?: never;
121
+ options?: never;
122
+ head?: never;
123
+ patch?: never;
124
+ trace?: never;
125
+ };
126
+ "/posts/{id}": {
127
+ parameters: {
128
+ query?: never;
129
+ header?: never;
130
+ path?: never;
131
+ cookie?: never;
132
+ };
133
+ /**
134
+ * Get a post with voters and comments
135
+ * @description Needs an API key with `feedback:read`.
136
+ */
137
+ get: operations["getPostsId"];
138
+ put?: never;
139
+ post?: never;
140
+ /**
141
+ * Delete a post
142
+ * @description Needs an API key with `feedback:write`.
143
+ */
144
+ delete: operations["deletePostsId"];
145
+ options?: never;
146
+ head?: never;
147
+ /**
148
+ * Update a post (status, board, RICE, flags)
149
+ * @description Needs an API key with `feedback:write`.
150
+ */
151
+ patch: operations["patchPostsId"];
152
+ trace?: never;
153
+ };
154
+ "/posts/{id}/merge": {
155
+ parameters: {
156
+ query?: never;
157
+ header?: never;
158
+ path?: never;
159
+ cookie?: never;
160
+ };
161
+ get?: never;
162
+ put?: never;
163
+ /**
164
+ * Merge a post into another
165
+ * @description Needs an API key with `feedback:write`.
166
+ */
167
+ post: operations["postPostsIdMerge"];
168
+ delete?: never;
169
+ options?: never;
170
+ head?: never;
171
+ patch?: never;
172
+ trace?: never;
173
+ };
174
+ "/posts/{id}/votes": {
175
+ parameters: {
176
+ query?: never;
177
+ header?: never;
178
+ path?: never;
179
+ cookie?: never;
180
+ };
181
+ get?: never;
182
+ put?: never;
183
+ /**
184
+ * Vote on behalf of a customer
185
+ * @description Needs an API key with `feedback:write`.
186
+ */
187
+ post: operations["postPostsIdVotes"];
188
+ delete?: never;
189
+ options?: never;
190
+ head?: never;
191
+ patch?: never;
192
+ trace?: never;
193
+ };
194
+ "/posts/{id}/votes/{endUserId}": {
195
+ parameters: {
196
+ query?: never;
197
+ header?: never;
198
+ path?: never;
199
+ cookie?: never;
200
+ };
201
+ get?: never;
202
+ put?: never;
203
+ post?: never;
204
+ /**
205
+ * Remove a customer's vote
206
+ * @description Needs an API key with `feedback:write`.
207
+ */
208
+ delete: operations["deletePostsIdVotesEndUserId"];
209
+ options?: never;
210
+ head?: never;
211
+ patch?: never;
212
+ trace?: never;
213
+ };
214
+ "/posts/{id}/comments": {
215
+ parameters: {
216
+ query?: never;
217
+ header?: never;
218
+ path?: never;
219
+ cookie?: never;
220
+ };
221
+ get?: never;
222
+ put?: never;
223
+ /**
224
+ * Comment as the team
225
+ * @description Needs an API key with `feedback:write`.
226
+ */
227
+ post: operations["postPostsIdComments"];
228
+ delete?: never;
229
+ options?: never;
230
+ head?: never;
231
+ patch?: never;
232
+ trace?: never;
233
+ };
234
+ "/customers": {
235
+ parameters: {
236
+ query?: never;
237
+ header?: never;
238
+ path?: never;
239
+ cookie?: never;
240
+ };
241
+ /**
242
+ * List people
243
+ * @description Needs an API key with `customers:read`.
244
+ */
245
+ get: operations["getCustomers"];
246
+ put?: never;
247
+ /**
248
+ * Create or update a person (identify)
249
+ * @description Needs an API key with `customers:write`.
250
+ */
251
+ post: operations["postCustomers"];
252
+ delete?: never;
253
+ options?: never;
254
+ head?: never;
255
+ patch?: never;
256
+ trace?: never;
257
+ };
258
+ "/customers/{id}": {
259
+ parameters: {
260
+ query?: never;
261
+ header?: never;
262
+ path?: never;
263
+ cookie?: never;
264
+ };
265
+ /**
266
+ * Get a person with companies
267
+ * @description Needs an API key with `customers:read`.
268
+ */
269
+ get: operations["getCustomersId"];
270
+ put?: never;
271
+ post?: never;
272
+ /**
273
+ * Delete a person and their history
274
+ * @description Needs an API key with `customers:write`.
275
+ */
276
+ delete: operations["deleteCustomersId"];
277
+ options?: never;
278
+ head?: never;
279
+ /**
280
+ * Update a person
281
+ * @description Needs an API key with `customers:write`.
282
+ */
283
+ patch: operations["patchCustomersId"];
284
+ trace?: never;
285
+ };
286
+ "/customers/{id}/export.json": {
287
+ parameters: {
288
+ query?: never;
289
+ header?: never;
290
+ path?: never;
291
+ cookie?: never;
292
+ };
293
+ /**
294
+ * Everything held about a person
295
+ * @description Needs an API key with `customers:read`.
296
+ */
297
+ get: operations["getCustomersIdExportJson"];
298
+ put?: never;
299
+ post?: never;
300
+ delete?: never;
301
+ options?: never;
302
+ head?: never;
303
+ patch?: never;
304
+ trace?: never;
305
+ };
306
+ "/companies": {
307
+ parameters: {
308
+ query?: never;
309
+ header?: never;
310
+ path?: never;
311
+ cookie?: never;
312
+ };
313
+ /**
314
+ * List companies
315
+ * @description Needs an API key with `customers:read`.
316
+ */
317
+ get: operations["getCompanies"];
318
+ put?: never;
319
+ /**
320
+ * Create or update a company
321
+ * @description Needs an API key with `customers:write`.
322
+ */
323
+ post: operations["postCompanies"];
324
+ delete?: never;
325
+ options?: never;
326
+ head?: never;
327
+ patch?: never;
328
+ trace?: never;
329
+ };
330
+ "/companies/{id}": {
331
+ parameters: {
332
+ query?: never;
333
+ header?: never;
334
+ path?: never;
335
+ cookie?: never;
336
+ };
337
+ /**
338
+ * Get a company with its people and requests
339
+ * @description Needs an API key with `customers:read`.
340
+ */
341
+ get: operations["getCompaniesId"];
342
+ put?: never;
343
+ post?: never;
344
+ delete?: never;
345
+ options?: never;
346
+ head?: never;
347
+ /**
348
+ * Update a company
349
+ * @description Needs an API key with `customers:write`.
350
+ */
351
+ patch: operations["patchCompaniesId"];
352
+ trace?: never;
353
+ };
354
+ "/segments": {
355
+ parameters: {
356
+ query?: never;
357
+ header?: never;
358
+ path?: never;
359
+ cookie?: never;
360
+ };
361
+ /**
362
+ * List saved segments with live counts
363
+ * @description Needs an API key with `customers:read`.
364
+ */
365
+ get: operations["getSegments"];
366
+ put?: never;
367
+ /**
368
+ * Create a segment
369
+ * @description Needs an API key with `customers:write`.
370
+ */
371
+ post: operations["postSegments"];
372
+ delete?: never;
373
+ options?: never;
374
+ head?: never;
375
+ patch?: never;
376
+ trace?: never;
377
+ };
378
+ "/segments/{id}": {
379
+ parameters: {
380
+ query?: never;
381
+ header?: never;
382
+ path?: never;
383
+ cookie?: never;
384
+ };
385
+ get?: never;
386
+ put?: never;
387
+ post?: never;
388
+ /**
389
+ * Delete a segment
390
+ * @description Needs an API key with `customers:write`.
391
+ */
392
+ delete: operations["deleteSegmentsId"];
393
+ options?: never;
394
+ head?: never;
395
+ /**
396
+ * Update a segment
397
+ * @description Needs an API key with `customers:write`.
398
+ */
399
+ patch: operations["patchSegmentsId"];
400
+ trace?: never;
401
+ };
402
+ "/track": {
403
+ parameters: {
404
+ query?: never;
405
+ header?: never;
406
+ path?: never;
407
+ cookie?: never;
408
+ };
409
+ get?: never;
410
+ put?: never;
411
+ /**
412
+ * Record a product event for an identified person
413
+ * @description Authenticate with `x-harkly-public-key`.
414
+ */
415
+ post: operations["postTrack"];
416
+ delete?: never;
417
+ options?: never;
418
+ head?: never;
419
+ patch?: never;
420
+ trace?: never;
421
+ };
422
+ "/help/collections": {
423
+ parameters: {
424
+ query?: never;
425
+ header?: never;
426
+ path?: never;
427
+ cookie?: never;
428
+ };
429
+ get?: never;
430
+ put?: never;
431
+ /**
432
+ * Create a collection
433
+ * @description Needs an API key with `help:write`.
434
+ */
435
+ post: operations["postHelpCollections"];
436
+ delete?: never;
437
+ options?: never;
438
+ head?: never;
439
+ patch?: never;
440
+ trace?: never;
441
+ };
442
+ "/help/collections/{id}": {
443
+ parameters: {
444
+ query?: never;
445
+ header?: never;
446
+ path?: never;
447
+ cookie?: never;
448
+ };
449
+ get?: never;
450
+ put?: never;
451
+ post?: never;
452
+ /**
453
+ * Delete a collection (its articles stay)
454
+ * @description Needs an API key with `help:write`.
455
+ */
456
+ delete: operations["deleteHelpCollectionsId"];
457
+ options?: never;
458
+ head?: never;
459
+ /**
460
+ * Update a collection
461
+ * @description Needs an API key with `help:write`.
462
+ */
463
+ patch: operations["patchHelpCollectionsId"];
464
+ trace?: never;
465
+ };
466
+ "/help/articles": {
467
+ parameters: {
468
+ query?: never;
469
+ header?: never;
470
+ path?: never;
471
+ cookie?: never;
472
+ };
473
+ /**
474
+ * List or search articles
475
+ * @description Needs an API key with `help:read`.
476
+ */
477
+ get: operations["getHelpArticles"];
478
+ put?: never;
479
+ /**
480
+ * Create an article
481
+ * @description Needs an API key with `help:write`.
482
+ */
483
+ post: operations["postHelpArticles"];
484
+ delete?: never;
485
+ options?: never;
486
+ head?: never;
487
+ patch?: never;
488
+ trace?: never;
489
+ };
490
+ "/help/articles/{id}": {
491
+ parameters: {
492
+ query?: never;
493
+ header?: never;
494
+ path?: never;
495
+ cookie?: never;
496
+ };
497
+ /**
498
+ * Get an article with stats and versions
499
+ * @description Needs an API key with `help:read`.
500
+ */
501
+ get: operations["getHelpArticlesId"];
502
+ put?: never;
503
+ post?: never;
504
+ /**
505
+ * Delete an article
506
+ * @description Needs an API key with `help:write`.
507
+ */
508
+ delete: operations["deleteHelpArticlesId"];
509
+ options?: never;
510
+ head?: never;
511
+ /**
512
+ * Update or publish an article
513
+ * @description Needs an API key with `help:write`.
514
+ */
515
+ patch: operations["patchHelpArticlesId"];
516
+ trace?: never;
517
+ };
518
+ "/webhooks": {
519
+ parameters: {
520
+ query?: never;
521
+ header?: never;
522
+ path?: never;
523
+ cookie?: never;
524
+ };
525
+ /**
526
+ * List webhooks
527
+ * @description Needs an API key with `settings:read`.
528
+ */
529
+ get: operations["getWebhooks"];
530
+ put?: never;
531
+ /**
532
+ * Create a webhook (the secret is returned once)
533
+ * @description Needs an API key with `settings:write`.
534
+ */
535
+ post: operations["postWebhooks"];
536
+ delete?: never;
537
+ options?: never;
538
+ head?: never;
539
+ patch?: never;
540
+ trace?: never;
541
+ };
542
+ "/webhooks/{id}": {
543
+ parameters: {
544
+ query?: never;
545
+ header?: never;
546
+ path?: never;
547
+ cookie?: never;
548
+ };
549
+ get?: never;
550
+ put?: never;
551
+ post?: never;
552
+ /**
553
+ * Delete a webhook
554
+ * @description Needs an API key with `settings:write`.
555
+ */
556
+ delete: operations["deleteWebhooksId"];
557
+ options?: never;
558
+ head?: never;
559
+ /**
560
+ * Update a webhook
561
+ * @description Needs an API key with `settings:write`.
562
+ */
563
+ patch: operations["patchWebhooksId"];
564
+ trace?: never;
565
+ };
566
+ "/webhooks/{id}/rotate": {
567
+ parameters: {
568
+ query?: never;
569
+ header?: never;
570
+ path?: never;
571
+ cookie?: never;
572
+ };
573
+ get?: never;
574
+ put?: never;
575
+ /**
576
+ * Rotate the signing secret
577
+ * @description Needs an API key with `settings:write`.
578
+ */
579
+ post: operations["postWebhooksIdRotate"];
580
+ delete?: never;
581
+ options?: never;
582
+ head?: never;
583
+ patch?: never;
584
+ trace?: never;
585
+ };
586
+ "/webhooks/{id}/deliveries": {
587
+ parameters: {
588
+ query?: never;
589
+ header?: never;
590
+ path?: never;
591
+ cookie?: never;
592
+ };
593
+ /**
594
+ * Delivery log
595
+ * @description Needs an API key with `settings:read`.
596
+ */
597
+ get: operations["getWebhooksIdDeliveries"];
598
+ put?: never;
599
+ post?: never;
600
+ delete?: never;
601
+ options?: never;
602
+ head?: never;
603
+ patch?: never;
604
+ trace?: never;
605
+ };
606
+ "/webhooks/{id}/deliveries/{deliveryId}/replay": {
607
+ parameters: {
608
+ query?: never;
609
+ header?: never;
610
+ path?: never;
611
+ cookie?: never;
612
+ };
613
+ get?: never;
614
+ put?: never;
615
+ /**
616
+ * Send a delivery again
617
+ * @description Needs an API key with `settings:write`.
618
+ */
619
+ post: operations["postWebhooksIdDeliveriesDeliveryIdReplay"];
620
+ delete?: never;
621
+ options?: never;
622
+ head?: never;
623
+ patch?: never;
624
+ trace?: never;
625
+ };
626
+ }
627
+ export type webhooks = Record<string, never>;
628
+ export interface components {
629
+ schemas: never;
630
+ responses: never;
631
+ parameters: never;
632
+ requestBodies: never;
633
+ headers: never;
634
+ pathItems: never;
635
+ }
636
+ export type $defs = Record<string, never>;
637
+ export interface operations {
638
+ getBoards: {
639
+ parameters: {
640
+ query?: never;
641
+ header?: never;
642
+ path?: never;
643
+ cookie?: never;
644
+ };
645
+ requestBody?: never;
646
+ responses: {
647
+ /** @description OK */
648
+ 200: {
649
+ headers: {
650
+ [name: string]: unknown;
651
+ };
652
+ content: {
653
+ "application/json": {
654
+ boards: {
655
+ /** Format: uuid */
656
+ id: string;
657
+ slug: string;
658
+ name: string;
659
+ description: string | null;
660
+ icon: string | null;
661
+ /** @enum {string} */
662
+ visibility: "public" | "private";
663
+ /** @enum {string} */
664
+ posting: "anyone" | "identified" | "admins";
665
+ /** @enum {string} */
666
+ moderation: "off" | "low" | "high";
667
+ askWhy: boolean;
668
+ position: number;
669
+ postCount?: number;
670
+ }[];
671
+ };
672
+ };
673
+ };
674
+ /** @description Invalid input */
675
+ 400: {
676
+ headers: {
677
+ [name: string]: unknown;
678
+ };
679
+ content: {
680
+ "application/json": {
681
+ error: string;
682
+ message?: string;
683
+ details?: unknown;
684
+ };
685
+ };
686
+ };
687
+ /** @description Missing or bad key */
688
+ 401: {
689
+ headers: {
690
+ [name: string]: unknown;
691
+ };
692
+ content?: never;
693
+ };
694
+ /** @description Key lacks the permission */
695
+ 403: {
696
+ headers: {
697
+ [name: string]: unknown;
698
+ };
699
+ content?: never;
700
+ };
701
+ /** @description Not found */
702
+ 404: {
703
+ headers: {
704
+ [name: string]: unknown;
705
+ };
706
+ content?: never;
707
+ };
708
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
709
+ 429: {
710
+ headers: {
711
+ [name: string]: unknown;
712
+ };
713
+ content?: never;
714
+ };
715
+ };
716
+ };
717
+ postBoards: {
718
+ parameters: {
719
+ query?: never;
720
+ header?: never;
721
+ path?: never;
722
+ cookie?: never;
723
+ };
724
+ requestBody: {
725
+ content: {
726
+ "application/json": {
727
+ name: string;
728
+ slug?: string;
729
+ description?: string | null;
730
+ icon?: string | null;
731
+ /** @enum {string} */
732
+ visibility?: "public" | "private";
733
+ /** @enum {string} */
734
+ posting?: "anyone" | "identified" | "admins";
735
+ /** @enum {string} */
736
+ moderation?: "off" | "low" | "high";
737
+ askWhy?: boolean;
738
+ };
739
+ };
740
+ };
741
+ responses: {
742
+ /** @description OK */
743
+ 201: {
744
+ headers: {
745
+ [name: string]: unknown;
746
+ };
747
+ content: {
748
+ "application/json": {
749
+ board: {
750
+ /** Format: uuid */
751
+ id: string;
752
+ slug: string;
753
+ name: string;
754
+ description: string | null;
755
+ icon: string | null;
756
+ /** @enum {string} */
757
+ visibility: "public" | "private";
758
+ /** @enum {string} */
759
+ posting: "anyone" | "identified" | "admins";
760
+ /** @enum {string} */
761
+ moderation: "off" | "low" | "high";
762
+ askWhy: boolean;
763
+ position: number;
764
+ postCount?: number;
765
+ };
766
+ };
767
+ };
768
+ };
769
+ /** @description Invalid input */
770
+ 400: {
771
+ headers: {
772
+ [name: string]: unknown;
773
+ };
774
+ content: {
775
+ "application/json": {
776
+ error: string;
777
+ message?: string;
778
+ details?: unknown;
779
+ };
780
+ };
781
+ };
782
+ /** @description Missing or bad key */
783
+ 401: {
784
+ headers: {
785
+ [name: string]: unknown;
786
+ };
787
+ content?: never;
788
+ };
789
+ /** @description Key lacks the permission */
790
+ 403: {
791
+ headers: {
792
+ [name: string]: unknown;
793
+ };
794
+ content?: never;
795
+ };
796
+ /** @description Not found */
797
+ 404: {
798
+ headers: {
799
+ [name: string]: unknown;
800
+ };
801
+ content?: never;
802
+ };
803
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
804
+ 429: {
805
+ headers: {
806
+ [name: string]: unknown;
807
+ };
808
+ content?: never;
809
+ };
810
+ };
811
+ };
812
+ deleteBoardsId: {
813
+ parameters: {
814
+ query?: never;
815
+ header?: never;
816
+ path: {
817
+ id: string;
818
+ };
819
+ cookie?: never;
820
+ };
821
+ requestBody?: never;
822
+ responses: {
823
+ /** @description OK */
824
+ 200: {
825
+ headers: {
826
+ [name: string]: unknown;
827
+ };
828
+ content: {
829
+ "application/json": {
830
+ ok: boolean;
831
+ };
832
+ };
833
+ };
834
+ /** @description Invalid input */
835
+ 400: {
836
+ headers: {
837
+ [name: string]: unknown;
838
+ };
839
+ content: {
840
+ "application/json": {
841
+ error: string;
842
+ message?: string;
843
+ details?: unknown;
844
+ };
845
+ };
846
+ };
847
+ /** @description Missing or bad key */
848
+ 401: {
849
+ headers: {
850
+ [name: string]: unknown;
851
+ };
852
+ content?: never;
853
+ };
854
+ /** @description Key lacks the permission */
855
+ 403: {
856
+ headers: {
857
+ [name: string]: unknown;
858
+ };
859
+ content?: never;
860
+ };
861
+ /** @description Not found */
862
+ 404: {
863
+ headers: {
864
+ [name: string]: unknown;
865
+ };
866
+ content?: never;
867
+ };
868
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
869
+ 429: {
870
+ headers: {
871
+ [name: string]: unknown;
872
+ };
873
+ content?: never;
874
+ };
875
+ };
876
+ };
877
+ patchBoardsId: {
878
+ parameters: {
879
+ query?: never;
880
+ header?: never;
881
+ path: {
882
+ id: string;
883
+ };
884
+ cookie?: never;
885
+ };
886
+ requestBody: {
887
+ content: {
888
+ "application/json": {
889
+ name?: string;
890
+ slug?: string;
891
+ description?: string | null;
892
+ icon?: string | null;
893
+ /** @enum {string} */
894
+ visibility?: "public" | "private";
895
+ /** @enum {string} */
896
+ posting?: "anyone" | "identified" | "admins";
897
+ /** @enum {string} */
898
+ moderation?: "off" | "low" | "high";
899
+ askWhy?: boolean;
900
+ };
901
+ };
902
+ };
903
+ responses: {
904
+ /** @description OK */
905
+ 200: {
906
+ headers: {
907
+ [name: string]: unknown;
908
+ };
909
+ content: {
910
+ "application/json": {
911
+ board: {
912
+ /** Format: uuid */
913
+ id: string;
914
+ slug: string;
915
+ name: string;
916
+ description: string | null;
917
+ icon: string | null;
918
+ /** @enum {string} */
919
+ visibility: "public" | "private";
920
+ /** @enum {string} */
921
+ posting: "anyone" | "identified" | "admins";
922
+ /** @enum {string} */
923
+ moderation: "off" | "low" | "high";
924
+ askWhy: boolean;
925
+ position: number;
926
+ postCount?: number;
927
+ };
928
+ };
929
+ };
930
+ };
931
+ /** @description Invalid input */
932
+ 400: {
933
+ headers: {
934
+ [name: string]: unknown;
935
+ };
936
+ content: {
937
+ "application/json": {
938
+ error: string;
939
+ message?: string;
940
+ details?: unknown;
941
+ };
942
+ };
943
+ };
944
+ /** @description Missing or bad key */
945
+ 401: {
946
+ headers: {
947
+ [name: string]: unknown;
948
+ };
949
+ content?: never;
950
+ };
951
+ /** @description Key lacks the permission */
952
+ 403: {
953
+ headers: {
954
+ [name: string]: unknown;
955
+ };
956
+ content?: never;
957
+ };
958
+ /** @description Not found */
959
+ 404: {
960
+ headers: {
961
+ [name: string]: unknown;
962
+ };
963
+ content?: never;
964
+ };
965
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
966
+ 429: {
967
+ headers: {
968
+ [name: string]: unknown;
969
+ };
970
+ content?: never;
971
+ };
972
+ };
973
+ };
974
+ getStatuses: {
975
+ parameters: {
976
+ query?: never;
977
+ header?: never;
978
+ path?: never;
979
+ cookie?: never;
980
+ };
981
+ requestBody?: never;
982
+ responses: {
983
+ /** @description OK */
984
+ 200: {
985
+ headers: {
986
+ [name: string]: unknown;
987
+ };
988
+ content: {
989
+ "application/json": {
990
+ statuses: {
991
+ /** Format: uuid */
992
+ id: string;
993
+ key: string;
994
+ name: string;
995
+ color: string;
996
+ position: number;
997
+ isDefault: boolean;
998
+ isDone: boolean;
999
+ isClosed: boolean;
1000
+ }[];
1001
+ };
1002
+ };
1003
+ };
1004
+ /** @description Invalid input */
1005
+ 400: {
1006
+ headers: {
1007
+ [name: string]: unknown;
1008
+ };
1009
+ content: {
1010
+ "application/json": {
1011
+ error: string;
1012
+ message?: string;
1013
+ details?: unknown;
1014
+ };
1015
+ };
1016
+ };
1017
+ /** @description Missing or bad key */
1018
+ 401: {
1019
+ headers: {
1020
+ [name: string]: unknown;
1021
+ };
1022
+ content?: never;
1023
+ };
1024
+ /** @description Key lacks the permission */
1025
+ 403: {
1026
+ headers: {
1027
+ [name: string]: unknown;
1028
+ };
1029
+ content?: never;
1030
+ };
1031
+ /** @description Not found */
1032
+ 404: {
1033
+ headers: {
1034
+ [name: string]: unknown;
1035
+ };
1036
+ content?: never;
1037
+ };
1038
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1039
+ 429: {
1040
+ headers: {
1041
+ [name: string]: unknown;
1042
+ };
1043
+ content?: never;
1044
+ };
1045
+ };
1046
+ };
1047
+ postStatuses: {
1048
+ parameters: {
1049
+ query?: never;
1050
+ header?: never;
1051
+ path?: never;
1052
+ cookie?: never;
1053
+ };
1054
+ requestBody: {
1055
+ content: {
1056
+ "application/json": {
1057
+ name: string;
1058
+ color: string;
1059
+ /** @default false */
1060
+ isDone?: boolean;
1061
+ /** @default false */
1062
+ isClosed?: boolean;
1063
+ };
1064
+ };
1065
+ };
1066
+ responses: {
1067
+ /** @description OK */
1068
+ 201: {
1069
+ headers: {
1070
+ [name: string]: unknown;
1071
+ };
1072
+ content: {
1073
+ "application/json": {
1074
+ status: {
1075
+ /** Format: uuid */
1076
+ id: string;
1077
+ key: string;
1078
+ name: string;
1079
+ color: string;
1080
+ position: number;
1081
+ isDefault: boolean;
1082
+ isDone: boolean;
1083
+ isClosed: boolean;
1084
+ };
1085
+ };
1086
+ };
1087
+ };
1088
+ /** @description Invalid input */
1089
+ 400: {
1090
+ headers: {
1091
+ [name: string]: unknown;
1092
+ };
1093
+ content: {
1094
+ "application/json": {
1095
+ error: string;
1096
+ message?: string;
1097
+ details?: unknown;
1098
+ };
1099
+ };
1100
+ };
1101
+ /** @description Missing or bad key */
1102
+ 401: {
1103
+ headers: {
1104
+ [name: string]: unknown;
1105
+ };
1106
+ content?: never;
1107
+ };
1108
+ /** @description Key lacks the permission */
1109
+ 403: {
1110
+ headers: {
1111
+ [name: string]: unknown;
1112
+ };
1113
+ content?: never;
1114
+ };
1115
+ /** @description Not found */
1116
+ 404: {
1117
+ headers: {
1118
+ [name: string]: unknown;
1119
+ };
1120
+ content?: never;
1121
+ };
1122
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1123
+ 429: {
1124
+ headers: {
1125
+ [name: string]: unknown;
1126
+ };
1127
+ content?: never;
1128
+ };
1129
+ };
1130
+ };
1131
+ getTags: {
1132
+ parameters: {
1133
+ query?: never;
1134
+ header?: never;
1135
+ path?: never;
1136
+ cookie?: never;
1137
+ };
1138
+ requestBody?: never;
1139
+ responses: {
1140
+ /** @description OK */
1141
+ 200: {
1142
+ headers: {
1143
+ [name: string]: unknown;
1144
+ };
1145
+ content: {
1146
+ "application/json": {
1147
+ tags: {
1148
+ /** Format: uuid */
1149
+ id: string;
1150
+ name: string;
1151
+ color: string | null;
1152
+ }[];
1153
+ };
1154
+ };
1155
+ };
1156
+ /** @description Invalid input */
1157
+ 400: {
1158
+ headers: {
1159
+ [name: string]: unknown;
1160
+ };
1161
+ content: {
1162
+ "application/json": {
1163
+ error: string;
1164
+ message?: string;
1165
+ details?: unknown;
1166
+ };
1167
+ };
1168
+ };
1169
+ /** @description Missing or bad key */
1170
+ 401: {
1171
+ headers: {
1172
+ [name: string]: unknown;
1173
+ };
1174
+ content?: never;
1175
+ };
1176
+ /** @description Key lacks the permission */
1177
+ 403: {
1178
+ headers: {
1179
+ [name: string]: unknown;
1180
+ };
1181
+ content?: never;
1182
+ };
1183
+ /** @description Not found */
1184
+ 404: {
1185
+ headers: {
1186
+ [name: string]: unknown;
1187
+ };
1188
+ content?: never;
1189
+ };
1190
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1191
+ 429: {
1192
+ headers: {
1193
+ [name: string]: unknown;
1194
+ };
1195
+ content?: never;
1196
+ };
1197
+ };
1198
+ };
1199
+ postTags: {
1200
+ parameters: {
1201
+ query?: never;
1202
+ header?: never;
1203
+ path?: never;
1204
+ cookie?: never;
1205
+ };
1206
+ requestBody: {
1207
+ content: {
1208
+ "application/json": {
1209
+ name: string;
1210
+ color?: string;
1211
+ };
1212
+ };
1213
+ };
1214
+ responses: {
1215
+ /** @description OK */
1216
+ 201: {
1217
+ headers: {
1218
+ [name: string]: unknown;
1219
+ };
1220
+ content: {
1221
+ "application/json": {
1222
+ tag: {
1223
+ /** Format: uuid */
1224
+ id: string;
1225
+ name: string;
1226
+ color: string | null;
1227
+ };
1228
+ };
1229
+ };
1230
+ };
1231
+ /** @description Invalid input */
1232
+ 400: {
1233
+ headers: {
1234
+ [name: string]: unknown;
1235
+ };
1236
+ content: {
1237
+ "application/json": {
1238
+ error: string;
1239
+ message?: string;
1240
+ details?: unknown;
1241
+ };
1242
+ };
1243
+ };
1244
+ /** @description Missing or bad key */
1245
+ 401: {
1246
+ headers: {
1247
+ [name: string]: unknown;
1248
+ };
1249
+ content?: never;
1250
+ };
1251
+ /** @description Key lacks the permission */
1252
+ 403: {
1253
+ headers: {
1254
+ [name: string]: unknown;
1255
+ };
1256
+ content?: never;
1257
+ };
1258
+ /** @description Not found */
1259
+ 404: {
1260
+ headers: {
1261
+ [name: string]: unknown;
1262
+ };
1263
+ content?: never;
1264
+ };
1265
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1266
+ 429: {
1267
+ headers: {
1268
+ [name: string]: unknown;
1269
+ };
1270
+ content?: never;
1271
+ };
1272
+ };
1273
+ };
1274
+ getPosts: {
1275
+ parameters: {
1276
+ query?: {
1277
+ board?: string;
1278
+ status?: string;
1279
+ tag?: string;
1280
+ q?: string;
1281
+ sort?: "votes" | "revenue" | "newest" | "trending" | "rice";
1282
+ segment?: string;
1283
+ cursor?: number;
1284
+ limit?: number;
1285
+ include?: "all" | "public";
1286
+ };
1287
+ header?: never;
1288
+ path?: never;
1289
+ cookie?: never;
1290
+ };
1291
+ requestBody?: never;
1292
+ responses: {
1293
+ /** @description OK */
1294
+ 200: {
1295
+ headers: {
1296
+ [name: string]: unknown;
1297
+ };
1298
+ content: {
1299
+ "application/json": {
1300
+ posts: {
1301
+ /** Format: uuid */
1302
+ id: string;
1303
+ /** Format: uuid */
1304
+ boardId: string;
1305
+ /** Format: uuid */
1306
+ statusId: string;
1307
+ title: string;
1308
+ body: string;
1309
+ etaDate: string | null;
1310
+ priority: ("low" | "medium" | "high") | null;
1311
+ reach: number | null;
1312
+ impact: number | null;
1313
+ confidence: number | null;
1314
+ effort: number | null;
1315
+ rice: number | null;
1316
+ pinned: boolean;
1317
+ locked: boolean;
1318
+ source: string;
1319
+ voteCount: number;
1320
+ commentCount: number;
1321
+ mergedIntoId: string | null;
1322
+ /** @enum {string} */
1323
+ moderation: "clean" | "pending" | "hidden";
1324
+ /** Format: date-time */
1325
+ createdAt: string;
1326
+ /** Format: date-time */
1327
+ updatedAt: string;
1328
+ authorEndUserId: string | null;
1329
+ authorAdminId: string | null;
1330
+ revenue: number;
1331
+ segmentVotes?: number;
1332
+ tags: {
1333
+ /** Format: uuid */
1334
+ id: string;
1335
+ name: string;
1336
+ color: string | null;
1337
+ }[];
1338
+ author: {
1339
+ id: string | null;
1340
+ name: string | null;
1341
+ email: string | null;
1342
+ avatarUrl: string | null;
1343
+ plan: string | null;
1344
+ trustScore: number | null;
1345
+ } | null;
1346
+ }[];
1347
+ nextCursor: number | null;
1348
+ };
1349
+ };
1350
+ };
1351
+ /** @description Invalid input */
1352
+ 400: {
1353
+ headers: {
1354
+ [name: string]: unknown;
1355
+ };
1356
+ content: {
1357
+ "application/json": {
1358
+ error: string;
1359
+ message?: string;
1360
+ details?: unknown;
1361
+ };
1362
+ };
1363
+ };
1364
+ /** @description Missing or bad key */
1365
+ 401: {
1366
+ headers: {
1367
+ [name: string]: unknown;
1368
+ };
1369
+ content?: never;
1370
+ };
1371
+ /** @description Key lacks the permission */
1372
+ 403: {
1373
+ headers: {
1374
+ [name: string]: unknown;
1375
+ };
1376
+ content?: never;
1377
+ };
1378
+ /** @description Not found */
1379
+ 404: {
1380
+ headers: {
1381
+ [name: string]: unknown;
1382
+ };
1383
+ content?: never;
1384
+ };
1385
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1386
+ 429: {
1387
+ headers: {
1388
+ [name: string]: unknown;
1389
+ };
1390
+ content?: never;
1391
+ };
1392
+ };
1393
+ };
1394
+ postPosts: {
1395
+ parameters: {
1396
+ query?: never;
1397
+ header?: {
1398
+ /** @description Retries with the same key replay the first response for 24 hours. */
1399
+ "Idempotency-Key"?: string;
1400
+ };
1401
+ path?: never;
1402
+ cookie?: never;
1403
+ };
1404
+ requestBody: {
1405
+ content: {
1406
+ "application/json": {
1407
+ /** Format: uuid */
1408
+ boardId: string;
1409
+ title: string;
1410
+ /** @default */
1411
+ body?: string;
1412
+ /** Format: uuid */
1413
+ statusId?: string;
1414
+ tagIds?: string[];
1415
+ /** Format: uuid */
1416
+ authorEndUserId?: string;
1417
+ };
1418
+ };
1419
+ };
1420
+ responses: {
1421
+ /** @description OK */
1422
+ 201: {
1423
+ headers: {
1424
+ [name: string]: unknown;
1425
+ };
1426
+ content: {
1427
+ "application/json": {
1428
+ post: {
1429
+ /** Format: uuid */
1430
+ id: string;
1431
+ /** Format: uuid */
1432
+ boardId: string;
1433
+ /** Format: uuid */
1434
+ statusId: string;
1435
+ title: string;
1436
+ body: string;
1437
+ etaDate: string | null;
1438
+ priority: ("low" | "medium" | "high") | null;
1439
+ reach: number | null;
1440
+ impact: number | null;
1441
+ confidence: number | null;
1442
+ effort: number | null;
1443
+ rice: number | null;
1444
+ pinned: boolean;
1445
+ locked: boolean;
1446
+ source: string;
1447
+ voteCount: number;
1448
+ commentCount: number;
1449
+ mergedIntoId: string | null;
1450
+ /** @enum {string} */
1451
+ moderation: "clean" | "pending" | "hidden";
1452
+ /** Format: date-time */
1453
+ createdAt: string;
1454
+ /** Format: date-time */
1455
+ updatedAt: string;
1456
+ authorEndUserId: string | null;
1457
+ authorAdminId: string | null;
1458
+ revenue: number;
1459
+ segmentVotes?: number;
1460
+ tags: {
1461
+ /** Format: uuid */
1462
+ id: string;
1463
+ name: string;
1464
+ color: string | null;
1465
+ }[];
1466
+ author: {
1467
+ id: string | null;
1468
+ name: string | null;
1469
+ email: string | null;
1470
+ avatarUrl: string | null;
1471
+ plan: string | null;
1472
+ trustScore: number | null;
1473
+ } | null;
1474
+ };
1475
+ };
1476
+ };
1477
+ };
1478
+ /** @description Invalid input */
1479
+ 400: {
1480
+ headers: {
1481
+ [name: string]: unknown;
1482
+ };
1483
+ content: {
1484
+ "application/json": {
1485
+ error: string;
1486
+ message?: string;
1487
+ details?: unknown;
1488
+ };
1489
+ };
1490
+ };
1491
+ /** @description Missing or bad key */
1492
+ 401: {
1493
+ headers: {
1494
+ [name: string]: unknown;
1495
+ };
1496
+ content?: never;
1497
+ };
1498
+ /** @description Key lacks the permission */
1499
+ 403: {
1500
+ headers: {
1501
+ [name: string]: unknown;
1502
+ };
1503
+ content?: never;
1504
+ };
1505
+ /** @description Not found */
1506
+ 404: {
1507
+ headers: {
1508
+ [name: string]: unknown;
1509
+ };
1510
+ content?: never;
1511
+ };
1512
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1513
+ 429: {
1514
+ headers: {
1515
+ [name: string]: unknown;
1516
+ };
1517
+ content?: never;
1518
+ };
1519
+ };
1520
+ };
1521
+ getPostsId: {
1522
+ parameters: {
1523
+ query?: never;
1524
+ header?: never;
1525
+ path: {
1526
+ id: string;
1527
+ };
1528
+ cookie?: never;
1529
+ };
1530
+ requestBody?: never;
1531
+ responses: {
1532
+ /** @description OK */
1533
+ 200: {
1534
+ headers: {
1535
+ [name: string]: unknown;
1536
+ };
1537
+ content: {
1538
+ "application/json": {
1539
+ post: {
1540
+ /** Format: uuid */
1541
+ id: string;
1542
+ /** Format: uuid */
1543
+ boardId: string;
1544
+ /** Format: uuid */
1545
+ statusId: string;
1546
+ title: string;
1547
+ body: string;
1548
+ etaDate: string | null;
1549
+ priority: ("low" | "medium" | "high") | null;
1550
+ reach: number | null;
1551
+ impact: number | null;
1552
+ confidence: number | null;
1553
+ effort: number | null;
1554
+ rice: number | null;
1555
+ pinned: boolean;
1556
+ locked: boolean;
1557
+ source: string;
1558
+ voteCount: number;
1559
+ commentCount: number;
1560
+ mergedIntoId: string | null;
1561
+ /** @enum {string} */
1562
+ moderation: "clean" | "pending" | "hidden";
1563
+ /** Format: date-time */
1564
+ createdAt: string;
1565
+ /** Format: date-time */
1566
+ updatedAt: string;
1567
+ authorEndUserId: string | null;
1568
+ authorAdminId: string | null;
1569
+ revenue: number;
1570
+ segmentVotes?: number;
1571
+ tags: {
1572
+ /** Format: uuid */
1573
+ id: string;
1574
+ name: string;
1575
+ color: string | null;
1576
+ }[];
1577
+ author: {
1578
+ id: string | null;
1579
+ name: string | null;
1580
+ email: string | null;
1581
+ avatarUrl: string | null;
1582
+ plan: string | null;
1583
+ trustScore: number | null;
1584
+ } | null;
1585
+ };
1586
+ voters: {
1587
+ [key: string]: unknown;
1588
+ }[];
1589
+ comments: {
1590
+ /** Format: uuid */
1591
+ id: string;
1592
+ /** Format: uuid */
1593
+ postId: string;
1594
+ parentId: string | null;
1595
+ body: string;
1596
+ internal: boolean;
1597
+ pinned: boolean;
1598
+ moderation: string;
1599
+ /** Format: date-time */
1600
+ createdAt: string;
1601
+ }[];
1602
+ };
1603
+ };
1604
+ };
1605
+ /** @description Invalid input */
1606
+ 400: {
1607
+ headers: {
1608
+ [name: string]: unknown;
1609
+ };
1610
+ content: {
1611
+ "application/json": {
1612
+ error: string;
1613
+ message?: string;
1614
+ details?: unknown;
1615
+ };
1616
+ };
1617
+ };
1618
+ /** @description Missing or bad key */
1619
+ 401: {
1620
+ headers: {
1621
+ [name: string]: unknown;
1622
+ };
1623
+ content?: never;
1624
+ };
1625
+ /** @description Key lacks the permission */
1626
+ 403: {
1627
+ headers: {
1628
+ [name: string]: unknown;
1629
+ };
1630
+ content?: never;
1631
+ };
1632
+ /** @description Not found */
1633
+ 404: {
1634
+ headers: {
1635
+ [name: string]: unknown;
1636
+ };
1637
+ content?: never;
1638
+ };
1639
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1640
+ 429: {
1641
+ headers: {
1642
+ [name: string]: unknown;
1643
+ };
1644
+ content?: never;
1645
+ };
1646
+ };
1647
+ };
1648
+ deletePostsId: {
1649
+ parameters: {
1650
+ query?: never;
1651
+ header?: never;
1652
+ path: {
1653
+ id: string;
1654
+ };
1655
+ cookie?: never;
1656
+ };
1657
+ requestBody?: never;
1658
+ responses: {
1659
+ /** @description OK */
1660
+ 200: {
1661
+ headers: {
1662
+ [name: string]: unknown;
1663
+ };
1664
+ content: {
1665
+ "application/json": {
1666
+ ok: boolean;
1667
+ };
1668
+ };
1669
+ };
1670
+ /** @description Invalid input */
1671
+ 400: {
1672
+ headers: {
1673
+ [name: string]: unknown;
1674
+ };
1675
+ content: {
1676
+ "application/json": {
1677
+ error: string;
1678
+ message?: string;
1679
+ details?: unknown;
1680
+ };
1681
+ };
1682
+ };
1683
+ /** @description Missing or bad key */
1684
+ 401: {
1685
+ headers: {
1686
+ [name: string]: unknown;
1687
+ };
1688
+ content?: never;
1689
+ };
1690
+ /** @description Key lacks the permission */
1691
+ 403: {
1692
+ headers: {
1693
+ [name: string]: unknown;
1694
+ };
1695
+ content?: never;
1696
+ };
1697
+ /** @description Not found */
1698
+ 404: {
1699
+ headers: {
1700
+ [name: string]: unknown;
1701
+ };
1702
+ content?: never;
1703
+ };
1704
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1705
+ 429: {
1706
+ headers: {
1707
+ [name: string]: unknown;
1708
+ };
1709
+ content?: never;
1710
+ };
1711
+ };
1712
+ };
1713
+ patchPostsId: {
1714
+ parameters: {
1715
+ query?: never;
1716
+ header?: never;
1717
+ path: {
1718
+ id: string;
1719
+ };
1720
+ cookie?: never;
1721
+ };
1722
+ requestBody: {
1723
+ content: {
1724
+ "application/json": {
1725
+ title?: string;
1726
+ body?: string;
1727
+ /** Format: uuid */
1728
+ boardId?: string;
1729
+ /** Format: uuid */
1730
+ statusId?: string;
1731
+ /** @default false */
1732
+ quiet?: boolean;
1733
+ etaDate?: string | null;
1734
+ priority?: ("low" | "medium" | "high") | null;
1735
+ pinned?: boolean;
1736
+ locked?: boolean;
1737
+ tagIds?: string[];
1738
+ reach?: number | null;
1739
+ impact?: number | null;
1740
+ confidence?: number | null;
1741
+ effort?: number | null;
1742
+ };
1743
+ };
1744
+ };
1745
+ responses: {
1746
+ /** @description OK */
1747
+ 200: {
1748
+ headers: {
1749
+ [name: string]: unknown;
1750
+ };
1751
+ content: {
1752
+ "application/json": {
1753
+ post: {
1754
+ /** Format: uuid */
1755
+ id: string;
1756
+ /** Format: uuid */
1757
+ boardId: string;
1758
+ /** Format: uuid */
1759
+ statusId: string;
1760
+ title: string;
1761
+ body: string;
1762
+ etaDate: string | null;
1763
+ priority: ("low" | "medium" | "high") | null;
1764
+ reach: number | null;
1765
+ impact: number | null;
1766
+ confidence: number | null;
1767
+ effort: number | null;
1768
+ rice: number | null;
1769
+ pinned: boolean;
1770
+ locked: boolean;
1771
+ source: string;
1772
+ voteCount: number;
1773
+ commentCount: number;
1774
+ mergedIntoId: string | null;
1775
+ /** @enum {string} */
1776
+ moderation: "clean" | "pending" | "hidden";
1777
+ /** Format: date-time */
1778
+ createdAt: string;
1779
+ /** Format: date-time */
1780
+ updatedAt: string;
1781
+ authorEndUserId: string | null;
1782
+ authorAdminId: string | null;
1783
+ revenue: number;
1784
+ segmentVotes?: number;
1785
+ tags: {
1786
+ /** Format: uuid */
1787
+ id: string;
1788
+ name: string;
1789
+ color: string | null;
1790
+ }[];
1791
+ author: {
1792
+ id: string | null;
1793
+ name: string | null;
1794
+ email: string | null;
1795
+ avatarUrl: string | null;
1796
+ plan: string | null;
1797
+ trustScore: number | null;
1798
+ } | null;
1799
+ };
1800
+ };
1801
+ };
1802
+ };
1803
+ /** @description Invalid input */
1804
+ 400: {
1805
+ headers: {
1806
+ [name: string]: unknown;
1807
+ };
1808
+ content: {
1809
+ "application/json": {
1810
+ error: string;
1811
+ message?: string;
1812
+ details?: unknown;
1813
+ };
1814
+ };
1815
+ };
1816
+ /** @description Missing or bad key */
1817
+ 401: {
1818
+ headers: {
1819
+ [name: string]: unknown;
1820
+ };
1821
+ content?: never;
1822
+ };
1823
+ /** @description Key lacks the permission */
1824
+ 403: {
1825
+ headers: {
1826
+ [name: string]: unknown;
1827
+ };
1828
+ content?: never;
1829
+ };
1830
+ /** @description Not found */
1831
+ 404: {
1832
+ headers: {
1833
+ [name: string]: unknown;
1834
+ };
1835
+ content?: never;
1836
+ };
1837
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1838
+ 429: {
1839
+ headers: {
1840
+ [name: string]: unknown;
1841
+ };
1842
+ content?: never;
1843
+ };
1844
+ };
1845
+ };
1846
+ postPostsIdMerge: {
1847
+ parameters: {
1848
+ query?: never;
1849
+ header?: never;
1850
+ path: {
1851
+ id: string;
1852
+ };
1853
+ cookie?: never;
1854
+ };
1855
+ requestBody: {
1856
+ content: {
1857
+ "application/json": {
1858
+ /** Format: uuid */
1859
+ into: string;
1860
+ };
1861
+ };
1862
+ };
1863
+ responses: {
1864
+ /** @description OK */
1865
+ 200: {
1866
+ headers: {
1867
+ [name: string]: unknown;
1868
+ };
1869
+ content: {
1870
+ "application/json": {
1871
+ post: {
1872
+ /** Format: uuid */
1873
+ id: string;
1874
+ /** Format: uuid */
1875
+ boardId: string;
1876
+ /** Format: uuid */
1877
+ statusId: string;
1878
+ title: string;
1879
+ body: string;
1880
+ etaDate: string | null;
1881
+ priority: ("low" | "medium" | "high") | null;
1882
+ reach: number | null;
1883
+ impact: number | null;
1884
+ confidence: number | null;
1885
+ effort: number | null;
1886
+ rice: number | null;
1887
+ pinned: boolean;
1888
+ locked: boolean;
1889
+ source: string;
1890
+ voteCount: number;
1891
+ commentCount: number;
1892
+ mergedIntoId: string | null;
1893
+ /** @enum {string} */
1894
+ moderation: "clean" | "pending" | "hidden";
1895
+ /** Format: date-time */
1896
+ createdAt: string;
1897
+ /** Format: date-time */
1898
+ updatedAt: string;
1899
+ authorEndUserId: string | null;
1900
+ authorAdminId: string | null;
1901
+ revenue: number;
1902
+ segmentVotes?: number;
1903
+ tags: {
1904
+ /** Format: uuid */
1905
+ id: string;
1906
+ name: string;
1907
+ color: string | null;
1908
+ }[];
1909
+ author: {
1910
+ id: string | null;
1911
+ name: string | null;
1912
+ email: string | null;
1913
+ avatarUrl: string | null;
1914
+ plan: string | null;
1915
+ trustScore: number | null;
1916
+ } | null;
1917
+ };
1918
+ };
1919
+ };
1920
+ };
1921
+ /** @description Invalid input */
1922
+ 400: {
1923
+ headers: {
1924
+ [name: string]: unknown;
1925
+ };
1926
+ content: {
1927
+ "application/json": {
1928
+ error: string;
1929
+ message?: string;
1930
+ details?: unknown;
1931
+ };
1932
+ };
1933
+ };
1934
+ /** @description Missing or bad key */
1935
+ 401: {
1936
+ headers: {
1937
+ [name: string]: unknown;
1938
+ };
1939
+ content?: never;
1940
+ };
1941
+ /** @description Key lacks the permission */
1942
+ 403: {
1943
+ headers: {
1944
+ [name: string]: unknown;
1945
+ };
1946
+ content?: never;
1947
+ };
1948
+ /** @description Not found */
1949
+ 404: {
1950
+ headers: {
1951
+ [name: string]: unknown;
1952
+ };
1953
+ content?: never;
1954
+ };
1955
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
1956
+ 429: {
1957
+ headers: {
1958
+ [name: string]: unknown;
1959
+ };
1960
+ content?: never;
1961
+ };
1962
+ };
1963
+ };
1964
+ postPostsIdVotes: {
1965
+ parameters: {
1966
+ query?: never;
1967
+ header?: {
1968
+ /** @description Retries with the same key replay the first response for 24 hours. */
1969
+ "Idempotency-Key"?: string;
1970
+ };
1971
+ path: {
1972
+ id: string;
1973
+ };
1974
+ cookie?: never;
1975
+ };
1976
+ requestBody: {
1977
+ content: {
1978
+ "application/json": {
1979
+ /** Format: uuid */
1980
+ endUserId: string;
1981
+ reason?: string;
1982
+ };
1983
+ };
1984
+ };
1985
+ responses: {
1986
+ /** @description OK */
1987
+ 201: {
1988
+ headers: {
1989
+ [name: string]: unknown;
1990
+ };
1991
+ content: {
1992
+ "application/json": {
1993
+ voteId: string;
1994
+ };
1995
+ };
1996
+ };
1997
+ /** @description Invalid input */
1998
+ 400: {
1999
+ headers: {
2000
+ [name: string]: unknown;
2001
+ };
2002
+ content: {
2003
+ "application/json": {
2004
+ error: string;
2005
+ message?: string;
2006
+ details?: unknown;
2007
+ };
2008
+ };
2009
+ };
2010
+ /** @description Missing or bad key */
2011
+ 401: {
2012
+ headers: {
2013
+ [name: string]: unknown;
2014
+ };
2015
+ content?: never;
2016
+ };
2017
+ /** @description Key lacks the permission */
2018
+ 403: {
2019
+ headers: {
2020
+ [name: string]: unknown;
2021
+ };
2022
+ content?: never;
2023
+ };
2024
+ /** @description Not found */
2025
+ 404: {
2026
+ headers: {
2027
+ [name: string]: unknown;
2028
+ };
2029
+ content?: never;
2030
+ };
2031
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2032
+ 429: {
2033
+ headers: {
2034
+ [name: string]: unknown;
2035
+ };
2036
+ content?: never;
2037
+ };
2038
+ };
2039
+ };
2040
+ deletePostsIdVotesEndUserId: {
2041
+ parameters: {
2042
+ query?: never;
2043
+ header?: never;
2044
+ path: {
2045
+ id: string;
2046
+ endUserId: string;
2047
+ };
2048
+ cookie?: never;
2049
+ };
2050
+ requestBody?: never;
2051
+ responses: {
2052
+ /** @description OK */
2053
+ 200: {
2054
+ headers: {
2055
+ [name: string]: unknown;
2056
+ };
2057
+ content: {
2058
+ "application/json": {
2059
+ ok: boolean;
2060
+ };
2061
+ };
2062
+ };
2063
+ /** @description Invalid input */
2064
+ 400: {
2065
+ headers: {
2066
+ [name: string]: unknown;
2067
+ };
2068
+ content: {
2069
+ "application/json": {
2070
+ error: string;
2071
+ message?: string;
2072
+ details?: unknown;
2073
+ };
2074
+ };
2075
+ };
2076
+ /** @description Missing or bad key */
2077
+ 401: {
2078
+ headers: {
2079
+ [name: string]: unknown;
2080
+ };
2081
+ content?: never;
2082
+ };
2083
+ /** @description Key lacks the permission */
2084
+ 403: {
2085
+ headers: {
2086
+ [name: string]: unknown;
2087
+ };
2088
+ content?: never;
2089
+ };
2090
+ /** @description Not found */
2091
+ 404: {
2092
+ headers: {
2093
+ [name: string]: unknown;
2094
+ };
2095
+ content?: never;
2096
+ };
2097
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2098
+ 429: {
2099
+ headers: {
2100
+ [name: string]: unknown;
2101
+ };
2102
+ content?: never;
2103
+ };
2104
+ };
2105
+ };
2106
+ postPostsIdComments: {
2107
+ parameters: {
2108
+ query?: never;
2109
+ header?: {
2110
+ /** @description Retries with the same key replay the first response for 24 hours. */
2111
+ "Idempotency-Key"?: string;
2112
+ };
2113
+ path: {
2114
+ id: string;
2115
+ };
2116
+ cookie?: never;
2117
+ };
2118
+ requestBody: {
2119
+ content: {
2120
+ "application/json": {
2121
+ body: string;
2122
+ /** Format: uuid */
2123
+ parentId?: string;
2124
+ /** @default false */
2125
+ internal?: boolean;
2126
+ };
2127
+ };
2128
+ };
2129
+ responses: {
2130
+ /** @description OK */
2131
+ 201: {
2132
+ headers: {
2133
+ [name: string]: unknown;
2134
+ };
2135
+ content: {
2136
+ "application/json": {
2137
+ comment: {
2138
+ /** Format: uuid */
2139
+ id: string;
2140
+ /** Format: uuid */
2141
+ postId: string;
2142
+ parentId: string | null;
2143
+ body: string;
2144
+ internal: boolean;
2145
+ pinned: boolean;
2146
+ moderation: string;
2147
+ /** Format: date-time */
2148
+ createdAt: string;
2149
+ };
2150
+ };
2151
+ };
2152
+ };
2153
+ /** @description Invalid input */
2154
+ 400: {
2155
+ headers: {
2156
+ [name: string]: unknown;
2157
+ };
2158
+ content: {
2159
+ "application/json": {
2160
+ error: string;
2161
+ message?: string;
2162
+ details?: unknown;
2163
+ };
2164
+ };
2165
+ };
2166
+ /** @description Missing or bad key */
2167
+ 401: {
2168
+ headers: {
2169
+ [name: string]: unknown;
2170
+ };
2171
+ content?: never;
2172
+ };
2173
+ /** @description Key lacks the permission */
2174
+ 403: {
2175
+ headers: {
2176
+ [name: string]: unknown;
2177
+ };
2178
+ content?: never;
2179
+ };
2180
+ /** @description Not found */
2181
+ 404: {
2182
+ headers: {
2183
+ [name: string]: unknown;
2184
+ };
2185
+ content?: never;
2186
+ };
2187
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2188
+ 429: {
2189
+ headers: {
2190
+ [name: string]: unknown;
2191
+ };
2192
+ content?: never;
2193
+ };
2194
+ };
2195
+ };
2196
+ getCustomers: {
2197
+ parameters: {
2198
+ query?: {
2199
+ q?: string;
2200
+ segment?: string;
2201
+ company?: string;
2202
+ cursor?: string;
2203
+ limit?: number;
2204
+ };
2205
+ header?: never;
2206
+ path?: never;
2207
+ cookie?: never;
2208
+ };
2209
+ requestBody?: never;
2210
+ responses: {
2211
+ /** @description OK */
2212
+ 200: {
2213
+ headers: {
2214
+ [name: string]: unknown;
2215
+ };
2216
+ content: {
2217
+ "application/json": {
2218
+ customers: {
2219
+ /** Format: uuid */
2220
+ id: string;
2221
+ externalId: string | null;
2222
+ email: string | null;
2223
+ name: string | null;
2224
+ avatarUrl: string | null;
2225
+ plan: string | null;
2226
+ /** @description decimal as a string, e.g. "149.00" */
2227
+ mrr: string | null;
2228
+ custom: {
2229
+ [key: string]: unknown;
2230
+ };
2231
+ source: string;
2232
+ trustScore: number;
2233
+ /** Format: date-time */
2234
+ firstSeenAt: string;
2235
+ /** Format: date-time */
2236
+ lastSeenAt: string;
2237
+ deletionRequestedAt: string | null;
2238
+ }[];
2239
+ nextCursor: string | null;
2240
+ };
2241
+ };
2242
+ };
2243
+ /** @description Invalid input */
2244
+ 400: {
2245
+ headers: {
2246
+ [name: string]: unknown;
2247
+ };
2248
+ content: {
2249
+ "application/json": {
2250
+ error: string;
2251
+ message?: string;
2252
+ details?: unknown;
2253
+ };
2254
+ };
2255
+ };
2256
+ /** @description Missing or bad key */
2257
+ 401: {
2258
+ headers: {
2259
+ [name: string]: unknown;
2260
+ };
2261
+ content?: never;
2262
+ };
2263
+ /** @description Key lacks the permission */
2264
+ 403: {
2265
+ headers: {
2266
+ [name: string]: unknown;
2267
+ };
2268
+ content?: never;
2269
+ };
2270
+ /** @description Not found */
2271
+ 404: {
2272
+ headers: {
2273
+ [name: string]: unknown;
2274
+ };
2275
+ content?: never;
2276
+ };
2277
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2278
+ 429: {
2279
+ headers: {
2280
+ [name: string]: unknown;
2281
+ };
2282
+ content?: never;
2283
+ };
2284
+ };
2285
+ };
2286
+ postCustomers: {
2287
+ parameters: {
2288
+ query?: never;
2289
+ header?: {
2290
+ /** @description Retries with the same key replay the first response for 24 hours. */
2291
+ "Idempotency-Key"?: string;
2292
+ };
2293
+ path?: never;
2294
+ cookie?: never;
2295
+ };
2296
+ requestBody: {
2297
+ content: {
2298
+ "application/json": {
2299
+ id: string;
2300
+ /** Format: email */
2301
+ email?: string;
2302
+ name?: string;
2303
+ plan?: string;
2304
+ mrr?: number;
2305
+ custom?: {
2306
+ [key: string]: string | number | boolean | null;
2307
+ };
2308
+ company?: {
2309
+ id: string;
2310
+ name?: string;
2311
+ domain?: string;
2312
+ plan?: string;
2313
+ mrr?: number;
2314
+ custom?: {
2315
+ [key: string]: string | number | boolean | null;
2316
+ };
2317
+ };
2318
+ };
2319
+ };
2320
+ };
2321
+ responses: {
2322
+ /** @description OK */
2323
+ 200: {
2324
+ headers: {
2325
+ [name: string]: unknown;
2326
+ };
2327
+ content: {
2328
+ "application/json": {
2329
+ customer: {
2330
+ /** Format: uuid */
2331
+ id: string;
2332
+ externalId: string | null;
2333
+ email: string | null;
2334
+ name: string | null;
2335
+ avatarUrl: string | null;
2336
+ plan: string | null;
2337
+ /** @description decimal as a string, e.g. "149.00" */
2338
+ mrr: string | null;
2339
+ custom: {
2340
+ [key: string]: unknown;
2341
+ };
2342
+ source: string;
2343
+ trustScore: number;
2344
+ /** Format: date-time */
2345
+ firstSeenAt: string;
2346
+ /** Format: date-time */
2347
+ lastSeenAt: string;
2348
+ deletionRequestedAt: string | null;
2349
+ };
2350
+ companyId: string | null;
2351
+ created: boolean;
2352
+ };
2353
+ };
2354
+ };
2355
+ /** @description Invalid input */
2356
+ 400: {
2357
+ headers: {
2358
+ [name: string]: unknown;
2359
+ };
2360
+ content: {
2361
+ "application/json": {
2362
+ error: string;
2363
+ message?: string;
2364
+ details?: unknown;
2365
+ };
2366
+ };
2367
+ };
2368
+ /** @description Missing or bad key */
2369
+ 401: {
2370
+ headers: {
2371
+ [name: string]: unknown;
2372
+ };
2373
+ content?: never;
2374
+ };
2375
+ /** @description Key lacks the permission */
2376
+ 403: {
2377
+ headers: {
2378
+ [name: string]: unknown;
2379
+ };
2380
+ content?: never;
2381
+ };
2382
+ /** @description Not found */
2383
+ 404: {
2384
+ headers: {
2385
+ [name: string]: unknown;
2386
+ };
2387
+ content?: never;
2388
+ };
2389
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2390
+ 429: {
2391
+ headers: {
2392
+ [name: string]: unknown;
2393
+ };
2394
+ content?: never;
2395
+ };
2396
+ };
2397
+ };
2398
+ getCustomersId: {
2399
+ parameters: {
2400
+ query?: never;
2401
+ header?: never;
2402
+ path: {
2403
+ id: string;
2404
+ };
2405
+ cookie?: never;
2406
+ };
2407
+ requestBody?: never;
2408
+ responses: {
2409
+ /** @description OK */
2410
+ 200: {
2411
+ headers: {
2412
+ [name: string]: unknown;
2413
+ };
2414
+ content: {
2415
+ "application/json": {
2416
+ customer: {
2417
+ /** Format: uuid */
2418
+ id: string;
2419
+ externalId: string | null;
2420
+ email: string | null;
2421
+ name: string | null;
2422
+ avatarUrl: string | null;
2423
+ plan: string | null;
2424
+ /** @description decimal as a string, e.g. "149.00" */
2425
+ mrr: string | null;
2426
+ custom: {
2427
+ [key: string]: unknown;
2428
+ };
2429
+ source: string;
2430
+ trustScore: number;
2431
+ /** Format: date-time */
2432
+ firstSeenAt: string;
2433
+ /** Format: date-time */
2434
+ lastSeenAt: string;
2435
+ deletionRequestedAt: string | null;
2436
+ };
2437
+ companies: {
2438
+ /** Format: uuid */
2439
+ id: string;
2440
+ externalId: string;
2441
+ name: string;
2442
+ domain: string | null;
2443
+ plan: string | null;
2444
+ /** @description decimal as a string, e.g. "149.00" */
2445
+ mrr: string | null;
2446
+ custom: {
2447
+ [key: string]: unknown;
2448
+ };
2449
+ /** Format: date-time */
2450
+ createdAt: string;
2451
+ /** Format: date-time */
2452
+ updatedAt: string;
2453
+ memberCount?: number;
2454
+ voteCount?: number;
2455
+ isPrimary: boolean;
2456
+ }[];
2457
+ };
2458
+ };
2459
+ };
2460
+ /** @description Invalid input */
2461
+ 400: {
2462
+ headers: {
2463
+ [name: string]: unknown;
2464
+ };
2465
+ content: {
2466
+ "application/json": {
2467
+ error: string;
2468
+ message?: string;
2469
+ details?: unknown;
2470
+ };
2471
+ };
2472
+ };
2473
+ /** @description Missing or bad key */
2474
+ 401: {
2475
+ headers: {
2476
+ [name: string]: unknown;
2477
+ };
2478
+ content?: never;
2479
+ };
2480
+ /** @description Key lacks the permission */
2481
+ 403: {
2482
+ headers: {
2483
+ [name: string]: unknown;
2484
+ };
2485
+ content?: never;
2486
+ };
2487
+ /** @description Not found */
2488
+ 404: {
2489
+ headers: {
2490
+ [name: string]: unknown;
2491
+ };
2492
+ content?: never;
2493
+ };
2494
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2495
+ 429: {
2496
+ headers: {
2497
+ [name: string]: unknown;
2498
+ };
2499
+ content?: never;
2500
+ };
2501
+ };
2502
+ };
2503
+ deleteCustomersId: {
2504
+ parameters: {
2505
+ query?: never;
2506
+ header?: never;
2507
+ path: {
2508
+ id: string;
2509
+ };
2510
+ cookie?: never;
2511
+ };
2512
+ requestBody?: never;
2513
+ responses: {
2514
+ /** @description OK */
2515
+ 200: {
2516
+ headers: {
2517
+ [name: string]: unknown;
2518
+ };
2519
+ content: {
2520
+ "application/json": {
2521
+ ok: boolean;
2522
+ };
2523
+ };
2524
+ };
2525
+ /** @description Invalid input */
2526
+ 400: {
2527
+ headers: {
2528
+ [name: string]: unknown;
2529
+ };
2530
+ content: {
2531
+ "application/json": {
2532
+ error: string;
2533
+ message?: string;
2534
+ details?: unknown;
2535
+ };
2536
+ };
2537
+ };
2538
+ /** @description Missing or bad key */
2539
+ 401: {
2540
+ headers: {
2541
+ [name: string]: unknown;
2542
+ };
2543
+ content?: never;
2544
+ };
2545
+ /** @description Key lacks the permission */
2546
+ 403: {
2547
+ headers: {
2548
+ [name: string]: unknown;
2549
+ };
2550
+ content?: never;
2551
+ };
2552
+ /** @description Not found */
2553
+ 404: {
2554
+ headers: {
2555
+ [name: string]: unknown;
2556
+ };
2557
+ content?: never;
2558
+ };
2559
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2560
+ 429: {
2561
+ headers: {
2562
+ [name: string]: unknown;
2563
+ };
2564
+ content?: never;
2565
+ };
2566
+ };
2567
+ };
2568
+ patchCustomersId: {
2569
+ parameters: {
2570
+ query?: never;
2571
+ header?: never;
2572
+ path: {
2573
+ id: string;
2574
+ };
2575
+ cookie?: never;
2576
+ };
2577
+ requestBody: {
2578
+ content: {
2579
+ "application/json": {
2580
+ name?: string | null;
2581
+ plan?: string | null;
2582
+ mrr?: number | null;
2583
+ custom?: {
2584
+ [key: string]: string | number | boolean | null;
2585
+ };
2586
+ };
2587
+ };
2588
+ };
2589
+ responses: {
2590
+ /** @description OK */
2591
+ 200: {
2592
+ headers: {
2593
+ [name: string]: unknown;
2594
+ };
2595
+ content: {
2596
+ "application/json": {
2597
+ customer: {
2598
+ /** Format: uuid */
2599
+ id: string;
2600
+ externalId: string | null;
2601
+ email: string | null;
2602
+ name: string | null;
2603
+ avatarUrl: string | null;
2604
+ plan: string | null;
2605
+ /** @description decimal as a string, e.g. "149.00" */
2606
+ mrr: string | null;
2607
+ custom: {
2608
+ [key: string]: unknown;
2609
+ };
2610
+ source: string;
2611
+ trustScore: number;
2612
+ /** Format: date-time */
2613
+ firstSeenAt: string;
2614
+ /** Format: date-time */
2615
+ lastSeenAt: string;
2616
+ deletionRequestedAt: string | null;
2617
+ };
2618
+ };
2619
+ };
2620
+ };
2621
+ /** @description Invalid input */
2622
+ 400: {
2623
+ headers: {
2624
+ [name: string]: unknown;
2625
+ };
2626
+ content: {
2627
+ "application/json": {
2628
+ error: string;
2629
+ message?: string;
2630
+ details?: unknown;
2631
+ };
2632
+ };
2633
+ };
2634
+ /** @description Missing or bad key */
2635
+ 401: {
2636
+ headers: {
2637
+ [name: string]: unknown;
2638
+ };
2639
+ content?: never;
2640
+ };
2641
+ /** @description Key lacks the permission */
2642
+ 403: {
2643
+ headers: {
2644
+ [name: string]: unknown;
2645
+ };
2646
+ content?: never;
2647
+ };
2648
+ /** @description Not found */
2649
+ 404: {
2650
+ headers: {
2651
+ [name: string]: unknown;
2652
+ };
2653
+ content?: never;
2654
+ };
2655
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2656
+ 429: {
2657
+ headers: {
2658
+ [name: string]: unknown;
2659
+ };
2660
+ content?: never;
2661
+ };
2662
+ };
2663
+ };
2664
+ getCustomersIdExportJson: {
2665
+ parameters: {
2666
+ query?: never;
2667
+ header?: never;
2668
+ path: {
2669
+ id: string;
2670
+ };
2671
+ cookie?: never;
2672
+ };
2673
+ requestBody?: never;
2674
+ responses: {
2675
+ /** @description OK */
2676
+ 200: {
2677
+ headers: {
2678
+ [name: string]: unknown;
2679
+ };
2680
+ content: {
2681
+ "application/json": {
2682
+ [key: string]: unknown;
2683
+ };
2684
+ };
2685
+ };
2686
+ /** @description Invalid input */
2687
+ 400: {
2688
+ headers: {
2689
+ [name: string]: unknown;
2690
+ };
2691
+ content: {
2692
+ "application/json": {
2693
+ error: string;
2694
+ message?: string;
2695
+ details?: unknown;
2696
+ };
2697
+ };
2698
+ };
2699
+ /** @description Missing or bad key */
2700
+ 401: {
2701
+ headers: {
2702
+ [name: string]: unknown;
2703
+ };
2704
+ content?: never;
2705
+ };
2706
+ /** @description Key lacks the permission */
2707
+ 403: {
2708
+ headers: {
2709
+ [name: string]: unknown;
2710
+ };
2711
+ content?: never;
2712
+ };
2713
+ /** @description Not found */
2714
+ 404: {
2715
+ headers: {
2716
+ [name: string]: unknown;
2717
+ };
2718
+ content?: never;
2719
+ };
2720
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2721
+ 429: {
2722
+ headers: {
2723
+ [name: string]: unknown;
2724
+ };
2725
+ content?: never;
2726
+ };
2727
+ };
2728
+ };
2729
+ getCompanies: {
2730
+ parameters: {
2731
+ query?: {
2732
+ q?: string;
2733
+ segment?: string;
2734
+ company?: string;
2735
+ cursor?: string;
2736
+ limit?: number;
2737
+ sort?: "recent" | "mrr" | "members" | "name";
2738
+ };
2739
+ header?: never;
2740
+ path?: never;
2741
+ cookie?: never;
2742
+ };
2743
+ requestBody?: never;
2744
+ responses: {
2745
+ /** @description OK */
2746
+ 200: {
2747
+ headers: {
2748
+ [name: string]: unknown;
2749
+ };
2750
+ content: {
2751
+ "application/json": {
2752
+ companies: {
2753
+ /** Format: uuid */
2754
+ id: string;
2755
+ externalId: string;
2756
+ name: string;
2757
+ domain: string | null;
2758
+ plan: string | null;
2759
+ /** @description decimal as a string, e.g. "149.00" */
2760
+ mrr: string | null;
2761
+ custom: {
2762
+ [key: string]: unknown;
2763
+ };
2764
+ /** Format: date-time */
2765
+ createdAt: string;
2766
+ /** Format: date-time */
2767
+ updatedAt: string;
2768
+ memberCount?: number;
2769
+ voteCount?: number;
2770
+ }[];
2771
+ };
2772
+ };
2773
+ };
2774
+ /** @description Invalid input */
2775
+ 400: {
2776
+ headers: {
2777
+ [name: string]: unknown;
2778
+ };
2779
+ content: {
2780
+ "application/json": {
2781
+ error: string;
2782
+ message?: string;
2783
+ details?: unknown;
2784
+ };
2785
+ };
2786
+ };
2787
+ /** @description Missing or bad key */
2788
+ 401: {
2789
+ headers: {
2790
+ [name: string]: unknown;
2791
+ };
2792
+ content?: never;
2793
+ };
2794
+ /** @description Key lacks the permission */
2795
+ 403: {
2796
+ headers: {
2797
+ [name: string]: unknown;
2798
+ };
2799
+ content?: never;
2800
+ };
2801
+ /** @description Not found */
2802
+ 404: {
2803
+ headers: {
2804
+ [name: string]: unknown;
2805
+ };
2806
+ content?: never;
2807
+ };
2808
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2809
+ 429: {
2810
+ headers: {
2811
+ [name: string]: unknown;
2812
+ };
2813
+ content?: never;
2814
+ };
2815
+ };
2816
+ };
2817
+ postCompanies: {
2818
+ parameters: {
2819
+ query?: never;
2820
+ header?: {
2821
+ /** @description Retries with the same key replay the first response for 24 hours. */
2822
+ "Idempotency-Key"?: string;
2823
+ };
2824
+ path?: never;
2825
+ cookie?: never;
2826
+ };
2827
+ requestBody: {
2828
+ content: {
2829
+ "application/json": {
2830
+ id: string;
2831
+ name?: string;
2832
+ domain?: string;
2833
+ plan?: string;
2834
+ mrr?: number;
2835
+ custom?: {
2836
+ [key: string]: string | number | boolean | null;
2837
+ };
2838
+ };
2839
+ };
2840
+ };
2841
+ responses: {
2842
+ /** @description OK */
2843
+ 201: {
2844
+ headers: {
2845
+ [name: string]: unknown;
2846
+ };
2847
+ content: {
2848
+ "application/json": {
2849
+ companyId: string;
2850
+ };
2851
+ };
2852
+ };
2853
+ /** @description Invalid input */
2854
+ 400: {
2855
+ headers: {
2856
+ [name: string]: unknown;
2857
+ };
2858
+ content: {
2859
+ "application/json": {
2860
+ error: string;
2861
+ message?: string;
2862
+ details?: unknown;
2863
+ };
2864
+ };
2865
+ };
2866
+ /** @description Missing or bad key */
2867
+ 401: {
2868
+ headers: {
2869
+ [name: string]: unknown;
2870
+ };
2871
+ content?: never;
2872
+ };
2873
+ /** @description Key lacks the permission */
2874
+ 403: {
2875
+ headers: {
2876
+ [name: string]: unknown;
2877
+ };
2878
+ content?: never;
2879
+ };
2880
+ /** @description Not found */
2881
+ 404: {
2882
+ headers: {
2883
+ [name: string]: unknown;
2884
+ };
2885
+ content?: never;
2886
+ };
2887
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2888
+ 429: {
2889
+ headers: {
2890
+ [name: string]: unknown;
2891
+ };
2892
+ content?: never;
2893
+ };
2894
+ };
2895
+ };
2896
+ getCompaniesId: {
2897
+ parameters: {
2898
+ query?: never;
2899
+ header?: never;
2900
+ path: {
2901
+ id: string;
2902
+ };
2903
+ cookie?: never;
2904
+ };
2905
+ requestBody?: never;
2906
+ responses: {
2907
+ /** @description OK */
2908
+ 200: {
2909
+ headers: {
2910
+ [name: string]: unknown;
2911
+ };
2912
+ content: {
2913
+ "application/json": {
2914
+ company: {
2915
+ /** Format: uuid */
2916
+ id: string;
2917
+ externalId: string;
2918
+ name: string;
2919
+ domain: string | null;
2920
+ plan: string | null;
2921
+ /** @description decimal as a string, e.g. "149.00" */
2922
+ mrr: string | null;
2923
+ custom: {
2924
+ [key: string]: unknown;
2925
+ };
2926
+ /** Format: date-time */
2927
+ createdAt: string;
2928
+ /** Format: date-time */
2929
+ updatedAt: string;
2930
+ memberCount?: number;
2931
+ voteCount?: number;
2932
+ };
2933
+ members: {
2934
+ /** Format: uuid */
2935
+ id: string;
2936
+ externalId: string | null;
2937
+ email: string | null;
2938
+ name: string | null;
2939
+ avatarUrl: string | null;
2940
+ plan: string | null;
2941
+ /** @description decimal as a string, e.g. "149.00" */
2942
+ mrr: string | null;
2943
+ custom: {
2944
+ [key: string]: unknown;
2945
+ };
2946
+ source: string;
2947
+ trustScore: number;
2948
+ /** Format: date-time */
2949
+ firstSeenAt: string;
2950
+ /** Format: date-time */
2951
+ lastSeenAt: string;
2952
+ deletionRequestedAt: string | null;
2953
+ isPrimary: boolean;
2954
+ }[];
2955
+ requested: {
2956
+ [key: string]: unknown;
2957
+ }[];
2958
+ };
2959
+ };
2960
+ };
2961
+ /** @description Invalid input */
2962
+ 400: {
2963
+ headers: {
2964
+ [name: string]: unknown;
2965
+ };
2966
+ content: {
2967
+ "application/json": {
2968
+ error: string;
2969
+ message?: string;
2970
+ details?: unknown;
2971
+ };
2972
+ };
2973
+ };
2974
+ /** @description Missing or bad key */
2975
+ 401: {
2976
+ headers: {
2977
+ [name: string]: unknown;
2978
+ };
2979
+ content?: never;
2980
+ };
2981
+ /** @description Key lacks the permission */
2982
+ 403: {
2983
+ headers: {
2984
+ [name: string]: unknown;
2985
+ };
2986
+ content?: never;
2987
+ };
2988
+ /** @description Not found */
2989
+ 404: {
2990
+ headers: {
2991
+ [name: string]: unknown;
2992
+ };
2993
+ content?: never;
2994
+ };
2995
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
2996
+ 429: {
2997
+ headers: {
2998
+ [name: string]: unknown;
2999
+ };
3000
+ content?: never;
3001
+ };
3002
+ };
3003
+ };
3004
+ patchCompaniesId: {
3005
+ parameters: {
3006
+ query?: never;
3007
+ header?: never;
3008
+ path: {
3009
+ id: string;
3010
+ };
3011
+ cookie?: never;
3012
+ };
3013
+ requestBody: {
3014
+ content: {
3015
+ "application/json": {
3016
+ name?: string;
3017
+ domain?: string | null;
3018
+ plan?: string | null;
3019
+ mrr?: number | null;
3020
+ custom?: {
3021
+ [key: string]: string | number | boolean | null;
3022
+ };
3023
+ };
3024
+ };
3025
+ };
3026
+ responses: {
3027
+ /** @description OK */
3028
+ 200: {
3029
+ headers: {
3030
+ [name: string]: unknown;
3031
+ };
3032
+ content: {
3033
+ "application/json": {
3034
+ company: {
3035
+ /** Format: uuid */
3036
+ id: string;
3037
+ externalId: string;
3038
+ name: string;
3039
+ domain: string | null;
3040
+ plan: string | null;
3041
+ /** @description decimal as a string, e.g. "149.00" */
3042
+ mrr: string | null;
3043
+ custom: {
3044
+ [key: string]: unknown;
3045
+ };
3046
+ /** Format: date-time */
3047
+ createdAt: string;
3048
+ /** Format: date-time */
3049
+ updatedAt: string;
3050
+ memberCount?: number;
3051
+ voteCount?: number;
3052
+ };
3053
+ };
3054
+ };
3055
+ };
3056
+ /** @description Invalid input */
3057
+ 400: {
3058
+ headers: {
3059
+ [name: string]: unknown;
3060
+ };
3061
+ content: {
3062
+ "application/json": {
3063
+ error: string;
3064
+ message?: string;
3065
+ details?: unknown;
3066
+ };
3067
+ };
3068
+ };
3069
+ /** @description Missing or bad key */
3070
+ 401: {
3071
+ headers: {
3072
+ [name: string]: unknown;
3073
+ };
3074
+ content?: never;
3075
+ };
3076
+ /** @description Key lacks the permission */
3077
+ 403: {
3078
+ headers: {
3079
+ [name: string]: unknown;
3080
+ };
3081
+ content?: never;
3082
+ };
3083
+ /** @description Not found */
3084
+ 404: {
3085
+ headers: {
3086
+ [name: string]: unknown;
3087
+ };
3088
+ content?: never;
3089
+ };
3090
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3091
+ 429: {
3092
+ headers: {
3093
+ [name: string]: unknown;
3094
+ };
3095
+ content?: never;
3096
+ };
3097
+ };
3098
+ };
3099
+ getSegments: {
3100
+ parameters: {
3101
+ query?: never;
3102
+ header?: never;
3103
+ path?: never;
3104
+ cookie?: never;
3105
+ };
3106
+ requestBody?: never;
3107
+ responses: {
3108
+ /** @description OK */
3109
+ 200: {
3110
+ headers: {
3111
+ [name: string]: unknown;
3112
+ };
3113
+ content: {
3114
+ "application/json": {
3115
+ segments: {
3116
+ /** Format: uuid */
3117
+ id: string;
3118
+ name: string;
3119
+ description: string | null;
3120
+ rules: {
3121
+ /** @enum {string} */
3122
+ match: "all" | "any";
3123
+ conditions: {
3124
+ [key: string]: unknown;
3125
+ }[];
3126
+ };
3127
+ count?: number;
3128
+ mrr?: number;
3129
+ summary?: string;
3130
+ /** Format: date-time */
3131
+ createdAt: string;
3132
+ /** Format: date-time */
3133
+ updatedAt: string;
3134
+ }[];
3135
+ };
3136
+ };
3137
+ };
3138
+ /** @description Invalid input */
3139
+ 400: {
3140
+ headers: {
3141
+ [name: string]: unknown;
3142
+ };
3143
+ content: {
3144
+ "application/json": {
3145
+ error: string;
3146
+ message?: string;
3147
+ details?: unknown;
3148
+ };
3149
+ };
3150
+ };
3151
+ /** @description Missing or bad key */
3152
+ 401: {
3153
+ headers: {
3154
+ [name: string]: unknown;
3155
+ };
3156
+ content?: never;
3157
+ };
3158
+ /** @description Key lacks the permission */
3159
+ 403: {
3160
+ headers: {
3161
+ [name: string]: unknown;
3162
+ };
3163
+ content?: never;
3164
+ };
3165
+ /** @description Not found */
3166
+ 404: {
3167
+ headers: {
3168
+ [name: string]: unknown;
3169
+ };
3170
+ content?: never;
3171
+ };
3172
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3173
+ 429: {
3174
+ headers: {
3175
+ [name: string]: unknown;
3176
+ };
3177
+ content?: never;
3178
+ };
3179
+ };
3180
+ };
3181
+ postSegments: {
3182
+ parameters: {
3183
+ query?: never;
3184
+ header?: never;
3185
+ path?: never;
3186
+ cookie?: never;
3187
+ };
3188
+ requestBody: {
3189
+ content: {
3190
+ "application/json": {
3191
+ name: string;
3192
+ description?: string | null;
3193
+ rules: {
3194
+ /**
3195
+ * @default all
3196
+ * @enum {string}
3197
+ */
3198
+ match?: "all" | "any";
3199
+ conditions: ({
3200
+ field: string;
3201
+ /** @enum {string} */
3202
+ op: "eq" | "neq" | "contains" | "starts_with";
3203
+ value: string;
3204
+ } | {
3205
+ field: string;
3206
+ /** @enum {string} */
3207
+ op: "gt" | "gte" | "lt" | "lte";
3208
+ value: number;
3209
+ } | {
3210
+ field: string;
3211
+ /** @enum {string} */
3212
+ op: "in" | "not_in";
3213
+ value: string[];
3214
+ } | {
3215
+ field: string;
3216
+ /** @enum {string} */
3217
+ op: "exists" | "not_exists" | "is_true" | "is_false";
3218
+ } | {
3219
+ field: string;
3220
+ /** @enum {string} */
3221
+ op: "before" | "after" | "within_days" | "not_within_days";
3222
+ value: string | number;
3223
+ } | {
3224
+ field: string;
3225
+ /** @enum {string} */
3226
+ op: "at_least" | "at_most";
3227
+ value: number;
3228
+ /** @default 30 */
3229
+ days?: number;
3230
+ })[];
3231
+ };
3232
+ };
3233
+ };
3234
+ };
3235
+ responses: {
3236
+ /** @description OK */
3237
+ 201: {
3238
+ headers: {
3239
+ [name: string]: unknown;
3240
+ };
3241
+ content: {
3242
+ "application/json": {
3243
+ segment: {
3244
+ /** Format: uuid */
3245
+ id: string;
3246
+ name: string;
3247
+ description: string | null;
3248
+ rules: {
3249
+ /** @enum {string} */
3250
+ match: "all" | "any";
3251
+ conditions: {
3252
+ [key: string]: unknown;
3253
+ }[];
3254
+ };
3255
+ count?: number;
3256
+ mrr?: number;
3257
+ summary?: string;
3258
+ /** Format: date-time */
3259
+ createdAt: string;
3260
+ /** Format: date-time */
3261
+ updatedAt: string;
3262
+ };
3263
+ };
3264
+ };
3265
+ };
3266
+ /** @description Invalid input */
3267
+ 400: {
3268
+ headers: {
3269
+ [name: string]: unknown;
3270
+ };
3271
+ content: {
3272
+ "application/json": {
3273
+ error: string;
3274
+ message?: string;
3275
+ details?: unknown;
3276
+ };
3277
+ };
3278
+ };
3279
+ /** @description Missing or bad key */
3280
+ 401: {
3281
+ headers: {
3282
+ [name: string]: unknown;
3283
+ };
3284
+ content?: never;
3285
+ };
3286
+ /** @description Key lacks the permission */
3287
+ 403: {
3288
+ headers: {
3289
+ [name: string]: unknown;
3290
+ };
3291
+ content?: never;
3292
+ };
3293
+ /** @description Not found */
3294
+ 404: {
3295
+ headers: {
3296
+ [name: string]: unknown;
3297
+ };
3298
+ content?: never;
3299
+ };
3300
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3301
+ 429: {
3302
+ headers: {
3303
+ [name: string]: unknown;
3304
+ };
3305
+ content?: never;
3306
+ };
3307
+ };
3308
+ };
3309
+ deleteSegmentsId: {
3310
+ parameters: {
3311
+ query?: never;
3312
+ header?: never;
3313
+ path: {
3314
+ id: string;
3315
+ };
3316
+ cookie?: never;
3317
+ };
3318
+ requestBody?: never;
3319
+ responses: {
3320
+ /** @description OK */
3321
+ 200: {
3322
+ headers: {
3323
+ [name: string]: unknown;
3324
+ };
3325
+ content: {
3326
+ "application/json": {
3327
+ ok: boolean;
3328
+ };
3329
+ };
3330
+ };
3331
+ /** @description Invalid input */
3332
+ 400: {
3333
+ headers: {
3334
+ [name: string]: unknown;
3335
+ };
3336
+ content: {
3337
+ "application/json": {
3338
+ error: string;
3339
+ message?: string;
3340
+ details?: unknown;
3341
+ };
3342
+ };
3343
+ };
3344
+ /** @description Missing or bad key */
3345
+ 401: {
3346
+ headers: {
3347
+ [name: string]: unknown;
3348
+ };
3349
+ content?: never;
3350
+ };
3351
+ /** @description Key lacks the permission */
3352
+ 403: {
3353
+ headers: {
3354
+ [name: string]: unknown;
3355
+ };
3356
+ content?: never;
3357
+ };
3358
+ /** @description Not found */
3359
+ 404: {
3360
+ headers: {
3361
+ [name: string]: unknown;
3362
+ };
3363
+ content?: never;
3364
+ };
3365
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3366
+ 429: {
3367
+ headers: {
3368
+ [name: string]: unknown;
3369
+ };
3370
+ content?: never;
3371
+ };
3372
+ };
3373
+ };
3374
+ patchSegmentsId: {
3375
+ parameters: {
3376
+ query?: never;
3377
+ header?: never;
3378
+ path: {
3379
+ id: string;
3380
+ };
3381
+ cookie?: never;
3382
+ };
3383
+ requestBody: {
3384
+ content: {
3385
+ "application/json": {
3386
+ name?: string;
3387
+ description?: string | null;
3388
+ rules?: {
3389
+ /**
3390
+ * @default all
3391
+ * @enum {string}
3392
+ */
3393
+ match?: "all" | "any";
3394
+ conditions: ({
3395
+ field: string;
3396
+ /** @enum {string} */
3397
+ op: "eq" | "neq" | "contains" | "starts_with";
3398
+ value: string;
3399
+ } | {
3400
+ field: string;
3401
+ /** @enum {string} */
3402
+ op: "gt" | "gte" | "lt" | "lte";
3403
+ value: number;
3404
+ } | {
3405
+ field: string;
3406
+ /** @enum {string} */
3407
+ op: "in" | "not_in";
3408
+ value: string[];
3409
+ } | {
3410
+ field: string;
3411
+ /** @enum {string} */
3412
+ op: "exists" | "not_exists" | "is_true" | "is_false";
3413
+ } | {
3414
+ field: string;
3415
+ /** @enum {string} */
3416
+ op: "before" | "after" | "within_days" | "not_within_days";
3417
+ value: string | number;
3418
+ } | {
3419
+ field: string;
3420
+ /** @enum {string} */
3421
+ op: "at_least" | "at_most";
3422
+ value: number;
3423
+ /** @default 30 */
3424
+ days?: number;
3425
+ })[];
3426
+ };
3427
+ };
3428
+ };
3429
+ };
3430
+ responses: {
3431
+ /** @description OK */
3432
+ 200: {
3433
+ headers: {
3434
+ [name: string]: unknown;
3435
+ };
3436
+ content: {
3437
+ "application/json": {
3438
+ segment: {
3439
+ /** Format: uuid */
3440
+ id: string;
3441
+ name: string;
3442
+ description: string | null;
3443
+ rules: {
3444
+ /** @enum {string} */
3445
+ match: "all" | "any";
3446
+ conditions: {
3447
+ [key: string]: unknown;
3448
+ }[];
3449
+ };
3450
+ count?: number;
3451
+ mrr?: number;
3452
+ summary?: string;
3453
+ /** Format: date-time */
3454
+ createdAt: string;
3455
+ /** Format: date-time */
3456
+ updatedAt: string;
3457
+ };
3458
+ };
3459
+ };
3460
+ };
3461
+ /** @description Invalid input */
3462
+ 400: {
3463
+ headers: {
3464
+ [name: string]: unknown;
3465
+ };
3466
+ content: {
3467
+ "application/json": {
3468
+ error: string;
3469
+ message?: string;
3470
+ details?: unknown;
3471
+ };
3472
+ };
3473
+ };
3474
+ /** @description Missing or bad key */
3475
+ 401: {
3476
+ headers: {
3477
+ [name: string]: unknown;
3478
+ };
3479
+ content?: never;
3480
+ };
3481
+ /** @description Key lacks the permission */
3482
+ 403: {
3483
+ headers: {
3484
+ [name: string]: unknown;
3485
+ };
3486
+ content?: never;
3487
+ };
3488
+ /** @description Not found */
3489
+ 404: {
3490
+ headers: {
3491
+ [name: string]: unknown;
3492
+ };
3493
+ content?: never;
3494
+ };
3495
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3496
+ 429: {
3497
+ headers: {
3498
+ [name: string]: unknown;
3499
+ };
3500
+ content?: never;
3501
+ };
3502
+ };
3503
+ };
3504
+ postTrack: {
3505
+ parameters: {
3506
+ query?: never;
3507
+ header?: never;
3508
+ path?: never;
3509
+ cookie?: never;
3510
+ };
3511
+ requestBody: {
3512
+ content: {
3513
+ "application/json": {
3514
+ userId: string;
3515
+ name: string;
3516
+ properties?: {
3517
+ [key: string]: string | number | boolean | null;
3518
+ };
3519
+ };
3520
+ };
3521
+ };
3522
+ responses: {
3523
+ /** @description OK */
3524
+ 200: {
3525
+ headers: {
3526
+ [name: string]: unknown;
3527
+ };
3528
+ content: {
3529
+ "application/json": {
3530
+ ok: boolean;
3531
+ };
3532
+ };
3533
+ };
3534
+ /** @description Invalid input */
3535
+ 400: {
3536
+ headers: {
3537
+ [name: string]: unknown;
3538
+ };
3539
+ content: {
3540
+ "application/json": {
3541
+ error: string;
3542
+ message?: string;
3543
+ details?: unknown;
3544
+ };
3545
+ };
3546
+ };
3547
+ /** @description Missing or bad key */
3548
+ 401: {
3549
+ headers: {
3550
+ [name: string]: unknown;
3551
+ };
3552
+ content?: never;
3553
+ };
3554
+ /** @description Key lacks the permission */
3555
+ 403: {
3556
+ headers: {
3557
+ [name: string]: unknown;
3558
+ };
3559
+ content?: never;
3560
+ };
3561
+ /** @description Not found */
3562
+ 404: {
3563
+ headers: {
3564
+ [name: string]: unknown;
3565
+ };
3566
+ content?: never;
3567
+ };
3568
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3569
+ 429: {
3570
+ headers: {
3571
+ [name: string]: unknown;
3572
+ };
3573
+ content?: never;
3574
+ };
3575
+ };
3576
+ };
3577
+ postHelpCollections: {
3578
+ parameters: {
3579
+ query?: never;
3580
+ header?: never;
3581
+ path?: never;
3582
+ cookie?: never;
3583
+ };
3584
+ requestBody: {
3585
+ content: {
3586
+ "application/json": {
3587
+ name: string;
3588
+ description?: string | null;
3589
+ icon?: string | null;
3590
+ parentId?: string | null;
3591
+ position?: number;
3592
+ };
3593
+ };
3594
+ };
3595
+ responses: {
3596
+ /** @description OK */
3597
+ 201: {
3598
+ headers: {
3599
+ [name: string]: unknown;
3600
+ };
3601
+ content: {
3602
+ "application/json": {
3603
+ collection: {
3604
+ /** Format: uuid */
3605
+ id: string;
3606
+ parentId: string | null;
3607
+ slug: string;
3608
+ name: string;
3609
+ description: string | null;
3610
+ icon: string | null;
3611
+ position: number;
3612
+ /** Format: date-time */
3613
+ createdAt: string;
3614
+ /** Format: date-time */
3615
+ updatedAt: string;
3616
+ };
3617
+ };
3618
+ };
3619
+ };
3620
+ /** @description Invalid input */
3621
+ 400: {
3622
+ headers: {
3623
+ [name: string]: unknown;
3624
+ };
3625
+ content: {
3626
+ "application/json": {
3627
+ error: string;
3628
+ message?: string;
3629
+ details?: unknown;
3630
+ };
3631
+ };
3632
+ };
3633
+ /** @description Missing or bad key */
3634
+ 401: {
3635
+ headers: {
3636
+ [name: string]: unknown;
3637
+ };
3638
+ content?: never;
3639
+ };
3640
+ /** @description Key lacks the permission */
3641
+ 403: {
3642
+ headers: {
3643
+ [name: string]: unknown;
3644
+ };
3645
+ content?: never;
3646
+ };
3647
+ /** @description Not found */
3648
+ 404: {
3649
+ headers: {
3650
+ [name: string]: unknown;
3651
+ };
3652
+ content?: never;
3653
+ };
3654
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3655
+ 429: {
3656
+ headers: {
3657
+ [name: string]: unknown;
3658
+ };
3659
+ content?: never;
3660
+ };
3661
+ };
3662
+ };
3663
+ deleteHelpCollectionsId: {
3664
+ parameters: {
3665
+ query?: never;
3666
+ header?: never;
3667
+ path: {
3668
+ id: string;
3669
+ };
3670
+ cookie?: never;
3671
+ };
3672
+ requestBody?: never;
3673
+ responses: {
3674
+ /** @description OK */
3675
+ 200: {
3676
+ headers: {
3677
+ [name: string]: unknown;
3678
+ };
3679
+ content: {
3680
+ "application/json": {
3681
+ ok: boolean;
3682
+ };
3683
+ };
3684
+ };
3685
+ /** @description Invalid input */
3686
+ 400: {
3687
+ headers: {
3688
+ [name: string]: unknown;
3689
+ };
3690
+ content: {
3691
+ "application/json": {
3692
+ error: string;
3693
+ message?: string;
3694
+ details?: unknown;
3695
+ };
3696
+ };
3697
+ };
3698
+ /** @description Missing or bad key */
3699
+ 401: {
3700
+ headers: {
3701
+ [name: string]: unknown;
3702
+ };
3703
+ content?: never;
3704
+ };
3705
+ /** @description Key lacks the permission */
3706
+ 403: {
3707
+ headers: {
3708
+ [name: string]: unknown;
3709
+ };
3710
+ content?: never;
3711
+ };
3712
+ /** @description Not found */
3713
+ 404: {
3714
+ headers: {
3715
+ [name: string]: unknown;
3716
+ };
3717
+ content?: never;
3718
+ };
3719
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3720
+ 429: {
3721
+ headers: {
3722
+ [name: string]: unknown;
3723
+ };
3724
+ content?: never;
3725
+ };
3726
+ };
3727
+ };
3728
+ patchHelpCollectionsId: {
3729
+ parameters: {
3730
+ query?: never;
3731
+ header?: never;
3732
+ path: {
3733
+ id: string;
3734
+ };
3735
+ cookie?: never;
3736
+ };
3737
+ requestBody: {
3738
+ content: {
3739
+ "application/json": {
3740
+ name?: string;
3741
+ description?: string | null;
3742
+ icon?: string | null;
3743
+ parentId?: string | null;
3744
+ position?: number;
3745
+ };
3746
+ };
3747
+ };
3748
+ responses: {
3749
+ /** @description OK */
3750
+ 200: {
3751
+ headers: {
3752
+ [name: string]: unknown;
3753
+ };
3754
+ content: {
3755
+ "application/json": {
3756
+ collection: {
3757
+ /** Format: uuid */
3758
+ id: string;
3759
+ parentId: string | null;
3760
+ slug: string;
3761
+ name: string;
3762
+ description: string | null;
3763
+ icon: string | null;
3764
+ position: number;
3765
+ /** Format: date-time */
3766
+ createdAt: string;
3767
+ /** Format: date-time */
3768
+ updatedAt: string;
3769
+ };
3770
+ };
3771
+ };
3772
+ };
3773
+ /** @description Invalid input */
3774
+ 400: {
3775
+ headers: {
3776
+ [name: string]: unknown;
3777
+ };
3778
+ content: {
3779
+ "application/json": {
3780
+ error: string;
3781
+ message?: string;
3782
+ details?: unknown;
3783
+ };
3784
+ };
3785
+ };
3786
+ /** @description Missing or bad key */
3787
+ 401: {
3788
+ headers: {
3789
+ [name: string]: unknown;
3790
+ };
3791
+ content?: never;
3792
+ };
3793
+ /** @description Key lacks the permission */
3794
+ 403: {
3795
+ headers: {
3796
+ [name: string]: unknown;
3797
+ };
3798
+ content?: never;
3799
+ };
3800
+ /** @description Not found */
3801
+ 404: {
3802
+ headers: {
3803
+ [name: string]: unknown;
3804
+ };
3805
+ content?: never;
3806
+ };
3807
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3808
+ 429: {
3809
+ headers: {
3810
+ [name: string]: unknown;
3811
+ };
3812
+ content?: never;
3813
+ };
3814
+ };
3815
+ };
3816
+ getHelpArticles: {
3817
+ parameters: {
3818
+ query?: {
3819
+ q?: string;
3820
+ collection?: string;
3821
+ status?: "draft" | "published";
3822
+ };
3823
+ header?: never;
3824
+ path?: never;
3825
+ cookie?: never;
3826
+ };
3827
+ requestBody?: never;
3828
+ responses: {
3829
+ /** @description OK */
3830
+ 200: {
3831
+ headers: {
3832
+ [name: string]: unknown;
3833
+ };
3834
+ content: {
3835
+ "application/json": {
3836
+ articles: {
3837
+ /** Format: uuid */
3838
+ id?: string;
3839
+ collectionId?: string | null;
3840
+ slug?: string;
3841
+ title?: string;
3842
+ body?: string;
3843
+ excerpt?: string | null;
3844
+ /** @enum {string} */
3845
+ status?: "draft" | "published";
3846
+ /** @enum {string} */
3847
+ access?: "public" | "identified" | "segment";
3848
+ segmentId?: string | null;
3849
+ position?: number;
3850
+ publishedAt?: string | null;
3851
+ /** Format: date-time */
3852
+ createdAt?: string;
3853
+ /** Format: date-time */
3854
+ updatedAt?: string;
3855
+ }[];
3856
+ search: boolean;
3857
+ };
3858
+ };
3859
+ };
3860
+ /** @description Invalid input */
3861
+ 400: {
3862
+ headers: {
3863
+ [name: string]: unknown;
3864
+ };
3865
+ content: {
3866
+ "application/json": {
3867
+ error: string;
3868
+ message?: string;
3869
+ details?: unknown;
3870
+ };
3871
+ };
3872
+ };
3873
+ /** @description Missing or bad key */
3874
+ 401: {
3875
+ headers: {
3876
+ [name: string]: unknown;
3877
+ };
3878
+ content?: never;
3879
+ };
3880
+ /** @description Key lacks the permission */
3881
+ 403: {
3882
+ headers: {
3883
+ [name: string]: unknown;
3884
+ };
3885
+ content?: never;
3886
+ };
3887
+ /** @description Not found */
3888
+ 404: {
3889
+ headers: {
3890
+ [name: string]: unknown;
3891
+ };
3892
+ content?: never;
3893
+ };
3894
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3895
+ 429: {
3896
+ headers: {
3897
+ [name: string]: unknown;
3898
+ };
3899
+ content?: never;
3900
+ };
3901
+ };
3902
+ };
3903
+ postHelpArticles: {
3904
+ parameters: {
3905
+ query?: never;
3906
+ header?: {
3907
+ /** @description Retries with the same key replay the first response for 24 hours. */
3908
+ "Idempotency-Key"?: string;
3909
+ };
3910
+ path?: never;
3911
+ cookie?: never;
3912
+ };
3913
+ requestBody: {
3914
+ content: {
3915
+ "application/json": {
3916
+ title: string;
3917
+ /** @default */
3918
+ body?: string;
3919
+ collectionId?: string | null;
3920
+ /**
3921
+ * @default public
3922
+ * @enum {string}
3923
+ */
3924
+ access?: "public" | "identified" | "segment";
3925
+ segmentId?: string | null;
3926
+ position?: number;
3927
+ };
3928
+ };
3929
+ };
3930
+ responses: {
3931
+ /** @description OK */
3932
+ 201: {
3933
+ headers: {
3934
+ [name: string]: unknown;
3935
+ };
3936
+ content: {
3937
+ "application/json": {
3938
+ article: {
3939
+ /** Format: uuid */
3940
+ id: string;
3941
+ collectionId: string | null;
3942
+ slug: string;
3943
+ title: string;
3944
+ body: string;
3945
+ excerpt: string | null;
3946
+ /** @enum {string} */
3947
+ status: "draft" | "published";
3948
+ /** @enum {string} */
3949
+ access: "public" | "identified" | "segment";
3950
+ segmentId: string | null;
3951
+ position: number;
3952
+ publishedAt: string | null;
3953
+ /** Format: date-time */
3954
+ createdAt: string;
3955
+ /** Format: date-time */
3956
+ updatedAt: string;
3957
+ };
3958
+ };
3959
+ };
3960
+ };
3961
+ /** @description Invalid input */
3962
+ 400: {
3963
+ headers: {
3964
+ [name: string]: unknown;
3965
+ };
3966
+ content: {
3967
+ "application/json": {
3968
+ error: string;
3969
+ message?: string;
3970
+ details?: unknown;
3971
+ };
3972
+ };
3973
+ };
3974
+ /** @description Missing or bad key */
3975
+ 401: {
3976
+ headers: {
3977
+ [name: string]: unknown;
3978
+ };
3979
+ content?: never;
3980
+ };
3981
+ /** @description Key lacks the permission */
3982
+ 403: {
3983
+ headers: {
3984
+ [name: string]: unknown;
3985
+ };
3986
+ content?: never;
3987
+ };
3988
+ /** @description Not found */
3989
+ 404: {
3990
+ headers: {
3991
+ [name: string]: unknown;
3992
+ };
3993
+ content?: never;
3994
+ };
3995
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
3996
+ 429: {
3997
+ headers: {
3998
+ [name: string]: unknown;
3999
+ };
4000
+ content?: never;
4001
+ };
4002
+ };
4003
+ };
4004
+ getHelpArticlesId: {
4005
+ parameters: {
4006
+ query?: never;
4007
+ header?: never;
4008
+ path: {
4009
+ id: string;
4010
+ };
4011
+ cookie?: never;
4012
+ };
4013
+ requestBody?: never;
4014
+ responses: {
4015
+ /** @description OK */
4016
+ 200: {
4017
+ headers: {
4018
+ [name: string]: unknown;
4019
+ };
4020
+ content: {
4021
+ "application/json": {
4022
+ article: {
4023
+ /** Format: uuid */
4024
+ id: string;
4025
+ collectionId: string | null;
4026
+ slug: string;
4027
+ title: string;
4028
+ body: string;
4029
+ excerpt: string | null;
4030
+ /** @enum {string} */
4031
+ status: "draft" | "published";
4032
+ /** @enum {string} */
4033
+ access: "public" | "identified" | "segment";
4034
+ segmentId: string | null;
4035
+ position: number;
4036
+ publishedAt: string | null;
4037
+ /** Format: date-time */
4038
+ createdAt: string;
4039
+ /** Format: date-time */
4040
+ updatedAt: string;
4041
+ };
4042
+ stats: {
4043
+ views: number;
4044
+ helpful: number;
4045
+ unhelpful: number;
4046
+ };
4047
+ versions: {
4048
+ [key: string]: unknown;
4049
+ }[];
4050
+ comments: {
4051
+ [key: string]: unknown;
4052
+ }[];
4053
+ };
4054
+ };
4055
+ };
4056
+ /** @description Invalid input */
4057
+ 400: {
4058
+ headers: {
4059
+ [name: string]: unknown;
4060
+ };
4061
+ content: {
4062
+ "application/json": {
4063
+ error: string;
4064
+ message?: string;
4065
+ details?: unknown;
4066
+ };
4067
+ };
4068
+ };
4069
+ /** @description Missing or bad key */
4070
+ 401: {
4071
+ headers: {
4072
+ [name: string]: unknown;
4073
+ };
4074
+ content?: never;
4075
+ };
4076
+ /** @description Key lacks the permission */
4077
+ 403: {
4078
+ headers: {
4079
+ [name: string]: unknown;
4080
+ };
4081
+ content?: never;
4082
+ };
4083
+ /** @description Not found */
4084
+ 404: {
4085
+ headers: {
4086
+ [name: string]: unknown;
4087
+ };
4088
+ content?: never;
4089
+ };
4090
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4091
+ 429: {
4092
+ headers: {
4093
+ [name: string]: unknown;
4094
+ };
4095
+ content?: never;
4096
+ };
4097
+ };
4098
+ };
4099
+ deleteHelpArticlesId: {
4100
+ parameters: {
4101
+ query?: never;
4102
+ header?: never;
4103
+ path: {
4104
+ id: string;
4105
+ };
4106
+ cookie?: never;
4107
+ };
4108
+ requestBody?: never;
4109
+ responses: {
4110
+ /** @description OK */
4111
+ 200: {
4112
+ headers: {
4113
+ [name: string]: unknown;
4114
+ };
4115
+ content: {
4116
+ "application/json": {
4117
+ ok: boolean;
4118
+ };
4119
+ };
4120
+ };
4121
+ /** @description Invalid input */
4122
+ 400: {
4123
+ headers: {
4124
+ [name: string]: unknown;
4125
+ };
4126
+ content: {
4127
+ "application/json": {
4128
+ error: string;
4129
+ message?: string;
4130
+ details?: unknown;
4131
+ };
4132
+ };
4133
+ };
4134
+ /** @description Missing or bad key */
4135
+ 401: {
4136
+ headers: {
4137
+ [name: string]: unknown;
4138
+ };
4139
+ content?: never;
4140
+ };
4141
+ /** @description Key lacks the permission */
4142
+ 403: {
4143
+ headers: {
4144
+ [name: string]: unknown;
4145
+ };
4146
+ content?: never;
4147
+ };
4148
+ /** @description Not found */
4149
+ 404: {
4150
+ headers: {
4151
+ [name: string]: unknown;
4152
+ };
4153
+ content?: never;
4154
+ };
4155
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4156
+ 429: {
4157
+ headers: {
4158
+ [name: string]: unknown;
4159
+ };
4160
+ content?: never;
4161
+ };
4162
+ };
4163
+ };
4164
+ patchHelpArticlesId: {
4165
+ parameters: {
4166
+ query?: never;
4167
+ header?: never;
4168
+ path: {
4169
+ id: string;
4170
+ };
4171
+ cookie?: never;
4172
+ };
4173
+ requestBody: {
4174
+ content: {
4175
+ "application/json": {
4176
+ title?: string;
4177
+ body?: string;
4178
+ collectionId?: string | null;
4179
+ /** @enum {string} */
4180
+ access?: "public" | "identified" | "segment";
4181
+ segmentId?: string | null;
4182
+ position?: number;
4183
+ /** @enum {string} */
4184
+ status?: "draft" | "published";
4185
+ };
4186
+ };
4187
+ };
4188
+ responses: {
4189
+ /** @description OK */
4190
+ 200: {
4191
+ headers: {
4192
+ [name: string]: unknown;
4193
+ };
4194
+ content: {
4195
+ "application/json": {
4196
+ article: {
4197
+ /** Format: uuid */
4198
+ id: string;
4199
+ collectionId: string | null;
4200
+ slug: string;
4201
+ title: string;
4202
+ body: string;
4203
+ excerpt: string | null;
4204
+ /** @enum {string} */
4205
+ status: "draft" | "published";
4206
+ /** @enum {string} */
4207
+ access: "public" | "identified" | "segment";
4208
+ segmentId: string | null;
4209
+ position: number;
4210
+ publishedAt: string | null;
4211
+ /** Format: date-time */
4212
+ createdAt: string;
4213
+ /** Format: date-time */
4214
+ updatedAt: string;
4215
+ };
4216
+ };
4217
+ };
4218
+ };
4219
+ /** @description Invalid input */
4220
+ 400: {
4221
+ headers: {
4222
+ [name: string]: unknown;
4223
+ };
4224
+ content: {
4225
+ "application/json": {
4226
+ error: string;
4227
+ message?: string;
4228
+ details?: unknown;
4229
+ };
4230
+ };
4231
+ };
4232
+ /** @description Missing or bad key */
4233
+ 401: {
4234
+ headers: {
4235
+ [name: string]: unknown;
4236
+ };
4237
+ content?: never;
4238
+ };
4239
+ /** @description Key lacks the permission */
4240
+ 403: {
4241
+ headers: {
4242
+ [name: string]: unknown;
4243
+ };
4244
+ content?: never;
4245
+ };
4246
+ /** @description Not found */
4247
+ 404: {
4248
+ headers: {
4249
+ [name: string]: unknown;
4250
+ };
4251
+ content?: never;
4252
+ };
4253
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4254
+ 429: {
4255
+ headers: {
4256
+ [name: string]: unknown;
4257
+ };
4258
+ content?: never;
4259
+ };
4260
+ };
4261
+ };
4262
+ getWebhooks: {
4263
+ parameters: {
4264
+ query?: never;
4265
+ header?: never;
4266
+ path?: never;
4267
+ cookie?: never;
4268
+ };
4269
+ requestBody?: never;
4270
+ responses: {
4271
+ /** @description OK */
4272
+ 200: {
4273
+ headers: {
4274
+ [name: string]: unknown;
4275
+ };
4276
+ content: {
4277
+ "application/json": {
4278
+ webhooks: {
4279
+ /** Format: uuid */
4280
+ id: string;
4281
+ url: string;
4282
+ description: string | null;
4283
+ events: string[];
4284
+ active: boolean;
4285
+ /** Format: date-time */
4286
+ createdAt: string;
4287
+ /** Format: date-time */
4288
+ updatedAt: string;
4289
+ /** @description only on create and rotate */
4290
+ secret?: string;
4291
+ }[];
4292
+ events: string[];
4293
+ };
4294
+ };
4295
+ };
4296
+ /** @description Invalid input */
4297
+ 400: {
4298
+ headers: {
4299
+ [name: string]: unknown;
4300
+ };
4301
+ content: {
4302
+ "application/json": {
4303
+ error: string;
4304
+ message?: string;
4305
+ details?: unknown;
4306
+ };
4307
+ };
4308
+ };
4309
+ /** @description Missing or bad key */
4310
+ 401: {
4311
+ headers: {
4312
+ [name: string]: unknown;
4313
+ };
4314
+ content?: never;
4315
+ };
4316
+ /** @description Key lacks the permission */
4317
+ 403: {
4318
+ headers: {
4319
+ [name: string]: unknown;
4320
+ };
4321
+ content?: never;
4322
+ };
4323
+ /** @description Not found */
4324
+ 404: {
4325
+ headers: {
4326
+ [name: string]: unknown;
4327
+ };
4328
+ content?: never;
4329
+ };
4330
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4331
+ 429: {
4332
+ headers: {
4333
+ [name: string]: unknown;
4334
+ };
4335
+ content?: never;
4336
+ };
4337
+ };
4338
+ };
4339
+ postWebhooks: {
4340
+ parameters: {
4341
+ query?: never;
4342
+ header?: never;
4343
+ path?: never;
4344
+ cookie?: never;
4345
+ };
4346
+ requestBody: {
4347
+ content: {
4348
+ "application/json": {
4349
+ url: string;
4350
+ description?: string | null;
4351
+ /** @default [] */
4352
+ events?: ("post.created" | "post.status_changed" | "post.merged" | "post.deleted" | "vote.added" | "vote.removed" | "comment.created" | "changelog.published" | "end_user.identified" | "company.upserted" | "end_user.deleted" | "moderation.decided" | "member.joined" | "conversation.created" | "conversation.updated" | "message.created")[];
4353
+ active?: boolean;
4354
+ };
4355
+ };
4356
+ };
4357
+ responses: {
4358
+ /** @description OK */
4359
+ 201: {
4360
+ headers: {
4361
+ [name: string]: unknown;
4362
+ };
4363
+ content: {
4364
+ "application/json": {
4365
+ webhook: {
4366
+ /** Format: uuid */
4367
+ id: string;
4368
+ url: string;
4369
+ description: string | null;
4370
+ events: string[];
4371
+ active: boolean;
4372
+ /** Format: date-time */
4373
+ createdAt: string;
4374
+ /** Format: date-time */
4375
+ updatedAt: string;
4376
+ /** @description only on create and rotate */
4377
+ secret?: string;
4378
+ };
4379
+ };
4380
+ };
4381
+ };
4382
+ /** @description Invalid input */
4383
+ 400: {
4384
+ headers: {
4385
+ [name: string]: unknown;
4386
+ };
4387
+ content: {
4388
+ "application/json": {
4389
+ error: string;
4390
+ message?: string;
4391
+ details?: unknown;
4392
+ };
4393
+ };
4394
+ };
4395
+ /** @description Missing or bad key */
4396
+ 401: {
4397
+ headers: {
4398
+ [name: string]: unknown;
4399
+ };
4400
+ content?: never;
4401
+ };
4402
+ /** @description Key lacks the permission */
4403
+ 403: {
4404
+ headers: {
4405
+ [name: string]: unknown;
4406
+ };
4407
+ content?: never;
4408
+ };
4409
+ /** @description Not found */
4410
+ 404: {
4411
+ headers: {
4412
+ [name: string]: unknown;
4413
+ };
4414
+ content?: never;
4415
+ };
4416
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4417
+ 429: {
4418
+ headers: {
4419
+ [name: string]: unknown;
4420
+ };
4421
+ content?: never;
4422
+ };
4423
+ };
4424
+ };
4425
+ deleteWebhooksId: {
4426
+ parameters: {
4427
+ query?: never;
4428
+ header?: never;
4429
+ path: {
4430
+ id: string;
4431
+ };
4432
+ cookie?: never;
4433
+ };
4434
+ requestBody?: never;
4435
+ responses: {
4436
+ /** @description OK */
4437
+ 200: {
4438
+ headers: {
4439
+ [name: string]: unknown;
4440
+ };
4441
+ content: {
4442
+ "application/json": {
4443
+ ok: boolean;
4444
+ };
4445
+ };
4446
+ };
4447
+ /** @description Invalid input */
4448
+ 400: {
4449
+ headers: {
4450
+ [name: string]: unknown;
4451
+ };
4452
+ content: {
4453
+ "application/json": {
4454
+ error: string;
4455
+ message?: string;
4456
+ details?: unknown;
4457
+ };
4458
+ };
4459
+ };
4460
+ /** @description Missing or bad key */
4461
+ 401: {
4462
+ headers: {
4463
+ [name: string]: unknown;
4464
+ };
4465
+ content?: never;
4466
+ };
4467
+ /** @description Key lacks the permission */
4468
+ 403: {
4469
+ headers: {
4470
+ [name: string]: unknown;
4471
+ };
4472
+ content?: never;
4473
+ };
4474
+ /** @description Not found */
4475
+ 404: {
4476
+ headers: {
4477
+ [name: string]: unknown;
4478
+ };
4479
+ content?: never;
4480
+ };
4481
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4482
+ 429: {
4483
+ headers: {
4484
+ [name: string]: unknown;
4485
+ };
4486
+ content?: never;
4487
+ };
4488
+ };
4489
+ };
4490
+ patchWebhooksId: {
4491
+ parameters: {
4492
+ query?: never;
4493
+ header?: never;
4494
+ path: {
4495
+ id: string;
4496
+ };
4497
+ cookie?: never;
4498
+ };
4499
+ requestBody: {
4500
+ content: {
4501
+ "application/json": {
4502
+ url?: string;
4503
+ description?: string | null;
4504
+ /** @default [] */
4505
+ events?: ("post.created" | "post.status_changed" | "post.merged" | "post.deleted" | "vote.added" | "vote.removed" | "comment.created" | "changelog.published" | "end_user.identified" | "company.upserted" | "end_user.deleted" | "moderation.decided" | "member.joined" | "conversation.created" | "conversation.updated" | "message.created")[];
4506
+ active?: boolean;
4507
+ };
4508
+ };
4509
+ };
4510
+ responses: {
4511
+ /** @description OK */
4512
+ 200: {
4513
+ headers: {
4514
+ [name: string]: unknown;
4515
+ };
4516
+ content: {
4517
+ "application/json": {
4518
+ webhook: {
4519
+ /** Format: uuid */
4520
+ id: string;
4521
+ url: string;
4522
+ description: string | null;
4523
+ events: string[];
4524
+ active: boolean;
4525
+ /** Format: date-time */
4526
+ createdAt: string;
4527
+ /** Format: date-time */
4528
+ updatedAt: string;
4529
+ /** @description only on create and rotate */
4530
+ secret?: string;
4531
+ };
4532
+ };
4533
+ };
4534
+ };
4535
+ /** @description Invalid input */
4536
+ 400: {
4537
+ headers: {
4538
+ [name: string]: unknown;
4539
+ };
4540
+ content: {
4541
+ "application/json": {
4542
+ error: string;
4543
+ message?: string;
4544
+ details?: unknown;
4545
+ };
4546
+ };
4547
+ };
4548
+ /** @description Missing or bad key */
4549
+ 401: {
4550
+ headers: {
4551
+ [name: string]: unknown;
4552
+ };
4553
+ content?: never;
4554
+ };
4555
+ /** @description Key lacks the permission */
4556
+ 403: {
4557
+ headers: {
4558
+ [name: string]: unknown;
4559
+ };
4560
+ content?: never;
4561
+ };
4562
+ /** @description Not found */
4563
+ 404: {
4564
+ headers: {
4565
+ [name: string]: unknown;
4566
+ };
4567
+ content?: never;
4568
+ };
4569
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4570
+ 429: {
4571
+ headers: {
4572
+ [name: string]: unknown;
4573
+ };
4574
+ content?: never;
4575
+ };
4576
+ };
4577
+ };
4578
+ postWebhooksIdRotate: {
4579
+ parameters: {
4580
+ query?: never;
4581
+ header?: never;
4582
+ path: {
4583
+ id: string;
4584
+ };
4585
+ cookie?: never;
4586
+ };
4587
+ requestBody?: never;
4588
+ responses: {
4589
+ /** @description OK */
4590
+ 200: {
4591
+ headers: {
4592
+ [name: string]: unknown;
4593
+ };
4594
+ content: {
4595
+ "application/json": {
4596
+ secret: string;
4597
+ };
4598
+ };
4599
+ };
4600
+ /** @description Invalid input */
4601
+ 400: {
4602
+ headers: {
4603
+ [name: string]: unknown;
4604
+ };
4605
+ content: {
4606
+ "application/json": {
4607
+ error: string;
4608
+ message?: string;
4609
+ details?: unknown;
4610
+ };
4611
+ };
4612
+ };
4613
+ /** @description Missing or bad key */
4614
+ 401: {
4615
+ headers: {
4616
+ [name: string]: unknown;
4617
+ };
4618
+ content?: never;
4619
+ };
4620
+ /** @description Key lacks the permission */
4621
+ 403: {
4622
+ headers: {
4623
+ [name: string]: unknown;
4624
+ };
4625
+ content?: never;
4626
+ };
4627
+ /** @description Not found */
4628
+ 404: {
4629
+ headers: {
4630
+ [name: string]: unknown;
4631
+ };
4632
+ content?: never;
4633
+ };
4634
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4635
+ 429: {
4636
+ headers: {
4637
+ [name: string]: unknown;
4638
+ };
4639
+ content?: never;
4640
+ };
4641
+ };
4642
+ };
4643
+ getWebhooksIdDeliveries: {
4644
+ parameters: {
4645
+ query?: {
4646
+ limit?: number;
4647
+ };
4648
+ header?: never;
4649
+ path: {
4650
+ id: string;
4651
+ };
4652
+ cookie?: never;
4653
+ };
4654
+ requestBody?: never;
4655
+ responses: {
4656
+ /** @description OK */
4657
+ 200: {
4658
+ headers: {
4659
+ [name: string]: unknown;
4660
+ };
4661
+ content: {
4662
+ "application/json": {
4663
+ deliveries: {
4664
+ /** Format: uuid */
4665
+ id: string;
4666
+ /** Format: uuid */
4667
+ webhookId: string;
4668
+ event: string;
4669
+ payload: {
4670
+ [key: string]: unknown;
4671
+ };
4672
+ /** @enum {string} */
4673
+ status: "pending" | "success" | "failed";
4674
+ attempts: number;
4675
+ responseStatus: number | null;
4676
+ responseBody: string | null;
4677
+ lastError: string | null;
4678
+ deliveredAt: string | null;
4679
+ /** Format: date-time */
4680
+ createdAt: string;
4681
+ }[];
4682
+ };
4683
+ };
4684
+ };
4685
+ /** @description Invalid input */
4686
+ 400: {
4687
+ headers: {
4688
+ [name: string]: unknown;
4689
+ };
4690
+ content: {
4691
+ "application/json": {
4692
+ error: string;
4693
+ message?: string;
4694
+ details?: unknown;
4695
+ };
4696
+ };
4697
+ };
4698
+ /** @description Missing or bad key */
4699
+ 401: {
4700
+ headers: {
4701
+ [name: string]: unknown;
4702
+ };
4703
+ content?: never;
4704
+ };
4705
+ /** @description Key lacks the permission */
4706
+ 403: {
4707
+ headers: {
4708
+ [name: string]: unknown;
4709
+ };
4710
+ content?: never;
4711
+ };
4712
+ /** @description Not found */
4713
+ 404: {
4714
+ headers: {
4715
+ [name: string]: unknown;
4716
+ };
4717
+ content?: never;
4718
+ };
4719
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4720
+ 429: {
4721
+ headers: {
4722
+ [name: string]: unknown;
4723
+ };
4724
+ content?: never;
4725
+ };
4726
+ };
4727
+ };
4728
+ postWebhooksIdDeliveriesDeliveryIdReplay: {
4729
+ parameters: {
4730
+ query?: never;
4731
+ header?: never;
4732
+ path: {
4733
+ id: string;
4734
+ deliveryId: string;
4735
+ };
4736
+ cookie?: never;
4737
+ };
4738
+ requestBody?: never;
4739
+ responses: {
4740
+ /** @description OK */
4741
+ 202: {
4742
+ headers: {
4743
+ [name: string]: unknown;
4744
+ };
4745
+ content: {
4746
+ "application/json": {
4747
+ deliveryId: string;
4748
+ };
4749
+ };
4750
+ };
4751
+ /** @description Invalid input */
4752
+ 400: {
4753
+ headers: {
4754
+ [name: string]: unknown;
4755
+ };
4756
+ content: {
4757
+ "application/json": {
4758
+ error: string;
4759
+ message?: string;
4760
+ details?: unknown;
4761
+ };
4762
+ };
4763
+ };
4764
+ /** @description Missing or bad key */
4765
+ 401: {
4766
+ headers: {
4767
+ [name: string]: unknown;
4768
+ };
4769
+ content?: never;
4770
+ };
4771
+ /** @description Key lacks the permission */
4772
+ 403: {
4773
+ headers: {
4774
+ [name: string]: unknown;
4775
+ };
4776
+ content?: never;
4777
+ };
4778
+ /** @description Not found */
4779
+ 404: {
4780
+ headers: {
4781
+ [name: string]: unknown;
4782
+ };
4783
+ content?: never;
4784
+ };
4785
+ /** @description Rate limited; see x-ratelimit-* and retry-after */
4786
+ 429: {
4787
+ headers: {
4788
+ [name: string]: unknown;
4789
+ };
4790
+ content?: never;
4791
+ };
4792
+ };
4793
+ };
4794
+ }