glitch-javascript-sdk 2.6.0 → 2.6.2

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.
@@ -22,6 +22,7 @@ declare class Education {
22
22
  static heartbeat<T>(uuid: string, data: object): AxiosPromise<Response<T>>;
23
23
  static getSecureVideo<T>(uuid: string): AxiosPromise<Response<T>>;
24
24
  static getPreviewSecureVideo<T>(uuid: string): AxiosPromise<Response<T>>;
25
+ static listAllProgress<T>(params?: object): AxiosPromise<Response<T>>;
25
26
  static listTrackContent<T>(track_id: string): AxiosPromise<Response<T>>;
26
27
  static addContentToTrack<T>(track_id: string, data: object): AxiosPromise<Response<T>>;
27
28
  static removeContentFromTrack<T>(track_id: string, content_id: string): AxiosPromise<Response<T>>;
@@ -318,5 +318,40 @@ declare class SocialPosts {
318
318
  static replyViaDm<T>(comment_id: string, data: {
319
319
  message: string;
320
320
  }): AxiosPromise<Response<T>>;
321
+ /**
322
+ * List all discovered Reddit questions (Admin Only).
323
+ *
324
+ * @param params Query parameters: status, subreddit, is_question.
325
+ */
326
+ static listRedditQuestions<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
327
+ /**
328
+ * Retrieve details for a specific discovered Reddit question (Admin Only).
329
+ *
330
+ * @param id The UUID of the question.
331
+ */
332
+ static viewRedditQuestion<T>(id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
333
+ /**
334
+ * Update a Reddit question's status or metadata (Admin Only).
335
+ *
336
+ * @param id The UUID of the question.
337
+ * @param data { status: 'pending'|'answered'|'ignored', metadata?: object }
338
+ */
339
+ static updateRedditQuestion<T>(id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
340
+ /**
341
+ * Delete a discovered Reddit question (Admin Only).
342
+ *
343
+ * @param id The UUID of the question.
344
+ */
345
+ static deleteRedditQuestion<T>(id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
346
+ /**
347
+ * Optimize a Reddit post for a specific subreddit using the AI engine (Admin Only).
348
+ *
349
+ * @param data { subreddit: string, content: string, title_id: string }
350
+ */
351
+ static optimizeRedditPost<T>(data: {
352
+ subreddit: string;
353
+ content: string;
354
+ title_id: string;
355
+ }): AxiosPromise<Response<T>>;
321
356
  }
322
357
  export default SocialPosts;
package/dist/esm/index.js CHANGED
@@ -10961,6 +10961,12 @@ var SocialPostsRoute = /** @class */ (function () {
10961
10961
  getConversationMessages: { url: '/social/conversations/{conversation_id}/messages', method: HTTP_METHODS.GET },
10962
10962
  sendSocialMessage: { url: '/social/messages', method: HTTP_METHODS.POST },
10963
10963
  replyViaDm: { url: '/socialposts/comments/{comment_id}/reply-via-dm', method: HTTP_METHODS.POST },
10964
+ // Reddit Sales Engine (Admin Only)
10965
+ listRedditQuestions: { url: '/admin/reddit/questions', method: HTTP_METHODS.GET },
10966
+ viewRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.GET },
10967
+ updateRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.PUT },
10968
+ deleteRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.DELETE },
10969
+ optimizeRedditPost: { url: '/admin/reddit/optimize', method: HTTP_METHODS.POST },
10964
10970
  };
10965
10971
  return SocialPostsRoute;
10966
10972
  }());
@@ -11357,6 +11363,47 @@ var SocialPosts = /** @class */ (function () {
11357
11363
  SocialPosts.replyViaDm = function (comment_id, data) {
11358
11364
  return Requests.processRoute(SocialPostsRoute.routes.replyViaDm, data, { comment_id: comment_id });
11359
11365
  };
11366
+ /**
11367
+ * List all discovered Reddit questions (Admin Only).
11368
+ *
11369
+ * @param params Query parameters: status, subreddit, is_question.
11370
+ */
11371
+ SocialPosts.listRedditQuestions = function (params) {
11372
+ return Requests.processRoute(SocialPostsRoute.routes.listRedditQuestions, undefined, undefined, params);
11373
+ };
11374
+ /**
11375
+ * Retrieve details for a specific discovered Reddit question (Admin Only).
11376
+ *
11377
+ * @param id The UUID of the question.
11378
+ */
11379
+ SocialPosts.viewRedditQuestion = function (id, params) {
11380
+ return Requests.processRoute(SocialPostsRoute.routes.viewRedditQuestion, {}, { id: id }, params);
11381
+ };
11382
+ /**
11383
+ * Update a Reddit question's status or metadata (Admin Only).
11384
+ *
11385
+ * @param id The UUID of the question.
11386
+ * @param data { status: 'pending'|'answered'|'ignored', metadata?: object }
11387
+ */
11388
+ SocialPosts.updateRedditQuestion = function (id, data, params) {
11389
+ return Requests.processRoute(SocialPostsRoute.routes.updateRedditQuestion, data, { id: id }, params);
11390
+ };
11391
+ /**
11392
+ * Delete a discovered Reddit question (Admin Only).
11393
+ *
11394
+ * @param id The UUID of the question.
11395
+ */
11396
+ SocialPosts.deleteRedditQuestion = function (id, params) {
11397
+ return Requests.processRoute(SocialPostsRoute.routes.deleteRedditQuestion, {}, { id: id }, params);
11398
+ };
11399
+ /**
11400
+ * Optimize a Reddit post for a specific subreddit using the AI engine (Admin Only).
11401
+ *
11402
+ * @param data { subreddit: string, content: string, title_id: string }
11403
+ */
11404
+ SocialPosts.optimizeRedditPost = function (data) {
11405
+ return Requests.processRoute(SocialPostsRoute.routes.optimizeRedditPost, data);
11406
+ };
11360
11407
  return SocialPosts;
11361
11408
  }());
11362
11409
 
@@ -16683,6 +16730,9 @@ var Education = /** @class */ (function () {
16683
16730
  Education.getPreviewSecureVideo = function (uuid) {
16684
16731
  return Requests.processRoute(EducationRoute.routes.getPreviewSecureVideo, undefined, { uuid: uuid });
16685
16732
  };
16733
+ Education.listAllProgress = function (params) {
16734
+ return Requests.processRoute(EducationRoute.routes.listAllProgress, undefined, undefined, params);
16735
+ };
16686
16736
  // --- 4. TRACK CONTENT (PIVOT) ---
16687
16737
  Education.listTrackContent = function (track_id) {
16688
16738
  return Requests.processRoute(EducationRoute.routes.listTrackContent, undefined, { track_id: track_id });