UNPKG

@larksuiteoapi/core

Version:
27 lines 1.23 kB
import { AppType } from "../constants/constants"; export interface AppSettingsOpts { appID: string; appSecret: string; encryptKey?: string; verificationToken?: string; helpDeskID?: string; helpDeskToken?: string; } export declare class AppSettings { readonly appType: AppType; readonly appID: string; readonly appSecret: string; readonly encryptKey: string; readonly verificationToken: string; private readonly helpDeskID; private readonly helpDeskToken; constructor(appType: AppType, opts: AppSettingsOpts); helpDeskAuthorization(): string; } export declare function newISVAppSettingsWithOpts(opts: AppSettingsOpts): AppSettings; export declare function newInternalAppSettingsWithOpts(opts: AppSettingsOpts): AppSettings; export declare function newISVAppSettings(appID: string, appSecret: string, verificationToken: string, encryptKey: string): AppSettings; export declare function newInternalAppSettings(appID: string, appSecret: string, verificationToken: string, encryptKey: string): AppSettings; export declare function getISVAppSettingsByEnv(): AppSettings; export declare function getInternalAppSettingsByEnv(): AppSettings; //# sourceMappingURL=settings.d.ts.map