bundlesocial 2.15.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -81,7 +81,6 @@ type OrganizationGetOrganizationResponse = {
81
81
  promotionCodeId?: string | null;
82
82
  name?: string | null;
83
83
  avatarUrl?: string | null;
84
- apiAccess?: boolean;
85
84
  ref?: string | null;
86
85
  dailyPostLimit?: {
87
86
  TWITTER?: number;
@@ -97,6 +96,8 @@ type OrganizationGetOrganizationResponse = {
97
96
  SLACK?: number;
98
97
  MASTODON?: number;
99
98
  } | null;
99
+ apiAccess?: boolean;
100
+ analyticsDisabled?: boolean;
100
101
  createdAt: string | null;
101
102
  updatedAt: string | null;
102
103
  deletedAt?: string | null;
@@ -248,7 +249,6 @@ type TeamGetTeamResponse = {
248
249
  promotionCodeId?: string | null;
249
250
  name?: string | null;
250
251
  avatarUrl?: string | null;
251
- apiAccess?: boolean;
252
252
  ref?: string | null;
253
253
  dailyPostLimit?: {
254
254
  TWITTER?: number;
@@ -264,6 +264,8 @@ type TeamGetTeamResponse = {
264
264
  SLACK?: number;
265
265
  MASTODON?: number;
266
266
  } | null;
267
+ apiAccess?: boolean;
268
+ analyticsDisabled?: boolean;
267
269
  createdAt: string | null;
268
270
  updatedAt: string | null;
269
271
  deletedAt?: string | null;
@@ -406,7 +408,6 @@ type TeamGetListResponse = {
406
408
  promotionCodeId?: string | null;
407
409
  name?: string | null;
408
410
  avatarUrl?: string | null;
409
- apiAccess?: boolean;
410
411
  ref?: string | null;
411
412
  dailyPostLimit?: {
412
413
  TWITTER?: number;
@@ -422,6 +423,8 @@ type TeamGetListResponse = {
422
423
  SLACK?: number;
423
424
  MASTODON?: number;
424
425
  } | null;
426
+ apiAccess?: boolean;
427
+ analyticsDisabled?: boolean;
425
428
  createdAt: string | null;
426
429
  updatedAt: string | null;
427
430
  deletedAt?: string | null;
@@ -865,7 +868,7 @@ type UploadInitLargeUploadData = {
865
868
  requestBody?: {
866
869
  teamId?: string | null;
867
870
  fileName: string;
868
- mimeType: string;
871
+ mimeType: 'image/jpg' | 'image/jpeg' | 'image/png' | 'video/mp4';
869
872
  };
870
873
  };
871
874
  type UploadInitLargeUploadResponse = {
@@ -2931,86 +2934,11 @@ type PostCreateResponse = {
2931
2934
  updatedAt: string | null;
2932
2935
  deletedAt?: string | null;
2933
2936
  };
2934
- type AnalyticsGetProfileAnalyticsData = {
2935
- platformType: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'REDDIT' | 'PINTEREST' | 'MASTODON';
2936
- teamId: string;
2937
- };
2938
- type AnalyticsGetProfileAnalyticsResponse = Array<{
2939
- id: string;
2940
- socialAccountId: string;
2941
- impressions: number;
2942
- impressionsUnique: number;
2943
- views: number;
2944
- viewsUnique: number;
2945
- likes: number;
2946
- comments: number;
2947
- postCount: number;
2948
- followers: number;
2949
- following: number;
2950
- raw?: unknown;
2951
- createdAt: string | null;
2952
- updatedAt: string | null;
2953
- deletedAt?: string | null;
2954
- }>;
2955
- type AnalyticsGetProfilePostsData = {
2937
+ type AnalyticsGetSocialAccountAnalyticsData = {
2956
2938
  platformType: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'REDDIT' | 'PINTEREST' | 'MASTODON';
2957
2939
  teamId: string;
2958
2940
  };
2959
- type AnalyticsGetProfilePostsResponse = Array<{
2960
- id: string;
2961
- socialAccountId: string;
2962
- postId?: string | null;
2963
- externalId?: string | null;
2964
- title?: string | null;
2965
- description?: string | null;
2966
- smallThumbnail?: string | null;
2967
- thumbnail?: string | null;
2968
- permalink?: string | null;
2969
- subreddit?: string | null;
2970
- publishedAt?: string | null;
2971
- type: 'POST' | 'REEL' | 'STORY' | 'VIDEO' | 'IMAGE';
2972
- init: boolean;
2973
- createdAt: string | null;
2974
- updatedAt: string | null;
2975
- deletedAt?: string | null;
2976
- }>;
2977
- type AnalyticsGetProfilePostData = {
2978
- id: string;
2979
- };
2980
- type AnalyticsGetProfilePostResponse = {
2981
- id: string;
2982
- socialAccountId: string;
2983
- postId?: string | null;
2984
- externalId?: string | null;
2985
- title?: string | null;
2986
- description?: string | null;
2987
- smallThumbnail?: string | null;
2988
- thumbnail?: string | null;
2989
- permalink?: string | null;
2990
- subreddit?: string | null;
2991
- publishedAt?: string | null;
2992
- type: 'POST' | 'REEL' | 'STORY' | 'VIDEO' | 'IMAGE';
2993
- init: boolean;
2994
- createdAt: string | null;
2995
- updatedAt: string | null;
2996
- deletedAt?: string | null;
2997
- analytics: Array<{
2998
- id: string;
2999
- profilePostId: string;
3000
- impressions: number;
3001
- impressionsUnique: number;
3002
- views: number;
3003
- viewsUnique: number;
3004
- likes: number;
3005
- dislikes: number;
3006
- comments: number;
3007
- shares: number;
3008
- saves: number;
3009
- raw?: unknown;
3010
- createdAt: string | null;
3011
- updatedAt: string | null;
3012
- deletedAt?: string | null;
3013
- }>;
2941
+ type AnalyticsGetSocialAccountAnalyticsResponse = {
3014
2942
  socialAccount: {
3015
2943
  id: string;
3016
2944
  type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
@@ -3036,7 +2964,29 @@ type AnalyticsGetProfilePostResponse = {
3036
2964
  updatedAt: string | null;
3037
2965
  deletedAt?: string | null;
3038
2966
  };
3039
- post?: {
2967
+ items: Array<{
2968
+ id: string;
2969
+ socialAccountId: string;
2970
+ impressions: number;
2971
+ impressionsUnique: number;
2972
+ views: number;
2973
+ viewsUnique: number;
2974
+ likes: number;
2975
+ comments: number;
2976
+ postCount: number;
2977
+ followers: number;
2978
+ following: number;
2979
+ createdAt: string | null;
2980
+ updatedAt: string | null;
2981
+ deletedAt?: string | null;
2982
+ }>;
2983
+ };
2984
+ type AnalyticsGetPostAnalyticsData = {
2985
+ platformType: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'REDDIT' | 'PINTEREST' | 'MASTODON';
2986
+ postId: string;
2987
+ };
2988
+ type AnalyticsGetPostAnalyticsResponse = {
2989
+ post: {
3040
2990
  id: string;
3041
2991
  teamId: string;
3042
2992
  organizationId?: string | null;
@@ -3327,233 +3277,418 @@ type AnalyticsGetProfilePostResponse = {
3327
3277
  createdAt: string | null;
3328
3278
  updatedAt: string | null;
3329
3279
  deletedAt?: string | null;
3330
- profilePosts: Array<{
3331
- id: string;
3332
- socialAccountId: string;
3333
- postId?: string | null;
3334
- externalId?: string | null;
3335
- title?: string | null;
3336
- description?: string | null;
3337
- smallThumbnail?: string | null;
3338
- thumbnail?: string | null;
3339
- permalink?: string | null;
3340
- subreddit?: string | null;
3341
- publishedAt?: string | null;
3342
- type: 'POST' | 'REEL' | 'STORY' | 'VIDEO' | 'IMAGE';
3343
- init: boolean;
3344
- createdAt: string | null;
3345
- updatedAt: string | null;
3346
- deletedAt?: string | null;
3347
- socialAccount: {
3348
- id: string;
3349
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
3350
- teamId: string;
3351
- username?: string | null;
3352
- displayName?: string | null;
3353
- externalId?: string | null;
3354
- userUsername?: string | null;
3355
- userDisplayName?: string | null;
3356
- userId?: string | null;
3357
- channels?: Array<{
3358
- id: string;
3359
- name?: string | null;
3360
- username?: string | null;
3361
- webhook?: {
3362
- id?: string | null;
3363
- name?: string | null;
3364
- avatar?: string | null;
3365
- url?: string | null;
3366
- } | null;
3367
- }> | null;
3368
- createdAt: string | null;
3369
- updatedAt: string | null;
3370
- deletedAt?: string | null;
3371
- };
3372
- }>;
3373
- } | null;
3374
- };
3375
- type CommentGetData = {
3376
- id: string;
3280
+ };
3281
+ items: Array<{
3282
+ id: string;
3283
+ profilePostId: string;
3284
+ impressions: number;
3285
+ impressionsUnique: number;
3286
+ views: number;
3287
+ viewsUnique: number;
3288
+ likes: number;
3289
+ dislikes: number;
3290
+ comments: number;
3291
+ shares: number;
3292
+ saves: number;
3293
+ raw?: unknown;
3294
+ createdAt: string | null;
3295
+ updatedAt: string | null;
3296
+ deletedAt?: string | null;
3297
+ }>;
3377
3298
  };
3378
- type CommentGetResponse = {
3379
- id: string;
3299
+ type AnalyticsGetSocialAccountAnalyticsRawData = {
3300
+ platformType: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'REDDIT' | 'PINTEREST' | 'MASTODON';
3380
3301
  teamId: string;
3381
- organizationId?: string | null;
3382
- internalPostId: string;
3383
- internalParentCommentId?: string | null;
3384
- title: string;
3385
- postDate: string | null;
3386
- postedDate?: string | null;
3387
- status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
3388
- data: {
3389
- FACEBOOK?: {
3390
- text?: string | null;
3391
- } | null;
3392
- INSTAGRAM?: {
3393
- text?: string | null;
3394
- } | null;
3395
- THREADS?: {
3396
- text?: string | null;
3397
- } | null;
3398
- TIKTOK?: {
3399
- text?: string | null;
3400
- } | null;
3401
- LINKEDIN?: {
3402
- text?: string | null;
3403
- } | null;
3404
- YOUTUBE?: {
3405
- text?: string | null;
3406
- } | null;
3407
- REDDIT?: {
3408
- text?: string | null;
3409
- } | null;
3410
- MASTODON?: {
3411
- text?: string | null;
3412
- } | null;
3413
- DISCORD?: {
3414
- text?: string | null;
3415
- } | null;
3416
- SLACK?: {
3417
- text?: string | null;
3418
- } | null;
3419
- };
3420
- error?: string | null;
3421
- errors?: {
3422
- FACEBOOK?: string | null;
3423
- INSTAGRAM?: string | null;
3424
- TIKTOK?: string | null;
3425
- LINKEDIN?: string | null;
3426
- REDDIT?: string | null;
3427
- YOUTUBE?: string | null;
3428
- MASTODON?: string | null;
3429
- THREADS?: string | null;
3430
- DISCORD?: string | null;
3431
- SLACK?: string | null;
3432
- } | null;
3433
- externalData?: {
3434
- FACEBOOK?: {
3435
- id?: string | null;
3436
- permalink?: string | null;
3437
- } | null;
3438
- INSTAGRAM?: {
3439
- id?: string | null;
3440
- permalink?: string | null;
3441
- } | null;
3442
- TIKTOK?: {
3443
- id?: string | null;
3444
- permalink?: string | null;
3445
- } | null;
3446
- LINKEDIN?: {
3447
- id?: string | null;
3448
- commentUrn?: string | null;
3449
- permalink?: string | null;
3450
- } | null;
3451
- REDDIT?: {
3452
- id?: string | null;
3453
- permalink?: string | null;
3454
- } | null;
3455
- YOUTUBE?: {
3456
- id?: string | null;
3457
- permalink?: string | null;
3458
- } | null;
3459
- MASTODON?: {
3460
- id?: string | null;
3461
- permalink?: string | null;
3462
- } | null;
3463
- THREADS?: {
3464
- id?: string | null;
3465
- permalink?: string | null;
3466
- } | null;
3467
- DISCORD?: {
3468
- id?: string | null;
3469
- permalink?: string | null;
3470
- } | null;
3471
- SLACK?: {
3472
- id?: string | null;
3473
- permalink?: string | null;
3474
- } | null;
3475
- } | null;
3476
- createdAt: string | null;
3477
- updatedAt: string | null;
3478
- deletedAt?: string | null;
3479
3302
  };
3480
- type CommentUpdateData = {
3481
- id: string;
3482
- /**
3483
- * Body
3484
- */
3485
- requestBody?: {
3486
- title?: string;
3487
- internalPostId?: string;
3488
- internalParentCommentId?: string | null;
3489
- postDate?: string;
3490
- status?: 'DRAFT' | 'SCHEDULED';
3491
- socialAccountTypes?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'LINKEDIN' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
3492
- data?: {
3493
- FACEBOOK?: {
3494
- text?: string | null;
3495
- } | null;
3496
- INSTAGRAM?: {
3497
- text?: string | null;
3303
+ type AnalyticsGetSocialAccountAnalyticsRawResponse = {
3304
+ socialAccount: {
3305
+ id: string;
3306
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
3307
+ teamId: string;
3308
+ username?: string | null;
3309
+ displayName?: string | null;
3310
+ externalId?: string | null;
3311
+ userUsername?: string | null;
3312
+ userDisplayName?: string | null;
3313
+ userId?: string | null;
3314
+ channels?: Array<{
3315
+ id: string;
3316
+ name?: string | null;
3317
+ username?: string | null;
3318
+ webhook?: {
3319
+ id?: string | null;
3320
+ name?: string | null;
3321
+ avatar?: string | null;
3322
+ url?: string | null;
3323
+ } | null;
3324
+ }> | null;
3325
+ createdAt: string | null;
3326
+ updatedAt: string | null;
3327
+ deletedAt?: string | null;
3328
+ };
3329
+ items: Array<{
3330
+ id: string;
3331
+ socialAccountId?: string | null;
3332
+ analyticsId?: string | null;
3333
+ raw?: unknown;
3334
+ createdAt: string | null;
3335
+ updatedAt: string | null;
3336
+ deletedAt?: string | null;
3337
+ }>;
3338
+ };
3339
+ type AnalyticsGetPostAnalyticsRawData = {
3340
+ platformType: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'REDDIT' | 'PINTEREST' | 'MASTODON';
3341
+ postId: string;
3342
+ };
3343
+ type AnalyticsGetPostAnalyticsRawResponse = {
3344
+ post: {
3345
+ id: string;
3346
+ teamId: string;
3347
+ organizationId?: string | null;
3348
+ title: string;
3349
+ postDate: string | null;
3350
+ postedDate?: string | null;
3351
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING' | 'REVIEW';
3352
+ data: {
3353
+ TWITTER?: {
3354
+ text?: string | null;
3355
+ uploadIds?: Array<(string)> | null;
3356
+ } | null;
3357
+ PINTEREST?: {
3358
+ text?: string | null;
3359
+ description?: string | null;
3360
+ boardName: string;
3361
+ uploadIds?: Array<(string)> | null;
3362
+ /**
3363
+ * The URL to image uploaded on bundle.social.
3364
+ */
3365
+ thumbnail?: string | null;
3366
+ /**
3367
+ * The URL to which the Pin will link to.
3368
+ */
3369
+ link?: string | null;
3370
+ /**
3371
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
3372
+ */
3373
+ altText?: string | null;
3374
+ /**
3375
+ * A note about the Pin. This is not visible to the public.
3376
+ */
3377
+ note?: string | null;
3378
+ /**
3379
+ * The dominant color of the image. This is used to display the image before it's loaded.
3380
+ */
3381
+ dominantColor?: string | null;
3382
+ } | null;
3383
+ FACEBOOK?: {
3384
+ type?: 'POST' | 'REEL' | 'STORY';
3385
+ text?: string | null;
3386
+ uploadIds?: Array<(string)> | null;
3387
+ /**
3388
+ * The URL to which the post will link to. Only available for type POST.
3389
+ */
3390
+ link?: string | null;
3391
+ /**
3392
+ * The URL to image uploaded on bundle.social.
3393
+ */
3394
+ thumbnail?: string | null;
3395
+ } | null;
3396
+ INSTAGRAM?: {
3397
+ type?: 'POST' | 'REEL' | 'STORY';
3398
+ text?: string | null;
3399
+ uploadIds?: Array<(string)> | null;
3400
+ /**
3401
+ * Choose a frame of the published video as the cover photo in ms
3402
+ */
3403
+ thumbnailOffset?: number | null;
3404
+ /**
3405
+ * The URL to image uploaded on bundle.social.
3406
+ */
3407
+ thumbnail?: string | null;
3408
+ /**
3409
+ * For Reels only.When true, indicates that the reel can appear in both the Feed and Reels tabs.When false, indicates the reel can only appear in the Reels tab.
3410
+ */
3411
+ shareToFeed?: boolean | null;
3412
+ collaborators?: Array<(string)> | null;
3413
+ tagged?: Array<{
3414
+ username: string;
3415
+ x: number;
3416
+ y: number;
3417
+ }> | null;
3498
3418
  } | null;
3499
3419
  THREADS?: {
3500
3420
  text?: string | null;
3421
+ uploadIds?: Array<(string)> | null;
3501
3422
  } | null;
3502
3423
  TIKTOK?: {
3424
+ type?: 'VIDEO' | 'IMAGE';
3503
3425
  text?: string | null;
3426
+ uploadIds?: Array<(string)> | null;
3427
+ /**
3428
+ * The URL to image uploaded on bundle.social.
3429
+ */
3430
+ thumbnail?: string | null;
3431
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
3432
+ /**
3433
+ * Set to true if the video is a paid partnership to promote a third-party business.
3434
+ */
3435
+ isBrandContent?: boolean | null;
3436
+ /**
3437
+ * Set to true if this video is promoting the creator's own business.
3438
+ */
3439
+ isOrganicBrandContent?: boolean | null;
3440
+ /**
3441
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
3442
+ */
3443
+ disableComments?: boolean | null;
3444
+ /**
3445
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
3446
+ */
3447
+ disableDuet?: boolean | null;
3448
+ /**
3449
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
3450
+ */
3451
+ disableStitch?: boolean | null;
3452
+ /**
3453
+ * Choose a frame of the published video as the cover photo in ms
3454
+ */
3455
+ thumbnailOffset?: number | null;
3456
+ /**
3457
+ * Set to true if this video is AI generated.
3458
+ */
3459
+ isAiGenerated?: boolean | null;
3504
3460
  } | null;
3505
3461
  LINKEDIN?: {
3506
- text?: string | null;
3462
+ text: string;
3463
+ uploadIds?: Array<(string)> | null;
3464
+ /**
3465
+ * The URL to image uploaded on bundle.social.
3466
+ */
3467
+ thumbnail?: string | null;
3468
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
3469
+ /**
3470
+ * Set to true if the post shouldn't be displayed in the main feed.
3471
+ */
3472
+ hideFromFeed?: boolean | null;
3473
+ /**
3474
+ * Set to true if the post is not allowed to be reshared.
3475
+ */
3476
+ disableReshare?: boolean | null;
3507
3477
  } | null;
3508
3478
  YOUTUBE?: {
3479
+ type?: 'VIDEO' | 'SHORT';
3480
+ uploadIds?: Array<(string)> | null;
3509
3481
  text?: string | null;
3482
+ description?: string | null;
3483
+ /**
3484
+ * The URL to image uploaded on bundle.social.
3485
+ */
3486
+ thumbnail?: string | null;
3487
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
3488
+ /**
3489
+ * Set to true if the video is made for kids.
3490
+ */
3491
+ madeForKids?: boolean | null;
3492
+ /**
3493
+ * Set to true if video contains AI generated content
3494
+ */
3495
+ containsSyntheticMedia?: boolean | null;
3496
+ /**
3497
+ * Set to true if video has paid product placement
3498
+ */
3499
+ hasPaidProductPlacement?: boolean | null;
3510
3500
  } | null;
3511
3501
  REDDIT?: {
3512
- text?: string | null;
3513
- } | null;
3514
- MASTODON?: {
3515
- text?: string | null;
3502
+ /**
3503
+ * Subreddit name. Example: r/subredditName or u/username
3504
+ */
3505
+ sr: string;
3506
+ text: string;
3507
+ description?: string | null;
3508
+ uploadIds?: Array<(string)> | null;
3509
+ /**
3510
+ * The URL to which the post will link to.
3511
+ */
3512
+ link?: string | null;
3513
+ /**
3514
+ * Set to true if the post is NSFW.
3515
+ */
3516
+ nsfw?: boolean | null;
3516
3517
  } | null;
3517
3518
  DISCORD?: {
3519
+ channelId: string;
3518
3520
  text?: string | null;
3521
+ uploadIds?: Array<(string)> | null;
3522
+ /**
3523
+ * The username to display as the author of the message.
3524
+ */
3525
+ username?: string | null;
3526
+ /**
3527
+ * Avatar url to display as the author of the message.
3528
+ */
3529
+ avatarUrl?: string | null;
3519
3530
  } | null;
3520
3531
  SLACK?: {
3532
+ channelId: string;
3533
+ text?: string | null;
3534
+ uploadIds?: Array<(string)> | null;
3535
+ /**
3536
+ * The username to display as the author of the message.
3537
+ */
3538
+ username?: string | null;
3539
+ /**
3540
+ * Avatar url to display as the author of the message.
3541
+ */
3542
+ avatarUrl?: string | null;
3543
+ } | null;
3544
+ MASTODON?: {
3521
3545
  text?: string | null;
3546
+ uploadIds?: Array<(string)> | null;
3547
+ /**
3548
+ * The URL to image uploaded on bundle.social.
3549
+ */
3550
+ thumbnail?: string | null;
3551
+ privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
3552
+ spoiler?: string | null;
3522
3553
  } | null;
3523
3554
  };
3524
- };
3525
- };
3526
- type CommentUpdateResponse = {
3527
- id: string;
3528
- teamId: string;
3529
- organizationId?: string | null;
3530
- internalPostId: string;
3531
- internalParentCommentId?: string | null;
3532
- title: string;
3533
- postDate: string | null;
3534
- postedDate?: string | null;
3535
- status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
3536
- data: {
3537
- FACEBOOK?: {
3538
- text?: string | null;
3539
- } | null;
3540
- INSTAGRAM?: {
3541
- text?: string | null;
3542
- } | null;
3543
- THREADS?: {
3544
- text?: string | null;
3545
- } | null;
3546
- TIKTOK?: {
3547
- text?: string | null;
3548
- } | null;
3549
- LINKEDIN?: {
3550
- text?: string | null;
3551
- } | null;
3552
- YOUTUBE?: {
3553
- text?: string | null;
3555
+ error?: string | null;
3556
+ errors?: {
3557
+ TWITTER?: string | null;
3558
+ PINTEREST?: string | null;
3559
+ FACEBOOK?: string | null;
3560
+ INSTAGRAM?: string | null;
3561
+ TIKTOK?: string | null;
3562
+ LINKEDIN?: string | null;
3563
+ REDDIT?: string | null;
3564
+ DISCORD?: string | null;
3565
+ SLACK?: string | null;
3566
+ YOUTUBE?: string | null;
3567
+ MASTODON?: string | null;
3568
+ THREADS?: string | null;
3554
3569
  } | null;
3555
- REDDIT?: {
3556
- text?: string | null;
3570
+ externalData?: {
3571
+ TWITTER?: {
3572
+ id?: string | null;
3573
+ permalink?: string | null;
3574
+ } | null;
3575
+ PINTEREST?: {
3576
+ id?: string | null;
3577
+ permalink?: string | null;
3578
+ thumbnail?: string | null;
3579
+ } | null;
3580
+ FACEBOOK?: {
3581
+ id?: string | null;
3582
+ postId?: string | null;
3583
+ videoId?: string | null;
3584
+ permalink?: string | null;
3585
+ thumbnail?: string;
3586
+ } | null;
3587
+ INSTAGRAM?: {
3588
+ id?: string | null;
3589
+ permalink?: string | null;
3590
+ thumbnail?: string;
3591
+ } | null;
3592
+ TIKTOK?: {
3593
+ id?: string | null;
3594
+ permalink?: string | null;
3595
+ } | null;
3596
+ LINKEDIN?: {
3597
+ id?: string | null;
3598
+ activity?: string | null;
3599
+ permalink?: string | null;
3600
+ thumbnail?: string;
3601
+ } | null;
3602
+ REDDIT?: {
3603
+ id?: string | null;
3604
+ permalink?: string | null;
3605
+ subreddit_name?: string | null;
3606
+ } | null;
3607
+ DISCORD?: {
3608
+ id?: string | null;
3609
+ permalink?: string | null;
3610
+ channelId?: string | null;
3611
+ } | null;
3612
+ SLACK?: {
3613
+ id?: string | null;
3614
+ permalink?: string | null;
3615
+ channelId?: string | null;
3616
+ } | null;
3617
+ YOUTUBE?: {
3618
+ id?: string | null;
3619
+ permalink?: string | null;
3620
+ thumbnail?: string | null;
3621
+ } | null;
3622
+ MASTODON?: {
3623
+ id?: string | null;
3624
+ permalink?: string | null;
3625
+ thumbnail?: string | null;
3626
+ } | null;
3627
+ THREADS?: {
3628
+ id?: string | null;
3629
+ permalink?: string | null;
3630
+ } | null;
3631
+ } | null;
3632
+ createdAt: string | null;
3633
+ updatedAt: string | null;
3634
+ deletedAt?: string | null;
3635
+ };
3636
+ items: Array<{
3637
+ id: string;
3638
+ profilePostId?: string | null;
3639
+ analyticsId?: string | null;
3640
+ raw?: unknown;
3641
+ createdAt: string | null;
3642
+ updatedAt: string | null;
3643
+ deletedAt?: string | null;
3644
+ }>;
3645
+ };
3646
+ type AnalyticsGetProfileAnalyticsResponse = string;
3647
+ type AnalyticsGetProfilePostsResponse = string;
3648
+ type AnalyticsGetProfilePostData = {
3649
+ id: string;
3650
+ };
3651
+ type AnalyticsGetProfilePostResponse = string;
3652
+ type AnalyticsGetProfilePostByPostIdData = {
3653
+ id: string;
3654
+ };
3655
+ type AnalyticsGetProfilePostByPostIdResponse = string;
3656
+ type AnalyticsGetRawSocialAccountAnalyticsResponse = string;
3657
+ type AnalyticsGetRawPostsAnalyticsResponse = string;
3658
+ type CommentGetData = {
3659
+ id: string;
3660
+ };
3661
+ type CommentGetResponse = {
3662
+ id: string;
3663
+ teamId: string;
3664
+ organizationId?: string | null;
3665
+ internalPostId: string;
3666
+ internalParentCommentId?: string | null;
3667
+ title: string;
3668
+ postDate: string | null;
3669
+ postedDate?: string | null;
3670
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
3671
+ data: {
3672
+ FACEBOOK?: {
3673
+ text?: string | null;
3674
+ } | null;
3675
+ INSTAGRAM?: {
3676
+ text?: string | null;
3677
+ } | null;
3678
+ THREADS?: {
3679
+ text?: string | null;
3680
+ } | null;
3681
+ TIKTOK?: {
3682
+ text?: string | null;
3683
+ } | null;
3684
+ LINKEDIN?: {
3685
+ text?: string | null;
3686
+ } | null;
3687
+ YOUTUBE?: {
3688
+ text?: string | null;
3689
+ } | null;
3690
+ REDDIT?: {
3691
+ text?: string | null;
3557
3692
  } | null;
3558
3693
  MASTODON?: {
3559
3694
  text?: string | null;
@@ -3625,10 +3760,53 @@ type CommentUpdateResponse = {
3625
3760
  updatedAt: string | null;
3626
3761
  deletedAt?: string | null;
3627
3762
  };
3628
- type CommentDeleteData = {
3763
+ type CommentUpdateData = {
3629
3764
  id: string;
3765
+ /**
3766
+ * Body
3767
+ */
3768
+ requestBody?: {
3769
+ title?: string;
3770
+ internalPostId?: string;
3771
+ internalParentCommentId?: string | null;
3772
+ postDate?: string;
3773
+ status?: 'DRAFT' | 'SCHEDULED';
3774
+ socialAccountTypes?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'LINKEDIN' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
3775
+ data?: {
3776
+ FACEBOOK?: {
3777
+ text?: string | null;
3778
+ } | null;
3779
+ INSTAGRAM?: {
3780
+ text?: string | null;
3781
+ } | null;
3782
+ THREADS?: {
3783
+ text?: string | null;
3784
+ } | null;
3785
+ TIKTOK?: {
3786
+ text?: string | null;
3787
+ } | null;
3788
+ LINKEDIN?: {
3789
+ text?: string | null;
3790
+ } | null;
3791
+ YOUTUBE?: {
3792
+ text?: string | null;
3793
+ } | null;
3794
+ REDDIT?: {
3795
+ text?: string | null;
3796
+ } | null;
3797
+ MASTODON?: {
3798
+ text?: string | null;
3799
+ } | null;
3800
+ DISCORD?: {
3801
+ text?: string | null;
3802
+ } | null;
3803
+ SLACK?: {
3804
+ text?: string | null;
3805
+ } | null;
3806
+ };
3807
+ };
3630
3808
  };
3631
- type CommentDeleteResponse = {
3809
+ type CommentUpdateResponse = {
3632
3810
  id: string;
3633
3811
  teamId: string;
3634
3812
  organizationId?: string | null;
@@ -3730,89 +3908,194 @@ type CommentDeleteResponse = {
3730
3908
  updatedAt: string | null;
3731
3909
  deletedAt?: string | null;
3732
3910
  };
3733
- type CommentGetListData = {
3734
- limit?: number | null;
3735
- offset?: number | null;
3736
- order?: 'ASC' | 'DESC';
3737
- orderBy?: 'createdAt' | 'updatedAt' | 'deletedAt';
3738
- platforms?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'LINKEDIN' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
3739
- q?: string;
3740
- status?: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
3741
- teamId: string;
3911
+ type CommentDeleteData = {
3912
+ id: string;
3742
3913
  };
3743
- type CommentGetListResponse = {
3744
- items: Array<{
3745
- id: string;
3746
- teamId: string;
3747
- organizationId?: string | null;
3748
- internalPostId: string;
3749
- internalParentCommentId?: string | null;
3750
- title: string;
3751
- postDate: string | null;
3752
- postedDate?: string | null;
3753
- status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
3754
- data: {
3755
- FACEBOOK?: {
3756
- text?: string | null;
3757
- } | null;
3758
- INSTAGRAM?: {
3759
- text?: string | null;
3760
- } | null;
3761
- THREADS?: {
3762
- text?: string | null;
3763
- } | null;
3764
- TIKTOK?: {
3765
- text?: string | null;
3766
- } | null;
3767
- LINKEDIN?: {
3768
- text?: string | null;
3769
- } | null;
3770
- YOUTUBE?: {
3771
- text?: string | null;
3772
- } | null;
3773
- REDDIT?: {
3774
- text?: string | null;
3775
- } | null;
3776
- MASTODON?: {
3777
- text?: string | null;
3778
- } | null;
3779
- DISCORD?: {
3780
- text?: string | null;
3781
- } | null;
3782
- SLACK?: {
3783
- text?: string | null;
3784
- } | null;
3785
- };
3786
- error?: string | null;
3787
- errors?: {
3788
- FACEBOOK?: string | null;
3789
- INSTAGRAM?: string | null;
3790
- TIKTOK?: string | null;
3791
- LINKEDIN?: string | null;
3792
- REDDIT?: string | null;
3793
- YOUTUBE?: string | null;
3794
- MASTODON?: string | null;
3795
- THREADS?: string | null;
3796
- DISCORD?: string | null;
3797
- SLACK?: string | null;
3914
+ type CommentDeleteResponse = {
3915
+ id: string;
3916
+ teamId: string;
3917
+ organizationId?: string | null;
3918
+ internalPostId: string;
3919
+ internalParentCommentId?: string | null;
3920
+ title: string;
3921
+ postDate: string | null;
3922
+ postedDate?: string | null;
3923
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
3924
+ data: {
3925
+ FACEBOOK?: {
3926
+ text?: string | null;
3798
3927
  } | null;
3799
- externalData?: {
3800
- FACEBOOK?: {
3801
- id?: string | null;
3802
- permalink?: string | null;
3803
- } | null;
3804
- INSTAGRAM?: {
3805
- id?: string | null;
3806
- permalink?: string | null;
3807
- } | null;
3808
- TIKTOK?: {
3809
- id?: string | null;
3810
- permalink?: string | null;
3811
- } | null;
3812
- LINKEDIN?: {
3813
- id?: string | null;
3814
- commentUrn?: string | null;
3815
- permalink?: string | null;
3928
+ INSTAGRAM?: {
3929
+ text?: string | null;
3930
+ } | null;
3931
+ THREADS?: {
3932
+ text?: string | null;
3933
+ } | null;
3934
+ TIKTOK?: {
3935
+ text?: string | null;
3936
+ } | null;
3937
+ LINKEDIN?: {
3938
+ text?: string | null;
3939
+ } | null;
3940
+ YOUTUBE?: {
3941
+ text?: string | null;
3942
+ } | null;
3943
+ REDDIT?: {
3944
+ text?: string | null;
3945
+ } | null;
3946
+ MASTODON?: {
3947
+ text?: string | null;
3948
+ } | null;
3949
+ DISCORD?: {
3950
+ text?: string | null;
3951
+ } | null;
3952
+ SLACK?: {
3953
+ text?: string | null;
3954
+ } | null;
3955
+ };
3956
+ error?: string | null;
3957
+ errors?: {
3958
+ FACEBOOK?: string | null;
3959
+ INSTAGRAM?: string | null;
3960
+ TIKTOK?: string | null;
3961
+ LINKEDIN?: string | null;
3962
+ REDDIT?: string | null;
3963
+ YOUTUBE?: string | null;
3964
+ MASTODON?: string | null;
3965
+ THREADS?: string | null;
3966
+ DISCORD?: string | null;
3967
+ SLACK?: string | null;
3968
+ } | null;
3969
+ externalData?: {
3970
+ FACEBOOK?: {
3971
+ id?: string | null;
3972
+ permalink?: string | null;
3973
+ } | null;
3974
+ INSTAGRAM?: {
3975
+ id?: string | null;
3976
+ permalink?: string | null;
3977
+ } | null;
3978
+ TIKTOK?: {
3979
+ id?: string | null;
3980
+ permalink?: string | null;
3981
+ } | null;
3982
+ LINKEDIN?: {
3983
+ id?: string | null;
3984
+ commentUrn?: string | null;
3985
+ permalink?: string | null;
3986
+ } | null;
3987
+ REDDIT?: {
3988
+ id?: string | null;
3989
+ permalink?: string | null;
3990
+ } | null;
3991
+ YOUTUBE?: {
3992
+ id?: string | null;
3993
+ permalink?: string | null;
3994
+ } | null;
3995
+ MASTODON?: {
3996
+ id?: string | null;
3997
+ permalink?: string | null;
3998
+ } | null;
3999
+ THREADS?: {
4000
+ id?: string | null;
4001
+ permalink?: string | null;
4002
+ } | null;
4003
+ DISCORD?: {
4004
+ id?: string | null;
4005
+ permalink?: string | null;
4006
+ } | null;
4007
+ SLACK?: {
4008
+ id?: string | null;
4009
+ permalink?: string | null;
4010
+ } | null;
4011
+ } | null;
4012
+ createdAt: string | null;
4013
+ updatedAt: string | null;
4014
+ deletedAt?: string | null;
4015
+ };
4016
+ type CommentGetListData = {
4017
+ limit?: number | null;
4018
+ offset?: number | null;
4019
+ order?: 'ASC' | 'DESC';
4020
+ orderBy?: 'createdAt' | 'updatedAt' | 'deletedAt';
4021
+ platforms?: Array<('TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'THREADS' | 'LINKEDIN' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK')>;
4022
+ q?: string;
4023
+ status?: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4024
+ teamId: string;
4025
+ };
4026
+ type CommentGetListResponse = {
4027
+ items: Array<{
4028
+ id: string;
4029
+ teamId: string;
4030
+ organizationId?: string | null;
4031
+ internalPostId: string;
4032
+ internalParentCommentId?: string | null;
4033
+ title: string;
4034
+ postDate: string | null;
4035
+ postedDate?: string | null;
4036
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING';
4037
+ data: {
4038
+ FACEBOOK?: {
4039
+ text?: string | null;
4040
+ } | null;
4041
+ INSTAGRAM?: {
4042
+ text?: string | null;
4043
+ } | null;
4044
+ THREADS?: {
4045
+ text?: string | null;
4046
+ } | null;
4047
+ TIKTOK?: {
4048
+ text?: string | null;
4049
+ } | null;
4050
+ LINKEDIN?: {
4051
+ text?: string | null;
4052
+ } | null;
4053
+ YOUTUBE?: {
4054
+ text?: string | null;
4055
+ } | null;
4056
+ REDDIT?: {
4057
+ text?: string | null;
4058
+ } | null;
4059
+ MASTODON?: {
4060
+ text?: string | null;
4061
+ } | null;
4062
+ DISCORD?: {
4063
+ text?: string | null;
4064
+ } | null;
4065
+ SLACK?: {
4066
+ text?: string | null;
4067
+ } | null;
4068
+ };
4069
+ error?: string | null;
4070
+ errors?: {
4071
+ FACEBOOK?: string | null;
4072
+ INSTAGRAM?: string | null;
4073
+ TIKTOK?: string | null;
4074
+ LINKEDIN?: string | null;
4075
+ REDDIT?: string | null;
4076
+ YOUTUBE?: string | null;
4077
+ MASTODON?: string | null;
4078
+ THREADS?: string | null;
4079
+ DISCORD?: string | null;
4080
+ SLACK?: string | null;
4081
+ } | null;
4082
+ externalData?: {
4083
+ FACEBOOK?: {
4084
+ id?: string | null;
4085
+ permalink?: string | null;
4086
+ } | null;
4087
+ INSTAGRAM?: {
4088
+ id?: string | null;
4089
+ permalink?: string | null;
4090
+ } | null;
4091
+ TIKTOK?: {
4092
+ id?: string | null;
4093
+ permalink?: string | null;
4094
+ } | null;
4095
+ LINKEDIN?: {
4096
+ id?: string | null;
4097
+ commentUrn?: string | null;
4098
+ permalink?: string | null;
3816
4099
  } | null;
3817
4100
  REDDIT?: {
3818
4101
  id?: string | null;
@@ -4059,7 +4342,6 @@ type $OpenApiTs = {
4059
4342
  promotionCodeId?: string | null;
4060
4343
  name?: string | null;
4061
4344
  avatarUrl?: string | null;
4062
- apiAccess?: boolean;
4063
4345
  ref?: string | null;
4064
4346
  dailyPostLimit?: {
4065
4347
  TWITTER?: number;
@@ -4075,6 +4357,8 @@ type $OpenApiTs = {
4075
4357
  SLACK?: number;
4076
4358
  MASTODON?: number;
4077
4359
  } | null;
4360
+ apiAccess?: boolean;
4361
+ analyticsDisabled?: boolean;
4078
4362
  createdAt: string | null;
4079
4363
  updatedAt: string | null;
4080
4364
  deletedAt?: string | null;
@@ -4273,7 +4557,6 @@ type $OpenApiTs = {
4273
4557
  promotionCodeId?: string | null;
4274
4558
  name?: string | null;
4275
4559
  avatarUrl?: string | null;
4276
- apiAccess?: boolean;
4277
4560
  ref?: string | null;
4278
4561
  dailyPostLimit?: {
4279
4562
  TWITTER?: number;
@@ -4289,6 +4572,8 @@ type $OpenApiTs = {
4289
4572
  SLACK?: number;
4290
4573
  MASTODON?: number;
4291
4574
  } | null;
4575
+ apiAccess?: boolean;
4576
+ analyticsDisabled?: boolean;
4292
4577
  createdAt: string | null;
4293
4578
  updatedAt: string | null;
4294
4579
  deletedAt?: string | null;
@@ -4560,7 +4845,6 @@ type $OpenApiTs = {
4560
4845
  promotionCodeId?: string | null;
4561
4846
  name?: string | null;
4562
4847
  avatarUrl?: string | null;
4563
- apiAccess?: boolean;
4564
4848
  ref?: string | null;
4565
4849
  dailyPostLimit?: {
4566
4850
  TWITTER?: number;
@@ -4576,6 +4860,8 @@ type $OpenApiTs = {
4576
4860
  SLACK?: number;
4577
4861
  MASTODON?: number;
4578
4862
  } | null;
4863
+ apiAccess?: boolean;
4864
+ analyticsDisabled?: boolean;
4579
4865
  createdAt: string | null;
4580
4866
  updatedAt: string | null;
4581
4867
  deletedAt?: string | null;
@@ -7492,98 +7778,503 @@ type $OpenApiTs = {
7492
7778
  };
7493
7779
  };
7494
7780
  };
7495
- '/api/v1/analytics/profile': {
7781
+ '/api/v1/analytics/social-account': {
7782
+ get: {
7783
+ req: AnalyticsGetSocialAccountAnalyticsData;
7784
+ res: {
7785
+ /**
7786
+ * 200
7787
+ */
7788
+ 200: {
7789
+ socialAccount: {
7790
+ id: string;
7791
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
7792
+ teamId: string;
7793
+ username?: string | null;
7794
+ displayName?: string | null;
7795
+ externalId?: string | null;
7796
+ userUsername?: string | null;
7797
+ userDisplayName?: string | null;
7798
+ userId?: string | null;
7799
+ channels?: Array<{
7800
+ id: string;
7801
+ name?: string | null;
7802
+ username?: string | null;
7803
+ webhook?: {
7804
+ id?: string | null;
7805
+ name?: string | null;
7806
+ avatar?: string | null;
7807
+ url?: string | null;
7808
+ } | null;
7809
+ }> | null;
7810
+ createdAt: string | null;
7811
+ updatedAt: string | null;
7812
+ deletedAt?: string | null;
7813
+ };
7814
+ items: Array<{
7815
+ id: string;
7816
+ socialAccountId: string;
7817
+ impressions: number;
7818
+ impressionsUnique: number;
7819
+ views: number;
7820
+ viewsUnique: number;
7821
+ likes: number;
7822
+ comments: number;
7823
+ postCount: number;
7824
+ followers: number;
7825
+ following: number;
7826
+ createdAt: string | null;
7827
+ updatedAt: string | null;
7828
+ deletedAt?: string | null;
7829
+ }>;
7830
+ };
7831
+ /**
7832
+ * 400
7833
+ */
7834
+ 400: {
7835
+ message: string;
7836
+ issues?: Array<{
7837
+ message: string;
7838
+ path?: Array<(string | number)> | null;
7839
+ }> | null;
7840
+ };
7841
+ /**
7842
+ * 401
7843
+ */
7844
+ 401: {
7845
+ message: string;
7846
+ };
7847
+ /**
7848
+ * 403
7849
+ */
7850
+ 403: {
7851
+ message: string;
7852
+ };
7853
+ /**
7854
+ * 404
7855
+ */
7856
+ 404: {
7857
+ message: string;
7858
+ };
7859
+ /**
7860
+ * 429
7861
+ */
7862
+ 429: {
7863
+ message: string;
7864
+ };
7865
+ /**
7866
+ * 500
7867
+ */
7868
+ 500: {
7869
+ message: string;
7870
+ };
7871
+ };
7872
+ };
7873
+ };
7874
+ '/api/v1/analytics/post': {
7875
+ get: {
7876
+ req: AnalyticsGetPostAnalyticsData;
7877
+ res: {
7878
+ /**
7879
+ * 200
7880
+ */
7881
+ 200: {
7882
+ post: {
7883
+ id: string;
7884
+ teamId: string;
7885
+ organizationId?: string | null;
7886
+ title: string;
7887
+ postDate: string | null;
7888
+ postedDate?: string | null;
7889
+ status: 'DRAFT' | 'SCHEDULED' | 'POSTED' | 'ERROR' | 'DELETED' | 'PROCESSING' | 'REVIEW';
7890
+ data: {
7891
+ TWITTER?: {
7892
+ text?: string | null;
7893
+ uploadIds?: Array<(string)> | null;
7894
+ } | null;
7895
+ PINTEREST?: {
7896
+ text?: string | null;
7897
+ description?: string | null;
7898
+ boardName: string;
7899
+ uploadIds?: Array<(string)> | null;
7900
+ /**
7901
+ * The URL to image uploaded on bundle.social.
7902
+ */
7903
+ thumbnail?: string | null;
7904
+ /**
7905
+ * The URL to which the Pin will link to.
7906
+ */
7907
+ link?: string | null;
7908
+ /**
7909
+ * The alt text for the image. This is used by screen readers and when the image can't be loaded.
7910
+ */
7911
+ altText?: string | null;
7912
+ /**
7913
+ * A note about the Pin. This is not visible to the public.
7914
+ */
7915
+ note?: string | null;
7916
+ /**
7917
+ * The dominant color of the image. This is used to display the image before it's loaded.
7918
+ */
7919
+ dominantColor?: string | null;
7920
+ } | null;
7921
+ FACEBOOK?: {
7922
+ type?: 'POST' | 'REEL' | 'STORY';
7923
+ text?: string | null;
7924
+ uploadIds?: Array<(string)> | null;
7925
+ /**
7926
+ * The URL to which the post will link to. Only available for type POST.
7927
+ */
7928
+ link?: string | null;
7929
+ /**
7930
+ * The URL to image uploaded on bundle.social.
7931
+ */
7932
+ thumbnail?: string | null;
7933
+ } | null;
7934
+ INSTAGRAM?: {
7935
+ type?: 'POST' | 'REEL' | 'STORY';
7936
+ text?: string | null;
7937
+ uploadIds?: Array<(string)> | null;
7938
+ /**
7939
+ * Choose a frame of the published video as the cover photo in ms
7940
+ */
7941
+ thumbnailOffset?: number | null;
7942
+ /**
7943
+ * The URL to image uploaded on bundle.social.
7944
+ */
7945
+ thumbnail?: string | null;
7946
+ /**
7947
+ * For Reels only.When true, indicates that the reel can appear in both the Feed and Reels tabs.When false, indicates the reel can only appear in the Reels tab.
7948
+ */
7949
+ shareToFeed?: boolean | null;
7950
+ collaborators?: Array<(string)> | null;
7951
+ tagged?: Array<{
7952
+ username: string;
7953
+ x: number;
7954
+ y: number;
7955
+ }> | null;
7956
+ } | null;
7957
+ THREADS?: {
7958
+ text?: string | null;
7959
+ uploadIds?: Array<(string)> | null;
7960
+ } | null;
7961
+ TIKTOK?: {
7962
+ type?: 'VIDEO' | 'IMAGE';
7963
+ text?: string | null;
7964
+ uploadIds?: Array<(string)> | null;
7965
+ /**
7966
+ * The URL to image uploaded on bundle.social.
7967
+ */
7968
+ thumbnail?: string | null;
7969
+ privacy?: 'SELF_ONLY' | 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | null;
7970
+ /**
7971
+ * Set to true if the video is a paid partnership to promote a third-party business.
7972
+ */
7973
+ isBrandContent?: boolean | null;
7974
+ /**
7975
+ * Set to true if this video is promoting the creator's own business.
7976
+ */
7977
+ isOrganicBrandContent?: boolean | null;
7978
+ /**
7979
+ * If set to true, other TikTok users will not be allowed to make comments on this post.
7980
+ */
7981
+ disableComments?: boolean | null;
7982
+ /**
7983
+ * If set to true, other TikTok users will not be allowed to make Stitches using this post.
7984
+ */
7985
+ disableDuet?: boolean | null;
7986
+ /**
7987
+ * If set to true, other TikTok users will not be allowed to make Duets using this post.
7988
+ */
7989
+ disableStitch?: boolean | null;
7990
+ /**
7991
+ * Choose a frame of the published video as the cover photo in ms
7992
+ */
7993
+ thumbnailOffset?: number | null;
7994
+ /**
7995
+ * Set to true if this video is AI generated.
7996
+ */
7997
+ isAiGenerated?: boolean | null;
7998
+ } | null;
7999
+ LINKEDIN?: {
8000
+ text: string;
8001
+ uploadIds?: Array<(string)> | null;
8002
+ /**
8003
+ * The URL to image uploaded on bundle.social.
8004
+ */
8005
+ thumbnail?: string | null;
8006
+ privacy?: 'CONNECTIONS' | 'PUBLIC' | 'LOGGED_IN' | 'CONTAINER' | null;
8007
+ /**
8008
+ * Set to true if the post shouldn't be displayed in the main feed.
8009
+ */
8010
+ hideFromFeed?: boolean | null;
8011
+ /**
8012
+ * Set to true if the post is not allowed to be reshared.
8013
+ */
8014
+ disableReshare?: boolean | null;
8015
+ } | null;
8016
+ YOUTUBE?: {
8017
+ type?: 'VIDEO' | 'SHORT';
8018
+ uploadIds?: Array<(string)> | null;
8019
+ text?: string | null;
8020
+ description?: string | null;
8021
+ /**
8022
+ * The URL to image uploaded on bundle.social.
8023
+ */
8024
+ thumbnail?: string | null;
8025
+ privacy?: 'PRIVATE' | 'PUBLIC' | 'UNLISTED' | null;
8026
+ /**
8027
+ * Set to true if the video is made for kids.
8028
+ */
8029
+ madeForKids?: boolean | null;
8030
+ /**
8031
+ * Set to true if video contains AI generated content
8032
+ */
8033
+ containsSyntheticMedia?: boolean | null;
8034
+ /**
8035
+ * Set to true if video has paid product placement
8036
+ */
8037
+ hasPaidProductPlacement?: boolean | null;
8038
+ } | null;
8039
+ REDDIT?: {
8040
+ /**
8041
+ * Subreddit name. Example: r/subredditName or u/username
8042
+ */
8043
+ sr: string;
8044
+ text: string;
8045
+ description?: string | null;
8046
+ uploadIds?: Array<(string)> | null;
8047
+ /**
8048
+ * The URL to which the post will link to.
8049
+ */
8050
+ link?: string | null;
8051
+ /**
8052
+ * Set to true if the post is NSFW.
8053
+ */
8054
+ nsfw?: boolean | null;
8055
+ } | null;
8056
+ DISCORD?: {
8057
+ channelId: string;
8058
+ text?: string | null;
8059
+ uploadIds?: Array<(string)> | null;
8060
+ /**
8061
+ * The username to display as the author of the message.
8062
+ */
8063
+ username?: string | null;
8064
+ /**
8065
+ * Avatar url to display as the author of the message.
8066
+ */
8067
+ avatarUrl?: string | null;
8068
+ } | null;
8069
+ SLACK?: {
8070
+ channelId: string;
8071
+ text?: string | null;
8072
+ uploadIds?: Array<(string)> | null;
8073
+ /**
8074
+ * The username to display as the author of the message.
8075
+ */
8076
+ username?: string | null;
8077
+ /**
8078
+ * Avatar url to display as the author of the message.
8079
+ */
8080
+ avatarUrl?: string | null;
8081
+ } | null;
8082
+ MASTODON?: {
8083
+ text?: string | null;
8084
+ uploadIds?: Array<(string)> | null;
8085
+ /**
8086
+ * The URL to image uploaded on bundle.social.
8087
+ */
8088
+ thumbnail?: string | null;
8089
+ privacy?: 'PUBLIC' | 'UNLISTED' | 'PRIVATE' | 'DIRECT' | null;
8090
+ spoiler?: string | null;
8091
+ } | null;
8092
+ };
8093
+ error?: string | null;
8094
+ errors?: {
8095
+ TWITTER?: string | null;
8096
+ PINTEREST?: string | null;
8097
+ FACEBOOK?: string | null;
8098
+ INSTAGRAM?: string | null;
8099
+ TIKTOK?: string | null;
8100
+ LINKEDIN?: string | null;
8101
+ REDDIT?: string | null;
8102
+ DISCORD?: string | null;
8103
+ SLACK?: string | null;
8104
+ YOUTUBE?: string | null;
8105
+ MASTODON?: string | null;
8106
+ THREADS?: string | null;
8107
+ } | null;
8108
+ externalData?: {
8109
+ TWITTER?: {
8110
+ id?: string | null;
8111
+ permalink?: string | null;
8112
+ } | null;
8113
+ PINTEREST?: {
8114
+ id?: string | null;
8115
+ permalink?: string | null;
8116
+ thumbnail?: string | null;
8117
+ } | null;
8118
+ FACEBOOK?: {
8119
+ id?: string | null;
8120
+ postId?: string | null;
8121
+ videoId?: string | null;
8122
+ permalink?: string | null;
8123
+ thumbnail?: string;
8124
+ } | null;
8125
+ INSTAGRAM?: {
8126
+ id?: string | null;
8127
+ permalink?: string | null;
8128
+ thumbnail?: string;
8129
+ } | null;
8130
+ TIKTOK?: {
8131
+ id?: string | null;
8132
+ permalink?: string | null;
8133
+ } | null;
8134
+ LINKEDIN?: {
8135
+ id?: string | null;
8136
+ activity?: string | null;
8137
+ permalink?: string | null;
8138
+ thumbnail?: string;
8139
+ } | null;
8140
+ REDDIT?: {
8141
+ id?: string | null;
8142
+ permalink?: string | null;
8143
+ subreddit_name?: string | null;
8144
+ } | null;
8145
+ DISCORD?: {
8146
+ id?: string | null;
8147
+ permalink?: string | null;
8148
+ channelId?: string | null;
8149
+ } | null;
8150
+ SLACK?: {
8151
+ id?: string | null;
8152
+ permalink?: string | null;
8153
+ channelId?: string | null;
8154
+ } | null;
8155
+ YOUTUBE?: {
8156
+ id?: string | null;
8157
+ permalink?: string | null;
8158
+ thumbnail?: string | null;
8159
+ } | null;
8160
+ MASTODON?: {
8161
+ id?: string | null;
8162
+ permalink?: string | null;
8163
+ thumbnail?: string | null;
8164
+ } | null;
8165
+ THREADS?: {
8166
+ id?: string | null;
8167
+ permalink?: string | null;
8168
+ } | null;
8169
+ } | null;
8170
+ createdAt: string | null;
8171
+ updatedAt: string | null;
8172
+ deletedAt?: string | null;
8173
+ };
8174
+ items: Array<{
8175
+ id: string;
8176
+ profilePostId: string;
8177
+ impressions: number;
8178
+ impressionsUnique: number;
8179
+ views: number;
8180
+ viewsUnique: number;
8181
+ likes: number;
8182
+ dislikes: number;
8183
+ comments: number;
8184
+ shares: number;
8185
+ saves: number;
8186
+ raw?: unknown;
8187
+ createdAt: string | null;
8188
+ updatedAt: string | null;
8189
+ deletedAt?: string | null;
8190
+ }>;
8191
+ };
8192
+ /**
8193
+ * 400
8194
+ */
8195
+ 400: {
8196
+ message: string;
8197
+ issues?: Array<{
8198
+ message: string;
8199
+ path?: Array<(string | number)> | null;
8200
+ }> | null;
8201
+ };
8202
+ /**
8203
+ * 401
8204
+ */
8205
+ 401: {
8206
+ message: string;
8207
+ };
8208
+ /**
8209
+ * 403
8210
+ */
8211
+ 403: {
8212
+ message: string;
8213
+ };
8214
+ /**
8215
+ * 404
8216
+ */
8217
+ 404: {
8218
+ message: string;
8219
+ };
8220
+ /**
8221
+ * 429
8222
+ */
8223
+ 429: {
8224
+ message: string;
8225
+ };
8226
+ /**
8227
+ * 500
8228
+ */
8229
+ 500: {
8230
+ message: string;
8231
+ };
8232
+ };
8233
+ };
8234
+ };
8235
+ '/api/v1/analytics/social-account/raw': {
7496
8236
  get: {
7497
- req: AnalyticsGetProfileAnalyticsData;
8237
+ req: AnalyticsGetSocialAccountAnalyticsRawData;
7498
8238
  res: {
7499
8239
  /**
7500
8240
  * 200
7501
8241
  */
7502
- 200: Array<{
7503
- id: string;
7504
- socialAccountId: string;
7505
- impressions: number;
7506
- impressionsUnique: number;
7507
- views: number;
7508
- viewsUnique: number;
7509
- likes: number;
7510
- comments: number;
7511
- postCount: number;
7512
- followers: number;
7513
- following: number;
7514
- raw?: unknown;
7515
- createdAt: string | null;
7516
- updatedAt: string | null;
7517
- deletedAt?: string | null;
7518
- }>;
7519
- /**
7520
- * 400
7521
- */
7522
- 400: {
7523
- message: string;
7524
- issues?: Array<{
7525
- message: string;
7526
- path?: Array<(string | number)> | null;
7527
- }> | null;
7528
- };
7529
- /**
7530
- * 401
7531
- */
7532
- 401: {
7533
- message: string;
7534
- };
7535
- /**
7536
- * 403
7537
- */
7538
- 403: {
7539
- message: string;
7540
- };
7541
- /**
7542
- * 404
7543
- */
7544
- 404: {
7545
- message: string;
7546
- };
7547
- /**
7548
- * 429
7549
- */
7550
- 429: {
7551
- message: string;
7552
- };
7553
- /**
7554
- * 500
7555
- */
7556
- 500: {
7557
- message: string;
8242
+ 200: {
8243
+ socialAccount: {
8244
+ id: string;
8245
+ type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
8246
+ teamId: string;
8247
+ username?: string | null;
8248
+ displayName?: string | null;
8249
+ externalId?: string | null;
8250
+ userUsername?: string | null;
8251
+ userDisplayName?: string | null;
8252
+ userId?: string | null;
8253
+ channels?: Array<{
8254
+ id: string;
8255
+ name?: string | null;
8256
+ username?: string | null;
8257
+ webhook?: {
8258
+ id?: string | null;
8259
+ name?: string | null;
8260
+ avatar?: string | null;
8261
+ url?: string | null;
8262
+ } | null;
8263
+ }> | null;
8264
+ createdAt: string | null;
8265
+ updatedAt: string | null;
8266
+ deletedAt?: string | null;
8267
+ };
8268
+ items: Array<{
8269
+ id: string;
8270
+ socialAccountId?: string | null;
8271
+ analyticsId?: string | null;
8272
+ raw?: unknown;
8273
+ createdAt: string | null;
8274
+ updatedAt: string | null;
8275
+ deletedAt?: string | null;
8276
+ }>;
7558
8277
  };
7559
- };
7560
- };
7561
- };
7562
- '/api/v1/analytics/profile-post': {
7563
- get: {
7564
- req: AnalyticsGetProfilePostsData;
7565
- res: {
7566
- /**
7567
- * 200
7568
- */
7569
- 200: Array<{
7570
- id: string;
7571
- socialAccountId: string;
7572
- postId?: string | null;
7573
- externalId?: string | null;
7574
- title?: string | null;
7575
- description?: string | null;
7576
- smallThumbnail?: string | null;
7577
- thumbnail?: string | null;
7578
- permalink?: string | null;
7579
- subreddit?: string | null;
7580
- publishedAt?: string | null;
7581
- type: 'POST' | 'REEL' | 'STORY' | 'VIDEO' | 'IMAGE';
7582
- init: boolean;
7583
- createdAt: string | null;
7584
- updatedAt: string | null;
7585
- deletedAt?: string | null;
7586
- }>;
7587
8278
  /**
7588
8279
  * 400
7589
8280
  */
@@ -7627,73 +8318,15 @@ type $OpenApiTs = {
7627
8318
  };
7628
8319
  };
7629
8320
  };
7630
- '/api/v1/analytics/profile-post/{id}': {
8321
+ '/api/v1/analytics/post/raw': {
7631
8322
  get: {
7632
- req: AnalyticsGetProfilePostData;
8323
+ req: AnalyticsGetPostAnalyticsRawData;
7633
8324
  res: {
7634
8325
  /**
7635
8326
  * 200
7636
8327
  */
7637
8328
  200: {
7638
- id: string;
7639
- socialAccountId: string;
7640
- postId?: string | null;
7641
- externalId?: string | null;
7642
- title?: string | null;
7643
- description?: string | null;
7644
- smallThumbnail?: string | null;
7645
- thumbnail?: string | null;
7646
- permalink?: string | null;
7647
- subreddit?: string | null;
7648
- publishedAt?: string | null;
7649
- type: 'POST' | 'REEL' | 'STORY' | 'VIDEO' | 'IMAGE';
7650
- init: boolean;
7651
- createdAt: string | null;
7652
- updatedAt: string | null;
7653
- deletedAt?: string | null;
7654
- analytics: Array<{
7655
- id: string;
7656
- profilePostId: string;
7657
- impressions: number;
7658
- impressionsUnique: number;
7659
- views: number;
7660
- viewsUnique: number;
7661
- likes: number;
7662
- dislikes: number;
7663
- comments: number;
7664
- shares: number;
7665
- saves: number;
7666
- raw?: unknown;
7667
- createdAt: string | null;
7668
- updatedAt: string | null;
7669
- deletedAt?: string | null;
7670
- }>;
7671
- socialAccount: {
7672
- id: string;
7673
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
7674
- teamId: string;
7675
- username?: string | null;
7676
- displayName?: string | null;
7677
- externalId?: string | null;
7678
- userUsername?: string | null;
7679
- userDisplayName?: string | null;
7680
- userId?: string | null;
7681
- channels?: Array<{
7682
- id: string;
7683
- name?: string | null;
7684
- username?: string | null;
7685
- webhook?: {
7686
- id?: string | null;
7687
- name?: string | null;
7688
- avatar?: string | null;
7689
- url?: string | null;
7690
- } | null;
7691
- }> | null;
7692
- createdAt: string | null;
7693
- updatedAt: string | null;
7694
- deletedAt?: string | null;
7695
- };
7696
- post?: {
8329
+ post: {
7697
8330
  id: string;
7698
8331
  teamId: string;
7699
8332
  organizationId?: string | null;
@@ -7984,51 +8617,319 @@ type $OpenApiTs = {
7984
8617
  createdAt: string | null;
7985
8618
  updatedAt: string | null;
7986
8619
  deletedAt?: string | null;
7987
- profilePosts: Array<{
7988
- id: string;
7989
- socialAccountId: string;
7990
- postId?: string | null;
7991
- externalId?: string | null;
7992
- title?: string | null;
7993
- description?: string | null;
7994
- smallThumbnail?: string | null;
7995
- thumbnail?: string | null;
7996
- permalink?: string | null;
7997
- subreddit?: string | null;
7998
- publishedAt?: string | null;
7999
- type: 'POST' | 'REEL' | 'STORY' | 'VIDEO' | 'IMAGE';
8000
- init: boolean;
8001
- createdAt: string | null;
8002
- updatedAt: string | null;
8003
- deletedAt?: string | null;
8004
- socialAccount: {
8005
- id: string;
8006
- type: 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK';
8007
- teamId: string;
8008
- username?: string | null;
8009
- displayName?: string | null;
8010
- externalId?: string | null;
8011
- userUsername?: string | null;
8012
- userDisplayName?: string | null;
8013
- userId?: string | null;
8014
- channels?: Array<{
8015
- id: string;
8016
- name?: string | null;
8017
- username?: string | null;
8018
- webhook?: {
8019
- id?: string | null;
8020
- name?: string | null;
8021
- avatar?: string | null;
8022
- url?: string | null;
8023
- } | null;
8024
- }> | null;
8025
- createdAt: string | null;
8026
- updatedAt: string | null;
8027
- deletedAt?: string | null;
8028
- };
8029
- }>;
8030
- } | null;
8620
+ };
8621
+ items: Array<{
8622
+ id: string;
8623
+ profilePostId?: string | null;
8624
+ analyticsId?: string | null;
8625
+ raw?: unknown;
8626
+ createdAt: string | null;
8627
+ updatedAt: string | null;
8628
+ deletedAt?: string | null;
8629
+ }>;
8630
+ };
8631
+ /**
8632
+ * 400
8633
+ */
8634
+ 400: {
8635
+ message: string;
8636
+ issues?: Array<{
8637
+ message: string;
8638
+ path?: Array<(string | number)> | null;
8639
+ }> | null;
8640
+ };
8641
+ /**
8642
+ * 401
8643
+ */
8644
+ 401: {
8645
+ message: string;
8646
+ };
8647
+ /**
8648
+ * 403
8649
+ */
8650
+ 403: {
8651
+ message: string;
8652
+ };
8653
+ /**
8654
+ * 404
8655
+ */
8656
+ 404: {
8657
+ message: string;
8658
+ };
8659
+ /**
8660
+ * 429
8661
+ */
8662
+ 429: {
8663
+ message: string;
8664
+ };
8665
+ /**
8666
+ * 500
8667
+ */
8668
+ 500: {
8669
+ message: string;
8670
+ };
8671
+ };
8672
+ };
8673
+ };
8674
+ '/api/v1/analytics/profile': {
8675
+ get: {
8676
+ res: {
8677
+ /**
8678
+ * 200
8679
+ */
8680
+ 200: string;
8681
+ /**
8682
+ * 400
8683
+ */
8684
+ 400: {
8685
+ message: string;
8686
+ issues?: Array<{
8687
+ message: string;
8688
+ path?: Array<(string | number)> | null;
8689
+ }> | null;
8690
+ };
8691
+ /**
8692
+ * 401
8693
+ */
8694
+ 401: {
8695
+ message: string;
8696
+ };
8697
+ /**
8698
+ * 403
8699
+ */
8700
+ 403: {
8701
+ message: string;
8702
+ };
8703
+ /**
8704
+ * 404
8705
+ */
8706
+ 404: {
8707
+ message: string;
8708
+ };
8709
+ /**
8710
+ * 429
8711
+ */
8712
+ 429: {
8713
+ message: string;
8714
+ };
8715
+ /**
8716
+ * 500
8717
+ */
8718
+ 500: {
8719
+ message: string;
8720
+ };
8721
+ };
8722
+ };
8723
+ };
8724
+ '/api/v1/analytics/profile-post': {
8725
+ get: {
8726
+ res: {
8727
+ /**
8728
+ * 200
8729
+ */
8730
+ 200: string;
8731
+ /**
8732
+ * 400
8733
+ */
8734
+ 400: {
8735
+ message: string;
8736
+ issues?: Array<{
8737
+ message: string;
8738
+ path?: Array<(string | number)> | null;
8739
+ }> | null;
8740
+ };
8741
+ /**
8742
+ * 401
8743
+ */
8744
+ 401: {
8745
+ message: string;
8746
+ };
8747
+ /**
8748
+ * 403
8749
+ */
8750
+ 403: {
8751
+ message: string;
8752
+ };
8753
+ /**
8754
+ * 404
8755
+ */
8756
+ 404: {
8757
+ message: string;
8758
+ };
8759
+ /**
8760
+ * 429
8761
+ */
8762
+ 429: {
8763
+ message: string;
8764
+ };
8765
+ /**
8766
+ * 500
8767
+ */
8768
+ 500: {
8769
+ message: string;
8770
+ };
8771
+ };
8772
+ };
8773
+ };
8774
+ '/api/v1/analytics/profile-post/{id}': {
8775
+ get: {
8776
+ req: AnalyticsGetProfilePostData;
8777
+ res: {
8778
+ /**
8779
+ * 200
8780
+ */
8781
+ 200: string;
8782
+ /**
8783
+ * 400
8784
+ */
8785
+ 400: {
8786
+ message: string;
8787
+ issues?: Array<{
8788
+ message: string;
8789
+ path?: Array<(string | number)> | null;
8790
+ }> | null;
8791
+ };
8792
+ /**
8793
+ * 401
8794
+ */
8795
+ 401: {
8796
+ message: string;
8797
+ };
8798
+ /**
8799
+ * 403
8800
+ */
8801
+ 403: {
8802
+ message: string;
8803
+ };
8804
+ /**
8805
+ * 404
8806
+ */
8807
+ 404: {
8808
+ message: string;
8809
+ };
8810
+ /**
8811
+ * 429
8812
+ */
8813
+ 429: {
8814
+ message: string;
8815
+ };
8816
+ /**
8817
+ * 500
8818
+ */
8819
+ 500: {
8820
+ message: string;
8821
+ };
8822
+ };
8823
+ };
8824
+ };
8825
+ '/api/v1/analytics/profile-post/post/{id}': {
8826
+ get: {
8827
+ req: AnalyticsGetProfilePostByPostIdData;
8828
+ res: {
8829
+ /**
8830
+ * 200
8831
+ */
8832
+ 200: string;
8833
+ /**
8834
+ * 400
8835
+ */
8836
+ 400: {
8837
+ message: string;
8838
+ issues?: Array<{
8839
+ message: string;
8840
+ path?: Array<(string | number)> | null;
8841
+ }> | null;
8842
+ };
8843
+ /**
8844
+ * 401
8845
+ */
8846
+ 401: {
8847
+ message: string;
8848
+ };
8849
+ /**
8850
+ * 403
8851
+ */
8852
+ 403: {
8853
+ message: string;
8854
+ };
8855
+ /**
8856
+ * 404
8857
+ */
8858
+ 404: {
8859
+ message: string;
8860
+ };
8861
+ /**
8862
+ * 429
8863
+ */
8864
+ 429: {
8865
+ message: string;
8866
+ };
8867
+ /**
8868
+ * 500
8869
+ */
8870
+ 500: {
8871
+ message: string;
8872
+ };
8873
+ };
8874
+ };
8875
+ };
8876
+ '/api/v1/analytics/raw-profile': {
8877
+ get: {
8878
+ res: {
8879
+ /**
8880
+ * 200
8881
+ */
8882
+ 200: string;
8883
+ /**
8884
+ * 400
8885
+ */
8886
+ 400: {
8887
+ message: string;
8888
+ issues?: Array<{
8889
+ message: string;
8890
+ path?: Array<(string | number)> | null;
8891
+ }> | null;
8892
+ };
8893
+ /**
8894
+ * 401
8895
+ */
8896
+ 401: {
8897
+ message: string;
8031
8898
  };
8899
+ /**
8900
+ * 403
8901
+ */
8902
+ 403: {
8903
+ message: string;
8904
+ };
8905
+ /**
8906
+ * 404
8907
+ */
8908
+ 404: {
8909
+ message: string;
8910
+ };
8911
+ /**
8912
+ * 429
8913
+ */
8914
+ 429: {
8915
+ message: string;
8916
+ };
8917
+ /**
8918
+ * 500
8919
+ */
8920
+ 500: {
8921
+ message: string;
8922
+ };
8923
+ };
8924
+ };
8925
+ };
8926
+ '/api/v1/analytics/raw-post': {
8927
+ get: {
8928
+ res: {
8929
+ /**
8930
+ * 200
8931
+ */
8932
+ 200: string;
8032
8933
  /**
8033
8934
  * 400
8034
8935
  */
@@ -9075,31 +9976,87 @@ declare class AnalyticsService {
9075
9976
  readonly httpRequest: BaseHttpRequest;
9076
9977
  constructor(httpRequest: BaseHttpRequest);
9077
9978
  /**
9078
- * Get Profile Analytics
9979
+ * Get Social Account Analytics
9079
9980
  * @param data The data for the request.
9080
9981
  * @param data.teamId
9081
9982
  * @param data.platformType
9082
9983
  * @returns unknown 200
9083
9984
  * @throws ApiError
9084
9985
  */
9085
- analyticsGetProfileAnalytics(data: AnalyticsGetProfileAnalyticsData): CancelablePromise<AnalyticsGetProfileAnalyticsResponse>;
9986
+ analyticsGetSocialAccountAnalytics(data: AnalyticsGetSocialAccountAnalyticsData): CancelablePromise<AnalyticsGetSocialAccountAnalyticsResponse>;
9987
+ /**
9988
+ * Get Post Analytics
9989
+ * @param data The data for the request.
9990
+ * @param data.postId
9991
+ * @param data.platformType
9992
+ * @returns unknown 200
9993
+ * @throws ApiError
9994
+ */
9995
+ analyticsGetPostAnalytics(data: AnalyticsGetPostAnalyticsData): CancelablePromise<AnalyticsGetPostAnalyticsResponse>;
9086
9996
  /**
9087
- * Get Profile Posts
9997
+ * Get Social Account Analytics Raw
9088
9998
  * @param data The data for the request.
9089
9999
  * @param data.teamId
9090
10000
  * @param data.platformType
9091
10001
  * @returns unknown 200
9092
10002
  * @throws ApiError
9093
10003
  */
9094
- analyticsGetProfilePosts(data: AnalyticsGetProfilePostsData): CancelablePromise<AnalyticsGetProfilePostsResponse>;
10004
+ analyticsGetSocialAccountAnalyticsRaw(data: AnalyticsGetSocialAccountAnalyticsRawData): CancelablePromise<AnalyticsGetSocialAccountAnalyticsRawResponse>;
9095
10005
  /**
9096
- * Get Profile Post
10006
+ * Get Post Analytics Raw
9097
10007
  * @param data The data for the request.
9098
- * @param data.id
10008
+ * @param data.postId
10009
+ * @param data.platformType
9099
10010
  * @returns unknown 200
9100
10011
  * @throws ApiError
9101
10012
  */
10013
+ analyticsGetPostAnalyticsRaw(data: AnalyticsGetPostAnalyticsRawData): CancelablePromise<AnalyticsGetPostAnalyticsRawResponse>;
10014
+ /**
10015
+ * @deprecated
10016
+ * Get Profile Analytics
10017
+ * @returns string 200
10018
+ * @throws ApiError
10019
+ */
10020
+ analyticsGetProfileAnalytics(): CancelablePromise<AnalyticsGetProfileAnalyticsResponse>;
10021
+ /**
10022
+ * @deprecated
10023
+ * Get Profile Post List - profile posts are basically external posts
10024
+ * @returns string 200
10025
+ * @throws ApiError
10026
+ */
10027
+ analyticsGetProfilePosts(): CancelablePromise<AnalyticsGetProfilePostsResponse>;
10028
+ /**
10029
+ * @deprecated
10030
+ * Get Profile Post By Profile Post ID - profile posts are basically external posts
10031
+ * @param data The data for the request.
10032
+ * @param data.id
10033
+ * @returns string 200
10034
+ * @throws ApiError
10035
+ */
9102
10036
  analyticsGetProfilePost(data: AnalyticsGetProfilePostData): CancelablePromise<AnalyticsGetProfilePostResponse>;
10037
+ /**
10038
+ * @deprecated
10039
+ * Get Profile Post By Post ID
10040
+ * @param data The data for the request.
10041
+ * @param data.id
10042
+ * @returns string 200
10043
+ * @throws ApiError
10044
+ */
10045
+ analyticsGetProfilePostByPostId(data: AnalyticsGetProfilePostByPostIdData): CancelablePromise<AnalyticsGetProfilePostByPostIdResponse>;
10046
+ /**
10047
+ * @deprecated
10048
+ * Get Raw Profile Analytics In Last 24 Hours
10049
+ * @returns string 200
10050
+ * @throws ApiError
10051
+ */
10052
+ analyticsGetRawSocialAccountAnalytics(): CancelablePromise<AnalyticsGetRawSocialAccountAnalyticsResponse>;
10053
+ /**
10054
+ * @deprecated
10055
+ * Get Raw Post Analytics In Last 24 Hours
10056
+ * @returns string 200
10057
+ * @throws ApiError
10058
+ */
10059
+ analyticsGetRawPostsAnalytics(): CancelablePromise<AnalyticsGetRawPostsAnalyticsResponse>;
9103
10060
  }
9104
10061
  declare class CommentService {
9105
10062
  readonly httpRequest: BaseHttpRequest;
@@ -9227,4 +10184,4 @@ declare class Bundlesocial extends Client {
9227
10184
  constructor(apiKey: string, options?: OpenAPIConfig);
9228
10185
  }
9229
10186
 
9230
- export { $OpenApiTs, AnalyticsGetProfileAnalyticsData, AnalyticsGetProfileAnalyticsResponse, AnalyticsGetProfilePostData, AnalyticsGetProfilePostResponse, AnalyticsGetProfilePostsData, AnalyticsGetProfilePostsResponse, 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, SocialAccountCopyData, SocialAccountCopyResponse, SocialAccountCreatePortalLinkData, SocialAccountCreatePortalLinkResponse, SocialAccountDisconnectData, SocialAccountDisconnectResponse, SocialAccountRefreshChannelsData, SocialAccountRefreshChannelsResponse, SocialAccountSetChannelData, SocialAccountSetChannelResponse, TeamCreateTeamData, TeamCreateTeamResponse, TeamDeleteTeamData, TeamDeleteTeamResponse, TeamGetListData, TeamGetListResponse, TeamGetTeamData, TeamGetTeamResponse, TeamUpdateTeamData, TeamUpdateTeamResponse, UploadCreateData, UploadCreateResponse, UploadDeleteData, UploadDeleteManyData, UploadDeleteManyResponse, UploadDeleteResponse, UploadFinalizeLargeUploadData, UploadFinalizeLargeUploadResponse, UploadGetData, UploadGetListData, UploadGetListResponse, UploadGetResponse, UploadInitLargeUploadData, UploadInitLargeUploadResponse, WebhookEvent, WebhookEventType, webhookEventTypes };
10187
+ export { $OpenApiTs, AnalyticsGetPostAnalyticsData, AnalyticsGetPostAnalyticsRawData, AnalyticsGetPostAnalyticsRawResponse, AnalyticsGetPostAnalyticsResponse, AnalyticsGetProfileAnalyticsResponse, AnalyticsGetProfilePostByPostIdData, AnalyticsGetProfilePostByPostIdResponse, AnalyticsGetProfilePostData, AnalyticsGetProfilePostResponse, AnalyticsGetProfilePostsResponse, AnalyticsGetRawPostsAnalyticsResponse, AnalyticsGetRawSocialAccountAnalyticsResponse, AnalyticsGetSocialAccountAnalyticsData, AnalyticsGetSocialAccountAnalyticsRawData, AnalyticsGetSocialAccountAnalyticsRawResponse, AnalyticsGetSocialAccountAnalyticsResponse, 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, SocialAccountCopyData, SocialAccountCopyResponse, SocialAccountCreatePortalLinkData, SocialAccountCreatePortalLinkResponse, SocialAccountDisconnectData, SocialAccountDisconnectResponse, SocialAccountRefreshChannelsData, SocialAccountRefreshChannelsResponse, SocialAccountSetChannelData, SocialAccountSetChannelResponse, TeamCreateTeamData, TeamCreateTeamResponse, TeamDeleteTeamData, TeamDeleteTeamResponse, TeamGetListData, TeamGetListResponse, TeamGetTeamData, TeamGetTeamResponse, TeamUpdateTeamData, TeamUpdateTeamResponse, UploadCreateData, UploadCreateResponse, UploadDeleteData, UploadDeleteManyData, UploadDeleteManyResponse, UploadDeleteResponse, UploadFinalizeLargeUploadData, UploadFinalizeLargeUploadResponse, UploadGetData, UploadGetListData, UploadGetListResponse, UploadGetResponse, UploadInitLargeUploadData, UploadInitLargeUploadResponse, WebhookEvent, WebhookEventType, webhookEventTypes };