ci: regenerated with OpenAPI Doc latest, Speakeasy CLI 1.390.7

This commit is contained in:
speakeasybot
2024-09-06 00:25:22 +00:00
parent 33d536e256
commit b446642c94
23 changed files with 115 additions and 143 deletions

View File

@@ -3,10 +3,10 @@ id: 599a9576-4665-431e-be1e-44cc13ef28aa
management: management:
docChecksum: dd4d04e62622de8f631720b5be68964d docChecksum: dd4d04e62622de8f631720b5be68964d
docVersion: latest docVersion: latest
speakeasyVersion: 1.390.1 speakeasyVersion: 1.390.7
generationVersion: 2.409.0 generationVersion: 2.409.8
releaseVersion: 0.8.0 releaseVersion: 0.8.1
configChecksum: ce348b09a6bede0bd69fc04a63e32148 configChecksum: a5d10b8f8a5a5cbc964ebc1857329673
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
@@ -16,7 +16,7 @@ features:
additionalDependencies: 0.1.0 additionalDependencies: 0.1.0
additionalProperties: 0.1.1 additionalProperties: 0.1.1
constsAndDefaults: 0.1.11 constsAndDefaults: 0.1.11
core: 3.16.0 core: 3.16.1
defaultEnabledRetries: 0.1.0 defaultEnabledRetries: 0.1.0
deprecations: 2.81.1 deprecations: 2.81.1
envVarSecurityUsage: 0.1.1 envVarSecurityUsage: 0.1.1

View File

@@ -310,6 +310,9 @@ async function run() {
let result; let result;
try { try {
result = await sdk.backups.createBackup(); result = await sdk.backups.createBackup();
// Handle the result
console.log(result);
} catch (err) { } catch (err) {
switch (true) { switch (true) {
case err instanceof SDKValidationError: { case err instanceof SDKValidationError: {
@@ -324,9 +327,6 @@ async function run() {
} }
} }
} }
// Handle the result
console.log(result);
} }
run(); run();

View File

@@ -258,4 +258,14 @@ Based on:
### Generated ### Generated
- [typescript v0.8.0] . - [typescript v0.8.0] .
### Releases ### Releases
- [NPM v0.8.0] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.8.0 - . - [NPM v0.8.0] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.8.0 - .
## 2024-09-06 00:23:49
### Changes
Based on:
- OpenAPI Doc latest
- Speakeasy CLI 1.390.7 (2.409.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.8.1] .
### Releases
- [NPM v0.8.1] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.8.1 - .

View File

