glitch-javascript-sdk 3.0.3 → 3.0.4
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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/Titles.ts +2 -2
- package/src/routes/TitlesRoute.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4410,7 +4410,7 @@ declare class Titles {
|
|
|
4410
4410
|
* Initializes a play session. Handles age-gating and license verification.
|
|
4411
4411
|
* Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
|
|
4412
4412
|
*/
|
|
4413
|
-
static getPlaySession<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4413
|
+
static getPlaySession<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4414
4414
|
/**
|
|
4415
4415
|
* List all developer payouts for a title.
|
|
4416
4416
|
*/
|
package/package.json
CHANGED
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, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
956
|
-
return Requests.processRoute(TitlesRoute.routes.getPlaySession,
|
|
955
|
+
public static getPlaySession<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
956
|
+
return Requests.processRoute(TitlesRoute.routes.getPlaySession, data, { title_id }, params);
|
|
957
957
|
}
|
|
958
958
|
|
|
959
959
|
/**
|
|
@@ -183,7 +183,7 @@ class TitlesRoute {
|
|
|
183
183
|
// Aegis Deployment
|
|
184
184
|
getDeploymentUploadUrl: { url: '/titles/{title_id}/deployments/presigned-url', method: HTTP_METHODS.POST },
|
|
185
185
|
confirmDeployment: { url: '/titles/{title_id}/deployments/confirm', method: HTTP_METHODS.POST },
|
|
186
|
-
getPlaySession: { url: '/titles/{title_id}/play', method: HTTP_METHODS.
|
|
186
|
+
getPlaySession: { url: '/titles/{title_id}/play', method: HTTP_METHODS.POST },
|
|
187
187
|
|
|
188
188
|
initiateMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/initiate', method: HTTP_METHODS.POST },
|
|
189
189
|
getMultipartUrls: { url: '/titles/{title_id}/deployments/multipart/urls', method: HTTP_METHODS.POST },
|