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.
@@ -576,5 +576,10 @@ declare class Scheduler {
576
576
  * @param params { is_personalized: boolean }
577
577
  */
578
578
  static getTikTokTrendingKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
579
+ /**
580
+ * Get recommended search keywords on TikTok.
581
+ * @param params { is_personalized: boolean }
582
+ */
583
+ static getTikTokRecommendedKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
579
584
  }
580
585
  export default Scheduler;
@@ -641,10 +641,12 @@ declare class Titles {
641
641
  * @param params
642
642
  * - window: number (hours, default 24)
643
643
  * - limit: number (default 10)
644
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
644
645
  */
645
646
  static getCommunityActivity<T>(params?: {
646
647
  window?: number;
647
648
  limit?: number;
649
+ is_nsfw?: number | boolean;
648
650
  }): AxiosPromise<Response<T>>;
649
651
  /**
650
652
  * Get games trending on social media.
@@ -653,11 +655,13 @@ declare class Titles {
653
655
  * - type: 'influencer' (campaigns) or 'organic' (non-paid)
654
656
  * - window: number (hours, default 168)
655
657
  * - limit: number (default 10)
658
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
656
659
  */
657
660
  static getSocialTrending<T>(params: {
658
661
  type: 'influencer' | 'organic';
659
662
  window?: number;
660
663
  limit?: number;
664
+ is_nsfw?: number | boolean;
661
665
  }): AxiosPromise<Response<T>>;
662
666
  /**
663
667
  * Get a personalized discovery queue of games.
@@ -665,10 +669,12 @@ declare class Titles {
665
669
  * @param params
666
670
  * - limit: number (default 12)
667
671
  * - device_id: string (highly recommended for guest tracking)
672
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
668
673
  */
669
674
  static getDiscoveryQueue<T>(params?: {
670
675
  limit?: number;
671
676
  device_id?: string;
677
+ is_nsfw?: number | boolean;
672
678
  }): AxiosPromise<Response<T>>;
673
679
  /**
674
680
  * Get a curated, playable feed for the Swipe interface.
@@ -680,6 +686,7 @@ declare class Titles {
680
686
  * - seed?: number (For consistent randomization)
681
687
  * - genres?: string[] (Filter by genre names)
682
688
  * - models?: string[] (premium, rental, subscription, free)
689
+ * - is_nsfw?: 1 | 0 (1 for adult titles only, 0 for safe titles only)
683
690
  * - excluded_ids?: string[] (UUIDs to skip)
684
691
  * - page?: number
685
692
  * - per_page?: number
@@ -456,14 +456,24 @@ declare class Users {
456
456
  static suggestSmartTrim<T>(id: string): AxiosPromise<Response<T>>;
457
457
  /**
458
458
  * Share a library item to social media as User Generated Content (UGC).
459
+ * This uses the player media share route, not the developer/scheduler post route.
459
460
  *
460
461
  * @param id The UUID of the UserMedia record.
461
- * @param data { platform: string, title?: string, content: string }
462
+ * @param data Player post payload, including platform/channel/schedule options.
462
463
  */
463
464
  static shareMedia<T>(id: string, data: {
464
465
  platform: string;
466
+ social_platform?: string;
465
467
  title?: string;
466
468
  content: string;
469
+ status?: 'pending' | 'scheduled' | string;
470
+ scheduled_at?: string;
471
+ main_channel_id?: string;
472
+ sub_channel_id?: string;
473
+ token?: string;
474
+ track_links?: boolean;
475
+ media_type?: string;
476
+ [key: string]: any;
467
477
  }): AxiosPromise<Response<T>>;
468
478
  /**
469
479
  * List all gifts purchased by the current user.
package/dist/esm/index.js CHANGED
@@ -9394,9 +9394,10 @@ var Users = /** @class */ (function () {
9394
9394
  };
9395
9395
  /**
9396
9396
  * Share a library item to social media as User Generated Content (UGC).
9397
+ * This uses the player media share route, not the developer/scheduler post route.
9397
9398
  *
9398
9399
  * @param id The UUID of the UserMedia record.
9399
- * @param data { platform: string, title?: string, content: string }
9400
+ * @param data Player post payload, including platform/channel/schedule options.
9400
9401
  */
9401
9402
  Users.shareMedia = function (id, data) {
9402
9403
  return Requests.processRoute(UserRoutes.routes.shareMedia, data, { id: id });
@@ -12901,6 +12902,7 @@ var Titles = /** @class */ (function () {
12901
12902
  * @param params
12902
12903
  * - window: number (hours, default 24)
12903
12904
  * - limit: number (default 10)
12905
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
12904
12906
  */
12905
12907
  Titles.getCommunityActivity = function (params) {
12906
12908
  return Requests.processRoute(TitlesRoute.routes.communityActivity, {}, {}, params);
@@ -12912,6 +12914,7 @@ var Titles = /** @class */ (function () {
12912
12914
  * - type: 'influencer' (campaigns) or 'organic' (non-paid)
12913
12915
  * - window: number (hours, default 168)
12914
12916
  * - limit: number (default 10)
12917
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
12915
12918
  */
12916
12919
  Titles.getSocialTrending = function (params) {
12917
12920
  return Requests.processRoute(TitlesRoute.routes.socialTrending, {}, {}, params);
@@ -12922,6 +12925,7 @@ var Titles = /** @class */ (function () {
12922
12925
  * @param params
12923
12926
  * - limit: number (default 12)
12924
12927
  * - device_id: string (highly recommended for guest tracking)
12928
+ * - is_nsfw: 1 for adult titles only, 0 for safe titles only
12925
12929
  */
12926
12930
  Titles.getDiscoveryQueue = function (params) {
12927
12931
  return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
@@ -12936,6 +12940,7 @@ var Titles = /** @class */ (function () {
12936
12940
  * - seed?: number (For consistent randomization)
12937
12941
  * - genres?: string[] (Filter by genre names)
12938
12942
  * - models?: string[] (premium, rental, subscription, free)
12943
+ * - is_nsfw?: 1 | 0 (1 for adult titles only, 0 for safe titles only)
12939
12944
  * - excluded_ids?: string[] (UUIDs to skip)
12940
12945
  * - page?: number
12941
12946
  * - per_page?: number
@@ -15540,6 +15545,7 @@ var SchedulerRoute = /** @class */ (function () {
15540
15545
  getTikTokTrendingHashtags: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/trending', method: HTTP_METHODS.GET },
15541
15546
  getTikTokHashtagDetail: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/detail', method: HTTP_METHODS.GET },
15542
15547
  getTikTokTrendingKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords', method: HTTP_METHODS.GET },
15548
+ getTikTokRecommendedKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords/recommend', method: HTTP_METHODS.GET },
15543
15549
  };
15544
15550
  return SchedulerRoute;
15545
15551
  }());
@@ -16268,6 +16274,13 @@ var Scheduler = /** @class */ (function () {
16268
16274
  Scheduler.getTikTokTrendingKeywords = function (scheduler_id, params) {
16269
16275
  return Requests.processRoute(SchedulerRoute.routes.getTikTokTrendingKeywords, {}, { scheduler_id: scheduler_id }, params);
16270
16276
  };
16277
+ /**
16278
+ * Get recommended search keywords on TikTok.
16279
+ * @param params { is_personalized: boolean }
16280
+ */
16281
+ Scheduler.getTikTokRecommendedKeywords = function (scheduler_id, params) {
16282
+ return Requests.processRoute(SchedulerRoute.routes.getTikTokRecommendedKeywords, {}, { scheduler_id: scheduler_id }, params);
16283
+ };
16271
16284
  return Scheduler;
16272
16285
  }());
16273
16286