glitch-javascript-sdk 3.9.6 → 3.9.8

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.
@@ -5663,6 +5663,9 @@
5663
5663
  resolveMarketplacePurchase: { url: '/hosting/marketplace/resolve', method: HTTP_METHODS.POST },
5664
5664
  activateMarketplaceSubscription: { url: '/hosting/marketplace/subscriptions/{subscription_id}/activate', method: HTTP_METHODS.POST },
5665
5665
  marketplaceSubscription: { url: '/hosting/marketplace/subscriptions/{subscription_id}', method: HTTP_METHODS.GET },
5666
+ resolveAwsMarketplacePurchase: { url: '/hosting/aws-marketplace/resolve', method: HTTP_METHODS.POST },
5667
+ activateAwsMarketplaceSubscription: { url: '/hosting/aws-marketplace/subscriptions/{subscription_id}/activate', method: HTTP_METHODS.POST },
5668
+ awsMarketplaceSubscription: { url: '/hosting/aws-marketplace/subscriptions/{subscription_id}', method: HTTP_METHODS.GET },
5666
5669
  createSite: { url: '/titles/{title_id}/hosting/sites', method: HTTP_METHODS.POST },
5667
5670
  updateSite: { url: '/titles/{title_id}/hosting/sites/{site_id}', method: HTTP_METHODS.PUT },
5668
5671
  uploadUrl: { url: '/titles/{title_id}/hosting/sites/{site_id}/upload-url', method: HTTP_METHODS.POST },
@@ -6196,6 +6199,18 @@
6196
6199
  static marketplaceSubscription(subscription_id) {
6197
6200
  return Requests.processRoute(HostingRoute.routes.marketplaceSubscription, undefined, { subscription_id });
6198
6201
  }
6202
+ /** Claim the one-time Glitch code created after AWS ResolveCustomer succeeds. */
6203
+ static resolveAwsMarketplacePurchase(activation_code) {
6204
+ return Requests.processRoute(HostingRoute.routes.resolveAwsMarketplacePurchase, { activation_code });
6205
+ }
6206
+ /** Connect a paid AWS Marketplace contract to one Glitch business account. */
6207
+ static activateAwsMarketplaceSubscription(subscription_id, community_id) {
6208
+ return Requests.processRoute(HostingRoute.routes.activateAwsMarketplaceSubscription, { community_id }, { subscription_id });
6209
+ }
6210
+ /** Refresh and retrieve the safe AWS Marketplace entitlement state. */
6211
+ static awsMarketplaceSubscription(subscription_id) {
6212
+ return Requests.processRoute(HostingRoute.routes.awsMarketplaceSubscription, undefined, { subscription_id });
6213
+ }
6199
6214
  static createSite(title_id, data) {
6200
6215
  return Requests.processRoute(HostingRoute.routes.createSite, data, { title_id });
6201
6216
  }