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

@@ -259,3 +259,13 @@ Based on:
- [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

@@ -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();
@@ -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

@@ -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();

View File

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

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();
@@ -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();
@@ -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();

View File

@@ -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();
@@ -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();
@@ -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