glitch-javascript-sdk 3.8.0 → 3.8.1

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
@@ -28255,6 +28255,8 @@ var SchedulerRoute = /** @class */ (function () {
28255
28255
  getRedditSubredditFlairs: { url: '/schedulers/{scheduler_id}/reddit/subreddits/{subreddit}/flairs', method: HTTP_METHODS.GET },
28256
28256
  getRedditSubredditRules: { url: '/schedulers/{scheduler_id}/reddit/subreddits/{subreddit}/rules', method: HTTP_METHODS.GET },
28257
28257
  getDiscordChannels: { url: '/schedulers/{scheduler_id}/discord/channels', method: HTTP_METHODS.GET },
28258
+ searchDiscordMedia: { url: '/schedulers/{scheduler_id}/discord/media', method: HTTP_METHODS.GET },
28259
+ importDiscordMedia: { url: '/schedulers/{scheduler_id}/discord/media/import', method: HTTP_METHODS.POST },
28258
28260
  crossPromoteListRelationships: {
28259
28261
  url: '/schedulers/{scheduler_id}/crosspromote/relationships',
28260
28262
  method: HTTP_METHODS.GET
@@ -28751,6 +28753,21 @@ var Scheduler = /** @class */ (function () {
28751
28753
  Scheduler.getDiscordChannels = function (scheduler_id, params) {
28752
28754
  return Requests.processRoute(SchedulerRoute.routes.getDiscordChannels, {}, { scheduler_id: scheduler_id }, params);
28753
28755
  };
28756
+ /**
28757
+ * Search image and video attachments in the connected Discord server.
28758
+ * This call only returns remote candidates; it does not copy files into the
28759
+ * Library and does not create or schedule social posts.
28760
+ */
28761
+ Scheduler.searchDiscordMedia = function (scheduler_id, params) {
28762
+ return Requests.processRoute(SchedulerRoute.routes.searchDiscordMedia, {}, { scheduler_id: scheduler_id }, params);
28763
+ };
28764
+ /**
28765
+ * Import explicitly selected Discord attachments as pending, unscheduled
28766
+ * Library updates. Attachments selected from one message stay grouped.
28767
+ */
28768
+ Scheduler.importDiscordMedia = function (scheduler_id, data, params) {
28769
+ return Requests.processRoute(SchedulerRoute.routes.importDiscordMedia, data, { scheduler_id: scheduler_id }, params);
28770
+ };
28754
28771
  /**
28755
28772
  * Clear Google Ads OAuth credentials from a promotion schedule.
28756
28773
  *