bundlesocial 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3110 @@
1
+ type ApiRequestOptions = {
2
+ readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3
+ readonly url: string;
4
+ readonly path?: Record<string, unknown>;
5
+ readonly cookies?: Record<string, unknown>;
6
+ readonly headers?: Record<string, unknown>;
7
+ readonly query?: Record<string, unknown>;
8
+ readonly formData?: Record<string, unknown>;
9
+ readonly body?: any;
10
+ readonly mediaType?: string;
11
+ readonly responseHeader?: string;
12
+ readonly errors?: Record<number, string>;
13
+ };
14
+
15
+ declare class CancelError extends Error {
16
+ constructor(message: string);
17
+ get isCancelled(): boolean;
18
+ }
19
+ interface OnCancel {
20
+ readonly isResolved: boolean;
21
+ readonly isRejected: boolean;
22
+ readonly isCancelled: boolean;
23
+ (cancelHandler: () => void): void;
24
+ }
25
+ declare class CancelablePromise<T> implements Promise<T> {
26
+ private _isResolved;
27
+ private _isRejected;
28
+ private _isCancelled;
29
+ readonly cancelHandlers: (() => void)[];
30
+ readonly promise: Promise<T>;
31
+ private _resolve?;
32
+ private _reject?;
33
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: unknown) => void, onCancel: OnCancel) => void);
34
+ get [Symbol.toStringTag](): string;
35
+ then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
+ catch<TResult = never>(onRejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
+ finally(onFinally?: (() => void) | null): Promise<T>;
38
+ cancel(): void;
39
+ get isCancelled(): boolean;
40
+ }
41
+
42
+ type Headers = Record<string, string>;
43
+ type Middleware<T> = (value: T) => T | Promise<T>;
44
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
45
+ declare class Interceptors<T> {
46
+ _fns: Middleware<T>[];
47
+ constructor();
48
+ eject(fn: Middleware<T>): void;
49
+ use(fn: Middleware<T>): void;
50
+ }
51
+ type OpenAPIConfig = {
52
+ BASE: string;
53
+ CREDENTIALS: 'include' | 'omit' | 'same-origin';
54
+ ENCODE_PATH?: ((path: string) => string) | undefined;
55
+ HEADERS?: Headers | Resolver<Headers> | undefined;
56
+ PASSWORD?: string | Resolver<string> | undefined;
57
+ TOKEN?: string | Resolver<string> | undefined;
58
+ USERNAME?: string | Resolver<string> | undefined;
59
+ VERSION: string;
60
+ WITH_CREDENTIALS: boolean;
61
+ interceptors: {
62
+ request: Interceptors<RequestInit>;
63
+ response: Interceptors<Response>;
64
+ };
65
+ };
66
+ declare const OpenAPI: OpenAPIConfig;
67
+
68
+ declare abstract class BaseHttpRequest {
69
+ readonly config: OpenAPIConfig;
70
+ constructor(config: OpenAPIConfig);
71
+ abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
72
+ }
73
+
74
+ type AppGetHealthResponse = {
75
+ status: string;
76
+ createdAt: string;
77
+ };
78
+ type TeamGetTeamResponse = {
79
+ id: string;
80
+ name: string;
81
+ avatarUrl?: string | null;
82
+ createdById: string;
83
+ createdAt: string | null;
84
+ updatedAt: string | null;
85
+ deletedAt?: string | null;
86
+ users: Array<{
87
+ userId: string;
88
+ teamId: string;
89
+ createdAt: string | null;
90
+ updatedAt: string | null;
91
+ deletedAt?: string | null;
92
+ user: {
93
+ id: string;
94
+ externalId: string;
95
+ email: string;
96
+ emailVerified?: string | null;
97
+ firstName?: string | null;
98
+ lastName?: string | null;
99
+ avatarUrl?: string | null;
100
+ role: 'ADMIN' | 'CUSTOMER';
101
+ createdAt: string | null;
102
+ updatedAt: string | null;
103
+ deletedAt?: string | null;
104
+ };
105
+ }>;
106
+ createdBy: {
107
+ id: string;
108
+ externalId: string;
109
+ email: string;
110
+ emailVerified?: string | null;
111
+ firstName?: string | null;
112
+ lastName?: string | null;
113
+ avatarUrl?: string | null;
114
+ role: 'ADMIN' | 'CUSTOMER';
115
+ createdAt: string | null;
116
+ updatedAt: string | null;
117
+ deletedAt?: string | null;
118
+ };
119
+ invitations: Array<{
120
+ id: string;
121
+ email: string;
122
+ teamId: string;
123
+ createdById: string;
124
+ createdAt: string | null;
125
+ updatedAt: string | null;
126
+ }>;
127
+ bots: Array<{
128
+ id: string;
129
+ name: string;
130
+ avatarUrl?: string | null;
131
+ teamId: string;
132
+ createdAt: string | null;
133
+ updatedAt: string | null;
134
+ deletedAt?: string | null;
135
+ }>;
136
+ socialAccounts: Array<{
137
+ id: string;
138
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
139
+ teamId: string;
140
+ username?: string | null;
141
+ displayName?: string | null;
142
+ externalId?: string | null;
143
+ userUsername?: string | null;
144
+ userDisplayName?: string | null;
145
+ userId?: string | null;
146
+ channels?: Array<{
147
+ id: string;
148
+ name?: string | null;
149
+ username?: string | null;
150
+ webhook?: {
151
+ id?: string | null;
152
+ name?: string | null;
153
+ avatar?: string | null;
154
+ url?: string | null;
155
+ } | null;
156
+ }> | null;
157
+ createdAt: string | null;
158
+ updatedAt: string | null;
159
+ deletedAt?: string | null;
160
+ }>;
161
+ usage: {
162
+ monthlyPosts: number;
163
+ };
164
+ };
165
+ type UploadCreateData = {
166
+ /**
167
+ * Body
168
+ */
169
+ formData?: {
170
+ file?: (Blob | File) | null;
171
+ };
172
+ };
173
+ type UploadCreateResponse = {
174
+ id: string;
175
+ teamId: string;
176
+ expiresAt?: string | null;
177
+ iconUrl?: string | null;
178
+ thumbnailUrl?: string | null;
179
+ url?: string | null;
180
+ iconPath?: string | null;
181
+ thumbnailPath?: string | null;
182
+ path?: string | null;
183
+ type: 'image' | 'video';
184
+ width?: number | null;
185
+ height?: number | null;
186
+ fileSize?: number | null;
187
+ videoLength?: number | null;
188
+ mime?: string | null;
189
+ ext?: string | null;
190
+ createdAt: string | null;
191
+ updatedAt: string | null;
192
+ };
193
+ type UploadGetListResponse = Array<{
194
+ id: string;
195
+ teamId: string;
196
+ expiresAt?: string | null;
197
+ iconUrl?: string | null;
198
+ thumbnailUrl?: string | null;
199
+ url?: string | null;
200
+ iconPath?: string | null;
201
+ thumbnailPath?: string | null;
202
+ path?: string | null;
203
+ type: 'image' | 'video';
204
+ width?: number | null;
205
+ height?: number | null;
206
+ fileSize?: number | null;
207
+ videoLength?: number | null;
208
+ mime?: string | null;
209
+ ext?: string | null;
210
+ createdAt: string | null;
211
+ updatedAt: string | null;
212
+ posts: Array<{
213
+ postId: string;
214
+ uploadId: string;
215
+ createdAt: string | null;
216
+ updatedAt: string | null;
217
+ deletedAt?: string | null;
218
+ }>;
219
+ }>;
220
+ type UploadDeleteManyData = {
221
+ /**
222
+ * Body
223
+ */
224
+ requestBody?: {
225
+ ids: Array<(string)>;
226
+ };
227
+ };
228
+ type UploadDeleteManyResponse = Array<{
229
+ id: string;
230
+ teamId: string;
231
+ expiresAt?: string | null;
232
+ iconUrl?: string | null;
233
+ thumbnailUrl?: string | null;
234
+ url?: string | null;
235
+ iconPath?: string | null;
236
+ thumbnailPath?: string | null;
237
+ path?: string | null;
238
+ type: 'image' | 'video';
239
+ width?: number | null;
240
+ height?: number | null;
241
+ fileSize?: number | null;
242
+ videoLength?: number | null;
243
+ mime?: string | null;
244
+ ext?: string | null;
245
+ createdAt: string | null;
246
+ updatedAt: string | null;
247
+ }>;
248
+ type UploadGetData = {
249
+ id: string;
250
+ };
251
+ type UploadGetResponse = {
252
+ id: string;
253
+ teamId: string;
254
+ expiresAt?: string | null;
255
+ iconUrl?: string | null;
256
+ thumbnailUrl?: string | null;
257
+ url?: string | null;
258
+ iconPath?: string | null;
259
+ thumbnailPath?: string | null;
260
+ path?: string | null;
261
+ type: 'image' | 'video';
262
+ width?: number | null;
263
+ height?: number | null;
264
+ fileSize?: number | null;
265
+ videoLength?: number | null;
266
+ mime?: string | null;
267
+ ext?: string | null;
268
+ createdAt: string | null;
269
+ updatedAt: string | null;
270
+ };
271
+ type UploadDeleteData = {
272
+ id: string;
273
+ };
274
+ type UploadDeleteResponse = {
275
+ id: string;
276
+ teamId: string;
277
+ expiresAt?: string | null;
278
+ iconUrl?: string | null;
279
+ thumbnailUrl?: string | null;
280
+ url?: string | null;
281
+ iconPath?: string | null;
282
+ thumbnailPath?: string | null;
283
+ path?: string | null;
284
+ type: 'image' | 'video';
285
+ width?: number | null;
286
+ height?: number | null;
287
+ fileSize?: number | null;
288
+ videoLength?: number | null;
289
+ mime?: string | null;
290
+ ext?: string | null;
291
+ createdAt: string | null;
292
+ updatedAt: string | null;
293
+ };
294
+ type PostCreateData = {
295
+ /**
296
+ * Body
297
+ */
298
+ requestBody?: {
299
+ title: string;
300
+ postDate: string;
301
+ status: 'DRAFT' | 'SCHEDULED';
302
+ socialAccountTypes: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')>;
303
+ data: {
304
+ TWITTER?: {
305
+ text?: string | null;
306
+ uploadIds?: Array<(string)> | null;
307
+ } | null;
308
+ PINTEREST?: {
309
+ text?: string | null;
310
+ description?: string | null;
311
+ boardName: string;
312
+ uploadIds?: Array<(string)> | null;
313
+ link?: string | null;
314
+ altText?: string | null;
315
+ note?: string | null;
316
+ dominantColor?: string | null;
317
+ } | null;
318
+ FACEBOOK?: {
319
+ type?: 'POST' | 'REEL' | 'STORY';
320
+ text?: string | null;
321
+ uploadIds?: Array<(string)> | null;
322
+ } | null;
323
+ INSTAGRAM?: {
324
+ type?: 'POST' | 'REEL' | 'STORY';
325
+ text?: string | null;
326
+ uploadIds?: Array<(string)> | null;
327
+ } | null;
328
+ TIKTOK?: {
329
+ text?: string | null;
330
+ uploadIds?: Array<(string)> | null;
331
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
332
+ } | null;
333
+ LINKEDIN?: {
334
+ text: string;
335
+ uploadIds?: Array<(string)> | null;
336
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
337
+ distribution?: {
338
+ feedDistribution: 'NONE' | 'MAIN_FEED';
339
+ } | null;
340
+ isReshareDisabledByAuthor?: boolean | null;
341
+ } | null;
342
+ REDDIT?: {
343
+ sr: string;
344
+ text: string;
345
+ description?: string | null;
346
+ uploadIds?: Array<(string)> | null;
347
+ url?: string | null;
348
+ nsfw?: boolean | null;
349
+ } | null;
350
+ DISCORD?: {
351
+ channelId: string;
352
+ text?: string | null;
353
+ uploadIds?: Array<(string)> | null;
354
+ username?: string | null;
355
+ avatarUrl?: string | null;
356
+ } | null;
357
+ SLACK?: {
358
+ channelId: string;
359
+ text?: string | null;
360
+ uploadIds?: Array<(string)> | null;
361
+ username?: string | null;
362
+ avatarUrl?: string | null;
363
+ } | null;
364
+ YOUTUBE?: {
365
+ type?: 'SHORT';
366
+ uploadIds?: Array<(string)> | null;
367
+ text?: string | null;
368
+ description?: string | null;
369
+ categoryId?: string | null;
370
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
371
+ madeForKids?: boolean;
372
+ } | null;
373
+ TELEGRAM?: unknown;
374
+ THREADS?: unknown;
375
+ };
376
+ };
377
+ };
378
+ type PostCreateResponse = {
379
+ id: string;
380
+ teamId: string;
381
+ title: string;
382
+ postDate: string | null;
383
+ postedDate?: string | null;
384
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
385
+ data: {
386
+ TWITTER?: {
387
+ text?: string | null;
388
+ uploadIds?: Array<(string)> | null;
389
+ } | null;
390
+ PINTEREST?: {
391
+ text?: string | null;
392
+ description?: string | null;
393
+ boardName: string;
394
+ uploadIds?: Array<(string)> | null;
395
+ link?: string | null;
396
+ altText?: string | null;
397
+ note?: string | null;
398
+ dominantColor?: string | null;
399
+ } | null;
400
+ FACEBOOK?: {
401
+ type?: 'POST' | 'REEL' | 'STORY';
402
+ text?: string | null;
403
+ uploadIds?: Array<(string)> | null;
404
+ } | null;
405
+ INSTAGRAM?: {
406
+ type?: 'POST' | 'REEL' | 'STORY';
407
+ text?: string | null;
408
+ uploadIds?: Array<(string)> | null;
409
+ } | null;
410
+ TIKTOK?: {
411
+ text?: string | null;
412
+ uploadIds?: Array<(string)> | null;
413
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
414
+ } | null;
415
+ LINKEDIN?: {
416
+ text: string;
417
+ uploadIds?: Array<(string)> | null;
418
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
419
+ distribution?: {
420
+ feedDistribution: 'NONE' | 'MAIN_FEED';
421
+ } | null;
422
+ isReshareDisabledByAuthor?: boolean | null;
423
+ } | null;
424
+ REDDIT?: {
425
+ sr: string;
426
+ text: string;
427
+ description?: string | null;
428
+ uploadIds?: Array<(string)> | null;
429
+ url?: string | null;
430
+ nsfw?: boolean | null;
431
+ } | null;
432
+ DISCORD?: {
433
+ channelId: string;
434
+ text?: string | null;
435
+ uploadIds?: Array<(string)> | null;
436
+ username?: string | null;
437
+ avatarUrl?: string | null;
438
+ } | null;
439
+ SLACK?: {
440
+ channelId: string;
441
+ text?: string | null;
442
+ uploadIds?: Array<(string)> | null;
443
+ username?: string | null;
444
+ avatarUrl?: string | null;
445
+ } | null;
446
+ YOUTUBE?: {
447
+ type?: 'SHORT';
448
+ uploadIds?: Array<(string)> | null;
449
+ text?: string | null;
450
+ description?: string | null;
451
+ categoryId?: string | null;
452
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
453
+ madeForKids?: boolean;
454
+ } | null;
455
+ TELEGRAM?: unknown;
456
+ THREADS?: unknown;
457
+ };
458
+ error?: string | null;
459
+ errors?: {
460
+ TWITTER?: string | null;
461
+ PINTEREST?: string | null;
462
+ FACEBOOK?: string | null;
463
+ INSTAGRAM?: string | null;
464
+ TIKTOK?: string | null;
465
+ LINKEDIN?: string | null;
466
+ REDDIT?: string | null;
467
+ DISCORD?: string | null;
468
+ SLACK?: string | null;
469
+ YOUTUBE?: string | null;
470
+ TELEGRAM?: string | null;
471
+ THREADS?: string | null;
472
+ } | null;
473
+ externalData?: {
474
+ TWITTER?: {
475
+ id?: string | null;
476
+ permalink?: string | null;
477
+ } | null;
478
+ PINTEREST?: {
479
+ id?: string | null;
480
+ permalink?: string | null;
481
+ } | null;
482
+ FACEBOOK?: {
483
+ id?: string | null;
484
+ permalink?: string | null;
485
+ videoId?: string | null;
486
+ } | null;
487
+ INSTAGRAM?: {
488
+ id?: string | null;
489
+ permalink?: string | null;
490
+ } | null;
491
+ TIKTOK?: {
492
+ id?: string | null;
493
+ permalink?: string | null;
494
+ } | null;
495
+ LINKEDIN?: {
496
+ id?: string | null;
497
+ permalink?: string | null;
498
+ } | null;
499
+ REDDIT?: {
500
+ id?: string | null;
501
+ permalink?: string | null;
502
+ subreddit_name?: string | null;
503
+ } | null;
504
+ DISCORD?: {
505
+ id?: string | null;
506
+ permalink?: string | null;
507
+ channelId?: string | null;
508
+ } | null;
509
+ SLACK?: {
510
+ id?: string | null;
511
+ permalink?: string | null;
512
+ channelId?: string | null;
513
+ } | null;
514
+ YOUTUBE?: {
515
+ id?: string | null;
516
+ permalink?: string | null;
517
+ } | null;
518
+ TELEGRAM?: {
519
+ id?: string | null;
520
+ permalink?: string | null;
521
+ } | null;
522
+ THREADS?: {
523
+ id?: string | null;
524
+ permalink?: string | null;
525
+ } | null;
526
+ } | null;
527
+ createdAt: string | null;
528
+ updatedAt: string | null;
529
+ deletedAt?: string | null;
530
+ };
531
+ type PostGetListData = {
532
+ limit?: number | null;
533
+ offset?: number | null;
534
+ order?: 'ASC' | 'DESC' | null;
535
+ orderBy?: 'createdAt' | 'updatedAt' | 'postDate' | 'postedDate' | 'deletedAt' | null;
536
+ platforms?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')> | null;
537
+ q?: string | null;
538
+ status?: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING' | null;
539
+ };
540
+ type PostGetListResponse = {
541
+ items: Array<{
542
+ id: string;
543
+ teamId: string;
544
+ title: string;
545
+ postDate: string | null;
546
+ postedDate?: string | null;
547
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
548
+ data: {
549
+ TWITTER?: {
550
+ text?: string | null;
551
+ uploadIds?: Array<(string)> | null;
552
+ } | null;
553
+ PINTEREST?: {
554
+ text?: string | null;
555
+ description?: string | null;
556
+ boardName: string;
557
+ uploadIds?: Array<(string)> | null;
558
+ link?: string | null;
559
+ altText?: string | null;
560
+ note?: string | null;
561
+ dominantColor?: string | null;
562
+ } | null;
563
+ FACEBOOK?: {
564
+ type?: 'POST' | 'REEL' | 'STORY';
565
+ text?: string | null;
566
+ uploadIds?: Array<(string)> | null;
567
+ } | null;
568
+ INSTAGRAM?: {
569
+ type?: 'POST' | 'REEL' | 'STORY';
570
+ text?: string | null;
571
+ uploadIds?: Array<(string)> | null;
572
+ } | null;
573
+ TIKTOK?: {
574
+ text?: string | null;
575
+ uploadIds?: Array<(string)> | null;
576
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
577
+ } | null;
578
+ LINKEDIN?: {
579
+ text: string;
580
+ uploadIds?: Array<(string)> | null;
581
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
582
+ distribution?: {
583
+ feedDistribution: 'NONE' | 'MAIN_FEED';
584
+ } | null;
585
+ isReshareDisabledByAuthor?: boolean | null;
586
+ } | null;
587
+ REDDIT?: {
588
+ sr: string;
589
+ text: string;
590
+ description?: string | null;
591
+ uploadIds?: Array<(string)> | null;
592
+ url?: string | null;
593
+ nsfw?: boolean | null;
594
+ } | null;
595
+ DISCORD?: {
596
+ channelId: string;
597
+ text?: string | null;
598
+ uploadIds?: Array<(string)> | null;
599
+ username?: string | null;
600
+ avatarUrl?: string | null;
601
+ } | null;
602
+ SLACK?: {
603
+ channelId: string;
604
+ text?: string | null;
605
+ uploadIds?: Array<(string)> | null;
606
+ username?: string | null;
607
+ avatarUrl?: string | null;
608
+ } | null;
609
+ YOUTUBE?: {
610
+ type?: 'SHORT';
611
+ uploadIds?: Array<(string)> | null;
612
+ text?: string | null;
613
+ description?: string | null;
614
+ categoryId?: string | null;
615
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
616
+ madeForKids?: boolean;
617
+ } | null;
618
+ TELEGRAM?: unknown;
619
+ THREADS?: unknown;
620
+ };
621
+ error?: string | null;
622
+ errors?: {
623
+ TWITTER?: string | null;
624
+ PINTEREST?: string | null;
625
+ FACEBOOK?: string | null;
626
+ INSTAGRAM?: string | null;
627
+ TIKTOK?: string | null;
628
+ LINKEDIN?: string | null;
629
+ REDDIT?: string | null;
630
+ DISCORD?: string | null;
631
+ SLACK?: string | null;
632
+ YOUTUBE?: string | null;
633
+ TELEGRAM?: string | null;
634
+ THREADS?: string | null;
635
+ } | null;
636
+ externalData?: {
637
+ TWITTER?: {
638
+ id?: string | null;
639
+ permalink?: string | null;
640
+ } | null;
641
+ PINTEREST?: {
642
+ id?: string | null;
643
+ permalink?: string | null;
644
+ } | null;
645
+ FACEBOOK?: {
646
+ id?: string | null;
647
+ permalink?: string | null;
648
+ videoId?: string | null;
649
+ } | null;
650
+ INSTAGRAM?: {
651
+ id?: string | null;
652
+ permalink?: string | null;
653
+ } | null;
654
+ TIKTOK?: {
655
+ id?: string | null;
656
+ permalink?: string | null;
657
+ } | null;
658
+ LINKEDIN?: {
659
+ id?: string | null;
660
+ permalink?: string | null;
661
+ } | null;
662
+ REDDIT?: {
663
+ id?: string | null;
664
+ permalink?: string | null;
665
+ subreddit_name?: string | null;
666
+ } | null;
667
+ DISCORD?: {
668
+ id?: string | null;
669
+ permalink?: string | null;
670
+ channelId?: string | null;
671
+ } | null;
672
+ SLACK?: {
673
+ id?: string | null;
674
+ permalink?: string | null;
675
+ channelId?: string | null;
676
+ } | null;
677
+ YOUTUBE?: {
678
+ id?: string | null;
679
+ permalink?: string | null;
680
+ } | null;
681
+ TELEGRAM?: {
682
+ id?: string | null;
683
+ permalink?: string | null;
684
+ } | null;
685
+ THREADS?: {
686
+ id?: string | null;
687
+ permalink?: string | null;
688
+ } | null;
689
+ } | null;
690
+ createdAt: string | null;
691
+ updatedAt: string | null;
692
+ deletedAt?: string | null;
693
+ uploads: Array<{
694
+ postId: string;
695
+ uploadId: string;
696
+ createdAt: string | null;
697
+ updatedAt: string | null;
698
+ deletedAt?: string | null;
699
+ upload: {
700
+ id: string;
701
+ teamId: string;
702
+ expiresAt?: string | null;
703
+ iconUrl?: string | null;
704
+ thumbnailUrl?: string | null;
705
+ url?: string | null;
706
+ iconPath?: string | null;
707
+ thumbnailPath?: string | null;
708
+ path?: string | null;
709
+ type: 'image' | 'video';
710
+ width?: number | null;
711
+ height?: number | null;
712
+ fileSize?: number | null;
713
+ videoLength?: number | null;
714
+ mime?: string | null;
715
+ ext?: string | null;
716
+ createdAt: string | null;
717
+ updatedAt: string | null;
718
+ };
719
+ }>;
720
+ socialAccounts: Array<{
721
+ postId: string;
722
+ socialAccountId: string;
723
+ createdAt: string | null;
724
+ updatedAt: string | null;
725
+ deletedAt?: string | null;
726
+ socialAccount: {
727
+ id: string;
728
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
729
+ teamId: string;
730
+ username?: string | null;
731
+ displayName?: string | null;
732
+ externalId?: string | null;
733
+ userUsername?: string | null;
734
+ userDisplayName?: string | null;
735
+ userId?: string | null;
736
+ channels?: Array<{
737
+ id: string;
738
+ name?: string | null;
739
+ username?: string | null;
740
+ webhook?: {
741
+ id?: string | null;
742
+ name?: string | null;
743
+ avatar?: string | null;
744
+ url?: string | null;
745
+ } | null;
746
+ }> | null;
747
+ createdAt: string | null;
748
+ updatedAt: string | null;
749
+ deletedAt?: string | null;
750
+ };
751
+ }>;
752
+ }>;
753
+ total: number;
754
+ };
755
+ type PostGetData = {
756
+ id: string;
757
+ };
758
+ type PostGetResponse = {
759
+ id: string;
760
+ teamId: string;
761
+ title: string;
762
+ postDate: string | null;
763
+ postedDate?: string | null;
764
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
765
+ data: {
766
+ TWITTER?: {
767
+ text?: string | null;
768
+ uploadIds?: Array<(string)> | null;
769
+ } | null;
770
+ PINTEREST?: {
771
+ text?: string | null;
772
+ description?: string | null;
773
+ boardName: string;
774
+ uploadIds?: Array<(string)> | null;
775
+ link?: string | null;
776
+ altText?: string | null;
777
+ note?: string | null;
778
+ dominantColor?: string | null;
779
+ } | null;
780
+ FACEBOOK?: {
781
+ type?: 'POST' | 'REEL' | 'STORY';
782
+ text?: string | null;
783
+ uploadIds?: Array<(string)> | null;
784
+ } | null;
785
+ INSTAGRAM?: {
786
+ type?: 'POST' | 'REEL' | 'STORY';
787
+ text?: string | null;
788
+ uploadIds?: Array<(string)> | null;
789
+ } | null;
790
+ TIKTOK?: {
791
+ text?: string | null;
792
+ uploadIds?: Array<(string)> | null;
793
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
794
+ } | null;
795
+ LINKEDIN?: {
796
+ text: string;
797
+ uploadIds?: Array<(string)> | null;
798
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
799
+ distribution?: {
800
+ feedDistribution: 'NONE' | 'MAIN_FEED';
801
+ } | null;
802
+ isReshareDisabledByAuthor?: boolean | null;
803
+ } | null;
804
+ REDDIT?: {
805
+ sr: string;
806
+ text: string;
807
+ description?: string | null;
808
+ uploadIds?: Array<(string)> | null;
809
+ url?: string | null;
810
+ nsfw?: boolean | null;
811
+ } | null;
812
+ DISCORD?: {
813
+ channelId: string;
814
+ text?: string | null;
815
+ uploadIds?: Array<(string)> | null;
816
+ username?: string | null;
817
+ avatarUrl?: string | null;
818
+ } | null;
819
+ SLACK?: {
820
+ channelId: string;
821
+ text?: string | null;
822
+ uploadIds?: Array<(string)> | null;
823
+ username?: string | null;
824
+ avatarUrl?: string | null;
825
+ } | null;
826
+ YOUTUBE?: {
827
+ type?: 'SHORT';
828
+ uploadIds?: Array<(string)> | null;
829
+ text?: string | null;
830
+ description?: string | null;
831
+ categoryId?: string | null;
832
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
833
+ madeForKids?: boolean;
834
+ } | null;
835
+ TELEGRAM?: unknown;
836
+ THREADS?: unknown;
837
+ };
838
+ error?: string | null;
839
+ errors?: {
840
+ TWITTER?: string | null;
841
+ PINTEREST?: string | null;
842
+ FACEBOOK?: string | null;
843
+ INSTAGRAM?: string | null;
844
+ TIKTOK?: string | null;
845
+ LINKEDIN?: string | null;
846
+ REDDIT?: string | null;
847
+ DISCORD?: string | null;
848
+ SLACK?: string | null;
849
+ YOUTUBE?: string | null;
850
+ TELEGRAM?: string | null;
851
+ THREADS?: string | null;
852
+ } | null;
853
+ externalData?: {
854
+ TWITTER?: {
855
+ id?: string | null;
856
+ permalink?: string | null;
857
+ } | null;
858
+ PINTEREST?: {
859
+ id?: string | null;
860
+ permalink?: string | null;
861
+ } | null;
862
+ FACEBOOK?: {
863
+ id?: string | null;
864
+ permalink?: string | null;
865
+ videoId?: string | null;
866
+ } | null;
867
+ INSTAGRAM?: {
868
+ id?: string | null;
869
+ permalink?: string | null;
870
+ } | null;
871
+ TIKTOK?: {
872
+ id?: string | null;
873
+ permalink?: string | null;
874
+ } | null;
875
+ LINKEDIN?: {
876
+ id?: string | null;
877
+ permalink?: string | null;
878
+ } | null;
879
+ REDDIT?: {
880
+ id?: string | null;
881
+ permalink?: string | null;
882
+ subreddit_name?: string | null;
883
+ } | null;
884
+ DISCORD?: {
885
+ id?: string | null;
886
+ permalink?: string | null;
887
+ channelId?: string | null;
888
+ } | null;
889
+ SLACK?: {
890
+ id?: string | null;
891
+ permalink?: string | null;
892
+ channelId?: string | null;
893
+ } | null;
894
+ YOUTUBE?: {
895
+ id?: string | null;
896
+ permalink?: string | null;
897
+ } | null;
898
+ TELEGRAM?: {
899
+ id?: string | null;
900
+ permalink?: string | null;
901
+ } | null;
902
+ THREADS?: {
903
+ id?: string | null;
904
+ permalink?: string | null;
905
+ } | null;
906
+ } | null;
907
+ createdAt: string | null;
908
+ updatedAt: string | null;
909
+ deletedAt?: string | null;
910
+ uploads: Array<{
911
+ postId: string;
912
+ uploadId: string;
913
+ createdAt: string | null;
914
+ updatedAt: string | null;
915
+ deletedAt?: string | null;
916
+ upload: {
917
+ id: string;
918
+ teamId: string;
919
+ expiresAt?: string | null;
920
+ iconUrl?: string | null;
921
+ thumbnailUrl?: string | null;
922
+ url?: string | null;
923
+ iconPath?: string | null;
924
+ thumbnailPath?: string | null;
925
+ path?: string | null;
926
+ type: 'image' | 'video';
927
+ width?: number | null;
928
+ height?: number | null;
929
+ fileSize?: number | null;
930
+ videoLength?: number | null;
931
+ mime?: string | null;
932
+ ext?: string | null;
933
+ createdAt: string | null;
934
+ updatedAt: string | null;
935
+ };
936
+ }>;
937
+ socialAccounts: Array<{
938
+ postId: string;
939
+ socialAccountId: string;
940
+ createdAt: string | null;
941
+ updatedAt: string | null;
942
+ deletedAt?: string | null;
943
+ socialAccount: {
944
+ id: string;
945
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
946
+ teamId: string;
947
+ username?: string | null;
948
+ displayName?: string | null;
949
+ externalId?: string | null;
950
+ userUsername?: string | null;
951
+ userDisplayName?: string | null;
952
+ userId?: string | null;
953
+ channels?: Array<{
954
+ id: string;
955
+ name?: string | null;
956
+ username?: string | null;
957
+ webhook?: {
958
+ id?: string | null;
959
+ name?: string | null;
960
+ avatar?: string | null;
961
+ url?: string | null;
962
+ } | null;
963
+ }> | null;
964
+ createdAt: string | null;
965
+ updatedAt: string | null;
966
+ deletedAt?: string | null;
967
+ };
968
+ }>;
969
+ };
970
+ type PostUpdateData = {
971
+ id: string;
972
+ /**
973
+ * Body
974
+ */
975
+ requestBody?: {
976
+ title?: string;
977
+ postDate?: string;
978
+ status?: 'DRAFT' | 'SCHEDULED';
979
+ socialAccountTypes?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')>;
980
+ data?: {
981
+ TWITTER?: {
982
+ text?: string | null;
983
+ uploadIds?: Array<(string)> | null;
984
+ } | null;
985
+ PINTEREST?: {
986
+ text?: string | null;
987
+ description?: string | null;
988
+ boardName: string;
989
+ uploadIds?: Array<(string)> | null;
990
+ link?: string | null;
991
+ altText?: string | null;
992
+ note?: string | null;
993
+ dominantColor?: string | null;
994
+ } | null;
995
+ FACEBOOK?: {
996
+ type?: 'POST' | 'REEL' | 'STORY';
997
+ text?: string | null;
998
+ uploadIds?: Array<(string)> | null;
999
+ } | null;
1000
+ INSTAGRAM?: {
1001
+ type?: 'POST' | 'REEL' | 'STORY';
1002
+ text?: string | null;
1003
+ uploadIds?: Array<(string)> | null;
1004
+ } | null;
1005
+ TIKTOK?: {
1006
+ text?: string | null;
1007
+ uploadIds?: Array<(string)> | null;
1008
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1009
+ } | null;
1010
+ LINKEDIN?: {
1011
+ text: string;
1012
+ uploadIds?: Array<(string)> | null;
1013
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1014
+ distribution?: {
1015
+ feedDistribution: 'NONE' | 'MAIN_FEED';
1016
+ } | null;
1017
+ isReshareDisabledByAuthor?: boolean | null;
1018
+ } | null;
1019
+ REDDIT?: {
1020
+ sr: string;
1021
+ text: string;
1022
+ description?: string | null;
1023
+ uploadIds?: Array<(string)> | null;
1024
+ url?: string | null;
1025
+ nsfw?: boolean | null;
1026
+ } | null;
1027
+ DISCORD?: {
1028
+ channelId: string;
1029
+ text?: string | null;
1030
+ uploadIds?: Array<(string)> | null;
1031
+ username?: string | null;
1032
+ avatarUrl?: string | null;
1033
+ } | null;
1034
+ SLACK?: {
1035
+ channelId: string;
1036
+ text?: string | null;
1037
+ uploadIds?: Array<(string)> | null;
1038
+ username?: string | null;
1039
+ avatarUrl?: string | null;
1040
+ } | null;
1041
+ YOUTUBE?: {
1042
+ type?: 'SHORT';
1043
+ uploadIds?: Array<(string)> | null;
1044
+ text?: string | null;
1045
+ description?: string | null;
1046
+ categoryId?: string | null;
1047
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1048
+ madeForKids?: boolean;
1049
+ } | null;
1050
+ TELEGRAM?: unknown;
1051
+ THREADS?: unknown;
1052
+ };
1053
+ };
1054
+ };
1055
+ type PostUpdateResponse = {
1056
+ id: string;
1057
+ teamId: string;
1058
+ title: string;
1059
+ postDate: string | null;
1060
+ postedDate?: string | null;
1061
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1062
+ data: {
1063
+ TWITTER?: {
1064
+ text?: string | null;
1065
+ uploadIds?: Array<(string)> | null;
1066
+ } | null;
1067
+ PINTEREST?: {
1068
+ text?: string | null;
1069
+ description?: string | null;
1070
+ boardName: string;
1071
+ uploadIds?: Array<(string)> | null;
1072
+ link?: string | null;
1073
+ altText?: string | null;
1074
+ note?: string | null;
1075
+ dominantColor?: string | null;
1076
+ } | null;
1077
+ FACEBOOK?: {
1078
+ type?: 'POST' | 'REEL' | 'STORY';
1079
+ text?: string | null;
1080
+ uploadIds?: Array<(string)> | null;
1081
+ } | null;
1082
+ INSTAGRAM?: {
1083
+ type?: 'POST' | 'REEL' | 'STORY';
1084
+ text?: string | null;
1085
+ uploadIds?: Array<(string)> | null;
1086
+ } | null;
1087
+ TIKTOK?: {
1088
+ text?: string | null;
1089
+ uploadIds?: Array<(string)> | null;
1090
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1091
+ } | null;
1092
+ LINKEDIN?: {
1093
+ text: string;
1094
+ uploadIds?: Array<(string)> | null;
1095
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1096
+ distribution?: {
1097
+ feedDistribution: 'NONE' | 'MAIN_FEED';
1098
+ } | null;
1099
+ isReshareDisabledByAuthor?: boolean | null;
1100
+ } | null;
1101
+ REDDIT?: {
1102
+ sr: string;
1103
+ text: string;
1104
+ description?: string | null;
1105
+ uploadIds?: Array<(string)> | null;
1106
+ url?: string | null;
1107
+ nsfw?: boolean | null;
1108
+ } | null;
1109
+ DISCORD?: {
1110
+ channelId: string;
1111
+ text?: string | null;
1112
+ uploadIds?: Array<(string)> | null;
1113
+ username?: string | null;
1114
+ avatarUrl?: string | null;
1115
+ } | null;
1116
+ SLACK?: {
1117
+ channelId: string;
1118
+ text?: string | null;
1119
+ uploadIds?: Array<(string)> | null;
1120
+ username?: string | null;
1121
+ avatarUrl?: string | null;
1122
+ } | null;
1123
+ YOUTUBE?: {
1124
+ type?: 'SHORT';
1125
+ uploadIds?: Array<(string)> | null;
1126
+ text?: string | null;
1127
+ description?: string | null;
1128
+ categoryId?: string | null;
1129
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1130
+ madeForKids?: boolean;
1131
+ } | null;
1132
+ TELEGRAM?: unknown;
1133
+ THREADS?: unknown;
1134
+ };
1135
+ error?: string | null;
1136
+ errors?: {
1137
+ TWITTER?: string | null;
1138
+ PINTEREST?: string | null;
1139
+ FACEBOOK?: string | null;
1140
+ INSTAGRAM?: string | null;
1141
+ TIKTOK?: string | null;
1142
+ LINKEDIN?: string | null;
1143
+ REDDIT?: string | null;
1144
+ DISCORD?: string | null;
1145
+ SLACK?: string | null;
1146
+ YOUTUBE?: string | null;
1147
+ TELEGRAM?: string | null;
1148
+ THREADS?: string | null;
1149
+ } | null;
1150
+ externalData?: {
1151
+ TWITTER?: {
1152
+ id?: string | null;
1153
+ permalink?: string | null;
1154
+ } | null;
1155
+ PINTEREST?: {
1156
+ id?: string | null;
1157
+ permalink?: string | null;
1158
+ } | null;
1159
+ FACEBOOK?: {
1160
+ id?: string | null;
1161
+ permalink?: string | null;
1162
+ videoId?: string | null;
1163
+ } | null;
1164
+ INSTAGRAM?: {
1165
+ id?: string | null;
1166
+ permalink?: string | null;
1167
+ } | null;
1168
+ TIKTOK?: {
1169
+ id?: string | null;
1170
+ permalink?: string | null;
1171
+ } | null;
1172
+ LINKEDIN?: {
1173
+ id?: string | null;
1174
+ permalink?: string | null;
1175
+ } | null;
1176
+ REDDIT?: {
1177
+ id?: string | null;
1178
+ permalink?: string | null;
1179
+ subreddit_name?: string | null;
1180
+ } | null;
1181
+ DISCORD?: {
1182
+ id?: string | null;
1183
+ permalink?: string | null;
1184
+ channelId?: string | null;
1185
+ } | null;
1186
+ SLACK?: {
1187
+ id?: string | null;
1188
+ permalink?: string | null;
1189
+ channelId?: string | null;
1190
+ } | null;
1191
+ YOUTUBE?: {
1192
+ id?: string | null;
1193
+ permalink?: string | null;
1194
+ } | null;
1195
+ TELEGRAM?: {
1196
+ id?: string | null;
1197
+ permalink?: string | null;
1198
+ } | null;
1199
+ THREADS?: {
1200
+ id?: string | null;
1201
+ permalink?: string | null;
1202
+ } | null;
1203
+ } | null;
1204
+ createdAt: string | null;
1205
+ updatedAt: string | null;
1206
+ deletedAt?: string | null;
1207
+ };
1208
+ type PostDeleteData = {
1209
+ id: string;
1210
+ };
1211
+ type PostDeleteResponse = {
1212
+ id: string;
1213
+ teamId: string;
1214
+ title: string;
1215
+ postDate: string | null;
1216
+ postedDate?: string | null;
1217
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1218
+ data: {
1219
+ TWITTER?: {
1220
+ text?: string | null;
1221
+ uploadIds?: Array<(string)> | null;
1222
+ } | null;
1223
+ PINTEREST?: {
1224
+ text?: string | null;
1225
+ description?: string | null;
1226
+ boardName: string;
1227
+ uploadIds?: Array<(string)> | null;
1228
+ link?: string | null;
1229
+ altText?: string | null;
1230
+ note?: string | null;
1231
+ dominantColor?: string | null;
1232
+ } | null;
1233
+ FACEBOOK?: {
1234
+ type?: 'POST' | 'REEL' | 'STORY';
1235
+ text?: string | null;
1236
+ uploadIds?: Array<(string)> | null;
1237
+ } | null;
1238
+ INSTAGRAM?: {
1239
+ type?: 'POST' | 'REEL' | 'STORY';
1240
+ text?: string | null;
1241
+ uploadIds?: Array<(string)> | null;
1242
+ } | null;
1243
+ TIKTOK?: {
1244
+ text?: string | null;
1245
+ uploadIds?: Array<(string)> | null;
1246
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1247
+ } | null;
1248
+ LINKEDIN?: {
1249
+ text: string;
1250
+ uploadIds?: Array<(string)> | null;
1251
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1252
+ distribution?: {
1253
+ feedDistribution: 'NONE' | 'MAIN_FEED';
1254
+ } | null;
1255
+ isReshareDisabledByAuthor?: boolean | null;
1256
+ } | null;
1257
+ REDDIT?: {
1258
+ sr: string;
1259
+ text: string;
1260
+ description?: string | null;
1261
+ uploadIds?: Array<(string)> | null;
1262
+ url?: string | null;
1263
+ nsfw?: boolean | null;
1264
+ } | null;
1265
+ DISCORD?: {
1266
+ channelId: string;
1267
+ text?: string | null;
1268
+ uploadIds?: Array<(string)> | null;
1269
+ username?: string | null;
1270
+ avatarUrl?: string | null;
1271
+ } | null;
1272
+ SLACK?: {
1273
+ channelId: string;
1274
+ text?: string | null;
1275
+ uploadIds?: Array<(string)> | null;
1276
+ username?: string | null;
1277
+ avatarUrl?: string | null;
1278
+ } | null;
1279
+ YOUTUBE?: {
1280
+ type?: 'SHORT';
1281
+ uploadIds?: Array<(string)> | null;
1282
+ text?: string | null;
1283
+ description?: string | null;
1284
+ categoryId?: string | null;
1285
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1286
+ madeForKids?: boolean;
1287
+ } | null;
1288
+ TELEGRAM?: unknown;
1289
+ THREADS?: unknown;
1290
+ };
1291
+ error?: string | null;
1292
+ errors?: {
1293
+ TWITTER?: string | null;
1294
+ PINTEREST?: string | null;
1295
+ FACEBOOK?: string | null;
1296
+ INSTAGRAM?: string | null;
1297
+ TIKTOK?: string | null;
1298
+ LINKEDIN?: string | null;
1299
+ REDDIT?: string | null;
1300
+ DISCORD?: string | null;
1301
+ SLACK?: string | null;
1302
+ YOUTUBE?: string | null;
1303
+ TELEGRAM?: string | null;
1304
+ THREADS?: string | null;
1305
+ } | null;
1306
+ externalData?: {
1307
+ TWITTER?: {
1308
+ id?: string | null;
1309
+ permalink?: string | null;
1310
+ } | null;
1311
+ PINTEREST?: {
1312
+ id?: string | null;
1313
+ permalink?: string | null;
1314
+ } | null;
1315
+ FACEBOOK?: {
1316
+ id?: string | null;
1317
+ permalink?: string | null;
1318
+ videoId?: string | null;
1319
+ } | null;
1320
+ INSTAGRAM?: {
1321
+ id?: string | null;
1322
+ permalink?: string | null;
1323
+ } | null;
1324
+ TIKTOK?: {
1325
+ id?: string | null;
1326
+ permalink?: string | null;
1327
+ } | null;
1328
+ LINKEDIN?: {
1329
+ id?: string | null;
1330
+ permalink?: string | null;
1331
+ } | null;
1332
+ REDDIT?: {
1333
+ id?: string | null;
1334
+ permalink?: string | null;
1335
+ subreddit_name?: string | null;
1336
+ } | null;
1337
+ DISCORD?: {
1338
+ id?: string | null;
1339
+ permalink?: string | null;
1340
+ channelId?: string | null;
1341
+ } | null;
1342
+ SLACK?: {
1343
+ id?: string | null;
1344
+ permalink?: string | null;
1345
+ channelId?: string | null;
1346
+ } | null;
1347
+ YOUTUBE?: {
1348
+ id?: string | null;
1349
+ permalink?: string | null;
1350
+ } | null;
1351
+ TELEGRAM?: {
1352
+ id?: string | null;
1353
+ permalink?: string | null;
1354
+ } | null;
1355
+ THREADS?: {
1356
+ id?: string | null;
1357
+ permalink?: string | null;
1358
+ } | null;
1359
+ } | null;
1360
+ createdAt: string | null;
1361
+ updatedAt: string | null;
1362
+ deletedAt?: string | null;
1363
+ };
1364
+ type $OpenApiTs = {
1365
+ '/api/v1/': {
1366
+ get: {
1367
+ res: {
1368
+ /**
1369
+ * 200
1370
+ */
1371
+ 200: {
1372
+ status: string;
1373
+ createdAt: string;
1374
+ };
1375
+ /**
1376
+ * 400
1377
+ */
1378
+ 400: {
1379
+ message: string;
1380
+ issues?: Array<{
1381
+ message: string;
1382
+ path?: Array<(string | number)> | null;
1383
+ }> | null;
1384
+ };
1385
+ /**
1386
+ * 401
1387
+ */
1388
+ 401: {
1389
+ message: string;
1390
+ };
1391
+ /**
1392
+ * 403
1393
+ */
1394
+ 403: {
1395
+ message: string;
1396
+ };
1397
+ /**
1398
+ * 404
1399
+ */
1400
+ 404: {
1401
+ message: string;
1402
+ };
1403
+ /**
1404
+ * 500
1405
+ */
1406
+ 500: {
1407
+ message: string;
1408
+ };
1409
+ };
1410
+ };
1411
+ };
1412
+ '/api/v1/team/': {
1413
+ get: {
1414
+ res: {
1415
+ /**
1416
+ * 200
1417
+ */
1418
+ 200: {
1419
+ id: string;
1420
+ name: string;
1421
+ avatarUrl?: string | null;
1422
+ createdById: string;
1423
+ createdAt: string | null;
1424
+ updatedAt: string | null;
1425
+ deletedAt?: string | null;
1426
+ users: Array<{
1427
+ userId: string;
1428
+ teamId: string;
1429
+ createdAt: string | null;
1430
+ updatedAt: string | null;
1431
+ deletedAt?: string | null;
1432
+ user: {
1433
+ id: string;
1434
+ externalId: string;
1435
+ email: string;
1436
+ emailVerified?: string | null;
1437
+ firstName?: string | null;
1438
+ lastName?: string | null;
1439
+ avatarUrl?: string | null;
1440
+ role: 'ADMIN' | 'CUSTOMER';
1441
+ createdAt: string | null;
1442
+ updatedAt: string | null;
1443
+ deletedAt?: string | null;
1444
+ };
1445
+ }>;
1446
+ createdBy: {
1447
+ id: string;
1448
+ externalId: string;
1449
+ email: string;
1450
+ emailVerified?: string | null;
1451
+ firstName?: string | null;
1452
+ lastName?: string | null;
1453
+ avatarUrl?: string | null;
1454
+ role: 'ADMIN' | 'CUSTOMER';
1455
+ createdAt: string | null;
1456
+ updatedAt: string | null;
1457
+ deletedAt?: string | null;
1458
+ };
1459
+ invitations: Array<{
1460
+ id: string;
1461
+ email: string;
1462
+ teamId: string;
1463
+ createdById: string;
1464
+ createdAt: string | null;
1465
+ updatedAt: string | null;
1466
+ }>;
1467
+ bots: Array<{
1468
+ id: string;
1469
+ name: string;
1470
+ avatarUrl?: string | null;
1471
+ teamId: string;
1472
+ createdAt: string | null;
1473
+ updatedAt: string | null;
1474
+ deletedAt?: string | null;
1475
+ }>;
1476
+ socialAccounts: Array<{
1477
+ id: string;
1478
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
1479
+ teamId: string;
1480
+ username?: string | null;
1481
+ displayName?: string | null;
1482
+ externalId?: string | null;
1483
+ userUsername?: string | null;
1484
+ userDisplayName?: string | null;
1485
+ userId?: string | null;
1486
+ channels?: Array<{
1487
+ id: string;
1488
+ name?: string | null;
1489
+ username?: string | null;
1490
+ webhook?: {
1491
+ id?: string | null;
1492
+ name?: string | null;
1493
+ avatar?: string | null;
1494
+ url?: string | null;
1495
+ } | null;
1496
+ }> | null;
1497
+ createdAt: string | null;
1498
+ updatedAt: string | null;
1499
+ deletedAt?: string | null;
1500
+ }>;
1501
+ usage: {
1502
+ monthlyPosts: number;
1503
+ };
1504
+ };
1505
+ /**
1506
+ * 400
1507
+ */
1508
+ 400: {
1509
+ message: string;
1510
+ issues?: Array<{
1511
+ message: string;
1512
+ path?: Array<(string | number)> | null;
1513
+ }> | null;
1514
+ };
1515
+ /**
1516
+ * 401
1517
+ */
1518
+ 401: {
1519
+ message: string;
1520
+ };
1521
+ /**
1522
+ * 403
1523
+ */
1524
+ 403: {
1525
+ message: string;
1526
+ };
1527
+ /**
1528
+ * 404
1529
+ */
1530
+ 404: {
1531
+ message: string;
1532
+ };
1533
+ /**
1534
+ * 500
1535
+ */
1536
+ 500: {
1537
+ message: string;
1538
+ };
1539
+ };
1540
+ };
1541
+ };
1542
+ '/api/v1/upload/': {
1543
+ post: {
1544
+ req: UploadCreateData;
1545
+ res: {
1546
+ /**
1547
+ * 200
1548
+ */
1549
+ 200: {
1550
+ id: string;
1551
+ teamId: string;
1552
+ expiresAt?: string | null;
1553
+ iconUrl?: string | null;
1554
+ thumbnailUrl?: string | null;
1555
+ url?: string | null;
1556
+ iconPath?: string | null;
1557
+ thumbnailPath?: string | null;
1558
+ path?: string | null;
1559
+ type: 'image' | 'video';
1560
+ width?: number | null;
1561
+ height?: number | null;
1562
+ fileSize?: number | null;
1563
+ videoLength?: number | null;
1564
+ mime?: string | null;
1565
+ ext?: string | null;
1566
+ createdAt: string | null;
1567
+ updatedAt: string | null;
1568
+ };
1569
+ /**
1570
+ * 400
1571
+ */
1572
+ 400: {
1573
+ message: string;
1574
+ issues?: Array<{
1575
+ message: string;
1576
+ path?: Array<(string | number)> | null;
1577
+ }> | null;
1578
+ };
1579
+ /**
1580
+ * 401
1581
+ */
1582
+ 401: {
1583
+ message: string;
1584
+ };
1585
+ /**
1586
+ * 403
1587
+ */
1588
+ 403: {
1589
+ message: string;
1590
+ };
1591
+ /**
1592
+ * 404
1593
+ */
1594
+ 404: {
1595
+ message: string;
1596
+ };
1597
+ /**
1598
+ * 500
1599
+ */
1600
+ 500: {
1601
+ message: string;
1602
+ };
1603
+ };
1604
+ };
1605
+ get: {
1606
+ res: {
1607
+ /**
1608
+ * 200
1609
+ */
1610
+ 200: Array<{
1611
+ id: string;
1612
+ teamId: string;
1613
+ expiresAt?: string | null;
1614
+ iconUrl?: string | null;
1615
+ thumbnailUrl?: string | null;
1616
+ url?: string | null;
1617
+ iconPath?: string | null;
1618
+ thumbnailPath?: string | null;
1619
+ path?: string | null;
1620
+ type: 'image' | 'video';
1621
+ width?: number | null;
1622
+ height?: number | null;
1623
+ fileSize?: number | null;
1624
+ videoLength?: number | null;
1625
+ mime?: string | null;
1626
+ ext?: string | null;
1627
+ createdAt: string | null;
1628
+ updatedAt: string | null;
1629
+ posts: Array<{
1630
+ postId: string;
1631
+ uploadId: string;
1632
+ createdAt: string | null;
1633
+ updatedAt: string | null;
1634
+ deletedAt?: string | null;
1635
+ }>;
1636
+ }>;
1637
+ /**
1638
+ * 400
1639
+ */
1640
+ 400: {
1641
+ message: string;
1642
+ issues?: Array<{
1643
+ message: string;
1644
+ path?: Array<(string | number)> | null;
1645
+ }> | null;
1646
+ };
1647
+ /**
1648
+ * 401
1649
+ */
1650
+ 401: {
1651
+ message: string;
1652
+ };
1653
+ /**
1654
+ * 403
1655
+ */
1656
+ 403: {
1657
+ message: string;
1658
+ };
1659
+ /**
1660
+ * 404
1661
+ */
1662
+ 404: {
1663
+ message: string;
1664
+ };
1665
+ /**
1666
+ * 500
1667
+ */
1668
+ 500: {
1669
+ message: string;
1670
+ };
1671
+ };
1672
+ };
1673
+ delete: {
1674
+ req: UploadDeleteManyData;
1675
+ res: {
1676
+ /**
1677
+ * 200
1678
+ */
1679
+ 200: Array<{
1680
+ id: string;
1681
+ teamId: string;
1682
+ expiresAt?: string | null;
1683
+ iconUrl?: string | null;
1684
+ thumbnailUrl?: string | null;
1685
+ url?: string | null;
1686
+ iconPath?: string | null;
1687
+ thumbnailPath?: string | null;
1688
+ path?: string | null;
1689
+ type: 'image' | 'video';
1690
+ width?: number | null;
1691
+ height?: number | null;
1692
+ fileSize?: number | null;
1693
+ videoLength?: number | null;
1694
+ mime?: string | null;
1695
+ ext?: string | null;
1696
+ createdAt: string | null;
1697
+ updatedAt: string | null;
1698
+ }>;
1699
+ /**
1700
+ * 400
1701
+ */
1702
+ 400: {
1703
+ message: string;
1704
+ issues?: Array<{
1705
+ message: string;
1706
+ path?: Array<(string | number)> | null;
1707
+ }> | null;
1708
+ };
1709
+ /**
1710
+ * 401
1711
+ */
1712
+ 401: {
1713
+ message: string;
1714
+ };
1715
+ /**
1716
+ * 403
1717
+ */
1718
+ 403: {
1719
+ message: string;
1720
+ };
1721
+ /**
1722
+ * 404
1723
+ */
1724
+ 404: {
1725
+ message: string;
1726
+ };
1727
+ /**
1728
+ * 500
1729
+ */
1730
+ 500: {
1731
+ message: string;
1732
+ };
1733
+ };
1734
+ };
1735
+ };
1736
+ '/api/v1/upload/{id}': {
1737
+ get: {
1738
+ req: UploadGetData;
1739
+ res: {
1740
+ /**
1741
+ * 200
1742
+ */
1743
+ 200: {
1744
+ id: string;
1745
+ teamId: string;
1746
+ expiresAt?: string | null;
1747
+ iconUrl?: string | null;
1748
+ thumbnailUrl?: string | null;
1749
+ url?: string | null;
1750
+ iconPath?: string | null;
1751
+ thumbnailPath?: string | null;
1752
+ path?: string | null;
1753
+ type: 'image' | 'video';
1754
+ width?: number | null;
1755
+ height?: number | null;
1756
+ fileSize?: number | null;
1757
+ videoLength?: number | null;
1758
+ mime?: string | null;
1759
+ ext?: string | null;
1760
+ createdAt: string | null;
1761
+ updatedAt: string | null;
1762
+ };
1763
+ /**
1764
+ * 400
1765
+ */
1766
+ 400: {
1767
+ message: string;
1768
+ issues?: Array<{
1769
+ message: string;
1770
+ path?: Array<(string | number)> | null;
1771
+ }> | null;
1772
+ };
1773
+ /**
1774
+ * 401
1775
+ */
1776
+ 401: {
1777
+ message: string;
1778
+ };
1779
+ /**
1780
+ * 403
1781
+ */
1782
+ 403: {
1783
+ message: string;
1784
+ };
1785
+ /**
1786
+ * 404
1787
+ */
1788
+ 404: {
1789
+ message: string;
1790
+ };
1791
+ /**
1792
+ * 500
1793
+ */
1794
+ 500: {
1795
+ message: string;
1796
+ };
1797
+ };
1798
+ };
1799
+ delete: {
1800
+ req: UploadDeleteData;
1801
+ res: {
1802
+ /**
1803
+ * 200
1804
+ */
1805
+ 200: {
1806
+ id: string;
1807
+ teamId: string;
1808
+ expiresAt?: string | null;
1809
+ iconUrl?: string | null;
1810
+ thumbnailUrl?: string | null;
1811
+ url?: string | null;
1812
+ iconPath?: string | null;
1813
+ thumbnailPath?: string | null;
1814
+ path?: string | null;
1815
+ type: 'image' | 'video';
1816
+ width?: number | null;
1817
+ height?: number | null;
1818
+ fileSize?: number | null;
1819
+ videoLength?: number | null;
1820
+ mime?: string | null;
1821
+ ext?: string | null;
1822
+ createdAt: string | null;
1823
+ updatedAt: string | null;
1824
+ };
1825
+ /**
1826
+ * 400
1827
+ */
1828
+ 400: {
1829
+ message: string;
1830
+ issues?: Array<{
1831
+ message: string;
1832
+ path?: Array<(string | number)> | null;
1833
+ }> | null;
1834
+ };
1835
+ /**
1836
+ * 401
1837
+ */
1838
+ 401: {
1839
+ message: string;
1840
+ };
1841
+ /**
1842
+ * 403
1843
+ */
1844
+ 403: {
1845
+ message: string;
1846
+ };
1847
+ /**
1848
+ * 404
1849
+ */
1850
+ 404: {
1851
+ message: string;
1852
+ };
1853
+ /**
1854
+ * 500
1855
+ */
1856
+ 500: {
1857
+ message: string;
1858
+ };
1859
+ };
1860
+ };
1861
+ };
1862
+ '/api/v1/post/': {
1863
+ post: {
1864
+ req: PostCreateData;
1865
+ res: {
1866
+ /**
1867
+ * 200
1868
+ */
1869
+ 200: {
1870
+ id: string;
1871
+ teamId: string;
1872
+ title: string;
1873
+ postDate: string | null;
1874
+ postedDate?: string | null;
1875
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1876
+ data: {
1877
+ TWITTER?: {
1878
+ text?: string | null;
1879
+ uploadIds?: Array<(string)> | null;
1880
+ } | null;
1881
+ PINTEREST?: {
1882
+ text?: string | null;
1883
+ description?: string | null;
1884
+ boardName: string;
1885
+ uploadIds?: Array<(string)> | null;
1886
+ link?: string | null;
1887
+ altText?: string | null;
1888
+ note?: string | null;
1889
+ dominantColor?: string | null;
1890
+ } | null;
1891
+ FACEBOOK?: {
1892
+ type?: 'POST' | 'REEL' | 'STORY';
1893
+ text?: string | null;
1894
+ uploadIds?: Array<(string)> | null;
1895
+ } | null;
1896
+ INSTAGRAM?: {
1897
+ type?: 'POST' | 'REEL' | 'STORY';
1898
+ text?: string | null;
1899
+ uploadIds?: Array<(string)> | null;
1900
+ } | null;
1901
+ TIKTOK?: {
1902
+ text?: string | null;
1903
+ uploadIds?: Array<(string)> | null;
1904
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1905
+ } | null;
1906
+ LINKEDIN?: {
1907
+ text: string;
1908
+ uploadIds?: Array<(string)> | null;
1909
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1910
+ distribution?: {
1911
+ feedDistribution: 'NONE' | 'MAIN_FEED';
1912
+ } | null;
1913
+ isReshareDisabledByAuthor?: boolean | null;
1914
+ } | null;
1915
+ REDDIT?: {
1916
+ sr: string;
1917
+ text: string;
1918
+ description?: string | null;
1919
+ uploadIds?: Array<(string)> | null;
1920
+ url?: string | null;
1921
+ nsfw?: boolean | null;
1922
+ } | null;
1923
+ DISCORD?: {
1924
+ channelId: string;
1925
+ text?: string | null;
1926
+ uploadIds?: Array<(string)> | null;
1927
+ username?: string | null;
1928
+ avatarUrl?: string | null;
1929
+ } | null;
1930
+ SLACK?: {
1931
+ channelId: string;
1932
+ text?: string | null;
1933
+ uploadIds?: Array<(string)> | null;
1934
+ username?: string | null;
1935
+ avatarUrl?: string | null;
1936
+ } | null;
1937
+ YOUTUBE?: {
1938
+ type?: 'SHORT';
1939
+ uploadIds?: Array<(string)> | null;
1940
+ text?: string | null;
1941
+ description?: string | null;
1942
+ categoryId?: string | null;
1943
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1944
+ madeForKids?: boolean;
1945
+ } | null;
1946
+ TELEGRAM?: unknown;
1947
+ THREADS?: unknown;
1948
+ };
1949
+ error?: string | null;
1950
+ errors?: {
1951
+ TWITTER?: string | null;
1952
+ PINTEREST?: string | null;
1953
+ FACEBOOK?: string | null;
1954
+ INSTAGRAM?: string | null;
1955
+ TIKTOK?: string | null;
1956
+ LINKEDIN?: string | null;
1957
+ REDDIT?: string | null;
1958
+ DISCORD?: string | null;
1959
+ SLACK?: string | null;
1960
+ YOUTUBE?: string | null;
1961
+ TELEGRAM?: string | null;
1962
+ THREADS?: string | null;
1963
+ } | null;
1964
+ externalData?: {
1965
+ TWITTER?: {
1966
+ id?: string | null;
1967
+ permalink?: string | null;
1968
+ } | null;
1969
+ PINTEREST?: {
1970
+ id?: string | null;
1971
+ permalink?: string | null;
1972
+ } | null;
1973
+ FACEBOOK?: {
1974
+ id?: string | null;
1975
+ permalink?: string | null;
1976
+ videoId?: string | null;
1977
+ } | null;
1978
+ INSTAGRAM?: {
1979
+ id?: string | null;
1980
+ permalink?: string | null;
1981
+ } | null;
1982
+ TIKTOK?: {
1983
+ id?: string | null;
1984
+ permalink?: string | null;
1985
+ } | null;
1986
+ LINKEDIN?: {
1987
+ id?: string | null;
1988
+ permalink?: string | null;
1989
+ } | null;
1990
+ REDDIT?: {
1991
+ id?: string | null;
1992
+ permalink?: string | null;
1993
+ subreddit_name?: string | null;
1994
+ } | null;
1995
+ DISCORD?: {
1996
+ id?: string | null;
1997
+ permalink?: string | null;
1998
+ channelId?: string | null;
1999
+ } | null;
2000
+ SLACK?: {
2001
+ id?: string | null;
2002
+ permalink?: string | null;
2003
+ channelId?: string | null;
2004
+ } | null;
2005
+ YOUTUBE?: {
2006
+ id?: string | null;
2007
+ permalink?: string | null;
2008
+ } | null;
2009
+ TELEGRAM?: {
2010
+ id?: string | null;
2011
+ permalink?: string | null;
2012
+ } | null;
2013
+ THREADS?: {
2014
+ id?: string | null;
2015
+ permalink?: string | null;
2016
+ } | null;
2017
+ } | null;
2018
+ createdAt: string | null;
2019
+ updatedAt: string | null;
2020
+ deletedAt?: string | null;
2021
+ };
2022
+ /**
2023
+ * 400
2024
+ */
2025
+ 400: {
2026
+ message: string;
2027
+ issues?: Array<{
2028
+ message: string;
2029
+ path?: Array<(string | number)> | null;
2030
+ }> | null;
2031
+ };
2032
+ /**
2033
+ * 401
2034
+ */
2035
+ 401: {
2036
+ message: string;
2037
+ };
2038
+ /**
2039
+ * 403
2040
+ */
2041
+ 403: {
2042
+ message: string;
2043
+ };
2044
+ /**
2045
+ * 404
2046
+ */
2047
+ 404: {
2048
+ message: string;
2049
+ };
2050
+ /**
2051
+ * 500
2052
+ */
2053
+ 500: {
2054
+ message: string;
2055
+ };
2056
+ };
2057
+ };
2058
+ get: {
2059
+ req: PostGetListData;
2060
+ res: {
2061
+ /**
2062
+ * 200
2063
+ */
2064
+ 200: {
2065
+ items: Array<{
2066
+ id: string;
2067
+ teamId: string;
2068
+ title: string;
2069
+ postDate: string | null;
2070
+ postedDate?: string | null;
2071
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2072
+ data: {
2073
+ TWITTER?: {
2074
+ text?: string | null;
2075
+ uploadIds?: Array<(string)> | null;
2076
+ } | null;
2077
+ PINTEREST?: {
2078
+ text?: string | null;
2079
+ description?: string | null;
2080
+ boardName: string;
2081
+ uploadIds?: Array<(string)> | null;
2082
+ link?: string | null;
2083
+ altText?: string | null;
2084
+ note?: string | null;
2085
+ dominantColor?: string | null;
2086
+ } | null;
2087
+ FACEBOOK?: {
2088
+ type?: 'POST' | 'REEL' | 'STORY';
2089
+ text?: string | null;
2090
+ uploadIds?: Array<(string)> | null;
2091
+ } | null;
2092
+ INSTAGRAM?: {
2093
+ type?: 'POST' | 'REEL' | 'STORY';
2094
+ text?: string | null;
2095
+ uploadIds?: Array<(string)> | null;
2096
+ } | null;
2097
+ TIKTOK?: {
2098
+ text?: string | null;
2099
+ uploadIds?: Array<(string)> | null;
2100
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
2101
+ } | null;
2102
+ LINKEDIN?: {
2103
+ text: string;
2104
+ uploadIds?: Array<(string)> | null;
2105
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
2106
+ distribution?: {
2107
+ feedDistribution: 'NONE' | 'MAIN_FEED';
2108
+ } | null;
2109
+ isReshareDisabledByAuthor?: boolean | null;
2110
+ } | null;
2111
+ REDDIT?: {
2112
+ sr: string;
2113
+ text: string;
2114
+ description?: string | null;
2115
+ uploadIds?: Array<(string)> | null;
2116
+ url?: string | null;
2117
+ nsfw?: boolean | null;
2118
+ } | null;
2119
+ DISCORD?: {
2120
+ channelId: string;
2121
+ text?: string | null;
2122
+ uploadIds?: Array<(string)> | null;
2123
+ username?: string | null;
2124
+ avatarUrl?: string | null;
2125
+ } | null;
2126
+ SLACK?: {
2127
+ channelId: string;
2128
+ text?: string | null;
2129
+ uploadIds?: Array<(string)> | null;
2130
+ username?: string | null;
2131
+ avatarUrl?: string | null;
2132
+ } | null;
2133
+ YOUTUBE?: {
2134
+ type?: 'SHORT';
2135
+ uploadIds?: Array<(string)> | null;
2136
+ text?: string | null;
2137
+ description?: string | null;
2138
+ categoryId?: string | null;
2139
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
2140
+ madeForKids?: boolean;
2141
+ } | null;
2142
+ TELEGRAM?: unknown;
2143
+ THREADS?: unknown;
2144
+ };
2145
+ error?: string | null;
2146
+ errors?: {
2147
+ TWITTER?: string | null;
2148
+ PINTEREST?: string | null;
2149
+ FACEBOOK?: string | null;
2150
+ INSTAGRAM?: string | null;
2151
+ TIKTOK?: string | null;
2152
+ LINKEDIN?: string | null;
2153
+ REDDIT?: string | null;
2154
+ DISCORD?: string | null;
2155
+ SLACK?: string | null;
2156
+ YOUTUBE?: string | null;
2157
+ TELEGRAM?: string | null;
2158
+ THREADS?: string | null;
2159
+ } | null;
2160
+ externalData?: {
2161
+ TWITTER?: {
2162
+ id?: string | null;
2163
+ permalink?: string | null;
2164
+ } | null;
2165
+ PINTEREST?: {
2166
+ id?: string | null;
2167
+ permalink?: string | null;
2168
+ } | null;
2169
+ FACEBOOK?: {
2170
+ id?: string | null;
2171
+ permalink?: string | null;
2172
+ videoId?: string | null;
2173
+ } | null;
2174
+ INSTAGRAM?: {
2175
+ id?: string | null;
2176
+ permalink?: string | null;
2177
+ } | null;
2178
+ TIKTOK?: {
2179
+ id?: string | null;
2180
+ permalink?: string | null;
2181
+ } | null;
2182
+ LINKEDIN?: {
2183
+ id?: string | null;
2184
+ permalink?: string | null;
2185
+ } | null;
2186
+ REDDIT?: {
2187
+ id?: string | null;
2188
+ permalink?: string | null;
2189
+ subreddit_name?: string | null;
2190
+ } | null;
2191
+ DISCORD?: {
2192
+ id?: string | null;
2193
+ permalink?: string | null;
2194
+ channelId?: string | null;
2195
+ } | null;
2196
+ SLACK?: {
2197
+ id?: string | null;
2198
+ permalink?: string | null;
2199
+ channelId?: string | null;
2200
+ } | null;
2201
+ YOUTUBE?: {
2202
+ id?: string | null;
2203
+ permalink?: string | null;
2204
+ } | null;
2205
+ TELEGRAM?: {
2206
+ id?: string | null;
2207
+ permalink?: string | null;
2208
+ } | null;
2209
+ THREADS?: {
2210
+ id?: string | null;
2211
+ permalink?: string | null;
2212
+ } | null;
2213
+ } | null;
2214
+ createdAt: string | null;
2215
+ updatedAt: string | null;
2216
+ deletedAt?: string | null;
2217
+ uploads: Array<{
2218
+ postId: string;
2219
+ uploadId: string;
2220
+ createdAt: string | null;
2221
+ updatedAt: string | null;
2222
+ deletedAt?: string | null;
2223
+ upload: {
2224
+ id: string;
2225
+ teamId: string;
2226
+ expiresAt?: string | null;
2227
+ iconUrl?: string | null;
2228
+ thumbnailUrl?: string | null;
2229
+ url?: string | null;
2230
+ iconPath?: string | null;
2231
+ thumbnailPath?: string | null;
2232
+ path?: string | null;
2233
+ type: 'image' | 'video';
2234
+ width?: number | null;
2235
+ height?: number | null;
2236
+ fileSize?: number | null;
2237
+ videoLength?: number | null;
2238
+ mime?: string | null;
2239
+ ext?: string | null;
2240
+ createdAt: string | null;
2241
+ updatedAt: string | null;
2242
+ };
2243
+ }>;
2244
+ socialAccounts: Array<{
2245
+ postId: string;
2246
+ socialAccountId: string;
2247
+ createdAt: string | null;
2248
+ updatedAt: string | null;
2249
+ deletedAt?: string | null;
2250
+ socialAccount: {
2251
+ id: string;
2252
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
2253
+ teamId: string;
2254
+ username?: string | null;
2255
+ displayName?: string | null;
2256
+ externalId?: string | null;
2257
+ userUsername?: string | null;
2258
+ userDisplayName?: string | null;
2259
+ userId?: string | null;
2260
+ channels?: Array<{
2261
+ id: string;
2262
+ name?: string | null;
2263
+ username?: string | null;
2264
+ webhook?: {
2265
+ id?: string | null;
2266
+ name?: string | null;
2267
+ avatar?: string | null;
2268
+ url?: string | null;
2269
+ } | null;
2270
+ }> | null;
2271
+ createdAt: string | null;
2272
+ updatedAt: string | null;
2273
+ deletedAt?: string | null;
2274
+ };
2275
+ }>;
2276
+ }>;
2277
+ total: number;
2278
+ };
2279
+ /**
2280
+ * 400
2281
+ */
2282
+ 400: {
2283
+ message: string;
2284
+ issues?: Array<{
2285
+ message: string;
2286
+ path?: Array<(string | number)> | null;
2287
+ }> | null;
2288
+ };
2289
+ /**
2290
+ * 401
2291
+ */
2292
+ 401: {
2293
+ message: string;
2294
+ };
2295
+ /**
2296
+ * 403
2297
+ */
2298
+ 403: {
2299
+ message: string;
2300
+ };
2301
+ /**
2302
+ * 404
2303
+ */
2304
+ 404: {
2305
+ message: string;
2306
+ };
2307
+ /**
2308
+ * 500
2309
+ */
2310
+ 500: {
2311
+ message: string;
2312
+ };
2313
+ };
2314
+ };
2315
+ };
2316
+ '/api/v1/post/{id}': {
2317
+ get: {
2318
+ req: PostGetData;
2319
+ res: {
2320
+ /**
2321
+ * 200
2322
+ */
2323
+ 200: {
2324
+ id: string;
2325
+ teamId: string;
2326
+ title: string;
2327
+ postDate: string | null;
2328
+ postedDate?: string | null;
2329
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2330
+ data: {
2331
+ TWITTER?: {
2332
+ text?: string | null;
2333
+ uploadIds?: Array<(string)> | null;
2334
+ } | null;
2335
+ PINTEREST?: {
2336
+ text?: string | null;
2337
+ description?: string | null;
2338
+ boardName: string;
2339
+ uploadIds?: Array<(string)> | null;
2340
+ link?: string | null;
2341
+ altText?: string | null;
2342
+ note?: string | null;
2343
+ dominantColor?: string | null;
2344
+ } | null;
2345
+ FACEBOOK?: {
2346
+ type?: 'POST' | 'REEL' | 'STORY';
2347
+ text?: string | null;
2348
+ uploadIds?: Array<(string)> | null;
2349
+ } | null;
2350
+ INSTAGRAM?: {
2351
+ type?: 'POST' | 'REEL' | 'STORY';
2352
+ text?: string | null;
2353
+ uploadIds?: Array<(string)> | null;
2354
+ } | null;
2355
+ TIKTOK?: {
2356
+ text?: string | null;
2357
+ uploadIds?: Array<(string)> | null;
2358
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
2359
+ } | null;
2360
+ LINKEDIN?: {
2361
+ text: string;
2362
+ uploadIds?: Array<(string)> | null;
2363
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
2364
+ distribution?: {
2365
+ feedDistribution: 'NONE' | 'MAIN_FEED';
2366
+ } | null;
2367
+ isReshareDisabledByAuthor?: boolean | null;
2368
+ } | null;
2369
+ REDDIT?: {
2370
+ sr: string;
2371
+ text: string;
2372
+ description?: string | null;
2373
+ uploadIds?: Array<(string)> | null;
2374
+ url?: string | null;
2375
+ nsfw?: boolean | null;
2376
+ } | null;
2377
+ DISCORD?: {
2378
+ channelId: string;
2379
+ text?: string | null;
2380
+ uploadIds?: Array<(string)> | null;
2381
+ username?: string | null;
2382
+ avatarUrl?: string | null;
2383
+ } | null;
2384
+ SLACK?: {
2385
+ channelId: string;
2386
+ text?: string | null;
2387
+ uploadIds?: Array<(string)> | null;
2388
+ username?: string | null;
2389
+ avatarUrl?: string | null;
2390
+ } | null;
2391
+ YOUTUBE?: {
2392
+ type?: 'SHORT';
2393
+ uploadIds?: Array<(string)> | null;
2394
+ text?: string | null;
2395
+ description?: string | null;
2396
+ categoryId?: string | null;
2397
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
2398
+ madeForKids?: boolean;
2399
+ } | null;
2400
+ TELEGRAM?: unknown;
2401
+ THREADS?: unknown;
2402
+ };
2403
+ error?: string | null;
2404
+ errors?: {
2405
+ TWITTER?: string | null;
2406
+ PINTEREST?: string | null;
2407
+ FACEBOOK?: string | null;
2408
+ INSTAGRAM?: string | null;
2409
+ TIKTOK?: string | null;
2410
+ LINKEDIN?: string | null;
2411
+ REDDIT?: string | null;
2412
+ DISCORD?: string | null;
2413
+ SLACK?: string | null;
2414
+ YOUTUBE?: string | null;
2415
+ TELEGRAM?: string | null;
2416
+ THREADS?: string | null;
2417
+ } | null;
2418
+ externalData?: {
2419
+ TWITTER?: {
2420
+ id?: string | null;
2421
+ permalink?: string | null;
2422
+ } | null;
2423
+ PINTEREST?: {
2424
+ id?: string | null;
2425
+ permalink?: string | null;
2426
+ } | null;
2427
+ FACEBOOK?: {
2428
+ id?: string | null;
2429
+ permalink?: string | null;
2430
+ videoId?: string | null;
2431
+ } | null;
2432
+ INSTAGRAM?: {
2433
+ id?: string | null;
2434
+ permalink?: string | null;
2435
+ } | null;
2436
+ TIKTOK?: {
2437
+ id?: string | null;
2438
+ permalink?: string | null;
2439
+ } | null;
2440
+ LINKEDIN?: {
2441
+ id?: string | null;
2442
+ permalink?: string | null;
2443
+ } | null;
2444
+ REDDIT?: {
2445
+ id?: string | null;
2446
+ permalink?: string | null;
2447
+ subreddit_name?: string | null;
2448
+ } | null;
2449
+ DISCORD?: {
2450
+ id?: string | null;
2451
+ permalink?: string | null;
2452
+ channelId?: string | null;
2453
+ } | null;
2454
+ SLACK?: {
2455
+ id?: string | null;
2456
+ permalink?: string | null;
2457
+ channelId?: string | null;
2458
+ } | null;
2459
+ YOUTUBE?: {
2460
+ id?: string | null;
2461
+ permalink?: string | null;
2462
+ } | null;
2463
+ TELEGRAM?: {
2464
+ id?: string | null;
2465
+ permalink?: string | null;
2466
+ } | null;
2467
+ THREADS?: {
2468
+ id?: string | null;
2469
+ permalink?: string | null;
2470
+ } | null;
2471
+ } | null;
2472
+ createdAt: string | null;
2473
+ updatedAt: string | null;
2474
+ deletedAt?: string | null;
2475
+ uploads: Array<{
2476
+ postId: string;
2477
+ uploadId: string;
2478
+ createdAt: string | null;
2479
+ updatedAt: string | null;
2480
+ deletedAt?: string | null;
2481
+ upload: {
2482
+ id: string;
2483
+ teamId: string;
2484
+ expiresAt?: string | null;
2485
+ iconUrl?: string | null;
2486
+ thumbnailUrl?: string | null;
2487
+ url?: string | null;
2488
+ iconPath?: string | null;
2489
+ thumbnailPath?: string | null;
2490
+ path?: string | null;
2491
+ type: 'image' | 'video';
2492
+ width?: number | null;
2493
+ height?: number | null;
2494
+ fileSize?: number | null;
2495
+ videoLength?: number | null;
2496
+ mime?: string | null;
2497
+ ext?: string | null;
2498
+ createdAt: string | null;
2499
+ updatedAt: string | null;
2500
+ };
2501
+ }>;
2502
+ socialAccounts: Array<{
2503
+ postId: string;
2504
+ socialAccountId: string;
2505
+ createdAt: string | null;
2506
+ updatedAt: string | null;
2507
+ deletedAt?: string | null;
2508
+ socialAccount: {
2509
+ id: string;
2510
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
2511
+ teamId: string;
2512
+ username?: string | null;
2513
+ displayName?: string | null;
2514
+ externalId?: string | null;
2515
+ userUsername?: string | null;
2516
+ userDisplayName?: string | null;
2517
+ userId?: string | null;
2518
+ channels?: Array<{
2519
+ id: string;
2520
+ name?: string | null;
2521
+ username?: string | null;
2522
+ webhook?: {
2523
+ id?: string | null;
2524
+ name?: string | null;
2525
+ avatar?: string | null;
2526
+ url?: string | null;
2527
+ } | null;
2528
+ }> | null;
2529
+ createdAt: string | null;
2530
+ updatedAt: string | null;
2531
+ deletedAt?: string | null;
2532
+ };
2533
+ }>;
2534
+ };
2535
+ /**
2536
+ * 400
2537
+ */
2538
+ 400: {
2539
+ message: string;
2540
+ issues?: Array<{
2541
+ message: string;
2542
+ path?: Array<(string | number)> | null;
2543
+ }> | null;
2544
+ };
2545
+ /**
2546
+ * 401
2547
+ */
2548
+ 401: {
2549
+ message: string;
2550
+ };
2551
+ /**
2552
+ * 403
2553
+ */
2554
+ 403: {
2555
+ message: string;
2556
+ };
2557
+ /**
2558
+ * 404
2559
+ */
2560
+ 404: {
2561
+ message: string;
2562
+ };
2563
+ /**
2564
+ * 500
2565
+ */
2566
+ 500: {
2567
+ message: string;
2568
+ };
2569
+ };
2570
+ };
2571
+ put: {
2572
+ req: PostUpdateData;
2573
+ res: {
2574
+ /**
2575
+ * 200
2576
+ */
2577
+ 200: {
2578
+ id: string;
2579
+ teamId: string;
2580
+ title: string;
2581
+ postDate: string | null;
2582
+ postedDate?: string | null;
2583
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2584
+ data: {
2585
+ TWITTER?: {
2586
+ text?: string | null;
2587
+ uploadIds?: Array<(string)> | null;
2588
+ } | null;
2589
+ PINTEREST?: {
2590
+ text?: string | null;
2591
+ description?: string | null;
2592
+ boardName: string;
2593
+ uploadIds?: Array<(string)> | null;
2594
+ link?: string | null;
2595
+ altText?: string | null;
2596
+ note?: string | null;
2597
+ dominantColor?: string | null;
2598
+ } | null;
2599
+ FACEBOOK?: {
2600
+ type?: 'POST' | 'REEL' | 'STORY';
2601
+ text?: string | null;
2602
+ uploadIds?: Array<(string)> | null;
2603
+ } | null;
2604
+ INSTAGRAM?: {
2605
+ type?: 'POST' | 'REEL' | 'STORY';
2606
+ text?: string | null;
2607
+ uploadIds?: Array<(string)> | null;
2608
+ } | null;
2609
+ TIKTOK?: {
2610
+ text?: string | null;
2611
+ uploadIds?: Array<(string)> | null;
2612
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
2613
+ } | null;
2614
+ LINKEDIN?: {
2615
+ text: string;
2616
+ uploadIds?: Array<(string)> | null;
2617
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
2618
+ distribution?: {
2619
+ feedDistribution: 'NONE' | 'MAIN_FEED';
2620
+ } | null;
2621
+ isReshareDisabledByAuthor?: boolean | null;
2622
+ } | null;
2623
+ REDDIT?: {
2624
+ sr: string;
2625
+ text: string;
2626
+ description?: string | null;
2627
+ uploadIds?: Array<(string)> | null;
2628
+ url?: string | null;
2629
+ nsfw?: boolean | null;
2630
+ } | null;
2631
+ DISCORD?: {
2632
+ channelId: string;
2633
+ text?: string | null;
2634
+ uploadIds?: Array<(string)> | null;
2635
+ username?: string | null;
2636
+ avatarUrl?: string | null;
2637
+ } | null;
2638
+ SLACK?: {
2639
+ channelId: string;
2640
+ text?: string | null;
2641
+ uploadIds?: Array<(string)> | null;
2642
+ username?: string | null;
2643
+ avatarUrl?: string | null;
2644
+ } | null;
2645
+ YOUTUBE?: {
2646
+ type?: 'SHORT';
2647
+ uploadIds?: Array<(string)> | null;
2648
+ text?: string | null;
2649
+ description?: string | null;
2650
+ categoryId?: string | null;
2651
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
2652
+ madeForKids?: boolean;
2653
+ } | null;
2654
+ TELEGRAM?: unknown;
2655
+ THREADS?: unknown;
2656
+ };
2657
+ error?: string | null;
2658
+ errors?: {
2659
+ TWITTER?: string | null;
2660
+ PINTEREST?: string | null;
2661
+ FACEBOOK?: string | null;
2662
+ INSTAGRAM?: string | null;
2663
+ TIKTOK?: string | null;
2664
+ LINKEDIN?: string | null;
2665
+ REDDIT?: string | null;
2666
+ DISCORD?: string | null;
2667
+ SLACK?: string | null;
2668
+ YOUTUBE?: string | null;
2669
+ TELEGRAM?: string | null;
2670
+ THREADS?: string | null;
2671
+ } | null;
2672
+ externalData?: {
2673
+ TWITTER?: {
2674
+ id?: string | null;
2675
+ permalink?: string | null;
2676
+ } | null;
2677
+ PINTEREST?: {
2678
+ id?: string | null;
2679
+ permalink?: string | null;
2680
+ } | null;
2681
+ FACEBOOK?: {
2682
+ id?: string | null;
2683
+ permalink?: string | null;
2684
+ videoId?: string | null;
2685
+ } | null;
2686
+ INSTAGRAM?: {
2687
+ id?: string | null;
2688
+ permalink?: string | null;
2689
+ } | null;
2690
+ TIKTOK?: {
2691
+ id?: string | null;
2692
+ permalink?: string | null;
2693
+ } | null;
2694
+ LINKEDIN?: {
2695
+ id?: string | null;
2696
+ permalink?: string | null;
2697
+ } | null;
2698
+ REDDIT?: {
2699
+ id?: string | null;
2700
+ permalink?: string | null;
2701
+ subreddit_name?: string | null;
2702
+ } | null;
2703
+ DISCORD?: {
2704
+ id?: string | null;
2705
+ permalink?: string | null;
2706
+ channelId?: string | null;
2707
+ } | null;
2708
+ SLACK?: {
2709
+ id?: string | null;
2710
+ permalink?: string | null;
2711
+ channelId?: string | null;
2712
+ } | null;
2713
+ YOUTUBE?: {
2714
+ id?: string | null;
2715
+ permalink?: string | null;
2716
+ } | null;
2717
+ TELEGRAM?: {
2718
+ id?: string | null;
2719
+ permalink?: string | null;
2720
+ } | null;
2721
+ THREADS?: {
2722
+ id?: string | null;
2723
+ permalink?: string | null;
2724
+ } | null;
2725
+ } | null;
2726
+ createdAt: string | null;
2727
+ updatedAt: string | null;
2728
+ deletedAt?: string | null;
2729
+ };
2730
+ /**
2731
+ * 400
2732
+ */
2733
+ 400: {
2734
+ message: string;
2735
+ issues?: Array<{
2736
+ message: string;
2737
+ path?: Array<(string | number)> | null;
2738
+ }> | null;
2739
+ };
2740
+ /**
2741
+ * 401
2742
+ */
2743
+ 401: {
2744
+ message: string;
2745
+ };
2746
+ /**
2747
+ * 403
2748
+ */
2749
+ 403: {
2750
+ message: string;
2751
+ };
2752
+ /**
2753
+ * 404
2754
+ */
2755
+ 404: {
2756
+ message: string;
2757
+ };
2758
+ /**
2759
+ * 500
2760
+ */
2761
+ 500: {
2762
+ message: string;
2763
+ };
2764
+ };
2765
+ };
2766
+ delete: {
2767
+ req: PostDeleteData;
2768
+ res: {
2769
+ /**
2770
+ * 200
2771
+ */
2772
+ 200: {
2773
+ id: string;
2774
+ teamId: string;
2775
+ title: string;
2776
+ postDate: string | null;
2777
+ postedDate?: string | null;
2778
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2779
+ data: {
2780
+ TWITTER?: {
2781
+ text?: string | null;
2782
+ uploadIds?: Array<(string)> | null;
2783
+ } | null;
2784
+ PINTEREST?: {
2785
+ text?: string | null;
2786
+ description?: string | null;
2787
+ boardName: string;
2788
+ uploadIds?: Array<(string)> | null;
2789
+ link?: string | null;
2790
+ altText?: string | null;
2791
+ note?: string | null;
2792
+ dominantColor?: string | null;
2793
+ } | null;
2794
+ FACEBOOK?: {
2795
+ type?: 'POST' | 'REEL' | 'STORY';
2796
+ text?: string | null;
2797
+ uploadIds?: Array<(string)> | null;
2798
+ } | null;
2799
+ INSTAGRAM?: {
2800
+ type?: 'POST' | 'REEL' | 'STORY';
2801
+ text?: string | null;
2802
+ uploadIds?: Array<(string)> | null;
2803
+ } | null;
2804
+ TIKTOK?: {
2805
+ text?: string | null;
2806
+ uploadIds?: Array<(string)> | null;
2807
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
2808
+ } | null;
2809
+ LINKEDIN?: {
2810
+ text: string;
2811
+ uploadIds?: Array<(string)> | null;
2812
+ visibility?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
2813
+ distribution?: {
2814
+ feedDistribution: 'NONE' | 'MAIN_FEED';
2815
+ } | null;
2816
+ isReshareDisabledByAuthor?: boolean | null;
2817
+ } | null;
2818
+ REDDIT?: {
2819
+ sr: string;
2820
+ text: string;
2821
+ description?: string | null;
2822
+ uploadIds?: Array<(string)> | null;
2823
+ url?: string | null;
2824
+ nsfw?: boolean | null;
2825
+ } | null;
2826
+ DISCORD?: {
2827
+ channelId: string;
2828
+ text?: string | null;
2829
+ uploadIds?: Array<(string)> | null;
2830
+ username?: string | null;
2831
+ avatarUrl?: string | null;
2832
+ } | null;
2833
+ SLACK?: {
2834
+ channelId: string;
2835
+ text?: string | null;
2836
+ uploadIds?: Array<(string)> | null;
2837
+ username?: string | null;
2838
+ avatarUrl?: string | null;
2839
+ } | null;
2840
+ YOUTUBE?: {
2841
+ type?: 'SHORT';
2842
+ uploadIds?: Array<(string)> | null;
2843
+ text?: string | null;
2844
+ description?: string | null;
2845
+ categoryId?: string | null;
2846
+ privacyStatus?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
2847
+ madeForKids?: boolean;
2848
+ } | null;
2849
+ TELEGRAM?: unknown;
2850
+ THREADS?: unknown;
2851
+ };
2852
+ error?: string | null;
2853
+ errors?: {
2854
+ TWITTER?: string | null;
2855
+ PINTEREST?: string | null;
2856
+ FACEBOOK?: string | null;
2857
+ INSTAGRAM?: string | null;
2858
+ TIKTOK?: string | null;
2859
+ LINKEDIN?: string | null;
2860
+ REDDIT?: string | null;
2861
+ DISCORD?: string | null;
2862
+ SLACK?: string | null;
2863
+ YOUTUBE?: string | null;
2864
+ TELEGRAM?: string | null;
2865
+ THREADS?: string | null;
2866
+ } | null;
2867
+ externalData?: {
2868
+ TWITTER?: {
2869
+ id?: string | null;
2870
+ permalink?: string | null;
2871
+ } | null;
2872
+ PINTEREST?: {
2873
+ id?: string | null;
2874
+ permalink?: string | null;
2875
+ } | null;
2876
+ FACEBOOK?: {
2877
+ id?: string | null;
2878
+ permalink?: string | null;
2879
+ videoId?: string | null;
2880
+ } | null;
2881
+ INSTAGRAM?: {
2882
+ id?: string | null;
2883
+ permalink?: string | null;
2884
+ } | null;
2885
+ TIKTOK?: {
2886
+ id?: string | null;
2887
+ permalink?: string | null;
2888
+ } | null;
2889
+ LINKEDIN?: {
2890
+ id?: string | null;
2891
+ permalink?: string | null;
2892
+ } | null;
2893
+ REDDIT?: {
2894
+ id?: string | null;
2895
+ permalink?: string | null;
2896
+ subreddit_name?: string | null;
2897
+ } | null;
2898
+ DISCORD?: {
2899
+ id?: string | null;
2900
+ permalink?: string | null;
2901
+ channelId?: string | null;
2902
+ } | null;
2903
+ SLACK?: {
2904
+ id?: string | null;
2905
+ permalink?: string | null;
2906
+ channelId?: string | null;
2907
+ } | null;
2908
+ YOUTUBE?: {
2909
+ id?: string | null;
2910
+ permalink?: string | null;
2911
+ } | null;
2912
+ TELEGRAM?: {
2913
+ id?: string | null;
2914
+ permalink?: string | null;
2915
+ } | null;
2916
+ THREADS?: {
2917
+ id?: string | null;
2918
+ permalink?: string | null;
2919
+ } | null;
2920
+ } | null;
2921
+ createdAt: string | null;
2922
+ updatedAt: string | null;
2923
+ deletedAt?: string | null;
2924
+ };
2925
+ /**
2926
+ * 400
2927
+ */
2928
+ 400: {
2929
+ message: string;
2930
+ issues?: Array<{
2931
+ message: string;
2932
+ path?: Array<(string | number)> | null;
2933
+ }> | null;
2934
+ };
2935
+ /**
2936
+ * 401
2937
+ */
2938
+ 401: {
2939
+ message: string;
2940
+ };
2941
+ /**
2942
+ * 403
2943
+ */
2944
+ 403: {
2945
+ message: string;
2946
+ };
2947
+ /**
2948
+ * 404
2949
+ */
2950
+ 404: {
2951
+ message: string;
2952
+ };
2953
+ /**
2954
+ * 500
2955
+ */
2956
+ 500: {
2957
+ message: string;
2958
+ };
2959
+ };
2960
+ };
2961
+ };
2962
+ };
2963
+
2964
+ declare class AppService {
2965
+ readonly httpRequest: BaseHttpRequest;
2966
+ constructor(httpRequest: BaseHttpRequest);
2967
+ /**
2968
+ * Get health
2969
+ * @returns unknown 200
2970
+ * @throws ApiError
2971
+ */
2972
+ appGetHealth(): CancelablePromise<AppGetHealthResponse>;
2973
+ }
2974
+ declare class TeamService {
2975
+ readonly httpRequest: BaseHttpRequest;
2976
+ constructor(httpRequest: BaseHttpRequest);
2977
+ /**
2978
+ * Get team with users, invitations, api keys, bots, and social accounts
2979
+ * @returns unknown 200
2980
+ * @throws ApiError
2981
+ */
2982
+ teamGetTeam(): CancelablePromise<TeamGetTeamResponse>;
2983
+ }
2984
+ declare class UploadService {
2985
+ readonly httpRequest: BaseHttpRequest;
2986
+ constructor(httpRequest: BaseHttpRequest);
2987
+ /**
2988
+ * Create upload
2989
+ * Upload a file. This is the only endpoint that uses multipart/form-data.
2990
+ * @param data The data for the request.
2991
+ * @param data.formData Body
2992
+ * @returns unknown 200
2993
+ * @throws ApiError
2994
+ */
2995
+ uploadCreate(data?: UploadCreateData): CancelablePromise<UploadCreateResponse>;
2996
+ /**
2997
+ * Get upload list
2998
+ * @returns unknown 200
2999
+ * @throws ApiError
3000
+ */
3001
+ uploadGetList(): CancelablePromise<UploadGetListResponse>;
3002
+ /**
3003
+ * Delete many uploads
3004
+ * @param data The data for the request.
3005
+ * @param data.requestBody Body
3006
+ * @returns unknown 200
3007
+ * @throws ApiError
3008
+ */
3009
+ uploadDeleteMany(data?: UploadDeleteManyData): CancelablePromise<UploadDeleteManyResponse>;
3010
+ /**
3011
+ * Get upload
3012
+ * @param data The data for the request.
3013
+ * @param data.id
3014
+ * @returns unknown 200
3015
+ * @throws ApiError
3016
+ */
3017
+ uploadGet(data: UploadGetData): CancelablePromise<UploadGetResponse>;
3018
+ /**
3019
+ * Delete upload
3020
+ * @param data The data for the request.
3021
+ * @param data.id
3022
+ * @returns unknown 200
3023
+ * @throws ApiError
3024
+ */
3025
+ uploadDelete(data: UploadDeleteData): CancelablePromise<UploadDeleteResponse>;
3026
+ }
3027
+ declare class PostService {
3028
+ readonly httpRequest: BaseHttpRequest;
3029
+ constructor(httpRequest: BaseHttpRequest);
3030
+ /**
3031
+ * Create post
3032
+ * @param data The data for the request.
3033
+ * @param data.requestBody Body
3034
+ * @returns unknown 200
3035
+ * @throws ApiError
3036
+ */
3037
+ postCreate(data?: PostCreateData): CancelablePromise<PostCreateResponse>;
3038
+ /**
3039
+ * Get post list
3040
+ * @param data The data for the request.
3041
+ * @param data.status
3042
+ * @param data.orderBy
3043
+ * @param data.order
3044
+ * @param data.q
3045
+ * @param data.platforms
3046
+ * @param data.offset
3047
+ * @param data.limit
3048
+ * @returns unknown 200
3049
+ * @throws ApiError
3050
+ */
3051
+ postGetList(data?: PostGetListData): CancelablePromise<PostGetListResponse>;
3052
+ /**
3053
+ * Get post
3054
+ * @param data The data for the request.
3055
+ * @param data.id
3056
+ * @returns unknown 200
3057
+ * @throws ApiError
3058
+ */
3059
+ postGet(data: PostGetData): CancelablePromise<PostGetResponse>;
3060
+ /**
3061
+ * Update post
3062
+ * @param data The data for the request.
3063
+ * @param data.id
3064
+ * @param data.requestBody Body
3065
+ * @returns unknown 200
3066
+ * @throws ApiError
3067
+ */
3068
+ postUpdate(data: PostUpdateData): CancelablePromise<PostUpdateResponse>;
3069
+ /**
3070
+ * Delete post
3071
+ * @param data The data for the request.
3072
+ * @param data.id
3073
+ * @returns unknown 200
3074
+ * @throws ApiError
3075
+ */
3076
+ postDelete(data: PostDeleteData): CancelablePromise<PostDeleteResponse>;
3077
+ }
3078
+
3079
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3080
+ declare class Client {
3081
+ readonly app: AppService;
3082
+ readonly post: PostService;
3083
+ readonly team: TeamService;
3084
+ readonly upload: UploadService;
3085
+ readonly request: BaseHttpRequest;
3086
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3087
+ }
3088
+
3089
+ type ApiResult<TData = any> = {
3090
+ readonly body: TData;
3091
+ readonly ok: boolean;
3092
+ readonly status: number;
3093
+ readonly statusText: string;
3094
+ readonly url: string;
3095
+ };
3096
+
3097
+ declare class ApiError extends Error {
3098
+ readonly url: string;
3099
+ readonly status: number;
3100
+ readonly statusText: string;
3101
+ readonly body: unknown;
3102
+ readonly request: ApiRequestOptions;
3103
+ constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3104
+ }
3105
+
3106
+ declare class Bundlesocial extends Client {
3107
+ constructor(apiKey: string, options?: OpenAPIConfig);
3108
+ }
3109
+
3110
+ export { $OpenApiTs, ApiError, AppGetHealthResponse, BaseHttpRequest, Bundlesocial, CancelError, CancelablePromise, OpenAPI, OpenAPIConfig, PostCreateData, PostCreateResponse, PostDeleteData, PostDeleteResponse, PostGetData, PostGetListData, PostGetListResponse, PostGetResponse, PostUpdateData, PostUpdateResponse, TeamGetTeamResponse, UploadCreateData, UploadCreateResponse, UploadDeleteData, UploadDeleteManyData, UploadDeleteManyResponse, UploadDeleteResponse, UploadGetData, UploadGetListResponse, UploadGetResponse };