@posty5/social-publisher-post 4.0.0 → 4.1.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 +14 -72
- package/dist/index.d.mts +16 -38
- package/dist/index.d.ts +16 -38
- package/dist/index.js +17520 -71
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17505 -69
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @posty5/social-publisher-post
|
|
2
2
|
|
|
3
|
-
Official Posty5 SDK for managing social media publishing posts.
|
|
3
|
+
Official Posty5 SDK for managing social media publishing posts. Prepare creator-owned videos for YouTube Shorts, TikTok, Facebook Reels, and Instagram Reels with a unified, developer-friendly API.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ Official Posty5 SDK for managing social media publishing posts. Publish videos t
|
|
|
11
11
|
- 🔗 **Shorten URLs** - Create memorable, trackable short links
|
|
12
12
|
- 📱 **Generate QR Codes** - Transform URLs, WiFi credentials, contact cards, and more into scannable codes
|
|
13
13
|
- 🌠**Host HTML Pages** - Deploy static HTML pages with dynamic variables and form submission handling
|
|
14
|
-
- 📢 **
|
|
14
|
+
- 📢 **Social Publishing** - Prepare and manage creator-controlled social media posts across connected platforms
|
|
15
15
|
- 📊 **Track Performance** - Monitor and analyze your digital marketing efforts
|
|
16
16
|
|
|
17
17
|
Posty5 empowers businesses, marketers, and developers to streamline their online workflows—all from a unified control panel.
|
|
@@ -22,29 +22,29 @@ Posty5 empowers businesses, marketers, and developers to streamline their online
|
|
|
22
22
|
|
|
23
23
|
## 📦 About This Package
|
|
24
24
|
|
|
25
|
-
`@posty5/social-publisher-post` is the **post management client** for the Posty5 Social Media Publisher.
|
|
25
|
+
`@posty5/social-publisher-post` is the **post management client** for the Posty5 Social Media Publisher. Use it with videos you created or have the rights to publish. TikTok Direct Post requires the creator-controlled Posty5 review flow before submission.
|
|
26
26
|
|
|
27
27
|
### What are Social Publisher Posts?
|
|
28
28
|
|
|
29
|
-
Posts represent video publishing jobs
|
|
29
|
+
Posts represent video publishing jobs for connected YouTube, TikTok, Facebook, and Instagram accounts. Each post handles video upload, platform-specific configuration, scheduling, and status tracking.
|
|
30
30
|
|
|
31
31
|
### Key Capabilities
|
|
32
32
|
|
|
33
|
-
- **Multi-Platform
|
|
34
|
-
- **
|
|
33
|
+
- **Multi-Platform Preparation** - Prepare posts for connected YouTube, TikTok, Facebook, and Instagram accounts
|
|
34
|
+
- **Authorized Video Sources** - Upload files or provide direct video file URLs for content you created or have rights to publish
|
|
35
35
|
- **Smart Thumbnail Handling** - Upload files or provide URLs for thumbnail images
|
|
36
36
|
- **Platform-Specific Configuration** - Customize titles, descriptions, captions, tags, and privacy settings per platform
|
|
37
37
|
- **Schedule Publishing** - Publish immediately or schedule for optimal engagement times
|
|
38
|
-
- **
|
|
38
|
+
- **TikTok Direct Post Review** - TikTok publishing requires manual privacy selection, disclosure options when needed, and explicit creator confirmation in Posty5
|
|
39
39
|
- **Post Status Tracking** - Monitor publishing progress and platform-specific status
|
|
40
40
|
- **Tag & Reference System** - Organize posts using custom tags and reference IDs
|
|
41
41
|
- **Pagination & Filtering** - Search posts by workspace, status, tag, or reference ID
|
|
42
42
|
|
|
43
43
|
### Why Use This Package?
|
|
44
44
|
|
|
45
|
-
- **Time Saving**:
|
|
46
|
-
- **
|
|
47
|
-
- **
|
|
45
|
+
- **Time Saving**: Prepare platform-specific settings from one integration while keeping TikTok publishing creator-controlled
|
|
46
|
+
- **Reviewed Workflow**: Integrate publishing status and configuration while preserving the Posty5 TikTok review and confirmation flow
|
|
47
|
+
- **Rights-Aware Publishing**: Use original videos or content you have permission to publish
|
|
48
48
|
- **Consistent Branding**: Apply platform-optimized metadata while maintaining brand voice
|
|
49
49
|
- **Progress Tracking**: Monitor post status and handle errors programmatically
|
|
50
50
|
|
|
@@ -110,13 +110,13 @@ console.log("YouTube:", status.youtube?.postInfo.currentStatus);
|
|
|
110
110
|
|
|
111
111
|
### publishShortVideo()
|
|
112
112
|
|
|
113
|
-
Publish a short video to one or more social media
|
|
113
|
+
Publish a short video to one or more connected social media accounts. Use file uploads or direct video file URLs for content you created or have the rights to publish. TikTok Direct Post must go through the Posty5 creator review and confirmation flow.
|
|
114
114
|
|
|
115
115
|
**Parameters:**
|
|
116
116
|
|
|
117
117
|
- `options` (IPublishOptions): Publishing configuration
|
|
118
118
|
- `workspaceId` (string, required): Workspace ID containing connected social accounts
|
|
119
|
-
- `video` (File | string, required): Video source - File object
|
|
119
|
+
- `video` (File | string, required): Video source - File object or direct video file URL only.
|
|
120
120
|
- `thumbnail` (File | string, optional): Thumbnail image - File object or URL string
|
|
121
121
|
- `youtube` (IYouTubeConfig, optional): YouTube configuration — **required** if the workspace has a YouTube account connected
|
|
122
122
|
- `tiktok` (ITikTokConfig, optional): TikTok configuration — **required** if the workspace has a TikTok account connected
|
|
@@ -259,65 +259,7 @@ const postId = await client.publishShortVideo({
|
|
|
259
259
|
console.log("Published to all platforms:", postId);
|
|
260
260
|
```
|
|
261
261
|
|
|
262
|
-
**
|
|
263
|
-
|
|
264
|
-
```typescript
|
|
265
|
-
// Automatically detect and repost from TikTok
|
|
266
|
-
const postId = await client.publishShortVideo({
|
|
267
|
-
workspaceId: "workspace-123",
|
|
268
|
-
video: "https://www.tiktok.com/@username/video/1234567890", // TikTok URL
|
|
269
|
-
youtube: {
|
|
270
|
-
title: "Viral TikTok Repost",
|
|
271
|
-
description: "Sharing this viral moment from TikTok",
|
|
272
|
-
tags: ["tiktok", "viral", "repost"],
|
|
273
|
-
},
|
|
274
|
-
});
|
|
275
|
-
|
|
276
|
-
console.log("Reposted from TikTok to YouTube:", postId);
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
**Example - Repost from YouTube Shorts:**
|
|
280
|
-
|
|
281
|
-
```typescript
|
|
282
|
-
// Repost YouTube Shorts to TikTok
|
|
283
|
-
const postId = await client.publishShortVideo({
|
|
284
|
-
workspaceId: "workspace-123",
|
|
285
|
-
video: "https://www.youtube.com/shorts/abc123", // YouTube Shorts URL
|
|
286
|
-
tiktok: {
|
|
287
|
-
caption: "Check out this YouTube Short! #YouTubeShorts",
|
|
288
|
-
privacy_level: "public",
|
|
289
|
-
disable_duet: false,
|
|
290
|
-
disable_stitch: false,
|
|
291
|
-
disable_comment: false,
|
|
292
|
-
},
|
|
293
|
-
});
|
|
294
|
-
|
|
295
|
-
console.log("Reposted from YouTube to TikTok:", postId);
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
**Example - Repost from Facebook:**
|
|
299
|
-
|
|
300
|
-
```typescript
|
|
301
|
-
// Repost Facebook video to other platforms
|
|
302
|
-
const postId = await client.publishShortVideo({
|
|
303
|
-
workspaceId: "workspace-123",
|
|
304
|
-
video: "https://www.facebook.com/reel/1234567890", // Facebook Reel URL
|
|
305
|
-
youtube: {
|
|
306
|
-
title: "Facebook Viral Moment",
|
|
307
|
-
description: "Reposting this viral moment from Facebook",
|
|
308
|
-
tags: ["facebook", "viral", "repost"],
|
|
309
|
-
},
|
|
310
|
-
tiktok: {
|
|
311
|
-
caption: "Viral moment from Facebook! #Viral",
|
|
312
|
-
privacy_level: "public",
|
|
313
|
-
disable_duet: false,
|
|
314
|
-
disable_stitch: false,
|
|
315
|
-
disable_comment: false,
|
|
316
|
-
},
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
console.log("Reposted from Facebook:", postId);
|
|
320
|
-
```
|
|
262
|
+
> **TikTok Direct Post note:** This SDK supports file uploads and direct video file URLs only. TikTok publishing in Posty5 is creator-controlled: the connected account owner reviews the video, confirms the TikTok nickname, edits caption text, manually selects privacy and interaction settings, completes disclosure options when required, and explicitly confirms publishing before submission.
|
|
321
263
|
|
|
322
264
|
**Example - Scheduled Publishing:**
|
|
323
265
|
|
|
@@ -862,7 +804,7 @@ import {
|
|
|
862
804
|
|
|
863
805
|
// Status types
|
|
864
806
|
SocialPublisherPostStatusType, // 'pending' | 'processing' | 'done' | 'error' | ...
|
|
865
|
-
SocialPublisherPostSourceType, // 'video-file' | 'video-url'
|
|
807
|
+
SocialPublisherPostSourceType, // 'video-file' | 'video-url'
|
|
866
808
|
SocialPublisherAccountStatusType, // 'active' | 'inactive' | 'authenticationExpired'
|
|
867
809
|
} from "@posty5/social-publisher-post";
|
|
868
810
|
```
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IPaginationResponse, HttpClient, IPaginationParams } from '@posty5/core';
|
|
2
|
+
export { HttpClient, IHttpClientConfig, IPosty5Config, uploadToR2 } from '@posty5/core';
|
|
2
3
|
|
|
3
4
|
type SocialPublisherPostStatusType = "pending" | "processing" | "processingInPlatform" | "failedByPlatform" | "done" | "error" | "canceled" | "needsMaintenance" | "invalidVideoURL" | "invalidPostVideoURL" | "retrying";
|
|
4
5
|
type SocialPublisherPostType = "shortVideo";
|
|
5
6
|
type SocialPublisherPostAccountType = "youtube" | "facebook" | "instagram" | "tiktok";
|
|
6
7
|
type SocialPublisherPostScheduleType = "now" | "schedule";
|
|
7
|
-
type SocialPublisherPostSourceType = "video-file" | "video-url"
|
|
8
|
+
type SocialPublisherPostSourceType = "video-file" | "video-url";
|
|
8
9
|
/**
|
|
9
10
|
* Status of the optional post-publish comment, reported per-platform.
|
|
10
11
|
* - `pending`: queued, waiting for the parent post to be published
|
|
@@ -140,7 +141,6 @@ interface ICreateSocialPublisherPostRequest {
|
|
|
140
141
|
instagram?: IInstagramConfig;
|
|
141
142
|
videoURL?: string;
|
|
142
143
|
thumbURL?: string;
|
|
143
|
-
postURL?: string;
|
|
144
144
|
schedule?: IScheduleConfig;
|
|
145
145
|
/**
|
|
146
146
|
* Optional post-publish comment (Pro plan, +1 credit).
|
|
@@ -171,7 +171,6 @@ interface ICreateSocialPublisherAccountPostRequest {
|
|
|
171
171
|
instagram?: IInstagramConfig;
|
|
172
172
|
videoURL?: string;
|
|
173
173
|
thumbURL?: string;
|
|
174
|
-
postURL?: string;
|
|
175
174
|
schedule?: IScheduleConfig;
|
|
176
175
|
/**
|
|
177
176
|
* Optional post-publish comment (Pro plan, +1 credit).
|
|
@@ -241,10 +240,9 @@ interface IPublishOptions {
|
|
|
241
240
|
* Video source (required)
|
|
242
241
|
* Can be:
|
|
243
242
|
* - File object (will be uploaded)
|
|
244
|
-
* - Direct video URL (http://... or https://...)
|
|
245
|
-
*
|
|
246
|
-
* -
|
|
247
|
-
* - YouTube Shorts URL (auto-detected for repost)
|
|
243
|
+
* - Direct video file URL (http://... or https://...)
|
|
244
|
+
*
|
|
245
|
+
* Third-party platform URLs are not supported by the public SDK.
|
|
248
246
|
*/
|
|
249
247
|
video: File | string;
|
|
250
248
|
/**
|
|
@@ -306,10 +304,9 @@ interface IPublishToAccountOptions {
|
|
|
306
304
|
* Video source (required)
|
|
307
305
|
* Can be:
|
|
308
306
|
* - File object (will be uploaded)
|
|
309
|
-
* - Direct video URL (http://... or https://...)
|
|
310
|
-
*
|
|
311
|
-
* -
|
|
312
|
-
* - YouTube Shorts URL (auto-detected for repost)
|
|
307
|
+
* - Direct video file URL (http://... or https://...)
|
|
308
|
+
*
|
|
309
|
+
* Third-party platform URLs are not supported by the public SDK.
|
|
313
310
|
*/
|
|
314
311
|
video: File | string;
|
|
315
312
|
/**
|
|
@@ -373,7 +370,7 @@ interface IQuickPublishBaseOptions {
|
|
|
373
370
|
* Video source (required)
|
|
374
371
|
* Can be:
|
|
375
372
|
* - File object: Will be uploaded to cloud storage
|
|
376
|
-
* - URL string: Direct video URL
|
|
373
|
+
* - URL string: Direct video file URL for original or authorized content
|
|
377
374
|
*
|
|
378
375
|
* Supported formats: .mp4, .mov, .avi, .mkv, .webm
|
|
379
376
|
*/
|
|
@@ -721,10 +718,6 @@ interface ISocialPublisherPostStatusResponse {
|
|
|
721
718
|
* Image URL (image-post type). Returned for posts of `type: "image"`.
|
|
722
719
|
*/
|
|
723
720
|
imageURL?: string;
|
|
724
|
-
/**
|
|
725
|
-
* Post URL, can be null if didn't upload any post or passed URL for platforms like facebook, tiktok, youtube
|
|
726
|
-
*/
|
|
727
|
-
postURL?: string;
|
|
728
721
|
};
|
|
729
722
|
/** Image-post metadata — only present when `type === "image"`. */
|
|
730
723
|
image?: IImageDTO;
|
|
@@ -930,14 +923,6 @@ declare class SocialPublisherPostClient {
|
|
|
930
923
|
* @returns Created post response
|
|
931
924
|
*/
|
|
932
925
|
private publishShortVideoToWorkspaceByURL;
|
|
933
|
-
/**
|
|
934
|
-
* Publish a repost video from TikTok
|
|
935
|
-
* @param settings - Post creation settings
|
|
936
|
-
* @param videoURL - TikTok video URL (tiktok.com, vm.tiktok.com)
|
|
937
|
-
* @param thumb - Optional thumbnail image file or URL string
|
|
938
|
-
* @returns Created post response
|
|
939
|
-
*/
|
|
940
|
-
private publishRepostVideoToWorkspace;
|
|
941
926
|
/**
|
|
942
927
|
* Publish a short video to account by uploading a video file
|
|
943
928
|
*/
|
|
@@ -947,12 +932,9 @@ declare class SocialPublisherPostClient {
|
|
|
947
932
|
*/
|
|
948
933
|
private publishShortVideoToAccountByURL;
|
|
949
934
|
/**
|
|
950
|
-
* Publish a
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* Publish a video to multiple social media platforms with auto-detection
|
|
955
|
-
* This is the recommended method for most use cases.
|
|
935
|
+
* Publish a video to connected social media accounts.
|
|
936
|
+
* Use original or authorized content only. TikTok Direct Post requires
|
|
937
|
+
* the creator-controlled Posty5 review and confirmation flow.
|
|
956
938
|
*
|
|
957
939
|
* @param options - Simplified publishing options
|
|
958
940
|
* @returns Created post response
|
|
@@ -984,17 +966,12 @@ declare class SocialPublisherPostClient {
|
|
|
984
966
|
* tiktok: { caption: 'Caption', privacy_level: 'public', disable_duet: false, disable_stitch: false, disable_comment: false }
|
|
985
967
|
* });
|
|
986
968
|
*
|
|
987
|
-
* // Repost from Facebook (auto-detected)
|
|
988
|
-
* await client.publishShortVideoToWorkspace({
|
|
989
|
-
* workspaceId: 'workspace-123',
|
|
990
|
-
* video: 'https://facebook.com/video/12345',
|
|
991
|
-
* youtube: { title: 'Reposted', description: 'From FB', tags: [] }
|
|
992
|
-
* });
|
|
993
969
|
* ```
|
|
994
970
|
*/
|
|
995
971
|
publishShortVideoToWorkspace(options: IPublishOptions): Promise<string>;
|
|
996
972
|
/**
|
|
997
|
-
* Publish a video to
|
|
973
|
+
* Publish a video to a connected social media account.
|
|
974
|
+
* Use original or authorized content only.
|
|
998
975
|
*
|
|
999
976
|
* @param options - Simplified publishing options for account
|
|
1000
977
|
* @returns Created post response
|
|
@@ -1005,7 +982,8 @@ declare class SocialPublisherPostClient {
|
|
|
1005
982
|
*/
|
|
1006
983
|
publishShortVideo(options: IPublishOptions): Promise<string>;
|
|
1007
984
|
/**
|
|
1008
|
-
* Auto-detect video source type
|
|
985
|
+
* Auto-detect video source type.
|
|
986
|
+
*
|
|
1009
987
|
* @param video - File or URL string
|
|
1010
988
|
* @returns Detected source type and video
|
|
1011
989
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IPaginationResponse, HttpClient, IPaginationParams } from '@posty5/core';
|
|
2
|
+
export { HttpClient, IHttpClientConfig, IPosty5Config, uploadToR2 } from '@posty5/core';
|
|
2
3
|
|
|
3
4
|
type SocialPublisherPostStatusType = "pending" | "processing" | "processingInPlatform" | "failedByPlatform" | "done" | "error" | "canceled" | "needsMaintenance" | "invalidVideoURL" | "invalidPostVideoURL" | "retrying";
|
|
4
5
|
type SocialPublisherPostType = "shortVideo";
|
|
5
6
|
type SocialPublisherPostAccountType = "youtube" | "facebook" | "instagram" | "tiktok";
|
|
6
7
|
type SocialPublisherPostScheduleType = "now" | "schedule";
|
|
7
|
-
type SocialPublisherPostSourceType = "video-file" | "video-url"
|
|
8
|
+
type SocialPublisherPostSourceType = "video-file" | "video-url";
|
|
8
9
|
/**
|
|
9
10
|
* Status of the optional post-publish comment, reported per-platform.
|
|
10
11
|
* - `pending`: queued, waiting for the parent post to be published
|
|
@@ -140,7 +141,6 @@ interface ICreateSocialPublisherPostRequest {
|
|
|
140
141
|
instagram?: IInstagramConfig;
|
|
141
142
|
videoURL?: string;
|
|
142
143
|
thumbURL?: string;
|
|
143
|
-
postURL?: string;
|
|
144
144
|
schedule?: IScheduleConfig;
|
|
145
145
|
/**
|
|
146
146
|
* Optional post-publish comment (Pro plan, +1 credit).
|
|
@@ -171,7 +171,6 @@ interface ICreateSocialPublisherAccountPostRequest {
|
|
|
171
171
|
instagram?: IInstagramConfig;
|
|
172
172
|
videoURL?: string;
|
|
173
173
|
thumbURL?: string;
|
|
174
|
-
postURL?: string;
|
|
175
174
|
schedule?: IScheduleConfig;
|
|
176
175
|
/**
|
|
177
176
|
* Optional post-publish comment (Pro plan, +1 credit).
|
|
@@ -241,10 +240,9 @@ interface IPublishOptions {
|
|
|
241
240
|
* Video source (required)
|
|
242
241
|
* Can be:
|
|
243
242
|
* - File object (will be uploaded)
|
|
244
|
-
* - Direct video URL (http://... or https://...)
|
|
245
|
-
*
|
|
246
|
-
* -
|
|
247
|
-
* - YouTube Shorts URL (auto-detected for repost)
|
|
243
|
+
* - Direct video file URL (http://... or https://...)
|
|
244
|
+
*
|
|
245
|
+
* Third-party platform URLs are not supported by the public SDK.
|
|
248
246
|
*/
|
|
249
247
|
video: File | string;
|
|
250
248
|
/**
|
|
@@ -306,10 +304,9 @@ interface IPublishToAccountOptions {
|
|
|
306
304
|
* Video source (required)
|
|
307
305
|
* Can be:
|
|
308
306
|
* - File object (will be uploaded)
|
|
309
|
-
* - Direct video URL (http://... or https://...)
|
|
310
|
-
*
|
|
311
|
-
* -
|
|
312
|
-
* - YouTube Shorts URL (auto-detected for repost)
|
|
307
|
+
* - Direct video file URL (http://... or https://...)
|
|
308
|
+
*
|
|
309
|
+
* Third-party platform URLs are not supported by the public SDK.
|
|
313
310
|
*/
|
|
314
311
|
video: File | string;
|
|
315
312
|
/**
|
|
@@ -373,7 +370,7 @@ interface IQuickPublishBaseOptions {
|
|
|
373
370
|
* Video source (required)
|
|
374
371
|
* Can be:
|
|
375
372
|
* - File object: Will be uploaded to cloud storage
|
|
376
|
-
* - URL string: Direct video URL
|
|
373
|
+
* - URL string: Direct video file URL for original or authorized content
|
|
377
374
|
*
|
|
378
375
|
* Supported formats: .mp4, .mov, .avi, .mkv, .webm
|
|
379
376
|
*/
|
|
@@ -721,10 +718,6 @@ interface ISocialPublisherPostStatusResponse {
|
|
|
721
718
|
* Image URL (image-post type). Returned for posts of `type: "image"`.
|
|
722
719
|
*/
|
|
723
720
|
imageURL?: string;
|
|
724
|
-
/**
|
|
725
|
-
* Post URL, can be null if didn't upload any post or passed URL for platforms like facebook, tiktok, youtube
|
|
726
|
-
*/
|
|
727
|
-
postURL?: string;
|
|
728
721
|
};
|
|
729
722
|
/** Image-post metadata — only present when `type === "image"`. */
|
|
730
723
|
image?: IImageDTO;
|
|
@@ -930,14 +923,6 @@ declare class SocialPublisherPostClient {
|
|
|
930
923
|
* @returns Created post response
|
|
931
924
|
*/
|
|
932
925
|
private publishShortVideoToWorkspaceByURL;
|
|
933
|
-
/**
|
|
934
|
-
* Publish a repost video from TikTok
|
|
935
|
-
* @param settings - Post creation settings
|
|
936
|
-
* @param videoURL - TikTok video URL (tiktok.com, vm.tiktok.com)
|
|
937
|
-
* @param thumb - Optional thumbnail image file or URL string
|
|
938
|
-
* @returns Created post response
|
|
939
|
-
*/
|
|
940
|
-
private publishRepostVideoToWorkspace;
|
|
941
926
|
/**
|
|
942
927
|
* Publish a short video to account by uploading a video file
|
|
943
928
|
*/
|
|
@@ -947,12 +932,9 @@ declare class SocialPublisherPostClient {
|
|
|
947
932
|
*/
|
|
948
933
|
private publishShortVideoToAccountByURL;
|
|
949
934
|
/**
|
|
950
|
-
* Publish a
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* Publish a video to multiple social media platforms with auto-detection
|
|
955
|
-
* This is the recommended method for most use cases.
|
|
935
|
+
* Publish a video to connected social media accounts.
|
|
936
|
+
* Use original or authorized content only. TikTok Direct Post requires
|
|
937
|
+
* the creator-controlled Posty5 review and confirmation flow.
|
|
956
938
|
*
|
|
957
939
|
* @param options - Simplified publishing options
|
|
958
940
|
* @returns Created post response
|
|
@@ -984,17 +966,12 @@ declare class SocialPublisherPostClient {
|
|
|
984
966
|
* tiktok: { caption: 'Caption', privacy_level: 'public', disable_duet: false, disable_stitch: false, disable_comment: false }
|
|
985
967
|
* });
|
|
986
968
|
*
|
|
987
|
-
* // Repost from Facebook (auto-detected)
|
|
988
|
-
* await client.publishShortVideoToWorkspace({
|
|
989
|
-
* workspaceId: 'workspace-123',
|
|
990
|
-
* video: 'https://facebook.com/video/12345',
|
|
991
|
-
* youtube: { title: 'Reposted', description: 'From FB', tags: [] }
|
|
992
|
-
* });
|
|
993
969
|
* ```
|
|
994
970
|
*/
|
|
995
971
|
publishShortVideoToWorkspace(options: IPublishOptions): Promise<string>;
|
|
996
972
|
/**
|
|
997
|
-
* Publish a video to
|
|
973
|
+
* Publish a video to a connected social media account.
|
|
974
|
+
* Use original or authorized content only.
|
|
998
975
|
*
|
|
999
976
|
* @param options - Simplified publishing options for account
|
|
1000
977
|
* @returns Created post response
|
|
@@ -1005,7 +982,8 @@ declare class SocialPublisherPostClient {
|
|
|
1005
982
|
*/
|
|
1006
983
|
publishShortVideo(options: IPublishOptions): Promise<string>;
|
|
1007
984
|
/**
|
|
1008
|
-
* Auto-detect video source type
|
|
985
|
+
* Auto-detect video source type.
|
|
986
|
+
*
|
|
1009
987
|
* @param video - File or URL string
|
|
1010
988
|
* @returns Detected source type and video
|
|
1011
989
|
*/
|