ugcinc 2.22.0 → 2.23.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/media.d.ts CHANGED
@@ -36,4 +36,13 @@ export declare class MediaClient extends BaseClient {
36
36
  * Extracts audio and cover image from TikTok video or music URL
37
37
  */
38
38
  createSocialAudio(params: CreateSocialAudioParams): Promise<ApiResponse<SocialAudio>>;
39
+ /**
40
+ * Get a media item by ID
41
+ * Returns either user_media or social_audio based on what's found
42
+ */
43
+ getById(id: string): Promise<ApiResponse<Media>>;
44
+ /**
45
+ * Get a social audio by ID
46
+ */
47
+ getSocialAudioById(id: string): Promise<ApiResponse<SocialAudio>>;
39
48
  }
package/dist/media.js CHANGED
@@ -54,5 +54,18 @@ class MediaClient extends base_1.BaseClient {
54
54
  async createSocialAudio(params) {
55
55
  return this.post('/media/social-audio', params);
56
56
  }
57
+ /**
58
+ * Get a media item by ID
59
+ * Returns either user_media or social_audio based on what's found
60
+ */
61
+ async getById(id) {
62
+ return this.post(`/media/${id}`, {});
63
+ }
64
+ /**
65
+ * Get a social audio by ID
66
+ */
67
+ async getSocialAudioById(id) {
68
+ return this.post(`/media/social-audio/${id}`, {});
69
+ }
57
70
  }
58
71
  exports.MediaClient = MediaClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.22.0",
3
+ "version": "2.23.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",