@@ -29,7 +29,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.admin.activateUser(203554); const result = await sdk.admin.activateUser(203554);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -98,7 +98,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.admin.adminGetUser(386776); const result = await sdk.admin.adminGetUser(386776);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -169,7 +169,7 @@ async function run() {
const result = await sdk.admin.adminListUsers({ const result = await sdk.admin.adminListUsers({
flag: "new", flag: "new",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -240,7 +240,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.admin.anonymizeUser(418778); const result = await sdk.admin.anonymizeUser(418778);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -309,7 +309,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.admin.deactivateUser(143950); const result = await sdk.admin.deactivateUser(143950);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -378,7 +378,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.admin.deleteUser(251343); const result = await sdk.admin.deleteUser(251343);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -448,7 +448,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.admin.logOutUser(379568); const result = await sdk.admin.logOutUser(379568);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -517,7 +517,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.admin.refreshGravatar("Frances39"); const result = await sdk.admin.refreshGravatar("Frances39");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -589,7 +589,7 @@ async function run() {
postAction: "delete", postAction: "delete",
silencedTill: "2022-06-01T08:00:00.000Z", silencedTill: "2022-06-01T08:00:00.000Z",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -666,7 +666,7 @@ async function run() {
reason: "<value>", reason: "<value>",
suspendUntil: "2121-02-22", suspendUntil: "2121-02-22",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -23,7 +23,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.backups.createBackup(); const result = await sdk.backups.createBackup();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -92,8 +92,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.backups.downloadBackup("your_file_here", "<value>"); await sdk.backups.downloadBackup("your_file_here", "<value>");
} }
run(); run();
@@ -160,7 +158,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.backups.getBackups(); const result = await sdk.backups.getBackups();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -228,8 +226,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.backups.sendDownloadBackupEmail("your_file_here"); await sdk.backups.sendDownloadBackupEmail("your_file_here");
} }
run(); run();

View File

@@ -24,7 +24,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.badges.adminListBadges(); const result = await sdk.badges.adminListBadges();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -92,7 +92,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.badges.createBadge(); const result = await sdk.badges.createBadge();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -161,8 +161,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.badges.deleteBadge(32345); await sdk.badges.deleteBadge(32345);
} }
run(); run();
@@ -228,7 +226,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.badges.listUserBadges("Faustino28"); const result = await sdk.badges.listUserBadges("Faustino28");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -297,7 +295,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.badges.updateBadge(280628); const result = await sdk.badges.updateBadge(280628);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -32,7 +32,7 @@ async function run() {
}, },
textColor: "f0fcfd", textColor: "f0fcfd",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -108,7 +108,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.categories.getCategory(39147); const result = await sdk.categories.getCategory(39147);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -177,7 +177,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.categories.getSite(); const result = await sdk.categories.getSite();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -245,7 +245,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.categories.listCategories(); const result = await sdk.categories.listCategories();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -314,7 +314,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.categories.listCategoryTopics(394133, "<value>"); const result = await sdk.categories.listCategoryTopics(394133, "<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -391,7 +391,7 @@ async function run() {
}, },
textColor: "f0fcfd", textColor: "f0fcfd",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -29,7 +29,7 @@ async function run() {
const result = await sdk.groups.addGroupMembers(985975, { const result = await sdk.groups.addGroupMembers(985975, {
usernames: "username1,username2", usernames: "username1,username2",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -101,7 +101,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.groups.createGroup(); const result = await sdk.groups.createGroup();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -170,7 +170,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.groups.deleteGroup(21302); const result = await sdk.groups.deleteGroup(21302);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -239,7 +239,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.groups.getGroup("name"); const result = await sdk.groups.getGroup("name");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -308,7 +308,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.groups.listGroupMembers("name"); const result = await sdk.groups.listGroupMembers("name");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -377,7 +377,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.groups.listGroups(); const result = await sdk.groups.listGroups();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -447,7 +447,7 @@ async function run() {
const result = await sdk.groups.removeGroupMembers(649523, { const result = await sdk.groups.removeGroupMembers(649523, {
usernames: "username1,username2", usernames: "username1,username2",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -519,7 +519,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.groups.updateGroup(438471); const result = await sdk.groups.updateGroup(438471);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -26,7 +26,7 @@ async function run() {
groupNames: "foo,bar", groupNames: "foo,bar",
maxRedemptionsAllowed: 5, maxRedemptionsAllowed: 5,
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -102,7 +102,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.invites.inviteToTopic("<value>", "<value>", "<id>"); const result = await sdk.invites.inviteToTopic("<value>", "<value>", "<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -21,7 +21,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.notifications.getNotifications(); const result = await sdk.notifications.getNotifications();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -89,7 +89,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.notifications.markNotificationsAsRead(); const result = await sdk.notifications.markNotificationsAsRead();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -31,7 +31,7 @@ async function run() {
raw: "<value>", raw: "<value>",
targetRecipients: "blake,sam", targetRecipients: "blake,sam",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -106,8 +106,6 @@ async function run() {
await sdk.posts.deletePost(188146, { await sdk.posts.deletePost(188146, {
forceDestroy: true, forceDestroy: true,
}); });
} }
run(); run();
@@ -181,7 +179,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.posts.getPost("<id>"); const result = await sdk.posts.getPost("<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -250,7 +248,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.posts.listPosts("<value>", "<value>"); const result = await sdk.posts.listPosts("<value>", "<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -321,7 +319,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.posts.lockPost("<value>", "<value>", "<id>"); const result = await sdk.posts.lockPost("<value>", "<value>", "<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -393,7 +391,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.posts.performPostAction("<value>", "<value>"); const result = await sdk.posts.performPostAction("<value>", "<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -464,7 +462,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.posts.postReplies("<id>"); const result = await sdk.posts.postReplies("<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -533,7 +531,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.posts.updatePost("<id>"); const result = await sdk.posts.updatePost("<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -26,7 +26,7 @@ async function run() {
raw: "<value>", raw: "<value>",
targetRecipients: "blake,sam", targetRecipients: "blake,sam",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -99,7 +99,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.privateMessages.getUserSentPrivateMessages("Nathanial38"); const result = await sdk.privateMessages.getUserSentPrivateMessages("Nathanial38");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -168,7 +168,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.privateMessages.listUserPrivateMessages("Liliana_West71"); const result = await sdk.privateMessages.listUserPrivateMessages("Liliana_West71");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -20,7 +20,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.search.search(1, "api @blake #support tags:api after:2021-06-04 in:unseen in:open order:latest_topic"); const result = await sdk.search.search(1, "api @blake #support tags:api after:2021-06-04 in:unseen in:open order:latest_topic");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -20,7 +20,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.site.getSite(); const result = await sdk.site.getSite();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -25,7 +25,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.tags.createTagGroup(); const result = await sdk.tags.createTagGroup();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -94,7 +94,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.tags.getTag("<value>"); const result = await sdk.tags.getTag("<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -163,7 +163,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.tags.getTagGroup("<id>"); const result = await sdk.tags.getTagGroup("<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -232,7 +232,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.tags.listTagGroups(); const result = await sdk.tags.listTagGroups();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -300,7 +300,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.tags.listTags(); const result = await sdk.tags.listTags();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -368,7 +368,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.tags.updateTagGroup("<id>"); const result = await sdk.tags.updateTagGroup("<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -32,8 +32,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.topics.bookmarkTopic("<value>", "<value>", "<id>"); await sdk.topics.bookmarkTopic("<value>", "<value>", "<id>");
} }
run(); run();
@@ -105,7 +103,7 @@ async function run() {
raw: "<value>", raw: "<value>",
targetRecipients: "blake,sam", targetRecipients: "blake,sam",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -180,7 +178,7 @@ async function run() {
const result = await sdk.topics.createTopicTimer("<value>", "<value>", "<id>", { const result = await sdk.topics.createTopicTimer("<value>", "<value>", "<id>", {
time: "", time: "",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -254,7 +252,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.topics.getTopic("<value>", "<value>", "<id>"); const result = await sdk.topics.getTopic("<value>", "<value>", "<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -325,8 +323,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.topics.getTopicByExternalId("<value>"); await sdk.topics.getTopicByExternalId("<value>");
} }
run(); run();
@@ -392,7 +388,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.topics.inviteToTopic("<value>", "<value>", "<id>"); const result = await sdk.topics.inviteToTopic("<value>", "<value>", "<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -464,7 +460,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.topics.listLatestTopics("<value>", "<value>"); const result = await sdk.topics.listLatestTopics("<value>", "<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -536,7 +532,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.topics.listTopTopics("<value>", "<value>"); const result = await sdk.topics.listTopTopics("<value>", "<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -607,8 +603,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.topics.removeTopic("<value>", "<value>", "<id>"); await sdk.topics.removeTopic("<value>", "<value>", "<id>");
} }
run(); run();
@@ -676,7 +670,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.topics.setNotificationLevel("<value>", "<value>", "<id>"); const result = await sdk.topics.setNotificationLevel("<value>", "<value>", "<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -748,7 +742,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.topics.updateTopic("<value>", "<value>", "<id>"); const result = await sdk.topics.updateTopic("<value>", "<value>", "<id>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -824,7 +818,7 @@ async function run() {
status: "pinned_globally", status: "pinned_globally",
until: "2030-12-31", until: "2030-12-31",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -902,7 +896,7 @@ async function run() {
const result = await sdk.topics.updateTopicTimestamp("<value>", "<value>", "<id>", { const result = await sdk.topics.updateTopicTimestamp("<value>", "<value>", "<id>", {
timestamp: "1594291380", timestamp: "1594291380",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -40,7 +40,7 @@ async function run() {
const result = await sdk.uploads.abortMultipart({ const result = await sdk.uploads.abortMultipart({
externalUploadIdentifier: "84x83tmxy398t3y._Q_z8CoJYVr69bE6D7f8J6Oo0434QquLFoYdGVerWFx9X5HDEI_TP_95c34n853495x35345394.d.ghQ", externalUploadIdentifier: "84x83tmxy398t3y._Q_z8CoJYVr69bE6D7f8J6Oo0434QquLFoYdGVerWFx9X5HDEI_TP_95c34n853495x35345394.d.ghQ",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -139,7 +139,7 @@ async function run() {
], ],
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705", uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -237,7 +237,7 @@ async function run() {
pasted: "true", pasted: "true",
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705", uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -337,7 +337,7 @@ async function run() {
], ],
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705", uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -433,7 +433,7 @@ async function run() {
fileSize: 4096, fileSize: 4096,
uploadType: "card_background", uploadType: "card_background",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -506,7 +506,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.uploads.createUpload(); const result = await sdk.uploads.createUpload();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -599,7 +599,7 @@ async function run() {
fileSize: 4096, fileSize: 4096,
type: "card_background", type: "card_background",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }

View File

@@ -43,7 +43,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.activateUser(203554); const result = await sdk.users.activateUser(203554);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -112,7 +112,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.adminGetUser(386776); const result = await sdk.users.adminGetUser(386776);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -183,7 +183,7 @@ async function run() {
const result = await sdk.users.adminListUsers({ const result = await sdk.users.adminListUsers({
flag: "new", flag: "new",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -254,7 +254,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.anonymizeUser(418778); const result = await sdk.users.anonymizeUser(418778);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -323,8 +323,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.users.changePassword("<value>"); await sdk.users.changePassword("<value>");
} }
run(); run();
@@ -391,7 +389,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.createUser("<value>", "<value>"); const result = await sdk.users.createUser("<value>", "<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -462,7 +460,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.deactivateUser(143950); const result = await sdk.users.deactivateUser(143950);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -531,7 +529,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.deleteUser(251343); const result = await sdk.users.deleteUser(251343);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -601,7 +599,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.getUser("<value>", "<value>", "Ned56"); const result = await sdk.users.getUser("<value>", "<value>", "Ned56");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -672,7 +670,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.getUserEmails("Winifred_OConner64"); const result = await sdk.users.getUserEmails("Winifred_OConner64");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -741,7 +739,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.getUserExternalId("<value>", "<value>", "<value>"); const result = await sdk.users.getUserExternalId("<value>", "<value>", "<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -812,7 +810,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.getUserIdentiyProviderExternalId("<value>", "<value>", "<value>", "<value>"); const result = await sdk.users.getUserIdentiyProviderExternalId("<value>", "<value>", "<value>", "<value>");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -884,7 +882,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.listUserActions("<value>", 620550, "Deondre75"); const result = await sdk.users.listUserActions("<value>", 620550, "Deondre75");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -955,7 +953,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.listUserBadges("Faustino28"); const result = await sdk.users.listUserBadges("Faustino28");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1024,7 +1022,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.listUsersPublic("topic_count", "monthly"); const result = await sdk.users.listUsersPublic("topic_count", "monthly");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1096,7 +1094,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.logOutUser(379568); const result = await sdk.users.logOutUser(379568);
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1165,7 +1163,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.refreshGravatar("Frances39"); const result = await sdk.users.refreshGravatar("Frances39");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1234,7 +1232,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.sendPasswordResetEmail(); const result = await sdk.users.sendPasswordResetEmail();
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1306,7 +1304,7 @@ async function run() {
postAction: "delete", postAction: "delete",
silencedTill: "2022-06-01T08:00:00.000Z", silencedTill: "2022-06-01T08:00:00.000Z",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1383,7 +1381,7 @@ async function run() {
reason: "<value>", reason: "<value>",
suspendUntil: "2121-02-22", suspendUntil: "2121-02-22",
}); });
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1457,7 +1455,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.updateAvatar("Kadin32"); const result = await sdk.users.updateAvatar("Kadin32");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1527,8 +1525,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.users.updateEmail("Hobart_Lakin34"); await sdk.users.updateEmail("Hobart_Lakin34");
} }
run(); run();
@@ -1595,7 +1591,7 @@ const sdk = new SDK();
async function run() { async function run() {
const result = await sdk.users.updateUser("<value>", "<value>", "Dandre.Jast32"); const result = await sdk.users.updateUser("<value>", "<value>", "Dandre.Jast32");
// Handle the result // Handle the result
console.log(result) console.log(result)
} }
@@ -1667,8 +1663,6 @@ const sdk = new SDK();
async function run() { async function run() {
await sdk.users.updateUsername("Avis_Tremblay74"); await sdk.users.updateUsername("Avis_Tremblay74");
} }
run(); run();

View File

@@ -11,7 +11,7 @@ generation:
auth: auth:
oAuth2ClientCredentialsEnabled: false oAuth2ClientCredentialsEnabled: false
typescript: typescript:
version: 0.8.0 version: 0.8.1
additionalDependencies: additionalDependencies:
dependencies: {} dependencies: {}
devDependencies: {} devDependencies: {}

View File

@@ -2,7 +2,7 @@
{ {
"name": "@lukehagar/discoursejs", "name": "@lukehagar/discoursejs",
"version": "0.8.0", "version": "0.8.1",
"exports": { "exports": {
".": "./src/index.ts", ".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@lukehagar/discoursejs", "name": "@lukehagar/discoursejs",
"version": "0.8.0", "version": "0.8.1",
"author": "LukeHagar", "author": "LukeHagar",
"main": "./index.js", "main": "./index.js",
"sideEffects": false, "sideEffects": false,

View File

@@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = { export const SDK_METADATA = {
language: "typescript", language: "typescript",
openapiDocVersion: "latest", openapiDocVersion: "latest",
sdkVersion: "0.8.0", sdkVersion: "0.8.1",
genVersion: "2.409.0", genVersion: "2.409.8",
userAgent: "speakeasy-sdk/typescript 0.8.0 2.409.0 latest @lukehagar/discoursejs", userAgent: "speakeasy-sdk/typescript 0.8.1 2.409.8 latest @lukehagar/discoursejs",
} as const; } as const;

View File

@@ -2,24 +2,6 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/ */
import { Readable } from "stream";
import { createReadStream } from "fs";
import { readFile } from "fs/promises";
export function toStream(filePath: string): ReadableStream<Uint8Array> {
return Readable.toWeb(
createReadStream(filePath),
) as ReadableStream<Uint8Array>;
}
export async function toByteArray(filePath: string): Promise<Buffer> {
return readFile(filePath);
}
export async function toString(filePath: string): Promise<string> {
return readFile(filePath, "utf8");
}
/** /**
* Consumes a stream and returns a concatenated array buffer. Useful in * Consumes a stream and returns a concatenated array buffer. Useful in
* situations where we need to read the whole file because it forms part of a * situations where we need to read the whole file because it forms part of a