glitch-javascript-sdk 2.5.9 → 2.6.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
@@ -24145,6 +24145,12 @@ var SocialPostsRoute = /** @class */ (function () {
24145
24145
  getConversationMessages: { url: '/social/conversations/{conversation_id}/messages', method: HTTP_METHODS.GET },
24146
24146
  sendSocialMessage: { url: '/social/messages', method: HTTP_METHODS.POST },
24147
24147
  replyViaDm: { url: '/socialposts/comments/{comment_id}/reply-via-dm', method: HTTP_METHODS.POST },
24148
+ // Reddit Sales Engine (Admin Only)
24149
+ listRedditQuestions: { url: '/admin/reddit/questions', method: HTTP_METHODS.GET },
24150
+ viewRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.GET },
24151
+ updateRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.PUT },
24152
+ deleteRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.DELETE },
24153
+ optimizeRedditPost: { url: '/admin/reddit/optimize', method: HTTP_METHODS.POST },
24148
24154
  };
24149
24155
  return SocialPostsRoute;
24150
24156
  }());
@@ -24541,6 +24547,47 @@ var SocialPosts = /** @class */ (function () {
24541
24547
  SocialPosts.replyViaDm = function (comment_id, data) {
24542
24548
  return Requests.processRoute(SocialPostsRoute.routes.replyViaDm, data, { comment_id: comment_id });
24543
24549
  };
24550
+ /**
24551
+ * List all discovered Reddit questions (Admin Only).
24552
+ *
24553
+ * @param params Query parameters: status, subreddit, is_question.
24554
+ */
24555
+ SocialPosts.listRedditQuestions = function (params) {
24556
+ return Requests.processRoute(SocialPostsRoute.routes.listRedditQuestions, undefined, undefined, params);
24557
+ };
24558
+ /**
24559
+ * Retrieve details for a specific discovered Reddit question (Admin Only).
24560
+ *
24561
+ * @param id The UUID of the question.
24562
+ */
24563
+ SocialPosts.viewRedditQuestion = function (id, params) {
24564
+ return Requests.processRoute(SocialPostsRoute.routes.viewRedditQuestion, {}, { id: id }, params);
24565
+ };
24566
+ /**
24567
+ * Update a Reddit question's status or metadata (Admin Only).
24568
+ *
24569
+ * @param id The UUID of the question.
24570
+ * @param data { status: 'pending'|'answered'|'ignored', metadata?: object }
24571
+ */
24572
+ SocialPosts.updateRedditQuestion = function (id, data, params) {
24573
+ return Requests.processRoute(SocialPostsRoute.routes.updateRedditQuestion, data, { id: id }, params);
24574
+ };
24575
+ /**
24576
+ * Delete a discovered Reddit question (Admin Only).
24577
+ *
24578
+ * @param id The UUID of the question.
24579
+ */
24580
+ SocialPosts.deleteRedditQuestion = function (id, params) {
24581
+ return Requests.processRoute(SocialPostsRoute.routes.deleteRedditQuestion, {}, { id: id }, params);
24582
+ };
24583
+ /**
24584
+ * Optimize a Reddit post for a specific subreddit using the AI engine (Admin Only).
24585
+ *
24586
+ * @param data { subreddit: string, content: string, title_id: string }
24587
+ */
24588
+ SocialPosts.optimizeRedditPost = function (data) {
24589
+ return Requests.processRoute(SocialPostsRoute.routes.optimizeRedditPost, data);
24590
+ };
24544
24591
  return SocialPosts;
24545
24592
  }());
24546
24593
 
@@ -29700,6 +29747,7 @@ var EducationRoute = /** @class */ (function () {
29700
29747
  saveContentModuleState: { url: '/education/content/{uuid}/module-state', method: HTTP_METHODS.POST },
29701
29748
  getContentModuleState: { url: '/education/content/{uuid}/module-state', method: HTTP_METHODS.GET },
29702
29749
  getSecureVideo: { url: '/education/content/{uuid}/secure-video', method: HTTP_METHODS.GET },
29750
+ getPreviewSecureVideo: { url: '/education/content/{uuid}/preview-secure-video', method: HTTP_METHODS.GET },
29703
29751
  // 4. EducationContentTrackController (Pivot)
29704
29752
  listTrackContent: { url: '/education/tracks/{track_id}/content', method: HTTP_METHODS.GET },
29705
29753
  addContentToTrack: { url: '/education/tracks/{track_id}/content', method: HTTP_METHODS.POST },
@@ -29863,6 +29911,9 @@ var Education = /** @class */ (function () {
29863
29911
  Education.getSecureVideo = function (uuid) {
29864
29912
  return Requests.processRoute(EducationRoute.routes.getSecureVideo, undefined, { uuid: uuid });
29865
29913
  };
29914
+ Education.getPreviewSecureVideo = function (uuid) {
29915
+ return Requests.processRoute(EducationRoute.routes.getPreviewSecureVideo, undefined, { uuid: uuid });
29916
+ };
29866
29917
  // --- 4. TRACK CONTENT (PIVOT) ---
29867
29918
  Education.listTrackContent = function (track_id) {
29868
29919
  return Requests.processRoute(EducationRoute.routes.listTrackContent, undefined, { track_id: track_id });