"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDK_METADATA = exports.ServerList = exports.ServerDevelopment = exports.ServerSaasApi = void 0;
exports.serverURLFromOptions = serverURLFromOptions;
const url_js_1 = require("./url.js");
/**
 * Serverless SaaS API
 */
exports.ServerSaasApi = "saas-api";
/**
 * Development server
 */
exports.ServerDevelopment = "development";
/**
 * Contains the list of servers available to the SDK
 */
exports.ServerList = {
    [exports.ServerSaasApi]: "https://api.unstructuredapp.io",
    [exports.ServerDevelopment]: "http://localhost:8000",
};
function serverURLFromOptions(options) {
    let serverURL = options.serverURL;
    const params = {};
    if (!serverURL) {
        const server = options.server ?? exports.ServerSaasApi;
        serverURL = exports.ServerList[server] || "";
    }
    const u = (0, url_js_1.pathToFunc)(serverURL)(params);
    return new URL(u);
}
exports.SDK_METADATA = {
    language: "typescript",
    openapiDocVersion: "1.3.6",
    sdkVersion: "0.31.0",
    genVersion: "2.787.2",
    userAgent: "speakeasy-sdk/typescript 0.31.0 2.787.2 1.3.6 unstructured-client",
};
//# sourceMappingURL=config.js.map