glitch-javascript-sdk 3.9.0 → 3.9.1

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 CHANGED
@@ -33357,6 +33357,8 @@ var HostingRoute = /** @class */ (function () {
33357
33357
  catalog: { url: '/hosting/catalog', method: HTTP_METHODS.GET },
33358
33358
  dashboard: { url: '/titles/{title_id}/hosting', method: HTTP_METHODS.GET },
33359
33359
  channelAnalytics: { url: '/titles/{title_id}/hosting/analytics/channels', method: HTTP_METHODS.GET },
33360
+ billingCheckout: { url: '/titles/{title_id}/hosting/billing/checkout', method: HTTP_METHODS.POST },
33361
+ confirmBillingCheckout: { url: '/titles/{title_id}/hosting/billing/confirm', method: HTTP_METHODS.POST },
33360
33362
  createSite: { url: '/titles/{title_id}/hosting/sites', method: HTTP_METHODS.POST },
33361
33363
  updateSite: { url: '/titles/{title_id}/hosting/sites/{site_id}', method: HTTP_METHODS.PUT },
33362
33364
  uploadUrl: { url: '/titles/{title_id}/hosting/sites/{site_id}/upload-url', method: HTTP_METHODS.POST },
@@ -33397,6 +33399,14 @@ var Hosting = /** @class */ (function () {
33397
33399
  Hosting.channelAnalytics = function (title_id, params) {
33398
33400
  return Requests.processRoute(HostingRoute.routes.channelAnalytics, undefined, { title_id: title_id }, params);
33399
33401
  };
33402
+ /** Start or apply a bandwidth-based Hosting plan, separate from Store distribution. */
33403
+ Hosting.billingCheckout = function (title_id, plan) {
33404
+ return Requests.processRoute(HostingRoute.routes.billingCheckout, { plan: plan }, { title_id: title_id });
33405
+ };
33406
+ /** Confirm a paid Stripe Checkout session before provisioning its Azure resource. */
33407
+ Hosting.confirmBillingCheckout = function (title_id, checkout_session_id) {
33408
+ return Requests.processRoute(HostingRoute.routes.confirmBillingCheckout, { checkout_session_id: checkout_session_id }, { title_id: title_id });
33409
+ };
33400
33410
  Hosting.createSite = function (title_id, data) {
33401
33411
  return Requests.processRoute(HostingRoute.routes.createSite, data, { title_id: title_id });
33402
33412
  };