upload-post 2.12.0 → 2.13.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/README.md CHANGED
@@ -675,6 +675,7 @@ These options work across all upload methods:
675
675
  | `platforms` | Target platforms array (required) |
676
676
  | `firstComment` | First comment to post |
677
677
  | `tiktokFirstComment` | First comment for TikTok only (needs the `comments` capability) |
678
+ | `replyToId` | Publish as a reply to an existing post (X: tweet ID; Bluesky: post URL or AT-URI). Alias: `xReplyToId` |
678
679
  | `altText` | Alt text for accessibility |
679
680
  | `scheduledDate` | ISO date for scheduling |
680
681
  | `timezone` | Timezone for scheduled date |
package/index.d.ts CHANGED
@@ -56,6 +56,8 @@ declare module 'upload-post' {
56
56
  user: string;
57
57
  /** First comment to post after publishing */
58
58
  firstComment?: string;
59
+ /** Reply to an existing post (X: tweet ID; Bluesky: post URL or AT-URI). */
60
+ replyToId?: string;
59
61
  /** Alt text for accessibility */
60
62
  altText?: string;
61
63
  /** ISO date for scheduling (e.g., "2024-12-25T10:00:00Z") */
@@ -372,6 +374,8 @@ declare module 'upload-post' {
372
374
  xDirectMessageDeepLink?: string;
373
375
  /** Post long text as single post */
374
376
  xLongTextAsPost?: boolean;
377
+ /** ID of the tweet to reply to (alias of the generic replyToId). */
378
+ xReplyToId?: string;
375
379
  }
376
380
 
377
381
  export interface XMediaOptions extends XBaseOptions {
package/index.js CHANGED
@@ -82,6 +82,10 @@ export class UploadPost {
82
82
 
83
83
  // Optional common parameters
84
84
  if (options.firstComment) form.append('first_comment', options.firstComment);
85
+ // Reply to an existing post (X: tweet ID; Bluesky: post URL or AT-URI). The
86
+ // API has always accepted `reply_to_id`; the SDK simply never mapped it.
87
+ const replyToId = options.replyToId || options.xReplyToId || options.blueskyReplyToId;
88
+ if (replyToId) form.append('reply_to_id', replyToId);
85
89
  if (options.altText) form.append('alt_text', options.altText);
86
90
  if (options.scheduledDate) form.append('scheduled_date', options.scheduledDate);
87
91
  if (options.timezone) form.append('timezone', options.timezone);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upload-post",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "Official client library for Upload-Post API - Cross-platform social media upload for TikTok, Instagram, YouTube, LinkedIn, Facebook, Pinterest, Threads, Reddit, Bluesky, and X (Twitter)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",