bundlesocial 1.6.0 → 2.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.
package/dist/index.d.ts CHANGED
@@ -75,33 +75,26 @@ type AppGetHealthResponse = {
75
75
  status: string;
76
76
  createdAt: string;
77
77
  };
78
- type TeamGetTeamResponse = {
78
+ type OrganizationGetOrganizationResponse = {
79
79
  id: string;
80
- name: string;
81
- avatarUrl?: string | null;
82
80
  createdById: string;
81
+ name?: string | null;
82
+ avatarUrl?: string | null;
83
+ defaultPaymentMethodFilled?: boolean;
84
+ billingAddressFilled?: boolean;
85
+ apiAccess?: boolean;
83
86
  createdAt: string | null;
84
87
  updatedAt: string | null;
85
88
  deletedAt?: string | null;
86
- users: Array<{
87
- userId: string;
88
- teamId: string;
89
+ teams: Array<{
90
+ id: string;
91
+ name: string;
92
+ avatarUrl?: string | null;
93
+ organizationId: string;
94
+ createdById: string;
89
95
  createdAt: string | null;
90
96
  updatedAt: string | null;
91
97
  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
98
  }>;
106
99
  createdBy: {
107
100
  id: string;
@@ -116,27 +109,81 @@ type TeamGetTeamResponse = {
116
109
  updatedAt: string | null;
117
110
  deletedAt?: string | null;
118
111
  };
119
- invitations: Array<{
112
+ organizationSubscription?: {
113
+ id: string;
114
+ organizationId: string;
115
+ stripeSubscriptionId: string;
116
+ stripeSubscriptionItems?: Array<{
117
+ id: string;
118
+ price: string;
119
+ quantity: number;
120
+ }> | null;
121
+ status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
122
+ metadata?: unknown;
123
+ cancelAtPeriodEnd: boolean;
124
+ created: string | null;
125
+ currentPeriodStart: string | null;
126
+ currentPeriodEnd: string | null;
127
+ endedAt?: string | null;
128
+ cancelAt?: string | null;
129
+ canceledAt?: string | null;
130
+ trialStart?: string | null;
131
+ trialEnd?: string | null;
132
+ createdAt: string | null;
133
+ updatedAt: string | null;
134
+ teamPlan?: {
135
+ id: string;
136
+ organizationSubscriptionId: string;
137
+ teamId: string;
138
+ stripePriceId: string;
139
+ tier: 'PRO';
140
+ createdAt: string | null;
141
+ updatedAt: string | null;
142
+ } | null;
143
+ } | null;
144
+ };
145
+ type TeamGetTeamData = {
146
+ id: string;
147
+ };
148
+ type TeamGetTeamResponse = {
149
+ id: string;
150
+ name: string;
151
+ avatarUrl?: string | null;
152
+ organizationId: string;
153
+ createdById: string;
154
+ createdAt: string | null;
155
+ updatedAt: string | null;
156
+ deletedAt?: string | null;
157
+ organization: {
120
158
  id: string;
121
- email: string;
122
- teamId: string;
123
159
  createdById: string;
160
+ name?: string | null;
161
+ avatarUrl?: string | null;
162
+ defaultPaymentMethodFilled?: boolean;
163
+ billingAddressFilled?: boolean;
164
+ apiAccess?: boolean;
124
165
  createdAt: string | null;
125
166
  updatedAt: string | null;
126
- }>;
127
- bots: Array<{
167
+ deletedAt?: string | null;
168
+ };
169
+ createdBy: {
128
170
  id: string;
129
- name: string;
171
+ externalId: string;
172
+ email: string;
173
+ emailVerified?: string | null;
174
+ firstName?: string | null;
175
+ lastName?: string | null;
130
176
  avatarUrl?: string | null;
131
- teamId: string;
177
+ role: 'ADMIN' | 'CUSTOMER';
132
178
  createdAt: string | null;
133
179
  updatedAt: string | null;
134
180
  deletedAt?: string | null;
135
- }>;
136
- webhooks: Array<{
181
+ };
182
+ bots: Array<{
137
183
  id: string;
184
+ name: string;
185
+ avatarUrl?: string | null;
138
186
  teamId: string;
139
- url: string;
140
187
  createdAt: string | null;
141
188
  updatedAt: string | null;
142
189
  deletedAt?: string | null;
@@ -169,16 +216,215 @@ type TeamGetTeamResponse = {
169
216
  usage: {
170
217
  monthlyPosts: number;
171
218
  };
219
+ teamPlan?: {
220
+ id: string;
221
+ organizationSubscriptionId: string;
222
+ teamId: string;
223
+ stripePriceId: string;
224
+ tier: 'PRO';
225
+ createdAt: string | null;
226
+ updatedAt: string | null;
227
+ organizationSubscription?: {
228
+ id: string;
229
+ organizationId: string;
230
+ stripeSubscriptionId: string;
231
+ stripeSubscriptionItems?: Array<{
232
+ id: string;
233
+ price: string;
234
+ quantity: number;
235
+ }> | null;
236
+ status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
237
+ metadata?: unknown;
238
+ cancelAtPeriodEnd: boolean;
239
+ created: string | null;
240
+ currentPeriodStart: string | null;
241
+ currentPeriodEnd: string | null;
242
+ endedAt?: string | null;
243
+ cancelAt?: string | null;
244
+ canceledAt?: string | null;
245
+ trialStart?: string | null;
246
+ trialEnd?: string | null;
247
+ createdAt: string | null;
248
+ updatedAt: string | null;
249
+ } | null;
250
+ } | null;
251
+ };
252
+ type TeamUpdateTeamData = {
253
+ id: string;
254
+ /**
255
+ * Body
256
+ */
257
+ requestBody?: {
258
+ name?: string;
259
+ avatarUrl?: string | null;
260
+ };
172
261
  };
173
- type UploadCreateData = {
262
+ type TeamUpdateTeamResponse = {
263
+ id: string;
264
+ name: string;
265
+ avatarUrl?: string | null;
266
+ organizationId: string;
267
+ createdById: string;
268
+ createdAt: string | null;
269
+ updatedAt: string | null;
270
+ deletedAt?: string | null;
271
+ };
272
+ type TeamDeleteTeamData = {
273
+ id: string;
274
+ };
275
+ type TeamDeleteTeamResponse = {
276
+ id: string;
277
+ name: string;
278
+ avatarUrl?: string | null;
279
+ organizationId: string;
280
+ createdById: string;
281
+ createdAt: string | null;
282
+ updatedAt: string | null;
283
+ deletedAt?: string | null;
284
+ };
285
+ type TeamCreateTeamData = {
174
286
  /**
175
287
  * Body
176
288
  */
177
- formData?: {
178
- file?: (Blob | File) | null;
289
+ requestBody?: {
290
+ name: string;
291
+ tier: 'FREE' | 'PRO';
292
+ avatarUrl?: string | null;
179
293
  };
180
294
  };
181
- type UploadCreateResponse = {
295
+ type TeamCreateTeamResponse = {
296
+ id: string;
297
+ name: string;
298
+ avatarUrl?: string | null;
299
+ organizationId: string;
300
+ createdById: string;
301
+ createdAt: string | null;
302
+ updatedAt: string | null;
303
+ deletedAt?: string | null;
304
+ };
305
+ type SocialAccountConnectData = {
306
+ /**
307
+ * Body
308
+ */
309
+ requestBody?: {
310
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'DISCORD' | 'SLACK';
311
+ teamId: string;
312
+ redirectUrl: string;
313
+ };
314
+ };
315
+ type SocialAccountConnectResponse = {
316
+ /**
317
+ * OAuth URL - Redirect user to this URL to connect social account
318
+ */
319
+ url: string;
320
+ };
321
+ type SocialAccountDisconnectData = {
322
+ /**
323
+ * Body
324
+ */
325
+ requestBody?: {
326
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'DISCORD' | 'SLACK';
327
+ teamId: string;
328
+ };
329
+ };
330
+ type SocialAccountDisconnectResponse = {
331
+ id: string;
332
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
333
+ teamId: string;
334
+ username?: string | null;
335
+ displayName?: string | null;
336
+ externalId?: string | null;
337
+ userUsername?: string | null;
338
+ userDisplayName?: string | null;
339
+ userId?: string | null;
340
+ channels?: Array<{
341
+ id: string;
342
+ name?: string | null;
343
+ username?: string | null;
344
+ webhook?: {
345
+ id?: string | null;
346
+ name?: string | null;
347
+ avatar?: string | null;
348
+ url?: string | null;
349
+ } | null;
350
+ }> | null;
351
+ createdAt: string | null;
352
+ updatedAt: string | null;
353
+ deletedAt?: string | null;
354
+ };
355
+ type SocialAccountSetChannelData = {
356
+ /**
357
+ * Body
358
+ */
359
+ requestBody?: {
360
+ type: 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'YOUTUBE';
361
+ teamId: string;
362
+ channelId: string;
363
+ };
364
+ };
365
+ type SocialAccountSetChannelResponse = {
366
+ id: string;
367
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
368
+ teamId: string;
369
+ username?: string | null;
370
+ displayName?: string | null;
371
+ externalId?: string | null;
372
+ userUsername?: string | null;
373
+ userDisplayName?: string | null;
374
+ userId?: string | null;
375
+ channels?: Array<{
376
+ id: string;
377
+ name?: string | null;
378
+ username?: string | null;
379
+ webhook?: {
380
+ id?: string | null;
381
+ name?: string | null;
382
+ avatar?: string | null;
383
+ url?: string | null;
384
+ } | null;
385
+ }> | null;
386
+ createdAt: string | null;
387
+ updatedAt: string | null;
388
+ deletedAt?: string | null;
389
+ };
390
+ type SocialAccountRefreshChannelsData = {
391
+ /**
392
+ * Body
393
+ */
394
+ requestBody?: {
395
+ type: 'DISCORD' | 'SLACK' | 'REDDIT' | 'PINTEREST';
396
+ teamId: string;
397
+ };
398
+ };
399
+ type SocialAccountRefreshChannelsResponse = {
400
+ id: string;
401
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
402
+ teamId: string;
403
+ username?: string | null;
404
+ displayName?: string | null;
405
+ externalId?: string | null;
406
+ userUsername?: string | null;
407
+ userDisplayName?: string | null;
408
+ userId?: string | null;
409
+ channels?: Array<{
410
+ id: string;
411
+ name?: string | null;
412
+ username?: string | null;
413
+ webhook?: {
414
+ id?: string | null;
415
+ name?: string | null;
416
+ avatar?: string | null;
417
+ url?: string | null;
418
+ } | null;
419
+ }> | null;
420
+ createdAt: string | null;
421
+ updatedAt: string | null;
422
+ deletedAt?: string | null;
423
+ };
424
+ type UploadGetListData = {
425
+ teamId: string;
426
+ };
427
+ type UploadGetListResponse = Array<{
182
428
  id: string;
183
429
  teamId: string;
184
430
  expiresAt?: string | null;
@@ -197,8 +443,24 @@ type UploadCreateResponse = {
197
443
  ext?: string | null;
198
444
  createdAt: string | null;
199
445
  updatedAt: string | null;
446
+ posts: Array<{
447
+ postId: string;
448
+ uploadId: string;
449
+ createdAt: string | null;
450
+ updatedAt: string | null;
451
+ deletedAt?: string | null;
452
+ }>;
453
+ }>;
454
+ type UploadCreateData = {
455
+ /**
456
+ * Body
457
+ */
458
+ formData?: {
459
+ teamId: string;
460
+ file?: (Blob | File) | null;
461
+ };
200
462
  };
201
- type UploadGetListResponse = Array<{
463
+ type UploadCreateResponse = {
202
464
  id: string;
203
465
  teamId: string;
204
466
  expiresAt?: string | null;
@@ -217,14 +479,7 @@ type UploadGetListResponse = Array<{
217
479
  ext?: string | null;
218
480
  createdAt: string | null;
219
481
  updatedAt: string | null;
220
- posts: Array<{
221
- postId: string;
222
- uploadId: string;
223
- createdAt: string | null;
224
- updatedAt: string | null;
225
- deletedAt?: string | null;
226
- }>;
227
- }>;
482
+ };
228
483
  type UploadDeleteManyData = {
229
484
  /**
230
485
  * Body
@@ -299,150 +554,10 @@ type UploadDeleteResponse = {
299
554
  createdAt: string | null;
300
555
  updatedAt: string | null;
301
556
  };
302
- type PostCreateData = {
303
- /**
304
- * Body
305
- */
306
- requestBody?: {
307
- title: string;
308
- postDate: string;
309
- status: 'DRAFT' | 'SCHEDULED';
310
- socialAccountTypes: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')>;
311
- data: {
312
- TWITTER?: {
313
- text?: string | null;
314
- uploadIds?: Array<(string)> | null;
315
- } | null;
316
- PINTEREST?: {
317
- text?: string | null;
318
- description?: string | null;
319
- boardName: string;
320
- uploadIds?: Array<(string)> | null;
321
- /**
322
- * The URL to which the Pin will link to.
323
- */
324
- link?: string | null;
325
- /**
326
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
327
- */
328
- altText?: string | null;
329
- /**
330
- * A note about the Pin. This is not visible to the public.
331
- */
332
- note?: string | null;
333
- /**
334
- * The dominant color of the image. This is used to display the image before it's loaded.
335
- */
336
- dominantColor?: string | null;
337
- } | null;
338
- FACEBOOK?: {
339
- type?: 'POST' | 'REEL' | 'STORY';
340
- text?: string | null;
341
- uploadIds?: Array<(string)> | null;
342
- } | null;
343
- INSTAGRAM?: {
344
- type?: 'POST' | 'REEL' | 'STORY';
345
- text?: string | null;
346
- uploadIds?: Array<(string)> | null;
347
- } | null;
348
- TIKTOK?: {
349
- text?: string | null;
350
- uploadIds?: Array<(string)> | null;
351
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
352
- /**
353
- * Set to true if the video is a paid partnership to promote a third-party business.
354
- */
355
- isBrandContent?: boolean | null;
356
- /**
357
- * Set to true if this video is promoting the creator's own business.
358
- */
359
- isOrganicBrandContent?: boolean | null;
360
- /**
361
- * If set to true, other TikTok users will not be allowed to make comments on this post.
362
- */
363
- disableComments?: boolean | null;
364
- /**
365
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
366
- */
367
- disableDuet?: boolean | null;
368
- /**
369
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
370
- */
371
- disableStitch?: boolean | null;
372
- } | null;
373
- LINKEDIN?: {
374
- text: string;
375
- uploadIds?: Array<(string)> | null;
376
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
377
- /**
378
- * Set to true if the post shouldn't be displayed in the main feed.
379
- */
380
- hideFromFeed?: boolean | null;
381
- /**
382
- * Set to true if the post is not allowed to be reshared.
383
- */
384
- disableReshare?: boolean | null;
385
- } | null;
386
- YOUTUBE?: {
387
- type?: 'VIDEO' | 'SHORT';
388
- uploadIds?: Array<(string)> | null;
389
- text?: string | null;
390
- description?: string | null;
391
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
392
- /**
393
- * Set to true if the video is made for kids.
394
- */
395
- madeForKids?: boolean | null;
396
- } | null;
397
- REDDIT?: {
398
- /**
399
- * Subreddit name. Example: r/subredditName or u/username
400
- */
401
- sr: string;
402
- text: string;
403
- description?: string | null;
404
- uploadIds?: Array<(string)> | null;
405
- /**
406
- * The URL to which the post will link to.
407
- */
408
- link?: string | null;
409
- /**
410
- * Set to true if the post is NSFW.
411
- */
412
- nsfw?: boolean | null;
413
- } | null;
414
- DISCORD?: {
415
- channelId: string;
416
- text?: string | null;
417
- uploadIds?: Array<(string)> | null;
418
- /**
419
- * The username to display as the author of the message.
420
- */
421
- username?: string | null;
422
- /**
423
- * Avatar url to display as the author of the message.
424
- */
425
- avatarUrl?: string | null;
426
- } | null;
427
- SLACK?: {
428
- channelId: string;
429
- text?: string | null;
430
- uploadIds?: Array<(string)> | null;
431
- /**
432
- * The username to display as the author of the message.
433
- */
434
- username?: string | null;
435
- /**
436
- * Avatar url to display as the author of the message.
437
- */
438
- avatarUrl?: string | null;
439
- } | null;
440
- TELEGRAM?: unknown;
441
- THREADS?: unknown;
442
- };
443
- };
557
+ type PostGetData = {
558
+ id: string;
444
559
  };
445
- type PostCreateResponse = {
560
+ type PostGetResponse = {
446
561
  id: string;
447
562
  teamId: string;
448
563
  title: string;
@@ -654,25 +769,77 @@ type PostCreateResponse = {
654
769
  createdAt: string | null;
655
770
  updatedAt: string | null;
656
771
  deletedAt?: string | null;
772
+ uploads: Array<{
773
+ postId: string;
774
+ uploadId: string;
775
+ createdAt: string | null;
776
+ updatedAt: string | null;
777
+ deletedAt?: string | null;
778
+ upload: {
779
+ id: string;
780
+ teamId: string;
781
+ expiresAt?: string | null;
782
+ iconUrl?: string | null;
783
+ thumbnailUrl?: string | null;
784
+ url?: string | null;
785
+ iconPath?: string | null;
786
+ thumbnailPath?: string | null;
787
+ path?: string | null;
788
+ type: 'image' | 'video';
789
+ width?: number | null;
790
+ height?: number | null;
791
+ fileSize?: number | null;
792
+ videoLength?: number | null;
793
+ mime?: string | null;
794
+ ext?: string | null;
795
+ createdAt: string | null;
796
+ updatedAt: string | null;
797
+ };
798
+ }>;
799
+ socialAccounts: Array<{
800
+ postId: string;
801
+ socialAccountId: string;
802
+ createdAt: string | null;
803
+ updatedAt: string | null;
804
+ deletedAt?: string | null;
805
+ socialAccount: {
806
+ id: string;
807
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
808
+ teamId: string;
809
+ username?: string | null;
810
+ displayName?: string | null;
811
+ externalId?: string | null;
812
+ userUsername?: string | null;
813
+ userDisplayName?: string | null;
814
+ userId?: string | null;
815
+ channels?: Array<{
816
+ id: string;
817
+ name?: string | null;
818
+ username?: string | null;
819
+ webhook?: {
820
+ id?: string | null;
821
+ name?: string | null;
822
+ avatar?: string | null;
823
+ url?: string | null;
824
+ } | null;
825
+ }> | null;
826
+ createdAt: string | null;
827
+ updatedAt: string | null;
828
+ deletedAt?: string | null;
829
+ };
830
+ }>;
657
831
  };
658
- type PostGetListData = {
659
- limit?: number | null;
660
- offset?: number | null;
661
- order?: 'ASC' | 'DESC' | null;
662
- orderBy?: 'createdAt' | 'updatedAt' | 'postDate' | 'postedDate' | 'deletedAt' | null;
663
- platforms?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')> | null;
664
- q?: string | null;
665
- status?: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING' | null;
666
- };
667
- type PostGetListResponse = {
668
- items: Array<{
669
- id: string;
670
- teamId: string;
671
- title: string;
672
- postDate: string | null;
673
- postedDate?: string | null;
674
- status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
675
- data: {
832
+ type PostUpdateData = {
833
+ id: string;
834
+ /**
835
+ * Body
836
+ */
837
+ requestBody?: {
838
+ title?: string;
839
+ postDate?: string;
840
+ status?: 'DRAFT' | 'SCHEDULED';
841
+ socialAccountTypes?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')>;
842
+ data?: {
676
843
  TWITTER?: {
677
844
  text?: string | null;
678
845
  uploadIds?: Array<(string)> | null;
@@ -804,155 +971,19 @@ type PostGetListResponse = {
804
971
  TELEGRAM?: unknown;
805
972
  THREADS?: unknown;
806
973
  };
807
- error?: string | null;
808
- errors?: {
809
- TWITTER?: string | null;
810
- PINTEREST?: string | null;
811
- FACEBOOK?: string | null;
812
- INSTAGRAM?: string | null;
813
- TIKTOK?: string | null;
814
- LINKEDIN?: string | null;
815
- REDDIT?: string | null;
816
- DISCORD?: string | null;
817
- SLACK?: string | null;
818
- YOUTUBE?: string | null;
819
- TELEGRAM?: string | null;
820
- THREADS?: string | null;
821
- } | null;
822
- externalData?: {
823
- TWITTER?: {
824
- id?: string | null;
825
- permalink?: string | null;
826
- } | null;
827
- PINTEREST?: {
828
- id?: string | null;
829
- permalink?: string | null;
830
- } | null;
831
- FACEBOOK?: {
832
- id?: string | null;
833
- postId?: string | null;
834
- videoId?: string | null;
835
- permalink?: string | null;
836
- } | null;
837
- INSTAGRAM?: {
838
- id?: string | null;
839
- permalink?: string | null;
840
- } | null;
841
- TIKTOK?: {
842
- id?: string | null;
843
- permalink?: string | null;
844
- } | null;
845
- LINKEDIN?: {
846
- id?: string | null;
847
- permalink?: string | null;
848
- } | null;
849
- REDDIT?: {
850
- id?: string | null;
851
- permalink?: string | null;
852
- subreddit_name?: string | null;
853
- } | null;
854
- DISCORD?: {
855
- id?: string | null;
856
- permalink?: string | null;
857
- channelId?: string | null;
858
- } | null;
859
- SLACK?: {
860
- id?: string | null;
861
- permalink?: string | null;
862
- channelId?: string | null;
863
- } | null;
864
- YOUTUBE?: {
865
- id?: string | null;
866
- permalink?: string | null;
867
- } | null;
868
- TELEGRAM?: {
869
- id?: string | null;
870
- permalink?: string | null;
871
- } | null;
872
- THREADS?: {
873
- id?: string | null;
874
- permalink?: string | null;
875
- } | null;
876
- } | null;
877
- createdAt: string | null;
878
- updatedAt: string | null;
879
- deletedAt?: string | null;
880
- uploads: Array<{
881
- postId: string;
882
- uploadId: string;
883
- createdAt: string | null;
884
- updatedAt: string | null;
885
- deletedAt?: string | null;
886
- upload: {
887
- id: string;
888
- teamId: string;
889
- expiresAt?: string | null;
890
- iconUrl?: string | null;
891
- thumbnailUrl?: string | null;
892
- url?: string | null;
893
- iconPath?: string | null;
894
- thumbnailPath?: string | null;
895
- path?: string | null;
896
- type: 'image' | 'video';
897
- width?: number | null;
898
- height?: number | null;
899
- fileSize?: number | null;
900
- videoLength?: number | null;
901
- mime?: string | null;
902
- ext?: string | null;
903
- createdAt: string | null;
904
- updatedAt: string | null;
905
- };
906
- }>;
907
- socialAccounts: Array<{
908
- postId: string;
909
- socialAccountId: string;
910
- createdAt: string | null;
911
- updatedAt: string | null;
912
- deletedAt?: string | null;
913
- socialAccount: {
914
- id: string;
915
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
916
- teamId: string;
917
- username?: string | null;
918
- displayName?: string | null;
919
- externalId?: string | null;
920
- userUsername?: string | null;
921
- userDisplayName?: string | null;
922
- userId?: string | null;
923
- channels?: Array<{
924
- id: string;
925
- name?: string | null;
926
- username?: string | null;
927
- webhook?: {
928
- id?: string | null;
929
- name?: string | null;
930
- avatar?: string | null;
931
- url?: string | null;
932
- } | null;
933
- }> | null;
934
- createdAt: string | null;
935
- updatedAt: string | null;
936
- deletedAt?: string | null;
937
- };
938
- }>;
939
- }>;
940
- total: number;
941
- };
942
- type PostGetData = {
943
- id: string;
944
- };
945
- type PostGetResponse = {
946
- id: string;
947
- teamId: string;
948
- title: string;
949
- postDate: string | null;
950
- postedDate?: string | null;
951
- status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
952
- data: {
953
- TWITTER?: {
954
- text?: string | null;
955
- uploadIds?: Array<(string)> | null;
974
+ };
975
+ };
976
+ type PostUpdateResponse = {
977
+ id: string;
978
+ teamId: string;
979
+ title: string;
980
+ postDate: string | null;
981
+ postedDate?: string | null;
982
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
983
+ data: {
984
+ TWITTER?: {
985
+ text?: string | null;
986
+ uploadIds?: Array<(string)> | null;
956
987
  } | null;
957
988
  PINTEREST?: {
958
989
  text?: string | null;
@@ -1154,211 +1185,11 @@ type PostGetResponse = {
1154
1185
  createdAt: string | null;
1155
1186
  updatedAt: string | null;
1156
1187
  deletedAt?: string | null;
1157
- uploads: Array<{
1158
- postId: string;
1159
- uploadId: string;
1160
- createdAt: string | null;
1161
- updatedAt: string | null;
1162
- deletedAt?: string | null;
1163
- upload: {
1164
- id: string;
1165
- teamId: string;
1166
- expiresAt?: string | null;
1167
- iconUrl?: string | null;
1168
- thumbnailUrl?: string | null;
1169
- url?: string | null;
1170
- iconPath?: string | null;
1171
- thumbnailPath?: string | null;
1172
- path?: string | null;
1173
- type: 'image' | 'video';
1174
- width?: number | null;
1175
- height?: number | null;
1176
- fileSize?: number | null;
1177
- videoLength?: number | null;
1178
- mime?: string | null;
1179
- ext?: string | null;
1180
- createdAt: string | null;
1181
- updatedAt: string | null;
1182
- };
1183
- }>;
1184
- socialAccounts: Array<{
1185
- postId: string;
1186
- socialAccountId: string;
1187
- createdAt: string | null;
1188
- updatedAt: string | null;
1189
- deletedAt?: string | null;
1190
- socialAccount: {
1191
- id: string;
1192
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
1193
- teamId: string;
1194
- username?: string | null;
1195
- displayName?: string | null;
1196
- externalId?: string | null;
1197
- userUsername?: string | null;
1198
- userDisplayName?: string | null;
1199
- userId?: string | null;
1200
- channels?: Array<{
1201
- id: string;
1202
- name?: string | null;
1203
- username?: string | null;
1204
- webhook?: {
1205
- id?: string | null;
1206
- name?: string | null;
1207
- avatar?: string | null;
1208
- url?: string | null;
1209
- } | null;
1210
- }> | null;
1211
- createdAt: string | null;
1212
- updatedAt: string | null;
1213
- deletedAt?: string | null;
1214
- };
1215
- }>;
1216
1188
  };
1217
- type PostUpdateData = {
1189
+ type PostDeleteData = {
1218
1190
  id: string;
1219
- /**
1220
- * Body
1221
- */
1222
- requestBody?: {
1223
- title?: string;
1224
- postDate?: string;
1225
- status?: 'DRAFT' | 'SCHEDULED';
1226
- socialAccountTypes?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')>;
1227
- data?: {
1228
- TWITTER?: {
1229
- text?: string | null;
1230
- uploadIds?: Array<(string)> | null;
1231
- } | null;
1232
- PINTEREST?: {
1233
- text?: string | null;
1234
- description?: string | null;
1235
- boardName: string;
1236
- uploadIds?: Array<(string)> | null;
1237
- /**
1238
- * The URL to which the Pin will link to.
1239
- */
1240
- link?: string | null;
1241
- /**
1242
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
1243
- */
1244
- altText?: string | null;
1245
- /**
1246
- * A note about the Pin. This is not visible to the public.
1247
- */
1248
- note?: string | null;
1249
- /**
1250
- * The dominant color of the image. This is used to display the image before it's loaded.
1251
- */
1252
- dominantColor?: string | null;
1253
- } | null;
1254
- FACEBOOK?: {
1255
- type?: 'POST' | 'REEL' | 'STORY';
1256
- text?: string | null;
1257
- uploadIds?: Array<(string)> | null;
1258
- } | null;
1259
- INSTAGRAM?: {
1260
- type?: 'POST' | 'REEL' | 'STORY';
1261
- text?: string | null;
1262
- uploadIds?: Array<(string)> | null;
1263
- } | null;
1264
- TIKTOK?: {
1265
- text?: string | null;
1266
- uploadIds?: Array<(string)> | null;
1267
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1268
- /**
1269
- * Set to true if the video is a paid partnership to promote a third-party business.
1270
- */
1271
- isBrandContent?: boolean | null;
1272
- /**
1273
- * Set to true if this video is promoting the creator's own business.
1274
- */
1275
- isOrganicBrandContent?: boolean | null;
1276
- /**
1277
- * If set to true, other TikTok users will not be allowed to make comments on this post.
1278
- */
1279
- disableComments?: boolean | null;
1280
- /**
1281
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
1282
- */
1283
- disableDuet?: boolean | null;
1284
- /**
1285
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
1286
- */
1287
- disableStitch?: boolean | null;
1288
- } | null;
1289
- LINKEDIN?: {
1290
- text: string;
1291
- uploadIds?: Array<(string)> | null;
1292
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1293
- /**
1294
- * Set to true if the post shouldn't be displayed in the main feed.
1295
- */
1296
- hideFromFeed?: boolean | null;
1297
- /**
1298
- * Set to true if the post is not allowed to be reshared.
1299
- */
1300
- disableReshare?: boolean | null;
1301
- } | null;
1302
- YOUTUBE?: {
1303
- type?: 'VIDEO' | 'SHORT';
1304
- uploadIds?: Array<(string)> | null;
1305
- text?: string | null;
1306
- description?: string | null;
1307
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1308
- /**
1309
- * Set to true if the video is made for kids.
1310
- */
1311
- madeForKids?: boolean | null;
1312
- } | null;
1313
- REDDIT?: {
1314
- /**
1315
- * Subreddit name. Example: r/subredditName or u/username
1316
- */
1317
- sr: string;
1318
- text: string;
1319
- description?: string | null;
1320
- uploadIds?: Array<(string)> | null;
1321
- /**
1322
- * The URL to which the post will link to.
1323
- */
1324
- link?: string | null;
1325
- /**
1326
- * Set to true if the post is NSFW.
1327
- */
1328
- nsfw?: boolean | null;
1329
- } | null;
1330
- DISCORD?: {
1331
- channelId: string;
1332
- text?: string | null;
1333
- uploadIds?: Array<(string)> | null;
1334
- /**
1335
- * The username to display as the author of the message.
1336
- */
1337
- username?: string | null;
1338
- /**
1339
- * Avatar url to display as the author of the message.
1340
- */
1341
- avatarUrl?: string | null;
1342
- } | null;
1343
- SLACK?: {
1344
- channelId: string;
1345
- text?: string | null;
1346
- uploadIds?: Array<(string)> | null;
1347
- /**
1348
- * The username to display as the author of the message.
1349
- */
1350
- username?: string | null;
1351
- /**
1352
- * Avatar url to display as the author of the message.
1353
- */
1354
- avatarUrl?: string | null;
1355
- } | null;
1356
- TELEGRAM?: unknown;
1357
- THREADS?: unknown;
1358
- };
1359
- };
1360
1191
  };
1361
- type PostUpdateResponse = {
1192
+ type PostDeleteResponse = {
1362
1193
  id: string;
1363
1194
  teamId: string;
1364
1195
  title: string;
@@ -1571,232 +1402,1310 @@ type PostUpdateResponse = {
1571
1402
  updatedAt: string | null;
1572
1403
  deletedAt?: string | null;
1573
1404
  };
1574
- type PostDeleteData = {
1575
- id: string;
1576
- };
1577
- type PostDeleteResponse = {
1578
- id: string;
1405
+ type PostGetListData = {
1406
+ limit?: number | null;
1407
+ offset?: number | null;
1408
+ order?: 'ASC' | 'DESC' | null;
1409
+ orderBy?: 'createdAt' | 'updatedAt' | 'postDate' | 'postedDate' | 'deletedAt' | null;
1410
+ platforms?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')> | null;
1411
+ q?: string | null;
1412
+ status?: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING' | null;
1579
1413
  teamId: string;
1580
- title: string;
1581
- postDate: string | null;
1582
- postedDate?: string | null;
1583
- status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1584
- data: {
1585
- TWITTER?: {
1586
- text?: string | null;
1587
- uploadIds?: Array<(string)> | null;
1588
- } | null;
1589
- PINTEREST?: {
1590
- text?: string | null;
1591
- description?: string | null;
1592
- boardName: string;
1593
- uploadIds?: Array<(string)> | null;
1594
- /**
1595
- * The URL to which the Pin will link to.
1596
- */
1597
- link?: string | null;
1598
- /**
1599
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
1600
- */
1601
- altText?: string | null;
1602
- /**
1603
- * A note about the Pin. This is not visible to the public.
1604
- */
1605
- note?: string | null;
1606
- /**
1607
- * The dominant color of the image. This is used to display the image before it's loaded.
1608
- */
1609
- dominantColor?: string | null;
1610
- } | null;
1611
- FACEBOOK?: {
1612
- type?: 'POST' | 'REEL' | 'STORY';
1613
- text?: string | null;
1614
- uploadIds?: Array<(string)> | null;
1615
- } | null;
1616
- INSTAGRAM?: {
1617
- type?: 'POST' | 'REEL' | 'STORY';
1618
- text?: string | null;
1619
- uploadIds?: Array<(string)> | null;
1414
+ };
1415
+ type PostGetListResponse = {
1416
+ items: Array<{
1417
+ id: string;
1418
+ teamId: string;
1419
+ title: string;
1420
+ postDate: string | null;
1421
+ postedDate?: string | null;
1422
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1423
+ data: {
1424
+ TWITTER?: {
1425
+ text?: string | null;
1426
+ uploadIds?: Array<(string)> | null;
1427
+ } | null;
1428
+ PINTEREST?: {
1429
+ text?: string | null;
1430
+ description?: string | null;
1431
+ boardName: string;
1432
+ uploadIds?: Array<(string)> | null;
1433
+ /**
1434
+ * The URL to which the Pin will link to.
1435
+ */
1436
+ link?: string | null;
1437
+ /**
1438
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
1439
+ */
1440
+ altText?: string | null;
1441
+ /**
1442
+ * A note about the Pin. This is not visible to the public.
1443
+ */
1444
+ note?: string | null;
1445
+ /**
1446
+ * The dominant color of the image. This is used to display the image before it's loaded.
1447
+ */
1448
+ dominantColor?: string | null;
1449
+ } | null;
1450
+ FACEBOOK?: {
1451
+ type?: 'POST' | 'REEL' | 'STORY';
1452
+ text?: string | null;
1453
+ uploadIds?: Array<(string)> | null;
1454
+ } | null;
1455
+ INSTAGRAM?: {
1456
+ type?: 'POST' | 'REEL' | 'STORY';
1457
+ text?: string | null;
1458
+ uploadIds?: Array<(string)> | null;
1459
+ } | null;
1460
+ TIKTOK?: {
1461
+ text?: string | null;
1462
+ uploadIds?: Array<(string)> | null;
1463
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1464
+ /**
1465
+ * Set to true if the video is a paid partnership to promote a third-party business.
1466
+ */
1467
+ isBrandContent?: boolean | null;
1468
+ /**
1469
+ * Set to true if this video is promoting the creator's own business.
1470
+ */
1471
+ isOrganicBrandContent?: boolean | null;
1472
+ /**
1473
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
1474
+ */
1475
+ disableComments?: boolean | null;
1476
+ /**
1477
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
1478
+ */
1479
+ disableDuet?: boolean | null;
1480
+ /**
1481
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
1482
+ */
1483
+ disableStitch?: boolean | null;
1484
+ } | null;
1485
+ LINKEDIN?: {
1486
+ text: string;
1487
+ uploadIds?: Array<(string)> | null;
1488
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1489
+ /**
1490
+ * Set to true if the post shouldn't be displayed in the main feed.
1491
+ */
1492
+ hideFromFeed?: boolean | null;
1493
+ /**
1494
+ * Set to true if the post is not allowed to be reshared.
1495
+ */
1496
+ disableReshare?: boolean | null;
1497
+ } | null;
1498
+ YOUTUBE?: {
1499
+ type?: 'VIDEO' | 'SHORT';
1500
+ uploadIds?: Array<(string)> | null;
1501
+ text?: string | null;
1502
+ description?: string | null;
1503
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1504
+ /**
1505
+ * Set to true if the video is made for kids.
1506
+ */
1507
+ madeForKids?: boolean | null;
1508
+ } | null;
1509
+ REDDIT?: {
1510
+ /**
1511
+ * Subreddit name. Example: r/subredditName or u/username
1512
+ */
1513
+ sr: string;
1514
+ text: string;
1515
+ description?: string | null;
1516
+ uploadIds?: Array<(string)> | null;
1517
+ /**
1518
+ * The URL to which the post will link to.
1519
+ */
1520
+ link?: string | null;
1521
+ /**
1522
+ * Set to true if the post is NSFW.
1523
+ */
1524
+ nsfw?: boolean | null;
1525
+ } | null;
1526
+ DISCORD?: {
1527
+ channelId: string;
1528
+ text?: string | null;
1529
+ uploadIds?: Array<(string)> | null;
1530
+ /**
1531
+ * The username to display as the author of the message.
1532
+ */
1533
+ username?: string | null;
1534
+ /**
1535
+ * Avatar url to display as the author of the message.
1536
+ */
1537
+ avatarUrl?: string | null;
1538
+ } | null;
1539
+ SLACK?: {
1540
+ channelId: string;
1541
+ text?: string | null;
1542
+ uploadIds?: Array<(string)> | null;
1543
+ /**
1544
+ * The username to display as the author of the message.
1545
+ */
1546
+ username?: string | null;
1547
+ /**
1548
+ * Avatar url to display as the author of the message.
1549
+ */
1550
+ avatarUrl?: string | null;
1551
+ } | null;
1552
+ TELEGRAM?: unknown;
1553
+ THREADS?: unknown;
1554
+ };
1555
+ error?: string | null;
1556
+ errors?: {
1557
+ TWITTER?: string | null;
1558
+ PINTEREST?: string | null;
1559
+ FACEBOOK?: string | null;
1560
+ INSTAGRAM?: string | null;
1561
+ TIKTOK?: string | null;
1562
+ LINKEDIN?: string | null;
1563
+ REDDIT?: string | null;
1564
+ DISCORD?: string | null;
1565
+ SLACK?: string | null;
1566
+ YOUTUBE?: string | null;
1567
+ TELEGRAM?: string | null;
1568
+ THREADS?: string | null;
1620
1569
  } | null;
1621
- TIKTOK?: {
1622
- text?: string | null;
1623
- uploadIds?: Array<(string)> | null;
1624
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1625
- /**
1626
- * Set to true if the video is a paid partnership to promote a third-party business.
1627
- */
1628
- isBrandContent?: boolean | null;
1629
- /**
1630
- * Set to true if this video is promoting the creator's own business.
1631
- */
1632
- isOrganicBrandContent?: boolean | null;
1633
- /**
1634
- * If set to true, other TikTok users will not be allowed to make comments on this post.
1635
- */
1636
- disableComments?: boolean | null;
1637
- /**
1638
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
1639
- */
1640
- disableDuet?: boolean | null;
1641
- /**
1642
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
1643
- */
1644
- disableStitch?: boolean | null;
1645
- } | null;
1646
- LINKEDIN?: {
1647
- text: string;
1648
- uploadIds?: Array<(string)> | null;
1649
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1650
- /**
1651
- * Set to true if the post shouldn't be displayed in the main feed.
1652
- */
1653
- hideFromFeed?: boolean | null;
1654
- /**
1655
- * Set to true if the post is not allowed to be reshared.
1656
- */
1657
- disableReshare?: boolean | null;
1658
- } | null;
1659
- YOUTUBE?: {
1660
- type?: 'VIDEO' | 'SHORT';
1661
- uploadIds?: Array<(string)> | null;
1662
- text?: string | null;
1663
- description?: string | null;
1664
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1665
- /**
1666
- * Set to true if the video is made for kids.
1667
- */
1668
- madeForKids?: boolean | null;
1669
- } | null;
1670
- REDDIT?: {
1671
- /**
1672
- * Subreddit name. Example: r/subredditName or u/username
1673
- */
1674
- sr: string;
1675
- text: string;
1676
- description?: string | null;
1677
- uploadIds?: Array<(string)> | null;
1678
- /**
1679
- * The URL to which the post will link to.
1680
- */
1681
- link?: string | null;
1682
- /**
1683
- * Set to true if the post is NSFW.
1684
- */
1685
- nsfw?: boolean | null;
1686
- } | null;
1687
- DISCORD?: {
1688
- channelId: string;
1689
- text?: string | null;
1690
- uploadIds?: Array<(string)> | null;
1691
- /**
1692
- * The username to display as the author of the message.
1693
- */
1694
- username?: string | null;
1695
- /**
1696
- * Avatar url to display as the author of the message.
1697
- */
1698
- avatarUrl?: string | null;
1699
- } | null;
1700
- SLACK?: {
1701
- channelId: string;
1702
- text?: string | null;
1703
- uploadIds?: Array<(string)> | null;
1704
- /**
1705
- * The username to display as the author of the message.
1706
- */
1707
- username?: string | null;
1708
- /**
1709
- * Avatar url to display as the author of the message.
1710
- */
1711
- avatarUrl?: string | null;
1570
+ externalData?: {
1571
+ TWITTER?: {
1572
+ id?: string | null;
1573
+ permalink?: string | null;
1574
+ } | null;
1575
+ PINTEREST?: {
1576
+ id?: string | null;
1577
+ permalink?: string | null;
1578
+ } | null;
1579
+ FACEBOOK?: {
1580
+ id?: string | null;
1581
+ postId?: string | null;
1582
+ videoId?: string | null;
1583
+ permalink?: string | null;
1584
+ } | null;
1585
+ INSTAGRAM?: {
1586
+ id?: string | null;
1587
+ permalink?: string | null;
1588
+ } | null;
1589
+ TIKTOK?: {
1590
+ id?: string | null;
1591
+ permalink?: string | null;
1592
+ } | null;
1593
+ LINKEDIN?: {
1594
+ id?: string | null;
1595
+ permalink?: string | null;
1596
+ } | null;
1597
+ REDDIT?: {
1598
+ id?: string | null;
1599
+ permalink?: string | null;
1600
+ subreddit_name?: string | null;
1601
+ } | null;
1602
+ DISCORD?: {
1603
+ id?: string | null;
1604
+ permalink?: string | null;
1605
+ channelId?: string | null;
1606
+ } | null;
1607
+ SLACK?: {
1608
+ id?: string | null;
1609
+ permalink?: string | null;
1610
+ channelId?: string | null;
1611
+ } | null;
1612
+ YOUTUBE?: {
1613
+ id?: string | null;
1614
+ permalink?: string | null;
1615
+ } | null;
1616
+ TELEGRAM?: {
1617
+ id?: string | null;
1618
+ permalink?: string | null;
1619
+ } | null;
1620
+ THREADS?: {
1621
+ id?: string | null;
1622
+ permalink?: string | null;
1623
+ } | null;
1712
1624
  } | null;
1713
- TELEGRAM?: unknown;
1714
- THREADS?: unknown;
1625
+ createdAt: string | null;
1626
+ updatedAt: string | null;
1627
+ deletedAt?: string | null;
1628
+ uploads: Array<{
1629
+ postId: string;
1630
+ uploadId: string;
1631
+ createdAt: string | null;
1632
+ updatedAt: string | null;
1633
+ deletedAt?: string | null;
1634
+ upload: {
1635
+ id: string;
1636
+ teamId: string;
1637
+ expiresAt?: string | null;
1638
+ iconUrl?: string | null;
1639
+ thumbnailUrl?: string | null;
1640
+ url?: string | null;
1641
+ iconPath?: string | null;
1642
+ thumbnailPath?: string | null;
1643
+ path?: string | null;
1644
+ type: 'image' | 'video';
1645
+ width?: number | null;
1646
+ height?: number | null;
1647
+ fileSize?: number | null;
1648
+ videoLength?: number | null;
1649
+ mime?: string | null;
1650
+ ext?: string | null;
1651
+ createdAt: string | null;
1652
+ updatedAt: string | null;
1653
+ };
1654
+ }>;
1655
+ socialAccounts: Array<{
1656
+ postId: string;
1657
+ socialAccountId: string;
1658
+ createdAt: string | null;
1659
+ updatedAt: string | null;
1660
+ deletedAt?: string | null;
1661
+ socialAccount: {
1662
+ id: string;
1663
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
1664
+ teamId: string;
1665
+ username?: string | null;
1666
+ displayName?: string | null;
1667
+ externalId?: string | null;
1668
+ userUsername?: string | null;
1669
+ userDisplayName?: string | null;
1670
+ userId?: string | null;
1671
+ channels?: Array<{
1672
+ id: string;
1673
+ name?: string | null;
1674
+ username?: string | null;
1675
+ webhook?: {
1676
+ id?: string | null;
1677
+ name?: string | null;
1678
+ avatar?: string | null;
1679
+ url?: string | null;
1680
+ } | null;
1681
+ }> | null;
1682
+ createdAt: string | null;
1683
+ updatedAt: string | null;
1684
+ deletedAt?: string | null;
1685
+ };
1686
+ }>;
1687
+ }>;
1688
+ total: number;
1689
+ };
1690
+ type PostCreateData = {
1691
+ /**
1692
+ * Body
1693
+ */
1694
+ requestBody?: {
1695
+ teamId: string;
1696
+ title: string;
1697
+ postDate: string;
1698
+ status: 'DRAFT' | 'SCHEDULED';
1699
+ socialAccountTypes: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK')>;
1700
+ data: {
1701
+ TWITTER?: {
1702
+ text?: string | null;
1703
+ uploadIds?: Array<(string)> | null;
1704
+ } | null;
1705
+ PINTEREST?: {
1706
+ text?: string | null;
1707
+ description?: string | null;
1708
+ boardName: string;
1709
+ uploadIds?: Array<(string)> | null;
1710
+ /**
1711
+ * The URL to which the Pin will link to.
1712
+ */
1713
+ link?: string | null;
1714
+ /**
1715
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
1716
+ */
1717
+ altText?: string | null;
1718
+ /**
1719
+ * A note about the Pin. This is not visible to the public.
1720
+ */
1721
+ note?: string | null;
1722
+ /**
1723
+ * The dominant color of the image. This is used to display the image before it's loaded.
1724
+ */
1725
+ dominantColor?: string | null;
1726
+ } | null;
1727
+ FACEBOOK?: {
1728
+ type?: 'POST' | 'REEL' | 'STORY';
1729
+ text?: string | null;
1730
+ uploadIds?: Array<(string)> | null;
1731
+ } | null;
1732
+ INSTAGRAM?: {
1733
+ type?: 'POST' | 'REEL' | 'STORY';
1734
+ text?: string | null;
1735
+ uploadIds?: Array<(string)> | null;
1736
+ } | null;
1737
+ TIKTOK?: {
1738
+ text?: string | null;
1739
+ uploadIds?: Array<(string)> | null;
1740
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1741
+ /**
1742
+ * Set to true if the video is a paid partnership to promote a third-party business.
1743
+ */
1744
+ isBrandContent?: boolean | null;
1745
+ /**
1746
+ * Set to true if this video is promoting the creator's own business.
1747
+ */
1748
+ isOrganicBrandContent?: boolean | null;
1749
+ /**
1750
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
1751
+ */
1752
+ disableComments?: boolean | null;
1753
+ /**
1754
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
1755
+ */
1756
+ disableDuet?: boolean | null;
1757
+ /**
1758
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
1759
+ */
1760
+ disableStitch?: boolean | null;
1761
+ } | null;
1762
+ LINKEDIN?: {
1763
+ text: string;
1764
+ uploadIds?: Array<(string)> | null;
1765
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1766
+ /**
1767
+ * Set to true if the post shouldn't be displayed in the main feed.
1768
+ */
1769
+ hideFromFeed?: boolean | null;
1770
+ /**
1771
+ * Set to true if the post is not allowed to be reshared.
1772
+ */
1773
+ disableReshare?: boolean | null;
1774
+ } | null;
1775
+ YOUTUBE?: {
1776
+ type?: 'VIDEO' | 'SHORT';
1777
+ uploadIds?: Array<(string)> | null;
1778
+ text?: string | null;
1779
+ description?: string | null;
1780
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1781
+ /**
1782
+ * Set to true if the video is made for kids.
1783
+ */
1784
+ madeForKids?: boolean | null;
1785
+ } | null;
1786
+ REDDIT?: {
1787
+ /**
1788
+ * Subreddit name. Example: r/subredditName or u/username
1789
+ */
1790
+ sr: string;
1791
+ text: string;
1792
+ description?: string | null;
1793
+ uploadIds?: Array<(string)> | null;
1794
+ /**
1795
+ * The URL to which the post will link to.
1796
+ */
1797
+ link?: string | null;
1798
+ /**
1799
+ * Set to true if the post is NSFW.
1800
+ */
1801
+ nsfw?: boolean | null;
1802
+ } | null;
1803
+ DISCORD?: {
1804
+ channelId: string;
1805
+ text?: string | null;
1806
+ uploadIds?: Array<(string)> | null;
1807
+ /**
1808
+ * The username to display as the author of the message.
1809
+ */
1810
+ username?: string | null;
1811
+ /**
1812
+ * Avatar url to display as the author of the message.
1813
+ */
1814
+ avatarUrl?: string | null;
1815
+ } | null;
1816
+ SLACK?: {
1817
+ channelId: string;
1818
+ text?: string | null;
1819
+ uploadIds?: Array<(string)> | null;
1820
+ /**
1821
+ * The username to display as the author of the message.
1822
+ */
1823
+ username?: string | null;
1824
+ /**
1825
+ * Avatar url to display as the author of the message.
1826
+ */
1827
+ avatarUrl?: string | null;
1828
+ } | null;
1829
+ TELEGRAM?: unknown;
1830
+ THREADS?: unknown;
1831
+ };
1832
+ };
1833
+ };
1834
+ type PostCreateResponse = {
1835
+ id: string;
1836
+ teamId: string;
1837
+ title: string;
1838
+ postDate: string | null;
1839
+ postedDate?: string | null;
1840
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1841
+ data: {
1842
+ TWITTER?: {
1843
+ text?: string | null;
1844
+ uploadIds?: Array<(string)> | null;
1845
+ } | null;
1846
+ PINTEREST?: {
1847
+ text?: string | null;
1848
+ description?: string | null;
1849
+ boardName: string;
1850
+ uploadIds?: Array<(string)> | null;
1851
+ /**
1852
+ * The URL to which the Pin will link to.
1853
+ */
1854
+ link?: string | null;
1855
+ /**
1856
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
1857
+ */
1858
+ altText?: string | null;
1859
+ /**
1860
+ * A note about the Pin. This is not visible to the public.
1861
+ */
1862
+ note?: string | null;
1863
+ /**
1864
+ * The dominant color of the image. This is used to display the image before it's loaded.
1865
+ */
1866
+ dominantColor?: string | null;
1867
+ } | null;
1868
+ FACEBOOK?: {
1869
+ type?: 'POST' | 'REEL' | 'STORY';
1870
+ text?: string | null;
1871
+ uploadIds?: Array<(string)> | null;
1872
+ } | null;
1873
+ INSTAGRAM?: {
1874
+ type?: 'POST' | 'REEL' | 'STORY';
1875
+ text?: string | null;
1876
+ uploadIds?: Array<(string)> | null;
1877
+ } | null;
1878
+ TIKTOK?: {
1879
+ text?: string | null;
1880
+ uploadIds?: Array<(string)> | null;
1881
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1882
+ /**
1883
+ * Set to true if the video is a paid partnership to promote a third-party business.
1884
+ */
1885
+ isBrandContent?: boolean | null;
1886
+ /**
1887
+ * Set to true if this video is promoting the creator's own business.
1888
+ */
1889
+ isOrganicBrandContent?: boolean | null;
1890
+ /**
1891
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
1892
+ */
1893
+ disableComments?: boolean | null;
1894
+ /**
1895
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
1896
+ */
1897
+ disableDuet?: boolean | null;
1898
+ /**
1899
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
1900
+ */
1901
+ disableStitch?: boolean | null;
1902
+ } | null;
1903
+ LINKEDIN?: {
1904
+ text: string;
1905
+ uploadIds?: Array<(string)> | null;
1906
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1907
+ /**
1908
+ * Set to true if the post shouldn't be displayed in the main feed.
1909
+ */
1910
+ hideFromFeed?: boolean | null;
1911
+ /**
1912
+ * Set to true if the post is not allowed to be reshared.
1913
+ */
1914
+ disableReshare?: boolean | null;
1915
+ } | null;
1916
+ YOUTUBE?: {
1917
+ type?: 'VIDEO' | 'SHORT';
1918
+ uploadIds?: Array<(string)> | null;
1919
+ text?: string | null;
1920
+ description?: string | null;
1921
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1922
+ /**
1923
+ * Set to true if the video is made for kids.
1924
+ */
1925
+ madeForKids?: boolean | null;
1926
+ } | null;
1927
+ REDDIT?: {
1928
+ /**
1929
+ * Subreddit name. Example: r/subredditName or u/username
1930
+ */
1931
+ sr: string;
1932
+ text: string;
1933
+ description?: string | null;
1934
+ uploadIds?: Array<(string)> | null;
1935
+ /**
1936
+ * The URL to which the post will link to.
1937
+ */
1938
+ link?: string | null;
1939
+ /**
1940
+ * Set to true if the post is NSFW.
1941
+ */
1942
+ nsfw?: boolean | null;
1943
+ } | null;
1944
+ DISCORD?: {
1945
+ channelId: string;
1946
+ text?: string | null;
1947
+ uploadIds?: Array<(string)> | null;
1948
+ /**
1949
+ * The username to display as the author of the message.
1950
+ */
1951
+ username?: string | null;
1952
+ /**
1953
+ * Avatar url to display as the author of the message.
1954
+ */
1955
+ avatarUrl?: string | null;
1956
+ } | null;
1957
+ SLACK?: {
1958
+ channelId: string;
1959
+ text?: string | null;
1960
+ uploadIds?: Array<(string)> | null;
1961
+ /**
1962
+ * The username to display as the author of the message.
1963
+ */
1964
+ username?: string | null;
1965
+ /**
1966
+ * Avatar url to display as the author of the message.
1967
+ */
1968
+ avatarUrl?: string | null;
1969
+ } | null;
1970
+ TELEGRAM?: unknown;
1971
+ THREADS?: unknown;
1972
+ };
1973
+ error?: string | null;
1974
+ errors?: {
1975
+ TWITTER?: string | null;
1976
+ PINTEREST?: string | null;
1977
+ FACEBOOK?: string | null;
1978
+ INSTAGRAM?: string | null;
1979
+ TIKTOK?: string | null;
1980
+ LINKEDIN?: string | null;
1981
+ REDDIT?: string | null;
1982
+ DISCORD?: string | null;
1983
+ SLACK?: string | null;
1984
+ YOUTUBE?: string | null;
1985
+ TELEGRAM?: string | null;
1986
+ THREADS?: string | null;
1987
+ } | null;
1988
+ externalData?: {
1989
+ TWITTER?: {
1990
+ id?: string | null;
1991
+ permalink?: string | null;
1992
+ } | null;
1993
+ PINTEREST?: {
1994
+ id?: string | null;
1995
+ permalink?: string | null;
1996
+ } | null;
1997
+ FACEBOOK?: {
1998
+ id?: string | null;
1999
+ postId?: string | null;
2000
+ videoId?: string | null;
2001
+ permalink?: string | null;
2002
+ } | null;
2003
+ INSTAGRAM?: {
2004
+ id?: string | null;
2005
+ permalink?: string | null;
2006
+ } | null;
2007
+ TIKTOK?: {
2008
+ id?: string | null;
2009
+ permalink?: string | null;
2010
+ } | null;
2011
+ LINKEDIN?: {
2012
+ id?: string | null;
2013
+ permalink?: string | null;
2014
+ } | null;
2015
+ REDDIT?: {
2016
+ id?: string | null;
2017
+ permalink?: string | null;
2018
+ subreddit_name?: string | null;
2019
+ } | null;
2020
+ DISCORD?: {
2021
+ id?: string | null;
2022
+ permalink?: string | null;
2023
+ channelId?: string | null;
2024
+ } | null;
2025
+ SLACK?: {
2026
+ id?: string | null;
2027
+ permalink?: string | null;
2028
+ channelId?: string | null;
2029
+ } | null;
2030
+ YOUTUBE?: {
2031
+ id?: string | null;
2032
+ permalink?: string | null;
2033
+ } | null;
2034
+ TELEGRAM?: {
2035
+ id?: string | null;
2036
+ permalink?: string | null;
2037
+ } | null;
2038
+ THREADS?: {
2039
+ id?: string | null;
2040
+ permalink?: string | null;
2041
+ } | null;
2042
+ } | null;
2043
+ createdAt: string | null;
2044
+ updatedAt: string | null;
2045
+ deletedAt?: string | null;
2046
+ };
2047
+ type $OpenApiTs = {
2048
+ '/api/v1/': {
2049
+ get: {
2050
+ res: {
2051
+ /**
2052
+ * 200
2053
+ */
2054
+ 200: {
2055
+ status: string;
2056
+ createdAt: string;
2057
+ };
2058
+ /**
2059
+ * 400
2060
+ */
2061
+ 400: {
2062
+ message: string;
2063
+ issues?: Array<{
2064
+ message: string;
2065
+ path?: Array<(string | number)> | null;
2066
+ }> | null;
2067
+ };
2068
+ /**
2069
+ * 401
2070
+ */
2071
+ 401: {
2072
+ message: string;
2073
+ };
2074
+ /**
2075
+ * 403
2076
+ */
2077
+ 403: {
2078
+ message: string;
2079
+ };
2080
+ /**
2081
+ * 404
2082
+ */
2083
+ 404: {
2084
+ message: string;
2085
+ };
2086
+ /**
2087
+ * 429
2088
+ */
2089
+ 429: {
2090
+ message: string;
2091
+ };
2092
+ /**
2093
+ * 500
2094
+ */
2095
+ 500: {
2096
+ message: string;
2097
+ };
2098
+ };
2099
+ };
2100
+ };
2101
+ '/api/v1/organization/': {
2102
+ get: {
2103
+ res: {
2104
+ /**
2105
+ * 200
2106
+ */
2107
+ 200: {
2108
+ id: string;
2109
+ createdById: string;
2110
+ name?: string | null;
2111
+ avatarUrl?: string | null;
2112
+ defaultPaymentMethodFilled?: boolean;
2113
+ billingAddressFilled?: boolean;
2114
+ apiAccess?: boolean;
2115
+ createdAt: string | null;
2116
+ updatedAt: string | null;
2117
+ deletedAt?: string | null;
2118
+ teams: Array<{
2119
+ id: string;
2120
+ name: string;
2121
+ avatarUrl?: string | null;
2122
+ organizationId: string;
2123
+ createdById: string;
2124
+ createdAt: string | null;
2125
+ updatedAt: string | null;
2126
+ deletedAt?: string | null;
2127
+ }>;
2128
+ createdBy: {
2129
+ id: string;
2130
+ externalId: string;
2131
+ email: string;
2132
+ emailVerified?: string | null;
2133
+ firstName?: string | null;
2134
+ lastName?: string | null;
2135
+ avatarUrl?: string | null;
2136
+ role: 'ADMIN' | 'CUSTOMER';
2137
+ createdAt: string | null;
2138
+ updatedAt: string | null;
2139
+ deletedAt?: string | null;
2140
+ };
2141
+ organizationSubscription?: {
2142
+ id: string;
2143
+ organizationId: string;
2144
+ stripeSubscriptionId: string;
2145
+ stripeSubscriptionItems?: Array<{
2146
+ id: string;
2147
+ price: string;
2148
+ quantity: number;
2149
+ }> | null;
2150
+ status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
2151
+ metadata?: unknown;
2152
+ cancelAtPeriodEnd: boolean;
2153
+ created: string | null;
2154
+ currentPeriodStart: string | null;
2155
+ currentPeriodEnd: string | null;
2156
+ endedAt?: string | null;
2157
+ cancelAt?: string | null;
2158
+ canceledAt?: string | null;
2159
+ trialStart?: string | null;
2160
+ trialEnd?: string | null;
2161
+ createdAt: string | null;
2162
+ updatedAt: string | null;
2163
+ teamPlan?: {
2164
+ id: string;
2165
+ organizationSubscriptionId: string;
2166
+ teamId: string;
2167
+ stripePriceId: string;
2168
+ tier: 'PRO';
2169
+ createdAt: string | null;
2170
+ updatedAt: string | null;
2171
+ } | null;
2172
+ } | null;
2173
+ };
2174
+ /**
2175
+ * 400
2176
+ */
2177
+ 400: {
2178
+ message: string;
2179
+ issues?: Array<{
2180
+ message: string;
2181
+ path?: Array<(string | number)> | null;
2182
+ }> | null;
2183
+ };
2184
+ /**
2185
+ * 401
2186
+ */
2187
+ 401: {
2188
+ message: string;
2189
+ };
2190
+ /**
2191
+ * 403
2192
+ */
2193
+ 403: {
2194
+ message: string;
2195
+ };
2196
+ /**
2197
+ * 404
2198
+ */
2199
+ 404: {
2200
+ message: string;
2201
+ };
2202
+ /**
2203
+ * 429
2204
+ */
2205
+ 429: {
2206
+ message: string;
2207
+ };
2208
+ /**
2209
+ * 500
2210
+ */
2211
+ 500: {
2212
+ message: string;
2213
+ };
2214
+ };
2215
+ };
2216
+ };
2217
+ '/api/v1/team/{id}': {
2218
+ get: {
2219
+ req: TeamGetTeamData;
2220
+ res: {
2221
+ /**
2222
+ * 200
2223
+ */
2224
+ 200: {
2225
+ id: string;
2226
+ name: string;
2227
+ avatarUrl?: string | null;
2228
+ organizationId: string;
2229
+ createdById: string;
2230
+ createdAt: string | null;
2231
+ updatedAt: string | null;
2232
+ deletedAt?: string | null;
2233
+ organization: {
2234
+ id: string;
2235
+ createdById: string;
2236
+ name?: string | null;
2237
+ avatarUrl?: string | null;
2238
+ defaultPaymentMethodFilled?: boolean;
2239
+ billingAddressFilled?: boolean;
2240
+ apiAccess?: boolean;
2241
+ createdAt: string | null;
2242
+ updatedAt: string | null;
2243
+ deletedAt?: string | null;
2244
+ };
2245
+ createdBy: {
2246
+ id: string;
2247
+ externalId: string;
2248
+ email: string;
2249
+ emailVerified?: string | null;
2250
+ firstName?: string | null;
2251
+ lastName?: string | null;
2252
+ avatarUrl?: string | null;
2253
+ role: 'ADMIN' | 'CUSTOMER';
2254
+ createdAt: string | null;
2255
+ updatedAt: string | null;
2256
+ deletedAt?: string | null;
2257
+ };
2258
+ bots: Array<{
2259
+ id: string;
2260
+ name: string;
2261
+ avatarUrl?: string | null;
2262
+ teamId: string;
2263
+ createdAt: string | null;
2264
+ updatedAt: string | null;
2265
+ deletedAt?: string | null;
2266
+ }>;
2267
+ socialAccounts: Array<{
2268
+ id: string;
2269
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
2270
+ teamId: string;
2271
+ username?: string | null;
2272
+ displayName?: string | null;
2273
+ externalId?: string | null;
2274
+ userUsername?: string | null;
2275
+ userDisplayName?: string | null;
2276
+ userId?: string | null;
2277
+ channels?: Array<{
2278
+ id: string;
2279
+ name?: string | null;
2280
+ username?: string | null;
2281
+ webhook?: {
2282
+ id?: string | null;
2283
+ name?: string | null;
2284
+ avatar?: string | null;
2285
+ url?: string | null;
2286
+ } | null;
2287
+ }> | null;
2288
+ createdAt: string | null;
2289
+ updatedAt: string | null;
2290
+ deletedAt?: string | null;
2291
+ }>;
2292
+ usage: {
2293
+ monthlyPosts: number;
2294
+ };
2295
+ teamPlan?: {
2296
+ id: string;
2297
+ organizationSubscriptionId: string;
2298
+ teamId: string;
2299
+ stripePriceId: string;
2300
+ tier: 'PRO';
2301
+ createdAt: string | null;
2302
+ updatedAt: string | null;
2303
+ organizationSubscription?: {
2304
+ id: string;
2305
+ organizationId: string;
2306
+ stripeSubscriptionId: string;
2307
+ stripeSubscriptionItems?: Array<{
2308
+ id: string;
2309
+ price: string;
2310
+ quantity: number;
2311
+ }> | null;
2312
+ status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
2313
+ metadata?: unknown;
2314
+ cancelAtPeriodEnd: boolean;
2315
+ created: string | null;
2316
+ currentPeriodStart: string | null;
2317
+ currentPeriodEnd: string | null;
2318
+ endedAt?: string | null;
2319
+ cancelAt?: string | null;
2320
+ canceledAt?: string | null;
2321
+ trialStart?: string | null;
2322
+ trialEnd?: string | null;
2323
+ createdAt: string | null;
2324
+ updatedAt: string | null;
2325
+ } | null;
2326
+ } | null;
2327
+ };
2328
+ /**
2329
+ * 400
2330
+ */
2331
+ 400: {
2332
+ message: string;
2333
+ issues?: Array<{
2334
+ message: string;
2335
+ path?: Array<(string | number)> | null;
2336
+ }> | null;
2337
+ };
2338
+ /**
2339
+ * 401
2340
+ */
2341
+ 401: {
2342
+ message: string;
2343
+ };
2344
+ /**
2345
+ * 403
2346
+ */
2347
+ 403: {
2348
+ message: string;
2349
+ };
2350
+ /**
2351
+ * 404
2352
+ */
2353
+ 404: {
2354
+ message: string;
2355
+ };
2356
+ /**
2357
+ * 429
2358
+ */
2359
+ 429: {
2360
+ message: string;
2361
+ };
2362
+ /**
2363
+ * 500
2364
+ */
2365
+ 500: {
2366
+ message: string;
2367
+ };
2368
+ };
2369
+ };
2370
+ patch: {
2371
+ req: TeamUpdateTeamData;
2372
+ res: {
2373
+ /**
2374
+ * 200
2375
+ */
2376
+ 200: {
2377
+ id: string;
2378
+ name: string;
2379
+ avatarUrl?: string | null;
2380
+ organizationId: string;
2381
+ createdById: string;
2382
+ createdAt: string | null;
2383
+ updatedAt: string | null;
2384
+ deletedAt?: string | null;
2385
+ };
2386
+ /**
2387
+ * 400
2388
+ */
2389
+ 400: {
2390
+ message: string;
2391
+ issues?: Array<{
2392
+ message: string;
2393
+ path?: Array<(string | number)> | null;
2394
+ }> | null;
2395
+ };
2396
+ /**
2397
+ * 401
2398
+ */
2399
+ 401: {
2400
+ message: string;
2401
+ };
2402
+ /**
2403
+ * 403
2404
+ */
2405
+ 403: {
2406
+ message: string;
2407
+ };
2408
+ /**
2409
+ * 404
2410
+ */
2411
+ 404: {
2412
+ message: string;
2413
+ };
2414
+ /**
2415
+ * 429
2416
+ */
2417
+ 429: {
2418
+ message: string;
2419
+ };
2420
+ /**
2421
+ * 500
2422
+ */
2423
+ 500: {
2424
+ message: string;
2425
+ };
2426
+ };
2427
+ };
2428
+ delete: {
2429
+ req: TeamDeleteTeamData;
2430
+ res: {
2431
+ /**
2432
+ * 200
2433
+ */
2434
+ 200: {
2435
+ id: string;
2436
+ name: string;
2437
+ avatarUrl?: string | null;
2438
+ organizationId: string;
2439
+ createdById: string;
2440
+ createdAt: string | null;
2441
+ updatedAt: string | null;
2442
+ deletedAt?: string | null;
2443
+ };
2444
+ /**
2445
+ * 400
2446
+ */
2447
+ 400: {
2448
+ message: string;
2449
+ issues?: Array<{
2450
+ message: string;
2451
+ path?: Array<(string | number)> | null;
2452
+ }> | null;
2453
+ };
2454
+ /**
2455
+ * 401
2456
+ */
2457
+ 401: {
2458
+ message: string;
2459
+ };
2460
+ /**
2461
+ * 403
2462
+ */
2463
+ 403: {
2464
+ message: string;
2465
+ };
2466
+ /**
2467
+ * 404
2468
+ */
2469
+ 404: {
2470
+ message: string;
2471
+ };
2472
+ /**
2473
+ * 429
2474
+ */
2475
+ 429: {
2476
+ message: string;
2477
+ };
2478
+ /**
2479
+ * 500
2480
+ */
2481
+ 500: {
2482
+ message: string;
2483
+ };
2484
+ };
2485
+ };
2486
+ };
2487
+ '/api/v1/team/': {
2488
+ post: {
2489
+ req: TeamCreateTeamData;
2490
+ res: {
2491
+ /**
2492
+ * 200
2493
+ */
2494
+ 200: {
2495
+ id: string;
2496
+ name: string;
2497
+ avatarUrl?: string | null;
2498
+ organizationId: string;
2499
+ createdById: string;
2500
+ createdAt: string | null;
2501
+ updatedAt: string | null;
2502
+ deletedAt?: string | null;
2503
+ };
2504
+ /**
2505
+ * 400
2506
+ */
2507
+ 400: {
2508
+ message: string;
2509
+ issues?: Array<{
2510
+ message: string;
2511
+ path?: Array<(string | number)> | null;
2512
+ }> | null;
2513
+ };
2514
+ /**
2515
+ * 401
2516
+ */
2517
+ 401: {
2518
+ message: string;
2519
+ };
2520
+ /**
2521
+ * 403
2522
+ */
2523
+ 403: {
2524
+ message: string;
2525
+ };
2526
+ /**
2527
+ * 404
2528
+ */
2529
+ 404: {
2530
+ message: string;
2531
+ };
2532
+ /**
2533
+ * 429
2534
+ */
2535
+ 429: {
2536
+ message: string;
2537
+ };
2538
+ /**
2539
+ * 500
2540
+ */
2541
+ 500: {
2542
+ message: string;
2543
+ };
2544
+ };
2545
+ };
1715
2546
  };
1716
- error?: string | null;
1717
- errors?: {
1718
- TWITTER?: string | null;
1719
- PINTEREST?: string | null;
1720
- FACEBOOK?: string | null;
1721
- INSTAGRAM?: string | null;
1722
- TIKTOK?: string | null;
1723
- LINKEDIN?: string | null;
1724
- REDDIT?: string | null;
1725
- DISCORD?: string | null;
1726
- SLACK?: string | null;
1727
- YOUTUBE?: string | null;
1728
- TELEGRAM?: string | null;
1729
- THREADS?: string | null;
1730
- } | null;
1731
- externalData?: {
1732
- TWITTER?: {
1733
- id?: string | null;
1734
- permalink?: string | null;
1735
- } | null;
1736
- PINTEREST?: {
1737
- id?: string | null;
1738
- permalink?: string | null;
1739
- } | null;
1740
- FACEBOOK?: {
1741
- id?: string | null;
1742
- postId?: string | null;
1743
- videoId?: string | null;
1744
- permalink?: string | null;
1745
- } | null;
1746
- INSTAGRAM?: {
1747
- id?: string | null;
1748
- permalink?: string | null;
1749
- } | null;
1750
- TIKTOK?: {
1751
- id?: string | null;
1752
- permalink?: string | null;
1753
- } | null;
1754
- LINKEDIN?: {
1755
- id?: string | null;
1756
- permalink?: string | null;
1757
- } | null;
1758
- REDDIT?: {
1759
- id?: string | null;
1760
- permalink?: string | null;
1761
- subreddit_name?: string | null;
1762
- } | null;
1763
- DISCORD?: {
1764
- id?: string | null;
1765
- permalink?: string | null;
1766
- channelId?: string | null;
1767
- } | null;
1768
- SLACK?: {
1769
- id?: string | null;
1770
- permalink?: string | null;
1771
- channelId?: string | null;
1772
- } | null;
1773
- YOUTUBE?: {
1774
- id?: string | null;
1775
- permalink?: string | null;
1776
- } | null;
1777
- TELEGRAM?: {
1778
- id?: string | null;
1779
- permalink?: string | null;
1780
- } | null;
1781
- THREADS?: {
1782
- id?: string | null;
1783
- permalink?: string | null;
1784
- } | null;
1785
- } | null;
1786
- createdAt: string | null;
1787
- updatedAt: string | null;
1788
- deletedAt?: string | null;
1789
- };
1790
- type $OpenApiTs = {
1791
- '/api/v1/': {
1792
- get: {
2547
+ '/api/v1/social-account/connect': {
2548
+ post: {
2549
+ req: SocialAccountConnectData;
1793
2550
  res: {
1794
2551
  /**
1795
2552
  * 200
1796
2553
  */
1797
2554
  200: {
1798
- status: string;
1799
- createdAt: string;
2555
+ /**
2556
+ * OAuth URL - Redirect user to this URL to connect social account
2557
+ */
2558
+ url: string;
2559
+ };
2560
+ /**
2561
+ * 400
2562
+ */
2563
+ 400: {
2564
+ message: string;
2565
+ issues?: Array<{
2566
+ message: string;
2567
+ path?: Array<(string | number)> | null;
2568
+ }> | null;
2569
+ };
2570
+ /**
2571
+ * 401
2572
+ */
2573
+ 401: {
2574
+ message: string;
2575
+ };
2576
+ /**
2577
+ * 403
2578
+ */
2579
+ 403: {
2580
+ message: string;
2581
+ };
2582
+ /**
2583
+ * 404
2584
+ */
2585
+ 404: {
2586
+ message: string;
2587
+ };
2588
+ /**
2589
+ * 429
2590
+ */
2591
+ 429: {
2592
+ message: string;
2593
+ };
2594
+ /**
2595
+ * 500
2596
+ */
2597
+ 500: {
2598
+ message: string;
2599
+ };
2600
+ };
2601
+ };
2602
+ };
2603
+ '/api/v1/social-account/disconnect': {
2604
+ delete: {
2605
+ req: SocialAccountDisconnectData;
2606
+ res: {
2607
+ /**
2608
+ * 200
2609
+ */
2610
+ 200: {
2611
+ id: string;
2612
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
2613
+ teamId: string;
2614
+ username?: string | null;
2615
+ displayName?: string | null;
2616
+ externalId?: string | null;
2617
+ userUsername?: string | null;
2618
+ userDisplayName?: string | null;
2619
+ userId?: string | null;
2620
+ channels?: Array<{
2621
+ id: string;
2622
+ name?: string | null;
2623
+ username?: string | null;
2624
+ webhook?: {
2625
+ id?: string | null;
2626
+ name?: string | null;
2627
+ avatar?: string | null;
2628
+ url?: string | null;
2629
+ } | null;
2630
+ }> | null;
2631
+ createdAt: string | null;
2632
+ updatedAt: string | null;
2633
+ deletedAt?: string | null;
2634
+ };
2635
+ /**
2636
+ * 400
2637
+ */
2638
+ 400: {
2639
+ message: string;
2640
+ issues?: Array<{
2641
+ message: string;
2642
+ path?: Array<(string | number)> | null;
2643
+ }> | null;
2644
+ };
2645
+ /**
2646
+ * 401
2647
+ */
2648
+ 401: {
2649
+ message: string;
2650
+ };
2651
+ /**
2652
+ * 403
2653
+ */
2654
+ 403: {
2655
+ message: string;
2656
+ };
2657
+ /**
2658
+ * 404
2659
+ */
2660
+ 404: {
2661
+ message: string;
2662
+ };
2663
+ /**
2664
+ * 429
2665
+ */
2666
+ 429: {
2667
+ message: string;
2668
+ };
2669
+ /**
2670
+ * 500
2671
+ */
2672
+ 500: {
2673
+ message: string;
2674
+ };
2675
+ };
2676
+ };
2677
+ };
2678
+ '/api/v1/social-account/set-channel': {
2679
+ post: {
2680
+ req: SocialAccountSetChannelData;
2681
+ res: {
2682
+ /**
2683
+ * 200
2684
+ */
2685
+ 200: {
2686
+ id: string;
2687
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
2688
+ teamId: string;
2689
+ username?: string | null;
2690
+ displayName?: string | null;
2691
+ externalId?: string | null;
2692
+ userUsername?: string | null;
2693
+ userDisplayName?: string | null;
2694
+ userId?: string | null;
2695
+ channels?: Array<{
2696
+ id: string;
2697
+ name?: string | null;
2698
+ username?: string | null;
2699
+ webhook?: {
2700
+ id?: string | null;
2701
+ name?: string | null;
2702
+ avatar?: string | null;
2703
+ url?: string | null;
2704
+ } | null;
2705
+ }> | null;
2706
+ createdAt: string | null;
2707
+ updatedAt: string | null;
2708
+ deletedAt?: string | null;
1800
2709
  };
1801
2710
  /**
1802
2711
  * 400
@@ -1841,106 +2750,37 @@ type $OpenApiTs = {
1841
2750
  };
1842
2751
  };
1843
2752
  };
1844
- '/api/v1/team/': {
1845
- get: {
2753
+ '/api/v1/social-account/refresh-channels': {
2754
+ post: {
2755
+ req: SocialAccountRefreshChannelsData;
1846
2756
  res: {
1847
2757
  /**
1848
2758
  * 200
1849
2759
  */
1850
2760
  200: {
1851
2761
  id: string;
1852
- name: string;
1853
- avatarUrl?: string | null;
1854
- createdById: string;
1855
- createdAt: string | null;
1856
- updatedAt: string | null;
1857
- deletedAt?: string | null;
1858
- users: Array<{
1859
- userId: string;
1860
- teamId: string;
1861
- createdAt: string | null;
1862
- updatedAt: string | null;
1863
- deletedAt?: string | null;
1864
- user: {
1865
- id: string;
1866
- externalId: string;
1867
- email: string;
1868
- emailVerified?: string | null;
1869
- firstName?: string | null;
1870
- lastName?: string | null;
1871
- avatarUrl?: string | null;
1872
- role: 'ADMIN' | 'CUSTOMER';
1873
- createdAt: string | null;
1874
- updatedAt: string | null;
1875
- deletedAt?: string | null;
1876
- };
1877
- }>;
1878
- createdBy: {
1879
- id: string;
1880
- externalId: string;
1881
- email: string;
1882
- emailVerified?: string | null;
1883
- firstName?: string | null;
1884
- lastName?: string | null;
1885
- avatarUrl?: string | null;
1886
- role: 'ADMIN' | 'CUSTOMER';
1887
- createdAt: string | null;
1888
- updatedAt: string | null;
1889
- deletedAt?: string | null;
1890
- };
1891
- invitations: Array<{
1892
- id: string;
1893
- email: string;
1894
- teamId: string;
1895
- createdById: string;
1896
- createdAt: string | null;
1897
- updatedAt: string | null;
1898
- }>;
1899
- bots: Array<{
1900
- id: string;
1901
- name: string;
1902
- avatarUrl?: string | null;
1903
- teamId: string;
1904
- createdAt: string | null;
1905
- updatedAt: string | null;
1906
- deletedAt?: string | null;
1907
- }>;
1908
- webhooks: Array<{
1909
- id: string;
1910
- teamId: string;
1911
- url: string;
1912
- createdAt: string | null;
1913
- updatedAt: string | null;
1914
- deletedAt?: string | null;
1915
- }>;
1916
- socialAccounts: Array<{
2762
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
2763
+ teamId: string;
2764
+ username?: string | null;
2765
+ displayName?: string | null;
2766
+ externalId?: string | null;
2767
+ userUsername?: string | null;
2768
+ userDisplayName?: string | null;
2769
+ userId?: string | null;
2770
+ channels?: Array<{
1917
2771
  id: string;
1918
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
1919
- teamId: string;
2772
+ name?: string | null;
1920
2773
  username?: string | null;
1921
- displayName?: string | null;
1922
- externalId?: string | null;
1923
- userUsername?: string | null;
1924
- userDisplayName?: string | null;
1925
- userId?: string | null;
1926
- channels?: Array<{
1927
- id: string;
2774
+ webhook?: {
2775
+ id?: string | null;
1928
2776
  name?: string | null;
1929
- username?: string | null;
1930
- webhook?: {
1931
- id?: string | null;
1932
- name?: string | null;
1933
- avatar?: string | null;
1934
- url?: string | null;
1935
- } | null;
1936
- }> | null;
1937
- createdAt: string | null;
1938
- updatedAt: string | null;
1939
- deletedAt?: string | null;
1940
- }>;
1941
- usage: {
1942
- monthlyPosts: number;
1943
- };
2777
+ avatar?: string | null;
2778
+ url?: string | null;
2779
+ } | null;
2780
+ }> | null;
2781
+ createdAt: string | null;
2782
+ updatedAt: string | null;
2783
+ deletedAt?: string | null;
1944
2784
  };
1945
2785
  /**
1946
2786
  * 400
@@ -1986,13 +2826,13 @@ type $OpenApiTs = {
1986
2826
  };
1987
2827
  };
1988
2828
  '/api/v1/upload/': {
1989
- post: {
1990
- req: UploadCreateData;
2829
+ get: {
2830
+ req: UploadGetListData;
1991
2831
  res: {
1992
2832
  /**
1993
2833
  * 200
1994
2834
  */
1995
- 200: {
2835
+ 200: Array<{
1996
2836
  id: string;
1997
2837
  teamId: string;
1998
2838
  expiresAt?: string | null;
@@ -2011,7 +2851,14 @@ type $OpenApiTs = {
2011
2851
  ext?: string | null;
2012
2852
  createdAt: string | null;
2013
2853
  updatedAt: string | null;
2014
- };
2854
+ posts: Array<{
2855
+ postId: string;
2856
+ uploadId: string;
2857
+ createdAt: string | null;
2858
+ updatedAt: string | null;
2859
+ deletedAt?: string | null;
2860
+ }>;
2861
+ }>;
2015
2862
  /**
2016
2863
  * 400
2017
2864
  */
@@ -2054,12 +2901,13 @@ type $OpenApiTs = {
2054
2901
  };
2055
2902
  };
2056
2903
  };
2057
- get: {
2904
+ post: {
2905
+ req: UploadCreateData;
2058
2906
  res: {
2059
2907
  /**
2060
2908
  * 200
2061
2909
  */
2062
- 200: Array<{
2910
+ 200: {
2063
2911
  id: string;
2064
2912
  teamId: string;
2065
2913
  expiresAt?: string | null;
@@ -2078,14 +2926,7 @@ type $OpenApiTs = {
2078
2926
  ext?: string | null;
2079
2927
  createdAt: string | null;
2080
2928
  updatedAt: string | null;
2081
- posts: Array<{
2082
- postId: string;
2083
- uploadId: string;
2084
- createdAt: string | null;
2085
- updatedAt: string | null;
2086
- deletedAt?: string | null;
2087
- }>;
2088
- }>;
2929
+ };
2089
2930
  /**
2090
2931
  * 400
2091
2932
  */
@@ -2335,9 +3176,9 @@ type $OpenApiTs = {
2335
3176
  };
2336
3177
  };
2337
3178
  };
2338
- '/api/v1/post/': {
2339
- post: {
2340
- req: PostCreateData;
3179
+ '/api/v1/post/{id}': {
3180
+ get: {
3181
+ req: PostGetData;
2341
3182
  res: {
2342
3183
  /**
2343
3184
  * 200
@@ -2413,470 +3254,206 @@ type $OpenApiTs = {
2413
3254
  } | null;
2414
3255
  LINKEDIN?: {
2415
3256
  text: string;
2416
- uploadIds?: Array<(string)> | null;
2417
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
2418
- /**
2419
- * Set to true if the post shouldn't be displayed in the main feed.
2420
- */
2421
- hideFromFeed?: boolean | null;
2422
- /**
2423
- * Set to true if the post is not allowed to be reshared.
2424
- */
2425
- disableReshare?: boolean | null;
2426
- } | null;
2427
- YOUTUBE?: {
2428
- type?: 'VIDEO' | 'SHORT';
2429
- uploadIds?: Array<(string)> | null;
2430
- text?: string | null;
2431
- description?: string | null;
2432
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
2433
- /**
2434
- * Set to true if the video is made for kids.
2435
- */
2436
- madeForKids?: boolean | null;
2437
- } | null;
2438
- REDDIT?: {
2439
- /**
2440
- * Subreddit name. Example: r/subredditName or u/username
2441
- */
2442
- sr: string;
2443
- text: string;
2444
- description?: string | null;
2445
- uploadIds?: Array<(string)> | null;
2446
- /**
2447
- * The URL to which the post will link to.
2448
- */
2449
- link?: string | null;
2450
- /**
2451
- * Set to true if the post is NSFW.
2452
- */
2453
- nsfw?: boolean | null;
2454
- } | null;
2455
- DISCORD?: {
2456
- channelId: string;
2457
- text?: string | null;
2458
- uploadIds?: Array<(string)> | null;
2459
- /**
2460
- * The username to display as the author of the message.
2461
- */
2462
- username?: string | null;
2463
- /**
2464
- * Avatar url to display as the author of the message.
2465
- */
2466
- avatarUrl?: string | null;
2467
- } | null;
2468
- SLACK?: {
2469
- channelId: string;
2470
- text?: string | null;
2471
- uploadIds?: Array<(string)> | null;
2472
- /**
2473
- * The username to display as the author of the message.
2474
- */
2475
- username?: string | null;
2476
- /**
2477
- * Avatar url to display as the author of the message.
2478
- */
2479
- avatarUrl?: string | null;
2480
- } | null;
2481
- TELEGRAM?: unknown;
2482
- THREADS?: unknown;
2483
- };
2484
- error?: string | null;
2485
- errors?: {
2486
- TWITTER?: string | null;
2487
- PINTEREST?: string | null;
2488
- FACEBOOK?: string | null;
2489
- INSTAGRAM?: string | null;
2490
- TIKTOK?: string | null;
2491
- LINKEDIN?: string | null;
2492
- REDDIT?: string | null;
2493
- DISCORD?: string | null;
2494
- SLACK?: string | null;
2495
- YOUTUBE?: string | null;
2496
- TELEGRAM?: string | null;
2497
- THREADS?: string | null;
2498
- } | null;
2499
- externalData?: {
2500
- TWITTER?: {
2501
- id?: string | null;
2502
- permalink?: string | null;
2503
- } | null;
2504
- PINTEREST?: {
2505
- id?: string | null;
2506
- permalink?: string | null;
2507
- } | null;
2508
- FACEBOOK?: {
2509
- id?: string | null;
2510
- postId?: string | null;
2511
- videoId?: string | null;
2512
- permalink?: string | null;
2513
- } | null;
2514
- INSTAGRAM?: {
2515
- id?: string | null;
2516
- permalink?: string | null;
2517
- } | null;
2518
- TIKTOK?: {
2519
- id?: string | null;
2520
- permalink?: string | null;
2521
- } | null;
2522
- LINKEDIN?: {
2523
- id?: string | null;
2524
- permalink?: string | null;
2525
- } | null;
2526
- REDDIT?: {
2527
- id?: string | null;
2528
- permalink?: string | null;
2529
- subreddit_name?: string | null;
2530
- } | null;
2531
- DISCORD?: {
2532
- id?: string | null;
2533
- permalink?: string | null;
2534
- channelId?: string | null;
2535
- } | null;
2536
- SLACK?: {
2537
- id?: string | null;
2538
- permalink?: string | null;
2539
- channelId?: string | null;
3257
+ uploadIds?: Array<(string)> | null;
3258
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
3259
+ /**
3260
+ * Set to true if the post shouldn't be displayed in the main feed.
3261
+ */
3262
+ hideFromFeed?: boolean | null;
3263
+ /**
3264
+ * Set to true if the post is not allowed to be reshared.
3265
+ */
3266
+ disableReshare?: boolean | null;
2540
3267
  } | null;
2541
3268
  YOUTUBE?: {
2542
- id?: string | null;
2543
- permalink?: string | null;
2544
- } | null;
2545
- TELEGRAM?: {
2546
- id?: string | null;
2547
- permalink?: string | null;
3269
+ type?: 'VIDEO' | 'SHORT';
3270
+ uploadIds?: Array<(string)> | null;
3271
+ text?: string | null;
3272
+ description?: string | null;
3273
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
3274
+ /**
3275
+ * Set to true if the video is made for kids.
3276
+ */
3277
+ madeForKids?: boolean | null;
2548
3278
  } | null;
2549
- THREADS?: {
2550
- id?: string | null;
2551
- permalink?: string | null;
3279
+ REDDIT?: {
3280
+ /**
3281
+ * Subreddit name. Example: r/subredditName or u/username
3282
+ */
3283
+ sr: string;
3284
+ text: string;
3285
+ description?: string | null;
3286
+ uploadIds?: Array<(string)> | null;
3287
+ /**
3288
+ * The URL to which the post will link to.
3289
+ */
3290
+ link?: string | null;
3291
+ /**
3292
+ * Set to true if the post is NSFW.
3293
+ */
3294
+ nsfw?: boolean | null;
2552
3295
  } | null;
2553
- } | null;
2554
- createdAt: string | null;
2555
- updatedAt: string | null;
2556
- deletedAt?: string | null;
2557
- };
2558
- /**
2559
- * 400
2560
- */
2561
- 400: {
2562
- message: string;
2563
- issues?: Array<{
2564
- message: string;
2565
- path?: Array<(string | number)> | null;
2566
- }> | null;
2567
- };
2568
- /**
2569
- * 401
2570
- */
2571
- 401: {
2572
- message: string;
2573
- };
2574
- /**
2575
- * 403
2576
- */
2577
- 403: {
2578
- message: string;
2579
- };
2580
- /**
2581
- * 404
2582
- */
2583
- 404: {
2584
- message: string;
2585
- };
2586
- /**
2587
- * 429
2588
- */
2589
- 429: {
2590
- message: string;
2591
- };
2592
- /**
2593
- * 500
2594
- */
2595
- 500: {
2596
- message: string;
2597
- };
2598
- };
2599
- };
2600
- get: {
2601
- req: PostGetListData;
2602
- res: {
2603
- /**
2604
- * 200
2605
- */
2606
- 200: {
2607
- items: Array<{
2608
- id: string;
2609
- teamId: string;
2610
- title: string;
2611
- postDate: string | null;
2612
- postedDate?: string | null;
2613
- status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2614
- data: {
2615
- TWITTER?: {
2616
- text?: string | null;
2617
- uploadIds?: Array<(string)> | null;
2618
- } | null;
2619
- PINTEREST?: {
2620
- text?: string | null;
2621
- description?: string | null;
2622
- boardName: string;
2623
- uploadIds?: Array<(string)> | null;
2624
- /**
2625
- * The URL to which the Pin will link to.
2626
- */
2627
- link?: string | null;
2628
- /**
2629
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
2630
- */
2631
- altText?: string | null;
2632
- /**
2633
- * A note about the Pin. This is not visible to the public.
2634
- */
2635
- note?: string | null;
2636
- /**
2637
- * The dominant color of the image. This is used to display the image before it's loaded.
2638
- */
2639
- dominantColor?: string | null;
2640
- } | null;
2641
- FACEBOOK?: {
2642
- type?: 'POST' | 'REEL' | 'STORY';
2643
- text?: string | null;
2644
- uploadIds?: Array<(string)> | null;
2645
- } | null;
2646
- INSTAGRAM?: {
2647
- type?: 'POST' | 'REEL' | 'STORY';
2648
- text?: string | null;
2649
- uploadIds?: Array<(string)> | null;
2650
- } | null;
2651
- TIKTOK?: {
2652
- text?: string | null;
2653
- uploadIds?: Array<(string)> | null;
2654
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
2655
- /**
2656
- * Set to true if the video is a paid partnership to promote a third-party business.
2657
- */
2658
- isBrandContent?: boolean | null;
2659
- /**
2660
- * Set to true if this video is promoting the creator's own business.
2661
- */
2662
- isOrganicBrandContent?: boolean | null;
2663
- /**
2664
- * If set to true, other TikTok users will not be allowed to make comments on this post.
2665
- */
2666
- disableComments?: boolean | null;
2667
- /**
2668
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
2669
- */
2670
- disableDuet?: boolean | null;
2671
- /**
2672
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
2673
- */
2674
- disableStitch?: boolean | null;
2675
- } | null;
2676
- LINKEDIN?: {
2677
- text: string;
2678
- uploadIds?: Array<(string)> | null;
2679
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
2680
- /**
2681
- * Set to true if the post shouldn't be displayed in the main feed.
2682
- */
2683
- hideFromFeed?: boolean | null;
2684
- /**
2685
- * Set to true if the post is not allowed to be reshared.
2686
- */
2687
- disableReshare?: boolean | null;
2688
- } | null;
2689
- YOUTUBE?: {
2690
- type?: 'VIDEO' | 'SHORT';
2691
- uploadIds?: Array<(string)> | null;
2692
- text?: string | null;
2693
- description?: string | null;
2694
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
2695
- /**
2696
- * Set to true if the video is made for kids.
2697
- */
2698
- madeForKids?: boolean | null;
2699
- } | null;
2700
- REDDIT?: {
2701
- /**
2702
- * Subreddit name. Example: r/subredditName or u/username
2703
- */
2704
- sr: string;
2705
- text: string;
2706
- description?: string | null;
2707
- uploadIds?: Array<(string)> | null;
2708
- /**
2709
- * The URL to which the post will link to.
2710
- */
2711
- link?: string | null;
2712
- /**
2713
- * Set to true if the post is NSFW.
2714
- */
2715
- nsfw?: boolean | null;
2716
- } | null;
2717
- DISCORD?: {
2718
- channelId: string;
2719
- text?: string | null;
2720
- uploadIds?: Array<(string)> | null;
2721
- /**
2722
- * The username to display as the author of the message.
2723
- */
2724
- username?: string | null;
2725
- /**
2726
- * Avatar url to display as the author of the message.
2727
- */
2728
- avatarUrl?: string | null;
2729
- } | null;
2730
- SLACK?: {
2731
- channelId: string;
2732
- text?: string | null;
2733
- uploadIds?: Array<(string)> | null;
2734
- /**
2735
- * The username to display as the author of the message.
2736
- */
2737
- username?: string | null;
2738
- /**
2739
- * Avatar url to display as the author of the message.
2740
- */
2741
- avatarUrl?: string | null;
2742
- } | null;
2743
- TELEGRAM?: unknown;
2744
- THREADS?: unknown;
2745
- };
2746
- error?: string | null;
2747
- errors?: {
2748
- TWITTER?: string | null;
2749
- PINTEREST?: string | null;
2750
- FACEBOOK?: string | null;
2751
- INSTAGRAM?: string | null;
2752
- TIKTOK?: string | null;
2753
- LINKEDIN?: string | null;
2754
- REDDIT?: string | null;
2755
- DISCORD?: string | null;
2756
- SLACK?: string | null;
2757
- YOUTUBE?: string | null;
2758
- TELEGRAM?: string | null;
2759
- THREADS?: string | null;
3296
+ DISCORD?: {
3297
+ channelId: string;
3298
+ text?: string | null;
3299
+ uploadIds?: Array<(string)> | null;
3300
+ /**
3301
+ * The username to display as the author of the message.
3302
+ */
3303
+ username?: string | null;
3304
+ /**
3305
+ * Avatar url to display as the author of the message.
3306
+ */
3307
+ avatarUrl?: string | null;
2760
3308
  } | null;
2761
- externalData?: {
2762
- TWITTER?: {
2763
- id?: string | null;
2764
- permalink?: string | null;
2765
- } | null;
2766
- PINTEREST?: {
2767
- id?: string | null;
2768
- permalink?: string | null;
2769
- } | null;
2770
- FACEBOOK?: {
2771
- id?: string | null;
2772
- postId?: string | null;
2773
- videoId?: string | null;
2774
- permalink?: string | null;
2775
- } | null;
2776
- INSTAGRAM?: {
2777
- id?: string | null;
2778
- permalink?: string | null;
2779
- } | null;
2780
- TIKTOK?: {
2781
- id?: string | null;
2782
- permalink?: string | null;
2783
- } | null;
2784
- LINKEDIN?: {
2785
- id?: string | null;
2786
- permalink?: string | null;
2787
- } | null;
2788
- REDDIT?: {
2789
- id?: string | null;
2790
- permalink?: string | null;
2791
- subreddit_name?: string | null;
2792
- } | null;
2793
- DISCORD?: {
2794
- id?: string | null;
2795
- permalink?: string | null;
2796
- channelId?: string | null;
2797
- } | null;
2798
- SLACK?: {
2799
- id?: string | null;
2800
- permalink?: string | null;
2801
- channelId?: string | null;
2802
- } | null;
2803
- YOUTUBE?: {
2804
- id?: string | null;
2805
- permalink?: string | null;
2806
- } | null;
2807
- TELEGRAM?: {
2808
- id?: string | null;
2809
- permalink?: string | null;
2810
- } | null;
2811
- THREADS?: {
2812
- id?: string | null;
2813
- permalink?: string | null;
2814
- } | null;
3309
+ SLACK?: {
3310
+ channelId: string;
3311
+ text?: string | null;
3312
+ uploadIds?: Array<(string)> | null;
3313
+ /**
3314
+ * The username to display as the author of the message.
3315
+ */
3316
+ username?: string | null;
3317
+ /**
3318
+ * Avatar url to display as the author of the message.
3319
+ */
3320
+ avatarUrl?: string | null;
3321
+ } | null;
3322
+ TELEGRAM?: unknown;
3323
+ THREADS?: unknown;
3324
+ };
3325
+ error?: string | null;
3326
+ errors?: {
3327
+ TWITTER?: string | null;
3328
+ PINTEREST?: string | null;
3329
+ FACEBOOK?: string | null;
3330
+ INSTAGRAM?: string | null;
3331
+ TIKTOK?: string | null;
3332
+ LINKEDIN?: string | null;
3333
+ REDDIT?: string | null;
3334
+ DISCORD?: string | null;
3335
+ SLACK?: string | null;
3336
+ YOUTUBE?: string | null;
3337
+ TELEGRAM?: string | null;
3338
+ THREADS?: string | null;
3339
+ } | null;
3340
+ externalData?: {
3341
+ TWITTER?: {
3342
+ id?: string | null;
3343
+ permalink?: string | null;
3344
+ } | null;
3345
+ PINTEREST?: {
3346
+ id?: string | null;
3347
+ permalink?: string | null;
3348
+ } | null;
3349
+ FACEBOOK?: {
3350
+ id?: string | null;
3351
+ postId?: string | null;
3352
+ videoId?: string | null;
3353
+ permalink?: string | null;
3354
+ } | null;
3355
+ INSTAGRAM?: {
3356
+ id?: string | null;
3357
+ permalink?: string | null;
3358
+ } | null;
3359
+ TIKTOK?: {
3360
+ id?: string | null;
3361
+ permalink?: string | null;
3362
+ } | null;
3363
+ LINKEDIN?: {
3364
+ id?: string | null;
3365
+ permalink?: string | null;
3366
+ } | null;
3367
+ REDDIT?: {
3368
+ id?: string | null;
3369
+ permalink?: string | null;
3370
+ subreddit_name?: string | null;
3371
+ } | null;
3372
+ DISCORD?: {
3373
+ id?: string | null;
3374
+ permalink?: string | null;
3375
+ channelId?: string | null;
2815
3376
  } | null;
3377
+ SLACK?: {
3378
+ id?: string | null;
3379
+ permalink?: string | null;
3380
+ channelId?: string | null;
3381
+ } | null;
3382
+ YOUTUBE?: {
3383
+ id?: string | null;
3384
+ permalink?: string | null;
3385
+ } | null;
3386
+ TELEGRAM?: {
3387
+ id?: string | null;
3388
+ permalink?: string | null;
3389
+ } | null;
3390
+ THREADS?: {
3391
+ id?: string | null;
3392
+ permalink?: string | null;
3393
+ } | null;
3394
+ } | null;
3395
+ createdAt: string | null;
3396
+ updatedAt: string | null;
3397
+ deletedAt?: string | null;
3398
+ uploads: Array<{
3399
+ postId: string;
3400
+ uploadId: string;
2816
3401
  createdAt: string | null;
2817
3402
  updatedAt: string | null;
2818
3403
  deletedAt?: string | null;
2819
- uploads: Array<{
2820
- postId: string;
2821
- uploadId: string;
3404
+ upload: {
3405
+ id: string;
3406
+ teamId: string;
3407
+ expiresAt?: string | null;
3408
+ iconUrl?: string | null;
3409
+ thumbnailUrl?: string | null;
3410
+ url?: string | null;
3411
+ iconPath?: string | null;
3412
+ thumbnailPath?: string | null;
3413
+ path?: string | null;
3414
+ type: 'image' | 'video';
3415
+ width?: number | null;
3416
+ height?: number | null;
3417
+ fileSize?: number | null;
3418
+ videoLength?: number | null;
3419
+ mime?: string | null;
3420
+ ext?: string | null;
2822
3421
  createdAt: string | null;
2823
3422
  updatedAt: string | null;
2824
- deletedAt?: string | null;
2825
- upload: {
3423
+ };
3424
+ }>;
3425
+ socialAccounts: Array<{
3426
+ postId: string;
3427
+ socialAccountId: string;
3428
+ createdAt: string | null;
3429
+ updatedAt: string | null;
3430
+ deletedAt?: string | null;
3431
+ socialAccount: {
3432
+ id: string;
3433
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
3434
+ teamId: string;
3435
+ username?: string | null;
3436
+ displayName?: string | null;
3437
+ externalId?: string | null;
3438
+ userUsername?: string | null;
3439
+ userDisplayName?: string | null;
3440
+ userId?: string | null;
3441
+ channels?: Array<{
2826
3442
  id: string;
2827
- teamId: string;
2828
- expiresAt?: string | null;
2829
- iconUrl?: string | null;
2830
- thumbnailUrl?: string | null;
2831
- url?: string | null;
2832
- iconPath?: string | null;
2833
- thumbnailPath?: string | null;
2834
- path?: string | null;
2835
- type: 'image' | 'video';
2836
- width?: number | null;
2837
- height?: number | null;
2838
- fileSize?: number | null;
2839
- videoLength?: number | null;
2840
- mime?: string | null;
2841
- ext?: string | null;
2842
- createdAt: string | null;
2843
- updatedAt: string | null;
2844
- };
2845
- }>;
2846
- socialAccounts: Array<{
2847
- postId: string;
2848
- socialAccountId: string;
3443
+ name?: string | null;
3444
+ username?: string | null;
3445
+ webhook?: {
3446
+ id?: string | null;
3447
+ name?: string | null;
3448
+ avatar?: string | null;
3449
+ url?: string | null;
3450
+ } | null;
3451
+ }> | null;
2849
3452
  createdAt: string | null;
2850
3453
  updatedAt: string | null;
2851
3454
  deletedAt?: string | null;
2852
- socialAccount: {
2853
- id: string;
2854
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
2855
- teamId: string;
2856
- username?: string | null;
2857
- displayName?: string | null;
2858
- externalId?: string | null;
2859
- userUsername?: string | null;
2860
- userDisplayName?: string | null;
2861
- userId?: string | null;
2862
- channels?: Array<{
2863
- id: string;
2864
- name?: string | null;
2865
- username?: string | null;
2866
- webhook?: {
2867
- id?: string | null;
2868
- name?: string | null;
2869
- avatar?: string | null;
2870
- url?: string | null;
2871
- } | null;
2872
- }> | null;
2873
- createdAt: string | null;
2874
- updatedAt: string | null;
2875
- deletedAt?: string | null;
2876
- };
2877
- }>;
3455
+ };
2878
3456
  }>;
2879
- total: number;
2880
3457
  };
2881
3458
  /**
2882
3459
  * 400
@@ -2920,10 +3497,8 @@ type $OpenApiTs = {
2920
3497
  };
2921
3498
  };
2922
3499
  };
2923
- };
2924
- '/api/v1/post/{id}': {
2925
- get: {
2926
- req: PostGetData;
3500
+ patch: {
3501
+ req: PostUpdateData;
2927
3502
  res: {
2928
3503
  /**
2929
3504
  * 200
@@ -3140,65 +3715,6 @@ type $OpenApiTs = {
3140
3715
  createdAt: string | null;
3141
3716
  updatedAt: string | null;
3142
3717
  deletedAt?: string | null;
3143
- uploads: Array<{
3144
- postId: string;
3145
- uploadId: string;
3146
- createdAt: string | null;
3147
- updatedAt: string | null;
3148
- deletedAt?: string | null;
3149
- upload: {
3150
- id: string;
3151
- teamId: string;
3152
- expiresAt?: string | null;
3153
- iconUrl?: string | null;
3154
- thumbnailUrl?: string | null;
3155
- url?: string | null;
3156
- iconPath?: string | null;
3157
- thumbnailPath?: string | null;
3158
- path?: string | null;
3159
- type: 'image' | 'video';
3160
- width?: number | null;
3161
- height?: number | null;
3162
- fileSize?: number | null;
3163
- videoLength?: number | null;
3164
- mime?: string | null;
3165
- ext?: string | null;
3166
- createdAt: string | null;
3167
- updatedAt: string | null;
3168
- };
3169
- }>;
3170
- socialAccounts: Array<{
3171
- postId: string;
3172
- socialAccountId: string;
3173
- createdAt: string | null;
3174
- updatedAt: string | null;
3175
- deletedAt?: string | null;
3176
- socialAccount: {
3177
- id: string;
3178
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
3179
- teamId: string;
3180
- username?: string | null;
3181
- displayName?: string | null;
3182
- externalId?: string | null;
3183
- userUsername?: string | null;
3184
- userDisplayName?: string | null;
3185
- userId?: string | null;
3186
- channels?: Array<{
3187
- id: string;
3188
- name?: string | null;
3189
- username?: string | null;
3190
- webhook?: {
3191
- id?: string | null;
3192
- name?: string | null;
3193
- avatar?: string | null;
3194
- url?: string | null;
3195
- } | null;
3196
- }> | null;
3197
- createdAt: string | null;
3198
- updatedAt: string | null;
3199
- deletedAt?: string | null;
3200
- };
3201
- }>;
3202
3718
  };
3203
3719
  /**
3204
3720
  * 400
@@ -3242,8 +3758,8 @@ type $OpenApiTs = {
3242
3758
  };
3243
3759
  };
3244
3760
  };
3245
- put: {
3246
- req: PostUpdateData;
3761
+ delete: {
3762
+ req: PostDeleteData;
3247
3763
  res: {
3248
3764
  /**
3249
3765
  * 200
@@ -3452,14 +3968,339 @@ type $OpenApiTs = {
3452
3968
  id?: string | null;
3453
3969
  permalink?: string | null;
3454
3970
  } | null;
3455
- THREADS?: {
3456
- id?: string | null;
3457
- permalink?: string | null;
3971
+ THREADS?: {
3972
+ id?: string | null;
3973
+ permalink?: string | null;
3974
+ } | null;
3975
+ } | null;
3976
+ createdAt: string | null;
3977
+ updatedAt: string | null;
3978
+ deletedAt?: string | null;
3979
+ };
3980
+ /**
3981
+ * 400
3982
+ */
3983
+ 400: {
3984
+ message: string;
3985
+ issues?: Array<{
3986
+ message: string;
3987
+ path?: Array<(string | number)> | null;
3988
+ }> | null;
3989
+ };
3990
+ /**
3991
+ * 401
3992
+ */
3993
+ 401: {
3994
+ message: string;
3995
+ };
3996
+ /**
3997
+ * 403
3998
+ */
3999
+ 403: {
4000
+ message: string;
4001
+ };
4002
+ /**
4003
+ * 404
4004
+ */
4005
+ 404: {
4006
+ message: string;
4007
+ };
4008
+ /**
4009
+ * 429
4010
+ */
4011
+ 429: {
4012
+ message: string;
4013
+ };
4014
+ /**
4015
+ * 500
4016
+ */
4017
+ 500: {
4018
+ message: string;
4019
+ };
4020
+ };
4021
+ };
4022
+ };
4023
+ '/api/v1/post/': {
4024
+ get: {
4025
+ req: PostGetListData;
4026
+ res: {
4027
+ /**
4028
+ * 200
4029
+ */
4030
+ 200: {
4031
+ items: Array<{
4032
+ id: string;
4033
+ teamId: string;
4034
+ title: string;
4035
+ postDate: string | null;
4036
+ postedDate?: string | null;
4037
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4038
+ data: {
4039
+ TWITTER?: {
4040
+ text?: string | null;
4041
+ uploadIds?: Array<(string)> | null;
4042
+ } | null;
4043
+ PINTEREST?: {
4044
+ text?: string | null;
4045
+ description?: string | null;
4046
+ boardName: string;
4047
+ uploadIds?: Array<(string)> | null;
4048
+ /**
4049
+ * The URL to which the Pin will link to.
4050
+ */
4051
+ link?: string | null;
4052
+ /**
4053
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
4054
+ */
4055
+ altText?: string | null;
4056
+ /**
4057
+ * A note about the Pin. This is not visible to the public.
4058
+ */
4059
+ note?: string | null;
4060
+ /**
4061
+ * The dominant color of the image. This is used to display the image before it's loaded.
4062
+ */
4063
+ dominantColor?: string | null;
4064
+ } | null;
4065
+ FACEBOOK?: {
4066
+ type?: 'POST' | 'REEL' | 'STORY';
4067
+ text?: string | null;
4068
+ uploadIds?: Array<(string)> | null;
4069
+ } | null;
4070
+ INSTAGRAM?: {
4071
+ type?: 'POST' | 'REEL' | 'STORY';
4072
+ text?: string | null;
4073
+ uploadIds?: Array<(string)> | null;
4074
+ } | null;
4075
+ TIKTOK?: {
4076
+ text?: string | null;
4077
+ uploadIds?: Array<(string)> | null;
4078
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
4079
+ /**
4080
+ * Set to true if the video is a paid partnership to promote a third-party business.
4081
+ */
4082
+ isBrandContent?: boolean | null;
4083
+ /**
4084
+ * Set to true if this video is promoting the creator's own business.
4085
+ */
4086
+ isOrganicBrandContent?: boolean | null;
4087
+ /**
4088
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
4089
+ */
4090
+ disableComments?: boolean | null;
4091
+ /**
4092
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
4093
+ */
4094
+ disableDuet?: boolean | null;
4095
+ /**
4096
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
4097
+ */
4098
+ disableStitch?: boolean | null;
4099
+ } | null;
4100
+ LINKEDIN?: {
4101
+ text: string;
4102
+ uploadIds?: Array<(string)> | null;
4103
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
4104
+ /**
4105
+ * Set to true if the post shouldn't be displayed in the main feed.
4106
+ */
4107
+ hideFromFeed?: boolean | null;
4108
+ /**
4109
+ * Set to true if the post is not allowed to be reshared.
4110
+ */
4111
+ disableReshare?: boolean | null;
4112
+ } | null;
4113
+ YOUTUBE?: {
4114
+ type?: 'VIDEO' | 'SHORT';
4115
+ uploadIds?: Array<(string)> | null;
4116
+ text?: string | null;
4117
+ description?: string | null;
4118
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
4119
+ /**
4120
+ * Set to true if the video is made for kids.
4121
+ */
4122
+ madeForKids?: boolean | null;
4123
+ } | null;
4124
+ REDDIT?: {
4125
+ /**
4126
+ * Subreddit name. Example: r/subredditName or u/username
4127
+ */
4128
+ sr: string;
4129
+ text: string;
4130
+ description?: string | null;
4131
+ uploadIds?: Array<(string)> | null;
4132
+ /**
4133
+ * The URL to which the post will link to.
4134
+ */
4135
+ link?: string | null;
4136
+ /**
4137
+ * Set to true if the post is NSFW.
4138
+ */
4139
+ nsfw?: boolean | null;
4140
+ } | null;
4141
+ DISCORD?: {
4142
+ channelId: string;
4143
+ text?: string | null;
4144
+ uploadIds?: Array<(string)> | null;
4145
+ /**
4146
+ * The username to display as the author of the message.
4147
+ */
4148
+ username?: string | null;
4149
+ /**
4150
+ * Avatar url to display as the author of the message.
4151
+ */
4152
+ avatarUrl?: string | null;
4153
+ } | null;
4154
+ SLACK?: {
4155
+ channelId: string;
4156
+ text?: string | null;
4157
+ uploadIds?: Array<(string)> | null;
4158
+ /**
4159
+ * The username to display as the author of the message.
4160
+ */
4161
+ username?: string | null;
4162
+ /**
4163
+ * Avatar url to display as the author of the message.
4164
+ */
4165
+ avatarUrl?: string | null;
4166
+ } | null;
4167
+ TELEGRAM?: unknown;
4168
+ THREADS?: unknown;
4169
+ };
4170
+ error?: string | null;
4171
+ errors?: {
4172
+ TWITTER?: string | null;
4173
+ PINTEREST?: string | null;
4174
+ FACEBOOK?: string | null;
4175
+ INSTAGRAM?: string | null;
4176
+ TIKTOK?: string | null;
4177
+ LINKEDIN?: string | null;
4178
+ REDDIT?: string | null;
4179
+ DISCORD?: string | null;
4180
+ SLACK?: string | null;
4181
+ YOUTUBE?: string | null;
4182
+ TELEGRAM?: string | null;
4183
+ THREADS?: string | null;
4184
+ } | null;
4185
+ externalData?: {
4186
+ TWITTER?: {
4187
+ id?: string | null;
4188
+ permalink?: string | null;
4189
+ } | null;
4190
+ PINTEREST?: {
4191
+ id?: string | null;
4192
+ permalink?: string | null;
4193
+ } | null;
4194
+ FACEBOOK?: {
4195
+ id?: string | null;
4196
+ postId?: string | null;
4197
+ videoId?: string | null;
4198
+ permalink?: string | null;
4199
+ } | null;
4200
+ INSTAGRAM?: {
4201
+ id?: string | null;
4202
+ permalink?: string | null;
4203
+ } | null;
4204
+ TIKTOK?: {
4205
+ id?: string | null;
4206
+ permalink?: string | null;
4207
+ } | null;
4208
+ LINKEDIN?: {
4209
+ id?: string | null;
4210
+ permalink?: string | null;
4211
+ } | null;
4212
+ REDDIT?: {
4213
+ id?: string | null;
4214
+ permalink?: string | null;
4215
+ subreddit_name?: string | null;
4216
+ } | null;
4217
+ DISCORD?: {
4218
+ id?: string | null;
4219
+ permalink?: string | null;
4220
+ channelId?: string | null;
4221
+ } | null;
4222
+ SLACK?: {
4223
+ id?: string | null;
4224
+ permalink?: string | null;
4225
+ channelId?: string | null;
4226
+ } | null;
4227
+ YOUTUBE?: {
4228
+ id?: string | null;
4229
+ permalink?: string | null;
4230
+ } | null;
4231
+ TELEGRAM?: {
4232
+ id?: string | null;
4233
+ permalink?: string | null;
4234
+ } | null;
4235
+ THREADS?: {
4236
+ id?: string | null;
4237
+ permalink?: string | null;
4238
+ } | null;
3458
4239
  } | null;
3459
- } | null;
3460
- createdAt: string | null;
3461
- updatedAt: string | null;
3462
- deletedAt?: string | null;
4240
+ createdAt: string | null;
4241
+ updatedAt: string | null;
4242
+ deletedAt?: string | null;
4243
+ uploads: Array<{
4244
+ postId: string;
4245
+ uploadId: string;
4246
+ createdAt: string | null;
4247
+ updatedAt: string | null;
4248
+ deletedAt?: string | null;
4249
+ upload: {
4250
+ id: string;
4251
+ teamId: string;
4252
+ expiresAt?: string | null;
4253
+ iconUrl?: string | null;
4254
+ thumbnailUrl?: string | null;
4255
+ url?: string | null;
4256
+ iconPath?: string | null;
4257
+ thumbnailPath?: string | null;
4258
+ path?: string | null;
4259
+ type: 'image' | 'video';
4260
+ width?: number | null;
4261
+ height?: number | null;
4262
+ fileSize?: number | null;
4263
+ videoLength?: number | null;
4264
+ mime?: string | null;
4265
+ ext?: string | null;
4266
+ createdAt: string | null;
4267
+ updatedAt: string | null;
4268
+ };
4269
+ }>;
4270
+ socialAccounts: Array<{
4271
+ postId: string;
4272
+ socialAccountId: string;
4273
+ createdAt: string | null;
4274
+ updatedAt: string | null;
4275
+ deletedAt?: string | null;
4276
+ socialAccount: {
4277
+ id: string;
4278
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
4279
+ teamId: string;
4280
+ username?: string | null;
4281
+ displayName?: string | null;
4282
+ externalId?: string | null;
4283
+ userUsername?: string | null;
4284
+ userDisplayName?: string | null;
4285
+ userId?: string | null;
4286
+ channels?: Array<{
4287
+ id: string;
4288
+ name?: string | null;
4289
+ username?: string | null;
4290
+ webhook?: {
4291
+ id?: string | null;
4292
+ name?: string | null;
4293
+ avatar?: string | null;
4294
+ url?: string | null;
4295
+ } | null;
4296
+ }> | null;
4297
+ createdAt: string | null;
4298
+ updatedAt: string | null;
4299
+ deletedAt?: string | null;
4300
+ };
4301
+ }>;
4302
+ }>;
4303
+ total: number;
3463
4304
  };
3464
4305
  /**
3465
4306
  * 400
@@ -3503,8 +4344,8 @@ type $OpenApiTs = {
3503
4344
  };
3504
4345
  };
3505
4346
  };
3506
- delete: {
3507
- req: PostDeleteData;
4347
+ post: {
4348
+ req: PostCreateData;
3508
4349
  res: {
3509
4350
  /**
3510
4351
  * 200
@@ -3777,34 +4618,109 @@ declare class AppService {
3777
4618
  */
3778
4619
  appGetHealth(): CancelablePromise<AppGetHealthResponse>;
3779
4620
  }
4621
+ declare class OrganizationService {
4622
+ readonly httpRequest: BaseHttpRequest;
4623
+ constructor(httpRequest: BaseHttpRequest);
4624
+ /**
4625
+ * Get organization
4626
+ * @returns unknown 200
4627
+ * @throws ApiError
4628
+ */
4629
+ organizationGetOrganization(): CancelablePromise<OrganizationGetOrganizationResponse>;
4630
+ }
3780
4631
  declare class TeamService {
3781
4632
  readonly httpRequest: BaseHttpRequest;
3782
4633
  constructor(httpRequest: BaseHttpRequest);
3783
4634
  /**
3784
4635
  * Get team
4636
+ * @param data The data for the request.
4637
+ * @param data.id
4638
+ * @returns unknown 200
4639
+ * @throws ApiError
4640
+ */
4641
+ teamGetTeam(data: TeamGetTeamData): CancelablePromise<TeamGetTeamResponse>;
4642
+ /**
4643
+ * Update team
4644
+ * @param data The data for the request.
4645
+ * @param data.id
4646
+ * @param data.requestBody Body
4647
+ * @returns unknown 200
4648
+ * @throws ApiError
4649
+ */
4650
+ teamUpdateTeam(data: TeamUpdateTeamData): CancelablePromise<TeamUpdateTeamResponse>;
4651
+ /**
4652
+ * Delete team
4653
+ * @param data The data for the request.
4654
+ * @param data.id
4655
+ * @returns unknown 200
4656
+ * @throws ApiError
4657
+ */
4658
+ teamDeleteTeam(data: TeamDeleteTeamData): CancelablePromise<TeamDeleteTeamResponse>;
4659
+ /**
4660
+ * Create new team
4661
+ * @param data The data for the request.
4662
+ * @param data.requestBody Body
3785
4663
  * @returns unknown 200
3786
4664
  * @throws ApiError
3787
4665
  */
3788
- teamGetTeam(): CancelablePromise<TeamGetTeamResponse>;
4666
+ teamCreateTeam(data?: TeamCreateTeamData): CancelablePromise<TeamCreateTeamResponse>;
3789
4667
  }
3790
- declare class UploadService {
4668
+ declare class SocialAccountService {
3791
4669
  readonly httpRequest: BaseHttpRequest;
3792
4670
  constructor(httpRequest: BaseHttpRequest);
3793
4671
  /**
3794
- * Create upload
3795
- * Upload a file. This is the only endpoint that uses multipart/form-data.
4672
+ * Generate OAuth URL
3796
4673
  * @param data The data for the request.
3797
- * @param data.formData Body
4674
+ * @param data.requestBody Body
3798
4675
  * @returns unknown 200
3799
4676
  * @throws ApiError
3800
4677
  */
3801
- uploadCreate(data?: UploadCreateData): CancelablePromise<UploadCreateResponse>;
4678
+ socialAccountConnect(data?: SocialAccountConnectData): CancelablePromise<SocialAccountConnectResponse>;
4679
+ /**
4680
+ * Disconnect social account from team
4681
+ * @param data The data for the request.
4682
+ * @param data.requestBody Body
4683
+ * @returns unknown 200
4684
+ * @throws ApiError
4685
+ */
4686
+ socialAccountDisconnect(data?: SocialAccountDisconnectData): CancelablePromise<SocialAccountDisconnectResponse>;
4687
+ /**
4688
+ * Set channel for social account
4689
+ * @param data The data for the request.
4690
+ * @param data.requestBody Body
4691
+ * @returns unknown 200
4692
+ * @throws ApiError
4693
+ */
4694
+ socialAccountSetChannel(data?: SocialAccountSetChannelData): CancelablePromise<SocialAccountSetChannelResponse>;
4695
+ /**
4696
+ * Refresh channels for social account
4697
+ * @param data The data for the request.
4698
+ * @param data.requestBody Body
4699
+ * @returns unknown 200
4700
+ * @throws ApiError
4701
+ */
4702
+ socialAccountRefreshChannels(data?: SocialAccountRefreshChannelsData): CancelablePromise<SocialAccountRefreshChannelsResponse>;
4703
+ }
4704
+ declare class UploadService {
4705
+ readonly httpRequest: BaseHttpRequest;
4706
+ constructor(httpRequest: BaseHttpRequest);
3802
4707
  /**
3803
4708
  * Get upload list
4709
+ * @param data The data for the request.
4710
+ * @param data.teamId
4711
+ * @returns unknown 200
4712
+ * @throws ApiError
4713
+ */
4714
+ uploadGetList(data: UploadGetListData): CancelablePromise<UploadGetListResponse>;
4715
+ /**
4716
+ * Create upload
4717
+ * Upload a file. This is the only endpoint that uses multipart/form-data.
4718
+ * @param data The data for the request.
4719
+ * @param data.formData Body
3804
4720
  * @returns unknown 200
3805
4721
  * @throws ApiError
3806
4722
  */
3807
- uploadGetList(): CancelablePromise<UploadGetListResponse>;
4723
+ uploadCreate(data?: UploadCreateData): CancelablePromise<UploadCreateResponse>;
3808
4724
  /**
3809
4725
  * Delete many uploads
3810
4726
  * @param data The data for the request.
@@ -3834,58 +4750,61 @@ declare class PostService {
3834
4750
  readonly httpRequest: BaseHttpRequest;
3835
4751
  constructor(httpRequest: BaseHttpRequest);
3836
4752
  /**
3837
- * Create post
4753
+ * Get post
3838
4754
  * @param data The data for the request.
3839
- * @param data.requestBody Body
4755
+ * @param data.id
3840
4756
  * @returns unknown 200
3841
4757
  * @throws ApiError
3842
4758
  */
3843
- postCreate(data?: PostCreateData): CancelablePromise<PostCreateResponse>;
4759
+ postGet(data: PostGetData): CancelablePromise<PostGetResponse>;
3844
4760
  /**
3845
- * Get post list
4761
+ * Update post
3846
4762
  * @param data The data for the request.
3847
- * @param data.status
3848
- * @param data.orderBy
3849
- * @param data.order
3850
- * @param data.q
3851
- * @param data.platforms
3852
- * @param data.offset
3853
- * @param data.limit
4763
+ * @param data.id
4764
+ * @param data.requestBody Body
3854
4765
  * @returns unknown 200
3855
4766
  * @throws ApiError
3856
4767
  */
3857
- postGetList(data?: PostGetListData): CancelablePromise<PostGetListResponse>;
4768
+ postUpdate(data: PostUpdateData): CancelablePromise<PostUpdateResponse>;
3858
4769
  /**
3859
- * Get post
4770
+ * Delete post
3860
4771
  * @param data The data for the request.
3861
4772
  * @param data.id
3862
4773
  * @returns unknown 200
3863
4774
  * @throws ApiError
3864
4775
  */
3865
- postGet(data: PostGetData): CancelablePromise<PostGetResponse>;
4776
+ postDelete(data: PostDeleteData): CancelablePromise<PostDeleteResponse>;
3866
4777
  /**
3867
- * Update post
4778
+ * Get post list
3868
4779
  * @param data The data for the request.
3869
- * @param data.id
3870
- * @param data.requestBody Body
4780
+ * @param data.teamId
4781
+ * @param data.status
4782
+ * @param data.orderBy
4783
+ * @param data.order
4784
+ * @param data.q
4785
+ * @param data.platforms
4786
+ * @param data.offset
4787
+ * @param data.limit
3871
4788
  * @returns unknown 200
3872
4789
  * @throws ApiError
3873
4790
  */
3874
- postUpdate(data: PostUpdateData): CancelablePromise<PostUpdateResponse>;
4791
+ postGetList(data: PostGetListData): CancelablePromise<PostGetListResponse>;
3875
4792
  /**
3876
- * Delete post
4793
+ * Create post
3877
4794
  * @param data The data for the request.
3878
- * @param data.id
4795
+ * @param data.requestBody Body
3879
4796
  * @returns unknown 200
3880
4797
  * @throws ApiError
3881
4798
  */
3882
- postDelete(data: PostDeleteData): CancelablePromise<PostDeleteResponse>;
4799
+ postCreate(data?: PostCreateData): CancelablePromise<PostCreateResponse>;
3883
4800
  }
3884
4801
 
3885
4802
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3886
4803
  declare class Client {
3887
4804
  readonly app: AppService;
4805
+ readonly organization: OrganizationService;
3888
4806
  readonly post: PostService;
4807
+ readonly socialAccount: SocialAccountService;
3889
4808
  readonly team: TeamService;
3890
4809
  readonly upload: UploadService;
3891
4810
  readonly request: BaseHttpRequest;
@@ -3938,4 +4857,4 @@ declare class Bundlesocial extends Client {
3938
4857
  constructor(apiKey: string, options?: OpenAPIConfig);
3939
4858
  }
3940
4859
 
3941
- 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, WebhookEvent, WebhookEventType };
4860
+ export { $OpenApiTs, ApiError, AppGetHealthResponse, BaseHttpRequest, Bundlesocial, CancelError, CancelablePromise, OpenAPI, OpenAPIConfig, OrganizationGetOrganizationResponse, PostCreateData, PostCreateResponse, PostDeleteData, PostDeleteResponse, PostGetData, PostGetListData, PostGetListResponse, PostGetResponse, PostUpdateData, PostUpdateResponse, SocialAccountConnectData, SocialAccountConnectResponse, SocialAccountDisconnectData, SocialAccountDisconnectResponse, SocialAccountRefreshChannelsData, SocialAccountRefreshChannelsResponse, SocialAccountSetChannelData, SocialAccountSetChannelResponse, TeamCreateTeamData, TeamCreateTeamResponse, TeamDeleteTeamData, TeamDeleteTeamResponse, TeamGetTeamData, TeamGetTeamResponse, TeamUpdateTeamData, TeamUpdateTeamResponse, UploadCreateData, UploadCreateResponse, UploadDeleteData, UploadDeleteManyData, UploadDeleteManyResponse, UploadDeleteResponse, UploadGetData, UploadGetListData, UploadGetListResponse, UploadGetResponse, WebhookEvent, WebhookEventType };