Skip to content

Commit 47ec0f5

Browse files
committed
refactor(outlink): new async iterable based runtime api
Signed-off-by: Nixieboluo <me@sagirii.me>
1 parent f107b70 commit 47ec0f5

8 files changed

Lines changed: 880 additions & 586 deletions

File tree

packages/global/support/outLink/type.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ import z from 'zod';
22
import type { PublishChannelEnum } from './constant';
33
import { BoolSchema } from '../../common/zod';
44

5-
// Feishu Config interface
6-
export interface FeishuAppType {
7-
appId: string;
8-
appSecret: string;
9-
// Encrypt config
10-
// refer to: https://open.feishu.cn/document/server-docs/event-subscription-guide/event-subscription-configure-/configure-encrypt-key
11-
encryptKey?: string; // no secret if null
12-
}
5+
export const FeishuAppSchema = z.object({
6+
appId: z.string().trim().min(1),
7+
appSecret: z.string().trim().min(1),
8+
encryptKey: z.string().trim().optional()
9+
});
10+
11+
/**
12+
* Feishu app config.
13+
* @see https://open.feishu.cn/document/server-docs/event-subscription-guide/event-subscription-configure-/configure-encrypt-key
14+
*/
15+
export type FeishuAppType = z.infer<typeof FeishuAppSchema>;
1316

1417
export interface DingtalkAppType {
1518
clientId: string;

0 commit comments

Comments
 (0)