bundlesocial 1.6.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -75,33 +75,27 @@ 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;
86
+ ref?: string | null;
83
87
  createdAt: string | null;
84
88
  updatedAt: string | null;
85
89
  deletedAt?: string | null;
86
- users: Array<{
87
- userId: string;
88
- teamId: string;
90
+ teams: Array<{
91
+ id: string;
92
+ name: string;
93
+ avatarUrl?: string | null;
94
+ organizationId: string;
95
+ createdById: string;
89
96
  createdAt: string | null;
90
97
  updatedAt: string | null;
91
98
  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
99
  }>;
106
100
  createdBy: {
107
101
  id: string;
@@ -116,34 +110,91 @@ type TeamGetTeamResponse = {
116
110
  updatedAt: string | null;
117
111
  deletedAt?: string | null;
118
112
  };
119
- invitations: Array<{
113
+ organizationSubscription?: {
114
+ id: string;
115
+ organizationId: string;
116
+ stripeSubscriptionId: string;
117
+ stripeSubscriptionItems?: Array<{
118
+ id: string;
119
+ price: string;
120
+ quantity: number;
121
+ }> | null;
122
+ status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
123
+ metadata?: unknown;
124
+ cancelAtPeriodEnd: boolean;
125
+ created: string | null;
126
+ currentPeriodStart: string | null;
127
+ currentPeriodEnd: string | null;
128
+ endedAt?: string | null;
129
+ cancelAt?: string | null;
130
+ canceledAt?: string | null;
131
+ trialStart?: string | null;
132
+ trialEnd?: string | null;
133
+ createdAt: string | null;
134
+ updatedAt: string | null;
135
+ teamPlan?: {
136
+ id: string;
137
+ organizationSubscriptionId: string;
138
+ teamId: string;
139
+ stripePriceId: string;
140
+ tier: 'PRO' | 'CUSTOM';
141
+ maxMonthlyPosts: number;
142
+ maxDailyPosts: number;
143
+ createdAt: string | null;
144
+ updatedAt: string | null;
145
+ } | null;
146
+ } | null;
147
+ };
148
+ type TeamGetTeamData = {
149
+ id: string;
150
+ };
151
+ type TeamGetTeamResponse = {
152
+ id: string;
153
+ name: string;
154
+ avatarUrl?: string | null;
155
+ organizationId: string;
156
+ createdById: string;
157
+ createdAt: string | null;
158
+ updatedAt: string | null;
159
+ deletedAt?: string | null;
160
+ organization: {
120
161
  id: string;
121
- email: string;
122
- teamId: string;
123
162
  createdById: string;
163
+ name?: string | null;
164
+ avatarUrl?: string | null;
165
+ defaultPaymentMethodFilled?: boolean;
166
+ billingAddressFilled?: boolean;
167
+ apiAccess?: boolean;
168
+ ref?: string | null;
124
169
  createdAt: string | null;
125
170
  updatedAt: string | null;
126
- }>;
127
- bots: Array<{
171
+ deletedAt?: string | null;
172
+ };
173
+ createdBy: {
128
174
  id: string;
129
- name: string;
175
+ externalId: string;
176
+ email: string;
177
+ emailVerified?: string | null;
178
+ firstName?: string | null;
179
+ lastName?: string | null;
130
180
  avatarUrl?: string | null;
131
- teamId: string;
181
+ role: 'ADMIN' | 'CUSTOMER';
132
182
  createdAt: string | null;
133
183
  updatedAt: string | null;
134
184
  deletedAt?: string | null;
135
- }>;
136
- webhooks: Array<{
185
+ };
186
+ bots: Array<{
137
187
  id: string;
188
+ name: string;
189
+ avatarUrl?: string | null;
138
190
  teamId: string;
139
- url: string;
140
191
  createdAt: string | null;
141
192
  updatedAt: string | null;
142
193
  deletedAt?: string | null;
143
194
  }>;
144
195
  socialAccounts: Array<{
145
196
  id: string;
146
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
197
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
147
198
  teamId: string;
148
199
  username?: string | null;
149
200
  displayName?: string | null;
@@ -169,16 +220,254 @@ type TeamGetTeamResponse = {
169
220
  usage: {
170
221
  monthlyPosts: number;
171
222
  };
223
+ bio?: {
224
+ id: string;
225
+ username: string;
226
+ name: string | null;
227
+ description: string | null;
228
+ avatarUrl: string | null;
229
+ socials: {
230
+ [key: string]: (string | null);
231
+ } | null;
232
+ teamId: string;
233
+ createdAt: string | null;
234
+ updatedAt: string | null;
235
+ items: Array<{
236
+ id: string;
237
+ bioId: string;
238
+ name: string;
239
+ link: string;
240
+ icon?: string | null;
241
+ enabled: boolean;
242
+ order?: number | null;
243
+ createdAt: string | null;
244
+ updatedAt: string | null;
245
+ analytics: Array<{
246
+ id: string;
247
+ count: number;
248
+ bioItemId: string;
249
+ deviceType: {
250
+ [key: string]: (number);
251
+ };
252
+ country: {
253
+ [key: string]: (number);
254
+ };
255
+ createdAt: string | null;
256
+ updatedAt: string | null;
257
+ }>;
258
+ }>;
259
+ } | null;
260
+ teamPlan?: {
261
+ id: string;
262
+ organizationSubscriptionId: string;
263
+ teamId: string;
264
+ stripePriceId: string;
265
+ tier: 'PRO' | 'CUSTOM';
266
+ maxMonthlyPosts: number;
267
+ maxDailyPosts: number;
268
+ createdAt: string | null;
269
+ updatedAt: string | null;
270
+ organizationSubscription?: {
271
+ id: string;
272
+ organizationId: string;
273
+ stripeSubscriptionId: string;
274
+ stripeSubscriptionItems?: Array<{
275
+ id: string;
276
+ price: string;
277
+ quantity: number;
278
+ }> | null;
279
+ status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
280
+ metadata?: unknown;
281
+ cancelAtPeriodEnd: boolean;
282
+ created: string | null;
283
+ currentPeriodStart: string | null;
284
+ currentPeriodEnd: string | null;
285
+ endedAt?: string | null;
286
+ cancelAt?: string | null;
287
+ canceledAt?: string | null;
288
+ trialStart?: string | null;
289
+ trialEnd?: string | null;
290
+ createdAt: string | null;
291
+ updatedAt: string | null;
292
+ } | null;
293
+ } | null;
294
+ };
295
+ type TeamUpdateTeamData = {
296
+ id: string;
297
+ /**
298
+ * Body
299
+ */
300
+ requestBody?: {
301
+ name?: string;
302
+ avatarUrl?: string | null;
303
+ };
172
304
  };
173
- type UploadCreateData = {
305
+ type TeamUpdateTeamResponse = {
306
+ id: string;
307
+ name: string;
308
+ avatarUrl?: string | null;
309
+ organizationId: string;
310
+ createdById: string;
311
+ createdAt: string | null;
312
+ updatedAt: string | null;
313
+ deletedAt?: string | null;
314
+ };
315
+ type TeamDeleteTeamData = {
316
+ id: string;
317
+ };
318
+ type TeamDeleteTeamResponse = {
319
+ id: string;
320
+ name: string;
321
+ avatarUrl?: string | null;
322
+ organizationId: string;
323
+ createdById: string;
324
+ createdAt: string | null;
325
+ updatedAt: string | null;
326
+ deletedAt?: string | null;
327
+ };
328
+ type TeamCreateTeamData = {
174
329
  /**
175
330
  * Body
176
331
  */
177
- formData?: {
178
- file?: (Blob | File) | null;
332
+ requestBody?: {
333
+ name: string;
334
+ tier: 'FREE' | 'PRO' | 'CUSTOM';
335
+ avatarUrl?: string | null;
179
336
  };
180
337
  };
181
- type UploadCreateResponse = {
338
+ type TeamCreateTeamResponse = {
339
+ id: string;
340
+ name: string;
341
+ avatarUrl?: string | null;
342
+ organizationId: string;
343
+ createdById: string;
344
+ createdAt: string | null;
345
+ updatedAt: string | null;
346
+ deletedAt?: string | null;
347
+ };
348
+ type SocialAccountConnectData = {
349
+ /**
350
+ * Body
351
+ */
352
+ requestBody?: {
353
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'DISCORD' | 'SLACK';
354
+ teamId: string;
355
+ redirectUrl: string;
356
+ };
357
+ };
358
+ type SocialAccountConnectResponse = {
359
+ /**
360
+ * OAuth URL - Redirect user to this URL to connect social account
361
+ */
362
+ url: string;
363
+ };
364
+ type SocialAccountDisconnectData = {
365
+ /**
366
+ * Body
367
+ */
368
+ requestBody?: {
369
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'DISCORD' | 'SLACK';
370
+ teamId: string;
371
+ };
372
+ };
373
+ type SocialAccountDisconnectResponse = {
374
+ id: string;
375
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
376
+ teamId: string;
377
+ username?: string | null;
378
+ displayName?: string | null;
379
+ externalId?: string | null;
380
+ userUsername?: string | null;
381
+ userDisplayName?: string | null;
382
+ userId?: string | null;
383
+ channels?: Array<{
384
+ id: string;
385
+ name?: string | null;
386
+ username?: string | null;
387
+ webhook?: {
388
+ id?: string | null;
389
+ name?: string | null;
390
+ avatar?: string | null;
391
+ url?: string | null;
392
+ } | null;
393
+ }> | null;
394
+ createdAt: string | null;
395
+ updatedAt: string | null;
396
+ deletedAt?: string | null;
397
+ };
398
+ type SocialAccountSetChannelData = {
399
+ /**
400
+ * Body
401
+ */
402
+ requestBody?: {
403
+ type: 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'YOUTUBE';
404
+ teamId: string;
405
+ channelId: string;
406
+ };
407
+ };
408
+ type SocialAccountSetChannelResponse = {
409
+ id: string;
410
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
411
+ teamId: string;
412
+ username?: string | null;
413
+ displayName?: string | null;
414
+ externalId?: string | null;
415
+ userUsername?: string | null;
416
+ userDisplayName?: string | null;
417
+ userId?: string | null;
418
+ channels?: Array<{
419
+ id: string;
420
+ name?: string | null;
421
+ username?: string | null;
422
+ webhook?: {
423
+ id?: string | null;
424
+ name?: string | null;
425
+ avatar?: string | null;
426
+ url?: string | null;
427
+ } | null;
428
+ }> | null;
429
+ createdAt: string | null;
430
+ updatedAt: string | null;
431
+ deletedAt?: string | null;
432
+ };
433
+ type SocialAccountRefreshChannelsData = {
434
+ /**
435
+ * Body
436
+ */
437
+ requestBody?: {
438
+ type: 'DISCORD' | 'SLACK' | 'REDDIT' | 'PINTEREST';
439
+ teamId: string;
440
+ };
441
+ };
442
+ type SocialAccountRefreshChannelsResponse = {
443
+ id: string;
444
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
445
+ teamId: string;
446
+ username?: string | null;
447
+ displayName?: string | null;
448
+ externalId?: string | null;
449
+ userUsername?: string | null;
450
+ userDisplayName?: string | null;
451
+ userId?: string | null;
452
+ channels?: Array<{
453
+ id: string;
454
+ name?: string | null;
455
+ username?: string | null;
456
+ webhook?: {
457
+ id?: string | null;
458
+ name?: string | null;
459
+ avatar?: string | null;
460
+ url?: string | null;
461
+ } | null;
462
+ }> | null;
463
+ createdAt: string | null;
464
+ updatedAt: string | null;
465
+ deletedAt?: string | null;
466
+ };
467
+ type UploadGetListData = {
468
+ teamId: string;
469
+ };
470
+ type UploadGetListResponse = Array<{
182
471
  id: string;
183
472
  teamId: string;
184
473
  expiresAt?: string | null;
@@ -197,8 +486,24 @@ type UploadCreateResponse = {
197
486
  ext?: string | null;
198
487
  createdAt: string | null;
199
488
  updatedAt: string | null;
489
+ posts: Array<{
490
+ postId: string;
491
+ uploadId: string;
492
+ createdAt: string | null;
493
+ updatedAt: string | null;
494
+ deletedAt?: string | null;
495
+ }>;
496
+ }>;
497
+ type UploadCreateData = {
498
+ /**
499
+ * Body
500
+ */
501
+ formData?: {
502
+ teamId: string;
503
+ file?: (Blob | File) | null;
504
+ };
200
505
  };
201
- type UploadGetListResponse = Array<{
506
+ type UploadCreateResponse = {
202
507
  id: string;
203
508
  teamId: string;
204
509
  expiresAt?: string | null;
@@ -217,14 +522,7 @@ type UploadGetListResponse = Array<{
217
522
  ext?: string | null;
218
523
  createdAt: string | null;
219
524
  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
- }>;
525
+ };
228
526
  type UploadDeleteManyData = {
229
527
  /**
230
528
  * Body
@@ -299,150 +597,10 @@ type UploadDeleteResponse = {
299
597
  createdAt: string | null;
300
598
  updatedAt: string | null;
301
599
  };
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
- };
600
+ type PostGetData = {
601
+ id: string;
444
602
  };
445
- type PostCreateResponse = {
603
+ type PostGetResponse = {
446
604
  id: string;
447
605
  teamId: string;
448
606
  title: string;
@@ -486,6 +644,10 @@ type PostCreateResponse = {
486
644
  text?: string | null;
487
645
  uploadIds?: Array<(string)> | null;
488
646
  } | null;
647
+ THREADS?: {
648
+ text?: string | null;
649
+ uploadIds?: Array<(string)> | null;
650
+ } | null;
489
651
  TIKTOK?: {
490
652
  text?: string | null;
491
653
  uploadIds?: Array<(string)> | null;
@@ -578,8 +740,7 @@ type PostCreateResponse = {
578
740
  */
579
741
  avatarUrl?: string | null;
580
742
  } | null;
581
- TELEGRAM?: unknown;
582
- THREADS?: unknown;
743
+ MASTODON?: unknown;
583
744
  };
584
745
  error?: string | null;
585
746
  errors?: {
@@ -593,7 +754,7 @@ type PostCreateResponse = {
593
754
  DISCORD?: string | null;
594
755
  SLACK?: string | null;
595
756
  YOUTUBE?: string | null;
596
- TELEGRAM?: string | null;
757
+ MASTODON?: string | null;
597
758
  THREADS?: string | null;
598
759
  } | null;
599
760
  externalData?: {
@@ -642,7 +803,7 @@ type PostCreateResponse = {
642
803
  id?: string | null;
643
804
  permalink?: string | null;
644
805
  } | null;
645
- TELEGRAM?: {
806
+ MASTODON?: {
646
807
  id?: string | null;
647
808
  permalink?: string | null;
648
809
  } | null;
@@ -654,25 +815,77 @@ type PostCreateResponse = {
654
815
  createdAt: string | null;
655
816
  updatedAt: string | null;
656
817
  deletedAt?: string | null;
818
+ uploads: Array<{
819
+ postId: string;
820
+ uploadId: string;
821
+ createdAt: string | null;
822
+ updatedAt: string | null;
823
+ deletedAt?: string | null;
824
+ upload: {
825
+ id: string;
826
+ teamId: string;
827
+ expiresAt?: string | null;
828
+ iconUrl?: string | null;
829
+ thumbnailUrl?: string | null;
830
+ url?: string | null;
831
+ iconPath?: string | null;
832
+ thumbnailPath?: string | null;
833
+ path?: string | null;
834
+ type: 'image' | 'video';
835
+ width?: number | null;
836
+ height?: number | null;
837
+ fileSize?: number | null;
838
+ videoLength?: number | null;
839
+ mime?: string | null;
840
+ ext?: string | null;
841
+ createdAt: string | null;
842
+ updatedAt: string | null;
843
+ };
844
+ }>;
845
+ socialAccounts: Array<{
846
+ postId: string;
847
+ socialAccountId: string;
848
+ createdAt: string | null;
849
+ updatedAt: string | null;
850
+ deletedAt?: string | null;
851
+ socialAccount: {
852
+ id: string;
853
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
854
+ teamId: string;
855
+ username?: string | null;
856
+ displayName?: string | null;
857
+ externalId?: string | null;
858
+ userUsername?: string | null;
859
+ userDisplayName?: string | null;
860
+ userId?: string | null;
861
+ channels?: Array<{
862
+ id: string;
863
+ name?: string | null;
864
+ username?: string | null;
865
+ webhook?: {
866
+ id?: string | null;
867
+ name?: string | null;
868
+ avatar?: string | null;
869
+ url?: string | null;
870
+ } | null;
871
+ }> | null;
872
+ createdAt: string | null;
873
+ updatedAt: string | null;
874
+ deletedAt?: string | null;
875
+ };
876
+ }>;
657
877
  };
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: {
878
+ type PostUpdateData = {
879
+ id: string;
880
+ /**
881
+ * Body
882
+ */
883
+ requestBody?: {
884
+ title?: string;
885
+ postDate?: string;
886
+ status?: 'DRAFT' | 'SCHEDULED';
887
+ socialAccountTypes?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
888
+ data?: {
676
889
  TWITTER?: {
677
890
  text?: string | null;
678
891
  uploadIds?: Array<(string)> | null;
@@ -709,6 +922,10 @@ type PostGetListResponse = {
709
922
  text?: string | null;
710
923
  uploadIds?: Array<(string)> | null;
711
924
  } | null;
925
+ THREADS?: {
926
+ text?: string | null;
927
+ uploadIds?: Array<(string)> | null;
928
+ } | null;
712
929
  TIKTOK?: {
713
930
  text?: string | null;
714
931
  uploadIds?: Array<(string)> | null;
@@ -801,158 +1018,21 @@ type PostGetListResponse = {
801
1018
  */
802
1019
  avatarUrl?: string | null;
803
1020
  } | null;
804
- TELEGRAM?: unknown;
805
- THREADS?: unknown;
1021
+ MASTODON?: unknown;
806
1022
  };
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;
1023
+ };
1024
+ };
1025
+ type PostUpdateResponse = {
1026
+ id: string;
1027
+ teamId: string;
1028
+ title: string;
1029
+ postDate: string | null;
1030
+ postedDate?: string | null;
1031
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1032
+ data: {
1033
+ TWITTER?: {
1034
+ text?: string | null;
1035
+ uploadIds?: Array<(string)> | null;
956
1036
  } | null;
957
1037
  PINTEREST?: {
958
1038
  text?: string | null;
@@ -986,6 +1066,10 @@ type PostGetResponse = {
986
1066
  text?: string | null;
987
1067
  uploadIds?: Array<(string)> | null;
988
1068
  } | null;
1069
+ THREADS?: {
1070
+ text?: string | null;
1071
+ uploadIds?: Array<(string)> | null;
1072
+ } | null;
989
1073
  TIKTOK?: {
990
1074
  text?: string | null;
991
1075
  uploadIds?: Array<(string)> | null;
@@ -1078,8 +1162,7 @@ type PostGetResponse = {
1078
1162
  */
1079
1163
  avatarUrl?: string | null;
1080
1164
  } | null;
1081
- TELEGRAM?: unknown;
1082
- THREADS?: unknown;
1165
+ MASTODON?: unknown;
1083
1166
  };
1084
1167
  error?: string | null;
1085
1168
  errors?: {
@@ -1093,7 +1176,7 @@ type PostGetResponse = {
1093
1176
  DISCORD?: string | null;
1094
1177
  SLACK?: string | null;
1095
1178
  YOUTUBE?: string | null;
1096
- TELEGRAM?: string | null;
1179
+ MASTODON?: string | null;
1097
1180
  THREADS?: string | null;
1098
1181
  } | null;
1099
1182
  externalData?: {
@@ -1142,7 +1225,7 @@ type PostGetResponse = {
1142
1225
  id?: string | null;
1143
1226
  permalink?: string | null;
1144
1227
  } | null;
1145
- TELEGRAM?: {
1228
+ MASTODON?: {
1146
1229
  id?: string | null;
1147
1230
  permalink?: string | null;
1148
1231
  } | null;
@@ -1154,211 +1237,11 @@ type PostGetResponse = {
1154
1237
  createdAt: string | null;
1155
1238
  updatedAt: string | null;
1156
1239
  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
1240
  };
1217
- type PostUpdateData = {
1241
+ type PostDeleteData = {
1218
1242
  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
1243
  };
1361
- type PostUpdateResponse = {
1244
+ type PostDeleteResponse = {
1362
1245
  id: string;
1363
1246
  teamId: string;
1364
1247
  title: string;
@@ -1402,6 +1285,10 @@ type PostUpdateResponse = {
1402
1285
  text?: string | null;
1403
1286
  uploadIds?: Array<(string)> | null;
1404
1287
  } | null;
1288
+ THREADS?: {
1289
+ text?: string | null;
1290
+ uploadIds?: Array<(string)> | null;
1291
+ } | null;
1405
1292
  TIKTOK?: {
1406
1293
  text?: string | null;
1407
1294
  uploadIds?: Array<(string)> | null;
@@ -1494,8 +1381,7 @@ type PostUpdateResponse = {
1494
1381
  */
1495
1382
  avatarUrl?: string | null;
1496
1383
  } | null;
1497
- TELEGRAM?: unknown;
1498
- THREADS?: unknown;
1384
+ MASTODON?: unknown;
1499
1385
  };
1500
1386
  error?: string | null;
1501
1387
  errors?: {
@@ -1509,7 +1395,7 @@ type PostUpdateResponse = {
1509
1395
  DISCORD?: string | null;
1510
1396
  SLACK?: string | null;
1511
1397
  YOUTUBE?: string | null;
1512
- TELEGRAM?: string | null;
1398
+ MASTODON?: string | null;
1513
1399
  THREADS?: string | null;
1514
1400
  } | null;
1515
1401
  externalData?: {
@@ -1558,7 +1444,7 @@ type PostUpdateResponse = {
1558
1444
  id?: string | null;
1559
1445
  permalink?: string | null;
1560
1446
  } | null;
1561
- TELEGRAM?: {
1447
+ MASTODON?: {
1562
1448
  id?: string | null;
1563
1449
  permalink?: string | null;
1564
1450
  } | null;
@@ -1571,446 +1457,667 @@ type PostUpdateResponse = {
1571
1457
  updatedAt: string | null;
1572
1458
  deletedAt?: string | null;
1573
1459
  };
1574
- type PostDeleteData = {
1575
- id: string;
1576
- };
1577
- type PostDeleteResponse = {
1578
- id: string;
1460
+ type PostGetListData = {
1461
+ limit?: number | null;
1462
+ offset?: number | null;
1463
+ order?: 'ASC' | 'DESC' | null;
1464
+ orderBy?: 'createdAt' | 'updatedAt' | 'postDate' | 'postedDate' | 'deletedAt' | null;
1465
+ platforms?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')> | null;
1466
+ q?: string | null;
1467
+ status?: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING' | null;
1579
1468
  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;
1469
+ };
1470
+ type PostGetListResponse = {
1471
+ items: Array<{
1472
+ id: string;
1473
+ teamId: string;
1474
+ title: string;
1475
+ postDate: string | null;
1476
+ postedDate?: string | null;
1477
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1478
+ data: {
1479
+ TWITTER?: {
1480
+ text?: string | null;
1481
+ uploadIds?: Array<(string)> | null;
1482
+ } | null;
1483
+ PINTEREST?: {
1484
+ text?: string | null;
1485
+ description?: string | null;
1486
+ boardName: string;
1487
+ uploadIds?: Array<(string)> | null;
1488
+ /**
1489
+ * The URL to which the Pin will link to.
1490
+ */
1491
+ link?: string | null;
1492
+ /**
1493
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
1494
+ */
1495
+ altText?: string | null;
1496
+ /**
1497
+ * A note about the Pin. This is not visible to the public.
1498
+ */
1499
+ note?: string | null;
1500
+ /**
1501
+ * The dominant color of the image. This is used to display the image before it's loaded.
1502
+ */
1503
+ dominantColor?: string | null;
1504
+ } | null;
1505
+ FACEBOOK?: {
1506
+ type?: 'POST' | 'REEL' | 'STORY';
1507
+ text?: string | null;
1508
+ uploadIds?: Array<(string)> | null;
1509
+ } | null;
1510
+ INSTAGRAM?: {
1511
+ type?: 'POST' | 'REEL' | 'STORY';
1512
+ text?: string | null;
1513
+ uploadIds?: Array<(string)> | null;
1514
+ } | null;
1515
+ THREADS?: {
1516
+ text?: string | null;
1517
+ uploadIds?: Array<(string)> | null;
1518
+ } | null;
1519
+ TIKTOK?: {
1520
+ text?: string | null;
1521
+ uploadIds?: Array<(string)> | null;
1522
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1523
+ /**
1524
+ * Set to true if the video is a paid partnership to promote a third-party business.
1525
+ */
1526
+ isBrandContent?: boolean | null;
1527
+ /**
1528
+ * Set to true if this video is promoting the creator's own business.
1529
+ */
1530
+ isOrganicBrandContent?: boolean | null;
1531
+ /**
1532
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
1533
+ */
1534
+ disableComments?: boolean | null;
1535
+ /**
1536
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
1537
+ */
1538
+ disableDuet?: boolean | null;
1539
+ /**
1540
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
1541
+ */
1542
+ disableStitch?: boolean | null;
1543
+ } | null;
1544
+ LINKEDIN?: {
1545
+ text: string;
1546
+ uploadIds?: Array<(string)> | null;
1547
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1548
+ /**
1549
+ * Set to true if the post shouldn't be displayed in the main feed.
1550
+ */
1551
+ hideFromFeed?: boolean | null;
1552
+ /**
1553
+ * Set to true if the post is not allowed to be reshared.
1554
+ */
1555
+ disableReshare?: boolean | null;
1556
+ } | null;
1557
+ YOUTUBE?: {
1558
+ type?: 'VIDEO' | 'SHORT';
1559
+ uploadIds?: Array<(string)> | null;
1560
+ text?: string | null;
1561
+ description?: string | null;
1562
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1563
+ /**
1564
+ * Set to true if the video is made for kids.
1565
+ */
1566
+ madeForKids?: boolean | null;
1567
+ } | null;
1568
+ REDDIT?: {
1569
+ /**
1570
+ * Subreddit name. Example: r/subredditName or u/username
1571
+ */
1572
+ sr: string;
1573
+ text: string;
1574
+ description?: string | null;
1575
+ uploadIds?: Array<(string)> | null;
1576
+ /**
1577
+ * The URL to which the post will link to.
1578
+ */
1579
+ link?: string | null;
1580
+ /**
1581
+ * Set to true if the post is NSFW.
1582
+ */
1583
+ nsfw?: boolean | null;
1584
+ } | null;
1585
+ DISCORD?: {
1586
+ channelId: string;
1587
+ text?: string | null;
1588
+ uploadIds?: Array<(string)> | null;
1589
+ /**
1590
+ * The username to display as the author of the message.
1591
+ */
1592
+ username?: string | null;
1593
+ /**
1594
+ * Avatar url to display as the author of the message.
1595
+ */
1596
+ avatarUrl?: string | null;
1597
+ } | null;
1598
+ SLACK?: {
1599
+ channelId: string;
1600
+ text?: string | null;
1601
+ uploadIds?: Array<(string)> | null;
1602
+ /**
1603
+ * The username to display as the author of the message.
1604
+ */
1605
+ username?: string | null;
1606
+ /**
1607
+ * Avatar url to display as the author of the message.
1608
+ */
1609
+ avatarUrl?: string | null;
1610
+ } | null;
1611
+ MASTODON?: unknown;
1612
+ };
1613
+ error?: string | null;
1614
+ errors?: {
1615
+ TWITTER?: string | null;
1616
+ PINTEREST?: string | null;
1617
+ FACEBOOK?: string | null;
1618
+ INSTAGRAM?: string | null;
1619
+ TIKTOK?: string | null;
1620
+ LINKEDIN?: string | null;
1621
+ REDDIT?: string | null;
1622
+ DISCORD?: string | null;
1623
+ SLACK?: string | null;
1624
+ YOUTUBE?: string | null;
1625
+ MASTODON?: string | null;
1626
+ THREADS?: string | null;
1610
1627
  } | 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;
1620
- } | 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;
1712
- } | null;
1713
- TELEGRAM?: unknown;
1714
- THREADS?: unknown;
1715
- };
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;
1628
+ externalData?: {
1629
+ TWITTER?: {
1630
+ id?: string | null;
1631
+ permalink?: string | null;
1632
+ } | null;
1633
+ PINTEREST?: {
1634
+ id?: string | null;
1635
+ permalink?: string | null;
1636
+ } | null;
1637
+ FACEBOOK?: {
1638
+ id?: string | null;
1639
+ postId?: string | null;
1640
+ videoId?: string | null;
1641
+ permalink?: string | null;
1642
+ } | null;
1643
+ INSTAGRAM?: {
1644
+ id?: string | null;
1645
+ permalink?: string | null;
1646
+ } | null;
1647
+ TIKTOK?: {
1648
+ id?: string | null;
1649
+ permalink?: string | null;
1650
+ } | null;
1651
+ LINKEDIN?: {
1652
+ id?: string | null;
1653
+ permalink?: string | null;
1654
+ } | null;
1655
+ REDDIT?: {
1656
+ id?: string | null;
1657
+ permalink?: string | null;
1658
+ subreddit_name?: string | null;
1659
+ } | null;
1660
+ DISCORD?: {
1661
+ id?: string | null;
1662
+ permalink?: string | null;
1663
+ channelId?: string | null;
1664
+ } | null;
1665
+ SLACK?: {
1666
+ id?: string | null;
1667
+ permalink?: string | null;
1668
+ channelId?: string | null;
1669
+ } | null;
1670
+ YOUTUBE?: {
1671
+ id?: string | null;
1672
+ permalink?: string | null;
1673
+ } | null;
1674
+ MASTODON?: {
1675
+ id?: string | null;
1676
+ permalink?: string | null;
1677
+ } | null;
1678
+ THREADS?: {
1679
+ id?: string | null;
1680
+ permalink?: string | null;
1681
+ } | null;
1784
1682
  } | null;
1785
- } | null;
1786
- createdAt: string | null;
1787
- updatedAt: string | null;
1788
- deletedAt?: string | null;
1683
+ createdAt: string | null;
1684
+ updatedAt: string | null;
1685
+ deletedAt?: string | null;
1686
+ uploads: Array<{
1687
+ postId: string;
1688
+ uploadId: string;
1689
+ createdAt: string | null;
1690
+ updatedAt: string | null;
1691
+ deletedAt?: string | null;
1692
+ upload: {
1693
+ id: string;
1694
+ teamId: string;
1695
+ expiresAt?: string | null;
1696
+ iconUrl?: string | null;
1697
+ thumbnailUrl?: string | null;
1698
+ url?: string | null;
1699
+ iconPath?: string | null;
1700
+ thumbnailPath?: string | null;
1701
+ path?: string | null;
1702
+ type: 'image' | 'video';
1703
+ width?: number | null;
1704
+ height?: number | null;
1705
+ fileSize?: number | null;
1706
+ videoLength?: number | null;
1707
+ mime?: string | null;
1708
+ ext?: string | null;
1709
+ createdAt: string | null;
1710
+ updatedAt: string | null;
1711
+ };
1712
+ }>;
1713
+ socialAccounts: Array<{
1714
+ postId: string;
1715
+ socialAccountId: string;
1716
+ createdAt: string | null;
1717
+ updatedAt: string | null;
1718
+ deletedAt?: string | null;
1719
+ socialAccount: {
1720
+ id: string;
1721
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
1722
+ teamId: string;
1723
+ username?: string | null;
1724
+ displayName?: string | null;
1725
+ externalId?: string | null;
1726
+ userUsername?: string | null;
1727
+ userDisplayName?: string | null;
1728
+ userId?: string | null;
1729
+ channels?: Array<{
1730
+ id: string;
1731
+ name?: string | null;
1732
+ username?: string | null;
1733
+ webhook?: {
1734
+ id?: string | null;
1735
+ name?: string | null;
1736
+ avatar?: string | null;
1737
+ url?: string | null;
1738
+ } | null;
1739
+ }> | null;
1740
+ createdAt: string | null;
1741
+ updatedAt: string | null;
1742
+ deletedAt?: string | null;
1743
+ };
1744
+ }>;
1745
+ }>;
1746
+ total: number;
1789
1747
  };
1790
- type $OpenApiTs = {
1791
- '/api/v1/': {
1792
- get: {
1793
- res: {
1794
- /**
1795
- * 200
1796
- */
1797
- 200: {
1798
- status: string;
1799
- createdAt: string;
1800
- };
1801
- /**
1802
- * 400
1803
- */
1804
- 400: {
1805
- message: string;
1806
- issues?: Array<{
1807
- message: string;
1808
- path?: Array<(string | number)> | null;
1809
- }> | null;
1810
- };
1811
- /**
1812
- * 401
1813
- */
1814
- 401: {
1815
- message: string;
1816
- };
1817
- /**
1818
- * 403
1819
- */
1820
- 403: {
1821
- message: string;
1822
- };
1748
+ type PostCreateData = {
1749
+ /**
1750
+ * Body
1751
+ */
1752
+ requestBody?: {
1753
+ teamId: string;
1754
+ title: string;
1755
+ postDate: string;
1756
+ status: 'DRAFT' | 'SCHEDULED';
1757
+ socialAccountTypes: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
1758
+ data: {
1759
+ TWITTER?: {
1760
+ text?: string | null;
1761
+ uploadIds?: Array<(string)> | null;
1762
+ } | null;
1763
+ PINTEREST?: {
1764
+ text?: string | null;
1765
+ description?: string | null;
1766
+ boardName: string;
1767
+ uploadIds?: Array<(string)> | null;
1823
1768
  /**
1824
- * 404
1769
+ * The URL to which the Pin will link to.
1825
1770
  */
1826
- 404: {
1827
- message: string;
1828
- };
1771
+ link?: string | null;
1829
1772
  /**
1830
- * 429
1773
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
1831
1774
  */
1832
- 429: {
1833
- message: string;
1834
- };
1775
+ altText?: string | null;
1835
1776
  /**
1836
- * 500
1777
+ * A note about the Pin. This is not visible to the public.
1837
1778
  */
1838
- 500: {
1839
- message: string;
1840
- };
1841
- };
1842
- };
1843
- };
1844
- '/api/v1/team/': {
1845
- get: {
1846
- res: {
1779
+ note?: string | null;
1847
1780
  /**
1848
- * 200
1781
+ * The dominant color of the image. This is used to display the image before it's loaded.
1849
1782
  */
1850
- 200: {
1851
- 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<{
1917
- id: string;
1918
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
1919
- teamId: string;
1920
- 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;
1928
- 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
- };
1944
- };
1783
+ dominantColor?: string | null;
1784
+ } | null;
1785
+ FACEBOOK?: {
1786
+ type?: 'POST' | 'REEL' | 'STORY';
1787
+ text?: string | null;
1788
+ uploadIds?: Array<(string)> | null;
1789
+ } | null;
1790
+ INSTAGRAM?: {
1791
+ type?: 'POST' | 'REEL' | 'STORY';
1792
+ text?: string | null;
1793
+ uploadIds?: Array<(string)> | null;
1794
+ } | null;
1795
+ THREADS?: {
1796
+ text?: string | null;
1797
+ uploadIds?: Array<(string)> | null;
1798
+ } | null;
1799
+ TIKTOK?: {
1800
+ text?: string | null;
1801
+ uploadIds?: Array<(string)> | null;
1802
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1945
1803
  /**
1946
- * 400
1804
+ * Set to true if the video is a paid partnership to promote a third-party business.
1947
1805
  */
1948
- 400: {
1949
- message: string;
1950
- issues?: Array<{
1951
- message: string;
1952
- path?: Array<(string | number)> | null;
1953
- }> | null;
1954
- };
1806
+ isBrandContent?: boolean | null;
1955
1807
  /**
1956
- * 401
1808
+ * Set to true if this video is promoting the creator's own business.
1957
1809
  */
1958
- 401: {
1959
- message: string;
1960
- };
1810
+ isOrganicBrandContent?: boolean | null;
1961
1811
  /**
1962
- * 403
1812
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
1963
1813
  */
1964
- 403: {
1965
- message: string;
1966
- };
1814
+ disableComments?: boolean | null;
1967
1815
  /**
1968
- * 404
1816
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
1969
1817
  */
1970
- 404: {
1971
- message: string;
1972
- };
1818
+ disableDuet?: boolean | null;
1973
1819
  /**
1974
- * 429
1820
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
1975
1821
  */
1976
- 429: {
1977
- message: string;
1978
- };
1822
+ disableStitch?: boolean | null;
1823
+ } | null;
1824
+ LINKEDIN?: {
1825
+ text: string;
1826
+ uploadIds?: Array<(string)> | null;
1827
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1979
1828
  /**
1980
- * 500
1829
+ * Set to true if the post shouldn't be displayed in the main feed.
1981
1830
  */
1982
- 500: {
1983
- message: string;
1984
- };
1985
- };
1831
+ hideFromFeed?: boolean | null;
1832
+ /**
1833
+ * Set to true if the post is not allowed to be reshared.
1834
+ */
1835
+ disableReshare?: boolean | null;
1836
+ } | null;
1837
+ YOUTUBE?: {
1838
+ type?: 'VIDEO' | 'SHORT';
1839
+ uploadIds?: Array<(string)> | null;
1840
+ text?: string | null;
1841
+ description?: string | null;
1842
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1843
+ /**
1844
+ * Set to true if the video is made for kids.
1845
+ */
1846
+ madeForKids?: boolean | null;
1847
+ } | null;
1848
+ REDDIT?: {
1849
+ /**
1850
+ * Subreddit name. Example: r/subredditName or u/username
1851
+ */
1852
+ sr: string;
1853
+ text: string;
1854
+ description?: string | null;
1855
+ uploadIds?: Array<(string)> | null;
1856
+ /**
1857
+ * The URL to which the post will link to.
1858
+ */
1859
+ link?: string | null;
1860
+ /**
1861
+ * Set to true if the post is NSFW.
1862
+ */
1863
+ nsfw?: boolean | null;
1864
+ } | null;
1865
+ DISCORD?: {
1866
+ channelId: string;
1867
+ text?: string | null;
1868
+ uploadIds?: Array<(string)> | null;
1869
+ /**
1870
+ * The username to display as the author of the message.
1871
+ */
1872
+ username?: string | null;
1873
+ /**
1874
+ * Avatar url to display as the author of the message.
1875
+ */
1876
+ avatarUrl?: string | null;
1877
+ } | null;
1878
+ SLACK?: {
1879
+ channelId: string;
1880
+ text?: string | null;
1881
+ uploadIds?: Array<(string)> | null;
1882
+ /**
1883
+ * The username to display as the author of the message.
1884
+ */
1885
+ username?: string | null;
1886
+ /**
1887
+ * Avatar url to display as the author of the message.
1888
+ */
1889
+ avatarUrl?: string | null;
1890
+ } | null;
1891
+ MASTODON?: unknown;
1986
1892
  };
1987
1893
  };
1988
- '/api/v1/upload/': {
1989
- post: {
1990
- req: UploadCreateData;
1894
+ };
1895
+ type PostCreateResponse = {
1896
+ id: string;
1897
+ teamId: string;
1898
+ title: string;
1899
+ postDate: string | null;
1900
+ postedDate?: string | null;
1901
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
1902
+ data: {
1903
+ TWITTER?: {
1904
+ text?: string | null;
1905
+ uploadIds?: Array<(string)> | null;
1906
+ } | null;
1907
+ PINTEREST?: {
1908
+ text?: string | null;
1909
+ description?: string | null;
1910
+ boardName: string;
1911
+ uploadIds?: Array<(string)> | null;
1912
+ /**
1913
+ * The URL to which the Pin will link to.
1914
+ */
1915
+ link?: string | null;
1916
+ /**
1917
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
1918
+ */
1919
+ altText?: string | null;
1920
+ /**
1921
+ * A note about the Pin. This is not visible to the public.
1922
+ */
1923
+ note?: string | null;
1924
+ /**
1925
+ * The dominant color of the image. This is used to display the image before it's loaded.
1926
+ */
1927
+ dominantColor?: string | null;
1928
+ } | null;
1929
+ FACEBOOK?: {
1930
+ type?: 'POST' | 'REEL' | 'STORY';
1931
+ text?: string | null;
1932
+ uploadIds?: Array<(string)> | null;
1933
+ } | null;
1934
+ INSTAGRAM?: {
1935
+ type?: 'POST' | 'REEL' | 'STORY';
1936
+ text?: string | null;
1937
+ uploadIds?: Array<(string)> | null;
1938
+ } | null;
1939
+ THREADS?: {
1940
+ text?: string | null;
1941
+ uploadIds?: Array<(string)> | null;
1942
+ } | null;
1943
+ TIKTOK?: {
1944
+ text?: string | null;
1945
+ uploadIds?: Array<(string)> | null;
1946
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
1947
+ /**
1948
+ * Set to true if the video is a paid partnership to promote a third-party business.
1949
+ */
1950
+ isBrandContent?: boolean | null;
1951
+ /**
1952
+ * Set to true if this video is promoting the creator's own business.
1953
+ */
1954
+ isOrganicBrandContent?: boolean | null;
1955
+ /**
1956
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
1957
+ */
1958
+ disableComments?: boolean | null;
1959
+ /**
1960
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
1961
+ */
1962
+ disableDuet?: boolean | null;
1963
+ /**
1964
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
1965
+ */
1966
+ disableStitch?: boolean | null;
1967
+ } | null;
1968
+ LINKEDIN?: {
1969
+ text: string;
1970
+ uploadIds?: Array<(string)> | null;
1971
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
1972
+ /**
1973
+ * Set to true if the post shouldn't be displayed in the main feed.
1974
+ */
1975
+ hideFromFeed?: boolean | null;
1976
+ /**
1977
+ * Set to true if the post is not allowed to be reshared.
1978
+ */
1979
+ disableReshare?: boolean | null;
1980
+ } | null;
1981
+ YOUTUBE?: {
1982
+ type?: 'VIDEO' | 'SHORT';
1983
+ uploadIds?: Array<(string)> | null;
1984
+ text?: string | null;
1985
+ description?: string | null;
1986
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
1987
+ /**
1988
+ * Set to true if the video is made for kids.
1989
+ */
1990
+ madeForKids?: boolean | null;
1991
+ } | null;
1992
+ REDDIT?: {
1993
+ /**
1994
+ * Subreddit name. Example: r/subredditName or u/username
1995
+ */
1996
+ sr: string;
1997
+ text: string;
1998
+ description?: string | null;
1999
+ uploadIds?: Array<(string)> | null;
2000
+ /**
2001
+ * The URL to which the post will link to.
2002
+ */
2003
+ link?: string | null;
2004
+ /**
2005
+ * Set to true if the post is NSFW.
2006
+ */
2007
+ nsfw?: boolean | null;
2008
+ } | null;
2009
+ DISCORD?: {
2010
+ channelId: string;
2011
+ text?: string | null;
2012
+ uploadIds?: Array<(string)> | null;
2013
+ /**
2014
+ * The username to display as the author of the message.
2015
+ */
2016
+ username?: string | null;
2017
+ /**
2018
+ * Avatar url to display as the author of the message.
2019
+ */
2020
+ avatarUrl?: string | null;
2021
+ } | null;
2022
+ SLACK?: {
2023
+ channelId: string;
2024
+ text?: string | null;
2025
+ uploadIds?: Array<(string)> | null;
2026
+ /**
2027
+ * The username to display as the author of the message.
2028
+ */
2029
+ username?: string | null;
2030
+ /**
2031
+ * Avatar url to display as the author of the message.
2032
+ */
2033
+ avatarUrl?: string | null;
2034
+ } | null;
2035
+ MASTODON?: unknown;
2036
+ };
2037
+ error?: string | null;
2038
+ errors?: {
2039
+ TWITTER?: string | null;
2040
+ PINTEREST?: string | null;
2041
+ FACEBOOK?: string | null;
2042
+ INSTAGRAM?: string | null;
2043
+ TIKTOK?: string | null;
2044
+ LINKEDIN?: string | null;
2045
+ REDDIT?: string | null;
2046
+ DISCORD?: string | null;
2047
+ SLACK?: string | null;
2048
+ YOUTUBE?: string | null;
2049
+ MASTODON?: string | null;
2050
+ THREADS?: string | null;
2051
+ } | null;
2052
+ externalData?: {
2053
+ TWITTER?: {
2054
+ id?: string | null;
2055
+ permalink?: string | null;
2056
+ } | null;
2057
+ PINTEREST?: {
2058
+ id?: string | null;
2059
+ permalink?: string | null;
2060
+ } | null;
2061
+ FACEBOOK?: {
2062
+ id?: string | null;
2063
+ postId?: string | null;
2064
+ videoId?: string | null;
2065
+ permalink?: string | null;
2066
+ } | null;
2067
+ INSTAGRAM?: {
2068
+ id?: string | null;
2069
+ permalink?: string | null;
2070
+ } | null;
2071
+ TIKTOK?: {
2072
+ id?: string | null;
2073
+ permalink?: string | null;
2074
+ } | null;
2075
+ LINKEDIN?: {
2076
+ id?: string | null;
2077
+ permalink?: string | null;
2078
+ } | null;
2079
+ REDDIT?: {
2080
+ id?: string | null;
2081
+ permalink?: string | null;
2082
+ subreddit_name?: string | null;
2083
+ } | null;
2084
+ DISCORD?: {
2085
+ id?: string | null;
2086
+ permalink?: string | null;
2087
+ channelId?: string | null;
2088
+ } | null;
2089
+ SLACK?: {
2090
+ id?: string | null;
2091
+ permalink?: string | null;
2092
+ channelId?: string | null;
2093
+ } | null;
2094
+ YOUTUBE?: {
2095
+ id?: string | null;
2096
+ permalink?: string | null;
2097
+ } | null;
2098
+ MASTODON?: {
2099
+ id?: string | null;
2100
+ permalink?: string | null;
2101
+ } | null;
2102
+ THREADS?: {
2103
+ id?: string | null;
2104
+ permalink?: string | null;
2105
+ } | null;
2106
+ } | null;
2107
+ createdAt: string | null;
2108
+ updatedAt: string | null;
2109
+ deletedAt?: string | null;
2110
+ };
2111
+ type $OpenApiTs = {
2112
+ '/api/v1/': {
2113
+ get: {
1991
2114
  res: {
1992
2115
  /**
1993
2116
  * 200
1994
2117
  */
1995
2118
  200: {
1996
- id: string;
1997
- teamId: string;
1998
- expiresAt?: string | null;
1999
- iconUrl?: string | null;
2000
- thumbnailUrl?: string | null;
2001
- url?: string | null;
2002
- iconPath?: string | null;
2003
- thumbnailPath?: string | null;
2004
- path?: string | null;
2005
- type: 'image' | 'video';
2006
- width?: number | null;
2007
- height?: number | null;
2008
- fileSize?: number | null;
2009
- videoLength?: number | null;
2010
- mime?: string | null;
2011
- ext?: string | null;
2012
- createdAt: string | null;
2013
- updatedAt: string | null;
2119
+ status: string;
2120
+ createdAt: string;
2014
2121
  };
2015
2122
  /**
2016
2123
  * 400
@@ -2054,38 +2161,83 @@ type $OpenApiTs = {
2054
2161
  };
2055
2162
  };
2056
2163
  };
2164
+ };
2165
+ '/api/v1/organization/': {
2057
2166
  get: {
2058
2167
  res: {
2059
2168
  /**
2060
2169
  * 200
2061
2170
  */
2062
- 200: Array<{
2171
+ 200: {
2063
2172
  id: string;
2064
- teamId: string;
2065
- expiresAt?: string | null;
2066
- iconUrl?: string | null;
2067
- thumbnailUrl?: string | null;
2068
- url?: string | null;
2069
- iconPath?: string | null;
2070
- thumbnailPath?: string | null;
2071
- path?: string | null;
2072
- type: 'image' | 'video';
2073
- width?: number | null;
2074
- height?: number | null;
2075
- fileSize?: number | null;
2076
- videoLength?: number | null;
2077
- mime?: string | null;
2078
- ext?: string | null;
2173
+ createdById: string;
2174
+ name?: string | null;
2175
+ avatarUrl?: string | null;
2176
+ defaultPaymentMethodFilled?: boolean;
2177
+ billingAddressFilled?: boolean;
2178
+ apiAccess?: boolean;
2179
+ ref?: string | null;
2079
2180
  createdAt: string | null;
2080
2181
  updatedAt: string | null;
2081
- posts: Array<{
2082
- postId: string;
2083
- uploadId: string;
2182
+ deletedAt?: string | null;
2183
+ teams: Array<{
2184
+ id: string;
2185
+ name: string;
2186
+ avatarUrl?: string | null;
2187
+ organizationId: string;
2188
+ createdById: string;
2084
2189
  createdAt: string | null;
2085
2190
  updatedAt: string | null;
2086
2191
  deletedAt?: string | null;
2087
2192
  }>;
2088
- }>;
2193
+ createdBy: {
2194
+ id: string;
2195
+ externalId: string;
2196
+ email: string;
2197
+ emailVerified?: string | null;
2198
+ firstName?: string | null;
2199
+ lastName?: string | null;
2200
+ avatarUrl?: string | null;
2201
+ role: 'ADMIN' | 'CUSTOMER';
2202
+ createdAt: string | null;
2203
+ updatedAt: string | null;
2204
+ deletedAt?: string | null;
2205
+ };
2206
+ organizationSubscription?: {
2207
+ id: string;
2208
+ organizationId: string;
2209
+ stripeSubscriptionId: string;
2210
+ stripeSubscriptionItems?: Array<{
2211
+ id: string;
2212
+ price: string;
2213
+ quantity: number;
2214
+ }> | null;
2215
+ status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
2216
+ metadata?: unknown;
2217
+ cancelAtPeriodEnd: boolean;
2218
+ created: string | null;
2219
+ currentPeriodStart: string | null;
2220
+ currentPeriodEnd: string | null;
2221
+ endedAt?: string | null;
2222
+ cancelAt?: string | null;
2223
+ canceledAt?: string | null;
2224
+ trialStart?: string | null;
2225
+ trialEnd?: string | null;
2226
+ createdAt: string | null;
2227
+ updatedAt: string | null;
2228
+ teamPlan?: {
2229
+ id: string;
2230
+ organizationSubscriptionId: string;
2231
+ teamId: string;
2232
+ stripePriceId: string;
2233
+ tier: 'PRO' | 'CUSTOM';
2234
+ maxMonthlyPosts: number;
2235
+ maxDailyPosts: number;
2236
+ createdAt: string | null;
2237
+ updatedAt: string | null;
2238
+ } | null;
2239
+ } | null;
2240
+ };
2089
2241
  /**
2090
2242
  * 400
2091
2243
  */
@@ -2128,32 +2280,158 @@ type $OpenApiTs = {
2128
2280
  };
2129
2281
  };
2130
2282
  };
2131
- delete: {
2132
- req: UploadDeleteManyData;
2283
+ };
2284
+ '/api/v1/team/{id}': {
2285
+ get: {
2286
+ req: TeamGetTeamData;
2133
2287
  res: {
2134
2288
  /**
2135
2289
  * 200
2136
2290
  */
2137
- 200: Array<{
2291
+ 200: {
2138
2292
  id: string;
2139
- teamId: string;
2140
- expiresAt?: string | null;
2141
- iconUrl?: string | null;
2142
- thumbnailUrl?: string | null;
2143
- url?: string | null;
2144
- iconPath?: string | null;
2145
- thumbnailPath?: string | null;
2146
- path?: string | null;
2147
- type: 'image' | 'video';
2148
- width?: number | null;
2149
- height?: number | null;
2150
- fileSize?: number | null;
2151
- videoLength?: number | null;
2152
- mime?: string | null;
2153
- ext?: string | null;
2293
+ name: string;
2294
+ avatarUrl?: string | null;
2295
+ organizationId: string;
2296
+ createdById: string;
2154
2297
  createdAt: string | null;
2155
2298
  updatedAt: string | null;
2156
- }>;
2299
+ deletedAt?: string | null;
2300
+ organization: {
2301
+ id: string;
2302
+ createdById: string;
2303
+ name?: string | null;
2304
+ avatarUrl?: string | null;
2305
+ defaultPaymentMethodFilled?: boolean;
2306
+ billingAddressFilled?: boolean;
2307
+ apiAccess?: boolean;
2308
+ ref?: string | null;
2309
+ createdAt: string | null;
2310
+ updatedAt: string | null;
2311
+ deletedAt?: string | null;
2312
+ };
2313
+ createdBy: {
2314
+ id: string;
2315
+ externalId: string;
2316
+ email: string;
2317
+ emailVerified?: string | null;
2318
+ firstName?: string | null;
2319
+ lastName?: string | null;
2320
+ avatarUrl?: string | null;
2321
+ role: 'ADMIN' | 'CUSTOMER';
2322
+ createdAt: string | null;
2323
+ updatedAt: string | null;
2324
+ deletedAt?: string | null;
2325
+ };
2326
+ bots: Array<{
2327
+ id: string;
2328
+ name: string;
2329
+ avatarUrl?: string | null;
2330
+ teamId: string;
2331
+ createdAt: string | null;
2332
+ updatedAt: string | null;
2333
+ deletedAt?: string | null;
2334
+ }>;
2335
+ socialAccounts: Array<{
2336
+ id: string;
2337
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
2338
+ teamId: string;
2339
+ username?: string | null;
2340
+ displayName?: string | null;
2341
+ externalId?: string | null;
2342
+ userUsername?: string | null;
2343
+ userDisplayName?: string | null;
2344
+ userId?: string | null;
2345
+ channels?: Array<{
2346
+ id: string;
2347
+ name?: string | null;
2348
+ username?: string | null;
2349
+ webhook?: {
2350
+ id?: string | null;
2351
+ name?: string | null;
2352
+ avatar?: string | null;
2353
+ url?: string | null;
2354
+ } | null;
2355
+ }> | null;
2356
+ createdAt: string | null;
2357
+ updatedAt: string | null;
2358
+ deletedAt?: string | null;
2359
+ }>;
2360
+ usage: {
2361
+ monthlyPosts: number;
2362
+ };
2363
+ bio?: {
2364
+ id: string;
2365
+ username: string;
2366
+ name: string | null;
2367
+ description: string | null;
2368
+ avatarUrl: string | null;
2369
+ socials: {
2370
+ [key: string]: (string | null);
2371
+ } | null;
2372
+ teamId: string;
2373
+ createdAt: string | null;
2374
+ updatedAt: string | null;
2375
+ items: Array<{
2376
+ id: string;
2377
+ bioId: string;
2378
+ name: string;
2379
+ link: string;
2380
+ icon?: string | null;
2381
+ enabled: boolean;
2382
+ order?: number | null;
2383
+ createdAt: string | null;
2384
+ updatedAt: string | null;
2385
+ analytics: Array<{
2386
+ id: string;
2387
+ count: number;
2388
+ bioItemId: string;
2389
+ deviceType: {
2390
+ [key: string]: (number);
2391
+ };
2392
+ country: {
2393
+ [key: string]: (number);
2394
+ };
2395
+ createdAt: string | null;
2396
+ updatedAt: string | null;
2397
+ }>;
2398
+ }>;
2399
+ } | null;
2400
+ teamPlan?: {
2401
+ id: string;
2402
+ organizationSubscriptionId: string;
2403
+ teamId: string;
2404
+ stripePriceId: string;
2405
+ tier: 'PRO' | 'CUSTOM';
2406
+ maxMonthlyPosts: number;
2407
+ maxDailyPosts: number;
2408
+ createdAt: string | null;
2409
+ updatedAt: string | null;
2410
+ organizationSubscription?: {
2411
+ id: string;
2412
+ organizationId: string;
2413
+ stripeSubscriptionId: string;
2414
+ stripeSubscriptionItems?: Array<{
2415
+ id: string;
2416
+ price: string;
2417
+ quantity: number;
2418
+ }> | null;
2419
+ status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
2420
+ metadata?: unknown;
2421
+ cancelAtPeriodEnd: boolean;
2422
+ created: string | null;
2423
+ currentPeriodStart: string | null;
2424
+ currentPeriodEnd: string | null;
2425
+ endedAt?: string | null;
2426
+ cancelAt?: string | null;
2427
+ canceledAt?: string | null;
2428
+ trialStart?: string | null;
2429
+ trialEnd?: string | null;
2430
+ createdAt: string | null;
2431
+ updatedAt: string | null;
2432
+ } | null;
2433
+ } | null;
2434
+ };
2157
2435
  /**
2158
2436
  * 400
2159
2437
  */
@@ -2196,33 +2474,21 @@ type $OpenApiTs = {
2196
2474
  };
2197
2475
  };
2198
2476
  };
2199
- };
2200
- '/api/v1/upload/{id}': {
2201
- get: {
2202
- req: UploadGetData;
2477
+ patch: {
2478
+ req: TeamUpdateTeamData;
2203
2479
  res: {
2204
2480
  /**
2205
2481
  * 200
2206
2482
  */
2207
2483
  200: {
2208
2484
  id: string;
2209
- teamId: string;
2210
- expiresAt?: string | null;
2211
- iconUrl?: string | null;
2212
- thumbnailUrl?: string | null;
2213
- url?: string | null;
2214
- iconPath?: string | null;
2215
- thumbnailPath?: string | null;
2216
- path?: string | null;
2217
- type: 'image' | 'video';
2218
- width?: number | null;
2219
- height?: number | null;
2220
- fileSize?: number | null;
2221
- videoLength?: number | null;
2222
- mime?: string | null;
2223
- ext?: string | null;
2485
+ name: string;
2486
+ avatarUrl?: string | null;
2487
+ organizationId: string;
2488
+ createdById: string;
2224
2489
  createdAt: string | null;
2225
2490
  updatedAt: string | null;
2491
+ deletedAt?: string | null;
2226
2492
  };
2227
2493
  /**
2228
2494
  * 400
@@ -2267,30 +2533,20 @@ type $OpenApiTs = {
2267
2533
  };
2268
2534
  };
2269
2535
  delete: {
2270
- req: UploadDeleteData;
2536
+ req: TeamDeleteTeamData;
2271
2537
  res: {
2272
2538
  /**
2273
2539
  * 200
2274
2540
  */
2275
2541
  200: {
2276
2542
  id: string;
2277
- teamId: string;
2278
- expiresAt?: string | null;
2279
- iconUrl?: string | null;
2280
- thumbnailUrl?: string | null;
2281
- url?: string | null;
2282
- iconPath?: string | null;
2283
- thumbnailPath?: string | null;
2284
- path?: string | null;
2285
- type: 'image' | 'video';
2286
- width?: number | null;
2287
- height?: number | null;
2288
- fileSize?: number | null;
2289
- videoLength?: number | null;
2290
- mime?: string | null;
2291
- ext?: string | null;
2543
+ name: string;
2544
+ avatarUrl?: string | null;
2545
+ organizationId: string;
2546
+ createdById: string;
2292
2547
  createdAt: string | null;
2293
2548
  updatedAt: string | null;
2549
+ deletedAt?: string | null;
2294
2550
  };
2295
2551
  /**
2296
2552
  * 400
@@ -2335,222 +2591,19 @@ type $OpenApiTs = {
2335
2591
  };
2336
2592
  };
2337
2593
  };
2338
- '/api/v1/post/': {
2594
+ '/api/v1/team/': {
2339
2595
  post: {
2340
- req: PostCreateData;
2596
+ req: TeamCreateTeamData;
2341
2597
  res: {
2342
2598
  /**
2343
- * 200
2344
- */
2345
- 200: {
2346
- id: string;
2347
- teamId: string;
2348
- title: string;
2349
- postDate: string | null;
2350
- postedDate?: string | null;
2351
- status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2352
- data: {
2353
- TWITTER?: {
2354
- text?: string | null;
2355
- uploadIds?: Array<(string)> | null;
2356
- } | null;
2357
- PINTEREST?: {
2358
- text?: string | null;
2359
- description?: string | null;
2360
- boardName: string;
2361
- uploadIds?: Array<(string)> | null;
2362
- /**
2363
- * The URL to which the Pin will link to.
2364
- */
2365
- link?: string | null;
2366
- /**
2367
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
2368
- */
2369
- altText?: string | null;
2370
- /**
2371
- * A note about the Pin. This is not visible to the public.
2372
- */
2373
- note?: string | null;
2374
- /**
2375
- * The dominant color of the image. This is used to display the image before it's loaded.
2376
- */
2377
- dominantColor?: string | null;
2378
- } | null;
2379
- FACEBOOK?: {
2380
- type?: 'POST' | 'REEL' | 'STORY';
2381
- text?: string | null;
2382
- uploadIds?: Array<(string)> | null;
2383
- } | null;
2384
- INSTAGRAM?: {
2385
- type?: 'POST' | 'REEL' | 'STORY';
2386
- text?: string | null;
2387
- uploadIds?: Array<(string)> | null;
2388
- } | null;
2389
- TIKTOK?: {
2390
- text?: string | null;
2391
- uploadIds?: Array<(string)> | null;
2392
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
2393
- /**
2394
- * Set to true if the video is a paid partnership to promote a third-party business.
2395
- */
2396
- isBrandContent?: boolean | null;
2397
- /**
2398
- * Set to true if this video is promoting the creator's own business.
2399
- */
2400
- isOrganicBrandContent?: boolean | null;
2401
- /**
2402
- * If set to true, other TikTok users will not be allowed to make comments on this post.
2403
- */
2404
- disableComments?: boolean | null;
2405
- /**
2406
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
2407
- */
2408
- disableDuet?: boolean | null;
2409
- /**
2410
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
2411
- */
2412
- disableStitch?: boolean | null;
2413
- } | null;
2414
- LINKEDIN?: {
2415
- 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;
2540
- } | null;
2541
- YOUTUBE?: {
2542
- id?: string | null;
2543
- permalink?: string | null;
2544
- } | null;
2545
- TELEGRAM?: {
2546
- id?: string | null;
2547
- permalink?: string | null;
2548
- } | null;
2549
- THREADS?: {
2550
- id?: string | null;
2551
- permalink?: string | null;
2552
- } | null;
2553
- } | null;
2599
+ * 200
2600
+ */
2601
+ 200: {
2602
+ id: string;
2603
+ name: string;
2604
+ avatarUrl?: string | null;
2605
+ organizationId: string;
2606
+ createdById: string;
2554
2607
  createdAt: string | null;
2555
2608
  updatedAt: string | null;
2556
2609
  deletedAt?: string | null;
@@ -2597,286 +2650,595 @@ type $OpenApiTs = {
2597
2650
  };
2598
2651
  };
2599
2652
  };
2600
- get: {
2601
- req: PostGetListData;
2653
+ };
2654
+ '/api/v1/social-account/connect': {
2655
+ post: {
2656
+ req: SocialAccountConnectData;
2602
2657
  res: {
2603
2658
  /**
2604
2659
  * 200
2605
2660
  */
2606
2661
  200: {
2607
- items: Array<{
2662
+ /**
2663
+ * OAuth URL - Redirect user to this URL to connect social account
2664
+ */
2665
+ url: string;
2666
+ };
2667
+ /**
2668
+ * 400
2669
+ */
2670
+ 400: {
2671
+ message: string;
2672
+ issues?: Array<{
2673
+ message: string;
2674
+ path?: Array<(string | number)> | null;
2675
+ }> | null;
2676
+ };
2677
+ /**
2678
+ * 401
2679
+ */
2680
+ 401: {
2681
+ message: string;
2682
+ };
2683
+ /**
2684
+ * 403
2685
+ */
2686
+ 403: {
2687
+ message: string;
2688
+ };
2689
+ /**
2690
+ * 404
2691
+ */
2692
+ 404: {
2693
+ message: string;
2694
+ };
2695
+ /**
2696
+ * 429
2697
+ */
2698
+ 429: {
2699
+ message: string;
2700
+ };
2701
+ /**
2702
+ * 500
2703
+ */
2704
+ 500: {
2705
+ message: string;
2706
+ };
2707
+ };
2708
+ };
2709
+ };
2710
+ '/api/v1/social-account/disconnect': {
2711
+ delete: {
2712
+ req: SocialAccountDisconnectData;
2713
+ res: {
2714
+ /**
2715
+ * 200
2716
+ */
2717
+ 200: {
2718
+ id: string;
2719
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
2720
+ teamId: string;
2721
+ username?: string | null;
2722
+ displayName?: string | null;
2723
+ externalId?: string | null;
2724
+ userUsername?: string | null;
2725
+ userDisplayName?: string | null;
2726
+ userId?: string | null;
2727
+ channels?: Array<{
2608
2728
  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;
2729
+ name?: string | null;
2730
+ username?: string | null;
2731
+ webhook?: {
2732
+ id?: string | null;
2733
+ name?: string | null;
2734
+ avatar?: string | null;
2735
+ url?: string | null;
2736
+ } | null;
2737
+ }> | null;
2738
+ createdAt: string | null;
2739
+ updatedAt: string | null;
2740
+ deletedAt?: string | null;
2741
+ };
2742
+ /**
2743
+ * 400
2744
+ */
2745
+ 400: {
2746
+ message: string;
2747
+ issues?: Array<{
2748
+ message: string;
2749
+ path?: Array<(string | number)> | null;
2750
+ }> | null;
2751
+ };
2752
+ /**
2753
+ * 401
2754
+ */
2755
+ 401: {
2756
+ message: string;
2757
+ };
2758
+ /**
2759
+ * 403
2760
+ */
2761
+ 403: {
2762
+ message: string;
2763
+ };
2764
+ /**
2765
+ * 404
2766
+ */
2767
+ 404: {
2768
+ message: string;
2769
+ };
2770
+ /**
2771
+ * 429
2772
+ */
2773
+ 429: {
2774
+ message: string;
2775
+ };
2776
+ /**
2777
+ * 500
2778
+ */
2779
+ 500: {
2780
+ message: string;
2781
+ };
2782
+ };
2783
+ };
2784
+ };
2785
+ '/api/v1/social-account/set-channel': {
2786
+ post: {
2787
+ req: SocialAccountSetChannelData;
2788
+ res: {
2789
+ /**
2790
+ * 200
2791
+ */
2792
+ 200: {
2793
+ id: string;
2794
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
2795
+ teamId: string;
2796
+ username?: string | null;
2797
+ displayName?: string | null;
2798
+ externalId?: string | null;
2799
+ userUsername?: string | null;
2800
+ userDisplayName?: string | null;
2801
+ userId?: string | null;
2802
+ channels?: Array<{
2803
+ id: string;
2804
+ name?: string | null;
2805
+ username?: string | null;
2806
+ webhook?: {
2807
+ id?: string | null;
2808
+ name?: string | null;
2809
+ avatar?: string | null;
2810
+ url?: string | null;
2760
2811
  } | 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;
2812
+ }> | null;
2813
+ createdAt: string | null;
2814
+ updatedAt: string | null;
2815
+ deletedAt?: string | null;
2816
+ };
2817
+ /**
2818
+ * 400
2819
+ */
2820
+ 400: {
2821
+ message: string;
2822
+ issues?: Array<{
2823
+ message: string;
2824
+ path?: Array<(string | number)> | null;
2825
+ }> | null;
2826
+ };
2827
+ /**
2828
+ * 401
2829
+ */
2830
+ 401: {
2831
+ message: string;
2832
+ };
2833
+ /**
2834
+ * 403
2835
+ */
2836
+ 403: {
2837
+ message: string;
2838
+ };
2839
+ /**
2840
+ * 404
2841
+ */
2842
+ 404: {
2843
+ message: string;
2844
+ };
2845
+ /**
2846
+ * 429
2847
+ */
2848
+ 429: {
2849
+ message: string;
2850
+ };
2851
+ /**
2852
+ * 500
2853
+ */
2854
+ 500: {
2855
+ message: string;
2856
+ };
2857
+ };
2858
+ };
2859
+ };
2860
+ '/api/v1/social-account/refresh-channels': {
2861
+ post: {
2862
+ req: SocialAccountRefreshChannelsData;
2863
+ res: {
2864
+ /**
2865
+ * 200
2866
+ */
2867
+ 200: {
2868
+ id: string;
2869
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
2870
+ teamId: string;
2871
+ username?: string | null;
2872
+ displayName?: string | null;
2873
+ externalId?: string | null;
2874
+ userUsername?: string | null;
2875
+ userDisplayName?: string | null;
2876
+ userId?: string | null;
2877
+ channels?: Array<{
2878
+ id: string;
2879
+ name?: string | null;
2880
+ username?: string | null;
2881
+ webhook?: {
2882
+ id?: string | null;
2883
+ name?: string | null;
2884
+ avatar?: string | null;
2885
+ url?: string | null;
2815
2886
  } | null;
2816
- createdAt: string | null;
2817
- updatedAt: string | null;
2818
- deletedAt?: string | null;
2819
- uploads: Array<{
2820
- postId: string;
2821
- uploadId: string;
2822
- createdAt: string | null;
2823
- updatedAt: string | null;
2824
- deletedAt?: string | null;
2825
- upload: {
2826
- 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;
2849
- createdAt: string | null;
2850
- updatedAt: string | null;
2851
- 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
- }>;
2887
+ }> | null;
2888
+ createdAt: string | null;
2889
+ updatedAt: string | null;
2890
+ deletedAt?: string | null;
2891
+ };
2892
+ /**
2893
+ * 400
2894
+ */
2895
+ 400: {
2896
+ message: string;
2897
+ issues?: Array<{
2898
+ message: string;
2899
+ path?: Array<(string | number)> | null;
2900
+ }> | null;
2901
+ };
2902
+ /**
2903
+ * 401
2904
+ */
2905
+ 401: {
2906
+ message: string;
2907
+ };
2908
+ /**
2909
+ * 403
2910
+ */
2911
+ 403: {
2912
+ message: string;
2913
+ };
2914
+ /**
2915
+ * 404
2916
+ */
2917
+ 404: {
2918
+ message: string;
2919
+ };
2920
+ /**
2921
+ * 429
2922
+ */
2923
+ 429: {
2924
+ message: string;
2925
+ };
2926
+ /**
2927
+ * 500
2928
+ */
2929
+ 500: {
2930
+ message: string;
2931
+ };
2932
+ };
2933
+ };
2934
+ };
2935
+ '/api/v1/upload/': {
2936
+ get: {
2937
+ req: UploadGetListData;
2938
+ res: {
2939
+ /**
2940
+ * 200
2941
+ */
2942
+ 200: Array<{
2943
+ id: string;
2944
+ teamId: string;
2945
+ expiresAt?: string | null;
2946
+ iconUrl?: string | null;
2947
+ thumbnailUrl?: string | null;
2948
+ url?: string | null;
2949
+ iconPath?: string | null;
2950
+ thumbnailPath?: string | null;
2951
+ path?: string | null;
2952
+ type: 'image' | 'video';
2953
+ width?: number | null;
2954
+ height?: number | null;
2955
+ fileSize?: number | null;
2956
+ videoLength?: number | null;
2957
+ mime?: string | null;
2958
+ ext?: string | null;
2959
+ createdAt: string | null;
2960
+ updatedAt: string | null;
2961
+ posts: Array<{
2962
+ postId: string;
2963
+ uploadId: string;
2964
+ createdAt: string | null;
2965
+ updatedAt: string | null;
2966
+ deletedAt?: string | null;
2878
2967
  }>;
2879
- total: number;
2968
+ }>;
2969
+ /**
2970
+ * 400
2971
+ */
2972
+ 400: {
2973
+ message: string;
2974
+ issues?: Array<{
2975
+ message: string;
2976
+ path?: Array<(string | number)> | null;
2977
+ }> | null;
2978
+ };
2979
+ /**
2980
+ * 401
2981
+ */
2982
+ 401: {
2983
+ message: string;
2984
+ };
2985
+ /**
2986
+ * 403
2987
+ */
2988
+ 403: {
2989
+ message: string;
2990
+ };
2991
+ /**
2992
+ * 404
2993
+ */
2994
+ 404: {
2995
+ message: string;
2996
+ };
2997
+ /**
2998
+ * 429
2999
+ */
3000
+ 429: {
3001
+ message: string;
3002
+ };
3003
+ /**
3004
+ * 500
3005
+ */
3006
+ 500: {
3007
+ message: string;
3008
+ };
3009
+ };
3010
+ };
3011
+ post: {
3012
+ req: UploadCreateData;
3013
+ res: {
3014
+ /**
3015
+ * 200
3016
+ */
3017
+ 200: {
3018
+ id: string;
3019
+ teamId: string;
3020
+ expiresAt?: string | null;
3021
+ iconUrl?: string | null;
3022
+ thumbnailUrl?: string | null;
3023
+ url?: string | null;
3024
+ iconPath?: string | null;
3025
+ thumbnailPath?: string | null;
3026
+ path?: string | null;
3027
+ type: 'image' | 'video';
3028
+ width?: number | null;
3029
+ height?: number | null;
3030
+ fileSize?: number | null;
3031
+ videoLength?: number | null;
3032
+ mime?: string | null;
3033
+ ext?: string | null;
3034
+ createdAt: string | null;
3035
+ updatedAt: string | null;
3036
+ };
3037
+ /**
3038
+ * 400
3039
+ */
3040
+ 400: {
3041
+ message: string;
3042
+ issues?: Array<{
3043
+ message: string;
3044
+ path?: Array<(string | number)> | null;
3045
+ }> | null;
3046
+ };
3047
+ /**
3048
+ * 401
3049
+ */
3050
+ 401: {
3051
+ message: string;
3052
+ };
3053
+ /**
3054
+ * 403
3055
+ */
3056
+ 403: {
3057
+ message: string;
3058
+ };
3059
+ /**
3060
+ * 404
3061
+ */
3062
+ 404: {
3063
+ message: string;
3064
+ };
3065
+ /**
3066
+ * 429
3067
+ */
3068
+ 429: {
3069
+ message: string;
3070
+ };
3071
+ /**
3072
+ * 500
3073
+ */
3074
+ 500: {
3075
+ message: string;
3076
+ };
3077
+ };
3078
+ };
3079
+ delete: {
3080
+ req: UploadDeleteManyData;
3081
+ res: {
3082
+ /**
3083
+ * 200
3084
+ */
3085
+ 200: Array<{
3086
+ id: string;
3087
+ teamId: string;
3088
+ expiresAt?: string | null;
3089
+ iconUrl?: string | null;
3090
+ thumbnailUrl?: string | null;
3091
+ url?: string | null;
3092
+ iconPath?: string | null;
3093
+ thumbnailPath?: string | null;
3094
+ path?: string | null;
3095
+ type: 'image' | 'video';
3096
+ width?: number | null;
3097
+ height?: number | null;
3098
+ fileSize?: number | null;
3099
+ videoLength?: number | null;
3100
+ mime?: string | null;
3101
+ ext?: string | null;
3102
+ createdAt: string | null;
3103
+ updatedAt: string | null;
3104
+ }>;
3105
+ /**
3106
+ * 400
3107
+ */
3108
+ 400: {
3109
+ message: string;
3110
+ issues?: Array<{
3111
+ message: string;
3112
+ path?: Array<(string | number)> | null;
3113
+ }> | null;
3114
+ };
3115
+ /**
3116
+ * 401
3117
+ */
3118
+ 401: {
3119
+ message: string;
3120
+ };
3121
+ /**
3122
+ * 403
3123
+ */
3124
+ 403: {
3125
+ message: string;
3126
+ };
3127
+ /**
3128
+ * 404
3129
+ */
3130
+ 404: {
3131
+ message: string;
3132
+ };
3133
+ /**
3134
+ * 429
3135
+ */
3136
+ 429: {
3137
+ message: string;
3138
+ };
3139
+ /**
3140
+ * 500
3141
+ */
3142
+ 500: {
3143
+ message: string;
3144
+ };
3145
+ };
3146
+ };
3147
+ };
3148
+ '/api/v1/upload/{id}': {
3149
+ get: {
3150
+ req: UploadGetData;
3151
+ res: {
3152
+ /**
3153
+ * 200
3154
+ */
3155
+ 200: {
3156
+ id: string;
3157
+ teamId: string;
3158
+ expiresAt?: string | null;
3159
+ iconUrl?: string | null;
3160
+ thumbnailUrl?: string | null;
3161
+ url?: string | null;
3162
+ iconPath?: string | null;
3163
+ thumbnailPath?: string | null;
3164
+ path?: string | null;
3165
+ type: 'image' | 'video';
3166
+ width?: number | null;
3167
+ height?: number | null;
3168
+ fileSize?: number | null;
3169
+ videoLength?: number | null;
3170
+ mime?: string | null;
3171
+ ext?: string | null;
3172
+ createdAt: string | null;
3173
+ updatedAt: string | null;
3174
+ };
3175
+ /**
3176
+ * 400
3177
+ */
3178
+ 400: {
3179
+ message: string;
3180
+ issues?: Array<{
3181
+ message: string;
3182
+ path?: Array<(string | number)> | null;
3183
+ }> | null;
3184
+ };
3185
+ /**
3186
+ * 401
3187
+ */
3188
+ 401: {
3189
+ message: string;
3190
+ };
3191
+ /**
3192
+ * 403
3193
+ */
3194
+ 403: {
3195
+ message: string;
3196
+ };
3197
+ /**
3198
+ * 404
3199
+ */
3200
+ 404: {
3201
+ message: string;
3202
+ };
3203
+ /**
3204
+ * 429
3205
+ */
3206
+ 429: {
3207
+ message: string;
3208
+ };
3209
+ /**
3210
+ * 500
3211
+ */
3212
+ 500: {
3213
+ message: string;
3214
+ };
3215
+ };
3216
+ };
3217
+ delete: {
3218
+ req: UploadDeleteData;
3219
+ res: {
3220
+ /**
3221
+ * 200
3222
+ */
3223
+ 200: {
3224
+ id: string;
3225
+ teamId: string;
3226
+ expiresAt?: string | null;
3227
+ iconUrl?: string | null;
3228
+ thumbnailUrl?: string | null;
3229
+ url?: string | null;
3230
+ iconPath?: string | null;
3231
+ thumbnailPath?: string | null;
3232
+ path?: string | null;
3233
+ type: 'image' | 'video';
3234
+ width?: number | null;
3235
+ height?: number | null;
3236
+ fileSize?: number | null;
3237
+ videoLength?: number | null;
3238
+ mime?: string | null;
3239
+ ext?: string | null;
3240
+ createdAt: string | null;
3241
+ updatedAt: string | null;
2880
3242
  };
2881
3243
  /**
2882
3244
  * 400
@@ -2972,6 +3334,10 @@ type $OpenApiTs = {
2972
3334
  text?: string | null;
2973
3335
  uploadIds?: Array<(string)> | null;
2974
3336
  } | null;
3337
+ THREADS?: {
3338
+ text?: string | null;
3339
+ uploadIds?: Array<(string)> | null;
3340
+ } | null;
2975
3341
  TIKTOK?: {
2976
3342
  text?: string | null;
2977
3343
  uploadIds?: Array<(string)> | null;
@@ -3064,8 +3430,7 @@ type $OpenApiTs = {
3064
3430
  */
3065
3431
  avatarUrl?: string | null;
3066
3432
  } | null;
3067
- TELEGRAM?: unknown;
3068
- THREADS?: unknown;
3433
+ MASTODON?: unknown;
3069
3434
  };
3070
3435
  error?: string | null;
3071
3436
  errors?: {
@@ -3079,7 +3444,7 @@ type $OpenApiTs = {
3079
3444
  DISCORD?: string | null;
3080
3445
  SLACK?: string | null;
3081
3446
  YOUTUBE?: string | null;
3082
- TELEGRAM?: string | null;
3447
+ MASTODON?: string | null;
3083
3448
  THREADS?: string | null;
3084
3449
  } | null;
3085
3450
  externalData?: {
@@ -3128,7 +3493,7 @@ type $OpenApiTs = {
3128
3493
  id?: string | null;
3129
3494
  permalink?: string | null;
3130
3495
  } | null;
3131
- TELEGRAM?: {
3496
+ MASTODON?: {
3132
3497
  id?: string | null;
3133
3498
  permalink?: string | null;
3134
3499
  } | null;
@@ -3175,7 +3540,7 @@ type $OpenApiTs = {
3175
3540
  deletedAt?: string | null;
3176
3541
  socialAccount: {
3177
3542
  id: string;
3178
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'TELEGRAM' | 'DISCORD' | 'SLACK';
3543
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
3179
3544
  teamId: string;
3180
3545
  username?: string | null;
3181
3546
  displayName?: string | null;
@@ -3242,8 +3607,272 @@ type $OpenApiTs = {
3242
3607
  };
3243
3608
  };
3244
3609
  };
3245
- put: {
3246
- req: PostUpdateData;
3610
+ patch: {
3611
+ req: PostUpdateData;
3612
+ res: {
3613
+ /**
3614
+ * 200
3615
+ */
3616
+ 200: {
3617
+ id: string;
3618
+ teamId: string;
3619
+ title: string;
3620
+ postDate: string | null;
3621
+ postedDate?: string | null;
3622
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
3623
+ data: {
3624
+ TWITTER?: {
3625
+ text?: string | null;
3626
+ uploadIds?: Array<(string)> | null;
3627
+ } | null;
3628
+ PINTEREST?: {
3629
+ text?: string | null;
3630
+ description?: string | null;
3631
+ boardName: string;
3632
+ uploadIds?: Array<(string)> | null;
3633
+ /**
3634
+ * The URL to which the Pin will link to.
3635
+ */
3636
+ link?: string | null;
3637
+ /**
3638
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
3639
+ */
3640
+ altText?: string | null;
3641
+ /**
3642
+ * A note about the Pin. This is not visible to the public.
3643
+ */
3644
+ note?: string | null;
3645
+ /**
3646
+ * The dominant color of the image. This is used to display the image before it's loaded.
3647
+ */
3648
+ dominantColor?: string | null;
3649
+ } | null;
3650
+ FACEBOOK?: {
3651
+ type?: 'POST' | 'REEL' | 'STORY';
3652
+ text?: string | null;
3653
+ uploadIds?: Array<(string)> | null;
3654
+ } | null;
3655
+ INSTAGRAM?: {
3656
+ type?: 'POST' | 'REEL' | 'STORY';
3657
+ text?: string | null;
3658
+ uploadIds?: Array<(string)> | null;
3659
+ } | null;
3660
+ THREADS?: {
3661
+ text?: string | null;
3662
+ uploadIds?: Array<(string)> | null;
3663
+ } | null;
3664
+ TIKTOK?: {
3665
+ text?: string | null;
3666
+ uploadIds?: Array<(string)> | null;
3667
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
3668
+ /**
3669
+ * Set to true if the video is a paid partnership to promote a third-party business.
3670
+ */
3671
+ isBrandContent?: boolean | null;
3672
+ /**
3673
+ * Set to true if this video is promoting the creator's own business.
3674
+ */
3675
+ isOrganicBrandContent?: boolean | null;
3676
+ /**
3677
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
3678
+ */
3679
+ disableComments?: boolean | null;
3680
+ /**
3681
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
3682
+ */
3683
+ disableDuet?: boolean | null;
3684
+ /**
3685
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
3686
+ */
3687
+ disableStitch?: boolean | null;
3688
+ } | null;
3689
+ LINKEDIN?: {
3690
+ text: string;
3691
+ uploadIds?: Array<(string)> | null;
3692
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
3693
+ /**
3694
+ * Set to true if the post shouldn't be displayed in the main feed.
3695
+ */
3696
+ hideFromFeed?: boolean | null;
3697
+ /**
3698
+ * Set to true if the post is not allowed to be reshared.
3699
+ */
3700
+ disableReshare?: boolean | null;
3701
+ } | null;
3702
+ YOUTUBE?: {
3703
+ type?: 'VIDEO' | 'SHORT';
3704
+ uploadIds?: Array<(string)> | null;
3705
+ text?: string | null;
3706
+ description?: string | null;
3707
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
3708
+ /**
3709
+ * Set to true if the video is made for kids.
3710
+ */
3711
+ madeForKids?: boolean | null;
3712
+ } | null;
3713
+ REDDIT?: {
3714
+ /**
3715
+ * Subreddit name. Example: r/subredditName or u/username
3716
+ */
3717
+ sr: string;
3718
+ text: string;
3719
+ description?: string | null;
3720
+ uploadIds?: Array<(string)> | null;
3721
+ /**
3722
+ * The URL to which the post will link to.
3723
+ */
3724
+ link?: string | null;
3725
+ /**
3726
+ * Set to true if the post is NSFW.
3727
+ */
3728
+ nsfw?: boolean | null;
3729
+ } | null;
3730
+ DISCORD?: {
3731
+ channelId: string;
3732
+ text?: string | null;
3733
+ uploadIds?: Array<(string)> | null;
3734
+ /**
3735
+ * The username to display as the author of the message.
3736
+ */
3737
+ username?: string | null;
3738
+ /**
3739
+ * Avatar url to display as the author of the message.
3740
+ */
3741
+ avatarUrl?: string | null;
3742
+ } | null;
3743
+ SLACK?: {
3744
+ channelId: string;
3745
+ text?: string | null;
3746
+ uploadIds?: Array<(string)> | null;
3747
+ /**
3748
+ * The username to display as the author of the message.
3749
+ */
3750
+ username?: string | null;
3751
+ /**
3752
+ * Avatar url to display as the author of the message.
3753
+ */
3754
+ avatarUrl?: string | null;
3755
+ } | null;
3756
+ MASTODON?: unknown;
3757
+ };
3758
+ error?: string | null;
3759
+ errors?: {
3760
+ TWITTER?: string | null;
3761
+ PINTEREST?: string | null;
3762
+ FACEBOOK?: string | null;
3763
+ INSTAGRAM?: string | null;
3764
+ TIKTOK?: string | null;
3765
+ LINKEDIN?: string | null;
3766
+ REDDIT?: string | null;
3767
+ DISCORD?: string | null;
3768
+ SLACK?: string | null;
3769
+ YOUTUBE?: string | null;
3770
+ MASTODON?: string | null;
3771
+ THREADS?: string | null;
3772
+ } | null;
3773
+ externalData?: {
3774
+ TWITTER?: {
3775
+ id?: string | null;
3776
+ permalink?: string | null;
3777
+ } | null;
3778
+ PINTEREST?: {
3779
+ id?: string | null;
3780
+ permalink?: string | null;
3781
+ } | null;
3782
+ FACEBOOK?: {
3783
+ id?: string | null;
3784
+ postId?: string | null;
3785
+ videoId?: string | null;
3786
+ permalink?: string | null;
3787
+ } | null;
3788
+ INSTAGRAM?: {
3789
+ id?: string | null;
3790
+ permalink?: string | null;
3791
+ } | null;
3792
+ TIKTOK?: {
3793
+ id?: string | null;
3794
+ permalink?: string | null;
3795
+ } | null;
3796
+ LINKEDIN?: {
3797
+ id?: string | null;
3798
+ permalink?: string | null;
3799
+ } | null;
3800
+ REDDIT?: {
3801
+ id?: string | null;
3802
+ permalink?: string | null;
3803
+ subreddit_name?: string | null;
3804
+ } | null;
3805
+ DISCORD?: {
3806
+ id?: string | null;
3807
+ permalink?: string | null;
3808
+ channelId?: string | null;
3809
+ } | null;
3810
+ SLACK?: {
3811
+ id?: string | null;
3812
+ permalink?: string | null;
3813
+ channelId?: string | null;
3814
+ } | null;
3815
+ YOUTUBE?: {
3816
+ id?: string | null;
3817
+ permalink?: string | null;
3818
+ } | null;
3819
+ MASTODON?: {
3820
+ id?: string | null;
3821
+ permalink?: string | null;
3822
+ } | null;
3823
+ THREADS?: {
3824
+ id?: string | null;
3825
+ permalink?: string | null;
3826
+ } | null;
3827
+ } | null;
3828
+ createdAt: string | null;
3829
+ updatedAt: string | null;
3830
+ deletedAt?: string | null;
3831
+ };
3832
+ /**
3833
+ * 400
3834
+ */
3835
+ 400: {
3836
+ message: string;
3837
+ issues?: Array<{
3838
+ message: string;
3839
+ path?: Array<(string | number)> | null;
3840
+ }> | null;
3841
+ };
3842
+ /**
3843
+ * 401
3844
+ */
3845
+ 401: {
3846
+ message: string;
3847
+ };
3848
+ /**
3849
+ * 403
3850
+ */
3851
+ 403: {
3852
+ message: string;
3853
+ };
3854
+ /**
3855
+ * 404
3856
+ */
3857
+ 404: {
3858
+ message: string;
3859
+ };
3860
+ /**
3861
+ * 429
3862
+ */
3863
+ 429: {
3864
+ message: string;
3865
+ };
3866
+ /**
3867
+ * 500
3868
+ */
3869
+ 500: {
3870
+ message: string;
3871
+ };
3872
+ };
3873
+ };
3874
+ delete: {
3875
+ req: PostDeleteData;
3247
3876
  res: {
3248
3877
  /**
3249
3878
  * 200
@@ -3292,6 +3921,10 @@ type $OpenApiTs = {
3292
3921
  text?: string | null;
3293
3922
  uploadIds?: Array<(string)> | null;
3294
3923
  } | null;
3924
+ THREADS?: {
3925
+ text?: string | null;
3926
+ uploadIds?: Array<(string)> | null;
3927
+ } | null;
3295
3928
  TIKTOK?: {
3296
3929
  text?: string | null;
3297
3930
  uploadIds?: Array<(string)> | null;
@@ -3384,8 +4017,7 @@ type $OpenApiTs = {
3384
4017
  */
3385
4018
  avatarUrl?: string | null;
3386
4019
  } | null;
3387
- TELEGRAM?: unknown;
3388
- THREADS?: unknown;
4020
+ MASTODON?: unknown;
3389
4021
  };
3390
4022
  error?: string | null;
3391
4023
  errors?: {
@@ -3399,7 +4031,7 @@ type $OpenApiTs = {
3399
4031
  DISCORD?: string | null;
3400
4032
  SLACK?: string | null;
3401
4033
  YOUTUBE?: string | null;
3402
- TELEGRAM?: string | null;
4034
+ MASTODON?: string | null;
3403
4035
  THREADS?: string | null;
3404
4036
  } | null;
3405
4037
  externalData?: {
@@ -3448,18 +4080,346 @@ type $OpenApiTs = {
3448
4080
  id?: string | null;
3449
4081
  permalink?: string | null;
3450
4082
  } | null;
3451
- TELEGRAM?: {
4083
+ MASTODON?: {
4084
+ id?: string | null;
4085
+ permalink?: string | null;
4086
+ } | null;
4087
+ THREADS?: {
3452
4088
  id?: string | null;
3453
4089
  permalink?: string | null;
3454
4090
  } | null;
3455
- THREADS?: {
3456
- id?: string | null;
3457
- permalink?: string | null;
4091
+ } | null;
4092
+ createdAt: string | null;
4093
+ updatedAt: string | null;
4094
+ deletedAt?: string | null;
4095
+ };
4096
+ /**
4097
+ * 400
4098
+ */
4099
+ 400: {
4100
+ message: string;
4101
+ issues?: Array<{
4102
+ message: string;
4103
+ path?: Array<(string | number)> | null;
4104
+ }> | null;
4105
+ };
4106
+ /**
4107
+ * 401
4108
+ */
4109
+ 401: {
4110
+ message: string;
4111
+ };
4112
+ /**
4113
+ * 403
4114
+ */
4115
+ 403: {
4116
+ message: string;
4117
+ };
4118
+ /**
4119
+ * 404
4120
+ */
4121
+ 404: {
4122
+ message: string;
4123
+ };
4124
+ /**
4125
+ * 429
4126
+ */
4127
+ 429: {
4128
+ message: string;
4129
+ };
4130
+ /**
4131
+ * 500
4132
+ */
4133
+ 500: {
4134
+ message: string;
4135
+ };
4136
+ };
4137
+ };
4138
+ };
4139
+ '/api/v1/post/': {
4140
+ get: {
4141
+ req: PostGetListData;
4142
+ res: {
4143
+ /**
4144
+ * 200
4145
+ */
4146
+ 200: {
4147
+ items: Array<{
4148
+ id: string;
4149
+ teamId: string;
4150
+ title: string;
4151
+ postDate: string | null;
4152
+ postedDate?: string | null;
4153
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4154
+ data: {
4155
+ TWITTER?: {
4156
+ text?: string | null;
4157
+ uploadIds?: Array<(string)> | null;
4158
+ } | null;
4159
+ PINTEREST?: {
4160
+ text?: string | null;
4161
+ description?: string | null;
4162
+ boardName: string;
4163
+ uploadIds?: Array<(string)> | null;
4164
+ /**
4165
+ * The URL to which the Pin will link to.
4166
+ */
4167
+ link?: string | null;
4168
+ /**
4169
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
4170
+ */
4171
+ altText?: string | null;
4172
+ /**
4173
+ * A note about the Pin. This is not visible to the public.
4174
+ */
4175
+ note?: string | null;
4176
+ /**
4177
+ * The dominant color of the image. This is used to display the image before it's loaded.
4178
+ */
4179
+ dominantColor?: string | null;
4180
+ } | null;
4181
+ FACEBOOK?: {
4182
+ type?: 'POST' | 'REEL' | 'STORY';
4183
+ text?: string | null;
4184
+ uploadIds?: Array<(string)> | null;
4185
+ } | null;
4186
+ INSTAGRAM?: {
4187
+ type?: 'POST' | 'REEL' | 'STORY';
4188
+ text?: string | null;
4189
+ uploadIds?: Array<(string)> | null;
4190
+ } | null;
4191
+ THREADS?: {
4192
+ text?: string | null;
4193
+ uploadIds?: Array<(string)> | null;
4194
+ } | null;
4195
+ TIKTOK?: {
4196
+ text?: string | null;
4197
+ uploadIds?: Array<(string)> | null;
4198
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
4199
+ /**
4200
+ * Set to true if the video is a paid partnership to promote a third-party business.
4201
+ */
4202
+ isBrandContent?: boolean | null;
4203
+ /**
4204
+ * Set to true if this video is promoting the creator's own business.
4205
+ */
4206
+ isOrganicBrandContent?: boolean | null;
4207
+ /**
4208
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
4209
+ */
4210
+ disableComments?: boolean | null;
4211
+ /**
4212
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
4213
+ */
4214
+ disableDuet?: boolean | null;
4215
+ /**
4216
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
4217
+ */
4218
+ disableStitch?: boolean | null;
4219
+ } | null;
4220
+ LINKEDIN?: {
4221
+ text: string;
4222
+ uploadIds?: Array<(string)> | null;
4223
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
4224
+ /**
4225
+ * Set to true if the post shouldn't be displayed in the main feed.
4226
+ */
4227
+ hideFromFeed?: boolean | null;
4228
+ /**
4229
+ * Set to true if the post is not allowed to be reshared.
4230
+ */
4231
+ disableReshare?: boolean | null;
4232
+ } | null;
4233
+ YOUTUBE?: {
4234
+ type?: 'VIDEO' | 'SHORT';
4235
+ uploadIds?: Array<(string)> | null;
4236
+ text?: string | null;
4237
+ description?: string | null;
4238
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
4239
+ /**
4240
+ * Set to true if the video is made for kids.
4241
+ */
4242
+ madeForKids?: boolean | null;
4243
+ } | null;
4244
+ REDDIT?: {
4245
+ /**
4246
+ * Subreddit name. Example: r/subredditName or u/username
4247
+ */
4248
+ sr: string;
4249
+ text: string;
4250
+ description?: string | null;
4251
+ uploadIds?: Array<(string)> | null;
4252
+ /**
4253
+ * The URL to which the post will link to.
4254
+ */
4255
+ link?: string | null;
4256
+ /**
4257
+ * Set to true if the post is NSFW.
4258
+ */
4259
+ nsfw?: boolean | null;
4260
+ } | null;
4261
+ DISCORD?: {
4262
+ channelId: string;
4263
+ text?: string | null;
4264
+ uploadIds?: Array<(string)> | null;
4265
+ /**
4266
+ * The username to display as the author of the message.
4267
+ */
4268
+ username?: string | null;
4269
+ /**
4270
+ * Avatar url to display as the author of the message.
4271
+ */
4272
+ avatarUrl?: string | null;
4273
+ } | null;
4274
+ SLACK?: {
4275
+ channelId: string;
4276
+ text?: string | null;
4277
+ uploadIds?: Array<(string)> | null;
4278
+ /**
4279
+ * The username to display as the author of the message.
4280
+ */
4281
+ username?: string | null;
4282
+ /**
4283
+ * Avatar url to display as the author of the message.
4284
+ */
4285
+ avatarUrl?: string | null;
4286
+ } | null;
4287
+ MASTODON?: unknown;
4288
+ };
4289
+ error?: string | null;
4290
+ errors?: {
4291
+ TWITTER?: string | null;
4292
+ PINTEREST?: string | null;
4293
+ FACEBOOK?: string | null;
4294
+ INSTAGRAM?: string | null;
4295
+ TIKTOK?: string | null;
4296
+ LINKEDIN?: string | null;
4297
+ REDDIT?: string | null;
4298
+ DISCORD?: string | null;
4299
+ SLACK?: string | null;
4300
+ YOUTUBE?: string | null;
4301
+ MASTODON?: string | null;
4302
+ THREADS?: string | null;
4303
+ } | null;
4304
+ externalData?: {
4305
+ TWITTER?: {
4306
+ id?: string | null;
4307
+ permalink?: string | null;
4308
+ } | null;
4309
+ PINTEREST?: {
4310
+ id?: string | null;
4311
+ permalink?: string | null;
4312
+ } | null;
4313
+ FACEBOOK?: {
4314
+ id?: string | null;
4315
+ postId?: string | null;
4316
+ videoId?: string | null;
4317
+ permalink?: string | null;
4318
+ } | null;
4319
+ INSTAGRAM?: {
4320
+ id?: string | null;
4321
+ permalink?: string | null;
4322
+ } | null;
4323
+ TIKTOK?: {
4324
+ id?: string | null;
4325
+ permalink?: string | null;
4326
+ } | null;
4327
+ LINKEDIN?: {
4328
+ id?: string | null;
4329
+ permalink?: string | null;
4330
+ } | null;
4331
+ REDDIT?: {
4332
+ id?: string | null;
4333
+ permalink?: string | null;
4334
+ subreddit_name?: string | null;
4335
+ } | null;
4336
+ DISCORD?: {
4337
+ id?: string | null;
4338
+ permalink?: string | null;
4339
+ channelId?: string | null;
4340
+ } | null;
4341
+ SLACK?: {
4342
+ id?: string | null;
4343
+ permalink?: string | null;
4344
+ channelId?: string | null;
4345
+ } | null;
4346
+ YOUTUBE?: {
4347
+ id?: string | null;
4348
+ permalink?: string | null;
4349
+ } | null;
4350
+ MASTODON?: {
4351
+ id?: string | null;
4352
+ permalink?: string | null;
4353
+ } | null;
4354
+ THREADS?: {
4355
+ id?: string | null;
4356
+ permalink?: string | null;
4357
+ } | null;
3458
4358
  } | null;
3459
- } | null;
3460
- createdAt: string | null;
3461
- updatedAt: string | null;
3462
- deletedAt?: string | null;
4359
+ createdAt: string | null;
4360
+ updatedAt: string | null;
4361
+ deletedAt?: string | null;
4362
+ uploads: Array<{
4363
+ postId: string;
4364
+ uploadId: string;
4365
+ createdAt: string | null;
4366
+ updatedAt: string | null;
4367
+ deletedAt?: string | null;
4368
+ upload: {
4369
+ id: string;
4370
+ teamId: string;
4371
+ expiresAt?: string | null;
4372
+ iconUrl?: string | null;
4373
+ thumbnailUrl?: string | null;
4374
+ url?: string | null;
4375
+ iconPath?: string | null;
4376
+ thumbnailPath?: string | null;
4377
+ path?: string | null;
4378
+ type: 'image' | 'video';
4379
+ width?: number | null;
4380
+ height?: number | null;
4381
+ fileSize?: number | null;
4382
+ videoLength?: number | null;
4383
+ mime?: string | null;
4384
+ ext?: string | null;
4385
+ createdAt: string | null;
4386
+ updatedAt: string | null;
4387
+ };
4388
+ }>;
4389
+ socialAccounts: Array<{
4390
+ postId: string;
4391
+ socialAccountId: string;
4392
+ createdAt: string | null;
4393
+ updatedAt: string | null;
4394
+ deletedAt?: string | null;
4395
+ socialAccount: {
4396
+ id: string;
4397
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
4398
+ teamId: string;
4399
+ username?: string | null;
4400
+ displayName?: string | null;
4401
+ externalId?: string | null;
4402
+ userUsername?: string | null;
4403
+ userDisplayName?: string | null;
4404
+ userId?: string | null;
4405
+ channels?: Array<{
4406
+ id: string;
4407
+ name?: string | null;
4408
+ username?: string | null;
4409
+ webhook?: {
4410
+ id?: string | null;
4411
+ name?: string | null;
4412
+ avatar?: string | null;
4413
+ url?: string | null;
4414
+ } | null;
4415
+ }> | null;
4416
+ createdAt: string | null;
4417
+ updatedAt: string | null;
4418
+ deletedAt?: string | null;
4419
+ };
4420
+ }>;
4421
+ }>;
4422
+ total: number;
3463
4423
  };
3464
4424
  /**
3465
4425
  * 400
@@ -3503,8 +4463,8 @@ type $OpenApiTs = {
3503
4463
  };
3504
4464
  };
3505
4465
  };
3506
- delete: {
3507
- req: PostDeleteData;
4466
+ post: {
4467
+ req: PostCreateData;
3508
4468
  res: {
3509
4469
  /**
3510
4470
  * 200
@@ -3553,6 +4513,10 @@ type $OpenApiTs = {
3553
4513
  text?: string | null;
3554
4514
  uploadIds?: Array<(string)> | null;
3555
4515
  } | null;
4516
+ THREADS?: {
4517
+ text?: string | null;
4518
+ uploadIds?: Array<(string)> | null;
4519
+ } | null;
3556
4520
  TIKTOK?: {
3557
4521
  text?: string | null;
3558
4522
  uploadIds?: Array<(string)> | null;
@@ -3645,8 +4609,7 @@ type $OpenApiTs = {
3645
4609
  */
3646
4610
  avatarUrl?: string | null;
3647
4611
  } | null;
3648
- TELEGRAM?: unknown;
3649
- THREADS?: unknown;
4612
+ MASTODON?: unknown;
3650
4613
  };
3651
4614
  error?: string | null;
3652
4615
  errors?: {
@@ -3660,7 +4623,7 @@ type $OpenApiTs = {
3660
4623
  DISCORD?: string | null;
3661
4624
  SLACK?: string | null;
3662
4625
  YOUTUBE?: string | null;
3663
- TELEGRAM?: string | null;
4626
+ MASTODON?: string | null;
3664
4627
  THREADS?: string | null;
3665
4628
  } | null;
3666
4629
  externalData?: {
@@ -3709,7 +4672,7 @@ type $OpenApiTs = {
3709
4672
  id?: string | null;
3710
4673
  permalink?: string | null;
3711
4674
  } | null;
3712
- TELEGRAM?: {
4675
+ MASTODON?: {
3713
4676
  id?: string | null;
3714
4677
  permalink?: string | null;
3715
4678
  } | null;
@@ -3777,34 +4740,109 @@ declare class AppService {
3777
4740
  */
3778
4741
  appGetHealth(): CancelablePromise<AppGetHealthResponse>;
3779
4742
  }
4743
+ declare class OrganizationService {
4744
+ readonly httpRequest: BaseHttpRequest;
4745
+ constructor(httpRequest: BaseHttpRequest);
4746
+ /**
4747
+ * Get organization
4748
+ * @returns unknown 200
4749
+ * @throws ApiError
4750
+ */
4751
+ organizationGetOrganization(): CancelablePromise<OrganizationGetOrganizationResponse>;
4752
+ }
3780
4753
  declare class TeamService {
3781
4754
  readonly httpRequest: BaseHttpRequest;
3782
4755
  constructor(httpRequest: BaseHttpRequest);
3783
4756
  /**
3784
4757
  * Get team
4758
+ * @param data The data for the request.
4759
+ * @param data.id
4760
+ * @returns unknown 200
4761
+ * @throws ApiError
4762
+ */
4763
+ teamGetTeam(data: TeamGetTeamData): CancelablePromise<TeamGetTeamResponse>;
4764
+ /**
4765
+ * Update team
4766
+ * @param data The data for the request.
4767
+ * @param data.id
4768
+ * @param data.requestBody Body
4769
+ * @returns unknown 200
4770
+ * @throws ApiError
4771
+ */
4772
+ teamUpdateTeam(data: TeamUpdateTeamData): CancelablePromise<TeamUpdateTeamResponse>;
4773
+ /**
4774
+ * Delete team
4775
+ * @param data The data for the request.
4776
+ * @param data.id
4777
+ * @returns unknown 200
4778
+ * @throws ApiError
4779
+ */
4780
+ teamDeleteTeam(data: TeamDeleteTeamData): CancelablePromise<TeamDeleteTeamResponse>;
4781
+ /**
4782
+ * Create new team
4783
+ * @param data The data for the request.
4784
+ * @param data.requestBody Body
3785
4785
  * @returns unknown 200
3786
4786
  * @throws ApiError
3787
4787
  */
3788
- teamGetTeam(): CancelablePromise<TeamGetTeamResponse>;
4788
+ teamCreateTeam(data?: TeamCreateTeamData): CancelablePromise<TeamCreateTeamResponse>;
3789
4789
  }
3790
- declare class UploadService {
4790
+ declare class SocialAccountService {
3791
4791
  readonly httpRequest: BaseHttpRequest;
3792
4792
  constructor(httpRequest: BaseHttpRequest);
3793
4793
  /**
3794
- * Create upload
3795
- * Upload a file. This is the only endpoint that uses multipart/form-data.
4794
+ * Generate OAuth URL
3796
4795
  * @param data The data for the request.
3797
- * @param data.formData Body
4796
+ * @param data.requestBody Body
3798
4797
  * @returns unknown 200
3799
4798
  * @throws ApiError
3800
4799
  */
3801
- uploadCreate(data?: UploadCreateData): CancelablePromise<UploadCreateResponse>;
4800
+ socialAccountConnect(data?: SocialAccountConnectData): CancelablePromise<SocialAccountConnectResponse>;
4801
+ /**
4802
+ * Disconnect social account from team
4803
+ * @param data The data for the request.
4804
+ * @param data.requestBody Body
4805
+ * @returns unknown 200
4806
+ * @throws ApiError
4807
+ */
4808
+ socialAccountDisconnect(data?: SocialAccountDisconnectData): CancelablePromise<SocialAccountDisconnectResponse>;
4809
+ /**
4810
+ * Set channel for social account
4811
+ * @param data The data for the request.
4812
+ * @param data.requestBody Body
4813
+ * @returns unknown 200
4814
+ * @throws ApiError
4815
+ */
4816
+ socialAccountSetChannel(data?: SocialAccountSetChannelData): CancelablePromise<SocialAccountSetChannelResponse>;
4817
+ /**
4818
+ * Refresh channels for social account
4819
+ * @param data The data for the request.
4820
+ * @param data.requestBody Body
4821
+ * @returns unknown 200
4822
+ * @throws ApiError
4823
+ */
4824
+ socialAccountRefreshChannels(data?: SocialAccountRefreshChannelsData): CancelablePromise<SocialAccountRefreshChannelsResponse>;
4825
+ }
4826
+ declare class UploadService {
4827
+ readonly httpRequest: BaseHttpRequest;
4828
+ constructor(httpRequest: BaseHttpRequest);
3802
4829
  /**
3803
4830
  * Get upload list
4831
+ * @param data The data for the request.
4832
+ * @param data.teamId
4833
+ * @returns unknown 200
4834
+ * @throws ApiError
4835
+ */
4836
+ uploadGetList(data: UploadGetListData): CancelablePromise<UploadGetListResponse>;
4837
+ /**
4838
+ * Create upload
4839
+ * Upload a file. This is the only endpoint that uses multipart/form-data.
4840
+ * @param data The data for the request.
4841
+ * @param data.formData Body
3804
4842
  * @returns unknown 200
3805
4843
  * @throws ApiError
3806
4844
  */
3807
- uploadGetList(): CancelablePromise<UploadGetListResponse>;
4845
+ uploadCreate(data?: UploadCreateData): CancelablePromise<UploadCreateResponse>;
3808
4846
  /**
3809
4847
  * Delete many uploads
3810
4848
  * @param data The data for the request.
@@ -3834,58 +4872,61 @@ declare class PostService {
3834
4872
  readonly httpRequest: BaseHttpRequest;
3835
4873
  constructor(httpRequest: BaseHttpRequest);
3836
4874
  /**
3837
- * Create post
4875
+ * Get post
3838
4876
  * @param data The data for the request.
3839
- * @param data.requestBody Body
4877
+ * @param data.id
3840
4878
  * @returns unknown 200
3841
4879
  * @throws ApiError
3842
4880
  */
3843
- postCreate(data?: PostCreateData): CancelablePromise<PostCreateResponse>;
4881
+ postGet(data: PostGetData): CancelablePromise<PostGetResponse>;
3844
4882
  /**
3845
- * Get post list
4883
+ * Update post
3846
4884
  * @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
4885
+ * @param data.id
4886
+ * @param data.requestBody Body
3854
4887
  * @returns unknown 200
3855
4888
  * @throws ApiError
3856
4889
  */
3857
- postGetList(data?: PostGetListData): CancelablePromise<PostGetListResponse>;
4890
+ postUpdate(data: PostUpdateData): CancelablePromise<PostUpdateResponse>;
3858
4891
  /**
3859
- * Get post
4892
+ * Delete post
3860
4893
  * @param data The data for the request.
3861
4894
  * @param data.id
3862
4895
  * @returns unknown 200
3863
4896
  * @throws ApiError
3864
4897
  */
3865
- postGet(data: PostGetData): CancelablePromise<PostGetResponse>;
4898
+ postDelete(data: PostDeleteData): CancelablePromise<PostDeleteResponse>;
3866
4899
  /**
3867
- * Update post
4900
+ * Get post list
3868
4901
  * @param data The data for the request.
3869
- * @param data.id
3870
- * @param data.requestBody Body
4902
+ * @param data.teamId
4903
+ * @param data.status
4904
+ * @param data.orderBy
4905
+ * @param data.order
4906
+ * @param data.q
4907
+ * @param data.platforms
4908
+ * @param data.offset
4909
+ * @param data.limit
3871
4910
  * @returns unknown 200
3872
4911
  * @throws ApiError
3873
4912
  */
3874
- postUpdate(data: PostUpdateData): CancelablePromise<PostUpdateResponse>;
4913
+ postGetList(data: PostGetListData): CancelablePromise<PostGetListResponse>;
3875
4914
  /**
3876
- * Delete post
4915
+ * Create post
3877
4916
  * @param data The data for the request.
3878
- * @param data.id
4917
+ * @param data.requestBody Body
3879
4918
  * @returns unknown 200
3880
4919
  * @throws ApiError
3881
4920
  */
3882
- postDelete(data: PostDeleteData): CancelablePromise<PostDeleteResponse>;
4921
+ postCreate(data?: PostCreateData): CancelablePromise<PostCreateResponse>;
3883
4922
  }
3884
4923
 
3885
4924
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3886
4925
  declare class Client {
3887
4926
  readonly app: AppService;
4927
+ readonly organization: OrganizationService;
3888
4928
  readonly post: PostService;
4929
+ readonly socialAccount: SocialAccountService;
3889
4930
  readonly team: TeamService;
3890
4931
  readonly upload: UploadService;
3891
4932
  readonly request: BaseHttpRequest;
@@ -3938,4 +4979,4 @@ declare class Bundlesocial extends Client {
3938
4979
  constructor(apiKey: string, options?: OpenAPIConfig);
3939
4980
  }
3940
4981
 
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 };
4982
+ 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 };