mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-09 12:27:49 +00:00
ci: regenerated with OpenAPI Doc latest, Speakeasy CLI 1.368.0
This commit is contained in:
@@ -29,6 +29,35 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { backupsCreateBackup } from "@lukehagar/discoursejs/funcs/backupsCreateBackup.js";
|
||||
|
||||
// Use `SDKCore` for best tree-shaking performance.
|
||||
// You can create one instance of it to use across an application.
|
||||
const sdk = new SDKCore();
|
||||
|
||||
async function run() {
|
||||
const res = await backupsCreateBackup(sdk);
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
@@ -63,6 +92,34 @@ async function run() {
|
||||
await sdk.backups.downloadBackup("<value>", "<value>");
|
||||
|
||||
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { backupsDownloadBackup } from "@lukehagar/discoursejs/funcs/backupsDownloadBackup.js";
|
||||
|
||||
// Use `SDKCore` for best tree-shaking performance.
|
||||
// You can create one instance of it to use across an application.
|
||||
const sdk = new SDKCore();
|
||||
|
||||
async function run() {
|
||||
const res = await backupsDownloadBackup(sdk, "<value>", "<value>");
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
|
||||
}
|
||||
|
||||
run();
|
||||
@@ -109,6 +166,35 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { backupsGetBackups } from "@lukehagar/discoursejs/funcs/backupsGetBackups.js";
|
||||
|
||||
// Use `SDKCore` for best tree-shaking performance.
|
||||
// You can create one instance of it to use across an application.
|
||||
const sdk = new SDKCore();
|
||||
|
||||
async function run() {
|
||||
const res = await backupsGetBackups(sdk);
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
@@ -142,6 +228,34 @@ async function run() {
|
||||
await sdk.backups.sendDownloadBackupEmail("<value>");
|
||||
|
||||
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { backupsSendDownloadBackupEmail } from "@lukehagar/discoursejs/funcs/backupsSendDownloadBackupEmail.js";
|
||||
|
||||
// Use `SDKCore` for best tree-shaking performance.
|
||||
// You can create one instance of it to use across an application.
|
||||
const sdk = new SDKCore();
|
||||
|
||||
async function run() {
|
||||
const res = await backupsSendDownloadBackupEmail(sdk, "<value>");
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user