ci: regenerated with OpenAPI Doc latest, Speakeasy CLI 1.180.1

This commit is contained in:
speakeasybot
2024-02-15 01:09:18 +00:00
parent f877f9040a
commit 865e2dc038
19 changed files with 134 additions and 124 deletions

View File

@@ -4,16 +4,16 @@ management:
docChecksum: dd4d04e62622de8f631720b5be68964d
docVersion: latest
speakeasyVersion: internal
generationVersion: 2.253.0
releaseVersion: 0.4.1
configChecksum: 1da325d148fe2fccc89aea4ace43e139
generationVersion: 2.258.2
releaseVersion: 0.4.2
configChecksum: ff90f8eb07dba1c9d4f645a5eb1b0cf4
repoURL: https://github.com/LukeHagar/discoursejs.git
repoSubDirectory: .
installationURL: https://github.com/LukeHagar/discoursejs
published: true
features:
typescript:
core: 3.4.6
core: 3.4.7
deprecations: 2.81.1
flattening: 2.81.1
globalServerURLs: 2.82.1

View File

@@ -79,3 +79,13 @@ Based on:
- [typescript v0.4.1] .
### Releases
- [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 - .

View File

@@ -316,7 +316,7 @@ import { RefreshGravatarRequest } from "@lukehagar/discoursejs/dist/sdk/models/o
async function run() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const res = await sdk.admin.refreshGravatar(username);
@@ -406,7 +406,7 @@ async function run() {
const id: number = 970832;
const requestBody: SuspendUserRequestBody = {
postAction: "delete",
reason: "string",
reason: "<value>",
suspendUntil: "2121-02-22",
};

View File

@@ -61,8 +61,8 @@ import { DownloadBackupRequest } from "@lukehagar/discoursejs/dist/sdk/models/op
async function run() {
const sdk = new SDK();
const filename: string = "string";
const token: string = "string";
const filename: string = "<value>";
const token: string = "<value>";
const res = await sdk.backups.downloadBackup(filename, token);
@@ -142,7 +142,7 @@ import { SendDownloadBackupEmailRequest } from "@lukehagar/discoursejs/dist/sdk/
async function run() {
const sdk = new SDK();
const filename: string = "string";
const filename: string = "<value>";
const res = await sdk.backups.sendDownloadBackupEmail(filename);

View File

@@ -61,7 +61,7 @@ async function run() {
const res = await sdk.badges.createBadge({
badgeTypeId: 190613,
name: "string",
name: "<value>",
});
if (res.statusCode == 200) {
@@ -142,7 +142,7 @@ import { ListUserBadgesRequest } from "@lukehagar/discoursejs/dist/sdk/models/op
async function run() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const res = await sdk.badges.listUserBadges(username);
@@ -186,7 +186,7 @@ async function run() {
const id: number = 280628;
const requestBody: UpdateBadgeRequestBody = {
badgeTypeId: 568845,
name: "string",
name: "<value>",
};
const res = await sdk.badges.updateBadge(id, requestBody);

View File

@@ -25,11 +25,11 @@ async function run() {
const res = await sdk.categories.createCategory({
color: "49d9e9",
formTemplateIds: [
"string",
"<value>",
],
name: "string",
name: "<value>",
permissions: {
"key": "string",
"key": "<value>",
},
textColor: "f0fcfd",
});
@@ -192,7 +192,7 @@ import { ListCategoryTopicsRequest } from "@lukehagar/discoursejs/dist/sdk/model
async function run() {
const sdk = new SDK();
const id: number = 394133;
const slug: string = "string";
const slug: string = "<value>";
const res = await sdk.categories.listCategoryTopics(id, slug);
@@ -238,11 +238,11 @@ const id: number = 353500;
const requestBody: UpdateCategoryRequestBody = {
color: "49d9e9",
formTemplateIds: [
"string",
"<value>",
],
name: "string",
name: "<value>",
permissions: {
"key": "string",
"key": "<value>",
},
textColor: "f0fcfd",
};

View File

@@ -74,7 +74,7 @@ async function run() {
mutedCategoryIds: [
385163,
],
name: "string",
name: "<value>",
regularCategoryIds: [
723588,
],
@@ -168,7 +168,7 @@ import { GetGroupRequest } from "@lukehagar/discoursejs/dist/sdk/models/operatio
async function run() {
const sdk = new SDK();
const id: string = "string";
const id: string = "<value>";
const res = await sdk.groups.getGroup(id);
@@ -209,7 +209,7 @@ import { ListGroupMembersRequest } from "@lukehagar/discoursejs/dist/sdk/models/
async function run() {
const sdk = new SDK();
const id: string = "string";
const id: string = "<value>";
const res = await sdk.groups.listGroupMembers(id);
@@ -339,7 +339,7 @@ const requestBody: UpdateGroupRequestBody = {
mutedCategoryIds: [
244551,
],
name: "string",
name: "<value>",
regularCategoryIds: [
750192,
],

View File

@@ -18,8 +18,8 @@ import { CreateInviteRequest, CreateInviteRequestBody } from "@lukehagar/discour
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const requestBody: CreateInviteRequestBody = {
email: "not-a-user-yet@example.com",
groupIds: "42,43",
@@ -68,9 +68,9 @@ import { InviteToTopicRequest, InviteToTopicRequestBody } from "@lukehagar/disco
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const requestBody: InviteToTopicRequestBody = {};
const res = await sdk.invites.inviteToTopic(apiKey, apiUsername, id, requestBody);

View File

@@ -26,7 +26,7 @@ async function run() {
const res = await sdk.posts.createTopicPostPM({
archetype: "private_message",
raw: "string",
raw: "<value>",
targetRecipients: "blake,sam",
});
@@ -117,7 +117,7 @@ import { GetPostRequest } from "@lukehagar/discoursejs/dist/sdk/models/operation
async function run() {
const sdk = new SDK();
const id: string = "string";
const id: string = "<value>";
const res = await sdk.posts.getPost(id);
@@ -158,9 +158,9 @@ import { ListPostsRequest } from "@lukehagar/discoursejs/dist/sdk/models/operati
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const before: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const before: string = "<value>";
const res = await sdk.posts.listPosts(apiKey, apiUsername, before);
@@ -203,11 +203,11 @@ import { LockPostRequest, LockPostRequestBody } from "@lukehagar/discoursejs/dis
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const requestBody: LockPostRequestBody = {
locked: "string",
locked: "<value>",
};
const res = await sdk.posts.lockPost(apiKey, apiUsername, id, requestBody);
@@ -252,8 +252,8 @@ import { PerformPostActionRequest, PerformPostActionRequestBody } from "@lukehag
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const requestBody: PerformPostActionRequestBody = {
id: 315075,
postActionTypeId: 159481,
@@ -300,7 +300,7 @@ import { PostRepliesRequest } from "@lukehagar/discoursejs/dist/sdk/models/opera
async function run() {
const sdk = new SDK();
const id: string = "string";
const id: string = "<value>";
const res = await sdk.posts.postReplies(id);
@@ -341,10 +341,10 @@ import { Post, UpdatePostRequest, UpdatePostRequestBody } from "@lukehagar/disco
async function run() {
const sdk = new SDK();
const id: string = "string";
const id: string = "<value>";
const requestBody: UpdatePostRequestBody = {
post: {
raw: "string",
raw: "<value>",
},
};

View File

@@ -21,7 +21,7 @@ async function run() {
const res = await sdk.privateMessages.createTopicPostPM({
archetype: "private_message",
raw: "string",
raw: "<value>",
targetRecipients: "blake,sam",
});
@@ -62,7 +62,7 @@ import { GetUserSentPrivateMessagesRequest } from "@lukehagar/discoursejs/dist/s
async function run() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const res = await sdk.privateMessages.getUserSentPrivateMessages(username);
@@ -103,7 +103,7 @@ import { ListUserPrivateMessagesRequest } from "@lukehagar/discoursejs/dist/sdk/
async function run() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const res = await sdk.privateMessages.listUserPrivateMessages(username);

View File

@@ -18,7 +18,7 @@ import { SearchRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations
async function run() {
const sdk = new SDK();
const page: number = 307631;
const q: string = "string";
const q: string = "<value>";
const res = await sdk.search.search(page, q);

View File

@@ -23,7 +23,7 @@ async function run() {
const sdk = new SDK();
const res = await sdk.tags.createTagGroup({
name: "string",
name: "<value>",
});
if (res.statusCode == 200) {
@@ -63,7 +63,7 @@ import { GetTagRequest } from "@lukehagar/discoursejs/dist/sdk/models/operations
async function run() {
const sdk = new SDK();
const name: string = "string";
const name: string = "<value>";
const res = await sdk.tags.getTag(name);
@@ -104,7 +104,7 @@ import { GetTagGroupRequest } from "@lukehagar/discoursejs/dist/sdk/models/opera
async function run() {
const sdk = new SDK();
const id: string = "string";
const id: string = "<value>";
const res = await sdk.tags.getTagGroup(id);
@@ -221,7 +221,7 @@ import { UpdateTagGroupRequest, UpdateTagGroupRequestBody } from "@lukehagar/dis
async function run() {
const sdk = new SDK();
const id: string = "string";
const id: string = "<value>";
const requestBody: UpdateTagGroupRequestBody = {};
const res = await sdk.tags.updateTagGroup(id, requestBody);

View File

@@ -29,9 +29,9 @@ import { BookmarkTopicRequest } from "@lukehagar/discoursejs/dist/sdk/models/ope
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const res = await sdk.topics.bookmarkTopic(apiKey, apiUsername, id);
@@ -76,7 +76,7 @@ async function run() {
const res = await sdk.topics.createTopicPostPM({
archetype: "private_message",
raw: "string",
raw: "<value>",
targetRecipients: "blake,sam",
});
@@ -117,9 +117,9 @@ import { CreateTopicTimerRequest, CreateTopicTimerRequestBody } from "@lukehagar
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const requestBody: CreateTopicTimerRequestBody = {
time: "",
};
@@ -166,9 +166,9 @@ import { GetTopicRequest } from "@lukehagar/discoursejs/dist/sdk/models/operatio
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const res = await sdk.topics.getTopic(apiKey, apiUsername, id);
@@ -211,7 +211,7 @@ import { GetTopicByExternalIdRequest } from "@lukehagar/discoursejs/dist/sdk/mod
async function run() {
const sdk = new SDK();
const externalId: string = "string";
const externalId: string = "<value>";
const res = await sdk.topics.getTopicByExternalId(externalId);
@@ -252,9 +252,9 @@ import { InviteToTopicRequest, InviteToTopicRequestBody } from "@lukehagar/disco
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const requestBody: InviteToTopicRequestBody = {};
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() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const ascending: string = "string";
const order: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const ascending: string = "<value>";
const order: string = "<value>";
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() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const period: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const period: string = "<value>";
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() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const res = await sdk.topics.removeTopic(apiKey, apiUsername, id);
@@ -436,9 +436,9 @@ import { NotificationLevel, SetNotificationLevelRequest, SetNotificationLevelReq
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const requestBody: SetNotificationLevelRequestBody = {
notificationLevel: NotificationLevel.Two,
};
@@ -485,9 +485,9 @@ import { Topic, UpdateTopicRequest, UpdateTopicRequestBody } from "@lukehagar/di
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const requestBody: UpdateTopicRequestBody = {
topic: {},
};
@@ -534,9 +534,9 @@ import { Enabled, Status, UpdateTopicStatusRequest, UpdateTopicStatusRequestBody
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const requestBody: UpdateTopicStatusRequestBody = {
enabled: Enabled.False,
status: Status.PinnedGlobally,
@@ -585,9 +585,9 @@ import { UpdateTopicTimestampRequest, UpdateTopicTimestampRequestBody } from "@l
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const id: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const id: string = "<value>";
const requestBody: UpdateTopicTimestampRequestBody = {
timestamp: "1594291380",
};

View File

@@ -220,8 +220,8 @@ async function run() {
const res = await sdk.uploads.completeMultipart({
parts: [
"string",
"string",
"<value>",
"<value>",
],
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
});

View File

@@ -205,7 +205,7 @@ import { ChangePasswordRequest, ChangePasswordRequestBody } from "@lukehagar/dis
async function run() {
const sdk = new SDK();
const token: string = "string";
const token: string = "<value>";
const requestBody: ChangePasswordRequestBody = {
password: "Gm1zHM7WngzsMbv",
username: "Ines.Grady",
@@ -251,12 +251,12 @@ import { CreateUserRequest, CreateUserRequestBody, ExternalIds } from "@lukehaga
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const requestBody: CreateUserRequestBody = {
email: "Hailey.Effertz62@yahoo.com",
externalIds: {},
name: "string",
name: "<value>",
password: "Pd4wq13VrTPEl8B",
username: "Domenico_Gottlieb",
};
@@ -386,9 +386,9 @@ import { GetUserRequest } from "@lukehagar/discoursejs/dist/sdk/models/operation
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const username: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const username: string = "<value>";
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() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const res = await sdk.users.getUserEmails(username);
@@ -472,9 +472,9 @@ import { GetUserExternalIdRequest } from "@lukehagar/discoursejs/dist/sdk/models
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const externalId: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const externalId: string = "<value>";
const res = await sdk.users.getUserExternalId(apiKey, apiUsername, externalId);
@@ -517,10 +517,10 @@ import { GetUserIdentiyProviderExternalIdRequest } from "@lukehagar/discoursejs/
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const externalId: string = "string";
const provider: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const externalId: string = "<value>";
const provider: string = "<value>";
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() {
const sdk = new SDK();
const filter: string = "string";
const filter: string = "<value>";
const offset: number = 620550;
const username: string = "string";
const username: string = "<value>";
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() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const res = await sdk.users.listUserBadges(username);
@@ -738,7 +738,7 @@ import { RefreshGravatarRequest } from "@lukehagar/discoursejs/dist/sdk/models/o
async function run() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const res = await sdk.users.refreshGravatar(username);
@@ -780,7 +780,7 @@ async function run() {
const sdk = new SDK();
const res = await sdk.users.sendPasswordResetEmail({
login: "string",
login: "Bert.Kohler48",
});
if (res.statusCode == 200) {
@@ -869,7 +869,7 @@ async function run() {
const id: number = 970832;
const requestBody: SuspendUserRequestBody = {
postAction: "delete",
reason: "string",
reason: "<value>",
suspendUntil: "2121-02-22",
};
@@ -913,7 +913,7 @@ import { UpdateAvatarRequest, UpdateAvatarRequestBody, UpdateAvatarType } from "
async function run() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const requestBody: UpdateAvatarRequestBody = {
type: UpdateAvatarType.Gravatar,
uploadId: 261978,
@@ -959,7 +959,7 @@ import { UpdateEmailRequest, UpdateEmailRequestBody } from "@lukehagar/discourse
async function run() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const requestBody: UpdateEmailRequestBody = {
email: "Jodie.Reichel79@yahoo.com",
};
@@ -1004,9 +1004,9 @@ import { UpdateUserExternalIds, UpdateUserRequest, UpdateUserRequestBody } from
async function run() {
const sdk = new SDK();
const apiKey: string = "string";
const apiUsername: string = "string";
const username: string = "string";
const apiKey: string = "<value>";
const apiUsername: string = "<value>";
const username: string = "<value>";
const requestBody: UpdateUserRequestBody = {
externalIds: {},
};
@@ -1053,9 +1053,9 @@ import { UpdateUsernameRequest, UpdateUsernameRequestBody } from "@lukehagar/dis
async function run() {
const sdk = new SDK();
const username: string = "string";
const username: string = "<value>";
const requestBody: UpdateUsernameRequestBody = {
newUsername: "string",
newUsername: "<value>",
};
const res = await sdk.users.updateUsername(username, requestBody);

View File

@@ -9,7 +9,7 @@ generation:
parameterOrderingFeb2024: false
requestResponseComponentNamesFeb2024: false
typescript:
version: 0.4.1
version: 0.4.2
author: LukeHagar
clientServerStatusCodesAsErrors: false
flattenGlobalSecurity: true

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@lukehagar/discoursejs",
"version": "0.4.1",
"version": "0.4.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@lukehagar/discoursejs",
"version": "0.4.1",
"version": "0.4.2",
"dependencies": {
"axios": "^1.1.3",
"class-transformer": "^0.5.1",

View File

@@ -1,6 +1,6 @@
{
"name": "@lukehagar/discoursejs",
"version": "0.4.1",
"version": "0.4.2",
"author": "LukeHagar",
"scripts": {
"prepare": "tsc --build",

View File

@@ -61,9 +61,9 @@ export class SDKConfiguration {
serverDefaults: any;
language = "typescript";
openapiDocVersion = "latest";
sdkVersion = "0.4.1";
genVersion = "2.253.0";
userAgent = "speakeasy-sdk/typescript 0.4.1 2.253.0 latest @lukehagar/discoursejs";
sdkVersion = "0.4.2";
genVersion = "2.258.2";
userAgent = "speakeasy-sdk/typescript 0.4.2 2.258.2 latest @lukehagar/discoursejs";
retryConfig?: utils.RetryConfig;
public constructor(init?: Partial<SDKConfiguration>) {
Object.assign(this, init);