glitch-javascript-sdk 3.9.9 → 3.10.0
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/browser/hosting-runtime.js +23 -0
- package/dist/browser/hosting-runtime.js.map +1 -1
- package/dist/cjs/index.js +23 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Hosting.d.ts +108 -4
- package/dist/esm/index.js +23 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +105 -2
- package/package.json +1 -1
- package/src/api/Hosting.ts +123 -4
- package/src/routes/HostingRoute.ts +5 -0
package/dist/cjs/index.js
CHANGED
|
@@ -39411,6 +39411,11 @@ var HostingRoute = /** @class */ (function () {
|
|
|
39411
39411
|
checkDomain: { url: '/hosting/domains/check', method: HTTP_METHODS.POST },
|
|
39412
39412
|
purchaseDomain: { url: '/titles/{title_id}/hosting/sites/{site_id}/domains/purchase', method: HTTP_METHODS.POST },
|
|
39413
39413
|
aiInstructions: { url: '/titles/{title_id}/hosting/sites/{site_id}/ai-instructions', method: HTTP_METHODS.POST },
|
|
39414
|
+
services: { url: '/titles/{title_id}/hosting/sites/{site_id}/services', method: HTTP_METHODS.GET },
|
|
39415
|
+
estimateServices: { url: '/titles/{title_id}/hosting/sites/{site_id}/services/estimate', method: HTTP_METHODS.POST },
|
|
39416
|
+
applyServices: { url: '/titles/{title_id}/hosting/sites/{site_id}/services/apply', method: HTTP_METHODS.POST },
|
|
39417
|
+
putServiceSecret: { url: '/titles/{title_id}/hosting/sites/{site_id}/services/{service_id}/secrets/{name}', method: HTTP_METHODS.PUT },
|
|
39418
|
+
deleteServiceSecret: { url: '/titles/{title_id}/hosting/sites/{site_id}/services/{service_id}/secrets/{name}', method: HTTP_METHODS.DELETE },
|
|
39414
39419
|
resolve: { url: '/hosting/resolve', method: HTTP_METHODS.GET },
|
|
39415
39420
|
startPlaySession: { url: '/hosting/play-sessions', method: HTTP_METHODS.POST },
|
|
39416
39421
|
heartbeatPlaySession: { url: '/hosting/play-sessions/{session_id}/heartbeat', method: HTTP_METHODS.POST },
|
|
@@ -39515,6 +39520,24 @@ var Hosting = /** @class */ (function () {
|
|
|
39515
39520
|
if (data === void 0) { data = {}; }
|
|
39516
39521
|
return Requests.processRoute(HostingRoute.routes.aiInstructions, data, { title_id: title_id, site_id: site_id });
|
|
39517
39522
|
};
|
|
39523
|
+
Hosting.services = function (title_id, site_id) {
|
|
39524
|
+
return Requests.processRoute(HostingRoute.routes.services, undefined, { title_id: title_id, site_id: site_id });
|
|
39525
|
+
};
|
|
39526
|
+
/** Calculate the always-on floor without creating resources or charges. */
|
|
39527
|
+
Hosting.estimateServices = function (title_id, site_id, data) {
|
|
39528
|
+
return Requests.processRoute(HostingRoute.routes.estimateServices, data, { title_id: title_id, site_id: site_id });
|
|
39529
|
+
};
|
|
39530
|
+
/** Queue an immutable multi-service release. Publishing remains a separate operation. */
|
|
39531
|
+
Hosting.applyServices = function (title_id, site_id, data) {
|
|
39532
|
+
return Requests.processRoute(HostingRoute.routes.applyServices, data, { title_id: title_id, site_id: site_id });
|
|
39533
|
+
};
|
|
39534
|
+
/** Store or rotate a secret. The API never returns the value. Interactive administrators only. */
|
|
39535
|
+
Hosting.putServiceSecret = function (title_id, site_id, service_id, name, value) {
|
|
39536
|
+
return Requests.processRoute(HostingRoute.routes.putServiceSecret, { value: value }, { title_id: title_id, site_id: site_id, service_id: service_id, name: name });
|
|
39537
|
+
};
|
|
39538
|
+
Hosting.deleteServiceSecret = function (title_id, site_id, service_id, name) {
|
|
39539
|
+
return Requests.processRoute(HostingRoute.routes.deleteServiceSecret, undefined, { title_id: title_id, site_id: site_id, service_id: service_id, name: name });
|
|
39540
|
+
};
|
|
39518
39541
|
Hosting.resolve = function (hostname, gatewayToken) {
|
|
39519
39542
|
if (!gatewayToken) {
|
|
39520
39543
|
return Requests.processRoute(HostingRoute.routes.resolve, undefined, undefined, { hostname: hostname });
|