mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-06 04:19:37 +00:00
ci: regenerated with OpenAPI Doc latest, Speakeasy CLI 1.147.0
This commit is contained in:
@@ -22,7 +22,12 @@ Creates a new topic, a new post, or a private message
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
|
||||
const res = await sdk.posts.createTopicPostPM({
|
||||
archetype: "private_message",
|
||||
@@ -66,7 +71,12 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeletePostRequest, DeletePostRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const id: number = 188146;
|
||||
const requestBody: DeletePostRequestBody = {
|
||||
forceDestroy: true,
|
||||
@@ -116,7 +126,12 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetPostRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const id: string = "string";
|
||||
|
||||
const res = await sdk.posts.getPost(id);
|
||||
@@ -157,7 +172,12 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListPostsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const apiKey: string = "string";
|
||||
const apiUsername: string = "string";
|
||||
const before: string = "string";
|
||||
@@ -202,7 +222,12 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { LockPostRequest, LockPostRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const apiKey: string = "string";
|
||||
const apiUsername: string = "string";
|
||||
const id: string = "string";
|
||||
@@ -251,7 +276,12 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { PerformPostActionRequest, PerformPostActionRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const apiKey: string = "string";
|
||||
const apiUsername: string = "string";
|
||||
const requestBody: PerformPostActionRequestBody = {
|
||||
@@ -299,7 +329,12 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { PostRepliesRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const id: string = "string";
|
||||
|
||||
const res = await sdk.posts.postReplies(id);
|
||||
@@ -340,7 +375,12 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { Post, UpdatePostRequest, UpdatePostRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const id: string = "string";
|
||||
const requestBody: UpdatePostRequestBody = {
|
||||
post: {
|
||||
|
||||
Reference in New Issue
Block a user