unstructured-client
Version:
<h3 align="center"> <img src="https://raw.githubusercontent.com/Unstructured-IO/unstructured/main/img/unstructured_logo.png" height="200" > </h3>
37 lines • 1.04 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { pathToFunc } from "./url.js";
/**
* Serverless SaaS API
*/
export const ServerSaasApi = "saas-api";
/**
* Development server
*/
export const ServerDevelopment = "development";
/**
* Contains the list of servers available to the SDK
*/
export const ServerList = {
[ServerSaasApi]: "https://api.unstructuredapp.io",
[ServerDevelopment]: "http://localhost:8000",
};
export function serverURLFromOptions(options) {
let serverURL = options.serverURL;
const params = {};
if (!serverURL) {
const server = options.server ?? ServerSaasApi;
serverURL = ServerList[server] || "";
}
const u = pathToFunc(serverURL)(params);
return new URL(u);
}
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.1.23",
sdkVersion: "0.25.0",
genVersion: "2.620.2",
userAgent: "speakeasy-sdk/typescript 0.25.0 2.620.2 1.1.23 unstructured-client",
};
//# sourceMappingURL=config.js.map