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
|
@@ -5683,6 +5683,7 @@
|
|
|
5683
5683
|
databases: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases', method: HTTP_METHODS.GET },
|
|
5684
5684
|
createDatabase: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases', method: HTTP_METHODS.POST },
|
|
5685
5685
|
database: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}', method: HTTP_METHODS.GET },
|
|
5686
|
+
databaseCredentials: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}/credentials', method: HTTP_METHODS.POST },
|
|
5686
5687
|
updateDatabase: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}', method: HTTP_METHODS.PUT },
|
|
5687
5688
|
retryDatabase: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}/retry', method: HTTP_METHODS.POST },
|
|
5688
5689
|
deleteDatabase: { url: '/titles/{title_id}/hosting/sites/{site_id}/databases/{database_id}', method: HTTP_METHODS.DELETE },
|
|
@@ -6279,6 +6280,13 @@
|
|
|
6279
6280
|
static database(title_id, site_id, database_id) {
|
|
6280
6281
|
return Requests.processRoute(HostingRoute.routes.database, undefined, { title_id, site_id, database_id });
|
|
6281
6282
|
}
|
|
6283
|
+
/**
|
|
6284
|
+
* Reveal credentials to a signed-in business billing administrator after an
|
|
6285
|
+
* exact database-name confirmation. Hosting and MCP tokens are rejected.
|
|
6286
|
+
*/
|
|
6287
|
+
static databaseCredentials(title_id, site_id, database_id, confirmation) {
|
|
6288
|
+
return Requests.processRoute(HostingRoute.routes.databaseCredentials, { confirmation }, { title_id, site_id, database_id });
|
|
6289
|
+
}
|
|
6282
6290
|
static updateDatabase(title_id, site_id, database_id, data) {
|
|
6283
6291
|
return Requests.processRoute(HostingRoute.routes.updateDatabase, data, { title_id, site_id, database_id });
|
|
6284
6292
|
}
|