UNPKG

@cloudbase/app

Version:
39 lines (38 loc) 1.5 kB
import { EndPointKey } from '@cloudbase/types'; export declare function setSdkVersion(version: string): void; export declare function getSdkVersion(): string; export declare function setSdkName(name: string): void; export declare function getSdkName(): string; export declare const DATA_VERSION = "2020-01-10"; interface EndPointInfo { env: string; endPointKey: EndPointKey; region?: string; baseUrl?: string; protocol?: Protocol; } type Protocol = 'http' | 'https' | 'http:' | 'https:'; export declare const DEFAULT_PROTOCOL: 'http:' | 'https:'; export declare function setEndPointInfo(newInfo: EndPointInfo): void; export declare function getEndPointInfo(env: string, endPointKey: EndPointKey, region?: string): EndPointInfo; export interface ISetEndPointWithKey { key: EndPointKey; url?: string; protocol?: 'http' | 'https'; } export declare function setGatewayEndPointWithEnv(env: string, protocol?: Protocol, region?: string): void; export declare function setRegionLevelEndpoint(env: string, region: string, protocol?: Protocol): void; export declare function getBaseEndPoint(env: string, endPointKey?: EndPointKey): string; export declare enum LOGINTYPE { NULL = "NULL", ANONYMOUS = "ANONYMOUS", WECHAT = "WECHAT", WECHAT_PUBLIC = "WECHAT-PUBLIC", WECHAT_OPEN = "WECHAT-OPEN", CUSTOM = "CUSTOM", EMAIL = "EMAIL", USERNAME = "USERNAME", PHONE = "PHONE" } export declare const OAUTH2_LOGINTYPE_PREFIX = "OAUTH2"; export {};