glitch-javascript-sdk 3.9.7 → 3.9.9
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 +8 -0
- package/dist/browser/hosting-runtime.js.map +1 -1
- package/dist/cjs/index.js +8 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Hosting.d.ts +26 -2
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +26 -0
- package/package.json +1 -1
- package/src/api/Hosting.ts +30 -2
- package/src/routes/HostingRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -39417,6 +39417,7 @@ var HostingRoute = /** @class */ (function () {
|
|
|
39417
39417
|
databases: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases', method: HTTP_METHODS.GET },
|
|
39418
39418
|
createDatabase: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases', method: HTTP_METHODS.POST },
|
|
39419
39419
|
database: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}', method: HTTP_METHODS.GET },
|
|
39420
|
+
databaseCredentials: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}/credentials', method: HTTP_METHODS.POST },
|
|
39420
39421
|
updateDatabase: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}', method: HTTP_METHODS.PUT },
|
|
39421
39422
|
retryDatabase: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}/retry', method: HTTP_METHODS.POST },
|
|
39422
39423
|
deleteDatabase: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}', method: HTTP_METHODS.DELETE },
|
|
@@ -39542,6 +39543,13 @@ var Hosting = /** @class */ (function () {
|
|
|
39542
39543
|
Hosting.database = function (title_id, site_id, database_id) {
|
|
39543
39544
|
return Requests.processRoute(HostingRoute.routes.database, undefined, { title_id: title_id, site_id: site_id, database_id: database_id });
|
|
39544
39545
|
};
|
|
39546
|
+
/**
|
|
39547
|
+
* Reveal credentials to a signed-in business billing administrator after an
|
|
39548
|
+
* exact database-name confirmation. Hosting and MCP tokens are rejected.
|
|
39549
|
+
*/
|
|
39550
|
+
Hosting.databaseCredentials = function (title_id, site_id, database_id, confirmation) {
|
|
39551
|
+
return Requests.processRoute(HostingRoute.routes.databaseCredentials, { confirmation: confirmation }, { title_id: title_id, site_id: site_id, database_id: database_id });
|
|
39552
|
+
};
|
|
39545
39553
|
Hosting.updateDatabase = function (title_id, site_id, database_id, data) {
|
|
39546
39554
|
return Requests.processRoute(HostingRoute.routes.updateDatabase, data, { title_id: title_id, site_id: site_id, database_id: database_id });
|
|
39547
39555
|
};
|