MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / normalizeFeishuAdapterConfig

Function normalizeFeishuAdapterConfig

src/runtime/config.ts:130–144  ·  view source on GitHub ↗
(
  value: unknown,
)

Source from the content-addressed store, hash-verified

128 return undefined;
129}
130
131function normalizeFeishuAdapterConfig(
132 value: unknown,
133): { appId?: string; appSecret?: string; domain?: "feishu" | "lark" } | undefined {
134 if (!value || typeof value !== "object" || Array.isArray(value)) {
135 return undefined;
136 }
137
138 const raw = value as Record<string, unknown>;
139
140 return {
141 appId: typeof raw.appId === "string" ? raw.appId : undefined,
142 appSecret: typeof raw.appSecret === "string" ? raw.appSecret : undefined,
143 domain: raw.domain === "lark" ? "lark" : "feishu",
144 };
145}
146
147function normalizeDataConfig(value: unknown): DataConfig {

Callers 1

normalizeDataConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected