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.134.1
This commit is contained in:
@@ -5,8 +5,8 @@ management:
|
||||
docVersion: latest
|
||||
speakeasyVersion: internal
|
||||
generationVersion: 2.230.3
|
||||
releaseVersion: 0.1.0
|
||||
configChecksum: 3868c643b47ea0db51b98ad6c7722f3c
|
||||
releaseVersion: 0.2.0
|
||||
configChecksum: cade1df0d8809c00edc114be02c6db18
|
||||
repoURL: https://github.com/LukeHagar/discoursejs.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/discoursejs
|
||||
|
||||
14
README.md
14
README.md
@@ -22,13 +22,13 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
|
||||
### NPM
|
||||
|
||||
```bash
|
||||
npm add discoursejs
|
||||
npm add @lukehagar/discoursejs
|
||||
```
|
||||
|
||||
### Yarn
|
||||
|
||||
```bash
|
||||
yarn add discoursejs
|
||||
yarn add @lukehagar/discoursejs
|
||||
```
|
||||
<!-- End SDK Installation [installation] -->
|
||||
|
||||
@@ -38,7 +38,7 @@ yarn add discoursejs
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -218,7 +218,7 @@ Handling errors in this SDK should largely match your expectations. All operati
|
||||
Example
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -259,7 +259,7 @@ You can override the default server globally by passing a server index to the `s
|
||||
#### Example
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
@@ -288,7 +288,7 @@ Some of the server options above contain variables. If you want to set the value
|
||||
|
||||
The default server can also be overridden globally by passing a URL to the `serverURL: str` optional parameter when initializing the SDK client instance. For example:
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK({
|
||||
@@ -317,7 +317,7 @@ The Typescript SDK makes API calls using the [axios](https://axios-http.com/docs
|
||||
For example, you could specify a header for every request that your sdk makes as follows:
|
||||
|
||||
```typescript
|
||||
import { discoursejs } from "SDK";
|
||||
import { @lukehagar/discoursejs } from "SDK";
|
||||
import axios from "axios";
|
||||
|
||||
const httpClient = axios.create({
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -18,4 +18,14 @@ Based on:
|
||||
### Generated
|
||||
- [typescript v0.1.0] .
|
||||
### Releases
|
||||
- [NPM v0.1.0] https://www.npmjs.com/package/discoursejs/v/0.1.0 - .
|
||||
- [NPM v0.1.0] https://www.npmjs.com/package/discoursejs/v/0.1.0 - .
|
||||
|
||||
## 2024-01-10 17:51:53
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc latest
|
||||
- Speakeasy CLI 1.134.1 (2.230.3) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.2.0] .
|
||||
### Releases
|
||||
- [NPM v0.2.0] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.2.0 - .
|
||||
2
USAGE.md
2
USAGE.md
@@ -1,6 +1,6 @@
|
||||
<!-- Start SDK Example Usage [usage] -->
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -21,8 +21,8 @@ Activate a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ActivateUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ActivateUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -62,8 +62,8 @@ Get a user by id
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { AdminGetUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { AdminGetUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -103,8 +103,8 @@ Get a list of users
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { Flag, QueryParamAsc, QueryParamOrder } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { Flag, QueryParamAsc, QueryParamOrder } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -145,8 +145,8 @@ Anonymize a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { AnonymizeUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { AnonymizeUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -186,8 +186,8 @@ Deactivate a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { DeactivateUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeactivateUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -227,8 +227,8 @@ Delete a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { DeleteUserRequest, DeleteUserRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeleteUserRequest, DeleteUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -270,8 +270,8 @@ Log a user out
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { LogOutUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { LogOutUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -311,8 +311,8 @@ Refresh gravatar
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { RefreshGravatarRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { RefreshGravatarRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -352,8 +352,8 @@ Silence a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SilenceUserRequest, SilenceUserRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { SilenceUserRequest, SilenceUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -398,8 +398,8 @@ Suspend a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SuspendUserRequest, SuspendUserRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { SuspendUserRequest, SuspendUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -15,7 +15,7 @@ Create backup
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -56,8 +56,8 @@ Download backup
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { DownloadBackupRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DownloadBackupRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -99,7 +99,7 @@ List backups
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -137,8 +137,8 @@ Send download backup email
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SendDownloadBackupEmailRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { SendDownloadBackupEmailRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -16,7 +16,7 @@ List badges
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -54,7 +54,7 @@ Create badge
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -96,8 +96,8 @@ Delete badge
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { DeleteBadgeRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeleteBadgeRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -137,8 +137,8 @@ List badges for a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListUserBadgesRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListUserBadgesRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -178,8 +178,8 @@ Update badge
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateBadgeRequest, UpdateBadgeRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateBadgeRequest, UpdateBadgeRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -17,7 +17,7 @@ Creates a category
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -66,8 +66,8 @@ Show category
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetCategoryRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetCategoryRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -107,7 +107,7 @@ Can be used to fetch all categories and subcategories
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -145,8 +145,8 @@ Retrieves a list of categories
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListCategoriesRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListCategoriesRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -186,8 +186,8 @@ List topics
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListCategoryTopicsRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListCategoryTopicsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -229,8 +229,8 @@ Updates a category
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateCategoryRequest, UpdateCategoryRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateCategoryRequest, UpdateCategoryRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -19,8 +19,8 @@ Add group members
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { AddGroupMembersRequest, AddGroupMembersRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { AddGroupMembersRequest, AddGroupMembersRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -64,7 +64,7 @@ Create a group
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -122,8 +122,8 @@ Delete a group
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { DeleteGroupRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeleteGroupRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -163,8 +163,8 @@ Get a group
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetGroupRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetGroupRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -204,8 +204,8 @@ List group members
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListGroupMembersRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListGroupMembersRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -245,7 +245,7 @@ List groups
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -283,8 +283,8 @@ Remove group members
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { RemoveGroupMembersRequest, RemoveGroupMembersRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { RemoveGroupMembersRequest, RemoveGroupMembersRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -328,8 +328,8 @@ Update a group
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateGroupGroup, UpdateGroupRequest, UpdateGroupRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateGroupGroup, UpdateGroupRequest, UpdateGroupRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -13,8 +13,8 @@ Create an invite
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { CreateInviteRequest, CreateInviteRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { CreateInviteRequest, CreateInviteRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -63,8 +63,8 @@ Invite to topic
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { InviteToTopicRequest, InviteToTopicRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { InviteToTopicRequest, InviteToTopicRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -13,7 +13,7 @@ Get the notifications that belong to the current user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -51,7 +51,7 @@ Mark notifications as read
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -19,7 +19,7 @@ Creates a new topic, a new post, or a private message
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -62,8 +62,8 @@ delete a single post
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { DeletePostRequest, DeletePostRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeletePostRequest, DeletePostRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -112,8 +112,8 @@ refer to various different flag types.
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetPostRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetPostRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -153,8 +153,8 @@ List latest posts across topics
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListPostsRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListPostsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -198,8 +198,8 @@ Lock a post from being edited
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { LockPostRequest, LockPostRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { LockPostRequest, LockPostRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -247,8 +247,8 @@ Like a post and other actions
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { PerformPostActionRequest, PerformPostActionRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { PerformPostActionRequest, PerformPostActionRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -295,8 +295,8 @@ List replies to a post
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { PostRepliesRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { PostRepliesRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -336,8 +336,8 @@ Update a single post
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { Post, UpdatePostRequest, UpdatePostRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { Post, UpdatePostRequest, UpdatePostRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -14,7 +14,7 @@ Creates a new topic, a new post, or a private message
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -57,8 +57,8 @@ Get a list of private messages sent for a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetUserSentPrivateMessagesRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetUserSentPrivateMessagesRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -98,8 +98,8 @@ Get a list of private messages for a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListUserPrivateMessagesRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListUserPrivateMessagesRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -12,8 +12,8 @@ Search for a term
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SearchRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { SearchRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -12,7 +12,7 @@ Can be used to fetch all categories and subcategories
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -17,7 +17,7 @@ Creates a tag group
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -58,8 +58,8 @@ Get a specific tag
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetTagRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetTagRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -99,8 +99,8 @@ Get a single tag group
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetTagGroupRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetTagGroupRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -140,7 +140,7 @@ Get a list of tag groups
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -178,7 +178,7 @@ Get a list of tags
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -216,8 +216,8 @@ Update tag group
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateTagGroupRequest, UpdateTagGroupRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateTagGroupRequest, UpdateTagGroupRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -24,8 +24,8 @@ Bookmark topic
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { BookmarkTopicRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { BookmarkTopicRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -69,7 +69,7 @@ Creates a new topic, a new post, or a private message
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -112,8 +112,8 @@ Create topic timer
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { CreateTopicTimerRequest, CreateTopicTimerRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { CreateTopicTimerRequest, CreateTopicTimerRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -161,8 +161,8 @@ Get a single topic
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetTopicRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetTopicRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -206,8 +206,8 @@ Get topic by external_id
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetTopicByExternalIdRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetTopicByExternalIdRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -247,8 +247,8 @@ Invite to topic
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { InviteToTopicRequest, InviteToTopicRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { InviteToTopicRequest, InviteToTopicRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -294,8 +294,8 @@ Get the latest topics
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListLatestTopicsRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListLatestTopicsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -341,8 +341,8 @@ Get the top topics filtered by period
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListTopTopicsRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListTopTopicsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -386,8 +386,8 @@ Remove a topic
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { RemoveTopicRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { RemoveTopicRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -431,8 +431,8 @@ Set notification level
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { NotificationLevel, SetNotificationLevelRequest, SetNotificationLevelRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { NotificationLevel, SetNotificationLevelRequest, SetNotificationLevelRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -480,8 +480,8 @@ Update a topic
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { Topic, UpdateTopicRequest, UpdateTopicRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { Topic, UpdateTopicRequest, UpdateTopicRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -529,8 +529,8 @@ Update the status of a topic
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { Enabled, Status, UpdateTopicStatusRequest, UpdateTopicStatusRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { Enabled, Status, UpdateTopicStatusRequest, UpdateTopicStatusRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -580,8 +580,8 @@ Update topic timestamp
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateTopicTimestampRequest, UpdateTopicTimestampRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateTopicTimestampRequest, UpdateTopicTimestampRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -30,7 +30,7 @@ be set to true for this endpoint to function.
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -92,7 +92,7 @@ be set to true for this endpoint to function.
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -155,7 +155,7 @@ be set to true for this endpoint to function.
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -213,7 +213,7 @@ be set to true for this endpoint to function.
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -269,8 +269,8 @@ be set to true for this endpoint to function.
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UploadType } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UploadType } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -314,8 +314,8 @@ Creates an upload
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { TypeT } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { TypeT } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -380,8 +380,8 @@ be set to true for this endpoint to function.
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GeneratePresignedPutType } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GeneratePresignedPutType } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
@@ -35,8 +35,8 @@ Activate a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ActivateUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ActivateUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -76,8 +76,8 @@ Get a user by id
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { AdminGetUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { AdminGetUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -117,8 +117,8 @@ Get a list of users
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { Flag, QueryParamAsc, QueryParamOrder } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { Flag, QueryParamAsc, QueryParamOrder } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -159,8 +159,8 @@ Anonymize a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { AnonymizeUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { AnonymizeUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -200,8 +200,8 @@ Change password
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ChangePasswordRequest, ChangePasswordRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ChangePasswordRequest, ChangePasswordRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -246,8 +246,8 @@ Creates a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { CreateUserRequest, CreateUserRequestBody, ExternalIds } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { CreateUserRequest, CreateUserRequestBody, ExternalIds } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -297,8 +297,8 @@ Deactivate a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { DeactivateUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeactivateUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -338,8 +338,8 @@ Delete a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { DeleteUserRequest, DeleteUserRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { DeleteUserRequest, DeleteUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -381,8 +381,8 @@ Get a single user by username
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -426,8 +426,8 @@ Get email addresses belonging to a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetUserEmailsRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetUserEmailsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -467,8 +467,8 @@ Get a user by external_id
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetUserExternalIdRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetUserExternalIdRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -512,8 +512,8 @@ Get a user by identity provider external ID
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { GetUserIdentiyProviderExternalIdRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { GetUserIdentiyProviderExternalIdRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -559,8 +559,8 @@ Get a list of user actions
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListUserActionsRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListUserActionsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -604,8 +604,8 @@ List badges for a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { ListUserBadgesRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { ListUserBadgesRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -645,8 +645,8 @@ Get a public list of users
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { Asc, ListUsersPublicRequest, Order, Period } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { Asc, ListUsersPublicRequest, Order, Period } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -692,8 +692,8 @@ Log a user out
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { LogOutUserRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { LogOutUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -733,8 +733,8 @@ Refresh gravatar
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { RefreshGravatarRequest } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { RefreshGravatarRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -774,7 +774,7 @@ Send password reset email
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -815,8 +815,8 @@ Silence a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SilenceUserRequest, SilenceUserRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { SilenceUserRequest, SilenceUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -861,8 +861,8 @@ Suspend a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { SuspendUserRequest, SuspendUserRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { SuspendUserRequest, SuspendUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -908,8 +908,8 @@ Update avatar
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateAvatarRequest, UpdateAvatarRequestBody, UpdateAvatarType } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateAvatarRequest, UpdateAvatarRequestBody, UpdateAvatarType } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -954,8 +954,8 @@ Update email
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateEmailRequest, UpdateEmailRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateEmailRequest, UpdateEmailRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -999,8 +999,8 @@ Update a user
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateUserExternalIds, UpdateUserRequest, UpdateUserRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateUserExternalIds, UpdateUserRequest, UpdateUserRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
@@ -1048,8 +1048,8 @@ Update username
|
||||
### Example Usage
|
||||
|
||||
```typescript
|
||||
import { SDK } from "discoursejs";
|
||||
import { UpdateUsernameRequest, UpdateUsernameRequestBody } from "discoursejs/dist/sdk/models/operations";
|
||||
import { SDK } from "@lukehagar/discoursejs";
|
||||
import { UpdateUsernameRequest, UpdateUsernameRequestBody } from "@lukehagar/discoursejs/dist/sdk/models/operations";
|
||||
|
||||
async function run() {
|
||||
const sdk = new SDK();
|
||||
|
||||
2
gen.yaml
2
gen.yaml
@@ -7,7 +7,7 @@ generation:
|
||||
fixes:
|
||||
nameResolutionDec2023: false
|
||||
typescript:
|
||||
version: 0.1.0
|
||||
version: 0.2.0
|
||||
author: LukeHagar
|
||||
clientServerStatusCodesAsErrors: false
|
||||
flattenGlobalSecurity: true
|
||||
|
||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "discoursejs",
|
||||
"version": "0.1.0",
|
||||
"name": "@lukehagar/discoursejs",
|
||||
"version": "0.2.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "discoursejs",
|
||||
"version": "0.1.0",
|
||||
"name": "@lukehagar/discoursejs",
|
||||
"version": "0.2.0",
|
||||
"dependencies": {
|
||||
"axios": "^1.1.3",
|
||||
"class-transformer": "^0.5.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discoursejs",
|
||||
"version": "0.1.0",
|
||||
"name": "@lukehagar/discoursejs",
|
||||
"version": "0.2.0",
|
||||
"author": "LukeHagar",
|
||||
"scripts": {
|
||||
"prepare": "tsc --build",
|
||||
|
||||
@@ -61,9 +61,9 @@ export class SDKConfiguration {
|
||||
serverDefaults: any;
|
||||
language = "typescript";
|
||||
openapiDocVersion = "latest";
|
||||
sdkVersion = "0.1.0";
|
||||
sdkVersion = "0.2.0";
|
||||
genVersion = "2.230.3";
|
||||
userAgent = "speakeasy-sdk/typescript 0.1.0 2.230.3 latest discoursejs";
|
||||
userAgent = "speakeasy-sdk/typescript 0.2.0 2.230.3 latest @lukehagar/discoursejs";
|
||||
retryConfig?: utils.RetryConfig;
|
||||
public constructor(init?: Partial<SDKConfiguration>) {
|
||||
Object.assign(this, init);
|
||||
|
||||
Reference in New Issue
Block a user