bundlesocial 2.5.0 → 2.7.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
@@ -381,7 +381,7 @@ type SocialAccountConnectData = {
381
381
  * Body
382
382
  */
383
383
  requestBody?: {
384
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'DISCORD' | 'SLACK' | 'MASTODON';
384
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
385
385
  teamId: string;
386
386
  redirectUrl: string;
387
387
  /**
@@ -401,7 +401,7 @@ type SocialAccountDisconnectData = {
401
401
  * Body
402
402
  */
403
403
  requestBody?: {
404
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'DISCORD' | 'SLACK' | 'MASTODON';
404
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
405
405
  teamId: string;
406
406
  };
407
407
  };
@@ -506,7 +506,10 @@ type SocialAccountCreatePortalLinkData = {
506
506
  requestBody?: {
507
507
  teamId: string;
508
508
  redirectUrl: string;
509
- socialAccountTypes: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'DISCORD' | 'SLACK' | 'MASTODON')>;
509
+ socialAccountTypes: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
510
+ logoUrl?: string;
511
+ userLogoUrl?: string;
512
+ userName?: string;
510
513
  };
511
514
  };
512
515
  type SocialAccountCreatePortalLinkResponse = {
@@ -697,6 +700,7 @@ type PostGetResponse = {
697
700
  uploadIds?: Array<(string)> | null;
698
701
  } | null;
699
702
  TIKTOK?: {
703
+ type?: 'VIDEO' | 'IMAGE';
700
704
  text?: string | null;
701
705
  uploadIds?: Array<(string)> | null;
702
706
  privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
@@ -720,6 +724,14 @@ type PostGetResponse = {
720
724
  * If set to true, other TikTok users will not be allowed to make Duets using this post.
721
725
  */
722
726
  disableStitch?: boolean | null;
727
+ /**
728
+ * Choose a frame of the published video as the cover photo in ms
729
+ */
730
+ thumbnailOffset?: number | null;
731
+ /**
732
+ * Set to true if this video is AI generated.
733
+ */
734
+ isAiGenerated?: boolean | null;
723
735
  } | null;
724
736
  LINKEDIN?: {
725
737
  text: string;
@@ -835,6 +847,7 @@ type PostGetResponse = {
835
847
  } | null;
836
848
  LINKEDIN?: {
837
849
  id?: string | null;
850
+ activity?: string | null;
838
851
  permalink?: string | null;
839
852
  } | null;
840
853
  REDDIT?: {
@@ -980,6 +993,7 @@ type PostUpdateData = {
980
993
  uploadIds?: Array<(string)> | null;
981
994
  } | null;
982
995
  TIKTOK?: {
996
+ type?: 'VIDEO' | 'IMAGE';
983
997
  text?: string | null;
984
998
  uploadIds?: Array<(string)> | null;
985
999
  privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
@@ -1003,6 +1017,14 @@ type PostUpdateData = {
1003
1017
  * If set to true, other TikTok users will not be allowed to make Duets using this post.
1004
1018
  */
1005
1019
  disableStitch?: boolean | null;
1020
+ /**
1021
+ * Choose a frame of the published video as the cover photo in ms
1022
+ */
1023
+ thumbnailOffset?: number | null;
1024
+ /**
1025
+ * Set to true if this video is AI generated.
1026
+ */
1027
+ isAiGenerated?: boolean | null;
1006
1028
  } | null;
1007
1029
  LINKEDIN?: {
1008
1030
  text: string;
@@ -1129,6 +1151,7 @@ type PostUpdateResponse = {
1129
1151
  uploadIds?: Array<(string)> | null;
1130
1152
  } | null;
1131
1153
  TIKTOK?: {
1154
+ type?: 'VIDEO' | 'IMAGE';
1132
1155
  text?: string | null;
1133
1156
  uploadIds?: Array<(string)> | null;
1134
1157
  privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
@@ -1152,6 +1175,14 @@ type PostUpdateResponse = {
1152
1175
  * If set to true, other TikTok users will not be allowed to make Duets using this post.
1153
1176
  */
1154
1177
  disableStitch?: boolean | null;
1178
+ /**
1179
+ * Choose a frame of the published video as the cover photo in ms
1180
+ */
1181
+ thumbnailOffset?: number | null;
1182
+ /**
1183
+ * Set to true if this video is AI generated.
1184
+ */
1185
+ isAiGenerated?: boolean | null;
1155
1186
  } | null;
1156
1187
  LINKEDIN?: {
1157
1188
  text: string;
@@ -1267,6 +1298,7 @@ type PostUpdateResponse = {
1267
1298
  } | null;
1268
1299
  LINKEDIN?: {
1269
1300
  id?: string | null;
1301
+ activity?: string | null;
1270
1302
  permalink?: string | null;
1271
1303
  } | null;
1272
1304
  REDDIT?: {
@@ -1353,6 +1385,7 @@ type PostDeleteResponse = {
1353
1385
  uploadIds?: Array<(string)> | null;
1354
1386
  } | null;
1355
1387
  TIKTOK?: {
1388
+ type?: 'VIDEO' | 'IMAGE';
1356
1389
  text?: string | null;
1357
1390
  uploadIds?: Array<(string)> | null;
1358
1391
  privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
@@ -1376,6 +1409,14 @@ type PostDeleteResponse = {
1376
1409
  * If set to true, other TikTok users will not be allowed to make Duets using this post.
1377
1410
  */
1378
1411
  disableStitch?: boolean | null;
1412
+ /**
1413
+ * Choose a frame of the published video as the cover photo in ms
1414
+ */
1415
+ thumbnailOffset?: number | null;
1416
+ /**
1417
+ * Set to true if this video is AI generated.
1418
+ */
1419
+ isAiGenerated?: boolean | null;
1379
1420
  } | null;
1380
1421
  LINKEDIN?: {
1381
1422
  text: string;
@@ -1491,6 +1532,7 @@ type PostDeleteResponse = {
1491
1532
  } | null;
1492
1533
  LINKEDIN?: {
1493
1534
  id?: string | null;
1535
+ activity?: string | null;
1494
1536
  permalink?: string | null;
1495
1537
  } | null;
1496
1538
  REDDIT?: {
@@ -1585,6 +1627,7 @@ type PostGetListResponse = {
1585
1627
  uploadIds?: Array<(string)> | null;
1586
1628
  } | null;
1587
1629
  TIKTOK?: {
1630
+ type?: 'VIDEO' | 'IMAGE';
1588
1631
  text?: string | null;
1589
1632
  uploadIds?: Array<(string)> | null;
1590
1633
  privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
@@ -1608,6 +1651,14 @@ type PostGetListResponse = {
1608
1651
  * If set to true, other TikTok users will not be allowed to make Duets using this post.
1609
1652
  */
1610
1653
  disableStitch?: boolean | null;
1654
+ /**
1655
+ * Choose a frame of the published video as the cover photo in ms
1656
+ */
1657
+ thumbnailOffset?: number | null;
1658
+ /**
1659
+ * Set to true if this video is AI generated.
1660
+ */
1661
+ isAiGenerated?: boolean | null;
1611
1662
  } | null;
1612
1663
  LINKEDIN?: {
1613
1664
  text: string;
@@ -1723,6 +1774,7 @@ type PostGetListResponse = {
1723
1774
  } | null;
1724
1775
  LINKEDIN?: {
1725
1776
  id?: string | null;
1777
+ activity?: string | null;
1726
1778
  permalink?: string | null;
1727
1779
  } | null;
1728
1780
  REDDIT?: {
@@ -1870,6 +1922,7 @@ type PostCreateData = {
1870
1922
  uploadIds?: Array<(string)> | null;
1871
1923
  } | null;
1872
1924
  TIKTOK?: {
1925
+ type?: 'VIDEO' | 'IMAGE';
1873
1926
  text?: string | null;
1874
1927
  uploadIds?: Array<(string)> | null;
1875
1928
  privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
@@ -1893,6 +1946,14 @@ type PostCreateData = {
1893
1946
  * If set to true, other TikTok users will not be allowed to make Duets using this post.
1894
1947
  */
1895
1948
  disableStitch?: boolean | null;
1949
+ /**
1950
+ * Choose a frame of the published video as the cover photo in ms
1951
+ */
1952
+ thumbnailOffset?: number | null;
1953
+ /**
1954
+ * Set to true if this video is AI generated.
1955
+ */
1956
+ isAiGenerated?: boolean | null;
1896
1957
  } | null;
1897
1958
  LINKEDIN?: {
1898
1959
  text: string;
@@ -2019,6 +2080,7 @@ type PostCreateResponse = {
2019
2080
  uploadIds?: Array<(string)> | null;
2020
2081
  } | null;
2021
2082
  TIKTOK?: {
2083
+ type?: 'VIDEO' | 'IMAGE';
2022
2084
  text?: string | null;
2023
2085
  uploadIds?: Array<(string)> | null;
2024
2086
  privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
@@ -2042,6 +2104,14 @@ type PostCreateResponse = {
2042
2104
  * If set to true, other TikTok users will not be allowed to make Duets using this post.
2043
2105
  */
2044
2106
  disableStitch?: boolean | null;
2107
+ /**
2108
+ * Choose a frame of the published video as the cover photo in ms
2109
+ */
2110
+ thumbnailOffset?: number | null;
2111
+ /**
2112
+ * Set to true if this video is AI generated.
2113
+ */
2114
+ isAiGenerated?: boolean | null;
2045
2115
  } | null;
2046
2116
  LINKEDIN?: {
2047
2117
  text: string;
@@ -2157,6 +2227,7 @@ type PostCreateResponse = {
2157
2227
  } | null;
2158
2228
  LINKEDIN?: {
2159
2229
  id?: string | null;
2230
+ activity?: string | null;
2160
2231
  permalink?: string | null;
2161
2232
  } | null;
2162
2233
  REDDIT?: {
@@ -2191,97 +2262,713 @@ type PostCreateResponse = {
2191
2262
  updatedAt: string | null;
2192
2263
  deletedAt?: string | null;
2193
2264
  };
2194
- type $OpenApiTs = {
2195
- '/api/v1/': {
2196
- get: {
2197
- res: {
2198
- /**
2199
- * 200
2200
- */
2201
- 200: {
2202
- status: string;
2203
- createdAt: string;
2204
- };
2205
- /**
2206
- * 400
2207
- */
2208
- 400: {
2209
- message: string;
2210
- issues?: Array<{
2211
- message: string;
2212
- path?: Array<(string | number)> | null;
2213
- }> | null;
2214
- };
2215
- /**
2216
- * 401
2217
- */
2218
- 401: {
2219
- message: string;
2220
- };
2221
- /**
2222
- * 403
2223
- */
2224
- 403: {
2225
- message: string;
2226
- };
2227
- /**
2228
- * 404
2229
- */
2230
- 404: {
2231
- message: string;
2232
- };
2233
- /**
2234
- * 429
2235
- */
2236
- 429: {
2237
- message: string;
2238
- };
2239
- /**
2240
- * 500
2241
- */
2242
- 500: {
2243
- message: string;
2244
- };
2245
- };
2265
+ type CommentGetData = {
2266
+ id: string;
2267
+ };
2268
+ type CommentGetResponse = {
2269
+ id: string;
2270
+ teamId: string;
2271
+ internalPostId: string;
2272
+ internalParentCommentId?: string | null;
2273
+ text: string;
2274
+ postDate: string | null;
2275
+ postedDate?: string | null;
2276
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2277
+ data: {
2278
+ FACEBOOK?: {
2279
+ text?: string | null;
2280
+ } | null;
2281
+ INSTAGRAM?: {
2282
+ text?: string | null;
2283
+ } | null;
2284
+ THREADS?: {
2285
+ text?: string | null;
2286
+ } | null;
2287
+ TIKTOK?: {
2288
+ text?: string | null;
2289
+ } | null;
2290
+ LINKEDIN?: {
2291
+ text: string;
2292
+ } | null;
2293
+ YOUTUBE?: {
2294
+ text?: string | null;
2295
+ } | null;
2296
+ REDDIT?: {
2297
+ text: string;
2298
+ } | null;
2299
+ MASTODON?: {
2300
+ text?: string | null;
2301
+ } | null;
2302
+ DISCORD?: {
2303
+ text?: string | null;
2304
+ } | null;
2305
+ SLACK?: {
2306
+ text?: string | null;
2307
+ } | null;
2308
+ };
2309
+ error?: string | null;
2310
+ errors?: {
2311
+ FACEBOOK?: string | null;
2312
+ INSTAGRAM?: string | null;
2313
+ TIKTOK?: string | null;
2314
+ LINKEDIN?: string | null;
2315
+ REDDIT?: string | null;
2316
+ YOUTUBE?: string | null;
2317
+ MASTODON?: string | null;
2318
+ THREADS?: string | null;
2319
+ DISCORD?: string | null;
2320
+ SLACK?: string | null;
2321
+ } | null;
2322
+ externalData?: {
2323
+ FACEBOOK?: {
2324
+ id?: string | null;
2325
+ permalink?: string | null;
2326
+ } | null;
2327
+ INSTAGRAM?: {
2328
+ id?: string | null;
2329
+ permalink?: string | null;
2330
+ } | null;
2331
+ TIKTOK?: {
2332
+ id?: string | null;
2333
+ permalink?: string | null;
2334
+ } | null;
2335
+ LINKEDIN?: {
2336
+ id?: string | null;
2337
+ commentUrn?: string | null;
2338
+ permalink?: string | null;
2339
+ } | null;
2340
+ REDDIT?: {
2341
+ id?: string | null;
2342
+ permalink?: string | null;
2343
+ } | null;
2344
+ YOUTUBE?: {
2345
+ id?: string | null;
2346
+ permalink?: string | null;
2347
+ } | null;
2348
+ MASTODON?: {
2349
+ id?: string | null;
2350
+ permalink?: string | null;
2351
+ } | null;
2352
+ THREADS?: {
2353
+ id?: string | null;
2354
+ permalink?: string | null;
2355
+ } | null;
2356
+ DISCORD?: {
2357
+ id?: string | null;
2358
+ permalink?: string | null;
2359
+ } | null;
2360
+ SLACK?: {
2361
+ id?: string | null;
2362
+ permalink?: string | null;
2363
+ } | null;
2364
+ } | null;
2365
+ createdAt: string | null;
2366
+ updatedAt: string | null;
2367
+ deletedAt?: string | null;
2368
+ };
2369
+ type CommentUpdateData = {
2370
+ id: string;
2371
+ /**
2372
+ * Body
2373
+ */
2374
+ requestBody?: {
2375
+ text?: string;
2376
+ internalPostId?: string;
2377
+ internalParentCommentId?: string | null;
2378
+ postDate?: string;
2379
+ status?: 'DRAFT' | 'SCHEDULED';
2380
+ socialAccountTypes?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'LINKEDIN' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
2381
+ data?: {
2382
+ FACEBOOK?: {
2383
+ text?: string | null;
2384
+ } | null;
2385
+ INSTAGRAM?: {
2386
+ text?: string | null;
2387
+ } | null;
2388
+ THREADS?: {
2389
+ text?: string | null;
2390
+ } | null;
2391
+ TIKTOK?: {
2392
+ text?: string | null;
2393
+ } | null;
2394
+ LINKEDIN?: {
2395
+ text: string;
2396
+ } | null;
2397
+ YOUTUBE?: {
2398
+ text?: string | null;
2399
+ } | null;
2400
+ REDDIT?: {
2401
+ text: string;
2402
+ } | null;
2403
+ MASTODON?: {
2404
+ text?: string | null;
2405
+ } | null;
2406
+ DISCORD?: {
2407
+ text?: string | null;
2408
+ } | null;
2409
+ SLACK?: {
2410
+ text?: string | null;
2411
+ } | null;
2246
2412
  };
2247
2413
  };
2248
- '/api/v1/organization/': {
2249
- get: {
2250
- res: {
2251
- /**
2252
- * 200
2253
- */
2254
- 200: {
2255
- id: string;
2256
- createdById: string;
2257
- promotionCodeId?: string | null;
2258
- name?: string | null;
2259
- avatarUrl?: string | null;
2260
- apiAccess?: boolean;
2261
- ref?: string | null;
2262
- createdAt: string | null;
2263
- updatedAt: string | null;
2264
- deletedAt?: string | null;
2265
- teams: Array<{
2266
- id: string;
2267
- name: string;
2268
- avatarUrl?: string | null;
2269
- organizationId: string;
2270
- createdById: string;
2271
- createdAt: string | null;
2272
- updatedAt: string | null;
2273
- deletedAt?: string | null;
2274
- }>;
2275
- createdBy: {
2276
- id: string;
2277
- externalId: string;
2278
- email: string;
2279
- emailVerified?: string | null;
2280
- firstName?: string | null;
2281
- lastName?: string | null;
2282
- avatarUrl?: string | null;
2283
- role: 'ADMIN' | 'CUSTOMER';
2284
- createdAt: string | null;
2414
+ };
2415
+ type CommentUpdateResponse = {
2416
+ id: string;
2417
+ teamId: string;
2418
+ internalPostId: string;
2419
+ internalParentCommentId?: string | null;
2420
+ text: string;
2421
+ postDate: string | null;
2422
+ postedDate?: string | null;
2423
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2424
+ data: {
2425
+ FACEBOOK?: {
2426
+ text?: string | null;
2427
+ } | null;
2428
+ INSTAGRAM?: {
2429
+ text?: string | null;
2430
+ } | null;
2431
+ THREADS?: {
2432
+ text?: string | null;
2433
+ } | null;
2434
+ TIKTOK?: {
2435
+ text?: string | null;
2436
+ } | null;
2437
+ LINKEDIN?: {
2438
+ text: string;
2439
+ } | null;
2440
+ YOUTUBE?: {
2441
+ text?: string | null;
2442
+ } | null;
2443
+ REDDIT?: {
2444
+ text: string;
2445
+ } | null;
2446
+ MASTODON?: {
2447
+ text?: string | null;
2448
+ } | null;
2449
+ DISCORD?: {
2450
+ text?: string | null;
2451
+ } | null;
2452
+ SLACK?: {
2453
+ text?: string | null;
2454
+ } | null;
2455
+ };
2456
+ error?: string | null;
2457
+ errors?: {
2458
+ FACEBOOK?: string | null;
2459
+ INSTAGRAM?: string | null;
2460
+ TIKTOK?: string | null;
2461
+ LINKEDIN?: string | null;
2462
+ REDDIT?: string | null;
2463
+ YOUTUBE?: string | null;
2464
+ MASTODON?: string | null;
2465
+ THREADS?: string | null;
2466
+ DISCORD?: string | null;
2467
+ SLACK?: string | null;
2468
+ } | null;
2469
+ externalData?: {
2470
+ FACEBOOK?: {
2471
+ id?: string | null;
2472
+ permalink?: string | null;
2473
+ } | null;
2474
+ INSTAGRAM?: {
2475
+ id?: string | null;
2476
+ permalink?: string | null;
2477
+ } | null;
2478
+ TIKTOK?: {
2479
+ id?: string | null;
2480
+ permalink?: string | null;
2481
+ } | null;
2482
+ LINKEDIN?: {
2483
+ id?: string | null;
2484
+ commentUrn?: string | null;
2485
+ permalink?: string | null;
2486
+ } | null;
2487
+ REDDIT?: {
2488
+ id?: string | null;
2489
+ permalink?: string | null;
2490
+ } | null;
2491
+ YOUTUBE?: {
2492
+ id?: string | null;
2493
+ permalink?: string | null;
2494
+ } | null;
2495
+ MASTODON?: {
2496
+ id?: string | null;
2497
+ permalink?: string | null;
2498
+ } | null;
2499
+ THREADS?: {
2500
+ id?: string | null;
2501
+ permalink?: string | null;
2502
+ } | null;
2503
+ DISCORD?: {
2504
+ id?: string | null;
2505
+ permalink?: string | null;
2506
+ } | null;
2507
+ SLACK?: {
2508
+ id?: string | null;
2509
+ permalink?: string | null;
2510
+ } | null;
2511
+ } | null;
2512
+ createdAt: string | null;
2513
+ updatedAt: string | null;
2514
+ deletedAt?: string | null;
2515
+ };
2516
+ type CommentDeleteData = {
2517
+ id: string;
2518
+ };
2519
+ type CommentDeleteResponse = {
2520
+ id: string;
2521
+ teamId: string;
2522
+ internalPostId: string;
2523
+ internalParentCommentId?: string | null;
2524
+ text: string;
2525
+ postDate: string | null;
2526
+ postedDate?: string | null;
2527
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2528
+ data: {
2529
+ FACEBOOK?: {
2530
+ text?: string | null;
2531
+ } | null;
2532
+ INSTAGRAM?: {
2533
+ text?: string | null;
2534
+ } | null;
2535
+ THREADS?: {
2536
+ text?: string | null;
2537
+ } | null;
2538
+ TIKTOK?: {
2539
+ text?: string | null;
2540
+ } | null;
2541
+ LINKEDIN?: {
2542
+ text: string;
2543
+ } | null;
2544
+ YOUTUBE?: {
2545
+ text?: string | null;
2546
+ } | null;
2547
+ REDDIT?: {
2548
+ text: string;
2549
+ } | null;
2550
+ MASTODON?: {
2551
+ text?: string | null;
2552
+ } | null;
2553
+ DISCORD?: {
2554
+ text?: string | null;
2555
+ } | null;
2556
+ SLACK?: {
2557
+ text?: string | null;
2558
+ } | null;
2559
+ };
2560
+ error?: string | null;
2561
+ errors?: {
2562
+ FACEBOOK?: string | null;
2563
+ INSTAGRAM?: string | null;
2564
+ TIKTOK?: string | null;
2565
+ LINKEDIN?: string | null;
2566
+ REDDIT?: string | null;
2567
+ YOUTUBE?: string | null;
2568
+ MASTODON?: string | null;
2569
+ THREADS?: string | null;
2570
+ DISCORD?: string | null;
2571
+ SLACK?: string | null;
2572
+ } | null;
2573
+ externalData?: {
2574
+ FACEBOOK?: {
2575
+ id?: string | null;
2576
+ permalink?: string | null;
2577
+ } | null;
2578
+ INSTAGRAM?: {
2579
+ id?: string | null;
2580
+ permalink?: string | null;
2581
+ } | null;
2582
+ TIKTOK?: {
2583
+ id?: string | null;
2584
+ permalink?: string | null;
2585
+ } | null;
2586
+ LINKEDIN?: {
2587
+ id?: string | null;
2588
+ commentUrn?: string | null;
2589
+ permalink?: string | null;
2590
+ } | null;
2591
+ REDDIT?: {
2592
+ id?: string | null;
2593
+ permalink?: string | null;
2594
+ } | null;
2595
+ YOUTUBE?: {
2596
+ id?: string | null;
2597
+ permalink?: string | null;
2598
+ } | null;
2599
+ MASTODON?: {
2600
+ id?: string | null;
2601
+ permalink?: string | null;
2602
+ } | null;
2603
+ THREADS?: {
2604
+ id?: string | null;
2605
+ permalink?: string | null;
2606
+ } | null;
2607
+ DISCORD?: {
2608
+ id?: string | null;
2609
+ permalink?: string | null;
2610
+ } | null;
2611
+ SLACK?: {
2612
+ id?: string | null;
2613
+ permalink?: string | null;
2614
+ } | null;
2615
+ } | null;
2616
+ createdAt: string | null;
2617
+ updatedAt: string | null;
2618
+ deletedAt?: string | null;
2619
+ };
2620
+ type CommentGetListData = {
2621
+ limit?: number | null;
2622
+ offset?: number | null;
2623
+ order?: 'ASC' | 'DESC';
2624
+ orderBy?: 'createdAt' | 'updatedAt' | 'deletedAt';
2625
+ platforms?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'LINKEDIN' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
2626
+ q?: string;
2627
+ status?: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2628
+ teamId: string;
2629
+ };
2630
+ type CommentGetListResponse = {
2631
+ items: Array<{
2632
+ id: string;
2633
+ teamId: string;
2634
+ internalPostId: string;
2635
+ internalParentCommentId?: string | null;
2636
+ text: string;
2637
+ postDate: string | null;
2638
+ postedDate?: string | null;
2639
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2640
+ data: {
2641
+ FACEBOOK?: {
2642
+ text?: string | null;
2643
+ } | null;
2644
+ INSTAGRAM?: {
2645
+ text?: string | null;
2646
+ } | null;
2647
+ THREADS?: {
2648
+ text?: string | null;
2649
+ } | null;
2650
+ TIKTOK?: {
2651
+ text?: string | null;
2652
+ } | null;
2653
+ LINKEDIN?: {
2654
+ text: string;
2655
+ } | null;
2656
+ YOUTUBE?: {
2657
+ text?: string | null;
2658
+ } | null;
2659
+ REDDIT?: {
2660
+ text: string;
2661
+ } | null;
2662
+ MASTODON?: {
2663
+ text?: string | null;
2664
+ } | null;
2665
+ DISCORD?: {
2666
+ text?: string | null;
2667
+ } | null;
2668
+ SLACK?: {
2669
+ text?: string | null;
2670
+ } | null;
2671
+ };
2672
+ error?: string | null;
2673
+ errors?: {
2674
+ FACEBOOK?: string | null;
2675
+ INSTAGRAM?: string | null;
2676
+ TIKTOK?: string | null;
2677
+ LINKEDIN?: string | null;
2678
+ REDDIT?: string | null;
2679
+ YOUTUBE?: string | null;
2680
+ MASTODON?: string | null;
2681
+ THREADS?: string | null;
2682
+ DISCORD?: string | null;
2683
+ SLACK?: string | null;
2684
+ } | null;
2685
+ externalData?: {
2686
+ FACEBOOK?: {
2687
+ id?: string | null;
2688
+ permalink?: string | null;
2689
+ } | null;
2690
+ INSTAGRAM?: {
2691
+ id?: string | null;
2692
+ permalink?: string | null;
2693
+ } | null;
2694
+ TIKTOK?: {
2695
+ id?: string | null;
2696
+ permalink?: string | null;
2697
+ } | null;
2698
+ LINKEDIN?: {
2699
+ id?: string | null;
2700
+ commentUrn?: string | null;
2701
+ permalink?: string | null;
2702
+ } | null;
2703
+ REDDIT?: {
2704
+ id?: string | null;
2705
+ permalink?: string | null;
2706
+ } | null;
2707
+ YOUTUBE?: {
2708
+ id?: string | null;
2709
+ permalink?: string | null;
2710
+ } | null;
2711
+ MASTODON?: {
2712
+ id?: string | null;
2713
+ permalink?: string | null;
2714
+ } | null;
2715
+ THREADS?: {
2716
+ id?: string | null;
2717
+ permalink?: string | null;
2718
+ } | null;
2719
+ DISCORD?: {
2720
+ id?: string | null;
2721
+ permalink?: string | null;
2722
+ } | null;
2723
+ SLACK?: {
2724
+ id?: string | null;
2725
+ permalink?: string | null;
2726
+ } | null;
2727
+ } | null;
2728
+ createdAt: string | null;
2729
+ updatedAt: string | null;
2730
+ deletedAt?: string | null;
2731
+ }>;
2732
+ total: number;
2733
+ };
2734
+ type CommentCreateData = {
2735
+ /**
2736
+ * Body
2737
+ */
2738
+ requestBody?: {
2739
+ teamId: string;
2740
+ text: string;
2741
+ internalPostId: string;
2742
+ internalParentCommentId?: string | null;
2743
+ postDate: string;
2744
+ status: 'DRAFT' | 'SCHEDULED';
2745
+ socialAccountTypes: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'LINKEDIN' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
2746
+ data: {
2747
+ FACEBOOK?: {
2748
+ text?: string | null;
2749
+ } | null;
2750
+ INSTAGRAM?: {
2751
+ text?: string | null;
2752
+ } | null;
2753
+ THREADS?: {
2754
+ text?: string | null;
2755
+ } | null;
2756
+ TIKTOK?: {
2757
+ text?: string | null;
2758
+ } | null;
2759
+ LINKEDIN?: {
2760
+ text: string;
2761
+ } | null;
2762
+ YOUTUBE?: {
2763
+ text?: string | null;
2764
+ } | null;
2765
+ REDDIT?: {
2766
+ text: string;
2767
+ } | null;
2768
+ MASTODON?: {
2769
+ text?: string | null;
2770
+ } | null;
2771
+ DISCORD?: {
2772
+ text?: string | null;
2773
+ } | null;
2774
+ SLACK?: {
2775
+ text?: string | null;
2776
+ } | null;
2777
+ };
2778
+ };
2779
+ };
2780
+ type CommentCreateResponse = {
2781
+ id: string;
2782
+ teamId: string;
2783
+ internalPostId: string;
2784
+ internalParentCommentId?: string | null;
2785
+ text: string;
2786
+ postDate: string | null;
2787
+ postedDate?: string | null;
2788
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
2789
+ data: {
2790
+ FACEBOOK?: {
2791
+ text?: string | null;
2792
+ } | null;
2793
+ INSTAGRAM?: {
2794
+ text?: string | null;
2795
+ } | null;
2796
+ THREADS?: {
2797
+ text?: string | null;
2798
+ } | null;
2799
+ TIKTOK?: {
2800
+ text?: string | null;
2801
+ } | null;
2802
+ LINKEDIN?: {
2803
+ text: string;
2804
+ } | null;
2805
+ YOUTUBE?: {
2806
+ text?: string | null;
2807
+ } | null;
2808
+ REDDIT?: {
2809
+ text: string;
2810
+ } | null;
2811
+ MASTODON?: {
2812
+ text?: string | null;
2813
+ } | null;
2814
+ DISCORD?: {
2815
+ text?: string | null;
2816
+ } | null;
2817
+ SLACK?: {
2818
+ text?: string | null;
2819
+ } | null;
2820
+ };
2821
+ error?: string | null;
2822
+ errors?: {
2823
+ FACEBOOK?: string | null;
2824
+ INSTAGRAM?: string | null;
2825
+ TIKTOK?: string | null;
2826
+ LINKEDIN?: string | null;
2827
+ REDDIT?: string | null;
2828
+ YOUTUBE?: string | null;
2829
+ MASTODON?: string | null;
2830
+ THREADS?: string | null;
2831
+ DISCORD?: string | null;
2832
+ SLACK?: string | null;
2833
+ } | null;
2834
+ externalData?: {
2835
+ FACEBOOK?: {
2836
+ id?: string | null;
2837
+ permalink?: string | null;
2838
+ } | null;
2839
+ INSTAGRAM?: {
2840
+ id?: string | null;
2841
+ permalink?: string | null;
2842
+ } | null;
2843
+ TIKTOK?: {
2844
+ id?: string | null;
2845
+ permalink?: string | null;
2846
+ } | null;
2847
+ LINKEDIN?: {
2848
+ id?: string | null;
2849
+ commentUrn?: string | null;
2850
+ permalink?: string | null;
2851
+ } | null;
2852
+ REDDIT?: {
2853
+ id?: string | null;
2854
+ permalink?: string | null;
2855
+ } | null;
2856
+ YOUTUBE?: {
2857
+ id?: string | null;
2858
+ permalink?: string | null;
2859
+ } | null;
2860
+ MASTODON?: {
2861
+ id?: string | null;
2862
+ permalink?: string | null;
2863
+ } | null;
2864
+ THREADS?: {
2865
+ id?: string | null;
2866
+ permalink?: string | null;
2867
+ } | null;
2868
+ DISCORD?: {
2869
+ id?: string | null;
2870
+ permalink?: string | null;
2871
+ } | null;
2872
+ SLACK?: {
2873
+ id?: string | null;
2874
+ permalink?: string | null;
2875
+ } | null;
2876
+ } | null;
2877
+ createdAt: string | null;
2878
+ updatedAt: string | null;
2879
+ deletedAt?: string | null;
2880
+ };
2881
+ type $OpenApiTs = {
2882
+ '/api/v1/': {
2883
+ get: {
2884
+ res: {
2885
+ /**
2886
+ * 200
2887
+ */
2888
+ 200: {
2889
+ status: string;
2890
+ createdAt: string;
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/organization/': {
2936
+ get: {
2937
+ res: {
2938
+ /**
2939
+ * 200
2940
+ */
2941
+ 200: {
2942
+ id: string;
2943
+ createdById: string;
2944
+ promotionCodeId?: string | null;
2945
+ name?: string | null;
2946
+ avatarUrl?: string | null;
2947
+ apiAccess?: boolean;
2948
+ ref?: string | null;
2949
+ createdAt: string | null;
2950
+ updatedAt: string | null;
2951
+ deletedAt?: string | null;
2952
+ teams: Array<{
2953
+ id: string;
2954
+ name: string;
2955
+ avatarUrl?: string | null;
2956
+ organizationId: string;
2957
+ createdById: string;
2958
+ createdAt: string | null;
2959
+ updatedAt: string | null;
2960
+ deletedAt?: string | null;
2961
+ }>;
2962
+ createdBy: {
2963
+ id: string;
2964
+ externalId: string;
2965
+ email: string;
2966
+ emailVerified?: string | null;
2967
+ firstName?: string | null;
2968
+ lastName?: string | null;
2969
+ avatarUrl?: string | null;
2970
+ role: 'ADMIN' | 'CUSTOMER';
2971
+ createdAt: string | null;
2285
2972
  updatedAt: string | null;
2286
2973
  deletedAt?: string | null;
2287
2974
  };
@@ -2589,18 +3276,267 @@ type $OpenApiTs = {
2589
3276
  };
2590
3277
  };
2591
3278
  };
2592
- patch: {
2593
- req: TeamUpdateTeamData;
3279
+ patch: {
3280
+ req: TeamUpdateTeamData;
3281
+ res: {
3282
+ /**
3283
+ * 200
3284
+ */
3285
+ 200: {
3286
+ id: string;
3287
+ name: string;
3288
+ avatarUrl?: string | null;
3289
+ organizationId: string;
3290
+ createdById: string;
3291
+ createdAt: string | null;
3292
+ updatedAt: string | null;
3293
+ deletedAt?: string | null;
3294
+ };
3295
+ /**
3296
+ * 400
3297
+ */
3298
+ 400: {
3299
+ message: string;
3300
+ issues?: Array<{
3301
+ message: string;
3302
+ path?: Array<(string | number)> | null;
3303
+ }> | null;
3304
+ };
3305
+ /**
3306
+ * 401
3307
+ */
3308
+ 401: {
3309
+ message: string;
3310
+ };
3311
+ /**
3312
+ * 403
3313
+ */
3314
+ 403: {
3315
+ message: string;
3316
+ };
3317
+ /**
3318
+ * 404
3319
+ */
3320
+ 404: {
3321
+ message: string;
3322
+ };
3323
+ /**
3324
+ * 429
3325
+ */
3326
+ 429: {
3327
+ message: string;
3328
+ };
3329
+ /**
3330
+ * 500
3331
+ */
3332
+ 500: {
3333
+ message: string;
3334
+ };
3335
+ };
3336
+ };
3337
+ delete: {
3338
+ req: TeamDeleteTeamData;
3339
+ res: {
3340
+ /**
3341
+ * 200
3342
+ */
3343
+ 200: {
3344
+ id: string;
3345
+ name: string;
3346
+ avatarUrl?: string | null;
3347
+ organizationId: string;
3348
+ createdById: string;
3349
+ createdAt: string | null;
3350
+ updatedAt: string | null;
3351
+ deletedAt?: string | null;
3352
+ };
3353
+ /**
3354
+ * 400
3355
+ */
3356
+ 400: {
3357
+ message: string;
3358
+ issues?: Array<{
3359
+ message: string;
3360
+ path?: Array<(string | number)> | null;
3361
+ }> | null;
3362
+ };
3363
+ /**
3364
+ * 401
3365
+ */
3366
+ 401: {
3367
+ message: string;
3368
+ };
3369
+ /**
3370
+ * 403
3371
+ */
3372
+ 403: {
3373
+ message: string;
3374
+ };
3375
+ /**
3376
+ * 404
3377
+ */
3378
+ 404: {
3379
+ message: string;
3380
+ };
3381
+ /**
3382
+ * 429
3383
+ */
3384
+ 429: {
3385
+ message: string;
3386
+ };
3387
+ /**
3388
+ * 500
3389
+ */
3390
+ 500: {
3391
+ message: string;
3392
+ };
3393
+ };
3394
+ };
3395
+ };
3396
+ '/api/v1/team/': {
3397
+ post: {
3398
+ req: TeamCreateTeamData;
3399
+ res: {
3400
+ /**
3401
+ * 200
3402
+ */
3403
+ 200: {
3404
+ id: string;
3405
+ name: string;
3406
+ avatarUrl?: string | null;
3407
+ organizationId: string;
3408
+ createdById: string;
3409
+ createdAt: string | null;
3410
+ updatedAt: string | null;
3411
+ deletedAt?: string | null;
3412
+ };
3413
+ /**
3414
+ * 400
3415
+ */
3416
+ 400: {
3417
+ message: string;
3418
+ issues?: Array<{
3419
+ message: string;
3420
+ path?: Array<(string | number)> | null;
3421
+ }> | null;
3422
+ };
3423
+ /**
3424
+ * 401
3425
+ */
3426
+ 401: {
3427
+ message: string;
3428
+ };
3429
+ /**
3430
+ * 403
3431
+ */
3432
+ 403: {
3433
+ message: string;
3434
+ };
3435
+ /**
3436
+ * 404
3437
+ */
3438
+ 404: {
3439
+ message: string;
3440
+ };
3441
+ /**
3442
+ * 429
3443
+ */
3444
+ 429: {
3445
+ message: string;
3446
+ };
3447
+ /**
3448
+ * 500
3449
+ */
3450
+ 500: {
3451
+ message: string;
3452
+ };
3453
+ };
3454
+ };
3455
+ };
3456
+ '/api/v1/social-account/connect': {
3457
+ post: {
3458
+ req: SocialAccountConnectData;
3459
+ res: {
3460
+ /**
3461
+ * 200
3462
+ */
3463
+ 200: {
3464
+ /**
3465
+ * OAuth URL - Redirect user to this URL to connect social account
3466
+ */
3467
+ url: string;
3468
+ };
3469
+ /**
3470
+ * 400
3471
+ */
3472
+ 400: {
3473
+ message: string;
3474
+ issues?: Array<{
3475
+ message: string;
3476
+ path?: Array<(string | number)> | null;
3477
+ }> | null;
3478
+ };
3479
+ /**
3480
+ * 401
3481
+ */
3482
+ 401: {
3483
+ message: string;
3484
+ };
3485
+ /**
3486
+ * 403
3487
+ */
3488
+ 403: {
3489
+ message: string;
3490
+ };
3491
+ /**
3492
+ * 404
3493
+ */
3494
+ 404: {
3495
+ message: string;
3496
+ };
3497
+ /**
3498
+ * 429
3499
+ */
3500
+ 429: {
3501
+ message: string;
3502
+ };
3503
+ /**
3504
+ * 500
3505
+ */
3506
+ 500: {
3507
+ message: string;
3508
+ };
3509
+ };
3510
+ };
3511
+ };
3512
+ '/api/v1/social-account/disconnect': {
3513
+ delete: {
3514
+ req: SocialAccountDisconnectData;
2594
3515
  res: {
2595
3516
  /**
2596
3517
  * 200
2597
3518
  */
2598
3519
  200: {
2599
3520
  id: string;
2600
- name: string;
2601
- avatarUrl?: string | null;
2602
- organizationId: string;
2603
- createdById: string;
3521
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
3522
+ teamId: string;
3523
+ username?: string | null;
3524
+ displayName?: string | null;
3525
+ externalId?: string | null;
3526
+ userUsername?: string | null;
3527
+ userDisplayName?: string | null;
3528
+ userId?: string | null;
3529
+ channels?: Array<{
3530
+ id: string;
3531
+ name?: string | null;
3532
+ username?: string | null;
3533
+ webhook?: {
3534
+ id?: string | null;
3535
+ name?: string | null;
3536
+ avatar?: string | null;
3537
+ url?: string | null;
3538
+ } | null;
3539
+ }> | null;
2604
3540
  createdAt: string | null;
2605
3541
  updatedAt: string | null;
2606
3542
  deletedAt?: string | null;
@@ -2647,18 +3583,35 @@ type $OpenApiTs = {
2647
3583
  };
2648
3584
  };
2649
3585
  };
2650
- delete: {
2651
- req: TeamDeleteTeamData;
3586
+ };
3587
+ '/api/v1/social-account/set-channel': {
3588
+ post: {
3589
+ req: SocialAccountSetChannelData;
2652
3590
  res: {
2653
3591
  /**
2654
3592
  * 200
2655
3593
  */
2656
3594
  200: {
2657
3595
  id: string;
2658
- name: string;
2659
- avatarUrl?: string | null;
2660
- organizationId: string;
2661
- createdById: string;
3596
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
3597
+ teamId: string;
3598
+ username?: string | null;
3599
+ displayName?: string | null;
3600
+ externalId?: string | null;
3601
+ userUsername?: string | null;
3602
+ userDisplayName?: string | null;
3603
+ userId?: string | null;
3604
+ channels?: Array<{
3605
+ id: string;
3606
+ name?: string | null;
3607
+ username?: string | null;
3608
+ webhook?: {
3609
+ id?: string | null;
3610
+ name?: string | null;
3611
+ avatar?: string | null;
3612
+ url?: string | null;
3613
+ } | null;
3614
+ }> | null;
2662
3615
  createdAt: string | null;
2663
3616
  updatedAt: string | null;
2664
3617
  deletedAt?: string | null;
@@ -2706,19 +3659,34 @@ type $OpenApiTs = {
2706
3659
  };
2707
3660
  };
2708
3661
  };
2709
- '/api/v1/team/': {
3662
+ '/api/v1/social-account/refresh-channels': {
2710
3663
  post: {
2711
- req: TeamCreateTeamData;
3664
+ req: SocialAccountRefreshChannelsData;
2712
3665
  res: {
2713
3666
  /**
2714
3667
  * 200
2715
3668
  */
2716
3669
  200: {
2717
3670
  id: string;
2718
- name: string;
2719
- avatarUrl?: string | null;
2720
- organizationId: string;
2721
- createdById: string;
3671
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
3672
+ teamId: string;
3673
+ username?: string | null;
3674
+ displayName?: string | null;
3675
+ externalId?: string | null;
3676
+ userUsername?: string | null;
3677
+ userDisplayName?: string | null;
3678
+ userId?: string | null;
3679
+ channels?: Array<{
3680
+ id: string;
3681
+ name?: string | null;
3682
+ username?: string | null;
3683
+ webhook?: {
3684
+ id?: string | null;
3685
+ name?: string | null;
3686
+ avatar?: string | null;
3687
+ url?: string | null;
3688
+ } | null;
3689
+ }> | null;
2722
3690
  createdAt: string | null;
2723
3691
  updatedAt: string | null;
2724
3692
  deletedAt?: string | null;
@@ -2766,17 +3734,14 @@ type $OpenApiTs = {
2766
3734
  };
2767
3735
  };
2768
3736
  };
2769
- '/api/v1/social-account/connect': {
3737
+ '/api/v1/social-account/create-portal-link': {
2770
3738
  post: {
2771
- req: SocialAccountConnectData;
3739
+ req: SocialAccountCreatePortalLinkData;
2772
3740
  res: {
2773
3741
  /**
2774
3742
  * 200
2775
3743
  */
2776
3744
  200: {
2777
- /**
2778
- * OAuth URL - Redirect user to this URL to connect social account
2779
- */
2780
3745
  url: string;
2781
3746
  };
2782
3747
  /**
@@ -2822,38 +3787,40 @@ type $OpenApiTs = {
2822
3787
  };
2823
3788
  };
2824
3789
  };
2825
- '/api/v1/social-account/disconnect': {
2826
- delete: {
2827
- req: SocialAccountDisconnectData;
3790
+ '/api/v1/upload/': {
3791
+ get: {
3792
+ req: UploadGetListData;
2828
3793
  res: {
2829
3794
  /**
2830
3795
  * 200
2831
3796
  */
2832
- 200: {
3797
+ 200: Array<{
2833
3798
  id: string;
2834
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
2835
3799
  teamId: string;
2836
- username?: string | null;
2837
- displayName?: string | null;
2838
- externalId?: string | null;
2839
- userUsername?: string | null;
2840
- userDisplayName?: string | null;
2841
- userId?: string | null;
2842
- channels?: Array<{
2843
- id: string;
2844
- name?: string | null;
2845
- username?: string | null;
2846
- webhook?: {
2847
- id?: string | null;
2848
- name?: string | null;
2849
- avatar?: string | null;
2850
- url?: string | null;
2851
- } | null;
2852
- }> | null;
3800
+ expiresAt?: string | null;
3801
+ iconUrl?: string | null;
3802
+ thumbnailUrl?: string | null;
3803
+ url?: string | null;
3804
+ iconPath?: string | null;
3805
+ thumbnailPath?: string | null;
3806
+ path?: string | null;
3807
+ type: 'image' | 'video';
3808
+ width?: number | null;
3809
+ height?: number | null;
3810
+ fileSize?: number | null;
3811
+ videoLength?: number | null;
3812
+ mime?: string | null;
3813
+ ext?: string | null;
2853
3814
  createdAt: string | null;
2854
3815
  updatedAt: string | null;
2855
- deletedAt?: string | null;
2856
- };
3816
+ posts: Array<{
3817
+ postId: string;
3818
+ uploadId: string;
3819
+ createdAt: string | null;
3820
+ updatedAt: string | null;
3821
+ deletedAt?: string | null;
3822
+ }>;
3823
+ }>;
2857
3824
  /**
2858
3825
  * 400
2859
3826
  */
@@ -2896,38 +3863,31 @@ type $OpenApiTs = {
2896
3863
  };
2897
3864
  };
2898
3865
  };
2899
- };
2900
- '/api/v1/social-account/set-channel': {
2901
3866
  post: {
2902
- req: SocialAccountSetChannelData;
3867
+ req: UploadCreateData;
2903
3868
  res: {
2904
3869
  /**
2905
3870
  * 200
2906
3871
  */
2907
3872
  200: {
2908
3873
  id: string;
2909
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
2910
3874
  teamId: string;
2911
- username?: string | null;
2912
- displayName?: string | null;
2913
- externalId?: string | null;
2914
- userUsername?: string | null;
2915
- userDisplayName?: string | null;
2916
- userId?: string | null;
2917
- channels?: Array<{
2918
- id: string;
2919
- name?: string | null;
2920
- username?: string | null;
2921
- webhook?: {
2922
- id?: string | null;
2923
- name?: string | null;
2924
- avatar?: string | null;
2925
- url?: string | null;
2926
- } | null;
2927
- }> | null;
3875
+ expiresAt?: string | null;
3876
+ iconUrl?: string | null;
3877
+ thumbnailUrl?: string | null;
3878
+ url?: string | null;
3879
+ iconPath?: string | null;
3880
+ thumbnailPath?: string | null;
3881
+ path?: string | null;
3882
+ type: 'image' | 'video';
3883
+ width?: number | null;
3884
+ height?: number | null;
3885
+ fileSize?: number | null;
3886
+ videoLength?: number | null;
3887
+ mime?: string | null;
3888
+ ext?: string | null;
2928
3889
  createdAt: string | null;
2929
3890
  updatedAt: string | null;
2930
- deletedAt?: string | null;
2931
3891
  };
2932
3892
  /**
2933
3893
  * 400
@@ -2971,39 +3931,32 @@ type $OpenApiTs = {
2971
3931
  };
2972
3932
  };
2973
3933
  };
2974
- };
2975
- '/api/v1/social-account/refresh-channels': {
2976
- post: {
2977
- req: SocialAccountRefreshChannelsData;
3934
+ delete: {
3935
+ req: UploadDeleteManyData;
2978
3936
  res: {
2979
3937
  /**
2980
3938
  * 200
2981
3939
  */
2982
- 200: {
3940
+ 200: Array<{
2983
3941
  id: string;
2984
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
2985
3942
  teamId: string;
2986
- username?: string | null;
2987
- displayName?: string | null;
2988
- externalId?: string | null;
2989
- userUsername?: string | null;
2990
- userDisplayName?: string | null;
2991
- userId?: string | null;
2992
- channels?: Array<{
2993
- id: string;
2994
- name?: string | null;
2995
- username?: string | null;
2996
- webhook?: {
2997
- id?: string | null;
2998
- name?: string | null;
2999
- avatar?: string | null;
3000
- url?: string | null;
3001
- } | null;
3002
- }> | null;
3943
+ expiresAt?: string | null;
3944
+ iconUrl?: string | null;
3945
+ thumbnailUrl?: string | null;
3946
+ url?: string | null;
3947
+ iconPath?: string | null;
3948
+ thumbnailPath?: string | null;
3949
+ path?: string | null;
3950
+ type: 'image' | 'video';
3951
+ width?: number | null;
3952
+ height?: number | null;
3953
+ fileSize?: number | null;
3954
+ videoLength?: number | null;
3955
+ mime?: string | null;
3956
+ ext?: string | null;
3003
3957
  createdAt: string | null;
3004
3958
  updatedAt: string | null;
3005
- deletedAt?: string | null;
3006
- };
3959
+ }>;
3007
3960
  /**
3008
3961
  * 400
3009
3962
  */
@@ -3047,15 +4000,32 @@ type $OpenApiTs = {
3047
4000
  };
3048
4001
  };
3049
4002
  };
3050
- '/api/v1/social-account/create-portal-link': {
3051
- post: {
3052
- req: SocialAccountCreatePortalLinkData;
4003
+ '/api/v1/upload/{id}': {
4004
+ get: {
4005
+ req: UploadGetData;
3053
4006
  res: {
3054
4007
  /**
3055
4008
  * 200
3056
4009
  */
3057
4010
  200: {
3058
- url: string;
4011
+ id: string;
4012
+ teamId: string;
4013
+ expiresAt?: string | null;
4014
+ iconUrl?: string | null;
4015
+ thumbnailUrl?: string | null;
4016
+ url?: string | null;
4017
+ iconPath?: string | null;
4018
+ thumbnailPath?: string | null;
4019
+ path?: string | null;
4020
+ type: 'image' | 'video';
4021
+ width?: number | null;
4022
+ height?: number | null;
4023
+ fileSize?: number | null;
4024
+ videoLength?: number | null;
4025
+ mime?: string | null;
4026
+ ext?: string | null;
4027
+ createdAt: string | null;
4028
+ updatedAt: string | null;
3059
4029
  };
3060
4030
  /**
3061
4031
  * 400
@@ -3099,15 +4069,13 @@ type $OpenApiTs = {
3099
4069
  };
3100
4070
  };
3101
4071
  };
3102
- };
3103
- '/api/v1/upload/': {
3104
- get: {
3105
- req: UploadGetListData;
4072
+ delete: {
4073
+ req: UploadDeleteData;
3106
4074
  res: {
3107
4075
  /**
3108
4076
  * 200
3109
4077
  */
3110
- 200: Array<{
4078
+ 200: {
3111
4079
  id: string;
3112
4080
  teamId: string;
3113
4081
  expiresAt?: string | null;
@@ -3126,14 +4094,7 @@ type $OpenApiTs = {
3126
4094
  ext?: string | null;
3127
4095
  createdAt: string | null;
3128
4096
  updatedAt: string | null;
3129
- posts: Array<{
3130
- postId: string;
3131
- uploadId: string;
3132
- createdAt: string | null;
3133
- updatedAt: string | null;
3134
- deletedAt?: string | null;
3135
- }>;
3136
- }>;
4097
+ };
3137
4098
  /**
3138
4099
  * 400
3139
4100
  */
@@ -3176,8 +4137,10 @@ type $OpenApiTs = {
3176
4137
  };
3177
4138
  };
3178
4139
  };
3179
- post: {
3180
- req: UploadCreateData;
4140
+ };
4141
+ '/api/v1/post/{id}': {
4142
+ get: {
4143
+ req: PostGetData;
3181
4144
  res: {
3182
4145
  /**
3183
4146
  * 200
@@ -3185,22 +4148,292 @@ type $OpenApiTs = {
3185
4148
  200: {
3186
4149
  id: string;
3187
4150
  teamId: string;
3188
- expiresAt?: string | null;
3189
- iconUrl?: string | null;
3190
- thumbnailUrl?: string | null;
3191
- url?: string | null;
3192
- iconPath?: string | null;
3193
- thumbnailPath?: string | null;
3194
- path?: string | null;
3195
- type: 'image' | 'video';
3196
- width?: number | null;
3197
- height?: number | null;
3198
- fileSize?: number | null;
3199
- videoLength?: number | null;
3200
- mime?: string | null;
3201
- ext?: string | null;
4151
+ title: string;
4152
+ postDate: string | null;
4153
+ postedDate?: string | null;
4154
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4155
+ data: {
4156
+ TWITTER?: {
4157
+ text?: string | null;
4158
+ uploadIds?: Array<(string)> | null;
4159
+ } | null;
4160
+ PINTEREST?: {
4161
+ text?: string | null;
4162
+ description?: string | null;
4163
+ boardName: string;
4164
+ uploadIds?: Array<(string)> | null;
4165
+ /**
4166
+ * The URL to which the Pin will link to.
4167
+ */
4168
+ link?: string | null;
4169
+ /**
4170
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
4171
+ */
4172
+ altText?: string | null;
4173
+ /**
4174
+ * A note about the Pin. This is not visible to the public.
4175
+ */
4176
+ note?: string | null;
4177
+ /**
4178
+ * The dominant color of the image. This is used to display the image before it's loaded.
4179
+ */
4180
+ dominantColor?: string | null;
4181
+ } | null;
4182
+ FACEBOOK?: {
4183
+ type?: 'POST' | 'REEL' | 'STORY';
4184
+ text?: string | null;
4185
+ uploadIds?: Array<(string)> | null;
4186
+ } | null;
4187
+ INSTAGRAM?: {
4188
+ type?: 'POST' | 'REEL' | 'STORY';
4189
+ text?: string | null;
4190
+ uploadIds?: Array<(string)> | null;
4191
+ } | null;
4192
+ THREADS?: {
4193
+ text?: string | null;
4194
+ uploadIds?: Array<(string)> | null;
4195
+ } | null;
4196
+ TIKTOK?: {
4197
+ type?: 'VIDEO' | 'IMAGE';
4198
+ text?: string | null;
4199
+ uploadIds?: Array<(string)> | null;
4200
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
4201
+ /**
4202
+ * Set to true if the video is a paid partnership to promote a third-party business.
4203
+ */
4204
+ isBrandContent?: boolean | null;
4205
+ /**
4206
+ * Set to true if this video is promoting the creator's own business.
4207
+ */
4208
+ isOrganicBrandContent?: boolean | null;
4209
+ /**
4210
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
4211
+ */
4212
+ disableComments?: boolean | null;
4213
+ /**
4214
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
4215
+ */
4216
+ disableDuet?: boolean | null;
4217
+ /**
4218
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
4219
+ */
4220
+ disableStitch?: boolean | null;
4221
+ /**
4222
+ * Choose a frame of the published video as the cover photo in ms
4223
+ */
4224
+ thumbnailOffset?: number | null;
4225
+ /**
4226
+ * Set to true if this video is AI generated.
4227
+ */
4228
+ isAiGenerated?: boolean | null;
4229
+ } | null;
4230
+ LINKEDIN?: {
4231
+ text: string;
4232
+ uploadIds?: Array<(string)> | null;
4233
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
4234
+ /**
4235
+ * Set to true if the post shouldn't be displayed in the main feed.
4236
+ */
4237
+ hideFromFeed?: boolean | null;
4238
+ /**
4239
+ * Set to true if the post is not allowed to be reshared.
4240
+ */
4241
+ disableReshare?: boolean | null;
4242
+ } | null;
4243
+ YOUTUBE?: {
4244
+ type?: 'VIDEO' | 'SHORT';
4245
+ uploadIds?: Array<(string)> | null;
4246
+ text?: string | null;
4247
+ description?: string | null;
4248
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
4249
+ /**
4250
+ * Set to true if the video is made for kids.
4251
+ */
4252
+ madeForKids?: boolean | null;
4253
+ } | null;
4254
+ REDDIT?: {
4255
+ /**
4256
+ * Subreddit name. Example: r/subredditName or u/username
4257
+ */
4258
+ sr: string;
4259
+ text: string;
4260
+ description?: string | null;
4261
+ uploadIds?: Array<(string)> | null;
4262
+ /**
4263
+ * The URL to which the post will link to.
4264
+ */
4265
+ link?: string | null;
4266
+ /**
4267
+ * Set to true if the post is NSFW.
4268
+ */
4269
+ nsfw?: boolean | null;
4270
+ } | null;
4271
+ DISCORD?: {
4272
+ channelId: string;
4273
+ text?: string | null;
4274
+ uploadIds?: Array<(string)> | null;
4275
+ /**
4276
+ * The username to display as the author of the message.
4277
+ */
4278
+ username?: string | null;
4279
+ /**
4280
+ * Avatar url to display as the author of the message.
4281
+ */
4282
+ avatarUrl?: string | null;
4283
+ } | null;
4284
+ SLACK?: {
4285
+ channelId: string;
4286
+ text?: string | null;
4287
+ uploadIds?: Array<(string)> | null;
4288
+ /**
4289
+ * The username to display as the author of the message.
4290
+ */
4291
+ username?: string | null;
4292
+ /**
4293
+ * Avatar url to display as the author of the message.
4294
+ */
4295
+ avatarUrl?: string | null;
4296
+ } | null;
4297
+ MASTODON?: {
4298
+ text?: string | null;
4299
+ uploadIds?: Array<(string)> | null;
4300
+ privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
4301
+ spoiler?: string | null;
4302
+ } | null;
4303
+ };
4304
+ error?: string | null;
4305
+ errors?: {
4306
+ TWITTER?: string | null;
4307
+ PINTEREST?: string | null;
4308
+ FACEBOOK?: string | null;
4309
+ INSTAGRAM?: string | null;
4310
+ TIKTOK?: string | null;
4311
+ LINKEDIN?: string | null;
4312
+ REDDIT?: string | null;
4313
+ DISCORD?: string | null;
4314
+ SLACK?: string | null;
4315
+ YOUTUBE?: string | null;
4316
+ MASTODON?: string | null;
4317
+ THREADS?: string | null;
4318
+ } | null;
4319
+ externalData?: {
4320
+ TWITTER?: {
4321
+ id?: string | null;
4322
+ permalink?: string | null;
4323
+ } | null;
4324
+ PINTEREST?: {
4325
+ id?: string | null;
4326
+ permalink?: string | null;
4327
+ } | null;
4328
+ FACEBOOK?: {
4329
+ id?: string | null;
4330
+ postId?: string | null;
4331
+ videoId?: string | null;
4332
+ permalink?: string | null;
4333
+ } | null;
4334
+ INSTAGRAM?: {
4335
+ id?: string | null;
4336
+ permalink?: string | null;
4337
+ } | null;
4338
+ TIKTOK?: {
4339
+ id?: string | null;
4340
+ permalink?: string | null;
4341
+ } | null;
4342
+ LINKEDIN?: {
4343
+ id?: string | null;
4344
+ activity?: string | null;
4345
+ permalink?: string | null;
4346
+ } | null;
4347
+ REDDIT?: {
4348
+ id?: string | null;
4349
+ permalink?: string | null;
4350
+ subreddit_name?: string | null;
4351
+ } | null;
4352
+ DISCORD?: {
4353
+ id?: string | null;
4354
+ permalink?: string | null;
4355
+ channelId?: string | null;
4356
+ } | null;
4357
+ SLACK?: {
4358
+ id?: string | null;
4359
+ permalink?: string | null;
4360
+ channelId?: string | null;
4361
+ } | null;
4362
+ YOUTUBE?: {
4363
+ id?: string | null;
4364
+ permalink?: string | null;
4365
+ } | null;
4366
+ MASTODON?: {
4367
+ id?: string | null;
4368
+ permalink?: string | null;
4369
+ } | null;
4370
+ THREADS?: {
4371
+ id?: string | null;
4372
+ permalink?: string | null;
4373
+ } | null;
4374
+ } | null;
3202
4375
  createdAt: string | null;
3203
4376
  updatedAt: string | null;
4377
+ deletedAt?: string | null;
4378
+ uploads: Array<{
4379
+ postId: string;
4380
+ uploadId: string;
4381
+ createdAt: string | null;
4382
+ updatedAt: string | null;
4383
+ deletedAt?: string | null;
4384
+ upload: {
4385
+ id: string;
4386
+ teamId: string;
4387
+ expiresAt?: string | null;
4388
+ iconUrl?: string | null;
4389
+ thumbnailUrl?: string | null;
4390
+ url?: string | null;
4391
+ iconPath?: string | null;
4392
+ thumbnailPath?: string | null;
4393
+ path?: string | null;
4394
+ type: 'image' | 'video';
4395
+ width?: number | null;
4396
+ height?: number | null;
4397
+ fileSize?: number | null;
4398
+ videoLength?: number | null;
4399
+ mime?: string | null;
4400
+ ext?: string | null;
4401
+ createdAt: string | null;
4402
+ updatedAt: string | null;
4403
+ };
4404
+ }>;
4405
+ socialAccounts: Array<{
4406
+ postId: string;
4407
+ socialAccountId: string;
4408
+ createdAt: string | null;
4409
+ updatedAt: string | null;
4410
+ deletedAt?: string | null;
4411
+ socialAccount: {
4412
+ id: string;
4413
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
4414
+ teamId: string;
4415
+ username?: string | null;
4416
+ displayName?: string | null;
4417
+ externalId?: string | null;
4418
+ userUsername?: string | null;
4419
+ userDisplayName?: string | null;
4420
+ userId?: string | null;
4421
+ channels?: Array<{
4422
+ id: string;
4423
+ name?: string | null;
4424
+ username?: string | null;
4425
+ webhook?: {
4426
+ id?: string | null;
4427
+ name?: string | null;
4428
+ avatar?: string | null;
4429
+ url?: string | null;
4430
+ } | null;
4431
+ }> | null;
4432
+ createdAt: string | null;
4433
+ updatedAt: string | null;
4434
+ deletedAt?: string | null;
4435
+ };
4436
+ }>;
3204
4437
  };
3205
4438
  /**
3206
4439
  * 400
@@ -3244,32 +4477,243 @@ type $OpenApiTs = {
3244
4477
  };
3245
4478
  };
3246
4479
  };
3247
- delete: {
3248
- req: UploadDeleteManyData;
4480
+ patch: {
4481
+ req: PostUpdateData;
3249
4482
  res: {
3250
4483
  /**
3251
4484
  * 200
3252
4485
  */
3253
- 200: Array<{
4486
+ 200: {
3254
4487
  id: string;
3255
4488
  teamId: string;
3256
- expiresAt?: string | null;
3257
- iconUrl?: string | null;
3258
- thumbnailUrl?: string | null;
3259
- url?: string | null;
3260
- iconPath?: string | null;
3261
- thumbnailPath?: string | null;
3262
- path?: string | null;
3263
- type: 'image' | 'video';
3264
- width?: number | null;
3265
- height?: number | null;
3266
- fileSize?: number | null;
3267
- videoLength?: number | null;
3268
- mime?: string | null;
3269
- ext?: string | null;
4489
+ title: string;
4490
+ postDate: string | null;
4491
+ postedDate?: string | null;
4492
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4493
+ data: {
4494
+ TWITTER?: {
4495
+ text?: string | null;
4496
+ uploadIds?: Array<(string)> | null;
4497
+ } | null;
4498
+ PINTEREST?: {
4499
+ text?: string | null;
4500
+ description?: string | null;
4501
+ boardName: string;
4502
+ uploadIds?: Array<(string)> | null;
4503
+ /**
4504
+ * The URL to which the Pin will link to.
4505
+ */
4506
+ link?: string | null;
4507
+ /**
4508
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
4509
+ */
4510
+ altText?: string | null;
4511
+ /**
4512
+ * A note about the Pin. This is not visible to the public.
4513
+ */
4514
+ note?: string | null;
4515
+ /**
4516
+ * The dominant color of the image. This is used to display the image before it's loaded.
4517
+ */
4518
+ dominantColor?: string | null;
4519
+ } | null;
4520
+ FACEBOOK?: {
4521
+ type?: 'POST' | 'REEL' | 'STORY';
4522
+ text?: string | null;
4523
+ uploadIds?: Array<(string)> | null;
4524
+ } | null;
4525
+ INSTAGRAM?: {
4526
+ type?: 'POST' | 'REEL' | 'STORY';
4527
+ text?: string | null;
4528
+ uploadIds?: Array<(string)> | null;
4529
+ } | null;
4530
+ THREADS?: {
4531
+ text?: string | null;
4532
+ uploadIds?: Array<(string)> | null;
4533
+ } | null;
4534
+ TIKTOK?: {
4535
+ type?: 'VIDEO' | 'IMAGE';
4536
+ text?: string | null;
4537
+ uploadIds?: Array<(string)> | null;
4538
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
4539
+ /**
4540
+ * Set to true if the video is a paid partnership to promote a third-party business.
4541
+ */
4542
+ isBrandContent?: boolean | null;
4543
+ /**
4544
+ * Set to true if this video is promoting the creator's own business.
4545
+ */
4546
+ isOrganicBrandContent?: boolean | null;
4547
+ /**
4548
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
4549
+ */
4550
+ disableComments?: boolean | null;
4551
+ /**
4552
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
4553
+ */
4554
+ disableDuet?: boolean | null;
4555
+ /**
4556
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
4557
+ */
4558
+ disableStitch?: boolean | null;
4559
+ /**
4560
+ * Choose a frame of the published video as the cover photo in ms
4561
+ */
4562
+ thumbnailOffset?: number | null;
4563
+ /**
4564
+ * Set to true if this video is AI generated.
4565
+ */
4566
+ isAiGenerated?: boolean | null;
4567
+ } | null;
4568
+ LINKEDIN?: {
4569
+ text: string;
4570
+ uploadIds?: Array<(string)> | null;
4571
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
4572
+ /**
4573
+ * Set to true if the post shouldn't be displayed in the main feed.
4574
+ */
4575
+ hideFromFeed?: boolean | null;
4576
+ /**
4577
+ * Set to true if the post is not allowed to be reshared.
4578
+ */
4579
+ disableReshare?: boolean | null;
4580
+ } | null;
4581
+ YOUTUBE?: {
4582
+ type?: 'VIDEO' | 'SHORT';
4583
+ uploadIds?: Array<(string)> | null;
4584
+ text?: string | null;
4585
+ description?: string | null;
4586
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
4587
+ /**
4588
+ * Set to true if the video is made for kids.
4589
+ */
4590
+ madeForKids?: boolean | null;
4591
+ } | null;
4592
+ REDDIT?: {
4593
+ /**
4594
+ * Subreddit name. Example: r/subredditName or u/username
4595
+ */
4596
+ sr: string;
4597
+ text: string;
4598
+ description?: string | null;
4599
+ uploadIds?: Array<(string)> | null;
4600
+ /**
4601
+ * The URL to which the post will link to.
4602
+ */
4603
+ link?: string | null;
4604
+ /**
4605
+ * Set to true if the post is NSFW.
4606
+ */
4607
+ nsfw?: boolean | null;
4608
+ } | null;
4609
+ DISCORD?: {
4610
+ channelId: string;
4611
+ text?: string | null;
4612
+ uploadIds?: Array<(string)> | null;
4613
+ /**
4614
+ * The username to display as the author of the message.
4615
+ */
4616
+ username?: string | null;
4617
+ /**
4618
+ * Avatar url to display as the author of the message.
4619
+ */
4620
+ avatarUrl?: string | null;
4621
+ } | null;
4622
+ SLACK?: {
4623
+ channelId: string;
4624
+ text?: string | null;
4625
+ uploadIds?: Array<(string)> | null;
4626
+ /**
4627
+ * The username to display as the author of the message.
4628
+ */
4629
+ username?: string | null;
4630
+ /**
4631
+ * Avatar url to display as the author of the message.
4632
+ */
4633
+ avatarUrl?: string | null;
4634
+ } | null;
4635
+ MASTODON?: {
4636
+ text?: string | null;
4637
+ uploadIds?: Array<(string)> | null;
4638
+ privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
4639
+ spoiler?: string | null;
4640
+ } | null;
4641
+ };
4642
+ error?: string | null;
4643
+ errors?: {
4644
+ TWITTER?: string | null;
4645
+ PINTEREST?: string | null;
4646
+ FACEBOOK?: string | null;
4647
+ INSTAGRAM?: string | null;
4648
+ TIKTOK?: string | null;
4649
+ LINKEDIN?: string | null;
4650
+ REDDIT?: string | null;
4651
+ DISCORD?: string | null;
4652
+ SLACK?: string | null;
4653
+ YOUTUBE?: string | null;
4654
+ MASTODON?: string | null;
4655
+ THREADS?: string | null;
4656
+ } | null;
4657
+ externalData?: {
4658
+ TWITTER?: {
4659
+ id?: string | null;
4660
+ permalink?: string | null;
4661
+ } | null;
4662
+ PINTEREST?: {
4663
+ id?: string | null;
4664
+ permalink?: string | null;
4665
+ } | null;
4666
+ FACEBOOK?: {
4667
+ id?: string | null;
4668
+ postId?: string | null;
4669
+ videoId?: string | null;
4670
+ permalink?: string | null;
4671
+ } | null;
4672
+ INSTAGRAM?: {
4673
+ id?: string | null;
4674
+ permalink?: string | null;
4675
+ } | null;
4676
+ TIKTOK?: {
4677
+ id?: string | null;
4678
+ permalink?: string | null;
4679
+ } | null;
4680
+ LINKEDIN?: {
4681
+ id?: string | null;
4682
+ activity?: string | null;
4683
+ permalink?: string | null;
4684
+ } | null;
4685
+ REDDIT?: {
4686
+ id?: string | null;
4687
+ permalink?: string | null;
4688
+ subreddit_name?: string | null;
4689
+ } | null;
4690
+ DISCORD?: {
4691
+ id?: string | null;
4692
+ permalink?: string | null;
4693
+ channelId?: string | null;
4694
+ } | null;
4695
+ SLACK?: {
4696
+ id?: string | null;
4697
+ permalink?: string | null;
4698
+ channelId?: string | null;
4699
+ } | null;
4700
+ YOUTUBE?: {
4701
+ id?: string | null;
4702
+ permalink?: string | null;
4703
+ } | null;
4704
+ MASTODON?: {
4705
+ id?: string | null;
4706
+ permalink?: string | null;
4707
+ } | null;
4708
+ THREADS?: {
4709
+ id?: string | null;
4710
+ permalink?: string | null;
4711
+ } | null;
4712
+ } | null;
3270
4713
  createdAt: string | null;
3271
4714
  updatedAt: string | null;
3272
- }>;
4715
+ deletedAt?: string | null;
4716
+ };
3273
4717
  /**
3274
4718
  * 400
3275
4719
  */
@@ -3312,10 +4756,8 @@ type $OpenApiTs = {
3312
4756
  };
3313
4757
  };
3314
4758
  };
3315
- };
3316
- '/api/v1/upload/{id}': {
3317
- get: {
3318
- req: UploadGetData;
4759
+ delete: {
4760
+ req: PostDeleteData;
3319
4761
  res: {
3320
4762
  /**
3321
4763
  * 200
@@ -3323,22 +4765,233 @@ type $OpenApiTs = {
3323
4765
  200: {
3324
4766
  id: string;
3325
4767
  teamId: string;
3326
- expiresAt?: string | null;
3327
- iconUrl?: string | null;
3328
- thumbnailUrl?: string | null;
3329
- url?: string | null;
3330
- iconPath?: string | null;
3331
- thumbnailPath?: string | null;
3332
- path?: string | null;
3333
- type: 'image' | 'video';
3334
- width?: number | null;
3335
- height?: number | null;
3336
- fileSize?: number | null;
3337
- videoLength?: number | null;
3338
- mime?: string | null;
3339
- ext?: string | null;
4768
+ title: string;
4769
+ postDate: string | null;
4770
+ postedDate?: string | null;
4771
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4772
+ data: {
4773
+ TWITTER?: {
4774
+ text?: string | null;
4775
+ uploadIds?: Array<(string)> | null;
4776
+ } | null;
4777
+ PINTEREST?: {
4778
+ text?: string | null;
4779
+ description?: string | null;
4780
+ boardName: string;
4781
+ uploadIds?: Array<(string)> | null;
4782
+ /**
4783
+ * The URL to which the Pin will link to.
4784
+ */
4785
+ link?: string | null;
4786
+ /**
4787
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
4788
+ */
4789
+ altText?: string | null;
4790
+ /**
4791
+ * A note about the Pin. This is not visible to the public.
4792
+ */
4793
+ note?: string | null;
4794
+ /**
4795
+ * The dominant color of the image. This is used to display the image before it's loaded.
4796
+ */
4797
+ dominantColor?: string | null;
4798
+ } | null;
4799
+ FACEBOOK?: {
4800
+ type?: 'POST' | 'REEL' | 'STORY';
4801
+ text?: string | null;
4802
+ uploadIds?: Array<(string)> | null;
4803
+ } | null;
4804
+ INSTAGRAM?: {
4805
+ type?: 'POST' | 'REEL' | 'STORY';
4806
+ text?: string | null;
4807
+ uploadIds?: Array<(string)> | null;
4808
+ } | null;
4809
+ THREADS?: {
4810
+ text?: string | null;
4811
+ uploadIds?: Array<(string)> | null;
4812
+ } | null;
4813
+ TIKTOK?: {
4814
+ type?: 'VIDEO' | 'IMAGE';
4815
+ text?: string | null;
4816
+ uploadIds?: Array<(string)> | null;
4817
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
4818
+ /**
4819
+ * Set to true if the video is a paid partnership to promote a third-party business.
4820
+ */
4821
+ isBrandContent?: boolean | null;
4822
+ /**
4823
+ * Set to true if this video is promoting the creator's own business.
4824
+ */
4825
+ isOrganicBrandContent?: boolean | null;
4826
+ /**
4827
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
4828
+ */
4829
+ disableComments?: boolean | null;
4830
+ /**
4831
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
4832
+ */
4833
+ disableDuet?: boolean | null;
4834
+ /**
4835
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
4836
+ */
4837
+ disableStitch?: boolean | null;
4838
+ /**
4839
+ * Choose a frame of the published video as the cover photo in ms
4840
+ */
4841
+ thumbnailOffset?: number | null;
4842
+ /**
4843
+ * Set to true if this video is AI generated.
4844
+ */
4845
+ isAiGenerated?: boolean | null;
4846
+ } | null;
4847
+ LINKEDIN?: {
4848
+ text: string;
4849
+ uploadIds?: Array<(string)> | null;
4850
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
4851
+ /**
4852
+ * Set to true if the post shouldn't be displayed in the main feed.
4853
+ */
4854
+ hideFromFeed?: boolean | null;
4855
+ /**
4856
+ * Set to true if the post is not allowed to be reshared.
4857
+ */
4858
+ disableReshare?: boolean | null;
4859
+ } | null;
4860
+ YOUTUBE?: {
4861
+ type?: 'VIDEO' | 'SHORT';
4862
+ uploadIds?: Array<(string)> | null;
4863
+ text?: string | null;
4864
+ description?: string | null;
4865
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
4866
+ /**
4867
+ * Set to true if the video is made for kids.
4868
+ */
4869
+ madeForKids?: boolean | null;
4870
+ } | null;
4871
+ REDDIT?: {
4872
+ /**
4873
+ * Subreddit name. Example: r/subredditName or u/username
4874
+ */
4875
+ sr: string;
4876
+ text: string;
4877
+ description?: string | null;
4878
+ uploadIds?: Array<(string)> | null;
4879
+ /**
4880
+ * The URL to which the post will link to.
4881
+ */
4882
+ link?: string | null;
4883
+ /**
4884
+ * Set to true if the post is NSFW.
4885
+ */
4886
+ nsfw?: boolean | null;
4887
+ } | null;
4888
+ DISCORD?: {
4889
+ channelId: string;
4890
+ text?: string | null;
4891
+ uploadIds?: Array<(string)> | null;
4892
+ /**
4893
+ * The username to display as the author of the message.
4894
+ */
4895
+ username?: string | null;
4896
+ /**
4897
+ * Avatar url to display as the author of the message.
4898
+ */
4899
+ avatarUrl?: string | null;
4900
+ } | null;
4901
+ SLACK?: {
4902
+ channelId: string;
4903
+ text?: string | null;
4904
+ uploadIds?: Array<(string)> | null;
4905
+ /**
4906
+ * The username to display as the author of the message.
4907
+ */
4908
+ username?: string | null;
4909
+ /**
4910
+ * Avatar url to display as the author of the message.
4911
+ */
4912
+ avatarUrl?: string | null;
4913
+ } | null;
4914
+ MASTODON?: {
4915
+ text?: string | null;
4916
+ uploadIds?: Array<(string)> | null;
4917
+ privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
4918
+ spoiler?: string | null;
4919
+ } | null;
4920
+ };
4921
+ error?: string | null;
4922
+ errors?: {
4923
+ TWITTER?: string | null;
4924
+ PINTEREST?: string | null;
4925
+ FACEBOOK?: string | null;
4926
+ INSTAGRAM?: string | null;
4927
+ TIKTOK?: string | null;
4928
+ LINKEDIN?: string | null;
4929
+ REDDIT?: string | null;
4930
+ DISCORD?: string | null;
4931
+ SLACK?: string | null;
4932
+ YOUTUBE?: string | null;
4933
+ MASTODON?: string | null;
4934
+ THREADS?: string | null;
4935
+ } | null;
4936
+ externalData?: {
4937
+ TWITTER?: {
4938
+ id?: string | null;
4939
+ permalink?: string | null;
4940
+ } | null;
4941
+ PINTEREST?: {
4942
+ id?: string | null;
4943
+ permalink?: string | null;
4944
+ } | null;
4945
+ FACEBOOK?: {
4946
+ id?: string | null;
4947
+ postId?: string | null;
4948
+ videoId?: string | null;
4949
+ permalink?: string | null;
4950
+ } | null;
4951
+ INSTAGRAM?: {
4952
+ id?: string | null;
4953
+ permalink?: string | null;
4954
+ } | null;
4955
+ TIKTOK?: {
4956
+ id?: string | null;
4957
+ permalink?: string | null;
4958
+ } | null;
4959
+ LINKEDIN?: {
4960
+ id?: string | null;
4961
+ activity?: string | null;
4962
+ permalink?: string | null;
4963
+ } | null;
4964
+ REDDIT?: {
4965
+ id?: string | null;
4966
+ permalink?: string | null;
4967
+ subreddit_name?: string | null;
4968
+ } | null;
4969
+ DISCORD?: {
4970
+ id?: string | null;
4971
+ permalink?: string | null;
4972
+ channelId?: string | null;
4973
+ } | null;
4974
+ SLACK?: {
4975
+ id?: string | null;
4976
+ permalink?: string | null;
4977
+ channelId?: string | null;
4978
+ } | null;
4979
+ YOUTUBE?: {
4980
+ id?: string | null;
4981
+ permalink?: string | null;
4982
+ } | null;
4983
+ MASTODON?: {
4984
+ id?: string | null;
4985
+ permalink?: string | null;
4986
+ } | null;
4987
+ THREADS?: {
4988
+ id?: string | null;
4989
+ permalink?: string | null;
4990
+ } | null;
4991
+ } | null;
3340
4992
  createdAt: string | null;
3341
4993
  updatedAt: string | null;
4994
+ deletedAt?: string | null;
3342
4995
  };
3343
4996
  /**
3344
4997
  * 400
@@ -3382,31 +5035,306 @@ type $OpenApiTs = {
3382
5035
  };
3383
5036
  };
3384
5037
  };
3385
- delete: {
3386
- req: UploadDeleteData;
5038
+ };
5039
+ '/api/v1/post/': {
5040
+ get: {
5041
+ req: PostGetListData;
3387
5042
  res: {
3388
5043
  /**
3389
5044
  * 200
3390
5045
  */
3391
5046
  200: {
3392
- id: string;
3393
- teamId: string;
3394
- expiresAt?: string | null;
3395
- iconUrl?: string | null;
3396
- thumbnailUrl?: string | null;
3397
- url?: string | null;
3398
- iconPath?: string | null;
3399
- thumbnailPath?: string | null;
3400
- path?: string | null;
3401
- type: 'image' | 'video';
3402
- width?: number | null;
3403
- height?: number | null;
3404
- fileSize?: number | null;
3405
- videoLength?: number | null;
3406
- mime?: string | null;
3407
- ext?: string | null;
3408
- createdAt: string | null;
3409
- updatedAt: string | null;
5047
+ items: Array<{
5048
+ id: string;
5049
+ teamId: string;
5050
+ title: string;
5051
+ postDate: string | null;
5052
+ postedDate?: string | null;
5053
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
5054
+ data: {
5055
+ TWITTER?: {
5056
+ text?: string | null;
5057
+ uploadIds?: Array<(string)> | null;
5058
+ } | null;
5059
+ PINTEREST?: {
5060
+ text?: string | null;
5061
+ description?: string | null;
5062
+ boardName: string;
5063
+ uploadIds?: Array<(string)> | null;
5064
+ /**
5065
+ * The URL to which the Pin will link to.
5066
+ */
5067
+ link?: string | null;
5068
+ /**
5069
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
5070
+ */
5071
+ altText?: string | null;
5072
+ /**
5073
+ * A note about the Pin. This is not visible to the public.
5074
+ */
5075
+ note?: string | null;
5076
+ /**
5077
+ * The dominant color of the image. This is used to display the image before it's loaded.
5078
+ */
5079
+ dominantColor?: string | null;
5080
+ } | null;
5081
+ FACEBOOK?: {
5082
+ type?: 'POST' | 'REEL' | 'STORY';
5083
+ text?: string | null;
5084
+ uploadIds?: Array<(string)> | null;
5085
+ } | null;
5086
+ INSTAGRAM?: {
5087
+ type?: 'POST' | 'REEL' | 'STORY';
5088
+ text?: string | null;
5089
+ uploadIds?: Array<(string)> | null;
5090
+ } | null;
5091
+ THREADS?: {
5092
+ text?: string | null;
5093
+ uploadIds?: Array<(string)> | null;
5094
+ } | null;
5095
+ TIKTOK?: {
5096
+ type?: 'VIDEO' | 'IMAGE';
5097
+ text?: string | null;
5098
+ uploadIds?: Array<(string)> | null;
5099
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
5100
+ /**
5101
+ * Set to true if the video is a paid partnership to promote a third-party business.
5102
+ */
5103
+ isBrandContent?: boolean | null;
5104
+ /**
5105
+ * Set to true if this video is promoting the creator's own business.
5106
+ */
5107
+ isOrganicBrandContent?: boolean | null;
5108
+ /**
5109
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
5110
+ */
5111
+ disableComments?: boolean | null;
5112
+ /**
5113
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
5114
+ */
5115
+ disableDuet?: boolean | null;
5116
+ /**
5117
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
5118
+ */
5119
+ disableStitch?: boolean | null;
5120
+ /**
5121
+ * Choose a frame of the published video as the cover photo in ms
5122
+ */
5123
+ thumbnailOffset?: number | null;
5124
+ /**
5125
+ * Set to true if this video is AI generated.
5126
+ */
5127
+ isAiGenerated?: boolean | null;
5128
+ } | null;
5129
+ LINKEDIN?: {
5130
+ text: string;
5131
+ uploadIds?: Array<(string)> | null;
5132
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
5133
+ /**
5134
+ * Set to true if the post shouldn't be displayed in the main feed.
5135
+ */
5136
+ hideFromFeed?: boolean | null;
5137
+ /**
5138
+ * Set to true if the post is not allowed to be reshared.
5139
+ */
5140
+ disableReshare?: boolean | null;
5141
+ } | null;
5142
+ YOUTUBE?: {
5143
+ type?: 'VIDEO' | 'SHORT';
5144
+ uploadIds?: Array<(string)> | null;
5145
+ text?: string | null;
5146
+ description?: string | null;
5147
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
5148
+ /**
5149
+ * Set to true if the video is made for kids.
5150
+ */
5151
+ madeForKids?: boolean | null;
5152
+ } | null;
5153
+ REDDIT?: {
5154
+ /**
5155
+ * Subreddit name. Example: r/subredditName or u/username
5156
+ */
5157
+ sr: string;
5158
+ text: string;
5159
+ description?: string | null;
5160
+ uploadIds?: Array<(string)> | null;
5161
+ /**
5162
+ * The URL to which the post will link to.
5163
+ */
5164
+ link?: string | null;
5165
+ /**
5166
+ * Set to true if the post is NSFW.
5167
+ */
5168
+ nsfw?: boolean | null;
5169
+ } | null;
5170
+ DISCORD?: {
5171
+ channelId: string;
5172
+ text?: string | null;
5173
+ uploadIds?: Array<(string)> | null;
5174
+ /**
5175
+ * The username to display as the author of the message.
5176
+ */
5177
+ username?: string | null;
5178
+ /**
5179
+ * Avatar url to display as the author of the message.
5180
+ */
5181
+ avatarUrl?: string | null;
5182
+ } | null;
5183
+ SLACK?: {
5184
+ channelId: string;
5185
+ text?: string | null;
5186
+ uploadIds?: Array<(string)> | null;
5187
+ /**
5188
+ * The username to display as the author of the message.
5189
+ */
5190
+ username?: string | null;
5191
+ /**
5192
+ * Avatar url to display as the author of the message.
5193
+ */
5194
+ avatarUrl?: string | null;
5195
+ } | null;
5196
+ MASTODON?: {
5197
+ text?: string | null;
5198
+ uploadIds?: Array<(string)> | null;
5199
+ privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
5200
+ spoiler?: string | null;
5201
+ } | null;
5202
+ };
5203
+ error?: string | null;
5204
+ errors?: {
5205
+ TWITTER?: string | null;
5206
+ PINTEREST?: string | null;
5207
+ FACEBOOK?: string | null;
5208
+ INSTAGRAM?: string | null;
5209
+ TIKTOK?: string | null;
5210
+ LINKEDIN?: string | null;
5211
+ REDDIT?: string | null;
5212
+ DISCORD?: string | null;
5213
+ SLACK?: string | null;
5214
+ YOUTUBE?: string | null;
5215
+ MASTODON?: string | null;
5216
+ THREADS?: string | null;
5217
+ } | null;
5218
+ externalData?: {
5219
+ TWITTER?: {
5220
+ id?: string | null;
5221
+ permalink?: string | null;
5222
+ } | null;
5223
+ PINTEREST?: {
5224
+ id?: string | null;
5225
+ permalink?: string | null;
5226
+ } | null;
5227
+ FACEBOOK?: {
5228
+ id?: string | null;
5229
+ postId?: string | null;
5230
+ videoId?: string | null;
5231
+ permalink?: string | null;
5232
+ } | null;
5233
+ INSTAGRAM?: {
5234
+ id?: string | null;
5235
+ permalink?: string | null;
5236
+ } | null;
5237
+ TIKTOK?: {
5238
+ id?: string | null;
5239
+ permalink?: string | null;
5240
+ } | null;
5241
+ LINKEDIN?: {
5242
+ id?: string | null;
5243
+ activity?: string | null;
5244
+ permalink?: string | null;
5245
+ } | null;
5246
+ REDDIT?: {
5247
+ id?: string | null;
5248
+ permalink?: string | null;
5249
+ subreddit_name?: string | null;
5250
+ } | null;
5251
+ DISCORD?: {
5252
+ id?: string | null;
5253
+ permalink?: string | null;
5254
+ channelId?: string | null;
5255
+ } | null;
5256
+ SLACK?: {
5257
+ id?: string | null;
5258
+ permalink?: string | null;
5259
+ channelId?: string | null;
5260
+ } | null;
5261
+ YOUTUBE?: {
5262
+ id?: string | null;
5263
+ permalink?: string | null;
5264
+ } | null;
5265
+ MASTODON?: {
5266
+ id?: string | null;
5267
+ permalink?: string | null;
5268
+ } | null;
5269
+ THREADS?: {
5270
+ id?: string | null;
5271
+ permalink?: string | null;
5272
+ } | null;
5273
+ } | null;
5274
+ createdAt: string | null;
5275
+ updatedAt: string | null;
5276
+ deletedAt?: string | null;
5277
+ uploads: Array<{
5278
+ postId: string;
5279
+ uploadId: string;
5280
+ createdAt: string | null;
5281
+ updatedAt: string | null;
5282
+ deletedAt?: string | null;
5283
+ upload: {
5284
+ id: string;
5285
+ teamId: string;
5286
+ expiresAt?: string | null;
5287
+ iconUrl?: string | null;
5288
+ thumbnailUrl?: string | null;
5289
+ url?: string | null;
5290
+ iconPath?: string | null;
5291
+ thumbnailPath?: string | null;
5292
+ path?: string | null;
5293
+ type: 'image' | 'video';
5294
+ width?: number | null;
5295
+ height?: number | null;
5296
+ fileSize?: number | null;
5297
+ videoLength?: number | null;
5298
+ mime?: string | null;
5299
+ ext?: string | null;
5300
+ createdAt: string | null;
5301
+ updatedAt: string | null;
5302
+ };
5303
+ }>;
5304
+ socialAccounts: Array<{
5305
+ postId: string;
5306
+ socialAccountId: string;
5307
+ createdAt: string | null;
5308
+ updatedAt: string | null;
5309
+ deletedAt?: string | null;
5310
+ socialAccount: {
5311
+ id: string;
5312
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
5313
+ teamId: string;
5314
+ username?: string | null;
5315
+ displayName?: string | null;
5316
+ externalId?: string | null;
5317
+ userUsername?: string | null;
5318
+ userDisplayName?: string | null;
5319
+ userId?: string | null;
5320
+ channels?: Array<{
5321
+ id: string;
5322
+ name?: string | null;
5323
+ username?: string | null;
5324
+ webhook?: {
5325
+ id?: string | null;
5326
+ name?: string | null;
5327
+ avatar?: string | null;
5328
+ url?: string | null;
5329
+ } | null;
5330
+ }> | null;
5331
+ createdAt: string | null;
5332
+ updatedAt: string | null;
5333
+ deletedAt?: string | null;
5334
+ };
5335
+ }>;
5336
+ }>;
5337
+ total: number;
3410
5338
  };
3411
5339
  /**
3412
5340
  * 400
@@ -3450,10 +5378,8 @@ type $OpenApiTs = {
3450
5378
  };
3451
5379
  };
3452
5380
  };
3453
- };
3454
- '/api/v1/post/{id}': {
3455
- get: {
3456
- req: PostGetData;
5381
+ post: {
5382
+ req: PostCreateData;
3457
5383
  res: {
3458
5384
  /**
3459
5385
  * 200
@@ -3507,6 +5433,7 @@ type $OpenApiTs = {
3507
5433
  uploadIds?: Array<(string)> | null;
3508
5434
  } | null;
3509
5435
  TIKTOK?: {
5436
+ type?: 'VIDEO' | 'IMAGE';
3510
5437
  text?: string | null;
3511
5438
  uploadIds?: Array<(string)> | null;
3512
5439
  privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
@@ -3530,6 +5457,14 @@ type $OpenApiTs = {
3530
5457
  * If set to true, other TikTok users will not be allowed to make Duets using this post.
3531
5458
  */
3532
5459
  disableStitch?: boolean | null;
5460
+ /**
5461
+ * Choose a frame of the published video as the cover photo in ms
5462
+ */
5463
+ thumbnailOffset?: number | null;
5464
+ /**
5465
+ * Set to true if this video is AI generated.
5466
+ */
5467
+ isAiGenerated?: boolean | null;
3533
5468
  } | null;
3534
5469
  LINKEDIN?: {
3535
5470
  text: string;
@@ -3631,8 +5566,162 @@ type $OpenApiTs = {
3631
5566
  } | null;
3632
5567
  FACEBOOK?: {
3633
5568
  id?: string | null;
3634
- postId?: string | null;
3635
- videoId?: string | null;
5569
+ postId?: string | null;
5570
+ videoId?: string | null;
5571
+ permalink?: string | null;
5572
+ } | null;
5573
+ INSTAGRAM?: {
5574
+ id?: string | null;
5575
+ permalink?: string | null;
5576
+ } | null;
5577
+ TIKTOK?: {
5578
+ id?: string | null;
5579
+ permalink?: string | null;
5580
+ } | null;
5581
+ LINKEDIN?: {
5582
+ id?: string | null;
5583
+ activity?: string | null;
5584
+ permalink?: string | null;
5585
+ } | null;
5586
+ REDDIT?: {
5587
+ id?: string | null;
5588
+ permalink?: string | null;
5589
+ subreddit_name?: string | null;
5590
+ } | null;
5591
+ DISCORD?: {
5592
+ id?: string | null;
5593
+ permalink?: string | null;
5594
+ channelId?: string | null;
5595
+ } | null;
5596
+ SLACK?: {
5597
+ id?: string | null;
5598
+ permalink?: string | null;
5599
+ channelId?: string | null;
5600
+ } | null;
5601
+ YOUTUBE?: {
5602
+ id?: string | null;
5603
+ permalink?: string | null;
5604
+ } | null;
5605
+ MASTODON?: {
5606
+ id?: string | null;
5607
+ permalink?: string | null;
5608
+ } | null;
5609
+ THREADS?: {
5610
+ id?: string | null;
5611
+ permalink?: string | null;
5612
+ } | null;
5613
+ } | null;
5614
+ createdAt: string | null;
5615
+ updatedAt: string | null;
5616
+ deletedAt?: string | null;
5617
+ };
5618
+ /**
5619
+ * 400
5620
+ */
5621
+ 400: {
5622
+ message: string;
5623
+ issues?: Array<{
5624
+ message: string;
5625
+ path?: Array<(string | number)> | null;
5626
+ }> | null;
5627
+ };
5628
+ /**
5629
+ * 401
5630
+ */
5631
+ 401: {
5632
+ message: string;
5633
+ };
5634
+ /**
5635
+ * 403
5636
+ */
5637
+ 403: {
5638
+ message: string;
5639
+ };
5640
+ /**
5641
+ * 404
5642
+ */
5643
+ 404: {
5644
+ message: string;
5645
+ };
5646
+ /**
5647
+ * 429
5648
+ */
5649
+ 429: {
5650
+ message: string;
5651
+ };
5652
+ /**
5653
+ * 500
5654
+ */
5655
+ 500: {
5656
+ message: string;
5657
+ };
5658
+ };
5659
+ };
5660
+ };
5661
+ '/api/v1/comment/{id}': {
5662
+ get: {
5663
+ req: CommentGetData;
5664
+ res: {
5665
+ /**
5666
+ * 200
5667
+ */
5668
+ 200: {
5669
+ id: string;
5670
+ teamId: string;
5671
+ internalPostId: string;
5672
+ internalParentCommentId?: string | null;
5673
+ text: string;
5674
+ postDate: string | null;
5675
+ postedDate?: string | null;
5676
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
5677
+ data: {
5678
+ FACEBOOK?: {
5679
+ text?: string | null;
5680
+ } | null;
5681
+ INSTAGRAM?: {
5682
+ text?: string | null;
5683
+ } | null;
5684
+ THREADS?: {
5685
+ text?: string | null;
5686
+ } | null;
5687
+ TIKTOK?: {
5688
+ text?: string | null;
5689
+ } | null;
5690
+ LINKEDIN?: {
5691
+ text: string;
5692
+ } | null;
5693
+ YOUTUBE?: {
5694
+ text?: string | null;
5695
+ } | null;
5696
+ REDDIT?: {
5697
+ text: string;
5698
+ } | null;
5699
+ MASTODON?: {
5700
+ text?: string | null;
5701
+ } | null;
5702
+ DISCORD?: {
5703
+ text?: string | null;
5704
+ } | null;
5705
+ SLACK?: {
5706
+ text?: string | null;
5707
+ } | null;
5708
+ };
5709
+ error?: string | null;
5710
+ errors?: {
5711
+ FACEBOOK?: string | null;
5712
+ INSTAGRAM?: string | null;
5713
+ TIKTOK?: string | null;
5714
+ LINKEDIN?: string | null;
5715
+ REDDIT?: string | null;
5716
+ YOUTUBE?: string | null;
5717
+ MASTODON?: string | null;
5718
+ THREADS?: string | null;
5719
+ DISCORD?: string | null;
5720
+ SLACK?: string | null;
5721
+ } | null;
5722
+ externalData?: {
5723
+ FACEBOOK?: {
5724
+ id?: string | null;
3636
5725
  permalink?: string | null;
3637
5726
  } | null;
3638
5727
  INSTAGRAM?: {
@@ -3645,32 +5734,30 @@ type $OpenApiTs = {
3645
5734
  } | null;
3646
5735
  LINKEDIN?: {
3647
5736
  id?: string | null;
5737
+ commentUrn?: string | null;
3648
5738
  permalink?: string | null;
3649
5739
  } | null;
3650
5740
  REDDIT?: {
3651
5741
  id?: string | null;
3652
5742
  permalink?: string | null;
3653
- subreddit_name?: string | null;
3654
5743
  } | null;
3655
- DISCORD?: {
5744
+ YOUTUBE?: {
3656
5745
  id?: string | null;
3657
5746
  permalink?: string | null;
3658
- channelId?: string | null;
3659
5747
  } | null;
3660
- SLACK?: {
5748
+ MASTODON?: {
3661
5749
  id?: string | null;
3662
5750
  permalink?: string | null;
3663
- channelId?: string | null;
3664
5751
  } | null;
3665
- YOUTUBE?: {
5752
+ THREADS?: {
3666
5753
  id?: string | null;
3667
5754
  permalink?: string | null;
3668
5755
  } | null;
3669
- MASTODON?: {
5756
+ DISCORD?: {
3670
5757
  id?: string | null;
3671
5758
  permalink?: string | null;
3672
5759
  } | null;
3673
- THREADS?: {
5760
+ SLACK?: {
3674
5761
  id?: string | null;
3675
5762
  permalink?: string | null;
3676
5763
  } | null;
@@ -3678,65 +5765,6 @@ type $OpenApiTs = {
3678
5765
  createdAt: string | null;
3679
5766
  updatedAt: string | null;
3680
5767
  deletedAt?: string | null;
3681
- uploads: Array<{
3682
- postId: string;
3683
- uploadId: string;
3684
- createdAt: string | null;
3685
- updatedAt: string | null;
3686
- deletedAt?: string | null;
3687
- upload: {
3688
- id: string;
3689
- teamId: string;
3690
- expiresAt?: string | null;
3691
- iconUrl?: string | null;
3692
- thumbnailUrl?: string | null;
3693
- url?: string | null;
3694
- iconPath?: string | null;
3695
- thumbnailPath?: string | null;
3696
- path?: string | null;
3697
- type: 'image' | 'video';
3698
- width?: number | null;
3699
- height?: number | null;
3700
- fileSize?: number | null;
3701
- videoLength?: number | null;
3702
- mime?: string | null;
3703
- ext?: string | null;
3704
- createdAt: string | null;
3705
- updatedAt: string | null;
3706
- };
3707
- }>;
3708
- socialAccounts: Array<{
3709
- postId: string;
3710
- socialAccountId: string;
3711
- createdAt: string | null;
3712
- updatedAt: string | null;
3713
- deletedAt?: string | null;
3714
- socialAccount: {
3715
- id: string;
3716
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
3717
- teamId: string;
3718
- username?: string | null;
3719
- displayName?: string | null;
3720
- externalId?: string | null;
3721
- userUsername?: string | null;
3722
- userDisplayName?: string | null;
3723
- userId?: string | null;
3724
- channels?: Array<{
3725
- id: string;
3726
- name?: string | null;
3727
- username?: string | null;
3728
- webhook?: {
3729
- id?: string | null;
3730
- name?: string | null;
3731
- avatar?: string | null;
3732
- url?: string | null;
3733
- } | null;
3734
- }> | null;
3735
- createdAt: string | null;
3736
- updatedAt: string | null;
3737
- deletedAt?: string | null;
3738
- };
3739
- }>;
3740
5768
  };
3741
5769
  /**
3742
5770
  * 400
@@ -3781,7 +5809,7 @@ type $OpenApiTs = {
3781
5809
  };
3782
5810
  };
3783
5811
  patch: {
3784
- req: PostUpdateData;
5812
+ req: CommentUpdateData;
3785
5813
  res: {
3786
5814
  /**
3787
5815
  * 200
@@ -3789,178 +5817,60 @@ type $OpenApiTs = {
3789
5817
  200: {
3790
5818
  id: string;
3791
5819
  teamId: string;
3792
- title: string;
5820
+ internalPostId: string;
5821
+ internalParentCommentId?: string | null;
5822
+ text: string;
3793
5823
  postDate: string | null;
3794
5824
  postedDate?: string | null;
3795
5825
  status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
3796
5826
  data: {
3797
- TWITTER?: {
3798
- text?: string | null;
3799
- uploadIds?: Array<(string)> | null;
3800
- } | null;
3801
- PINTEREST?: {
3802
- text?: string | null;
3803
- description?: string | null;
3804
- boardName: string;
3805
- uploadIds?: Array<(string)> | null;
3806
- /**
3807
- * The URL to which the Pin will link to.
3808
- */
3809
- link?: string | null;
3810
- /**
3811
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
3812
- */
3813
- altText?: string | null;
3814
- /**
3815
- * A note about the Pin. This is not visible to the public.
3816
- */
3817
- note?: string | null;
3818
- /**
3819
- * The dominant color of the image. This is used to display the image before it's loaded.
3820
- */
3821
- dominantColor?: string | null;
3822
- } | null;
3823
5827
  FACEBOOK?: {
3824
- type?: 'POST' | 'REEL' | 'STORY';
3825
5828
  text?: string | null;
3826
- uploadIds?: Array<(string)> | null;
3827
5829
  } | null;
3828
5830
  INSTAGRAM?: {
3829
- type?: 'POST' | 'REEL' | 'STORY';
3830
5831
  text?: string | null;
3831
- uploadIds?: Array<(string)> | null;
3832
5832
  } | null;
3833
5833
  THREADS?: {
3834
5834
  text?: string | null;
3835
- uploadIds?: Array<(string)> | null;
3836
5835
  } | null;
3837
5836
  TIKTOK?: {
3838
5837
  text?: string | null;
3839
- uploadIds?: Array<(string)> | null;
3840
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
3841
- /**
3842
- * Set to true if the video is a paid partnership to promote a third-party business.
3843
- */
3844
- isBrandContent?: boolean | null;
3845
- /**
3846
- * Set to true if this video is promoting the creator's own business.
3847
- */
3848
- isOrganicBrandContent?: boolean | null;
3849
- /**
3850
- * If set to true, other TikTok users will not be allowed to make comments on this post.
3851
- */
3852
- disableComments?: boolean | null;
3853
- /**
3854
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
3855
- */
3856
- disableDuet?: boolean | null;
3857
- /**
3858
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
3859
- */
3860
- disableStitch?: boolean | null;
3861
5838
  } | null;
3862
5839
  LINKEDIN?: {
3863
5840
  text: string;
3864
- uploadIds?: Array<(string)> | null;
3865
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
3866
- /**
3867
- * Set to true if the post shouldn't be displayed in the main feed.
3868
- */
3869
- hideFromFeed?: boolean | null;
3870
- /**
3871
- * Set to true if the post is not allowed to be reshared.
3872
- */
3873
- disableReshare?: boolean | null;
3874
5841
  } | null;
3875
5842
  YOUTUBE?: {
3876
- type?: 'VIDEO' | 'SHORT';
3877
- uploadIds?: Array<(string)> | null;
3878
5843
  text?: string | null;
3879
- description?: string | null;
3880
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
3881
- /**
3882
- * Set to true if the video is made for kids.
3883
- */
3884
- madeForKids?: boolean | null;
3885
5844
  } | null;
3886
5845
  REDDIT?: {
3887
- /**
3888
- * Subreddit name. Example: r/subredditName or u/username
3889
- */
3890
- sr: string;
3891
5846
  text: string;
3892
- description?: string | null;
3893
- uploadIds?: Array<(string)> | null;
3894
- /**
3895
- * The URL to which the post will link to.
3896
- */
3897
- link?: string | null;
3898
- /**
3899
- * Set to true if the post is NSFW.
3900
- */
3901
- nsfw?: boolean | null;
3902
5847
  } | null;
3903
- DISCORD?: {
3904
- channelId: string;
5848
+ MASTODON?: {
3905
5849
  text?: string | null;
3906
- uploadIds?: Array<(string)> | null;
3907
- /**
3908
- * The username to display as the author of the message.
3909
- */
3910
- username?: string | null;
3911
- /**
3912
- * Avatar url to display as the author of the message.
3913
- */
3914
- avatarUrl?: string | null;
3915
5850
  } | null;
3916
- SLACK?: {
3917
- channelId: string;
5851
+ DISCORD?: {
3918
5852
  text?: string | null;
3919
- uploadIds?: Array<(string)> | null;
3920
- /**
3921
- * The username to display as the author of the message.
3922
- */
3923
- username?: string | null;
3924
- /**
3925
- * Avatar url to display as the author of the message.
3926
- */
3927
- avatarUrl?: string | null;
3928
5853
  } | null;
3929
- MASTODON?: {
5854
+ SLACK?: {
3930
5855
  text?: string | null;
3931
- uploadIds?: Array<(string)> | null;
3932
- privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
3933
- spoiler?: string | null;
3934
5856
  } | null;
3935
5857
  };
3936
5858
  error?: string | null;
3937
5859
  errors?: {
3938
- TWITTER?: string | null;
3939
- PINTEREST?: string | null;
3940
5860
  FACEBOOK?: string | null;
3941
5861
  INSTAGRAM?: string | null;
3942
5862
  TIKTOK?: string | null;
3943
5863
  LINKEDIN?: string | null;
3944
5864
  REDDIT?: string | null;
3945
- DISCORD?: string | null;
3946
- SLACK?: string | null;
3947
5865
  YOUTUBE?: string | null;
3948
5866
  MASTODON?: string | null;
3949
5867
  THREADS?: string | null;
5868
+ DISCORD?: string | null;
5869
+ SLACK?: string | null;
3950
5870
  } | null;
3951
5871
  externalData?: {
3952
- TWITTER?: {
3953
- id?: string | null;
3954
- permalink?: string | null;
3955
- } | null;
3956
- PINTEREST?: {
3957
- id?: string | null;
3958
- permalink?: string | null;
3959
- } | null;
3960
5872
  FACEBOOK?: {
3961
5873
  id?: string | null;
3962
- postId?: string | null;
3963
- videoId?: string | null;
3964
5874
  permalink?: string | null;
3965
5875
  } | null;
3966
5876
  INSTAGRAM?: {
@@ -3973,32 +5883,30 @@ type $OpenApiTs = {
3973
5883
  } | null;
3974
5884
  LINKEDIN?: {
3975
5885
  id?: string | null;
5886
+ commentUrn?: string | null;
3976
5887
  permalink?: string | null;
3977
5888
  } | null;
3978
5889
  REDDIT?: {
3979
5890
  id?: string | null;
3980
5891
  permalink?: string | null;
3981
- subreddit_name?: string | null;
3982
5892
  } | null;
3983
- DISCORD?: {
5893
+ YOUTUBE?: {
3984
5894
  id?: string | null;
3985
5895
  permalink?: string | null;
3986
- channelId?: string | null;
3987
5896
  } | null;
3988
- SLACK?: {
5897
+ MASTODON?: {
3989
5898
  id?: string | null;
3990
5899
  permalink?: string | null;
3991
- channelId?: string | null;
3992
5900
  } | null;
3993
- YOUTUBE?: {
5901
+ THREADS?: {
3994
5902
  id?: string | null;
3995
5903
  permalink?: string | null;
3996
5904
  } | null;
3997
- MASTODON?: {
5905
+ DISCORD?: {
3998
5906
  id?: string | null;
3999
5907
  permalink?: string | null;
4000
5908
  } | null;
4001
- THREADS?: {
5909
+ SLACK?: {
4002
5910
  id?: string | null;
4003
5911
  permalink?: string | null;
4004
5912
  } | null;
@@ -4050,7 +5958,7 @@ type $OpenApiTs = {
4050
5958
  };
4051
5959
  };
4052
5960
  delete: {
4053
- req: PostDeleteData;
5961
+ req: CommentDeleteData;
4054
5962
  res: {
4055
5963
  /**
4056
5964
  * 200
@@ -4058,178 +5966,60 @@ type $OpenApiTs = {
4058
5966
  200: {
4059
5967
  id: string;
4060
5968
  teamId: string;
4061
- title: string;
5969
+ internalPostId: string;
5970
+ internalParentCommentId?: string | null;
5971
+ text: string;
4062
5972
  postDate: string | null;
4063
5973
  postedDate?: string | null;
4064
5974
  status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4065
5975
  data: {
4066
- TWITTER?: {
4067
- text?: string | null;
4068
- uploadIds?: Array<(string)> | null;
4069
- } | null;
4070
- PINTEREST?: {
4071
- text?: string | null;
4072
- description?: string | null;
4073
- boardName: string;
4074
- uploadIds?: Array<(string)> | null;
4075
- /**
4076
- * The URL to which the Pin will link to.
4077
- */
4078
- link?: string | null;
4079
- /**
4080
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
4081
- */
4082
- altText?: string | null;
4083
- /**
4084
- * A note about the Pin. This is not visible to the public.
4085
- */
4086
- note?: string | null;
4087
- /**
4088
- * The dominant color of the image. This is used to display the image before it's loaded.
4089
- */
4090
- dominantColor?: string | null;
4091
- } | null;
4092
5976
  FACEBOOK?: {
4093
- type?: 'POST' | 'REEL' | 'STORY';
4094
5977
  text?: string | null;
4095
- uploadIds?: Array<(string)> | null;
4096
5978
  } | null;
4097
5979
  INSTAGRAM?: {
4098
- type?: 'POST' | 'REEL' | 'STORY';
4099
5980
  text?: string | null;
4100
- uploadIds?: Array<(string)> | null;
4101
5981
  } | null;
4102
5982
  THREADS?: {
4103
5983
  text?: string | null;
4104
- uploadIds?: Array<(string)> | null;
4105
5984
  } | null;
4106
5985
  TIKTOK?: {
4107
5986
  text?: string | null;
4108
- uploadIds?: Array<(string)> | null;
4109
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
4110
- /**
4111
- * Set to true if the video is a paid partnership to promote a third-party business.
4112
- */
4113
- isBrandContent?: boolean | null;
4114
- /**
4115
- * Set to true if this video is promoting the creator's own business.
4116
- */
4117
- isOrganicBrandContent?: boolean | null;
4118
- /**
4119
- * If set to true, other TikTok users will not be allowed to make comments on this post.
4120
- */
4121
- disableComments?: boolean | null;
4122
- /**
4123
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
4124
- */
4125
- disableDuet?: boolean | null;
4126
- /**
4127
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
4128
- */
4129
- disableStitch?: boolean | null;
4130
5987
  } | null;
4131
5988
  LINKEDIN?: {
4132
5989
  text: string;
4133
- uploadIds?: Array<(string)> | null;
4134
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
4135
- /**
4136
- * Set to true if the post shouldn't be displayed in the main feed.
4137
- */
4138
- hideFromFeed?: boolean | null;
4139
- /**
4140
- * Set to true if the post is not allowed to be reshared.
4141
- */
4142
- disableReshare?: boolean | null;
4143
5990
  } | null;
4144
5991
  YOUTUBE?: {
4145
- type?: 'VIDEO' | 'SHORT';
4146
- uploadIds?: Array<(string)> | null;
4147
5992
  text?: string | null;
4148
- description?: string | null;
4149
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
4150
- /**
4151
- * Set to true if the video is made for kids.
4152
- */
4153
- madeForKids?: boolean | null;
4154
5993
  } | null;
4155
5994
  REDDIT?: {
4156
- /**
4157
- * Subreddit name. Example: r/subredditName or u/username
4158
- */
4159
- sr: string;
4160
5995
  text: string;
4161
- description?: string | null;
4162
- uploadIds?: Array<(string)> | null;
4163
- /**
4164
- * The URL to which the post will link to.
4165
- */
4166
- link?: string | null;
4167
- /**
4168
- * Set to true if the post is NSFW.
4169
- */
4170
- nsfw?: boolean | null;
4171
5996
  } | null;
4172
- DISCORD?: {
4173
- channelId: string;
5997
+ MASTODON?: {
4174
5998
  text?: string | null;
4175
- uploadIds?: Array<(string)> | null;
4176
- /**
4177
- * The username to display as the author of the message.
4178
- */
4179
- username?: string | null;
4180
- /**
4181
- * Avatar url to display as the author of the message.
4182
- */
4183
- avatarUrl?: string | null;
4184
5999
  } | null;
4185
- SLACK?: {
4186
- channelId: string;
6000
+ DISCORD?: {
4187
6001
  text?: string | null;
4188
- uploadIds?: Array<(string)> | null;
4189
- /**
4190
- * The username to display as the author of the message.
4191
- */
4192
- username?: string | null;
4193
- /**
4194
- * Avatar url to display as the author of the message.
4195
- */
4196
- avatarUrl?: string | null;
4197
6002
  } | null;
4198
- MASTODON?: {
6003
+ SLACK?: {
4199
6004
  text?: string | null;
4200
- uploadIds?: Array<(string)> | null;
4201
- privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
4202
- spoiler?: string | null;
4203
6005
  } | null;
4204
6006
  };
4205
6007
  error?: string | null;
4206
6008
  errors?: {
4207
- TWITTER?: string | null;
4208
- PINTEREST?: string | null;
4209
6009
  FACEBOOK?: string | null;
4210
6010
  INSTAGRAM?: string | null;
4211
6011
  TIKTOK?: string | null;
4212
6012
  LINKEDIN?: string | null;
4213
6013
  REDDIT?: string | null;
4214
- DISCORD?: string | null;
4215
- SLACK?: string | null;
4216
6014
  YOUTUBE?: string | null;
4217
6015
  MASTODON?: string | null;
4218
6016
  THREADS?: string | null;
6017
+ DISCORD?: string | null;
6018
+ SLACK?: string | null;
4219
6019
  } | null;
4220
6020
  externalData?: {
4221
- TWITTER?: {
4222
- id?: string | null;
4223
- permalink?: string | null;
4224
- } | null;
4225
- PINTEREST?: {
4226
- id?: string | null;
4227
- permalink?: string | null;
4228
- } | null;
4229
6021
  FACEBOOK?: {
4230
6022
  id?: string | null;
4231
- postId?: string | null;
4232
- videoId?: string | null;
4233
6023
  permalink?: string | null;
4234
6024
  } | null;
4235
6025
  INSTAGRAM?: {
@@ -4242,32 +6032,30 @@ type $OpenApiTs = {
4242
6032
  } | null;
4243
6033
  LINKEDIN?: {
4244
6034
  id?: string | null;
6035
+ commentUrn?: string | null;
4245
6036
  permalink?: string | null;
4246
6037
  } | null;
4247
6038
  REDDIT?: {
4248
6039
  id?: string | null;
4249
6040
  permalink?: string | null;
4250
- subreddit_name?: string | null;
4251
6041
  } | null;
4252
- DISCORD?: {
6042
+ YOUTUBE?: {
4253
6043
  id?: string | null;
4254
6044
  permalink?: string | null;
4255
- channelId?: string | null;
4256
6045
  } | null;
4257
- SLACK?: {
6046
+ MASTODON?: {
4258
6047
  id?: string | null;
4259
6048
  permalink?: string | null;
4260
- channelId?: string | null;
4261
6049
  } | null;
4262
- YOUTUBE?: {
6050
+ THREADS?: {
4263
6051
  id?: string | null;
4264
6052
  permalink?: string | null;
4265
6053
  } | null;
4266
- MASTODON?: {
6054
+ DISCORD?: {
4267
6055
  id?: string | null;
4268
6056
  permalink?: string | null;
4269
6057
  } | null;
4270
- THREADS?: {
6058
+ SLACK?: {
4271
6059
  id?: string | null;
4272
6060
  permalink?: string | null;
4273
6061
  } | null;
@@ -4319,9 +6107,9 @@ type $OpenApiTs = {
4319
6107
  };
4320
6108
  };
4321
6109
  };
4322
- '/api/v1/post/': {
6110
+ '/api/v1/comment/': {
4323
6111
  get: {
4324
- req: PostGetListData;
6112
+ req: CommentGetListData;
4325
6113
  res: {
4326
6114
  /**
4327
6115
  * 200
@@ -4330,178 +6118,60 @@ type $OpenApiTs = {
4330
6118
  items: Array<{
4331
6119
  id: string;
4332
6120
  teamId: string;
4333
- title: string;
6121
+ internalPostId: string;
6122
+ internalParentCommentId?: string | null;
6123
+ text: string;
4334
6124
  postDate: string | null;
4335
6125
  postedDate?: string | null;
4336
6126
  status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4337
6127
  data: {
4338
- TWITTER?: {
4339
- text?: string | null;
4340
- uploadIds?: Array<(string)> | null;
4341
- } | null;
4342
- PINTEREST?: {
4343
- text?: string | null;
4344
- description?: string | null;
4345
- boardName: string;
4346
- uploadIds?: Array<(string)> | null;
4347
- /**
4348
- * The URL to which the Pin will link to.
4349
- */
4350
- link?: string | null;
4351
- /**
4352
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
4353
- */
4354
- altText?: string | null;
4355
- /**
4356
- * A note about the Pin. This is not visible to the public.
4357
- */
4358
- note?: string | null;
4359
- /**
4360
- * The dominant color of the image. This is used to display the image before it's loaded.
4361
- */
4362
- dominantColor?: string | null;
4363
- } | null;
4364
6128
  FACEBOOK?: {
4365
- type?: 'POST' | 'REEL' | 'STORY';
4366
6129
  text?: string | null;
4367
- uploadIds?: Array<(string)> | null;
4368
6130
  } | null;
4369
6131
  INSTAGRAM?: {
4370
- type?: 'POST' | 'REEL' | 'STORY';
4371
6132
  text?: string | null;
4372
- uploadIds?: Array<(string)> | null;
4373
6133
  } | null;
4374
6134
  THREADS?: {
4375
6135
  text?: string | null;
4376
- uploadIds?: Array<(string)> | null;
4377
6136
  } | null;
4378
6137
  TIKTOK?: {
4379
6138
  text?: string | null;
4380
- uploadIds?: Array<(string)> | null;
4381
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
4382
- /**
4383
- * Set to true if the video is a paid partnership to promote a third-party business.
4384
- */
4385
- isBrandContent?: boolean | null;
4386
- /**
4387
- * Set to true if this video is promoting the creator's own business.
4388
- */
4389
- isOrganicBrandContent?: boolean | null;
4390
- /**
4391
- * If set to true, other TikTok users will not be allowed to make comments on this post.
4392
- */
4393
- disableComments?: boolean | null;
4394
- /**
4395
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
4396
- */
4397
- disableDuet?: boolean | null;
4398
- /**
4399
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
4400
- */
4401
- disableStitch?: boolean | null;
4402
6139
  } | null;
4403
6140
  LINKEDIN?: {
4404
6141
  text: string;
4405
- uploadIds?: Array<(string)> | null;
4406
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
4407
- /**
4408
- * Set to true if the post shouldn't be displayed in the main feed.
4409
- */
4410
- hideFromFeed?: boolean | null;
4411
- /**
4412
- * Set to true if the post is not allowed to be reshared.
4413
- */
4414
- disableReshare?: boolean | null;
4415
6142
  } | null;
4416
6143
  YOUTUBE?: {
4417
- type?: 'VIDEO' | 'SHORT';
4418
- uploadIds?: Array<(string)> | null;
4419
6144
  text?: string | null;
4420
- description?: string | null;
4421
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
4422
- /**
4423
- * Set to true if the video is made for kids.
4424
- */
4425
- madeForKids?: boolean | null;
4426
6145
  } | null;
4427
6146
  REDDIT?: {
4428
- /**
4429
- * Subreddit name. Example: r/subredditName or u/username
4430
- */
4431
- sr: string;
4432
6147
  text: string;
4433
- description?: string | null;
4434
- uploadIds?: Array<(string)> | null;
4435
- /**
4436
- * The URL to which the post will link to.
4437
- */
4438
- link?: string | null;
4439
- /**
4440
- * Set to true if the post is NSFW.
4441
- */
4442
- nsfw?: boolean | null;
4443
6148
  } | null;
4444
- DISCORD?: {
4445
- channelId: string;
6149
+ MASTODON?: {
4446
6150
  text?: string | null;
4447
- uploadIds?: Array<(string)> | null;
4448
- /**
4449
- * The username to display as the author of the message.
4450
- */
4451
- username?: string | null;
4452
- /**
4453
- * Avatar url to display as the author of the message.
4454
- */
4455
- avatarUrl?: string | null;
4456
6151
  } | null;
4457
- SLACK?: {
4458
- channelId: string;
6152
+ DISCORD?: {
4459
6153
  text?: string | null;
4460
- uploadIds?: Array<(string)> | null;
4461
- /**
4462
- * The username to display as the author of the message.
4463
- */
4464
- username?: string | null;
4465
- /**
4466
- * Avatar url to display as the author of the message.
4467
- */
4468
- avatarUrl?: string | null;
4469
6154
  } | null;
4470
- MASTODON?: {
6155
+ SLACK?: {
4471
6156
  text?: string | null;
4472
- uploadIds?: Array<(string)> | null;
4473
- privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
4474
- spoiler?: string | null;
4475
6157
  } | null;
4476
6158
  };
4477
6159
  error?: string | null;
4478
6160
  errors?: {
4479
- TWITTER?: string | null;
4480
- PINTEREST?: string | null;
4481
6161
  FACEBOOK?: string | null;
4482
6162
  INSTAGRAM?: string | null;
4483
6163
  TIKTOK?: string | null;
4484
6164
  LINKEDIN?: string | null;
4485
6165
  REDDIT?: string | null;
4486
- DISCORD?: string | null;
4487
- SLACK?: string | null;
4488
6166
  YOUTUBE?: string | null;
4489
6167
  MASTODON?: string | null;
4490
6168
  THREADS?: string | null;
6169
+ DISCORD?: string | null;
6170
+ SLACK?: string | null;
4491
6171
  } | null;
4492
6172
  externalData?: {
4493
- TWITTER?: {
4494
- id?: string | null;
4495
- permalink?: string | null;
4496
- } | null;
4497
- PINTEREST?: {
4498
- id?: string | null;
4499
- permalink?: string | null;
4500
- } | null;
4501
6173
  FACEBOOK?: {
4502
6174
  id?: string | null;
4503
- postId?: string | null;
4504
- videoId?: string | null;
4505
6175
  permalink?: string | null;
4506
6176
  } | null;
4507
6177
  INSTAGRAM?: {
@@ -4514,22 +6184,12 @@ type $OpenApiTs = {
4514
6184
  } | null;
4515
6185
  LINKEDIN?: {
4516
6186
  id?: string | null;
6187
+ commentUrn?: string | null;
4517
6188
  permalink?: string | null;
4518
6189
  } | null;
4519
- REDDIT?: {
4520
- id?: string | null;
4521
- permalink?: string | null;
4522
- subreddit_name?: string | null;
4523
- } | null;
4524
- DISCORD?: {
4525
- id?: string | null;
4526
- permalink?: string | null;
4527
- channelId?: string | null;
4528
- } | null;
4529
- SLACK?: {
6190
+ REDDIT?: {
4530
6191
  id?: string | null;
4531
6192
  permalink?: string | null;
4532
- channelId?: string | null;
4533
6193
  } | null;
4534
6194
  YOUTUBE?: {
4535
6195
  id?: string | null;
@@ -4543,69 +6203,18 @@ type $OpenApiTs = {
4543
6203
  id?: string | null;
4544
6204
  permalink?: string | null;
4545
6205
  } | null;
6206
+ DISCORD?: {
6207
+ id?: string | null;
6208
+ permalink?: string | null;
6209
+ } | null;
6210
+ SLACK?: {
6211
+ id?: string | null;
6212
+ permalink?: string | null;
6213
+ } | null;
4546
6214
  } | null;
4547
6215
  createdAt: string | null;
4548
6216
  updatedAt: string | null;
4549
6217
  deletedAt?: string | null;
4550
- uploads: Array<{
4551
- postId: string;
4552
- uploadId: string;
4553
- createdAt: string | null;
4554
- updatedAt: string | null;
4555
- deletedAt?: string | null;
4556
- upload: {
4557
- id: string;
4558
- teamId: string;
4559
- expiresAt?: string | null;
4560
- iconUrl?: string | null;
4561
- thumbnailUrl?: string | null;
4562
- url?: string | null;
4563
- iconPath?: string | null;
4564
- thumbnailPath?: string | null;
4565
- path?: string | null;
4566
- type: 'image' | 'video';
4567
- width?: number | null;
4568
- height?: number | null;
4569
- fileSize?: number | null;
4570
- videoLength?: number | null;
4571
- mime?: string | null;
4572
- ext?: string | null;
4573
- createdAt: string | null;
4574
- updatedAt: string | null;
4575
- };
4576
- }>;
4577
- socialAccounts: Array<{
4578
- postId: string;
4579
- socialAccountId: string;
4580
- createdAt: string | null;
4581
- updatedAt: string | null;
4582
- deletedAt?: string | null;
4583
- socialAccount: {
4584
- id: string;
4585
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
4586
- teamId: string;
4587
- username?: string | null;
4588
- displayName?: string | null;
4589
- externalId?: string | null;
4590
- userUsername?: string | null;
4591
- userDisplayName?: string | null;
4592
- userId?: string | null;
4593
- channels?: Array<{
4594
- id: string;
4595
- name?: string | null;
4596
- username?: string | null;
4597
- webhook?: {
4598
- id?: string | null;
4599
- name?: string | null;
4600
- avatar?: string | null;
4601
- url?: string | null;
4602
- } | null;
4603
- }> | null;
4604
- createdAt: string | null;
4605
- updatedAt: string | null;
4606
- deletedAt?: string | null;
4607
- };
4608
- }>;
4609
6218
  }>;
4610
6219
  total: number;
4611
6220
  };
@@ -4652,7 +6261,7 @@ type $OpenApiTs = {
4652
6261
  };
4653
6262
  };
4654
6263
  post: {
4655
- req: PostCreateData;
6264
+ req: CommentCreateData;
4656
6265
  res: {
4657
6266
  /**
4658
6267
  * 200
@@ -4660,178 +6269,60 @@ type $OpenApiTs = {
4660
6269
  200: {
4661
6270
  id: string;
4662
6271
  teamId: string;
4663
- title: string;
6272
+ internalPostId: string;
6273
+ internalParentCommentId?: string | null;
6274
+ text: string;
4664
6275
  postDate: string | null;
4665
6276
  postedDate?: string | null;
4666
6277
  status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4667
6278
  data: {
4668
- TWITTER?: {
4669
- text?: string | null;
4670
- uploadIds?: Array<(string)> | null;
4671
- } | null;
4672
- PINTEREST?: {
4673
- text?: string | null;
4674
- description?: string | null;
4675
- boardName: string;
4676
- uploadIds?: Array<(string)> | null;
4677
- /**
4678
- * The URL to which the Pin will link to.
4679
- */
4680
- link?: string | null;
4681
- /**
4682
- * The alt text for the image. This is used by screen readers and when the image can't be loaded.
4683
- */
4684
- altText?: string | null;
4685
- /**
4686
- * A note about the Pin. This is not visible to the public.
4687
- */
4688
- note?: string | null;
4689
- /**
4690
- * The dominant color of the image. This is used to display the image before it's loaded.
4691
- */
4692
- dominantColor?: string | null;
4693
- } | null;
4694
6279
  FACEBOOK?: {
4695
- type?: 'POST' | 'REEL' | 'STORY';
4696
6280
  text?: string | null;
4697
- uploadIds?: Array<(string)> | null;
4698
6281
  } | null;
4699
6282
  INSTAGRAM?: {
4700
- type?: 'POST' | 'REEL' | 'STORY';
4701
6283
  text?: string | null;
4702
- uploadIds?: Array<(string)> | null;
4703
6284
  } | null;
4704
6285
  THREADS?: {
4705
6286
  text?: string | null;
4706
- uploadIds?: Array<(string)> | null;
4707
6287
  } | null;
4708
6288
  TIKTOK?: {
4709
6289
  text?: string | null;
4710
- uploadIds?: Array<(string)> | null;
4711
- privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
4712
- /**
4713
- * Set to true if the video is a paid partnership to promote a third-party business.
4714
- */
4715
- isBrandContent?: boolean | null;
4716
- /**
4717
- * Set to true if this video is promoting the creator's own business.
4718
- */
4719
- isOrganicBrandContent?: boolean | null;
4720
- /**
4721
- * If set to true, other TikTok users will not be allowed to make comments on this post.
4722
- */
4723
- disableComments?: boolean | null;
4724
- /**
4725
- * If set to true, other TikTok users will not be allowed to make Stitches using this post.
4726
- */
4727
- disableDuet?: boolean | null;
4728
- /**
4729
- * If set to true, other TikTok users will not be allowed to make Duets using this post.
4730
- */
4731
- disableStitch?: boolean | null;
4732
6290
  } | null;
4733
6291
  LINKEDIN?: {
4734
6292
  text: string;
4735
- uploadIds?: Array<(string)> | null;
4736
- privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
4737
- /**
4738
- * Set to true if the post shouldn't be displayed in the main feed.
4739
- */
4740
- hideFromFeed?: boolean | null;
4741
- /**
4742
- * Set to true if the post is not allowed to be reshared.
4743
- */
4744
- disableReshare?: boolean | null;
4745
6293
  } | null;
4746
6294
  YOUTUBE?: {
4747
- type?: 'VIDEO' | 'SHORT';
4748
- uploadIds?: Array<(string)> | null;
4749
6295
  text?: string | null;
4750
- description?: string | null;
4751
- privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
4752
- /**
4753
- * Set to true if the video is made for kids.
4754
- */
4755
- madeForKids?: boolean | null;
4756
6296
  } | null;
4757
6297
  REDDIT?: {
4758
- /**
4759
- * Subreddit name. Example: r/subredditName or u/username
4760
- */
4761
- sr: string;
4762
6298
  text: string;
4763
- description?: string | null;
4764
- uploadIds?: Array<(string)> | null;
4765
- /**
4766
- * The URL to which the post will link to.
4767
- */
4768
- link?: string | null;
4769
- /**
4770
- * Set to true if the post is NSFW.
4771
- */
4772
- nsfw?: boolean | null;
4773
6299
  } | null;
4774
- DISCORD?: {
4775
- channelId: string;
6300
+ MASTODON?: {
4776
6301
  text?: string | null;
4777
- uploadIds?: Array<(string)> | null;
4778
- /**
4779
- * The username to display as the author of the message.
4780
- */
4781
- username?: string | null;
4782
- /**
4783
- * Avatar url to display as the author of the message.
4784
- */
4785
- avatarUrl?: string | null;
4786
6302
  } | null;
4787
- SLACK?: {
4788
- channelId: string;
6303
+ DISCORD?: {
4789
6304
  text?: string | null;
4790
- uploadIds?: Array<(string)> | null;
4791
- /**
4792
- * The username to display as the author of the message.
4793
- */
4794
- username?: string | null;
4795
- /**
4796
- * Avatar url to display as the author of the message.
4797
- */
4798
- avatarUrl?: string | null;
4799
6305
  } | null;
4800
- MASTODON?: {
6306
+ SLACK?: {
4801
6307
  text?: string | null;
4802
- uploadIds?: Array<(string)> | null;
4803
- privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
4804
- spoiler?: string | null;
4805
6308
  } | null;
4806
6309
  };
4807
6310
  error?: string | null;
4808
6311
  errors?: {
4809
- TWITTER?: string | null;
4810
- PINTEREST?: string | null;
4811
6312
  FACEBOOK?: string | null;
4812
6313
  INSTAGRAM?: string | null;
4813
6314
  TIKTOK?: string | null;
4814
6315
  LINKEDIN?: string | null;
4815
6316
  REDDIT?: string | null;
4816
- DISCORD?: string | null;
4817
- SLACK?: string | null;
4818
6317
  YOUTUBE?: string | null;
4819
6318
  MASTODON?: string | null;
4820
6319
  THREADS?: string | null;
6320
+ DISCORD?: string | null;
6321
+ SLACK?: string | null;
4821
6322
  } | null;
4822
6323
  externalData?: {
4823
- TWITTER?: {
4824
- id?: string | null;
4825
- permalink?: string | null;
4826
- } | null;
4827
- PINTEREST?: {
4828
- id?: string | null;
4829
- permalink?: string | null;
4830
- } | null;
4831
6324
  FACEBOOK?: {
4832
6325
  id?: string | null;
4833
- postId?: string | null;
4834
- videoId?: string | null;
4835
6326
  permalink?: string | null;
4836
6327
  } | null;
4837
6328
  INSTAGRAM?: {
@@ -4844,32 +6335,30 @@ type $OpenApiTs = {
4844
6335
  } | null;
4845
6336
  LINKEDIN?: {
4846
6337
  id?: string | null;
6338
+ commentUrn?: string | null;
4847
6339
  permalink?: string | null;
4848
6340
  } | null;
4849
6341
  REDDIT?: {
4850
6342
  id?: string | null;
4851
6343
  permalink?: string | null;
4852
- subreddit_name?: string | null;
4853
6344
  } | null;
4854
- DISCORD?: {
6345
+ YOUTUBE?: {
4855
6346
  id?: string | null;
4856
6347
  permalink?: string | null;
4857
- channelId?: string | null;
4858
6348
  } | null;
4859
- SLACK?: {
6349
+ MASTODON?: {
4860
6350
  id?: string | null;
4861
6351
  permalink?: string | null;
4862
- channelId?: string | null;
4863
6352
  } | null;
4864
- YOUTUBE?: {
6353
+ THREADS?: {
4865
6354
  id?: string | null;
4866
6355
  permalink?: string | null;
4867
6356
  } | null;
4868
- MASTODON?: {
6357
+ DISCORD?: {
4869
6358
  id?: string | null;
4870
6359
  permalink?: string | null;
4871
6360
  } | null;
4872
- THREADS?: {
6361
+ SLACK?: {
4873
6362
  id?: string | null;
4874
6363
  permalink?: string | null;
4875
6364
  } | null;
@@ -4984,7 +6473,8 @@ declare class SocialAccountService {
4984
6473
  readonly httpRequest: BaseHttpRequest;
4985
6474
  constructor(httpRequest: BaseHttpRequest);
4986
6475
  /**
4987
- * Generate OAuth URL
6476
+ * Connect social account for team
6477
+ * Generate OAuth URL for social account connection. Redirect user to this URL to connect social account.
4988
6478
  * @param data The data for the request.
4989
6479
  * @param data.requestBody Body
4990
6480
  * @returns unknown 200
@@ -4993,6 +6483,7 @@ declare class SocialAccountService {
4993
6483
  socialAccountConnect(data?: SocialAccountConnectData): CancelablePromise<SocialAccountConnectResponse>;
4994
6484
  /**
4995
6485
  * Disconnect social account from team
6486
+ * This will remove the social account from all the scheduled posts too.
4996
6487
  * @param data The data for the request.
4997
6488
  * @param data.requestBody Body
4998
6489
  * @returns unknown 200
@@ -5001,6 +6492,7 @@ declare class SocialAccountService {
5001
6492
  socialAccountDisconnect(data?: SocialAccountDisconnectData): CancelablePromise<SocialAccountDisconnectResponse>;
5002
6493
  /**
5003
6494
  * Set channel for social account
6495
+ * Needed only for some social account types - Youtube, Instagram, Facebook and Linkedin.
5004
6496
  * @param data The data for the request.
5005
6497
  * @param data.requestBody Body
5006
6498
  * @returns unknown 200
@@ -5009,6 +6501,7 @@ declare class SocialAccountService {
5009
6501
  socialAccountSetChannel(data?: SocialAccountSetChannelData): CancelablePromise<SocialAccountSetChannelResponse>;
5010
6502
  /**
5011
6503
  * Refresh channels for social account
6504
+ * Refresh channels saved on socialAccount.channels. This is only needed for some social account types - Reddit, Discord, Slack, Pinterest.
5012
6505
  * @param data The data for the request.
5013
6506
  * @param data.requestBody Body
5014
6507
  * @returns unknown 200
@@ -5017,7 +6510,7 @@ declare class SocialAccountService {
5017
6510
  socialAccountRefreshChannels(data?: SocialAccountRefreshChannelsData): CancelablePromise<SocialAccountRefreshChannelsResponse>;
5018
6511
  /**
5019
6512
  * Create portal link
5020
- * Create a portal link which can be used to manage connected social accounts
6513
+ * Simplify connect flow. Create a portal link which can be used to manage connected social accounts directly on bundle.social platform without implementing the logic on your side.
5021
6514
  * @param data The data for the request.
5022
6515
  * @param data.requestBody Body
5023
6516
  * @returns unknown 200
@@ -5122,10 +6615,63 @@ declare class PostService {
5122
6615
  */
5123
6616
  postCreate(data?: PostCreateData): CancelablePromise<PostCreateResponse>;
5124
6617
  }
6618
+ declare class CommentService {
6619
+ readonly httpRequest: BaseHttpRequest;
6620
+ constructor(httpRequest: BaseHttpRequest);
6621
+ /**
6622
+ * Get comment
6623
+ * @param data The data for the request.
6624
+ * @param data.id
6625
+ * @returns unknown 200
6626
+ * @throws ApiError
6627
+ */
6628
+ commentGet(data: CommentGetData): CancelablePromise<CommentGetResponse>;
6629
+ /**
6630
+ * Update comment
6631
+ * @param data The data for the request.
6632
+ * @param data.id
6633
+ * @param data.requestBody Body
6634
+ * @returns unknown 200
6635
+ * @throws ApiError
6636
+ */
6637
+ commentUpdate(data: CommentUpdateData): CancelablePromise<CommentUpdateResponse>;
6638
+ /**
6639
+ * Delete comment
6640
+ * @param data The data for the request.
6641
+ * @param data.id
6642
+ * @returns unknown 200
6643
+ * @throws ApiError
6644
+ */
6645
+ commentDelete(data: CommentDeleteData): CancelablePromise<CommentDeleteResponse>;
6646
+ /**
6647
+ * Get comment list
6648
+ * @param data The data for the request.
6649
+ * @param data.teamId
6650
+ * @param data.status
6651
+ * @param data.orderBy
6652
+ * @param data.order
6653
+ * @param data.q
6654
+ * @param data.platforms
6655
+ * @param data.offset
6656
+ * @param data.limit
6657
+ * @returns unknown 200
6658
+ * @throws ApiError
6659
+ */
6660
+ commentGetList(data: CommentGetListData): CancelablePromise<CommentGetListResponse>;
6661
+ /**
6662
+ * Create comment
6663
+ * @param data The data for the request.
6664
+ * @param data.requestBody Body
6665
+ * @returns unknown 200
6666
+ * @throws ApiError
6667
+ */
6668
+ commentCreate(data?: CommentCreateData): CancelablePromise<CommentCreateResponse>;
6669
+ }
5125
6670
 
5126
6671
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
5127
6672
  declare class Client {
5128
6673
  readonly app: AppService;
6674
+ readonly comment: CommentService;
5129
6675
  readonly organization: OrganizationService;
5130
6676
  readonly post: PostService;
5131
6677
  readonly socialAccount: SocialAccountService;
@@ -5181,4 +6727,4 @@ declare class Bundlesocial extends Client {
5181
6727
  constructor(apiKey: string, options?: OpenAPIConfig);
5182
6728
  }
5183
6729
 
5184
- export { $OpenApiTs, ApiError, AppGetHealthResponse, BaseHttpRequest, Bundlesocial, CancelError, CancelablePromise, OpenAPI, OpenAPIConfig, OrganizationGetOrganizationResponse, PostCreateData, PostCreateResponse, PostDeleteData, PostDeleteResponse, PostGetData, PostGetListData, PostGetListResponse, PostGetResponse, PostUpdateData, PostUpdateResponse, SocialAccountConnectData, SocialAccountConnectResponse, SocialAccountCreatePortalLinkData, SocialAccountCreatePortalLinkResponse, 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 };
6730
+ export { $OpenApiTs, ApiError, AppGetHealthResponse, BaseHttpRequest, Bundlesocial, CancelError, CancelablePromise, CommentCreateData, CommentCreateResponse, CommentDeleteData, CommentDeleteResponse, CommentGetData, CommentGetListData, CommentGetListResponse, CommentGetResponse, CommentUpdateData, CommentUpdateResponse, OpenAPI, OpenAPIConfig, OrganizationGetOrganizationResponse, PostCreateData, PostCreateResponse, PostDeleteData, PostDeleteResponse, PostGetData, PostGetListData, PostGetListResponse, PostGetResponse, PostUpdateData, PostUpdateResponse, SocialAccountConnectData, SocialAccountConnectResponse, SocialAccountCreatePortalLinkData, SocialAccountCreatePortalLinkResponse, 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 };