ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.129.1

This commit is contained in:
speakeasybot
2023-12-24 06:38:56 +00:00
parent 312e0ecc12
commit 02c32497a7
462 changed files with 35699 additions and 0 deletions

90
src/lib/config.ts Normal file
View File

@@ -0,0 +1,90 @@
/*
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/
import { HTTPClient } from "./http";
import { pathToFunc } from "./url";
import { RetryConfig } from "./retries";
/**
* Contains the list of servers available to the SDK
*/
export const ServerList = [
/**
* The full address of your Plex Server
*/
"http://10.10.10.47:32400",
/**
* The full address of your Plex Server
*/
"{protocol}://{ip}:{port}",
] as const;
/**
* The protocol to use when connecting to your plex server.
*/
export enum ServerProtocol {
Http = "http",
Https = "https",
}
export type SDKOptions = {
accessToken?: string | (() => Promise<string>);
httpClient?: HTTPClient;
/**
* Allows overriding the default server used by the SDK
*/
serverIdx?: number;
/**
* Allows setting the protocol variable for url substitution
*/
protocol?: ServerProtocol;
/**
* Allows setting the ip variable for url substitution
*/
ip?: string;
/**
* Allows setting the port variable for url substitution
*/
port?: string;
/**
* Allows overriding the default server URL used by the SDK
*/
serverURL?: string;
/**
* Allows overriding the default retry config used by the SDK
*/
retryConfig?: RetryConfig;
};
export function serverURLFromOptions(options: SDKOptions): URL {
let serverURL = options.serverURL;
const serverParams = [
{},
{
protocol: options.protocol?.toString() ?? "http",
ip: options.ip?.toString() ?? "10.10.10.47",
port: options.port?.toString() ?? "32400",
},
];
let params: Record<string, string> = {};
const serverIdx = options.serverIdx ?? 0;
if (!serverURL) {
serverURL = ServerList[serverIdx] || "";
params = serverParams[serverIdx] || {};
}
const u = pathToFunc(serverURL)(params);
return new URL(u);
}
export const SDK_METADATA = Object.freeze({
language: "typescript",
openapiDocVersion: "0.0.3",
sdkVersion: "0.1.0",
genVersion: "2.223.3",
userAgent: "speakeasy-sdk/typescript 0.1.0 2.223.3 0.0.3 openapi",
});