glitch-javascript-sdk 3.1.3 → 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 +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Scheduler.d.ts +5 -0
- package/dist/esm/api/Titles.d.ts +7 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/Scheduler.ts +8 -0
- package/src/api/Titles.ts +8 -4
- package/src/routes/SchedulerRoute.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -4609,10 +4609,12 @@ declare class Titles {
|
|
|
4609
4609
|
* @param params
|
|
4610
4610
|
* - window: number (hours, default 24)
|
|
4611
4611
|
* - limit: number (default 10)
|
|
4612
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
4612
4613
|
*/
|
|
4613
4614
|
static getCommunityActivity<T>(params?: {
|
|
4614
4615
|
window?: number;
|
|
4615
4616
|
limit?: number;
|
|
4617
|
+
is_nsfw?: number | boolean;
|
|
4616
4618
|
}): AxiosPromise<Response<T>>;
|
|
4617
4619
|
/**
|
|
4618
4620
|
* Get games trending on social media.
|
|
@@ -4621,11 +4623,13 @@ declare class Titles {
|
|
|
4621
4623
|
* - type: 'influencer' (campaigns) or 'organic' (non-paid)
|
|
4622
4624
|
* - window: number (hours, default 168)
|
|
4623
4625
|
* - limit: number (default 10)
|
|
4626
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
4624
4627
|
*/
|
|
4625
4628
|
static getSocialTrending<T>(params: {
|
|
4626
4629
|
type: 'influencer' | 'organic';
|
|
4627
4630
|
window?: number;
|
|
4628
4631
|
limit?: number;
|
|
4632
|
+
is_nsfw?: number | boolean;
|
|
4629
4633
|
}): AxiosPromise<Response<T>>;
|
|
4630
4634
|
/**
|
|
4631
4635
|
* Get a personalized discovery queue of games.
|
|
@@ -4633,10 +4637,12 @@ declare class Titles {
|
|
|
4633
4637
|
* @param params
|
|
4634
4638
|
* - limit: number (default 12)
|
|
4635
4639
|
* - device_id: string (highly recommended for guest tracking)
|
|
4640
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
4636
4641
|
*/
|
|
4637
4642
|
static getDiscoveryQueue<T>(params?: {
|
|
4638
4643
|
limit?: number;
|
|
4639
4644
|
device_id?: string;
|
|
4645
|
+
is_nsfw?: number | boolean;
|
|
4640
4646
|
}): AxiosPromise<Response<T>>;
|
|
4641
4647
|
/**
|
|
4642
4648
|
* Get a curated, playable feed for the Swipe interface.
|
|
@@ -4648,6 +4654,7 @@ declare class Titles {
|
|
|
4648
4654
|
* - seed?: number (For consistent randomization)
|
|
4649
4655
|
* - genres?: string[] (Filter by genre names)
|
|
4650
4656
|
* - models?: string[] (premium, rental, subscription, free)
|
|
4657
|
+
* - is_nsfw?: 1 | 0 (1 for adult titles only, 0 for safe titles only)
|
|
4651
4658
|
* - excluded_ids?: string[] (UUIDs to skip)
|
|
4652
4659
|
* - page?: number
|
|
4653
4660
|
* - per_page?: number
|
|
@@ -7074,6 +7081,11 @@ declare class Scheduler {
|
|
|
7074
7081
|
* @param params { is_personalized: boolean }
|
|
7075
7082
|
*/
|
|
7076
7083
|
static getTikTokTrendingKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7084
|
+
/**
|
|
7085
|
+
* Get recommended search keywords on TikTok.
|
|
7086
|
+
* @param params { is_personalized: boolean }
|
|
7087
|
+
*/
|
|
7088
|
+
static getTikTokRecommendedKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7077
7089
|
}
|
|
7078
7090
|
|
|
7079
7091
|
declare class Funnel {
|
package/package.json
CHANGED
package/src/api/Scheduler.ts
CHANGED
|
@@ -882,6 +882,14 @@ class Scheduler {
|
|
|
882
882
|
return Requests.processRoute(SchedulerRoute.routes.getTikTokTrendingKeywords, {}, { scheduler_id }, params);
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
+
/**
|
|
886
|
+
* Get recommended search keywords on TikTok.
|
|
887
|
+
* @param params { is_personalized: boolean }
|
|
888
|
+
*/
|
|
889
|
+
public static getTikTokRecommendedKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
890
|
+
return Requests.processRoute(SchedulerRoute.routes.getTikTokRecommendedKeywords, {}, { scheduler_id }, params);
|
|
891
|
+
}
|
|
892
|
+
|
|
885
893
|
}
|
|
886
894
|
|
|
887
895
|
export default Scheduler;
|
package/src/api/Titles.ts
CHANGED
|
@@ -1226,8 +1226,9 @@ class Titles {
|
|
|
1226
1226
|
* @param params
|
|
1227
1227
|
* - window: number (hours, default 24)
|
|
1228
1228
|
* - limit: number (default 10)
|
|
1229
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
1229
1230
|
*/
|
|
1230
|
-
public static getCommunityActivity<T>(params?: { window?: number, limit?: number }): AxiosPromise<Response<T>> {
|
|
1231
|
+
public static getCommunityActivity<T>(params?: { window?: number, limit?: number, is_nsfw?: number | boolean }): AxiosPromise<Response<T>> {
|
|
1231
1232
|
return Requests.processRoute(TitlesRoute.routes.communityActivity, {}, {}, params);
|
|
1232
1233
|
}
|
|
1233
1234
|
|
|
@@ -1238,8 +1239,9 @@ class Titles {
|
|
|
1238
1239
|
* - type: 'influencer' (campaigns) or 'organic' (non-paid)
|
|
1239
1240
|
* - window: number (hours, default 168)
|
|
1240
1241
|
* - limit: number (default 10)
|
|
1242
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
1241
1243
|
*/
|
|
1242
|
-
public static getSocialTrending<T>(params: { type: 'influencer' | 'organic', window?: number, limit?: number }): AxiosPromise<Response<T>> {
|
|
1244
|
+
public static getSocialTrending<T>(params: { type: 'influencer' | 'organic', window?: number, limit?: number, is_nsfw?: number | boolean }): AxiosPromise<Response<T>> {
|
|
1243
1245
|
return Requests.processRoute(TitlesRoute.routes.socialTrending, {}, {}, params);
|
|
1244
1246
|
}
|
|
1245
1247
|
|
|
@@ -1249,8 +1251,9 @@ class Titles {
|
|
|
1249
1251
|
* @param params
|
|
1250
1252
|
* - limit: number (default 12)
|
|
1251
1253
|
* - device_id: string (highly recommended for guest tracking)
|
|
1254
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
1252
1255
|
*/
|
|
1253
|
-
public static getDiscoveryQueue<T>(params?: { limit?: number, device_id?: string }): AxiosPromise<Response<T>> {
|
|
1256
|
+
public static getDiscoveryQueue<T>(params?: { limit?: number, device_id?: string, is_nsfw?: number | boolean }): AxiosPromise<Response<T>> {
|
|
1254
1257
|
return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
|
|
1255
1258
|
}
|
|
1256
1259
|
|
|
@@ -1264,6 +1267,7 @@ class Titles {
|
|
|
1264
1267
|
* - seed?: number (For consistent randomization)
|
|
1265
1268
|
* - genres?: string[] (Filter by genre names)
|
|
1266
1269
|
* - models?: string[] (premium, rental, subscription, free)
|
|
1270
|
+
* - is_nsfw?: 1 | 0 (1 for adult titles only, 0 for safe titles only)
|
|
1267
1271
|
* - excluded_ids?: string[] (UUIDs to skip)
|
|
1268
1272
|
* - page?: number
|
|
1269
1273
|
* - per_page?: number
|
|
@@ -1316,4 +1320,4 @@ class Titles {
|
|
|
1316
1320
|
}
|
|
1317
1321
|
}
|
|
1318
1322
|
|
|
1319
|
-
export default Titles;
|
|
1323
|
+
export default Titles;
|
|
@@ -137,6 +137,7 @@ class SchedulerRoute {
|
|
|
137
137
|
getTikTokTrendingHashtags: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/trending', method: HTTP_METHODS.GET },
|
|
138
138
|
getTikTokHashtagDetail: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/detail', method: HTTP_METHODS.GET },
|
|
139
139
|
getTikTokTrendingKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords', method: HTTP_METHODS.GET },
|
|
140
|
+
getTikTokRecommendedKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords/recommend', method: HTTP_METHODS.GET },
|
|
140
141
|
|
|
141
142
|
};
|
|
142
143
|
}
|