@mxlabs/okxnotify
Version:
OKX notification package with Feishu, Cloudflare Workers, and Gemini AI agent integration - Complete bundle
37 lines (36 loc) • 988 B
TypeScript
/**
* 获取飞书机器人Token
* @see https://open.feishu.cn/document/server-docs/authentication-management/access-token/tenant_access_token_internal
* @returns
*/
export declare const getFeishuRobotToken: () => Promise<{
code: number;
msg: string;
tenant_access_token: string;
expire: number;
}>;
/**
* 获取飞书用户Token
* @see https://open.feishu.cn/document/authentication-management/access-token/get-user-access-token
* @returns
*/
export declare const getFeishuUserToken: () => Promise<{
code: string;
access_token: string;
expires_in: number;
refresh_token: string;
refresh_token_expires_in: number;
scope: string;
token_type: string;
}>;
/**
* 获取飞书Code
* @see https://open.feishu.cn/document/authentication-management/access-token/obtain-oauth-code
*/
export declare const getFeishuCode: ({ redirectUri, }: {
redirectUri: string;
}) => Promise<{
error: string;
code: string;
state: string;
}>;