glitch-javascript-sdk 2.9.1 → 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 +45 -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 +20 -0
- package/dist/esm/index.js +45 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +26 -0
- package/package.json +1 -1
- package/src/api/Newsletters.ts +9 -0
- package/src/api/Titles.ts +36 -0
- package/src/routes/NewslettersRoutes.ts +1 -0
- package/src/routes/TitlesRoute.ts +11 -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
|
@@ -579,5 +579,25 @@ declare class Titles {
|
|
|
579
579
|
* @param status The new status ('ready', 'inactive', or 'failed').
|
|
580
580
|
*/
|
|
581
581
|
static updateBuildStatus<T>(title_id: string, build_id: string, status: string): AxiosPromise<Response<T>>;
|
|
582
|
+
/**
|
|
583
|
+
* Proxies a request through the backend to the matchmaker.
|
|
584
|
+
* This avoids HTTPS -> HTTP mixed content blocks.
|
|
585
|
+
*
|
|
586
|
+
* @param title_id The UUID of the game title.
|
|
587
|
+
* @returns AxiosPromise containing { signallingServer: string }
|
|
588
|
+
*/
|
|
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>>;
|
|
582
602
|
}
|
|
583
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 },
|
|
@@ -11777,6 +11780,11 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11777
11780
|
method: HTTP_METHODS.GET
|
|
11778
11781
|
},
|
|
11779
11782
|
updateBuildStatus: { url: '/titles/{title_id}/deployments/{build_id}/status', method: HTTP_METHODS.PUT },
|
|
11783
|
+
// Inside the routes object in TitlesRoute.ts
|
|
11784
|
+
getMatchmakerServer: {
|
|
11785
|
+
url: '/titles/{title_id}/matchmaker/server',
|
|
11786
|
+
method: HTTP_METHODS.GET
|
|
11787
|
+
},
|
|
11780
11788
|
};
|
|
11781
11789
|
return TitlesRoute;
|
|
11782
11790
|
}());
|
|
@@ -12534,6 +12542,34 @@ var Titles = /** @class */ (function () {
|
|
|
12534
12542
|
Titles.updateBuildStatus = function (title_id, build_id, status) {
|
|
12535
12543
|
return Requests.processRoute(TitlesRoute.routes.updateBuildStatus, { status: status }, { title_id: title_id, build_id: build_id });
|
|
12536
12544
|
};
|
|
12545
|
+
/**
|
|
12546
|
+
* Proxies a request through the backend to the matchmaker.
|
|
12547
|
+
* This avoids HTTPS -> HTTP mixed content blocks.
|
|
12548
|
+
*
|
|
12549
|
+
* @param title_id The UUID of the game title.
|
|
12550
|
+
* @returns AxiosPromise containing { signallingServer: string }
|
|
12551
|
+
*/
|
|
12552
|
+
Titles.getMatchmakerServer = function (title_id) {
|
|
12553
|
+
return Requests.processRoute(TitlesRoute.routes.getMatchmakerServer, {}, { title_id: title_id });
|
|
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
|
+
};
|
|
12537
12573
|
return Titles;
|
|
12538
12574
|
}());
|
|
12539
12575
|
|
|
@@ -14337,6 +14373,7 @@ var NewslettersRoutes = /** @class */ (function () {
|
|
|
14337
14373
|
updateSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.PUT },
|
|
14338
14374
|
deleteSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.DELETE },
|
|
14339
14375
|
joinDistributionWaitlist: { url: '/newsletters/joinDistributionWaitlist', method: HTTP_METHODS.POST },
|
|
14376
|
+
joinConsumerWaitlist: { url: '/newsletters/joinConsumerWaitlist', method: HTTP_METHODS.POST },
|
|
14340
14377
|
};
|
|
14341
14378
|
return NewslettersRoutes;
|
|
14342
14379
|
}());
|
|
@@ -14486,6 +14523,14 @@ var Newsletters = /** @class */ (function () {
|
|
|
14486
14523
|
Newsletters.joinDistributionWaitlist = function (data, params) {
|
|
14487
14524
|
return Requests.processRoute(NewslettersRoutes.routes.joinDistributionWaitlist, data, undefined, params);
|
|
14488
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
|
+
};
|
|
14489
14534
|
return Newsletters;
|
|
14490
14535
|
}());
|
|
14491
14536
|
|