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:
docChecksum: dd4d04e62622de8f631720b5be68964d
docVersion: latest
speakeasyVersion: 1.390.1
generationVersion: 2.409.0
releaseVersion: 0.8.0
configChecksum: ce348b09a6bede0bd69fc04a63e32148
speakeasyVersion: 1.390.7
generationVersion: 2.409.8
releaseVersion: 0.8.1
configChecksum: a5d10b8f8a5a5cbc964ebc1857329673
repoURL: https://github.com/LukeHagar/discoursejs.git
repoSubDirectory: .
installationURL: https://github.com/LukeHagar/discoursejs
@@ -16,7 +16,7 @@ features:
additionalDependencies: 0.1.0
additionalProperties: 0.1.1
constsAndDefaults: 0.1.11
core: 3.16.0
core: 3.16.1
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
envVarSecurityUsage: 0.1.1

View File

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

View File

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

@@ -92,8 +92,6 @@ const sdk = new SDK();
async function run() {
await sdk.backups.downloadBackup("your_file_here", "<value>");
}
run();
@@ -228,8 +226,6 @@ const sdk = new SDK();
async function run() {
await sdk.backups.sendDownloadBackupEmail("your_file_here");
}
run();

View File

@@ -161,8 +161,6 @@ const sdk = new SDK();
async function run() {
await sdk.badges.deleteBadge(32345);
}
run();

View File

@@ -106,8 +106,6 @@ async function run() {
await sdk.posts.deletePost(188146, {
forceDestroy: true,
});
}
run();

View File

@@ -32,8 +32,6 @@ const sdk = new SDK();
async function run() {
await sdk.topics.bookmarkTopic("<value>", "<value>", "<id>");
}
run();
@@ -325,8 +323,6 @@ const sdk = new SDK();
async function run() {
await sdk.topics.getTopicByExternalId("<value>");
}
run();
@@ -607,8 +603,6 @@ const sdk = new SDK();
async function run() {
await sdk.topics.removeTopic("<value>", "<value>", "<id>");
}
run();

View File

@@ -323,8 +323,6 @@ const sdk = new SDK();
async function run() {
await sdk.users.changePassword("<value>");
}
run();
@@ -1527,8 +1525,6 @@ const sdk = new SDK();
async function run() {
await sdk.users.updateEmail("Hobart_Lakin34");
}
run();
@@ -1667,8 +1663,6 @@ const sdk = new SDK();
async function run() {
await sdk.users.updateUsername("Avis_Tremblay74");
}
run();

View File

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

View File

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

View File

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

View File

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

View File

@@ -2,24 +2,6 @@
* 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
* situations where we need to read the whole file because it forms part of a