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.180.1
This commit is contained in:
@@ -4,16 +4,16 @@ management:
|
|||||||
docChecksum: dd4d04e62622de8f631720b5be68964d
|
docChecksum: dd4d04e62622de8f631720b5be68964d
|
||||||
docVersion: latest
|
docVersion: latest
|
||||||
speakeasyVersion: internal
|
speakeasyVersion: internal
|
||||||
generationVersion: 2.253.0
|
generationVersion: 2.258.2
|
||||||
releaseVersion: 0.4.1
|
releaseVersion: 0.4.2
|
||||||
configChecksum: 1da325d148fe2fccc89aea4ace43e139
|
configChecksum: ff90f8eb07dba1c9d4f645a5eb1b0cf4
|
||||||
repoURL: https://github.com/LukeHagar/discoursejs.git
|
repoURL: https://github.com/LukeHagar/discoursejs.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/discoursejs
|
installationURL: https://github.com/LukeHagar/discoursejs
|
||||||
published: true
|
published: true
|
||||||
features:
|
features:
|
||||||
typescript:
|
typescript:
|
||||||
core: 3.4.6
|
core: 3.4.7
|
||||||
deprecations: 2.81.1
|
deprecations: 2.81.1
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
globalServerURLs: 2.82.1
|
globalServerURLs: 2.82.1
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -78,4 +78,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [typescript v0.4.1] .
|
- [typescript v0.4.1] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.4.1] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.4.1 - .
|
- [NPM v0.4.1] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.4.1 - .
|
||||||
|
|
||||||
|
## 2024-02-15 01:08:35
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc latest
|
||||||
|
- Speakeasy CLI 1.180.1 (2.258.2) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.4.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.4.2] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.4.2 - .
|
||||||
@@ -316,7 +316,7 @@ import { RefreshGravatarRequest } from "@lukehagar/discoursejs/dist/sdk/models/o
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.admin.refreshGravatar(username);
|
const res = await sdk.admin.refreshGravatar(username);
|
||||||
|
|
||||||
@@ -406,7 +406,7 @@ async function run() {
|
|||||||
const id: number = 970832;
|
const id: number = 970832;
|
||||||
const requestBody: SuspendUserRequestBody = {
|
const requestBody: SuspendUserRequestBody = {
|
||||||
postAction: "delete",
|
postAction: "delete",
|
||||||
reason: "string",
|
reason: "<value>",
|
||||||
suspendUntil: "2121-02-22",
|
suspendUntil: "2121-02-22",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ import { DownloadBackupRequest } from "@lukehagar/discoursejs/dist/sdk/models/op
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const filename: string = "string";
|
const filename: string = "<value>";
|
||||||
const token: string = "string";
|
const token: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.backups.downloadBackup(filename, token);
|
const res = await sdk.backups.downloadBackup(filename, token);
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ import { SendDownloadBackupEmailRequest } from "@lukehagar/discoursejs/dist/sdk/
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const filename: string = "string";
|
const filename: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.backups.sendDownloadBackupEmail(filename);
|
const res = await sdk.backups.sendDownloadBackupEmail(filename);
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ async function run() {
|
|||||||
|
|
||||||
const res = await sdk.badges.createBadge({
|
const res = await sdk.badges.createBadge({
|
||||||
badgeTypeId: 190613,
|
badgeTypeId: 190613,
|
||||||
name: "string",
|
name: "<value>",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
@@ -142,7 +142,7 @@ import { ListUserBadgesRequest } from "@lukehagar/discoursejs/dist/sdk/models/op
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.badges.listUserBadges(username);
|
const res = await sdk.badges.listUserBadges(username);
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ async function run() {
|
|||||||
const id: number = 280628;
|
const id: number = 280628;
|
||||||
const requestBody: UpdateBadgeRequestBody = {
|
const requestBody: UpdateBadgeRequestBody = {
|
||||||
badgeTypeId: 568845,
|
badgeTypeId: 568845,
|
||||||
name: "string",
|
name: "<value>",
|
||||||
};
|
};
|
||||||
|
|
||||||
const res = await sdk.badges.updateBadge(id, requestBody);
|
const res = await sdk.badges.updateBadge(id, requestBody);
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ async function run() {
|
|||||||
const res = await sdk.categories.createCategory({
|
const res = await sdk.categories.createCategory({
|
||||||
color: "49d9e9",
|
color: "49d9e9",
|
||||||
formTemplateIds: [
|
formTemplateIds: [
|
||||||
"string",
|
"<value>",
|
||||||
],
|
],
|
||||||
name: "string",
|
name: "<value>",
|
||||||
permissions: {
|
permissions: {
|
||||||
"key": "string",
|
"key": "<value>",
|
||||||
},
|
},
|
||||||
textColor: "f0fcfd",
|
textColor: "f0fcfd",
|
||||||
});
|
});
|
||||||
@@ -192,7 +192,7 @@ import { ListCategoryTopicsRequest } from "@lukehagar/discoursejs/dist/sdk/model
|
|||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const id: number = 394133;
|
const id: number = 394133;
|
||||||
const slug: string = "string";
|
const slug: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.categories.listCategoryTopics(id, slug);
|
const res = await sdk.categories.listCategoryTopics(id, slug);
|
||||||
|
|
||||||
@@ -238,11 +238,11 @@ const id: number = 353500;
|
|||||||
const requestBody: UpdateCategoryRequestBody = {
|
const requestBody: UpdateCategoryRequestBody = {
|
||||||
color: "49d9e9",
|
color: "49d9e9",
|
||||||
formTemplateIds: [
|
formTemplateIds: [
|
||||||
"string",
|
"<value>",
|
||||||
],
|
],
|
||||||
name: "string",
|
name: "<value>",
|
||||||
permissions: {
|
permissions: {
|
||||||
"key": "string",
|
"key": "<value>",
|
||||||
},
|
},
|
||||||
textColor: "f0fcfd",
|
textColor: "f0fcfd",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ async function run() {
|
|||||||
mutedCategoryIds: [
|
mutedCategoryIds: [
|
||||||
385163,
|
385163,
|
||||||
],
|
],
|
||||||
name: "string",
|
name: "<value>",
|
||||||
regularCategoryIds: [
|
regularCategoryIds: [
|
||||||
723588,
|
723588,
|
||||||
],
|
],
|
||||||
@@ -168,7 +168,7 @@ import { GetGroupRequest } from "@lukehagar/discoursejs/dist/sdk/models/operatio
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.groups.getGroup(id);
|
const res = await sdk.groups.getGroup(id);
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ import { ListGroupMembersRequest } from "@lukehagar/discoursejs/dist/sdk/models/
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.groups.listGroupMembers(id);
|
const res = await sdk.groups.listGroupMembers(id);
|
||||||
|
|
||||||
@@ -339,7 +339,7 @@ const requestBody: UpdateGroupRequestBody = {
|
|||||||
mutedCategoryIds: [
|
mutedCategoryIds: [
|
||||||
244551,
|
244551,
|
||||||
],
|
],
|
||||||
name: "string",
|
name: "<value>",
|
||||||
regularCategoryIds: [
|
regularCategoryIds: [
|
||||||
750192,
|
750192,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ import { CreateInviteRequest, CreateInviteRequestBody } from "@lukehagar/discour
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const requestBody: CreateInviteRequestBody = {
|
const requestBody: CreateInviteRequestBody = {
|
||||||
email: "not-a-user-yet@example.com",
|
email: "not-a-user-yet@example.com",
|
||||||
groupIds: "42,43",
|
groupIds: "42,43",
|
||||||
@@ -68,9 +68,9 @@ import { InviteToTopicRequest, InviteToTopicRequestBody } from "@lukehagar/disco
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: InviteToTopicRequestBody = {};
|
const requestBody: InviteToTopicRequestBody = {};
|
||||||
|
|
||||||
const res = await sdk.invites.inviteToTopic(apiKey, apiUsername, id, requestBody);
|
const res = await sdk.invites.inviteToTopic(apiKey, apiUsername, id, requestBody);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ async function run() {
|
|||||||
|
|
||||||
const res = await sdk.posts.createTopicPostPM({
|
const res = await sdk.posts.createTopicPostPM({
|
||||||
archetype: "private_message",
|
archetype: "private_message",
|
||||||
raw: "string",
|
raw: "<value>",
|
||||||
targetRecipients: "blake,sam",
|
targetRecipients: "blake,sam",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ import { GetPostRequest } from "@lukehagar/discoursejs/dist/sdk/models/operation
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.posts.getPost(id);
|
const res = await sdk.posts.getPost(id);
|
||||||
|
|
||||||
@@ -158,9 +158,9 @@ import { ListPostsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operati
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const before: string = "string";
|
const before: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.posts.listPosts(apiKey, apiUsername, before);
|
const res = await sdk.posts.listPosts(apiKey, apiUsername, before);
|
||||||
|
|
||||||
@@ -203,11 +203,11 @@ import { LockPostRequest, LockPostRequestBody } from "@lukehagar/discoursejs/dis
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: LockPostRequestBody = {
|
const requestBody: LockPostRequestBody = {
|
||||||
locked: "string",
|
locked: "<value>",
|
||||||
};
|
};
|
||||||
|
|
||||||
const res = await sdk.posts.lockPost(apiKey, apiUsername, id, requestBody);
|
const res = await sdk.posts.lockPost(apiKey, apiUsername, id, requestBody);
|
||||||
@@ -252,8 +252,8 @@ import { PerformPostActionRequest, PerformPostActionRequestBody } from "@lukehag
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const requestBody: PerformPostActionRequestBody = {
|
const requestBody: PerformPostActionRequestBody = {
|
||||||
id: 315075,
|
id: 315075,
|
||||||
postActionTypeId: 159481,
|
postActionTypeId: 159481,
|
||||||
@@ -300,7 +300,7 @@ import { PostRepliesRequest } from "@lukehagar/discoursejs/dist/sdk/models/opera
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.posts.postReplies(id);
|
const res = await sdk.posts.postReplies(id);
|
||||||
|
|
||||||
@@ -341,10 +341,10 @@ import { Post, UpdatePostRequest, UpdatePostRequestBody } from "@lukehagar/disco
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: UpdatePostRequestBody = {
|
const requestBody: UpdatePostRequestBody = {
|
||||||
post: {
|
post: {
|
||||||
raw: "string",
|
raw: "<value>",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ async function run() {
|
|||||||
|
|
||||||
const res = await sdk.privateMessages.createTopicPostPM({
|
const res = await sdk.privateMessages.createTopicPostPM({
|
||||||
archetype: "private_message",
|
archetype: "private_message",
|
||||||
raw: "string",
|
raw: "<value>",
|
||||||
targetRecipients: "blake,sam",
|
targetRecipients: "blake,sam",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ import { GetUserSentPrivateMessagesRequest } from "@lukehagar/discoursejs/dist/s
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.privateMessages.getUserSentPrivateMessages(username);
|
const res = await sdk.privateMessages.getUserSentPrivateMessages(username);
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ import { ListUserPrivateMessagesRequest } from "@lukehagar/discoursejs/dist/sdk/
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.privateMessages.listUserPrivateMessages(username);
|
const res = await sdk.privateMessages.listUserPrivateMessages(username);
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import { SearchRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations
|
|||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const page: number = 307631;
|
const page: number = 307631;
|
||||||
const q: string = "string";
|
const q: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.search.search(page, q);
|
const res = await sdk.search.search(page, q);
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ async function run() {
|
|||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
|
|
||||||
const res = await sdk.tags.createTagGroup({
|
const res = await sdk.tags.createTagGroup({
|
||||||
name: "string",
|
name: "<value>",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
@@ -63,7 +63,7 @@ import { GetTagRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const name: string = "string";
|
const name: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.tags.getTag(name);
|
const res = await sdk.tags.getTag(name);
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ import { GetTagGroupRequest } from "@lukehagar/discoursejs/dist/sdk/models/opera
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.tags.getTagGroup(id);
|
const res = await sdk.tags.getTagGroup(id);
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ import { UpdateTagGroupRequest, UpdateTagGroupRequestBody } from "@lukehagar/dis
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: UpdateTagGroupRequestBody = {};
|
const requestBody: UpdateTagGroupRequestBody = {};
|
||||||
|
|
||||||
const res = await sdk.tags.updateTagGroup(id, requestBody);
|
const res = await sdk.tags.updateTagGroup(id, requestBody);
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ import { BookmarkTopicRequest } from "@lukehagar/discoursejs/dist/sdk/models/ope
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.topics.bookmarkTopic(apiKey, apiUsername, id);
|
const res = await sdk.topics.bookmarkTopic(apiKey, apiUsername, id);
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ async function run() {
|
|||||||
|
|
||||||
const res = await sdk.topics.createTopicPostPM({
|
const res = await sdk.topics.createTopicPostPM({
|
||||||
archetype: "private_message",
|
archetype: "private_message",
|
||||||
raw: "string",
|
raw: "<value>",
|
||||||
targetRecipients: "blake,sam",
|
targetRecipients: "blake,sam",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -117,9 +117,9 @@ import { CreateTopicTimerRequest, CreateTopicTimerRequestBody } from "@lukehagar
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: CreateTopicTimerRequestBody = {
|
const requestBody: CreateTopicTimerRequestBody = {
|
||||||
time: "",
|
time: "",
|
||||||
};
|
};
|
||||||
@@ -166,9 +166,9 @@ import { GetTopicRequest } from "@lukehagar/discoursejs/dist/sdk/models/operatio
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.topics.getTopic(apiKey, apiUsername, id);
|
const res = await sdk.topics.getTopic(apiKey, apiUsername, id);
|
||||||
|
|
||||||
@@ -211,7 +211,7 @@ import { GetTopicByExternalIdRequest } from "@lukehagar/discoursejs/dist/sdk/mod
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const externalId: string = "string";
|
const externalId: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.topics.getTopicByExternalId(externalId);
|
const res = await sdk.topics.getTopicByExternalId(externalId);
|
||||||
|
|
||||||
@@ -252,9 +252,9 @@ import { InviteToTopicRequest, InviteToTopicRequestBody } from "@lukehagar/disco
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: InviteToTopicRequestBody = {};
|
const requestBody: InviteToTopicRequestBody = {};
|
||||||
|
|
||||||
const res = await sdk.topics.inviteToTopic(apiKey, apiUsername, id, requestBody);
|
const res = await sdk.topics.inviteToTopic(apiKey, apiUsername, id, requestBody);
|
||||||
@@ -299,10 +299,10 @@ import { ListLatestTopicsRequest } from "@lukehagar/discoursejs/dist/sdk/models/
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const ascending: string = "string";
|
const ascending: string = "<value>";
|
||||||
const order: string = "string";
|
const order: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.topics.listLatestTopics(apiKey, apiUsername, ascending, order);
|
const res = await sdk.topics.listLatestTopics(apiKey, apiUsername, ascending, order);
|
||||||
|
|
||||||
@@ -346,9 +346,9 @@ import { ListTopTopicsRequest } from "@lukehagar/discoursejs/dist/sdk/models/ope
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const period: string = "string";
|
const period: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.topics.listTopTopics(apiKey, apiUsername, period);
|
const res = await sdk.topics.listTopTopics(apiKey, apiUsername, period);
|
||||||
|
|
||||||
@@ -391,9 +391,9 @@ import { RemoveTopicRequest } from "@lukehagar/discoursejs/dist/sdk/models/opera
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.topics.removeTopic(apiKey, apiUsername, id);
|
const res = await sdk.topics.removeTopic(apiKey, apiUsername, id);
|
||||||
|
|
||||||
@@ -436,9 +436,9 @@ import { NotificationLevel, SetNotificationLevelRequest, SetNotificationLevelReq
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: SetNotificationLevelRequestBody = {
|
const requestBody: SetNotificationLevelRequestBody = {
|
||||||
notificationLevel: NotificationLevel.Two,
|
notificationLevel: NotificationLevel.Two,
|
||||||
};
|
};
|
||||||
@@ -485,9 +485,9 @@ import { Topic, UpdateTopicRequest, UpdateTopicRequestBody } from "@lukehagar/di
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: UpdateTopicRequestBody = {
|
const requestBody: UpdateTopicRequestBody = {
|
||||||
topic: {},
|
topic: {},
|
||||||
};
|
};
|
||||||
@@ -534,9 +534,9 @@ import { Enabled, Status, UpdateTopicStatusRequest, UpdateTopicStatusRequestBody
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: UpdateTopicStatusRequestBody = {
|
const requestBody: UpdateTopicStatusRequestBody = {
|
||||||
enabled: Enabled.False,
|
enabled: Enabled.False,
|
||||||
status: Status.PinnedGlobally,
|
status: Status.PinnedGlobally,
|
||||||
@@ -585,9 +585,9 @@ import { UpdateTopicTimestampRequest, UpdateTopicTimestampRequestBody } from "@l
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const id: string = "string";
|
const id: string = "<value>";
|
||||||
const requestBody: UpdateTopicTimestampRequestBody = {
|
const requestBody: UpdateTopicTimestampRequestBody = {
|
||||||
timestamp: "1594291380",
|
timestamp: "1594291380",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -220,8 +220,8 @@ async function run() {
|
|||||||
|
|
||||||
const res = await sdk.uploads.completeMultipart({
|
const res = await sdk.uploads.completeMultipart({
|
||||||
parts: [
|
parts: [
|
||||||
"string",
|
"<value>",
|
||||||
"string",
|
"<value>",
|
||||||
],
|
],
|
||||||
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
|
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ import { ChangePasswordRequest, ChangePasswordRequestBody } from "@lukehagar/dis
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const token: string = "string";
|
const token: string = "<value>";
|
||||||
const requestBody: ChangePasswordRequestBody = {
|
const requestBody: ChangePasswordRequestBody = {
|
||||||
password: "Gm1zHM7WngzsMbv",
|
password: "Gm1zHM7WngzsMbv",
|
||||||
username: "Ines.Grady",
|
username: "Ines.Grady",
|
||||||
@@ -251,12 +251,12 @@ import { CreateUserRequest, CreateUserRequestBody, ExternalIds } from "@lukehaga
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const requestBody: CreateUserRequestBody = {
|
const requestBody: CreateUserRequestBody = {
|
||||||
email: "Hailey.Effertz62@yahoo.com",
|
email: "Hailey.Effertz62@yahoo.com",
|
||||||
externalIds: {},
|
externalIds: {},
|
||||||
name: "string",
|
name: "<value>",
|
||||||
password: "Pd4wq13VrTPEl8B",
|
password: "Pd4wq13VrTPEl8B",
|
||||||
username: "Domenico_Gottlieb",
|
username: "Domenico_Gottlieb",
|
||||||
};
|
};
|
||||||
@@ -386,9 +386,9 @@ import { GetUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operation
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.users.getUser(apiKey, apiUsername, username);
|
const res = await sdk.users.getUser(apiKey, apiUsername, username);
|
||||||
|
|
||||||
@@ -431,7 +431,7 @@ import { GetUserEmailsRequest } from "@lukehagar/discoursejs/dist/sdk/models/ope
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.users.getUserEmails(username);
|
const res = await sdk.users.getUserEmails(username);
|
||||||
|
|
||||||
@@ -472,9 +472,9 @@ import { GetUserExternalIdRequest } from "@lukehagar/discoursejs/dist/sdk/models
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const externalId: string = "string";
|
const externalId: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.users.getUserExternalId(apiKey, apiUsername, externalId);
|
const res = await sdk.users.getUserExternalId(apiKey, apiUsername, externalId);
|
||||||
|
|
||||||
@@ -517,10 +517,10 @@ import { GetUserIdentiyProviderExternalIdRequest } from "@lukehagar/discoursejs/
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const externalId: string = "string";
|
const externalId: string = "<value>";
|
||||||
const provider: string = "string";
|
const provider: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.users.getUserIdentiyProviderExternalId(apiKey, apiUsername, externalId, provider);
|
const res = await sdk.users.getUserIdentiyProviderExternalId(apiKey, apiUsername, externalId, provider);
|
||||||
|
|
||||||
@@ -564,9 +564,9 @@ import { ListUserActionsRequest } from "@lukehagar/discoursejs/dist/sdk/models/o
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const filter: string = "string";
|
const filter: string = "<value>";
|
||||||
const offset: number = 620550;
|
const offset: number = 620550;
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.users.listUserActions(filter, offset, username);
|
const res = await sdk.users.listUserActions(filter, offset, username);
|
||||||
|
|
||||||
@@ -609,7 +609,7 @@ import { ListUserBadgesRequest } from "@lukehagar/discoursejs/dist/sdk/models/op
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.users.listUserBadges(username);
|
const res = await sdk.users.listUserBadges(username);
|
||||||
|
|
||||||
@@ -738,7 +738,7 @@ import { RefreshGravatarRequest } from "@lukehagar/discoursejs/dist/sdk/models/o
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
|
|
||||||
const res = await sdk.users.refreshGravatar(username);
|
const res = await sdk.users.refreshGravatar(username);
|
||||||
|
|
||||||
@@ -780,7 +780,7 @@ async function run() {
|
|||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
|
|
||||||
const res = await sdk.users.sendPasswordResetEmail({
|
const res = await sdk.users.sendPasswordResetEmail({
|
||||||
login: "string",
|
login: "Bert.Kohler48",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
@@ -869,7 +869,7 @@ async function run() {
|
|||||||
const id: number = 970832;
|
const id: number = 970832;
|
||||||
const requestBody: SuspendUserRequestBody = {
|
const requestBody: SuspendUserRequestBody = {
|
||||||
postAction: "delete",
|
postAction: "delete",
|
||||||
reason: "string",
|
reason: "<value>",
|
||||||
suspendUntil: "2121-02-22",
|
suspendUntil: "2121-02-22",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -913,7 +913,7 @@ import { UpdateAvatarRequest, UpdateAvatarRequestBody, UpdateAvatarType } from "
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
const requestBody: UpdateAvatarRequestBody = {
|
const requestBody: UpdateAvatarRequestBody = {
|
||||||
type: UpdateAvatarType.Gravatar,
|
type: UpdateAvatarType.Gravatar,
|
||||||
uploadId: 261978,
|
uploadId: 261978,
|
||||||
@@ -959,7 +959,7 @@ import { UpdateEmailRequest, UpdateEmailRequestBody } from "@lukehagar/discourse
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
const requestBody: UpdateEmailRequestBody = {
|
const requestBody: UpdateEmailRequestBody = {
|
||||||
email: "Jodie.Reichel79@yahoo.com",
|
email: "Jodie.Reichel79@yahoo.com",
|
||||||
};
|
};
|
||||||
@@ -1004,9 +1004,9 @@ import { UpdateUserExternalIds, UpdateUserRequest, UpdateUserRequestBody } from
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const apiKey: string = "string";
|
const apiKey: string = "<value>";
|
||||||
const apiUsername: string = "string";
|
const apiUsername: string = "<value>";
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
const requestBody: UpdateUserRequestBody = {
|
const requestBody: UpdateUserRequestBody = {
|
||||||
externalIds: {},
|
externalIds: {},
|
||||||
};
|
};
|
||||||
@@ -1053,9 +1053,9 @@ import { UpdateUsernameRequest, UpdateUsernameRequestBody } from "@lukehagar/dis
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new SDK();
|
const sdk = new SDK();
|
||||||
const username: string = "string";
|
const username: string = "<value>";
|
||||||
const requestBody: UpdateUsernameRequestBody = {
|
const requestBody: UpdateUsernameRequestBody = {
|
||||||
newUsername: "string",
|
newUsername: "<value>",
|
||||||
};
|
};
|
||||||
|
|
||||||
const res = await sdk.users.updateUsername(username, requestBody);
|
const res = await sdk.users.updateUsername(username, requestBody);
|
||||||
|
|||||||
2
gen.yaml
2
gen.yaml
@@ -9,7 +9,7 @@ generation:
|
|||||||
parameterOrderingFeb2024: false
|
parameterOrderingFeb2024: false
|
||||||
requestResponseComponentNamesFeb2024: false
|
requestResponseComponentNamesFeb2024: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.4.1
|
version: 0.4.2
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: false
|
clientServerStatusCodesAsErrors: false
|
||||||
flattenGlobalSecurity: true
|
flattenGlobalSecurity: true
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/discoursejs",
|
"name": "@lukehagar/discoursejs",
|
||||||
"version": "0.4.1",
|
"version": "0.4.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lukehagar/discoursejs",
|
"name": "@lukehagar/discoursejs",
|
||||||
"version": "0.4.1",
|
"version": "0.4.2",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.1.3",
|
"axios": "^1.1.3",
|
||||||
"class-transformer": "^0.5.1",
|
"class-transformer": "^0.5.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/discoursejs",
|
"name": "@lukehagar/discoursejs",
|
||||||
"version": "0.4.1",
|
"version": "0.4.2",
|
||||||
"author": "LukeHagar",
|
"author": "LukeHagar",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "tsc --build",
|
"prepare": "tsc --build",
|
||||||
|
|||||||
@@ -61,9 +61,9 @@ export class SDKConfiguration {
|
|||||||
serverDefaults: any;
|
serverDefaults: any;
|
||||||
language = "typescript";
|
language = "typescript";
|
||||||
openapiDocVersion = "latest";
|
openapiDocVersion = "latest";
|
||||||
sdkVersion = "0.4.1";
|
sdkVersion = "0.4.2";
|
||||||
genVersion = "2.253.0";
|
genVersion = "2.258.2";
|
||||||
userAgent = "speakeasy-sdk/typescript 0.4.1 2.253.0 latest @lukehagar/discoursejs";
|
userAgent = "speakeasy-sdk/typescript 0.4.2 2.258.2 latest @lukehagar/discoursejs";
|
||||||
retryConfig?: utils.RetryConfig;
|
retryConfig?: utils.RetryConfig;
|
||||||
public constructor(init?: Partial<SDKConfiguration>) {
|
public constructor(init?: Partial<SDKConfiguration>) {
|
||||||
Object.assign(this, init);
|
Object.assign(this, init);
|
||||||
|
|||||||
Reference in New Issue
Block a user