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/index.d.ts CHANGED
@@ -4402,6 +4402,18 @@ declare class Titles {
4402
4402
  * @returns AxiosPromise containing { signallingServer: string }
4403
4403
  */
4404
4404
  static getMatchmakerServer<T>(title_id: string): AxiosPromise<Response<T>>;
4405
+ /**
4406
+ * Initiates a resumable S3 multipart upload for large files.
4407
+ */
4408
+ static initiateMultipartUpload<T>(title_id: string, data: object): AxiosPromise<Response<T>>;
4409
+ /**
4410
+ * Get presigned URLs for specific chunk parts.
4411
+ */
4412
+ static getMultipartUrls<T>(title_id: string, data: object): AxiosPromise<Response<T>>;
4413
+ /**
4414
+ * Stitch together all uploaded chunks to complete the file in S3.
4415
+ */
4416
+ static completeMultipartUpload<T>(title_id: string, data: object): AxiosPromise<Response<T>>;
4405
4417
  }
4406
4418
 
4407
4419
  declare class Campaigns {
@@ -5796,6 +5808,12 @@ declare class Newsletters {
5796
5808
  * @returns Promise
5797
5809
  */
5798
5810
  static joinDistributionWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
5811
+ /**
5812
+ * Register for Consumer Early Access to the streaming platform.
5813
+ *
5814
+ * @param data { name, email }
5815
+ */
5816
+ static joinConsumerWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
5799
5817
  }
5800
5818
 
5801
5819
  declare class PlayTests {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.9.2",
3
+ "version": "2.9.3",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -173,6 +173,15 @@ class Newsletters {
173
173
  return Requests.processRoute(NewslettersRoutes.routes.joinDistributionWaitlist, data, undefined, params);
174
174
  }
175
175
 
176
+ /**
177
+ * Register for Consumer Early Access to the streaming platform.
178
+ *
179
+ * @param data { name, email }
180
+ */
181
+ public static joinConsumerWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
182
+ return Requests.processRoute(NewslettersRoutes.routes.joinConsumerWaitlist, data, undefined, params);
183
+ }
184
+
176
185
  }
177
186
 
178
187
  export default Newsletters;
package/src/api/Titles.ts CHANGED
@@ -1107,6 +1107,27 @@ class Titles {
1107
1107
  { title_id }
1108
1108
  );
1109
1109
  }
1110
+
1111
+ /**
1112
+ * Initiates a resumable S3 multipart upload for large files.
1113
+ */
1114
+ public static initiateMultipartUpload<T>(title_id: string, data: object): AxiosPromise<Response<T>> {
1115
+ return Requests.processRoute(TitlesRoute.routes.initiateMultipartUpload, data, { title_id });
1116
+ }
1117
+
1118
+ /**
1119
+ * Get presigned URLs for specific chunk parts.
1120
+ */
1121
+ public static getMultipartUrls<T>(title_id: string, data: object): AxiosPromise<Response<T>> {
1122
+ return Requests.processRoute(TitlesRoute.routes.getMultipartUrls, data, { title_id });
1123
+ }
1124
+
1125
+ /**
1126
+ * Stitch together all uploaded chunks to complete the file in S3.
1127
+ */
1128
+ public static completeMultipartUpload<T>(title_id: string, data: object): AxiosPromise<Response<T>> {
1129
+ return Requests.processRoute(TitlesRoute.routes.completeMultipartUpload, data, { title_id });
1130
+ }
1110
1131
  }
1111
1132
 
1112
1133
  export default Titles;
@@ -30,6 +30,7 @@ class NewslettersRoutes {
30
30
  updateSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.PUT },
31
31
  deleteSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.DELETE },
32
32
  joinDistributionWaitlist: { url: '/newsletters/joinDistributionWaitlist', method: HTTP_METHODS.POST },
33
+ joinConsumerWaitlist: { url: '/newsletters/joinConsumerWaitlist', method: HTTP_METHODS.POST },
33
34
 
34
35
  };
35
36
 
@@ -185,6 +185,10 @@ class TitlesRoute {
185
185
  confirmDeployment: { url: '/titles/{title_id}/deployments/confirm', method: HTTP_METHODS.POST },
186
186
  getPlaySession: { url: '/titles/{title_id}/play', method: HTTP_METHODS.GET },
187
187
 
188
+ initiateMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/initiate', method: HTTP_METHODS.POST },
189
+ getMultipartUrls: { url: '/titles/{title_id}/deployments/multipart/urls', method: HTTP_METHODS.POST },
190
+ completeMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/complete', method: HTTP_METHODS.POST },
191
+
188
192
  // Aegis Payouts
189
193
  listDeveloperPayouts: { url: '/titles/{title_id}/payouts', method: HTTP_METHODS.GET },
190
194
  viewDeveloperPayout: { url: '/titles/{title_id}/payouts/{payout_id}', method: HTTP_METHODS.GET },
@@ -239,6 +243,8 @@ class TitlesRoute {
239
243
  method: HTTP_METHODS.GET
240
244
  },
241
245
 
246
+
247
+
242
248
  };
243
249
 
244
250
  }