glitch-javascript-sdk 3.1.2 → 3.1.4

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/cjs/index.js CHANGED
@@ -21392,9 +21392,10 @@ var Users = /** @class */ (function () {
21392
21392
  };
21393
21393
  /**
21394
21394
  * Share a library item to social media as User Generated Content (UGC).
21395
+ * This uses the player media share route, not the developer/scheduler post route.
21395
21396
  *
21396
21397
  * @param id The UUID of the UserMedia record.
21397
- * @param data { platform: string, title?: string, content: string }
21398
+ * @param data Player post payload, including platform/channel/schedule options.
21398
21399
  */
21399
21400
  Users.shareMedia = function (id, data) {
21400
21401
  return Requests.processRoute(UserRoutes.routes.shareMedia, data, { id: id });
@@ -24899,6 +24900,7 @@ var Titles = /** @class */ (function () {
24899
24900
  * @param params
24900
24901
  * - window: number (hours, default 24)
24901
24902
  * - limit: number (default 10)
24903
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
24902
24904
  */
24903
24905
  Titles.getCommunityActivity = function (params) {
24904
24906
  return Requests.processRoute(TitlesRoute.routes.communityActivity, {}, {}, params);
@@ -24910,6 +24912,7 @@ var Titles = /** @class */ (function () {
24910
24912
  * - type: 'influencer' (campaigns) or 'organic' (non-paid)
24911
24913
  * - window: number (hours, default 168)
24912
24914
  * - limit: number (default 10)
24915
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
24913
24916
  */
24914
24917
  Titles.getSocialTrending = function (params) {
24915
24918
  return Requests.processRoute(TitlesRoute.routes.socialTrending, {}, {}, params);
@@ -24920,6 +24923,7 @@ var Titles = /** @class */ (function () {
24920
24923
  * @param params
24921
24924
  * - limit: number (default 12)
24922
24925
  * - device_id: string (highly recommended for guest tracking)
24926
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
24923
24927
  */
24924
24928
  Titles.getDiscoveryQueue = function (params) {
24925
24929
  return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
@@ -24934,6 +24938,7 @@ var Titles = /** @class */ (function () {
24934
24938
  * - seed?: number (For consistent randomization)
24935
24939
  * - genres?: string[] (Filter by genre names)
24936
24940
  * - models?: string[] (premium, rental, subscription, free)
24941
+ * - is_nsfw?: 1 | 0 (1 for adult titles only, 0 for safe titles only)
24937
24942
  * - excluded_ids?: string[] (UUIDs to skip)
24938
24943
  * - page?: number
24939
24944
  * - per_page?: number
@@ -27538,6 +27543,7 @@ var SchedulerRoute = /** @class */ (function () {
27538
27543
  getTikTokTrendingHashtags: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/trending', method: HTTP_METHODS.GET },
27539
27544
  getTikTokHashtagDetail: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/detail', method: HTTP_METHODS.GET },
27540
27545
  getTikTokTrendingKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords', method: HTTP_METHODS.GET },
27546
+ getTikTokRecommendedKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords/recommend', method: HTTP_METHODS.GET },
27541
27547
  };
27542
27548
  return SchedulerRoute;
27543
27549
  }());
@@ -28266,6 +28272,13 @@ var Scheduler = /** @class */ (function () {
28266
28272
  Scheduler.getTikTokTrendingKeywords = function (scheduler_id, params) {
28267
28273
  return Requests.processRoute(SchedulerRoute.routes.getTikTokTrendingKeywords, {}, { scheduler_id: scheduler_id }, params);
28268
28274
  };
28275
+ /**
28276
+ * Get recommended search keywords on TikTok.
28277
+ * @param params { is_personalized: boolean }
28278
+ */
28279
+ Scheduler.getTikTokRecommendedKeywords = function (scheduler_id, params) {
28280
+ return Requests.processRoute(SchedulerRoute.routes.getTikTokRecommendedKeywords, {}, { scheduler_id: scheduler_id }, params);
28281
+ };
28269
28282
  return Scheduler;
28270
28283
  }());
28271
28284