@postpeer/node 0.8.6 → 0.9.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.cts CHANGED
@@ -360,7 +360,7 @@ type TwitterConfigurations = {
360
360
  type: 'image' | 'video' | 'gif' | 'document';
361
361
  url: string;
362
362
  /**
363
- * Thumbnail image URL for video items. Supported on YouTube regular videos (not Shorts). JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
363
+ * Thumbnail image URL for Facebook videos and YouTube regular videos (not Shorts). YouTube accepts JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
364
364
  */
365
365
  thumbnail?: string;
366
366
  }>;
@@ -563,6 +563,10 @@ type BlueskyConfigurations = {
563
563
  * Pass this object in platformSpecificData when posting to Facebook Pages.
564
564
  */
565
565
  type FacebookConfigurations = {
566
+ /**
567
+ * Set to "story" to publish a Facebook Page Story with exactly one image or video. Omit for a feed post. Stories expire after 24 hours; captions, links, and custom thumbnails are ignored. published: false is not supported for Stories.
568
+ */
569
+ contentType?: 'story';
566
570
  /**
567
571
  * When provided on a text-only post, Facebook renders a link preview card from this URL's Open Graph tags. Ignored when mediaItems are attached.
568
572
  */
@@ -572,7 +576,7 @@ type FacebookConfigurations = {
572
576
  */
573
577
  published?: boolean;
574
578
  /**
575
- * Video posts only. Public URL of an image Facebook will use as the video's cover/thumbnail. Applied as a follow-up call after publish — if the upload fails, the post still succeeds (Facebook just auto-picks a frame). Ignored when no video is attached.
579
+ * Video posts only. Optional Facebook-specific override for mediaItems[].thumbnail. Applied as a follow-up call after publish — if the upload fails, the post still succeeds (Facebook just auto-picks a frame). Ignored when no video is attached.
576
580
  */
577
581
  videoThumbnailUrl?: string;
578
582
  };
@@ -688,12 +692,12 @@ type PostPayload = {
688
692
  type: 'image' | 'video' | 'gif' | 'document';
689
693
  url: string;
690
694
  /**
691
- * Thumbnail image URL for video items. Supported on YouTube regular videos (not Shorts). JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
695
+ * Thumbnail image URL for Facebook videos and YouTube regular videos (not Shorts). YouTube accepts JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
692
696
  */
693
697
  thumbnail?: string;
694
698
  }>;
695
699
  /**
696
- * Target platform accounts to publish to
700
+ * Target platform accounts. Drafts may be saved without an account.
697
701
  */
698
702
  platforms: Array<{
699
703
  platform: 'twitter';
@@ -807,9 +811,13 @@ type PostPayload = {
807
811
  platformSpecificData?: GoogleBusinessConfigurations;
808
812
  }>;
809
813
  /**
810
- * Publish immediately. Required when scheduledFor is omitted.
814
+ * Publish immediately. scheduledFor takes precedence when provided.
811
815
  */
812
816
  publishNow?: boolean;
817
+ /**
818
+ * Save without publishing or scheduling. Cannot be combined with publishNow=true or scheduledFor.
819
+ */
820
+ saveAsDraft?: boolean;
813
821
  /**
814
822
  * ISO 8601 datetime to schedule the post for future publishing
815
823
  */
@@ -823,6 +831,40 @@ type PostPayload = {
823
831
  */
824
832
  idempotencyKey?: string;
825
833
  };
834
+ type CreatePostResponse = {
835
+ /**
836
+ * false only when every platform failed
837
+ */
838
+ success: boolean;
839
+ status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
840
+ /**
841
+ * ISO 8601 datetime the post is scheduled for (only present for scheduled posts)
842
+ */
843
+ scheduledFor?: string;
844
+ /**
845
+ * id of the saved Post document
846
+ */
847
+ postId: string;
848
+ platforms: Array<{
849
+ platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
850
+ /**
851
+ * For publish-now timeout fallback, true means the platform target was accepted and final status is still pending.
852
+ */
853
+ success: boolean;
854
+ /**
855
+ * Direct URL to the published post
856
+ */
857
+ platformPostUrl?: string;
858
+ /**
859
+ * Error message when success is false
860
+ */
861
+ error?: string;
862
+ /**
863
+ * Warning message when the post published but a non-critical follow-up action failed
864
+ */
865
+ warningMessage?: string;
866
+ }>;
867
+ };
826
868
  type GetV1HealthData = {
827
869
  body?: never;
828
870
  path?: never;
@@ -1264,6 +1306,10 @@ type GetV1ConnectIntegrationsData = {
1264
1306
  * Number of integrations to skip
1265
1307
  */
1266
1308
  offset?: number;
1309
+ /**
1310
+ * Sort by connection date or account name (username, then displayName, then platform user ID).
1311
+ */
1312
+ sortBy?: 'createdAt' | 'name';
1267
1313
  sort?: SortOrder;
1268
1314
  };
1269
1315
  url: '/v1/connect/integrations';
@@ -1505,6 +1551,10 @@ type GetV1ConnectIntegrationsByIdResponses = {
1505
1551
  reason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | 'insights_permission_missing' | unknown;
1506
1552
  };
1507
1553
  updatedAt: string;
1554
+ /**
1555
+ * Whether this specific integration can import recent posts published outside PostPeer.
1556
+ */
1557
+ supportsExternalPostSync: boolean;
1508
1558
  };
1509
1559
  };
1510
1560
  };
@@ -1720,6 +1770,12 @@ type DeleteV1ProfilesByIdErrors = {
1720
1770
  404: {
1721
1771
  error: string;
1722
1772
  };
1773
+ /**
1774
+ * Default Response
1775
+ */
1776
+ 409: {
1777
+ error: string;
1778
+ };
1723
1779
  };
1724
1780
  type DeleteV1ProfilesByIdError = DeleteV1ProfilesByIdErrors[keyof DeleteV1ProfilesByIdErrors];
1725
1781
  type DeleteV1ProfilesByIdResponses = {
@@ -2431,6 +2487,10 @@ type GetV1PostsData = {
2431
2487
  body?: never;
2432
2488
  path?: never;
2433
2489
  query?: {
2490
+ /**
2491
+ * Filter posts by where they were originally published.
2492
+ */
2493
+ origin?: 'all' | 'postpeer' | 'external';
2434
2494
  status?: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
2435
2495
  /**
2436
2496
  * Filter by platform (repeatable — OR logic)
@@ -2464,7 +2524,10 @@ type GetV1PostsData = {
2464
2524
  * Number of posts to skip
2465
2525
  */
2466
2526
  offset?: number;
2467
- sort?: SortOrder;
2527
+ /**
2528
+ * Sort direction by createdAt
2529
+ */
2530
+ sort?: 'asc' | 'desc';
2468
2531
  };
2469
2532
  url: '/v1/posts/';
2470
2533
  };
@@ -2493,6 +2556,15 @@ type GetV1PostsResponses = {
2493
2556
  * MongoDB ObjectId of the Post document
2494
2557
  */
2495
2558
  postId: string;
2559
+ origin: 'postpeer' | 'external';
2560
+ isExternal: boolean;
2561
+ externalSource?: {
2562
+ accountId: string;
2563
+ platformPostId: string;
2564
+ mediaType: 'image' | 'video' | 'reel' | 'carousel';
2565
+ thumbnailUrl: string | null;
2566
+ lastSyncedAt: string;
2567
+ };
2496
2568
  content: string;
2497
2569
  status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
2498
2570
  /**
@@ -2546,12 +2618,12 @@ type PostV1PostsData = {
2546
2618
  type: 'image' | 'video' | 'gif' | 'document';
2547
2619
  url: string;
2548
2620
  /**
2549
- * Thumbnail image URL for video items. Supported on YouTube regular videos (not Shorts). JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
2621
+ * Thumbnail image URL for Facebook videos and YouTube regular videos (not Shorts). YouTube accepts JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
2550
2622
  */
2551
2623
  thumbnail?: string;
2552
2624
  }>;
2553
2625
  /**
2554
- * Target platform accounts to publish to
2626
+ * Target platform accounts. Drafts may be saved without an account.
2555
2627
  */
2556
2628
  platforms: Array<{
2557
2629
  platform: 'twitter';
@@ -2665,9 +2737,13 @@ type PostV1PostsData = {
2665
2737
  platformSpecificData?: GoogleBusinessConfigurations;
2666
2738
  }>;
2667
2739
  /**
2668
- * Publish immediately. Required when scheduledFor is omitted.
2740
+ * Publish immediately. scheduledFor takes precedence when provided.
2669
2741
  */
2670
2742
  publishNow?: boolean;
2743
+ /**
2744
+ * Save without publishing or scheduling. Cannot be combined with publishNow=true or scheduledFor.
2745
+ */
2746
+ saveAsDraft?: boolean;
2671
2747
  /**
2672
2748
  * ISO 8601 datetime to schedule the post for future publishing
2673
2749
  */
@@ -2720,40 +2796,11 @@ type PostV1PostsResponses = {
2720
2796
  /**
2721
2797
  * Default Response
2722
2798
  */
2723
- 202: {
2724
- /**
2725
- * false only when every platform failed
2726
- */
2727
- success: boolean;
2728
- status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
2729
- /**
2730
- * ISO 8601 datetime the post is scheduled for (only present for scheduled posts)
2731
- */
2732
- scheduledFor?: string;
2733
- /**
2734
- * id of the saved Post document
2735
- */
2736
- postId: string;
2737
- platforms: Array<{
2738
- platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
2739
- /**
2740
- * For publish-now timeout fallback, true means the platform target was accepted and final status is still pending.
2741
- */
2742
- success: boolean;
2743
- /**
2744
- * Direct URL to the published post
2745
- */
2746
- platformPostUrl?: string;
2747
- /**
2748
- * Error message when success is false
2749
- */
2750
- error?: string;
2751
- /**
2752
- * Warning message when the post published but a non-critical follow-up action failed
2753
- */
2754
- warningMessage?: string;
2755
- }>;
2756
- };
2799
+ 200: CreatePostResponse;
2800
+ /**
2801
+ * Default Response
2802
+ */
2803
+ 202: CreatePostResponse;
2757
2804
  };
2758
2805
  type PostV1PostsResponse = PostV1PostsResponses[keyof PostV1PostsResponses];
2759
2806
  type PostV1PostsByPostIdRetryData = {
@@ -2818,40 +2865,7 @@ type PostV1PostsByPostIdRetryResponses = {
2818
2865
  /**
2819
2866
  * Default Response
2820
2867
  */
2821
- 202: {
2822
- /**
2823
- * false only when every platform failed
2824
- */
2825
- success: boolean;
2826
- status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
2827
- /**
2828
- * ISO 8601 datetime the post is scheduled for (only present for scheduled posts)
2829
- */
2830
- scheduledFor?: string;
2831
- /**
2832
- * id of the saved Post document
2833
- */
2834
- postId: string;
2835
- platforms: Array<{
2836
- platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
2837
- /**
2838
- * For publish-now timeout fallback, true means the platform target was accepted and final status is still pending.
2839
- */
2840
- success: boolean;
2841
- /**
2842
- * Direct URL to the published post
2843
- */
2844
- platformPostUrl?: string;
2845
- /**
2846
- * Error message when success is false
2847
- */
2848
- error?: string;
2849
- /**
2850
- * Warning message when the post published but a non-critical follow-up action failed
2851
- */
2852
- warningMessage?: string;
2853
- }>;
2854
- };
2868
+ 202: CreatePostResponse;
2855
2869
  };
2856
2870
  type PostV1PostsByPostIdRetryResponse = PostV1PostsByPostIdRetryResponses[keyof PostV1PostsByPostIdRetryResponses];
2857
2871
  type DeleteV1PostsByPostIdData = {
@@ -2945,6 +2959,15 @@ type GetV1PostsByPostIdResponses = {
2945
2959
  * MongoDB ObjectId of the Post document
2946
2960
  */
2947
2961
  postId: string;
2962
+ origin: 'postpeer' | 'external';
2963
+ isExternal: boolean;
2964
+ externalSource?: {
2965
+ accountId: string;
2966
+ platformPostId: string;
2967
+ mediaType: 'image' | 'video' | 'reel' | 'carousel';
2968
+ thumbnailUrl: string | null;
2969
+ lastSyncedAt: string;
2970
+ };
2948
2971
  content: string;
2949
2972
  status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
2950
2973
  /**
@@ -2985,122 +3008,85 @@ type GetV1PostsByPostIdResponses = {
2985
3008
  };
2986
3009
  };
2987
3010
  type GetV1PostsByPostIdResponse = GetV1PostsByPostIdResponses[keyof GetV1PostsByPostIdResponses];
2988
- type GetV1PostsScheduledData = {
2989
- body?: never;
2990
- path?: never;
2991
- query?: {
2992
- /**
2993
- * Page size (max 100)
2994
- */
2995
- limit?: number;
3011
+ type PutV1PostsByPostIdData = {
3012
+ body: PostPayload;
3013
+ path: {
2996
3014
  /**
2997
- * Number of scheduled posts to skip
3015
+ * Post identifier
2998
3016
  */
2999
- offset?: number;
3000
- sort?: SortOrder;
3017
+ postId: string;
3001
3018
  };
3002
- url: '/v1/posts/scheduled/';
3019
+ query?: never;
3020
+ url: '/v1/posts/{postId}';
3003
3021
  };
3004
- type GetV1PostsScheduledResponses = {
3022
+ type PutV1PostsByPostIdErrors = {
3005
3023
  /**
3006
3024
  * Default Response
3007
3025
  */
3008
- 200: {
3009
- success: boolean;
3010
- /**
3011
- * Total matched scheduled posts across all pages
3012
- */
3013
- total: number;
3014
- posts: Array<{
3015
- /**
3016
- * MongoDB ObjectId of the Post document
3017
- */
3018
- postId: string;
3019
- /**
3020
- * Post text body
3021
- */
3022
- content: string;
3023
- /**
3024
- * ISO 8601 scheduled datetime
3025
- */
3026
- scheduledFor: string | null;
3027
- /**
3028
- * IANA timezone for the scheduled time
3029
- */
3030
- timezone: string;
3031
- /**
3032
- * Media attachments
3033
- */
3034
- mediaItems?: Array<{
3035
- type: 'image' | 'video' | 'gif' | 'document';
3036
- url: string;
3037
- /**
3038
- * Thumbnail image URL for video items. Supported on YouTube regular videos (not Shorts). JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
3039
- */
3040
- thumbnail?: string;
3041
- }>;
3042
- platforms: Array<{
3043
- platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
3044
- status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
3045
- }>;
3046
- createdAt: string;
3047
- }>;
3048
- };
3049
- };
3050
- type GetV1PostsScheduledResponse = GetV1PostsScheduledResponses[keyof GetV1PostsScheduledResponses];
3051
- type DeleteV1PostsScheduledByPostIdData = {
3052
- body?: never;
3053
- path: {
3054
- postId: string;
3055
- };
3056
- query?: never;
3057
- url: '/v1/posts/scheduled/{postId}';
3058
- };
3059
- type DeleteV1PostsScheduledByPostIdErrors = {
3026
+ 400: ErrorResponse;
3060
3027
  /**
3061
3028
  * Default Response
3062
3029
  */
3063
- 404: {
3064
- success: boolean;
3065
- message: string;
3066
- };
3030
+ 402: ErrorResponse;
3067
3031
  /**
3068
3032
  * Default Response
3069
3033
  */
3070
- 409: {
3071
- success: boolean;
3072
- message: string;
3073
- };
3034
+ 403: ErrorResponse;
3035
+ /**
3036
+ * Default Response
3037
+ */
3038
+ 404: ErrorResponse;
3039
+ /**
3040
+ * Default Response
3041
+ */
3042
+ 409: ErrorResponse;
3043
+ /**
3044
+ * Default Response
3045
+ */
3046
+ 503: ErrorResponse;
3074
3047
  };
3075
- type DeleteV1PostsScheduledByPostIdError = DeleteV1PostsScheduledByPostIdErrors[keyof DeleteV1PostsScheduledByPostIdErrors];
3076
- type DeleteV1PostsScheduledByPostIdResponses = {
3048
+ type PutV1PostsByPostIdError = PutV1PostsByPostIdErrors[keyof PutV1PostsByPostIdErrors];
3049
+ type PutV1PostsByPostIdResponses = {
3077
3050
  /**
3078
3051
  * Default Response
3079
3052
  */
3080
- 200: {
3081
- success: boolean;
3082
- message: string;
3083
- };
3053
+ 200: CreatePostResponse;
3054
+ /**
3055
+ * Default Response
3056
+ */
3057
+ 202: CreatePostResponse;
3084
3058
  };
3085
- type DeleteV1PostsScheduledByPostIdResponse = DeleteV1PostsScheduledByPostIdResponses[keyof DeleteV1PostsScheduledByPostIdResponses];
3086
- type PatchV1PostsScheduledByPostIdData = {
3059
+ type PutV1PostsByPostIdResponse = PutV1PostsByPostIdResponses[keyof PutV1PostsByPostIdResponses];
3060
+ type PostV1PostsSyncExternalData = {
3061
+ /**
3062
+ * Provide at most one of url or postId.
3063
+ */
3087
3064
  body: {
3088
3065
  /**
3089
- * New ISO 8601 datetime to schedule the post
3066
+ * Connected PostPeer integration ID whose recent posts to sync.
3090
3067
  */
3091
- scheduledFor: string;
3068
+ accountId: string;
3092
3069
  /**
3093
- * IANA timezone
3070
+ * Platform post URL to locate among the account's recent posts.
3094
3071
  */
3095
- timezone?: string;
3096
- };
3097
- path: {
3098
- postId: string;
3072
+ url?: string;
3073
+ /**
3074
+ * Native platform post ID to locate.
3075
+ */
3076
+ postId?: string;
3099
3077
  };
3078
+ path?: never;
3100
3079
  query?: never;
3101
- url: '/v1/posts/scheduled/{postId}';
3080
+ url: '/v1/posts/sync-external';
3102
3081
  };
3103
- type PatchV1PostsScheduledByPostIdErrors = {
3082
+ type PostV1PostsSyncExternalErrors = {
3083
+ /**
3084
+ * Default Response
3085
+ */
3086
+ 400: {
3087
+ success: boolean;
3088
+ message: string;
3089
+ };
3104
3090
  /**
3105
3091
  * Default Response
3106
3092
  */
@@ -3118,56 +3104,322 @@ type PatchV1PostsScheduledByPostIdErrors = {
3118
3104
  /**
3119
3105
  * Default Response
3120
3106
  */
3121
- 503: {
3107
+ 502: {
3122
3108
  success: boolean;
3123
3109
  message: string;
3124
3110
  };
3125
- };
3126
- type PatchV1PostsScheduledByPostIdError = PatchV1PostsScheduledByPostIdErrors[keyof PatchV1PostsScheduledByPostIdErrors];
3127
- type PatchV1PostsScheduledByPostIdResponses = {
3128
3111
  /**
3129
3112
  * Default Response
3130
3113
  */
3131
- 200: {
3114
+ 503: {
3132
3115
  success: boolean;
3133
3116
  message: string;
3134
- scheduledFor: string;
3135
3117
  };
3136
3118
  };
3137
- type PatchV1PostsScheduledByPostIdResponse = PatchV1PostsScheduledByPostIdResponses[keyof PatchV1PostsScheduledByPostIdResponses];
3138
- type PutV1PostsScheduledByPostIdData = {
3139
- body: {
3140
- /**
3141
- * New post text body
3142
- */
3143
- content: string;
3144
- /**
3145
- * Replacement media attachments (images, videos, GIFs)
3146
- */
3147
- mediaItems?: Array<{
3148
- type: 'image' | 'video' | 'gif' | 'document';
3149
- url: string;
3119
+ type PostV1PostsSyncExternalError = PostV1PostsSyncExternalErrors[keyof PostV1PostsSyncExternalErrors];
3120
+ type PostV1PostsSyncExternalResponses = {
3121
+ /**
3122
+ * Default Response
3123
+ */
3124
+ 200: {
3125
+ success: true;
3126
+ synced: {
3150
3127
  /**
3151
- * Thumbnail image URL for video items. Supported on YouTube regular videos (not Shorts). JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
3128
+ * Number of recent posts returned by the platform, capped at 50.
3152
3129
  */
3153
- thumbnail?: string;
3154
- }>;
3155
- /**
3156
- * Replacement target platform accounts to publish to
3157
- */
3158
- platforms: Array<{
3159
- platform: 'twitter';
3130
+ postsFound: number;
3160
3131
  /**
3161
- * Integration._id — find yours via GET /connect/integrations
3132
+ * Number of posts inserted or refreshed in PostPeer.
3162
3133
  */
3163
- accountId: string;
3134
+ postsSynced: number;
3164
3135
  /**
3165
- * Optional per-platform text override. Use when you want to change the text for this platform because different platforms talk differently. When omitted, the top-level `content` is used.
3136
+ * True when a recent or currently-running account sync prevented another live platform fetch.
3166
3137
  */
3167
- content?: string;
3168
- platformSpecificData?: TwitterConfigurations;
3169
- } | {
3170
- platform: 'instagram';
3138
+ skipped: boolean;
3139
+ };
3140
+ found?: boolean;
3141
+ post?: {
3142
+ /**
3143
+ * Stable PostPeer post ID.
3144
+ */
3145
+ postId: string;
3146
+ /**
3147
+ * Where the post was originally published.
3148
+ */
3149
+ origin: 'postpeer' | 'external';
3150
+ /**
3151
+ * True when the post was originally published outside PostPeer.
3152
+ */
3153
+ isExternal: boolean;
3154
+ platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
3155
+ accountId: string;
3156
+ platformPostId: string;
3157
+ platformPostUrl: string | null;
3158
+ content: string;
3159
+ publishedAt: string | null;
3160
+ mediaType: 'image' | 'video' | 'reel' | 'carousel';
3161
+ thumbnailUrl: string | null;
3162
+ analytics: {
3163
+ impressions: number | null;
3164
+ reach: number | null;
3165
+ likes: number | null;
3166
+ comments: number | null;
3167
+ shares: number | null;
3168
+ saves: number | null;
3169
+ clicks: number | null;
3170
+ views: number | null;
3171
+ /**
3172
+ * Engagement rate (0-1). null when the platform does not report engagement.
3173
+ */
3174
+ engagementRate: number | null;
3175
+ /**
3176
+ * Instagram Reels only. Average watch time per view, in seconds. null for other media/platforms.
3177
+ */
3178
+ avgWatchTime?: number | null;
3179
+ /**
3180
+ * Instagram Reels only. Total watch time in seconds, including replays. Meta flags this metric as in development, so it may be null.
3181
+ */
3182
+ totalWatchTime?: number | null;
3183
+ /**
3184
+ * Instagram Reels only. Reels skip rate as reported by Meta (reels_skip_rate, added Dec 2025) — the share of views that skipped past the reel. null for other media/platforms or when Meta has no value yet.
3185
+ */
3186
+ skipRate?: number | null;
3187
+ };
3188
+ } | unknown;
3189
+ posts?: Array<{
3190
+ /**
3191
+ * Stable PostPeer post ID.
3192
+ */
3193
+ postId: string;
3194
+ /**
3195
+ * Where the post was originally published.
3196
+ */
3197
+ origin: 'postpeer' | 'external';
3198
+ /**
3199
+ * True when the post was originally published outside PostPeer.
3200
+ */
3201
+ isExternal: boolean;
3202
+ platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
3203
+ accountId: string;
3204
+ platformPostId: string;
3205
+ platformPostUrl: string | null;
3206
+ content: string;
3207
+ publishedAt: string | null;
3208
+ mediaType: 'image' | 'video' | 'reel' | 'carousel';
3209
+ thumbnailUrl: string | null;
3210
+ analytics: {
3211
+ impressions: number | null;
3212
+ reach: number | null;
3213
+ likes: number | null;
3214
+ comments: number | null;
3215
+ shares: number | null;
3216
+ saves: number | null;
3217
+ clicks: number | null;
3218
+ views: number | null;
3219
+ /**
3220
+ * Engagement rate (0-1). null when the platform does not report engagement.
3221
+ */
3222
+ engagementRate: number | null;
3223
+ /**
3224
+ * Instagram Reels only. Average watch time per view, in seconds. null for other media/platforms.
3225
+ */
3226
+ avgWatchTime?: number | null;
3227
+ /**
3228
+ * Instagram Reels only. Total watch time in seconds, including replays. Meta flags this metric as in development, so it may be null.
3229
+ */
3230
+ totalWatchTime?: number | null;
3231
+ /**
3232
+ * Instagram Reels only. Reels skip rate as reported by Meta (reels_skip_rate, added Dec 2025) — the share of views that skipped past the reel. null for other media/platforms or when Meta has no value yet.
3233
+ */
3234
+ skipRate?: number | null;
3235
+ };
3236
+ }>;
3237
+ };
3238
+ };
3239
+ type PostV1PostsSyncExternalResponse = PostV1PostsSyncExternalResponses[keyof PostV1PostsSyncExternalResponses];
3240
+ type GetV1PostsScheduledData = {
3241
+ body?: never;
3242
+ path?: never;
3243
+ query?: {
3244
+ /**
3245
+ * Page size (max 100)
3246
+ */
3247
+ limit?: number;
3248
+ /**
3249
+ * Number of scheduled posts to skip
3250
+ */
3251
+ offset?: number;
3252
+ sort?: SortOrder;
3253
+ };
3254
+ url: '/v1/posts/scheduled/';
3255
+ };
3256
+ type GetV1PostsScheduledResponses = {
3257
+ /**
3258
+ * Default Response
3259
+ */
3260
+ 200: {
3261
+ success: boolean;
3262
+ /**
3263
+ * Total matched scheduled posts across all pages
3264
+ */
3265
+ total: number;
3266
+ posts: Array<{
3267
+ /**
3268
+ * MongoDB ObjectId of the Post document
3269
+ */
3270
+ postId: string;
3271
+ /**
3272
+ * Post text body
3273
+ */
3274
+ content: string;
3275
+ /**
3276
+ * ISO 8601 scheduled datetime
3277
+ */
3278
+ scheduledFor: string | null;
3279
+ /**
3280
+ * IANA timezone for the scheduled time
3281
+ */
3282
+ timezone: string;
3283
+ /**
3284
+ * Media attachments
3285
+ */
3286
+ mediaItems?: Array<{
3287
+ type: 'image' | 'video' | 'gif' | 'document';
3288
+ url: string;
3289
+ /**
3290
+ * Thumbnail image URL for Facebook videos and YouTube regular videos (not Shorts). YouTube accepts JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
3291
+ */
3292
+ thumbnail?: string;
3293
+ }>;
3294
+ platforms: Array<{
3295
+ platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
3296
+ status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
3297
+ }>;
3298
+ createdAt: string;
3299
+ }>;
3300
+ };
3301
+ };
3302
+ type GetV1PostsScheduledResponse = GetV1PostsScheduledResponses[keyof GetV1PostsScheduledResponses];
3303
+ type DeleteV1PostsScheduledByPostIdData = {
3304
+ body?: never;
3305
+ path: {
3306
+ postId: string;
3307
+ };
3308
+ query?: never;
3309
+ url: '/v1/posts/scheduled/{postId}';
3310
+ };
3311
+ type DeleteV1PostsScheduledByPostIdErrors = {
3312
+ /**
3313
+ * Default Response
3314
+ */
3315
+ 404: {
3316
+ success: boolean;
3317
+ message: string;
3318
+ };
3319
+ /**
3320
+ * Default Response
3321
+ */
3322
+ 409: {
3323
+ success: boolean;
3324
+ message: string;
3325
+ };
3326
+ };
3327
+ type DeleteV1PostsScheduledByPostIdError = DeleteV1PostsScheduledByPostIdErrors[keyof DeleteV1PostsScheduledByPostIdErrors];
3328
+ type DeleteV1PostsScheduledByPostIdResponses = {
3329
+ /**
3330
+ * Default Response
3331
+ */
3332
+ 200: {
3333
+ success: boolean;
3334
+ message: string;
3335
+ };
3336
+ };
3337
+ type DeleteV1PostsScheduledByPostIdResponse = DeleteV1PostsScheduledByPostIdResponses[keyof DeleteV1PostsScheduledByPostIdResponses];
3338
+ type PatchV1PostsScheduledByPostIdData = {
3339
+ body: {
3340
+ /**
3341
+ * New ISO 8601 datetime to schedule the post
3342
+ */
3343
+ scheduledFor: string;
3344
+ /**
3345
+ * IANA timezone
3346
+ */
3347
+ timezone?: string;
3348
+ };
3349
+ path: {
3350
+ postId: string;
3351
+ };
3352
+ query?: never;
3353
+ url: '/v1/posts/scheduled/{postId}';
3354
+ };
3355
+ type PatchV1PostsScheduledByPostIdErrors = {
3356
+ /**
3357
+ * Default Response
3358
+ */
3359
+ 404: {
3360
+ success: boolean;
3361
+ message: string;
3362
+ };
3363
+ /**
3364
+ * Default Response
3365
+ */
3366
+ 409: {
3367
+ success: boolean;
3368
+ message: string;
3369
+ };
3370
+ /**
3371
+ * Default Response
3372
+ */
3373
+ 503: {
3374
+ success: boolean;
3375
+ message: string;
3376
+ };
3377
+ };
3378
+ type PatchV1PostsScheduledByPostIdError = PatchV1PostsScheduledByPostIdErrors[keyof PatchV1PostsScheduledByPostIdErrors];
3379
+ type PatchV1PostsScheduledByPostIdResponses = {
3380
+ /**
3381
+ * Default Response
3382
+ */
3383
+ 200: {
3384
+ success: boolean;
3385
+ message: string;
3386
+ scheduledFor: string;
3387
+ };
3388
+ };
3389
+ type PatchV1PostsScheduledByPostIdResponse = PatchV1PostsScheduledByPostIdResponses[keyof PatchV1PostsScheduledByPostIdResponses];
3390
+ type PutV1PostsScheduledByPostIdData = {
3391
+ body: {
3392
+ /**
3393
+ * New post text body
3394
+ */
3395
+ content: string;
3396
+ /**
3397
+ * Replacement media attachments (images, videos, GIFs)
3398
+ */
3399
+ mediaItems?: Array<{
3400
+ type: 'image' | 'video' | 'gif' | 'document';
3401
+ url: string;
3402
+ /**
3403
+ * Thumbnail image URL for Facebook videos and YouTube regular videos (not Shorts). YouTube accepts JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
3404
+ */
3405
+ thumbnail?: string;
3406
+ }>;
3407
+ /**
3408
+ * Replacement target platform accounts to publish to
3409
+ */
3410
+ platforms: Array<{
3411
+ platform: 'twitter';
3412
+ /**
3413
+ * Integration._id — find yours via GET /connect/integrations
3414
+ */
3415
+ accountId: string;
3416
+ /**
3417
+ * Optional per-platform text override. Use when you want to change the text for this platform because different platforms talk differently. When omitted, the top-level `content` is used.
3418
+ */
3419
+ content?: string;
3420
+ platformSpecificData?: TwitterConfigurations;
3421
+ } | {
3422
+ platform: 'instagram';
3171
3423
  /**
3172
3424
  * Integration._id — find yours via GET /connect/integrations
3173
3425
  */
@@ -3332,9 +3584,9 @@ type PutV1PostsScheduledByPostIdResponses = {
3332
3584
  */
3333
3585
  200: {
3334
3586
  success: boolean;
3335
- message: string;
3587
+ message?: string;
3336
3588
  postId: string;
3337
- scheduledFor: string;
3589
+ scheduledFor?: string;
3338
3590
  };
3339
3591
  };
3340
3592
  type PutV1PostsScheduledByPostIdResponse = PutV1PostsScheduledByPostIdResponses[keyof PutV1PostsScheduledByPostIdResponses];
@@ -3633,11 +3885,11 @@ type GetV1AnalyticsData = {
3633
3885
  postId?: string;
3634
3886
  platform?: Platform;
3635
3887
  /**
3636
- * Integration ID. Required for external ID lookups and source=platform.
3888
+ * Integration ID. Required for native platform post ID lookups and source=platform.
3637
3889
  */
3638
3890
  accountId?: string;
3639
3891
  /**
3640
- * Where the result came from. "postpeer" = posts published via PostPeer (stored in our DB). "platform" = fetched directly from the connected platform account.
3892
+ * Where the result came from. "postpeer" = stored in PostPeer, including synced external posts. "platform" = fetched live without requiring a stored record.
3641
3893
  */
3642
3894
  source?: 'postpeer' | 'platform';
3643
3895
  /**
@@ -3696,11 +3948,15 @@ type GetV1AnalyticsResponses = {
3696
3948
  success: boolean;
3697
3949
  post: {
3698
3950
  /**
3699
- * Where the result came from. "postpeer" = posts published via PostPeer (stored in our DB). "platform" = fetched directly from the connected platform account.
3951
+ * Where the result came from. "postpeer" = stored in PostPeer, including synced external posts. "platform" = fetched live without requiring a stored record.
3700
3952
  */
3701
3953
  source: 'postpeer' | 'platform';
3702
3954
  /**
3703
- * PostPeer post ID. null when source=platform (post fetched directly from the platform).
3955
+ * Where a stored post was originally published. Present when source=postpeer.
3956
+ */
3957
+ origin?: 'postpeer' | 'external';
3958
+ /**
3959
+ * PostPeer post ID. External synced posts also receive an ID. null only when source=platform is fetched live.
3704
3960
  */
3705
3961
  postId: string | null;
3706
3962
  content: string | null;
@@ -3787,11 +4043,15 @@ type GetV1AnalyticsResponses = {
3787
4043
  limit: number;
3788
4044
  posts: Array<{
3789
4045
  /**
3790
- * Where the result came from. "postpeer" = posts published via PostPeer (stored in our DB). "platform" = fetched directly from the connected platform account.
4046
+ * Where the result came from. "postpeer" = stored in PostPeer, including synced external posts. "platform" = fetched live without requiring a stored record.
3791
4047
  */
3792
4048
  source: 'postpeer' | 'platform';
3793
4049
  /**
3794
- * PostPeer post ID. null when source=platform (post fetched directly from the platform).
4050
+ * Where a stored post was originally published. Present when source=postpeer.
4051
+ */
4052
+ origin?: 'postpeer' | 'external';
4053
+ /**
4054
+ * PostPeer post ID. External synced posts also receive an ID. null only when source=platform is fetched live.
3795
4055
  */
3796
4056
  postId: string | null;
3797
4057
  content: string | null;
@@ -3878,7 +4138,7 @@ type GetV1CommentsData = {
3878
4138
  /**
3879
4139
  * Platform to fetch comments from.
3880
4140
  */
3881
- platform: 'facebook' | 'instagram' | 'threads';
4141
+ platform: 'facebook' | 'instagram' | 'threads' | 'linkedin';
3882
4142
  /**
3883
4143
  * Integration ID of the connected account.
3884
4144
  */
@@ -3985,7 +4245,7 @@ type PostV1CommentsData = {
3985
4245
  /**
3986
4246
  * Platform to post the comment on.
3987
4247
  */
3988
- platform: 'facebook' | 'instagram' | 'threads';
4248
+ platform: 'facebook' | 'instagram' | 'threads' | 'linkedin';
3989
4249
  /**
3990
4250
  * Integration ID.
3991
4251
  */
@@ -4060,7 +4320,7 @@ type DeleteV1CommentsByCommentIdData = {
4060
4320
  commentId: string;
4061
4321
  };
4062
4322
  query: {
4063
- platform: 'facebook' | 'instagram' | 'threads';
4323
+ platform: 'facebook' | 'instagram' | 'threads' | 'linkedin';
4064
4324
  /**
4065
4325
  * Integration ID.
4066
4326
  */
@@ -4103,7 +4363,7 @@ type DeleteV1CommentsByCommentIdResponses = {
4103
4363
  type DeleteV1CommentsByCommentIdResponse = DeleteV1CommentsByCommentIdResponses[keyof DeleteV1CommentsByCommentIdResponses];
4104
4364
  type PatchV1CommentsByCommentIdData = {
4105
4365
  body: {
4106
- platform: 'facebook' | 'instagram' | 'threads';
4366
+ platform: 'facebook' | 'instagram' | 'threads' | 'linkedin';
4107
4367
  /**
4108
4368
  * Integration ID.
4109
4369
  */
@@ -4247,34 +4507,338 @@ type GetV1MessagesResponses = {
4247
4507
  } | null;
4248
4508
  updatedTime: string | null;
4249
4509
  }>;
4250
- /**
4251
- * Pass as `after` in the next request to paginate.
4252
- */
4253
- nextCursor: string | null;
4510
+ /**
4511
+ * Pass as `after` in the next request to paginate.
4512
+ */
4513
+ nextCursor: string | null;
4514
+ };
4515
+ };
4516
+ type GetV1MessagesResponse = GetV1MessagesResponses[keyof GetV1MessagesResponses];
4517
+ type PostV1MessagesData = {
4518
+ body: {
4519
+ platform: 'instagram';
4520
+ /**
4521
+ * Integration ID.
4522
+ */
4523
+ accountId: string;
4524
+ /**
4525
+ * Platform ID of the recipient.
4526
+ */
4527
+ recipientId: string;
4528
+ /**
4529
+ * Message text.
4530
+ */
4531
+ text: string;
4532
+ };
4533
+ path?: never;
4534
+ query?: never;
4535
+ url: '/v1/messages/';
4536
+ };
4537
+ type PostV1MessagesErrors = {
4538
+ /**
4539
+ * Default Response
4540
+ */
4541
+ 400: {
4542
+ success: boolean;
4543
+ message: string;
4544
+ };
4545
+ /**
4546
+ * Default Response
4547
+ */
4548
+ 402: {
4549
+ success: boolean;
4550
+ message: string;
4551
+ };
4552
+ /**
4553
+ * Default Response
4554
+ */
4555
+ 404: {
4556
+ success: boolean;
4557
+ message: string;
4558
+ };
4559
+ /**
4560
+ * Default Response
4561
+ */
4562
+ 502: {
4563
+ success: boolean;
4564
+ message: string;
4565
+ };
4566
+ };
4567
+ type PostV1MessagesError = PostV1MessagesErrors[keyof PostV1MessagesErrors];
4568
+ type PostV1MessagesResponses = {
4569
+ /**
4570
+ * Default Response
4571
+ */
4572
+ 200: {
4573
+ success: boolean;
4574
+ /**
4575
+ * ID of the sent message.
4576
+ */
4577
+ messageId: string;
4578
+ };
4579
+ };
4580
+ type PostV1MessagesResponse = PostV1MessagesResponses[keyof PostV1MessagesResponses];
4581
+ type GetV1MessagesByConversationIdData = {
4582
+ body?: never;
4583
+ path: {
4584
+ /**
4585
+ * Platform conversation ID.
4586
+ */
4587
+ conversationId: string;
4588
+ };
4589
+ query: {
4590
+ platform: 'instagram';
4591
+ /**
4592
+ * Integration ID.
4593
+ */
4594
+ accountId: string;
4595
+ limit?: number;
4596
+ after?: string;
4597
+ };
4598
+ url: '/v1/messages/{conversationId}';
4599
+ };
4600
+ type GetV1MessagesByConversationIdErrors = {
4601
+ /**
4602
+ * Default Response
4603
+ */
4604
+ 400: {
4605
+ success: boolean;
4606
+ message: string;
4607
+ };
4608
+ /**
4609
+ * Default Response
4610
+ */
4611
+ 404: {
4612
+ success: boolean;
4613
+ message: string;
4614
+ };
4615
+ /**
4616
+ * Default Response
4617
+ */
4618
+ 502: {
4619
+ success: boolean;
4620
+ message: string;
4621
+ };
4622
+ };
4623
+ type GetV1MessagesByConversationIdError = GetV1MessagesByConversationIdErrors[keyof GetV1MessagesByConversationIdErrors];
4624
+ type GetV1MessagesByConversationIdResponses = {
4625
+ /**
4626
+ * Default Response
4627
+ */
4628
+ 200: {
4629
+ success: boolean;
4630
+ messages: Array<{
4631
+ /**
4632
+ * Platform message ID
4633
+ */
4634
+ id: string;
4635
+ text: string | null;
4636
+ from: {
4637
+ id: string | null;
4638
+ name: string | null;
4639
+ };
4640
+ timestamp: string | null;
4641
+ }>;
4642
+ nextCursor: string | null;
4643
+ };
4644
+ };
4645
+ type GetV1MessagesByConversationIdResponse = GetV1MessagesByConversationIdResponses[keyof GetV1MessagesByConversationIdResponses];
4646
+ type GetV1CommentAutomationsData = {
4647
+ body?: never;
4648
+ path?: never;
4649
+ query?: {
4650
+ accountId?: string;
4651
+ };
4652
+ url: '/v1/comment-automations/';
4653
+ };
4654
+ type GetV1CommentAutomationsErrors = {
4655
+ /**
4656
+ * Default Response
4657
+ */
4658
+ 400: {
4659
+ success: boolean;
4660
+ message: string;
4661
+ };
4662
+ };
4663
+ type GetV1CommentAutomationsError = GetV1CommentAutomationsErrors[keyof GetV1CommentAutomationsErrors];
4664
+ type GetV1CommentAutomationsResponses = {
4665
+ /**
4666
+ * Default Response
4667
+ */
4668
+ 200: {
4669
+ success: boolean;
4670
+ automations: Array<{
4671
+ id: string;
4672
+ accountId: string;
4673
+ platform: string;
4674
+ name: string;
4675
+ status: 'active' | 'paused';
4676
+ trigger: {
4677
+ postScope: 'any' | 'specific';
4678
+ platformPostId: string | unknown;
4679
+ postPermalink: string | unknown;
4680
+ postId: string | unknown;
4681
+ keywords: Array<string>;
4682
+ matchMode: 'exact' | 'contains' | 'word';
4683
+ excludeKeywords: Array<string>;
4684
+ };
4685
+ actions: {
4686
+ publicReplies: Array<string>;
4687
+ dmMessage: string;
4688
+ };
4689
+ stats: {
4690
+ triggered: number;
4691
+ succeeded: number;
4692
+ failed: number;
4693
+ lastRunAt: string | unknown;
4694
+ lastError: string | unknown;
4695
+ };
4696
+ createdAt: string;
4697
+ updatedAt: string;
4698
+ }>;
4699
+ };
4700
+ };
4701
+ type GetV1CommentAutomationsResponse = GetV1CommentAutomationsResponses[keyof GetV1CommentAutomationsResponses];
4702
+ type PostV1CommentAutomationsData = {
4703
+ body: {
4704
+ accountId: string;
4705
+ name: string;
4706
+ status?: 'active' | 'paused';
4707
+ postScope: 'any' | 'specific';
4708
+ platformPostId?: string;
4709
+ postPermalink?: string;
4710
+ keywords: Array<string>;
4711
+ matchMode?: 'exact' | 'contains' | 'word';
4712
+ excludeKeywords?: Array<string>;
4713
+ publicReplies: Array<string>;
4714
+ dmMessage: string;
4715
+ };
4716
+ path?: never;
4717
+ query?: never;
4718
+ url: '/v1/comment-automations/';
4719
+ };
4720
+ type PostV1CommentAutomationsErrors = {
4721
+ /**
4722
+ * Default Response
4723
+ */
4724
+ 400: {
4725
+ success: boolean;
4726
+ message: string;
4727
+ };
4728
+ /**
4729
+ * Default Response
4730
+ */
4731
+ 404: {
4732
+ success: boolean;
4733
+ message: string;
4734
+ };
4735
+ /**
4736
+ * Default Response
4737
+ */
4738
+ 424: {
4739
+ success: boolean;
4740
+ message: string;
4741
+ };
4742
+ };
4743
+ type PostV1CommentAutomationsError = PostV1CommentAutomationsErrors[keyof PostV1CommentAutomationsErrors];
4744
+ type PostV1CommentAutomationsResponses = {
4745
+ /**
4746
+ * Default Response
4747
+ */
4748
+ 201: {
4749
+ success: boolean;
4750
+ automation: {
4751
+ id: string;
4752
+ accountId: string;
4753
+ platform: string;
4754
+ name: string;
4755
+ status: 'active' | 'paused';
4756
+ trigger: {
4757
+ postScope: 'any' | 'specific';
4758
+ platformPostId: string | unknown;
4759
+ postPermalink: string | unknown;
4760
+ postId: string | unknown;
4761
+ keywords: Array<string>;
4762
+ matchMode: 'exact' | 'contains' | 'word';
4763
+ excludeKeywords: Array<string>;
4764
+ };
4765
+ actions: {
4766
+ publicReplies: Array<string>;
4767
+ dmMessage: string;
4768
+ };
4769
+ stats: {
4770
+ triggered: number;
4771
+ succeeded: number;
4772
+ failed: number;
4773
+ lastRunAt: string | unknown;
4774
+ lastError: string | unknown;
4775
+ };
4776
+ createdAt: string;
4777
+ updatedAt: string;
4778
+ };
4779
+ };
4780
+ };
4781
+ type PostV1CommentAutomationsResponse = PostV1CommentAutomationsResponses[keyof PostV1CommentAutomationsResponses];
4782
+ type GetV1CommentAutomationsPostsData = {
4783
+ body?: never;
4784
+ path?: never;
4785
+ query: {
4786
+ accountId: string;
4787
+ after?: string;
4788
+ };
4789
+ url: '/v1/comment-automations/posts';
4790
+ };
4791
+ type GetV1CommentAutomationsPostsErrors = {
4792
+ /**
4793
+ * Default Response
4794
+ */
4795
+ 400: {
4796
+ success: boolean;
4797
+ message: string;
4798
+ };
4799
+ /**
4800
+ * Default Response
4801
+ */
4802
+ 404: {
4803
+ success: boolean;
4804
+ message: string;
4805
+ };
4806
+ /**
4807
+ * Default Response
4808
+ */
4809
+ 502: {
4810
+ success: boolean;
4811
+ message: string;
4812
+ };
4813
+ };
4814
+ type GetV1CommentAutomationsPostsError = GetV1CommentAutomationsPostsErrors[keyof GetV1CommentAutomationsPostsErrors];
4815
+ type GetV1CommentAutomationsPostsResponses = {
4816
+ /**
4817
+ * Default Response
4818
+ */
4819
+ 200: {
4820
+ success: boolean;
4821
+ nextCursor: string | unknown;
4822
+ posts: Array<{
4823
+ id: string;
4824
+ caption: string | unknown;
4825
+ mediaType: string | unknown;
4826
+ permalink: string | unknown;
4827
+ previewUrl: string | unknown;
4828
+ timestamp: string | unknown;
4829
+ }>;
4254
4830
  };
4255
4831
  };
4256
- type GetV1MessagesResponse = GetV1MessagesResponses[keyof GetV1MessagesResponses];
4257
- type PostV1MessagesData = {
4258
- body: {
4259
- platform: 'instagram';
4260
- /**
4261
- * Integration ID.
4262
- */
4263
- accountId: string;
4264
- /**
4265
- * Platform ID of the recipient.
4266
- */
4267
- recipientId: string;
4268
- /**
4269
- * Message text.
4270
- */
4271
- text: string;
4832
+ type GetV1CommentAutomationsPostsResponse = GetV1CommentAutomationsPostsResponses[keyof GetV1CommentAutomationsPostsResponses];
4833
+ type DeleteV1CommentAutomationsByIdData = {
4834
+ body?: never;
4835
+ path: {
4836
+ id: string;
4272
4837
  };
4273
- path?: never;
4274
4838
  query?: never;
4275
- url: '/v1/messages/';
4839
+ url: '/v1/comment-automations/{id}';
4276
4840
  };
4277
- type PostV1MessagesErrors = {
4841
+ type DeleteV1CommentAutomationsByIdErrors = {
4278
4842
  /**
4279
4843
  * Default Response
4280
4844
  */
@@ -4285,59 +4849,108 @@ type PostV1MessagesErrors = {
4285
4849
  /**
4286
4850
  * Default Response
4287
4851
  */
4288
- 402: {
4852
+ 404: {
4289
4853
  success: boolean;
4290
4854
  message: string;
4291
4855
  };
4856
+ };
4857
+ type DeleteV1CommentAutomationsByIdError = DeleteV1CommentAutomationsByIdErrors[keyof DeleteV1CommentAutomationsByIdErrors];
4858
+ type DeleteV1CommentAutomationsByIdResponses = {
4292
4859
  /**
4293
4860
  * Default Response
4294
4861
  */
4295
- 404: {
4862
+ 200: {
4863
+ success?: boolean;
4864
+ };
4865
+ };
4866
+ type DeleteV1CommentAutomationsByIdResponse = DeleteV1CommentAutomationsByIdResponses[keyof DeleteV1CommentAutomationsByIdResponses];
4867
+ type PatchV1CommentAutomationsByIdData = {
4868
+ body: {
4869
+ name?: string;
4870
+ status?: 'active' | 'paused';
4871
+ postScope?: 'any' | 'specific';
4872
+ platformPostId?: string;
4873
+ postPermalink?: string;
4874
+ keywords?: Array<string>;
4875
+ matchMode?: 'exact' | 'contains' | 'word';
4876
+ excludeKeywords?: Array<string>;
4877
+ publicReplies?: Array<string>;
4878
+ dmMessage?: string;
4879
+ };
4880
+ path: {
4881
+ id: string;
4882
+ };
4883
+ query?: never;
4884
+ url: '/v1/comment-automations/{id}';
4885
+ };
4886
+ type PatchV1CommentAutomationsByIdErrors = {
4887
+ /**
4888
+ * Default Response
4889
+ */
4890
+ 400: {
4296
4891
  success: boolean;
4297
4892
  message: string;
4298
4893
  };
4299
4894
  /**
4300
4895
  * Default Response
4301
4896
  */
4302
- 502: {
4897
+ 404: {
4303
4898
  success: boolean;
4304
4899
  message: string;
4305
4900
  };
4306
4901
  };
4307
- type PostV1MessagesError = PostV1MessagesErrors[keyof PostV1MessagesErrors];
4308
- type PostV1MessagesResponses = {
4902
+ type PatchV1CommentAutomationsByIdError = PatchV1CommentAutomationsByIdErrors[keyof PatchV1CommentAutomationsByIdErrors];
4903
+ type PatchV1CommentAutomationsByIdResponses = {
4309
4904
  /**
4310
4905
  * Default Response
4311
4906
  */
4312
4907
  200: {
4313
4908
  success: boolean;
4314
- /**
4315
- * ID of the sent message.
4316
- */
4317
- messageId: string;
4909
+ automation: {
4910
+ id: string;
4911
+ accountId: string;
4912
+ platform: string;
4913
+ name: string;
4914
+ status: 'active' | 'paused';
4915
+ trigger: {
4916
+ postScope: 'any' | 'specific';
4917
+ platformPostId: string | unknown;
4918
+ postPermalink: string | unknown;
4919
+ postId: string | unknown;
4920
+ keywords: Array<string>;
4921
+ matchMode: 'exact' | 'contains' | 'word';
4922
+ excludeKeywords: Array<string>;
4923
+ };
4924
+ actions: {
4925
+ publicReplies: Array<string>;
4926
+ dmMessage: string;
4927
+ };
4928
+ stats: {
4929
+ triggered: number;
4930
+ succeeded: number;
4931
+ failed: number;
4932
+ lastRunAt: string | unknown;
4933
+ lastError: string | unknown;
4934
+ };
4935
+ createdAt: string;
4936
+ updatedAt: string;
4937
+ };
4318
4938
  };
4319
4939
  };
4320
- type PostV1MessagesResponse = PostV1MessagesResponses[keyof PostV1MessagesResponses];
4321
- type GetV1MessagesByConversationIdData = {
4940
+ type PatchV1CommentAutomationsByIdResponse = PatchV1CommentAutomationsByIdResponses[keyof PatchV1CommentAutomationsByIdResponses];
4941
+ type GetV1CommentAutomationsByIdLogsData = {
4322
4942
  body?: never;
4323
4943
  path: {
4324
- /**
4325
- * Platform conversation ID.
4326
- */
4327
- conversationId: string;
4944
+ id: string;
4328
4945
  };
4329
- query: {
4330
- platform: 'instagram';
4331
- /**
4332
- * Integration ID.
4333
- */
4334
- accountId: string;
4946
+ query?: {
4947
+ status?: 'running' | 'succeeded' | 'succeeded_with_warnings' | 'failed';
4335
4948
  limit?: number;
4336
- after?: string;
4949
+ skip?: number;
4337
4950
  };
4338
- url: '/v1/messages/{conversationId}';
4951
+ url: '/v1/comment-automations/{id}/logs';
4339
4952
  };
4340
- type GetV1MessagesByConversationIdErrors = {
4953
+ type GetV1CommentAutomationsByIdLogsErrors = {
4341
4954
  /**
4342
4955
  * Default Response
4343
4956
  */
@@ -4352,37 +4965,36 @@ type GetV1MessagesByConversationIdErrors = {
4352
4965
  success: boolean;
4353
4966
  message: string;
4354
4967
  };
4355
- /**
4356
- * Default Response
4357
- */
4358
- 502: {
4359
- success: boolean;
4360
- message: string;
4361
- };
4362
4968
  };
4363
- type GetV1MessagesByConversationIdError = GetV1MessagesByConversationIdErrors[keyof GetV1MessagesByConversationIdErrors];
4364
- type GetV1MessagesByConversationIdResponses = {
4969
+ type GetV1CommentAutomationsByIdLogsError = GetV1CommentAutomationsByIdLogsErrors[keyof GetV1CommentAutomationsByIdLogsErrors];
4970
+ type GetV1CommentAutomationsByIdLogsResponses = {
4365
4971
  /**
4366
4972
  * Default Response
4367
4973
  */
4368
4974
  200: {
4369
4975
  success: boolean;
4370
- messages: Array<{
4371
- /**
4372
- * Platform message ID
4373
- */
4976
+ logs: Array<{
4374
4977
  id: string;
4375
- text: string | null;
4376
- from: {
4377
- id: string | null;
4378
- name: string | null;
4379
- };
4380
- timestamp: string | null;
4978
+ commentId: string;
4979
+ commenterId: string;
4980
+ commenterName: string | unknown;
4981
+ commentText: string;
4982
+ platformPostId: string;
4983
+ status: 'running' | 'succeeded' | 'succeeded_with_warnings' | 'failed';
4984
+ privateReplySent: boolean;
4985
+ publicReplyStatus: 'sent' | 'failed' | 'skipped';
4986
+ error: string | unknown;
4987
+ createdAt: string;
4381
4988
  }>;
4382
- nextCursor: string | null;
4989
+ pagination: {
4990
+ total: number;
4991
+ limit: number;
4992
+ skip: number;
4993
+ hasMore: boolean;
4994
+ };
4383
4995
  };
4384
4996
  };
4385
- type GetV1MessagesByConversationIdResponse = GetV1MessagesByConversationIdResponses[keyof GetV1MessagesByConversationIdResponses];
4997
+ type GetV1CommentAutomationsByIdLogsResponse = GetV1CommentAutomationsByIdLogsResponses[keyof GetV1CommentAutomationsByIdLogsResponses];
4386
4998
  type GetV1UsageData = {
4387
4999
  body?: never;
4388
5000
  path?: never;
@@ -4615,6 +5227,58 @@ type GetV1TiktokCreatorInfoResponses = {
4615
5227
  };
4616
5228
  };
4617
5229
  type GetV1TiktokCreatorInfoResponse = GetV1TiktokCreatorInfoResponses[keyof GetV1TiktokCreatorInfoResponses];
5230
+ type GetV1LinkedinOrganizationLookupData = {
5231
+ body?: never;
5232
+ path?: never;
5233
+ query: {
5234
+ /**
5235
+ * LinkedIn company URL or vanity name, for example https://www.linkedin.com/company/linkedin or linkedin.
5236
+ */
5237
+ company: string;
5238
+ /**
5239
+ * Integration ID of the LinkedIn account used to authorize the lookup. If omitted, uses the first connected LinkedIn account.
5240
+ */
5241
+ accountId?: string;
5242
+ };
5243
+ url: '/v1/linkedin/organization-lookup';
5244
+ };
5245
+ type GetV1LinkedinOrganizationLookupErrors = {
5246
+ /**
5247
+ * Default Response
5248
+ */
5249
+ 400: {
5250
+ error: string;
5251
+ };
5252
+ /**
5253
+ * Default Response
5254
+ */
5255
+ 404: {
5256
+ error: string;
5257
+ };
5258
+ /**
5259
+ * Default Response
5260
+ */
5261
+ 502: {
5262
+ error: string;
5263
+ };
5264
+ };
5265
+ type GetV1LinkedinOrganizationLookupError = GetV1LinkedinOrganizationLookupErrors[keyof GetV1LinkedinOrganizationLookupErrors];
5266
+ type GetV1LinkedinOrganizationLookupResponses = {
5267
+ /**
5268
+ * Default Response
5269
+ */
5270
+ 200: {
5271
+ success: true;
5272
+ organization: {
5273
+ id: string;
5274
+ name: string | unknown;
5275
+ vanityName: string;
5276
+ urn: string;
5277
+ url: string;
5278
+ };
5279
+ };
5280
+ };
5281
+ type GetV1LinkedinOrganizationLookupResponse = GetV1LinkedinOrganizationLookupResponses[keyof GetV1LinkedinOrganizationLookupResponses];
4618
5282
  type PostV1AiWriteData = {
4619
5283
  body: {
4620
5284
  /**
@@ -4812,6 +5476,12 @@ declare class Integrations extends HeyApiClient {
4812
5476
  * Returns one integration, including its recorded OAuth scopes and token expiry metadata. OAuth tokens are never returned.
4813
5477
  */
4814
5478
  get<ThrowOnError extends boolean = false>(options: Options<GetV1ConnectIntegrationsByIdData, ThrowOnError>): RequestResult<GetV1ConnectIntegrationsByIdResponses, GetV1ConnectIntegrationsByIdErrors, ThrowOnError>;
5479
+ /**
5480
+ * Move an integration to another profile
5481
+ *
5482
+ * Reassigns an existing integration to another profile in the same project. Pass profileId=null to leave the integration unassigned. OAuth credentials and existing posts are unchanged.
5483
+ */
5484
+ move<ThrowOnError extends boolean = false>(options: Options<PatchV1ConnectIntegrationsByIdData, ThrowOnError>): RequestResult<PatchV1ConnectIntegrationsByIdResponses, PatchV1ConnectIntegrationsByIdErrors, ThrowOnError>;
4815
5485
  }
4816
5486
  declare class Connect extends HeyApiClient {
4817
5487
  /**
@@ -4847,7 +5517,7 @@ declare class Profiles extends HeyApiClient {
4847
5517
  /**
4848
5518
  * Delete a profile
4849
5519
  *
4850
- * Soft-deletes the profile. Existing integrations bound to it keep their profileId — they are not orphaned, but listing /v1/profiles will no longer surface this row.
5520
+ * Soft-deletes an empty profile. Move or disconnect active integrations before deleting their profile.
4851
5521
  */
4852
5522
  delete<ThrowOnError extends boolean = false>(options: Options<DeleteV1ProfilesByIdData, ThrowOnError>): RequestResult<DeleteV1ProfilesByIdResponses, DeleteV1ProfilesByIdErrors, ThrowOnError>;
4853
5523
  /**
@@ -4939,7 +5609,9 @@ declare class Scheduled extends HeyApiClient {
4939
5609
  /**
4940
5610
  * Edit a scheduled post (content, media, platforms, time)
4941
5611
  *
4942
- * Replaces the editable fields of a scheduled post: text content, media attachments, target platforms + platform-specific data, and optionally the scheduled time/timezone. Re-validates each platform and reconciles the credit difference. Only works while the post is still scheduled.
5612
+ * Deprecated: use PUT /v1/posts/:postId. Replaces the editable fields of a scheduled post and reconciles credits.
5613
+ *
5614
+ * @deprecated
4943
5615
  */
4944
5616
  edit<ThrowOnError extends boolean = false>(options: Options<PutV1PostsScheduledByPostIdData, ThrowOnError>): RequestResult<PutV1PostsScheduledByPostIdResponses, PutV1PostsScheduledByPostIdErrors, ThrowOnError>;
4945
5617
  }
@@ -4951,7 +5623,9 @@ declare class Posts extends HeyApiClient {
4951
5623
  */
4952
5624
  list<ThrowOnError extends boolean = false>(options?: Options<GetV1PostsData, ThrowOnError>): RequestResult<GetV1PostsResponses, GetV1PostsErrors, ThrowOnError>;
4953
5625
  /**
4954
- * Publish a post to one or more social media platforms
5626
+ * Create, publish, or schedule a post
5627
+ *
5628
+ * Set saveAsDraft=true to save without accounts or credits, publishNow=true to publish immediately, or provide scheduledFor to schedule it.
4955
5629
  */
4956
5630
  create<ThrowOnError extends boolean = false>(options: Options<PostV1PostsData, ThrowOnError>): RequestResult<PostV1PostsResponses, PostV1PostsErrors, ThrowOnError>;
4957
5631
  /**
@@ -4968,6 +5642,18 @@ declare class Posts extends HeyApiClient {
4968
5642
  * Get a single post by ID
4969
5643
  */
4970
5644
  get<ThrowOnError extends boolean = false>(options: Options<GetV1PostsByPostIdData, ThrowOnError>): RequestResult<GetV1PostsByPostIdResponses, GetV1PostsByPostIdErrors, ThrowOnError>;
5645
+ /**
5646
+ * Edit a draft or scheduled post
5647
+ *
5648
+ * Replaces an editable post. Drafts remain drafts with saveAsDraft=true, publish immediately with publishNow=true, or become scheduled with scheduledFor. Scheduled posts keep their schedule.
5649
+ */
5650
+ edit<ThrowOnError extends boolean = false>(options: Options<PutV1PostsByPostIdData, ThrowOnError>): RequestResult<PutV1PostsByPostIdResponses, PutV1PostsByPostIdErrors, ThrowOnError>;
5651
+ /**
5652
+ * Sync recent posts published outside PostPeer
5653
+ *
5654
+ * Fetches at most the 50 most recent posts from one connected account and stores posts published outside PostPeer. Existing PostPeer posts are updated instead of duplicated. Provide url or postId to verify one post. Requests are debounced per account for 15 seconds. Supported accounts: Twitter, YouTube, Pinterest, LinkedIn organization pages, TikTok, Facebook, Instagram, Threads, and Google Business.
5655
+ */
5656
+ syncExternal<ThrowOnError extends boolean = false>(options: Options<PostV1PostsSyncExternalData, ThrowOnError>): RequestResult<PostV1PostsSyncExternalResponses, PostV1PostsSyncExternalErrors, ThrowOnError>;
4971
5657
  private _scheduled?;
4972
5658
  get scheduled(): Scheduled;
4973
5659
  }
@@ -5007,6 +5693,66 @@ declare class Analytics extends HeyApiClient {
5007
5693
  private _instagram?;
5008
5694
  get instagram(): Instagram;
5009
5695
  }
5696
+ declare class Comments extends HeyApiClient {
5697
+ /**
5698
+ * List comments on a post
5699
+ *
5700
+ * Fetch comments (and first-level replies) on a post from a connected Facebook Page, Instagram Business account, Threads account, or LinkedIn account. Requires the account to have the relevant permissions approved (pages_read_user_content for Facebook, instagram_business_manage_comments for Instagram, threads_manage_replies for Threads, Community Management social-feed scopes for LinkedIn).
5701
+ */
5702
+ list<ThrowOnError extends boolean = false>(options: Options<GetV1CommentsData, ThrowOnError>): RequestResult<GetV1CommentsResponses, GetV1CommentsErrors, ThrowOnError>;
5703
+ /**
5704
+ * Create a comment or reply
5705
+ *
5706
+ * Post a top-level comment on an Instagram, Facebook, or LinkedIn post, or a top-level post on Threads (provide `postId`), or reply to an existing comment on Facebook, Instagram, Threads, or LinkedIn (provide `commentId`).
5707
+ */
5708
+ create<ThrowOnError extends boolean = false>(options: Options<PostV1CommentsData, ThrowOnError>): RequestResult<PostV1CommentsResponses, PostV1CommentsErrors, ThrowOnError>;
5709
+ /**
5710
+ * Delete a comment
5711
+ *
5712
+ * Delete a comment on a Facebook Page post, Instagram Business post, or LinkedIn post. Not supported on Threads (the API does not allow deleting others' replies).
5713
+ */
5714
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteV1CommentsByCommentIdData, ThrowOnError>): RequestResult<DeleteV1CommentsByCommentIdResponses, DeleteV1CommentsByCommentIdErrors, ThrowOnError>;
5715
+ /**
5716
+ * Hide or unhide a comment
5717
+ *
5718
+ * Hide or unhide a comment on an Instagram Business post. Pass `hidden: true` to hide, `hidden: false` to unhide. Instagram only.
5719
+ */
5720
+ hide<ThrowOnError extends boolean = false>(options: Options<PatchV1CommentsByCommentIdData, ThrowOnError>): RequestResult<PatchV1CommentsByCommentIdResponses, PatchV1CommentsByCommentIdErrors, ThrowOnError>;
5721
+ }
5722
+ declare class Messages extends HeyApiClient {
5723
+ /**
5724
+ * List conversations
5725
+ *
5726
+ * List DM conversations for a connected Instagram Business account. Requires instagram_business_manage_messages.
5727
+ */
5728
+ listConversations<ThrowOnError extends boolean = false>(options: Options<GetV1MessagesData, ThrowOnError>): RequestResult<GetV1MessagesResponses, GetV1MessagesErrors, ThrowOnError>;
5729
+ /**
5730
+ * Send a message
5731
+ *
5732
+ * Send a DM reply on Instagram.
5733
+ */
5734
+ send<ThrowOnError extends boolean = false>(options: Options<PostV1MessagesData, ThrowOnError>): RequestResult<PostV1MessagesResponses, PostV1MessagesErrors, ThrowOnError>;
5735
+ /**
5736
+ * Get messages in a conversation
5737
+ */
5738
+ getConversation<ThrowOnError extends boolean = false>(options: Options<GetV1MessagesByConversationIdData, ThrowOnError>): RequestResult<GetV1MessagesByConversationIdResponses, GetV1MessagesByConversationIdErrors, ThrowOnError>;
5739
+ }
5740
+ declare class Posts2 extends HeyApiClient {
5741
+ list<ThrowOnError extends boolean = false>(options: Options<GetV1CommentAutomationsPostsData, ThrowOnError>): RequestResult<GetV1CommentAutomationsPostsResponses, GetV1CommentAutomationsPostsErrors, ThrowOnError>;
5742
+ }
5743
+ declare class Logs extends HeyApiClient {
5744
+ list<ThrowOnError extends boolean = false>(options: Options<GetV1CommentAutomationsByIdLogsData, ThrowOnError>): RequestResult<GetV1CommentAutomationsByIdLogsResponses, GetV1CommentAutomationsByIdLogsErrors, ThrowOnError>;
5745
+ }
5746
+ declare class CommentAutomations extends HeyApiClient {
5747
+ list<ThrowOnError extends boolean = false>(options?: Options<GetV1CommentAutomationsData, ThrowOnError>): RequestResult<GetV1CommentAutomationsResponses, GetV1CommentAutomationsErrors, ThrowOnError>;
5748
+ create<ThrowOnError extends boolean = false>(options: Options<PostV1CommentAutomationsData, ThrowOnError>): RequestResult<PostV1CommentAutomationsResponses, PostV1CommentAutomationsErrors, ThrowOnError>;
5749
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteV1CommentAutomationsByIdData, ThrowOnError>): RequestResult<DeleteV1CommentAutomationsByIdResponses, DeleteV1CommentAutomationsByIdErrors, ThrowOnError>;
5750
+ update<ThrowOnError extends boolean = false>(options: Options<PatchV1CommentAutomationsByIdData, ThrowOnError>): RequestResult<PatchV1CommentAutomationsByIdResponses, PatchV1CommentAutomationsByIdErrors, ThrowOnError>;
5751
+ private _posts?;
5752
+ get posts(): Posts2;
5753
+ private _logs?;
5754
+ get logs(): Logs;
5755
+ }
5010
5756
  declare class Usage extends HeyApiClient {
5011
5757
  /**
5012
5758
  * Get credit usage
@@ -5029,6 +5775,12 @@ declare class Tiktok extends HeyApiClient {
5029
5775
  */
5030
5776
  getCreatorInfo<ThrowOnError extends boolean = false>(options?: Options<GetV1TiktokCreatorInfoData, ThrowOnError>): RequestResult<GetV1TiktokCreatorInfoResponses, GetV1TiktokCreatorInfoErrors, ThrowOnError>;
5031
5777
  }
5778
+ declare class Linkedin2 extends HeyApiClient {
5779
+ /**
5780
+ * Find a LinkedIn organization ID and URN by company URL or slug
5781
+ */
5782
+ lookupOrganization<ThrowOnError extends boolean = false>(options: Options<GetV1LinkedinOrganizationLookupData, ThrowOnError>): RequestResult<GetV1LinkedinOrganizationLookupResponses, GetV1LinkedinOrganizationLookupErrors, ThrowOnError>;
5783
+ }
5032
5784
  declare class Ai extends HeyApiClient {
5033
5785
  /**
5034
5786
  * Generate a social media caption from a description
@@ -5049,52 +5801,6 @@ declare class PostPeer$1 extends HeyApiClient {
5049
5801
  client?: Client;
5050
5802
  key?: string;
5051
5803
  });
5052
- /**
5053
- * Move an integration to another profile
5054
- *
5055
- * Reassigns an existing integration to another profile in the same project. Pass profileId=null to leave the integration unassigned. OAuth credentials and existing posts are unchanged.
5056
- */
5057
- moveIntegration<ThrowOnError extends boolean = false>(options: Options<PatchV1ConnectIntegrationsByIdData, ThrowOnError>): RequestResult<PatchV1ConnectIntegrationsByIdResponses, PatchV1ConnectIntegrationsByIdErrors, ThrowOnError>;
5058
- /**
5059
- * List comments on a post
5060
- *
5061
- * Fetch comments (and first-level replies) on a post from a connected Facebook Page, Instagram Business account, or Threads account. Requires the account to have the relevant Meta permissions approved (pages_read_user_content for Facebook, instagram_business_manage_comments for Instagram, threads_manage_replies for Threads).
5062
- */
5063
- listComments<ThrowOnError extends boolean = false>(options: Options<GetV1CommentsData, ThrowOnError>): RequestResult<GetV1CommentsResponses, GetV1CommentsErrors, ThrowOnError>;
5064
- /**
5065
- * Create a comment or reply
5066
- *
5067
- * Post a top-level comment on an Instagram or Facebook post, or a top-level post on Threads (provide `postId`), or reply to an existing comment on Facebook, Instagram, or Threads (provide `commentId`).
5068
- */
5069
- createComment<ThrowOnError extends boolean = false>(options: Options<PostV1CommentsData, ThrowOnError>): RequestResult<PostV1CommentsResponses, PostV1CommentsErrors, ThrowOnError>;
5070
- /**
5071
- * Delete a comment
5072
- *
5073
- * Delete a comment on a Facebook Page post or Instagram Business post. Not supported on Threads (the API does not allow deleting others' replies).
5074
- */
5075
- deleteComment<ThrowOnError extends boolean = false>(options: Options<DeleteV1CommentsByCommentIdData, ThrowOnError>): RequestResult<DeleteV1CommentsByCommentIdResponses, DeleteV1CommentsByCommentIdErrors, ThrowOnError>;
5076
- /**
5077
- * Hide or unhide a comment
5078
- *
5079
- * Hide or unhide a comment on an Instagram Business post. Pass `hidden: true` to hide, `hidden: false` to unhide. Instagram only.
5080
- */
5081
- hideComment<ThrowOnError extends boolean = false>(options: Options<PatchV1CommentsByCommentIdData, ThrowOnError>): RequestResult<PatchV1CommentsByCommentIdResponses, PatchV1CommentsByCommentIdErrors, ThrowOnError>;
5082
- /**
5083
- * List conversations
5084
- *
5085
- * List DM conversations for a connected Instagram Business account. Requires instagram_business_manage_messages.
5086
- */
5087
- listConversations<ThrowOnError extends boolean = false>(options: Options<GetV1MessagesData, ThrowOnError>): RequestResult<GetV1MessagesResponses, GetV1MessagesErrors, ThrowOnError>;
5088
- /**
5089
- * Send a message
5090
- *
5091
- * Send a DM reply on Instagram.
5092
- */
5093
- sendMessage<ThrowOnError extends boolean = false>(options: Options<PostV1MessagesData, ThrowOnError>): RequestResult<PostV1MessagesResponses, PostV1MessagesErrors, ThrowOnError>;
5094
- /**
5095
- * Get messages in a conversation
5096
- */
5097
- getConversationMessages<ThrowOnError extends boolean = false>(options: Options<GetV1MessagesByConversationIdData, ThrowOnError>): RequestResult<GetV1MessagesByConversationIdResponses, GetV1MessagesByConversationIdErrors, ThrowOnError>;
5098
5804
  private _health?;
5099
5805
  get health(): Health;
5100
5806
  private _connect?;
@@ -5113,12 +5819,20 @@ declare class PostPeer$1 extends HeyApiClient {
5113
5819
  get media(): Media;
5114
5820
  private _analytics?;
5115
5821
  get analytics(): Analytics;
5822
+ private _comments?;
5823
+ get comments(): Comments;
5824
+ private _messages?;
5825
+ get messages(): Messages;
5826
+ private _commentAutomations?;
5827
+ get commentAutomations(): CommentAutomations;
5116
5828
  private _usage?;
5117
5829
  get usage(): Usage;
5118
5830
  private _pinterest?;
5119
5831
  get pinterest(): Pinterest;
5120
5832
  private _tiktok?;
5121
5833
  get tiktok(): Tiktok;
5834
+ private _linkedin?;
5835
+ get linkedin(): Linkedin2;
5122
5836
  private _ai?;
5123
5837
  get ai(): Ai;
5124
5838
  }
@@ -5192,6 +5906,6 @@ declare class APIUserAbortError extends APIConnectionError {
5192
5906
  constructor(options?: ErrorOptions);
5193
5907
  }
5194
5908
 
5195
- declare const VERSION = "0.8.6";
5909
+ declare const VERSION = "0.9.0";
5196
5910
 
5197
- export { APIConnectionError, APIConnectionTimeoutError, APIError, APIUserAbortError, AuthenticationError, BadRequestError, type BlueskyConfigurations, type ClientOptions, ConflictError, type DeleteV1AppsByIdData, type DeleteV1AppsByIdError, type DeleteV1AppsByIdErrors, type DeleteV1AppsByIdResponse, type DeleteV1AppsByIdResponses, type DeleteV1CommentsByCommentIdData, type DeleteV1CommentsByCommentIdError, type DeleteV1CommentsByCommentIdErrors, type DeleteV1CommentsByCommentIdResponse, type DeleteV1CommentsByCommentIdResponses, type DeleteV1ConnectIntegrationsByIdData, type DeleteV1ConnectIntegrationsByIdError, type DeleteV1ConnectIntegrationsByIdErrors, type DeleteV1ConnectIntegrationsByIdResponse, type DeleteV1ConnectIntegrationsByIdResponses, type DeleteV1NotificationsByIdData, type DeleteV1NotificationsByIdError, type DeleteV1NotificationsByIdErrors, type DeleteV1NotificationsByIdResponse, type DeleteV1NotificationsByIdResponses, type DeleteV1PostsByPostIdData, type DeleteV1PostsByPostIdError, type DeleteV1PostsByPostIdErrors, type DeleteV1PostsByPostIdResponse, type DeleteV1PostsByPostIdResponses, type DeleteV1PostsScheduledByPostIdData, type DeleteV1PostsScheduledByPostIdError, type DeleteV1PostsScheduledByPostIdErrors, type DeleteV1PostsScheduledByPostIdResponse, type DeleteV1PostsScheduledByPostIdResponses, type DeleteV1ProfilesByIdData, type DeleteV1ProfilesByIdError, type DeleteV1ProfilesByIdErrors, type DeleteV1ProfilesByIdResponse, type DeleteV1ProfilesByIdResponses, type ErrorResponse, type FacebookConfigurations, type GetV1AnalyticsData, type GetV1AnalyticsError, type GetV1AnalyticsErrors, type GetV1AnalyticsInstagramAccountInsightsData, type GetV1AnalyticsInstagramAccountInsightsError, type GetV1AnalyticsInstagramAccountInsightsErrors, type GetV1AnalyticsInstagramAccountInsightsResponse, type GetV1AnalyticsInstagramAccountInsightsResponses, type GetV1AnalyticsInstagramDemographicsData, type GetV1AnalyticsInstagramDemographicsError, type GetV1AnalyticsInstagramDemographicsErrors, type GetV1AnalyticsInstagramDemographicsResponse, type GetV1AnalyticsInstagramDemographicsResponses, type GetV1AnalyticsInstagramFollowerStatsData, type GetV1AnalyticsInstagramFollowerStatsError, type GetV1AnalyticsInstagramFollowerStatsErrors, type GetV1AnalyticsInstagramFollowerStatsResponse, type GetV1AnalyticsInstagramFollowerStatsResponses, type GetV1AnalyticsResponse, type GetV1AnalyticsResponses, type GetV1AppsByIdData, type GetV1AppsByIdError, type GetV1AppsByIdErrors, type GetV1AppsByIdResponse, type GetV1AppsByIdResponses, type GetV1AppsData, type GetV1AppsResponse, type GetV1AppsResponses, type GetV1CommentsData, type GetV1CommentsError, type GetV1CommentsErrors, type GetV1CommentsResponse, type GetV1CommentsResponses, type GetV1ConnectByPlatformData, type GetV1ConnectByPlatformError, type GetV1ConnectByPlatformErrors, type GetV1ConnectByPlatformResponse, type GetV1ConnectByPlatformResponses, type GetV1ConnectFacebookSelectionByTokenData, type GetV1ConnectFacebookSelectionByTokenError, type GetV1ConnectFacebookSelectionByTokenErrors, type GetV1ConnectFacebookSelectionByTokenResponse, type GetV1ConnectFacebookSelectionByTokenResponses, type GetV1ConnectIntegrationsByIdData, type GetV1ConnectIntegrationsByIdError, type GetV1ConnectIntegrationsByIdErrors, type GetV1ConnectIntegrationsByIdResponse, type GetV1ConnectIntegrationsByIdResponses, type GetV1ConnectIntegrationsData, type GetV1ConnectIntegrationsResponse, type GetV1ConnectIntegrationsResponses, type GetV1ConnectLinkedinSelectionByTokenData, type GetV1ConnectLinkedinSelectionByTokenError, type GetV1ConnectLinkedinSelectionByTokenErrors, type GetV1ConnectLinkedinSelectionByTokenResponse, type GetV1ConnectLinkedinSelectionByTokenResponses, type GetV1HealthAuthData, type GetV1HealthAuthResponse, type GetV1HealthAuthResponses, type GetV1HealthData, type GetV1HealthResponse, type GetV1HealthResponses, type GetV1MessagesByConversationIdData, type GetV1MessagesByConversationIdError, type GetV1MessagesByConversationIdErrors, type GetV1MessagesByConversationIdResponse, type GetV1MessagesByConversationIdResponses, type GetV1MessagesData, type GetV1MessagesError, type GetV1MessagesErrors, type GetV1MessagesResponse, type GetV1MessagesResponses, type GetV1NotificationsByIdData, type GetV1NotificationsByIdError, type GetV1NotificationsByIdErrors, type GetV1NotificationsByIdResponse, type GetV1NotificationsByIdResponses, type GetV1NotificationsData, type GetV1NotificationsResponse, type GetV1NotificationsResponses, type GetV1PinterestBoardsData, type GetV1PinterestBoardsError, type GetV1PinterestBoardsErrors, type GetV1PinterestBoardsResponse, type GetV1PinterestBoardsResponses, type GetV1PlatformsData, type GetV1PlatformsResponse, type GetV1PlatformsResponses, type GetV1PostsByPostIdData, type GetV1PostsByPostIdError, type GetV1PostsByPostIdErrors, type GetV1PostsByPostIdResponse, type GetV1PostsByPostIdResponses, type GetV1PostsData, type GetV1PostsError, type GetV1PostsErrors, type GetV1PostsResponse, type GetV1PostsResponses, type GetV1PostsScheduledData, type GetV1PostsScheduledResponse, type GetV1PostsScheduledResponses, type GetV1ProfilesByIdData, type GetV1ProfilesByIdError, type GetV1ProfilesByIdErrors, type GetV1ProfilesByIdResponse, type GetV1ProfilesByIdResponses, type GetV1ProfilesData, type GetV1ProfilesResponse, type GetV1ProfilesResponses, type GetV1TiktokCreatorInfoData, type GetV1TiktokCreatorInfoError, type GetV1TiktokCreatorInfoErrors, type GetV1TiktokCreatorInfoResponse, type GetV1TiktokCreatorInfoResponses, type GetV1UsageData, type GetV1UsageError, type GetV1UsageErrors, type GetV1UsageResponse, type GetV1UsageResponses, type GoogleBusinessConfigurations, type InstagramConfigurations, InternalServerError, type LinkedInConfigurations, type LinkedInMention, NotFoundError, type PatchV1AppsByIdData, type PatchV1AppsByIdError, type PatchV1AppsByIdErrors, type PatchV1AppsByIdResponse, type PatchV1AppsByIdResponses, type PatchV1CommentsByCommentIdData, type PatchV1CommentsByCommentIdError, type PatchV1CommentsByCommentIdErrors, type PatchV1CommentsByCommentIdResponse, type PatchV1CommentsByCommentIdResponses, type PatchV1ConnectIntegrationsByIdData, type PatchV1ConnectIntegrationsByIdError, type PatchV1ConnectIntegrationsByIdErrors, type PatchV1ConnectIntegrationsByIdResponse, type PatchV1ConnectIntegrationsByIdResponses, type PatchV1NotificationsByIdData, type PatchV1NotificationsByIdError, type PatchV1NotificationsByIdErrors, type PatchV1NotificationsByIdResponse, type PatchV1NotificationsByIdResponses, type PatchV1PostsScheduledByPostIdData, type PatchV1PostsScheduledByPostIdError, type PatchV1PostsScheduledByPostIdErrors, type PatchV1PostsScheduledByPostIdResponse, type PatchV1PostsScheduledByPostIdResponses, type PatchV1ProfilesByIdData, type PatchV1ProfilesByIdError, type PatchV1ProfilesByIdErrors, type PatchV1ProfilesByIdResponse, type PatchV1ProfilesByIdResponses, PermissionDeniedError, type PinterestConfigurations, type Platform, type PostPayload, PostPeer, PostPeerError, type PostV1AiImageData, type PostV1AiImageError, type PostV1AiImageErrors, type PostV1AiImageResponse, type PostV1AiImageResponses, type PostV1AiWriteData, type PostV1AiWriteError, type PostV1AiWriteErrors, type PostV1AiWriteResponse, type PostV1AiWriteResponses, type PostV1AppsData, type PostV1AppsError, type PostV1AppsErrors, type PostV1AppsResponse, type PostV1AppsResponses, type PostV1CommentsData, type PostV1CommentsError, type PostV1CommentsErrors, type PostV1CommentsResponse, type PostV1CommentsResponses, type PostV1ConnectBlueskyAuthData, type PostV1ConnectBlueskyAuthError, type PostV1ConnectBlueskyAuthErrors, type PostV1ConnectFacebookSelectionByTokenData, type PostV1ConnectFacebookSelectionByTokenError, type PostV1ConnectFacebookSelectionByTokenErrors, type PostV1ConnectFacebookSelectionByTokenResponse, type PostV1ConnectFacebookSelectionByTokenResponses, type PostV1ConnectLinkedinSelectionByTokenData, type PostV1ConnectLinkedinSelectionByTokenError, type PostV1ConnectLinkedinSelectionByTokenErrors, type PostV1ConnectLinkedinSelectionByTokenResponse, type PostV1ConnectLinkedinSelectionByTokenResponses, type PostV1MediaUploadData, type PostV1MediaUploadError, type PostV1MediaUploadErrors, type PostV1MediaUploadResponse, type PostV1MediaUploadResponses, type PostV1MessagesData, type PostV1MessagesError, type PostV1MessagesErrors, type PostV1MessagesResponse, type PostV1MessagesResponses, type PostV1NotificationsData, type PostV1NotificationsError, type PostV1NotificationsErrors, type PostV1NotificationsResponse, type PostV1NotificationsResponses, type PostV1NotificationsTestData, type PostV1NotificationsTestError, type PostV1NotificationsTestErrors, type PostV1NotificationsTestResponse, type PostV1NotificationsTestResponses, type PostV1PostsByPostIdRetryData, type PostV1PostsByPostIdRetryError, type PostV1PostsByPostIdRetryErrors, type PostV1PostsByPostIdRetryResponse, type PostV1PostsByPostIdRetryResponses, type PostV1PostsData, type PostV1PostsError, type PostV1PostsErrors, type PostV1PostsResponse, type PostV1PostsResponses, type PostV1ProfilesData, type PostV1ProfilesResponse, type PostV1ProfilesResponses, type PutV1PostsScheduledByPostIdData, type PutV1PostsScheduledByPostIdError, type PutV1PostsScheduledByPostIdErrors, type PutV1PostsScheduledByPostIdResponse, type PutV1PostsScheduledByPostIdResponses, RateLimitError, type SortOrder, type Status, type ThreadsConfigurations, type TikTokConfigurations, type TwitterConfigurations, UnprocessableEntityError, VERSION, type YouTubeConfigurations, PostPeer as default };
5911
+ export { APIConnectionError, APIConnectionTimeoutError, APIError, APIUserAbortError, AuthenticationError, BadRequestError, type BlueskyConfigurations, type ClientOptions, ConflictError, type CreatePostResponse, type DeleteV1AppsByIdData, type DeleteV1AppsByIdError, type DeleteV1AppsByIdErrors, type DeleteV1AppsByIdResponse, type DeleteV1AppsByIdResponses, type DeleteV1CommentAutomationsByIdData, type DeleteV1CommentAutomationsByIdError, type DeleteV1CommentAutomationsByIdErrors, type DeleteV1CommentAutomationsByIdResponse, type DeleteV1CommentAutomationsByIdResponses, type DeleteV1CommentsByCommentIdData, type DeleteV1CommentsByCommentIdError, type DeleteV1CommentsByCommentIdErrors, type DeleteV1CommentsByCommentIdResponse, type DeleteV1CommentsByCommentIdResponses, type DeleteV1ConnectIntegrationsByIdData, type DeleteV1ConnectIntegrationsByIdError, type DeleteV1ConnectIntegrationsByIdErrors, type DeleteV1ConnectIntegrationsByIdResponse, type DeleteV1ConnectIntegrationsByIdResponses, type DeleteV1NotificationsByIdData, type DeleteV1NotificationsByIdError, type DeleteV1NotificationsByIdErrors, type DeleteV1NotificationsByIdResponse, type DeleteV1NotificationsByIdResponses, type DeleteV1PostsByPostIdData, type DeleteV1PostsByPostIdError, type DeleteV1PostsByPostIdErrors, type DeleteV1PostsByPostIdResponse, type DeleteV1PostsByPostIdResponses, type DeleteV1PostsScheduledByPostIdData, type DeleteV1PostsScheduledByPostIdError, type DeleteV1PostsScheduledByPostIdErrors, type DeleteV1PostsScheduledByPostIdResponse, type DeleteV1PostsScheduledByPostIdResponses, type DeleteV1ProfilesByIdData, type DeleteV1ProfilesByIdError, type DeleteV1ProfilesByIdErrors, type DeleteV1ProfilesByIdResponse, type DeleteV1ProfilesByIdResponses, type ErrorResponse, type FacebookConfigurations, type GetV1AnalyticsData, type GetV1AnalyticsError, type GetV1AnalyticsErrors, type GetV1AnalyticsInstagramAccountInsightsData, type GetV1AnalyticsInstagramAccountInsightsError, type GetV1AnalyticsInstagramAccountInsightsErrors, type GetV1AnalyticsInstagramAccountInsightsResponse, type GetV1AnalyticsInstagramAccountInsightsResponses, type GetV1AnalyticsInstagramDemographicsData, type GetV1AnalyticsInstagramDemographicsError, type GetV1AnalyticsInstagramDemographicsErrors, type GetV1AnalyticsInstagramDemographicsResponse, type GetV1AnalyticsInstagramDemographicsResponses, type GetV1AnalyticsInstagramFollowerStatsData, type GetV1AnalyticsInstagramFollowerStatsError, type GetV1AnalyticsInstagramFollowerStatsErrors, type GetV1AnalyticsInstagramFollowerStatsResponse, type GetV1AnalyticsInstagramFollowerStatsResponses, type GetV1AnalyticsResponse, type GetV1AnalyticsResponses, type GetV1AppsByIdData, type GetV1AppsByIdError, type GetV1AppsByIdErrors, type GetV1AppsByIdResponse, type GetV1AppsByIdResponses, type GetV1AppsData, type GetV1AppsResponse, type GetV1AppsResponses, type GetV1CommentAutomationsByIdLogsData, type GetV1CommentAutomationsByIdLogsError, type GetV1CommentAutomationsByIdLogsErrors, type GetV1CommentAutomationsByIdLogsResponse, type GetV1CommentAutomationsByIdLogsResponses, type GetV1CommentAutomationsData, type GetV1CommentAutomationsError, type GetV1CommentAutomationsErrors, type GetV1CommentAutomationsPostsData, type GetV1CommentAutomationsPostsError, type GetV1CommentAutomationsPostsErrors, type GetV1CommentAutomationsPostsResponse, type GetV1CommentAutomationsPostsResponses, type GetV1CommentAutomationsResponse, type GetV1CommentAutomationsResponses, type GetV1CommentsData, type GetV1CommentsError, type GetV1CommentsErrors, type GetV1CommentsResponse, type GetV1CommentsResponses, type GetV1ConnectByPlatformData, type GetV1ConnectByPlatformError, type GetV1ConnectByPlatformErrors, type GetV1ConnectByPlatformResponse, type GetV1ConnectByPlatformResponses, type GetV1ConnectFacebookSelectionByTokenData, type GetV1ConnectFacebookSelectionByTokenError, type GetV1ConnectFacebookSelectionByTokenErrors, type GetV1ConnectFacebookSelectionByTokenResponse, type GetV1ConnectFacebookSelectionByTokenResponses, type GetV1ConnectIntegrationsByIdData, type GetV1ConnectIntegrationsByIdError, type GetV1ConnectIntegrationsByIdErrors, type GetV1ConnectIntegrationsByIdResponse, type GetV1ConnectIntegrationsByIdResponses, type GetV1ConnectIntegrationsData, type GetV1ConnectIntegrationsResponse, type GetV1ConnectIntegrationsResponses, type GetV1ConnectLinkedinSelectionByTokenData, type GetV1ConnectLinkedinSelectionByTokenError, type GetV1ConnectLinkedinSelectionByTokenErrors, type GetV1ConnectLinkedinSelectionByTokenResponse, type GetV1ConnectLinkedinSelectionByTokenResponses, type GetV1HealthAuthData, type GetV1HealthAuthResponse, type GetV1HealthAuthResponses, type GetV1HealthData, type GetV1HealthResponse, type GetV1HealthResponses, type GetV1LinkedinOrganizationLookupData, type GetV1LinkedinOrganizationLookupError, type GetV1LinkedinOrganizationLookupErrors, type GetV1LinkedinOrganizationLookupResponse, type GetV1LinkedinOrganizationLookupResponses, type GetV1MessagesByConversationIdData, type GetV1MessagesByConversationIdError, type GetV1MessagesByConversationIdErrors, type GetV1MessagesByConversationIdResponse, type GetV1MessagesByConversationIdResponses, type GetV1MessagesData, type GetV1MessagesError, type GetV1MessagesErrors, type GetV1MessagesResponse, type GetV1MessagesResponses, type GetV1NotificationsByIdData, type GetV1NotificationsByIdError, type GetV1NotificationsByIdErrors, type GetV1NotificationsByIdResponse, type GetV1NotificationsByIdResponses, type GetV1NotificationsData, type GetV1NotificationsResponse, type GetV1NotificationsResponses, type GetV1PinterestBoardsData, type GetV1PinterestBoardsError, type GetV1PinterestBoardsErrors, type GetV1PinterestBoardsResponse, type GetV1PinterestBoardsResponses, type GetV1PlatformsData, type GetV1PlatformsResponse, type GetV1PlatformsResponses, type GetV1PostsByPostIdData, type GetV1PostsByPostIdError, type GetV1PostsByPostIdErrors, type GetV1PostsByPostIdResponse, type GetV1PostsByPostIdResponses, type GetV1PostsData, type GetV1PostsError, type GetV1PostsErrors, type GetV1PostsResponse, type GetV1PostsResponses, type GetV1PostsScheduledData, type GetV1PostsScheduledResponse, type GetV1PostsScheduledResponses, type GetV1ProfilesByIdData, type GetV1ProfilesByIdError, type GetV1ProfilesByIdErrors, type GetV1ProfilesByIdResponse, type GetV1ProfilesByIdResponses, type GetV1ProfilesData, type GetV1ProfilesResponse, type GetV1ProfilesResponses, type GetV1TiktokCreatorInfoData, type GetV1TiktokCreatorInfoError, type GetV1TiktokCreatorInfoErrors, type GetV1TiktokCreatorInfoResponse, type GetV1TiktokCreatorInfoResponses, type GetV1UsageData, type GetV1UsageError, type GetV1UsageErrors, type GetV1UsageResponse, type GetV1UsageResponses, type GoogleBusinessConfigurations, type InstagramConfigurations, InternalServerError, type LinkedInConfigurations, type LinkedInMention, NotFoundError, type PatchV1AppsByIdData, type PatchV1AppsByIdError, type PatchV1AppsByIdErrors, type PatchV1AppsByIdResponse, type PatchV1AppsByIdResponses, type PatchV1CommentAutomationsByIdData, type PatchV1CommentAutomationsByIdError, type PatchV1CommentAutomationsByIdErrors, type PatchV1CommentAutomationsByIdResponse, type PatchV1CommentAutomationsByIdResponses, type PatchV1CommentsByCommentIdData, type PatchV1CommentsByCommentIdError, type PatchV1CommentsByCommentIdErrors, type PatchV1CommentsByCommentIdResponse, type PatchV1CommentsByCommentIdResponses, type PatchV1ConnectIntegrationsByIdData, type PatchV1ConnectIntegrationsByIdError, type PatchV1ConnectIntegrationsByIdErrors, type PatchV1ConnectIntegrationsByIdResponse, type PatchV1ConnectIntegrationsByIdResponses, type PatchV1NotificationsByIdData, type PatchV1NotificationsByIdError, type PatchV1NotificationsByIdErrors, type PatchV1NotificationsByIdResponse, type PatchV1NotificationsByIdResponses, type PatchV1PostsScheduledByPostIdData, type PatchV1PostsScheduledByPostIdError, type PatchV1PostsScheduledByPostIdErrors, type PatchV1PostsScheduledByPostIdResponse, type PatchV1PostsScheduledByPostIdResponses, type PatchV1ProfilesByIdData, type PatchV1ProfilesByIdError, type PatchV1ProfilesByIdErrors, type PatchV1ProfilesByIdResponse, type PatchV1ProfilesByIdResponses, PermissionDeniedError, type PinterestConfigurations, type Platform, type PostPayload, PostPeer, PostPeerError, type PostV1AiImageData, type PostV1AiImageError, type PostV1AiImageErrors, type PostV1AiImageResponse, type PostV1AiImageResponses, type PostV1AiWriteData, type PostV1AiWriteError, type PostV1AiWriteErrors, type PostV1AiWriteResponse, type PostV1AiWriteResponses, type PostV1AppsData, type PostV1AppsError, type PostV1AppsErrors, type PostV1AppsResponse, type PostV1AppsResponses, type PostV1CommentAutomationsData, type PostV1CommentAutomationsError, type PostV1CommentAutomationsErrors, type PostV1CommentAutomationsResponse, type PostV1CommentAutomationsResponses, type PostV1CommentsData, type PostV1CommentsError, type PostV1CommentsErrors, type PostV1CommentsResponse, type PostV1CommentsResponses, type PostV1ConnectBlueskyAuthData, type PostV1ConnectBlueskyAuthError, type PostV1ConnectBlueskyAuthErrors, type PostV1ConnectFacebookSelectionByTokenData, type PostV1ConnectFacebookSelectionByTokenError, type PostV1ConnectFacebookSelectionByTokenErrors, type PostV1ConnectFacebookSelectionByTokenResponse, type PostV1ConnectFacebookSelectionByTokenResponses, type PostV1ConnectLinkedinSelectionByTokenData, type PostV1ConnectLinkedinSelectionByTokenError, type PostV1ConnectLinkedinSelectionByTokenErrors, type PostV1ConnectLinkedinSelectionByTokenResponse, type PostV1ConnectLinkedinSelectionByTokenResponses, type PostV1MediaUploadData, type PostV1MediaUploadError, type PostV1MediaUploadErrors, type PostV1MediaUploadResponse, type PostV1MediaUploadResponses, type PostV1MessagesData, type PostV1MessagesError, type PostV1MessagesErrors, type PostV1MessagesResponse, type PostV1MessagesResponses, type PostV1NotificationsData, type PostV1NotificationsError, type PostV1NotificationsErrors, type PostV1NotificationsResponse, type PostV1NotificationsResponses, type PostV1NotificationsTestData, type PostV1NotificationsTestError, type PostV1NotificationsTestErrors, type PostV1NotificationsTestResponse, type PostV1NotificationsTestResponses, type PostV1PostsByPostIdRetryData, type PostV1PostsByPostIdRetryError, type PostV1PostsByPostIdRetryErrors, type PostV1PostsByPostIdRetryResponse, type PostV1PostsByPostIdRetryResponses, type PostV1PostsData, type PostV1PostsError, type PostV1PostsErrors, type PostV1PostsResponse, type PostV1PostsResponses, type PostV1PostsSyncExternalData, type PostV1PostsSyncExternalError, type PostV1PostsSyncExternalErrors, type PostV1PostsSyncExternalResponse, type PostV1PostsSyncExternalResponses, type PostV1ProfilesData, type PostV1ProfilesResponse, type PostV1ProfilesResponses, type PutV1PostsByPostIdData, type PutV1PostsByPostIdError, type PutV1PostsByPostIdErrors, type PutV1PostsByPostIdResponse, type PutV1PostsByPostIdResponses, type PutV1PostsScheduledByPostIdData, type PutV1PostsScheduledByPostIdError, type PutV1PostsScheduledByPostIdErrors, type PutV1PostsScheduledByPostIdResponse, type PutV1PostsScheduledByPostIdResponses, RateLimitError, type SortOrder, type Status, type ThreadsConfigurations, type TikTokConfigurations, type TwitterConfigurations, UnprocessableEntityError, VERSION, type YouTubeConfigurations, PostPeer as default };