glitch-javascript-sdk 2.9.2 → 2.9.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.
- package/dist/cjs/index.js +30 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Newsletters.d.ts +6 -0
- package/dist/esm/api/Titles.d.ts +12 -0
- package/dist/esm/index.js +30 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +18 -0
- package/package.json +1 -1
- package/src/api/Newsletters.ts +9 -0
- package/src/api/Titles.ts +21 -0
- package/src/routes/NewslettersRoutes.ts +1 -0
- package/src/routes/TitlesRoute.ts +6 -0
|
@@ -101,5 +101,11 @@ declare class Newsletters {
|
|
|
101
101
|
* @returns Promise
|
|
102
102
|
*/
|
|
103
103
|
static joinDistributionWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
104
|
+
/**
|
|
105
|
+
* Register for Consumer Early Access to the streaming platform.
|
|
106
|
+
*
|
|
107
|
+
* @param data { name, email }
|
|
108
|
+
*/
|
|
109
|
+
static joinConsumerWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
104
110
|
}
|
|
105
111
|
export default Newsletters;
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -587,5 +587,17 @@ declare class Titles {
|
|
|
587
587
|
* @returns AxiosPromise containing { signallingServer: string }
|
|
588
588
|
*/
|
|
589
589
|
static getMatchmakerServer<T>(title_id: string): AxiosPromise<Response<T>>;
|
|
590
|
+
/**
|
|
591
|
+
* Initiates a resumable S3 multipart upload for large files.
|
|
592
|
+
*/
|
|
593
|
+
static initiateMultipartUpload<T>(title_id: string, data: object): AxiosPromise<Response<T>>;
|
|
594
|
+
/**
|
|
595
|
+
* Get presigned URLs for specific chunk parts.
|
|
596
|
+
*/
|
|
597
|
+
static getMultipartUrls<T>(title_id: string, data: object): AxiosPromise<Response<T>>;
|
|
598
|
+
/**
|
|
599
|
+
* Stitch together all uploaded chunks to complete the file in S3.
|
|
600
|
+
*/
|
|
601
|
+
static completeMultipartUpload<T>(title_id: string, data: object): AxiosPromise<Response<T>>;
|
|
590
602
|
}
|
|
591
603
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -11736,6 +11736,9 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11736
11736
|
getDeploymentUploadUrl: { url: '/titles/{title_id}/deployments/presigned-url', method: HTTP_METHODS.POST },
|
|
11737
11737
|
confirmDeployment: { url: '/titles/{title_id}/deployments/confirm', method: HTTP_METHODS.POST },
|
|
11738
11738
|
getPlaySession: { url: '/titles/{title_id}/play', method: HTTP_METHODS.GET },
|
|
11739
|
+
initiateMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/initiate', method: HTTP_METHODS.POST },
|
|
11740
|
+
getMultipartUrls: { url: '/titles/{title_id}/deployments/multipart/urls', method: HTTP_METHODS.POST },
|
|
11741
|
+
completeMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/complete', method: HTTP_METHODS.POST },
|
|
11739
11742
|
// Aegis Payouts
|
|
11740
11743
|
listDeveloperPayouts: { url: '/titles/{title_id}/payouts', method: HTTP_METHODS.GET },
|
|
11741
11744
|
viewDeveloperPayout: { url: '/titles/{title_id}/payouts/{payout_id}', method: HTTP_METHODS.GET },
|
|
@@ -12549,6 +12552,24 @@ var Titles = /** @class */ (function () {
|
|
|
12549
12552
|
Titles.getMatchmakerServer = function (title_id) {
|
|
12550
12553
|
return Requests.processRoute(TitlesRoute.routes.getMatchmakerServer, {}, { title_id: title_id });
|
|
12551
12554
|
};
|
|
12555
|
+
/**
|
|
12556
|
+
* Initiates a resumable S3 multipart upload for large files.
|
|
12557
|
+
*/
|
|
12558
|
+
Titles.initiateMultipartUpload = function (title_id, data) {
|
|
12559
|
+
return Requests.processRoute(TitlesRoute.routes.initiateMultipartUpload, data, { title_id: title_id });
|
|
12560
|
+
};
|
|
12561
|
+
/**
|
|
12562
|
+
* Get presigned URLs for specific chunk parts.
|
|
12563
|
+
*/
|
|
12564
|
+
Titles.getMultipartUrls = function (title_id, data) {
|
|
12565
|
+
return Requests.processRoute(TitlesRoute.routes.getMultipartUrls, data, { title_id: title_id });
|
|
12566
|
+
};
|
|
12567
|
+
/**
|
|
12568
|
+
* Stitch together all uploaded chunks to complete the file in S3.
|
|
12569
|
+
*/
|
|
12570
|
+
Titles.completeMultipartUpload = function (title_id, data) {
|
|
12571
|
+
return Requests.processRoute(TitlesRoute.routes.completeMultipartUpload, data, { title_id: title_id });
|
|
12572
|
+
};
|
|
12552
12573
|
return Titles;
|
|
12553
12574
|
}());
|
|
12554
12575
|
|
|
@@ -14352,6 +14373,7 @@ var NewslettersRoutes = /** @class */ (function () {
|
|
|
14352
14373
|
updateSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.PUT },
|
|
14353
14374
|
deleteSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.DELETE },
|
|
14354
14375
|
joinDistributionWaitlist: { url: '/newsletters/joinDistributionWaitlist', method: HTTP_METHODS.POST },
|
|
14376
|
+
joinConsumerWaitlist: { url: '/newsletters/joinConsumerWaitlist', method: HTTP_METHODS.POST },
|
|
14355
14377
|
};
|
|
14356
14378
|
return NewslettersRoutes;
|
|
14357
14379
|
}());
|
|
@@ -14501,6 +14523,14 @@ var Newsletters = /** @class */ (function () {
|
|
|
14501
14523
|
Newsletters.joinDistributionWaitlist = function (data, params) {
|
|
14502
14524
|
return Requests.processRoute(NewslettersRoutes.routes.joinDistributionWaitlist, data, undefined, params);
|
|
14503
14525
|
};
|
|
14526
|
+
/**
|
|
14527
|
+
* Register for Consumer Early Access to the streaming platform.
|
|
14528
|
+
*
|
|
14529
|
+
* @param data { name, email }
|
|
14530
|
+
*/
|
|
14531
|
+
Newsletters.joinConsumerWaitlist = function (data, params) {
|
|
14532
|
+
return Requests.processRoute(NewslettersRoutes.routes.joinConsumerWaitlist, data, undefined, params);
|
|
14533
|
+
};
|
|
14504
14534
|
return Newsletters;
|
|
14505
14535
|
}());
|
|
14506
14536
|
|