sindri
Version:
The Sindri Labs JavaScript SDK and CLI tool.
39 lines (34 loc) • 1.29 kB
text/typescript
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { SindriClient } from "lib/client"; // DO NOT REMOVE
import type { ApiRequestOptions } from "./ApiRequestOptions";
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
type Headers = Record<string, string>;
export type OpenAPIConfig = {
BASE: string;
VERSION: string;
WITH_CREDENTIALS: boolean;
CREDENTIALS: "include" | "omit" | "same-origin";
TOKEN?: string | Resolver<string> | undefined;
USERNAME?: string | Resolver<string> | undefined;
PASSWORD?: string | Resolver<string> | undefined;
HEADERS?: Headers | Resolver<Headers> | undefined;
ENCODE_PATH?: ((path: string) => string) | undefined;
// DO NOT REMOVE
// Shoehorn the SindriClient instance into the OpenAPIConfig type because it's the only shared
// data structure between the SDK client class and the request methods `requests.ts` module.
sindri?: SindriClient; // DO NOT REMOVE
};
export const OpenAPI: OpenAPIConfig = {
BASE: "https://sindri.app",
VERSION: "1.17.30",
WITH_CREDENTIALS: false,
CREDENTIALS: "include",
TOKEN: undefined,
USERNAME: undefined,
PASSWORD: undefined,
HEADERS: undefined,
ENCODE_PATH: undefined,
};