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.148.0
This commit is contained in:
@@ -25,12 +25,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ActivateUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const id: number = 203554;
|
||||
|
||||
const res = await sdk.admin.activateUser(id);
|
||||
@@ -71,12 +66,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { AdminGetUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const id: number = 386776;
|
||||
|
||||
const res = await sdk.admin.adminGetUser(id);
|
||||
@@ -117,12 +107,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { Flag, QueryParamAsc, QueryParamOrder } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
|
||||
const res = await sdk.admin.adminListUsers({
|
||||
flag: Flag.New,
|
||||
@@ -164,12 +149,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { AnonymizeUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const id: number = 418778;
|
||||
|
||||
const res = await sdk.admin.anonymizeUser(id);
|
||||
@@ -210,12 +190,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeactivateUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const id: number = 143950;
|
||||
|
||||
const res = await sdk.admin.deactivateUser(id);
|
||||
@@ -256,12 +231,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeleteUserRequest, DeleteUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const id: number = 251343;
|
||||
const requestBody: DeleteUserRequestBody = {};
|
||||
|
||||
@@ -304,12 +274,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { LogOutUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const id: number = 379568;
|
||||
|
||||
const res = await sdk.admin.logOutUser(id);
|
||||
@@ -350,12 +315,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { RefreshGravatarRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const username: string = "string";
|
||||
|
||||
const res = await sdk.admin.refreshGravatar(username);
|
||||
@@ -396,12 +356,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { SilenceUserRequest, SilenceUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const id: number = 606247;
|
||||
const requestBody: SilenceUserRequestBody = {
|
||||
postAction: "delete",
|
||||
@@ -447,12 +402,7 @@ import { SDK } from "@lukehagar/discoursejs";
|
||||
import { SuspendUserRequest, SuspendUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
security: {
|
||||
key: "<YOUR_API_KEY_HERE>",
|
||||
username: "<YOUR_API_KEY_HERE>",
|
||||
},
|
||||
});
|
||||
const sdk = new SDK();
|
||||
const id: number = 970832;
|
||||
const requestBody: SuspendUserRequestBody = {
|
||||
postAction: "delete",
|
||||
|
||||
Reference in New Issue
Block a user