ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.394.0

This commit is contained in:
speakeasybot
2024-09-10 00:11:07 +00:00
parent 8dc802ca50
commit 39d3a40524
910 changed files with 51963 additions and 53271 deletions

View File

@@ -12,84 +12,90 @@ import { Params, pathToFunc } from "./url.js";
* Contains the list of servers available to the SDK
*/
export const ServerList = [
/**
* The full address of your Plex Server
*/
"{protocol}://{ip}:{port}",
/**
* The full address of your Plex Server
*/
"{protocol}://{ip}:{port}",
] as const;
/**
* The protocol to use for the server connection
*/
export const ServerProtocol = {
Http: "http",
Https: "https",
Http: "http",
Https: "https",
} as const;
/**
* The protocol to use for the server connection
*/
export type ServerProtocol = ClosedEnum<typeof ServerProtocol>;
export type SDKOptions = {
accessToken?: string | (() => Promise<string>);
accessToken?: string | (() => Promise<string>);
/**
* Allows setting the xPlexClientIdentifier parameter for all supported operations
*/
xPlexClientIdentifier?: string | undefined;
/**
* Allows setting the xPlexClientIdentifier parameter for all supported operations
*/
xPlexClientIdentifier?: string | undefined;
httpClient?: HTTPClient;
/**
* Allows overriding the default server used by the SDK
*/
serverIdx?: number;
/**
* Sets the protocol variable for url substitution
*/
protocol?: ServerProtocol;
/**
* Sets the ip variable for url substitution
*/
ip?: string;
/**
* Sets 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;
timeoutMs?: number;
debugLogger?: Logger;
httpClient?: HTTPClient;
/**
* Allows overriding the default server used by the SDK
*/
serverIdx?: number;
/**
* Sets the protocol variable for url substitution
*/
protocol?: ServerProtocol;
/**
* Sets the ip variable for url substitution
*/
ip?: string;
/**
* Sets 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;
timeoutMs?: number;
debugLogger?: Logger;
};
export function serverURLFromOptions(options: SDKOptions): URL | null {
let serverURL = options.serverURL;
let serverURL = options.serverURL;
const serverParams: Params[] = [
{
protocol: options.protocol ?? "https",
ip: options.ip ?? "10.10.10.47",
port: options.port ?? "32400",
},
];
let params: Params = {};
const serverParams: Params[] = [
{
"protocol": options.protocol ?? "https",
"ip": options.ip ?? "10.10.10.47",
"port": options.port ?? "32400",
},
];
let params: Params = {};
if (!serverURL) {
const serverIdx = options.serverIdx ?? 0;
if (serverIdx < 0 || serverIdx >= ServerList.length) {
throw new Error(`Invalid server index ${serverIdx}`);
}
serverURL = ServerList[serverIdx] || "";
params = serverParams[serverIdx] || {};
if (!serverURL) {
const serverIdx = options.serverIdx ?? 0;
if (serverIdx < 0 || serverIdx >= ServerList.length) {
throw new Error(`Invalid server index ${serverIdx}`);
}
serverURL = ServerList[serverIdx] || "";
params = serverParams[serverIdx] || {};
}
const u = pathToFunc(serverURL)(params);
return new URL(u);
const u = pathToFunc(serverURL)(params);
return new URL(u);
}
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.0.3",
sdkVersion: "0.21.1",
genVersion: "2.411.9",
userAgent: "speakeasy-sdk/typescript 0.21.1 2.411.9 0.0.3 @lukehagar/plexjs",
language: "typescript",
openapiDocVersion: "0.0.3",
sdkVersion: "0.22.0",
genVersion: "2.413.0",
userAgent: "speakeasy-sdk/typescript 0.22.0 2.413.0 0.0.3 @lukehagar/plexjs",
} as const;