ci: regenerated with OpenAPI Doc latest, Speakeasy CLI 1.147.0

This commit is contained in:
speakeasybot
2024-01-19 19:33:01 +00:00
parent 3e7c620498
commit 54184e1bde
41 changed files with 1780 additions and 192 deletions

View File

@@ -3,6 +3,7 @@
*/
import * as utils from "../internal/utils";
import * as shared from "../sdk/models/shared";
import { Admin } from "./admin";
import { Backups } from "./backups";
import { Badges } from "./badges";
@@ -30,6 +31,11 @@ export const ServerList = ["https://{defaultHost}"] as const;
* The available configuration options for the SDK
*/
export type SDKProps = {
/**
* The security details required to authenticate the SDK
*/
security?: shared.Security | (() => Promise<shared.Security>);
/**
* Allows overriding the default axios client used by the SDK
*/
@@ -57,13 +63,14 @@ export type SDKProps = {
export class SDKConfiguration {
defaultClient: AxiosInstance;
security?: shared.Security | (() => Promise<shared.Security>);
serverURL: string;
serverDefaults: any;
language = "typescript";
openapiDocVersion = "latest";
sdkVersion = "0.2.2";
sdkVersion = "0.3.0";
genVersion = "2.237.2";
userAgent = "speakeasy-sdk/typescript 0.2.2 2.237.2 latest @lukehagar/discoursejs";
userAgent = "speakeasy-sdk/typescript 0.3.0 2.237.2 latest @lukehagar/discoursejs";
retryConfig?: utils.RetryConfig;
public constructor(init?: Partial<SDKConfiguration>) {
Object.assign(this, init);
@@ -169,6 +176,7 @@ export class SDK {
const defaultClient = props?.defaultClient ?? axios.create();
this.sdkConfiguration = new SDKConfiguration({
defaultClient: defaultClient,
security: props?.security,
serverURL: serverURL,
serverDefaults: defaults,
retryConfig: props?.retryConfig,