UNPKG

@dustlight/auth-client-axios-js

Version:

Javascript Client SDK for Auth-Service

66 lines (65 loc) 2.05 kB
/** * Auth Service * 提供身份管理服务以及OAuth2授权服务。身份管理服务包含用户管理、角色管理、权限管理等,OAuth2授权服务包含应用管理、应用授权模式与授权作用域管理等。 * * The version of the OpenAPI document: v1 * Contact: hansin@dustlight.cn * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configuration } from "./configuration"; import { RequestArgs } from "./base"; import { AxiosInstance } from 'axios'; /** * * @export */ export declare const DUMMY_BASE_URL = "https://example.com"; /** * * @throws {RequiredError} * @export */ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; /** * * @export */ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>; /** * * @export */ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void; /** * * @export */ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>; /** * * @export */ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>; /** * * @export */ export declare const setSearchParams: (url: URL, ...objects: any[]) => void; /** * * @export */ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; /** * * @export */ export declare const toPathString: (url: URL) => string; /** * * @export */ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;