glitch-javascript-sdk 3.1.1 → 3.1.3

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.
@@ -500,7 +500,7 @@ declare class Titles {
500
500
  /**
501
501
  * Get the total earnings and playtime summary for a title.
502
502
  */
503
- static getDeveloperPayoutSummary<T>(title_id: string): AxiosPromise<Response<T>>;
503
+ static getDeveloperPayoutSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
504
504
  /**
505
505
  * The Aegis Handshake: Verify if a player is allowed to play.
506
506
  *
@@ -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 });
@@ -12698,8 +12699,8 @@ var Titles = /** @class */ (function () {
12698
12699
  /**
12699
12700
  * Get the total earnings and playtime summary for a title.
12700
12701
  */
12701
- Titles.getDeveloperPayoutSummary = function (title_id) {
12702
- return Requests.processRoute(TitlesRoute.routes.developerPayoutSummary, {}, { title_id: title_id });
12702
+ Titles.getDeveloperPayoutSummary = function (title_id, params) {
12703
+ return Requests.processRoute(TitlesRoute.routes.developerPayoutSummary, {}, { title_id: title_id }, params);
12703
12704
  };
12704
12705
  /**
12705
12706
  * The Aegis Handshake: Verify if a player is allowed to play.