import { GetTokenParams, TokenResponse } from './TokenCredential'; import { TokenSessionCredential } from './TokenSessionCredential'; /** * 产品服务商获取授权企业的授权凭证 * * @see https://open.dingtalk.com/document/orgapp/obtain-the-access_token-of-the-authorized-enterprise */ export declare class CorpAuthCredential extends TokenSessionCredential { suiteKey?: string; suiteSecret?: string; authCorpId?: string; suiteTicket?: string; constructor(options?: CorpAuthGetTokenParams); get clientId(): string | undefined; get clientSecret(): string | undefined; protected request(params: CorpAuthGetTokenParams): Promise; } export interface CorpAuthGetTokenParams extends GetTokenParams { /** * 定制应用的 CustomKey。 */ suiteKey?: string; /** * 定制应用的 CustomSecret。 */ suiteSecret?: string; /** * 授权企业的 CorpId。 */ authCorpId?: string; /** * 钉钉推送的suiteTicket,定制应用该参数自定义,比如 Test。 */ suiteTicket?: string; }