glitch-javascript-sdk 2.8.8 → 2.9.0

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/index.d.ts CHANGED
@@ -4298,7 +4298,7 @@ declare class Titles {
4298
4298
  * Initializes a play session. Handles age-gating and license verification.
4299
4299
  * Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
4300
4300
  */
4301
- static getPlaySession<T>(title_id: string): AxiosPromise<Response<T>>;
4301
+ static getPlaySession<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
4302
4302
  /**
4303
4303
  * List all developer payouts for a title.
4304
4304
  */
@@ -4382,6 +4382,13 @@ declare class Titles {
4382
4382
  * @param title_id The UUID of the title.
4383
4383
  */
4384
4384
  static attributionFunnel<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
4385
+ /**
4386
+ * Update the status of a specific deployment build.
4387
+ * @param title_id The UUID of the title.
4388
+ * @param build_id The UUID of the build.
4389
+ * @param status The new status ('ready', 'inactive', or 'failed').
4390
+ */
4391
+ static updateBuildStatus<T>(title_id: string, build_id: string, status: string): AxiosPromise<Response<T>>;
4385
4392
  }
4386
4393
 
4387
4394
  declare class Campaigns {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.8.8",
3
+ "version": "2.9.0",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Titles.ts CHANGED
@@ -952,8 +952,8 @@ class Titles {
952
952
  * Initializes a play session. Handles age-gating and license verification.
953
953
  * Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
954
954
  */
955
- public static getPlaySession<T>(title_id: string): AxiosPromise<Response<T>> {
956
- return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id });
955
+ public static getPlaySession<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
956
+ return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id }, params);
957
957
  }
958
958
 
959
959
  /**
@@ -1082,6 +1082,16 @@ class Titles {
1082
1082
  public static attributionFunnel<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
1083
1083
  return Requests.processRoute(TitlesRoute.routes.attributionFunnel, undefined, { title_id }, params);
1084
1084
  }
1085
+
1086
+ /**
1087
+ * Update the status of a specific deployment build.
1088
+ * @param title_id The UUID of the title.
1089
+ * @param build_id The UUID of the build.
1090
+ * @param status The new status ('ready', 'inactive', or 'failed').
1091
+ */
1092
+ public static updateBuildStatus<T>(title_id: string, build_id: string, status: string): AxiosPromise<Response<T>> {
1093
+ return Requests.processRoute(TitlesRoute.routes.updateBuildStatus, { status }, { title_id, build_id });
1094
+ }
1085
1095
  }
1086
1096
 
1087
1097
  export default Titles;
@@ -231,6 +231,8 @@ class TitlesRoute {
231
231
  method: HTTP_METHODS.GET
232
232
  },
233
233
 
234
+ updateBuildStatus: { url: '/titles/{title_id}/deployments/{build_id}/status', method: HTTP_METHODS.PUT },
235
+
234
236
 
235
237
  };
236
238