glitch-javascript-sdk 3.9.9 → 3.10.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/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 +132 -4
- package/dist/esm/index.js +23 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +124 -2
- package/package.json +1 -1
- package/src/api/Hosting.ts +144 -4
- package/src/routes/HostingRoute.ts +5 -0
|
@@ -5677,6 +5677,11 @@
|
|
|
5677
5677
|
checkDomain: { url: '/hosting/domains/check', method: HTTP_METHODS.POST },
|
|
5678
5678
|
purchaseDomain: { url: '/titles/{title_id}/hosting/sites/{site_id}/domains/purchase', method: HTTP_METHODS.POST },
|
|
5679
5679
|
aiInstructions: { url: '/titles/{title_id}/hosting/sites/{site_id}/ai-instructions', method: HTTP_METHODS.POST },
|
|
5680
|
+
services: { url: '/titles/{title_id}/hosting/sites/{site_id}/services', method: HTTP_METHODS.GET },
|
|
5681
|
+
estimateServices: { url: '/titles/{title_id}/hosting/sites/{site_id}/services/estimate', method: HTTP_METHODS.POST },
|
|
5682
|
+
applyServices: { url: '/titles/{title_id}/hosting/sites/{site_id}/services/apply', method: HTTP_METHODS.POST },
|
|
5683
|
+
putServiceSecret: { url: '/titles/{title_id}/hosting/sites/{site_id}/services/{service_id}/secrets/{name}', method: HTTP_METHODS.PUT },
|
|
5684
|
+
deleteServiceSecret: { url: '/titles/{title_id}/hosting/sites/{site_id}/services/{service_id}/secrets/{name}', method: HTTP_METHODS.DELETE },
|
|
5680
5685
|
resolve: { url: '/hosting/resolve', method: HTTP_METHODS.GET },
|
|
5681
5686
|
startPlaySession: { url: '/hosting/play-sessions', method: HTTP_METHODS.POST },
|
|
5682
5687
|
heartbeatPlaySession: { url: '/hosting/play-sessions/{session_id}/heartbeat', method: HTTP_METHODS.POST },
|
|
@@ -6252,6 +6257,24 @@
|
|
|
6252
6257
|
static aiInstructions(title_id, site_id, data = {}) {
|
|
6253
6258
|
return Requests.processRoute(HostingRoute.routes.aiInstructions, data, { title_id, site_id });
|
|
6254
6259
|
}
|
|
6260
|
+
static services(title_id, site_id) {
|
|
6261
|
+
return Requests.processRoute(HostingRoute.routes.services, undefined, { title_id, site_id });
|
|
6262
|
+
}
|
|
6263
|
+
/** Calculate the always-on floor without creating resources or charges. */
|
|
6264
|
+
static estimateServices(title_id, site_id, data) {
|
|
6265
|
+
return Requests.processRoute(HostingRoute.routes.estimateServices, data, { title_id, site_id });
|
|
6266
|
+
}
|
|
6267
|
+
/** Queue an immutable multi-service release. Publishing remains a separate operation. */
|
|
6268
|
+
static applyServices(title_id, site_id, data) {
|
|
6269
|
+
return Requests.processRoute(HostingRoute.routes.applyServices, data, { title_id, site_id });
|
|
6270
|
+
}
|
|
6271
|
+
/** Store or rotate a secret. The API never returns the value. Interactive administrators only. */
|
|
6272
|
+
static putServiceSecret(title_id, site_id, service_id, name, value) {
|
|
6273
|
+
return Requests.processRoute(HostingRoute.routes.putServiceSecret, { value }, { title_id, site_id, service_id, name });
|
|
6274
|
+
}
|
|
6275
|
+
static deleteServiceSecret(title_id, site_id, service_id, name) {
|
|
6276
|
+
return Requests.processRoute(HostingRoute.routes.deleteServiceSecret, undefined, { title_id, site_id, service_id, name });
|
|
6277
|
+
}
|
|
6255
6278
|
static resolve(hostname, gatewayToken) {
|
|
6256
6279
|
if (!gatewayToken) {
|
|
6257
6280
|
return Requests.processRoute(HostingRoute.routes.resolve, undefined, undefined, { hostname });
|