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:
@@ -37,6 +37,39 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { postsCreateTopicPostPM } from "@lukehagar/discoursejs/funcs/postsCreateTopicPostPM.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 postsCreateTopicPostPM(sdk, {
|
||||
archetype: "private_message",
|
||||
raw: "<value>",
|
||||
targetRecipients: "blake,sam",
|
||||
});
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
@@ -73,6 +106,36 @@ async function run() {
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { postsDeletePost } from "@lukehagar/discoursejs/funcs/postsDeletePost.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 postsDeletePost(sdk, 928159, {
|
||||
forceDestroy: true,
|
||||
});
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
|
||||
}
|
||||
|
||||
run();
|
||||
@@ -124,6 +187,35 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { postsGetPost } from "@lukehagar/discoursejs/funcs/postsGetPost.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 postsGetPost(sdk, "<value>");
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
@@ -164,6 +256,35 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { postsListPosts } from "@lukehagar/discoursejs/funcs/postsListPosts.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 postsListPosts(sdk, "<value>", "<value>");
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
@@ -206,6 +327,35 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { postsLockPost } from "@lukehagar/discoursejs/funcs/postsLockPost.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 postsLockPost(sdk, "<value>", "<value>", "<value>");
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
@@ -249,6 +399,35 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { postsPerformPostAction } from "@lukehagar/discoursejs/funcs/postsPerformPostAction.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 postsPerformPostAction(sdk, "<value>", "<value>");
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
@@ -291,6 +470,35 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { postsPostReplies } from "@lukehagar/discoursejs/funcs/postsPostReplies.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 postsPostReplies(sdk, "<value>");
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
@@ -331,6 +539,35 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
|
||||
```typescript
|
||||
import { SDKCore } from "@lukehagar/discoursejs/core.js";
|
||||
import { postsUpdatePost } from "@lukehagar/discoursejs/funcs/postsUpdatePost.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 postsUpdatePost(sdk, "<value>");
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
|
||||
Reference in New Issue
Block a user