@posty5/social-publisher-post 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -75,6 +75,12 @@ interface ICreateTextPostBase {
75
75
  twitter?: ITwitterTextConfig;
76
76
  schedule?: IScheduleConfig;
77
77
  comments?: ICommentRequest[];
78
+ /**
79
+ * Add the saved default comments (default: **true**): the workspace's for
80
+ * text posts plus account defaults marked `applyToWorkspacePosts`, or the
81
+ * account's own. Charged like any other comment. `false` adds none.
82
+ */
83
+ allowPostDefaultComments?: boolean;
78
84
  /** Saved hashtag groups merged into the caption (at most 5). */
79
85
  hashtagGroupIds?: string[];
80
86
  /** At most 30. */
@@ -202,7 +208,7 @@ interface ICreateImagePostToWorkspaceRequest {
202
208
  */
203
209
  comment?: ICommentRequest;
204
210
  /**
205
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
211
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
206
212
  * post.
207
213
  *
208
214
  * Each carries its own delay, its own optional image and its own per-platform
@@ -211,6 +217,20 @@ interface ICreateImagePostToWorkspaceRequest {
211
217
  * dropped before it is charged.
212
218
  */
213
219
  comments?: ICommentRequest[];
220
+ /**
221
+ * Add the saved default comments (default: **true**).
222
+ *
223
+ * On a workspace post: the workspace's defaults for this post type, plus the
224
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
225
+ * account's defaults. They are added after `comments`, copied onto the post
226
+ * now, and **charged like any other comment**. Defaults past a platform's
227
+ * ceiling are dropped and reported in the result's `warnings`.
228
+ *
229
+ * Send `false` to add none. When omitted and `comments` already carries a
230
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
231
+ * does not include comments.
232
+ */
233
+ allowPostDefaultComments?: boolean;
214
234
  tag?: string;
215
235
  refId?: string;
216
236
  }
@@ -237,7 +257,7 @@ interface ICreateImagePostToAccountRequest {
237
257
  */
238
258
  comment?: ICommentRequest;
239
259
  /**
240
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
260
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
241
261
  * post.
242
262
  *
243
263
  * Each carries its own delay, its own optional image and its own per-platform
@@ -246,11 +266,29 @@ interface ICreateImagePostToAccountRequest {
246
266
  * dropped before it is charged.
247
267
  */
248
268
  comments?: ICommentRequest[];
269
+ /**
270
+ * Add the saved default comments (default: **true**).
271
+ *
272
+ * On a workspace post: the workspace's defaults for this post type, plus the
273
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
274
+ * account's defaults. They are added after `comments`, copied onto the post
275
+ * now, and **charged like any other comment**. Defaults past a platform's
276
+ * ceiling are dropped and reported in the result's `warnings`.
277
+ *
278
+ * Send `false` to add none. When omitted and `comments` already carries a
279
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
280
+ * does not include comments.
281
+ */
282
+ allowPostDefaultComments?: boolean;
249
283
  tag?: string;
250
284
  refId?: string;
251
285
  }
252
- /** At most this many comments may ride on one post. Enforced server-side. */
253
- declare const MAX_POST_COMMENTS = 5;
286
+ /** At most this many comments one post may send to ONE platform. Enforced server-side. */
287
+ declare const MAX_POST_COMMENTS_PER_PLATFORM = 10;
288
+ /** At most this many comments one post may carry in all. Enforced server-side. */
289
+ declare const MAX_POST_COMMENTS_TOTAL = 30;
290
+ /** @deprecated Use {@link MAX_POST_COMMENTS_PER_PLATFORM}; it is the per-platform ceiling now. */
291
+ declare const MAX_POST_COMMENTS = 10;
254
292
  /** Longest a comment may be. */
255
293
  declare const MAX_COMMENT_LENGTH = 2200;
256
294
  /** Longest a comment may wait after the post before it is published. */
@@ -310,6 +348,18 @@ interface ICommentRequest {
310
348
  postToYoutube?: boolean;
311
349
  /** Post the comment on TikTok (default: false — not supported by TikTok). */
312
350
  postToTiktok?: boolean;
351
+ /** Post the comment as a Threads reply (default: true). */
352
+ postToThreads?: boolean;
353
+ /** Post the comment as a reply on X (default: true). */
354
+ postToTwitter?: boolean;
355
+ /**
356
+ * Set when this comment was copied from a default comment (for example from
357
+ * `resolveDefaultComments`). A default already carried this way is not added
358
+ * a second time.
359
+ */
360
+ defaultCommentId?: string;
361
+ /** Which kind of default `defaultCommentId` names. */
362
+ defaultCommentSource?: "workspace" | "account";
313
363
  }
314
364
  interface ICreateSocialPublisherPostRequest {
315
365
  /** Workspace ID */
@@ -331,7 +381,7 @@ interface ICreateSocialPublisherPostRequest {
331
381
  */
332
382
  comment?: ICommentRequest;
333
383
  /**
334
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
384
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
335
385
  * post.
336
386
  *
337
387
  * Each carries its own delay, its own optional image and its own per-platform
@@ -340,6 +390,20 @@ interface ICreateSocialPublisherPostRequest {
340
390
  * dropped before it is charged.
341
391
  */
342
392
  comments?: ICommentRequest[];
393
+ /**
394
+ * Add the saved default comments (default: **true**).
395
+ *
396
+ * On a workspace post: the workspace's defaults for this post type, plus the
397
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
398
+ * account's defaults. They are added after `comments`, copied onto the post
399
+ * now, and **charged like any other comment**. Defaults past a platform's
400
+ * ceiling are dropped and reported in the result's `warnings`.
401
+ *
402
+ * Send `false` to add none. When omitted and `comments` already carries a
403
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
404
+ * does not include comments.
405
+ */
406
+ allowPostDefaultComments?: boolean;
343
407
  /**
344
408
  * Tag (optional)
345
409
  * Use this field to filter posts by tag.
@@ -373,7 +437,7 @@ interface ICreateSocialPublisherAccountPostRequest {
373
437
  */
374
438
  comment?: ICommentRequest;
375
439
  /**
376
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
440
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
377
441
  * post.
378
442
  *
379
443
  * Each carries its own delay, its own optional image and its own per-platform
@@ -382,6 +446,20 @@ interface ICreateSocialPublisherAccountPostRequest {
382
446
  * dropped before it is charged.
383
447
  */
384
448
  comments?: ICommentRequest[];
449
+ /**
450
+ * Add the saved default comments (default: **true**).
451
+ *
452
+ * On a workspace post: the workspace's defaults for this post type, plus the
453
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
454
+ * account's defaults. They are added after `comments`, copied onto the post
455
+ * now, and **charged like any other comment**. Defaults past a platform's
456
+ * ceiling are dropped and reported in the result's `warnings`.
457
+ *
458
+ * Send `false` to add none. When omitted and `comments` already carries a
459
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
460
+ * does not include comments.
461
+ */
462
+ allowPostDefaultComments?: boolean;
385
463
  /**
386
464
  * Tag (optional)
387
465
  * Use this field to filter posts by tag.
@@ -413,7 +491,7 @@ interface IPostSetting {
413
491
  */
414
492
  comment?: ICommentRequest;
415
493
  /**
416
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
494
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
417
495
  * post.
418
496
  *
419
497
  * Each carries its own delay, its own optional image and its own per-platform
@@ -422,6 +500,20 @@ interface IPostSetting {
422
500
  * dropped before it is charged.
423
501
  */
424
502
  comments?: ICommentRequest[];
503
+ /**
504
+ * Add the saved default comments (default: **true**).
505
+ *
506
+ * On a workspace post: the workspace's defaults for this post type, plus the
507
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
508
+ * account's defaults. They are added after `comments`, copied onto the post
509
+ * now, and **charged like any other comment**. Defaults past a platform's
510
+ * ceiling are dropped and reported in the result's `warnings`.
511
+ *
512
+ * Send `false` to add none. When omitted and `comments` already carries a
513
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
514
+ * does not include comments.
515
+ */
516
+ allowPostDefaultComments?: boolean;
425
517
  /** Optional caller-supplied tag, persisted on the created post for filtering. */
426
518
  tag?: string;
427
519
  /** Optional caller-supplied reference ID, persisted on the created post for filtering. */
@@ -445,7 +537,7 @@ interface IAccountPostSetting {
445
537
  */
446
538
  comment?: ICommentRequest;
447
539
  /**
448
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
540
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
449
541
  * post.
450
542
  *
451
543
  * Each carries its own delay, its own optional image and its own per-platform
@@ -454,6 +546,20 @@ interface IAccountPostSetting {
454
546
  * dropped before it is charged.
455
547
  */
456
548
  comments?: ICommentRequest[];
549
+ /**
550
+ * Add the saved default comments (default: **true**).
551
+ *
552
+ * On a workspace post: the workspace's defaults for this post type, plus the
553
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
554
+ * account's defaults. They are added after `comments`, copied onto the post
555
+ * now, and **charged like any other comment**. Defaults past a platform's
556
+ * ceiling are dropped and reported in the result's `warnings`.
557
+ *
558
+ * Send `false` to add none. When omitted and `comments` already carries a
559
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
560
+ * does not include comments.
561
+ */
562
+ allowPostDefaultComments?: boolean;
457
563
  /** Optional caller-supplied tag, persisted on the created post for filtering. */
458
564
  tag?: string;
459
565
  /** Optional caller-supplied reference ID, persisted on the created post for filtering. */
@@ -538,7 +644,7 @@ interface IPublishOptions {
538
644
  */
539
645
  comment?: ICommentRequest;
540
646
  /**
541
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
647
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
542
648
  * post.
543
649
  *
544
650
  * Each carries its own delay, its own optional image and its own per-platform
@@ -547,6 +653,20 @@ interface IPublishOptions {
547
653
  * dropped before it is charged.
548
654
  */
549
655
  comments?: ICommentRequest[];
656
+ /**
657
+ * Add the saved default comments (default: **true**).
658
+ *
659
+ * On a workspace post: the workspace's defaults for this post type, plus the
660
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
661
+ * account's defaults. They are added after `comments`, copied onto the post
662
+ * now, and **charged like any other comment**. Defaults past a platform's
663
+ * ceiling are dropped and reported in the result's `warnings`.
664
+ *
665
+ * Send `false` to add none. When omitted and `comments` already carries a
666
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
667
+ * does not include comments.
668
+ */
669
+ allowPostDefaultComments?: boolean;
550
670
  }
551
671
  /**
552
672
  * Options for publishing to an account
@@ -615,7 +735,7 @@ interface IPublishToAccountOptions {
615
735
  */
616
736
  comment?: ICommentRequest;
617
737
  /**
618
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
738
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
619
739
  * post.
620
740
  *
621
741
  * Each carries its own delay, its own optional image and its own per-platform
@@ -624,6 +744,20 @@ interface IPublishToAccountOptions {
624
744
  * dropped before it is charged.
625
745
  */
626
746
  comments?: ICommentRequest[];
747
+ /**
748
+ * Add the saved default comments (default: **true**).
749
+ *
750
+ * On a workspace post: the workspace's defaults for this post type, plus the
751
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
752
+ * account's defaults. They are added after `comments`, copied onto the post
753
+ * now, and **charged like any other comment**. Defaults past a platform's
754
+ * ceiling are dropped and reported in the result's `warnings`.
755
+ *
756
+ * Send `false` to add none. When omitted and `comments` already carries a
757
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
758
+ * does not include comments.
759
+ */
760
+ allowPostDefaultComments?: boolean;
627
761
  }
628
762
  /**
629
763
  * Base interface for quick publish options
@@ -684,7 +818,7 @@ interface IQuickPublishBaseOptions {
684
818
  */
685
819
  comment?: ICommentRequest;
686
820
  /**
687
- * Up to {@link MAX_POST_COMMENTS} post-publish comments, in the order they
821
+ * Up to {@link MAX_POST_COMMENTS_PER_PLATFORM} post-publish comments per platform ({@link MAX_POST_COMMENTS_TOTAL} in all), in the order they
688
822
  * post.
689
823
  *
690
824
  * Each carries its own delay, its own optional image and its own per-platform
@@ -693,6 +827,20 @@ interface IQuickPublishBaseOptions {
693
827
  * dropped before it is charged.
694
828
  */
695
829
  comments?: ICommentRequest[];
830
+ /**
831
+ * Add the saved default comments (default: **true**).
832
+ *
833
+ * On a workspace post: the workspace's defaults for this post type, plus the
834
+ * account defaults marked `applyToWorkspacePosts`. On an account post: that
835
+ * account's defaults. They are added after `comments`, copied onto the post
836
+ * now, and **charged like any other comment**. Defaults past a platform's
837
+ * ceiling are dropped and reported in the result's `warnings`.
838
+ *
839
+ * Send `false` to add none. When omitted and `comments` already carries a
840
+ * `defaultCommentId`, none are added either. Nothing is added when the plan
841
+ * does not include comments.
842
+ */
843
+ allowPostDefaultComments?: boolean;
696
844
  }
697
845
  /**
698
846
  * Quick publish options for YouTube only
@@ -961,6 +1109,15 @@ interface ICreatePostResult {
961
1109
  truncatedTargets?: string[];
962
1110
  /** Connected platforms that cannot take this post type. */
963
1111
  skippedPlatforms?: string[];
1112
+ /** Default comments left off because a platform (or the post) was at its comment ceiling. */
1113
+ warnings?: IDefaultCommentWarning[];
1114
+ }
1115
+ /** Why some default comments were not added to a post. */
1116
+ interface IDefaultCommentWarning {
1117
+ code: "DEFAULT_COMMENTS_TRUNCATED" | string;
1118
+ /** The platform whose ceiling was hit, or `all` for the post's total ceiling. */
1119
+ platform: string;
1120
+ dropped: number;
964
1121
  }
965
1122
 
966
1123
  interface IUploadConfig {
@@ -1798,4 +1955,4 @@ declare function terminateUpload(uploadUrl: string): Promise<boolean>;
1798
1955
  */
1799
1956
  declare function uploadResumable(target: IUploadTarget, file: Blob, options?: IResumableUploadOptions): Promise<string>;
1800
1957
 
1801
- export { type CommentStatusType, DEFAULT_CHUNK_SIZE, type IAccountPostSetting, type IBaseStatusHistoryGroupedDay, type IBaseStatusHistoryGroupedItem, type ICommentInfoDTO, type ICommentRequest, type ICommentStatusDTO, type ICreateImagePostToAccountRequest, type ICreateImagePostToWorkspaceRequest, type ICreatePostResult, type ICreateSocialPublisherAccountPostRequest, type ICreateSocialPublisherPostRequest, type ICreateStoryPostBase, type ICreateStoryPostToAccountRequest, type ICreateStoryPostToWorkspaceRequest, type ICreateTextPostBase, type ICreateTextPostToAccountRequest, type ICreateTextPostToWorkspaceRequest, type IDefaultSettingsResponse, type IFacebookPageConfig, type IFacebookTextConfig, type IGenerateUploadUrlsRequest, type IGenerateUploadUrlsResponse, type IImageDTO, type IImageMediaRequest, type IInstagramConfig, type IListParams, type ILongVideoPlatformVerdict, type ILongVideoQuoteResponse, type ILongVideoRefusedTarget, type ILongVideoUploadControls, type IPostSetting, type IPostUtmConfig, type IPublishLongVideoOptions, type IPublishLongVideoResult, type IPublishLongVideoToAccountOptions, type IPublishOptions, type IPublishToAccountOptions, type IQuickPublishAllOptions, type IQuickPublishBaseOptions, type IQuickPublishFacebookOptions, type IQuickPublishInstagramOptions, type IQuickPublishTikTokOptions, type IQuickPublishYouTubeOptions, type IRemovePostPlatformResult, type IRemovePostResponse, type IReschedulePostRequest, type IResumableUploadOptions, type IScheduleConfig, type ISearchSocialPublisherPostResponse, type ISocialPublisherAccount, type ISocialPublisherPostAccount, type ISocialPublisherPostFacebookPagePostDetails, type ISocialPublisherPostInfo, type ISocialPublisherPostInstagramPostDetails, type ISocialPublisherPostNextPreviousResponse, type ISocialPublisherPostPlatform, type ISocialPublisherPostResponse, type ISocialPublisherPostStatusLog, type ISocialPublisherPostStatusResponse, type ISocialPublisherPostTikTokPostDetails, type ISocialPublisherPostYouTubePostDetails, type ISocialPublisherWorkspace, type IThreadsTextConfig, type ITikTokConfig, type ITwitterTextConfig, type IUploadConfig, type IUploadTarget, type IVideoDTO, type IYouTubeConfig, type ImageSourceType, LONG_VIDEO_CREDIT_UNIT_SECONDS, LONG_VIDEO_MAX_DURATION_SECONDS, MAX_COMMENT_DELAY_MINUTES, MAX_COMMENT_LENGTH, MAX_POST_COMMENTS, type SocialPublisherAccountAccountType, type SocialPublisherAccountPlatformType, type SocialPublisherAccountStatusType, type SocialPublisherPostAccountType, SocialPublisherPostClient, type SocialPublisherPostRemovePlatformType, type SocialPublisherPostScheduleType, type SocialPublisherPostSourceType, type SocialPublisherPostStatusType, type SocialPublisherPostType, supportsResumableUpload, terminateUpload, uploadResumable };
1958
+ export { type CommentStatusType, DEFAULT_CHUNK_SIZE, type IAccountPostSetting, type IBaseStatusHistoryGroupedDay, type IBaseStatusHistoryGroupedItem, type ICommentInfoDTO, type ICommentRequest, type ICommentStatusDTO, type ICreateImagePostToAccountRequest, type ICreateImagePostToWorkspaceRequest, type ICreatePostResult, type ICreateSocialPublisherAccountPostRequest, type ICreateSocialPublisherPostRequest, type ICreateStoryPostBase, type ICreateStoryPostToAccountRequest, type ICreateStoryPostToWorkspaceRequest, type ICreateTextPostBase, type ICreateTextPostToAccountRequest, type ICreateTextPostToWorkspaceRequest, type IDefaultCommentWarning, type IDefaultSettingsResponse, type IFacebookPageConfig, type IFacebookTextConfig, type IGenerateUploadUrlsRequest, type IGenerateUploadUrlsResponse, type IImageDTO, type IImageMediaRequest, type IInstagramConfig, type IListParams, type ILongVideoPlatformVerdict, type ILongVideoQuoteResponse, type ILongVideoRefusedTarget, type ILongVideoUploadControls, type IPostSetting, type IPostUtmConfig, type IPublishLongVideoOptions, type IPublishLongVideoResult, type IPublishLongVideoToAccountOptions, type IPublishOptions, type IPublishToAccountOptions, type IQuickPublishAllOptions, type IQuickPublishBaseOptions, type IQuickPublishFacebookOptions, type IQuickPublishInstagramOptions, type IQuickPublishTikTokOptions, type IQuickPublishYouTubeOptions, type IRemovePostPlatformResult, type IRemovePostResponse, type IReschedulePostRequest, type IResumableUploadOptions, type IScheduleConfig, type ISearchSocialPublisherPostResponse, type ISocialPublisherAccount, type ISocialPublisherPostAccount, type ISocialPublisherPostFacebookPagePostDetails, type ISocialPublisherPostInfo, type ISocialPublisherPostInstagramPostDetails, type ISocialPublisherPostNextPreviousResponse, type ISocialPublisherPostPlatform, type ISocialPublisherPostResponse, type ISocialPublisherPostStatusLog, type ISocialPublisherPostStatusResponse, type ISocialPublisherPostTikTokPostDetails, type ISocialPublisherPostYouTubePostDetails, type ISocialPublisherWorkspace, type IThreadsTextConfig, type ITikTokConfig, type ITwitterTextConfig, type IUploadConfig, type IUploadTarget, type IVideoDTO, type IYouTubeConfig, type ImageSourceType, LONG_VIDEO_CREDIT_UNIT_SECONDS, LONG_VIDEO_MAX_DURATION_SECONDS, MAX_COMMENT_DELAY_MINUTES, MAX_COMMENT_LENGTH, MAX_POST_COMMENTS, MAX_POST_COMMENTS_PER_PLATFORM, MAX_POST_COMMENTS_TOTAL, type SocialPublisherAccountAccountType, type SocialPublisherAccountPlatformType, type SocialPublisherAccountStatusType, type SocialPublisherPostAccountType, SocialPublisherPostClient, type SocialPublisherPostRemovePlatformType, type SocialPublisherPostScheduleType, type SocialPublisherPostSourceType, type SocialPublisherPostStatusType, type SocialPublisherPostType, supportsResumableUpload, terminateUpload, uploadResumable };
package/dist/index.js CHANGED
@@ -19516,7 +19516,9 @@ var SocialPublisherPostClient = class {
19516
19516
  source: "video-file",
19517
19517
  tag: options.tag,
19518
19518
  refId: options.refId,
19519
- comment: options.comment
19519
+ comment: options.comment,
19520
+ comments: options.comments,
19521
+ allowPostDefaultComments: options.allowPostDefaultComments
19520
19522
  };
19521
19523
  const source = this.detectVideoSource(options.video);
19522
19524
  switch (source) {
@@ -19561,7 +19563,9 @@ var SocialPublisherPostClient = class {
19561
19563
  source: "video-file",
19562
19564
  tag: options.tag,
19563
19565
  refId: options.refId,
19564
- comment: options.comment
19566
+ comment: options.comment,
19567
+ comments: options.comments,
19568
+ allowPostDefaultComments: options.allowPostDefaultComments
19565
19569
  };
19566
19570
  switch (source) {
19567
19571
  case "file": {
@@ -19674,7 +19678,9 @@ var SocialPublisherPostClient = class {
19674
19678
  thumbURL: thumb?.thumbFileURL,
19675
19679
  tag: options.tag,
19676
19680
  refId: options.refId,
19677
- comment: options.comment
19681
+ comment: options.comment,
19682
+ comments: options.comments,
19683
+ allowPostDefaultComments: options.allowPostDefaultComments
19678
19684
  };
19679
19685
  const target = isFile2 ? "by-file" : "by-url";
19680
19686
  const id = postId ?? thumb?.postId;
@@ -19726,7 +19732,9 @@ var SocialPublisherPostClient = class {
19726
19732
  thumbURL: thumb?.thumbFileURL,
19727
19733
  tag: options.tag,
19728
19734
  refId: options.refId,
19729
- comment: options.comment
19735
+ comment: options.comment,
19736
+ comments: options.comments,
19737
+ allowPostDefaultComments: options.allowPostDefaultComments
19730
19738
  };
19731
19739
  const target = isFile2 ? "by-file" : "by-url";
19732
19740
  const id = postId ?? thumb?.postId;
@@ -19866,7 +19874,9 @@ var SocialPublisherPostClient = class {
19866
19874
  };
19867
19875
 
19868
19876
  // src/interfaces/requests/index.ts
19869
- var MAX_POST_COMMENTS = 5;
19877
+ var MAX_POST_COMMENTS_PER_PLATFORM = 10;
19878
+ var MAX_POST_COMMENTS_TOTAL = 30;
19879
+ var MAX_POST_COMMENTS = MAX_POST_COMMENTS_PER_PLATFORM;
19870
19880
  var MAX_COMMENT_LENGTH = 2200;
19871
19881
  var MAX_COMMENT_DELAY_MINUTES = 24 * 60;
19872
19882
  var LONG_VIDEO_MAX_DURATION_SECONDS = 3600;
@@ -19897,6 +19907,8 @@ exports.LONG_VIDEO_MAX_DURATION_SECONDS = LONG_VIDEO_MAX_DURATION_SECONDS;
19897
19907
  exports.MAX_COMMENT_DELAY_MINUTES = MAX_COMMENT_DELAY_MINUTES;
19898
19908
  exports.MAX_COMMENT_LENGTH = MAX_COMMENT_LENGTH;
19899
19909
  exports.MAX_POST_COMMENTS = MAX_POST_COMMENTS;
19910
+ exports.MAX_POST_COMMENTS_PER_PLATFORM = MAX_POST_COMMENTS_PER_PLATFORM;
19911
+ exports.MAX_POST_COMMENTS_TOTAL = MAX_POST_COMMENTS_TOTAL;
19900
19912
  exports.SocialPublisherPostClient = SocialPublisherPostClient;
19901
19913
  exports.supportsResumableUpload = supportsResumableUpload;
19902
19914
  exports.terminateUpload = terminateUpload;