build: migrate schema deps to typebox

This commit is contained in:
Peter Steinberger
2026-04-23 04:59:26 +01:00
parent dd1ba0296c
commit b2472d6560
143 changed files with 344 additions and 347 deletions

View File

@@ -4,9 +4,9 @@
"description": "OpenClaw Feishu/Lark channel plugin (community maintained by @m1heng)",
"type": "module",
"dependencies": {
"@larksuiteoapi/node-sdk": "^1.61.0",
"@sinclair/typebox": "0.34.49",
"qrcode-terminal": "^0.12.0"
"@larksuiteoapi/node-sdk": "^1.61.1",
"qrcode-terminal": "^0.12.0",
"typebox": "1.1.28"
},
"devDependencies": {
"@openclaw/plugin-sdk": "workspace:*",

View File

@@ -1,6 +1,6 @@
import type * as Lark from "@larksuiteoapi/node-sdk";
import { Type } from "@sinclair/typebox";
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
import { Type, type TSchema } from "typebox";
import type { OpenClawPluginApi } from "../runtime-api.js";
import { listEnabledFeishuAccounts } from "./accounts.js";
import { createFeishuToolClient } from "./tool-account.js";
@@ -565,7 +565,7 @@ export function registerFeishuBitableTools(api: OpenClawPluginApi) {
name: string;
label: string;
description: string;
parameters: unknown;
parameters: TSchema;
execute: (args: { params: TParams; defaultAccountId?: string }) => Promise<unknown>;
}) => {
api.registerTool(

View File

@@ -1,4 +1,4 @@
import { Type, type Static } from "@sinclair/typebox";
import { Type, type Static } from "typebox";
const CHAT_ACTION_VALUES = ["members", "info", "member_info"] as const;
const MEMBER_ID_TYPE_VALUES = ["open_id", "user_id", "union_id"] as const;

View File

@@ -1,4 +1,4 @@
import { Type, type Static } from "@sinclair/typebox";
import { Type, type Static } from "typebox";
const tableCreationProperties = {
doc_token: Type.String({ description: "Document token" }),

View File

@@ -3,9 +3,9 @@ import { homedir } from "node:os";
import { isAbsolute, resolve } from "node:path";
import { basename } from "node:path";
import type * as Lark from "@larksuiteoapi/node-sdk";
import { Type } from "@sinclair/typebox";
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
import { Type } from "typebox";
import type { OpenClawPluginApi } from "../runtime-api.js";
import { listEnabledFeishuAccounts } from "./accounts.js";
import { FeishuDocSchema, type FeishuDocParams } from "./doc-schema.js";

View File

@@ -1,4 +1,4 @@
import { Type, type Static } from "@sinclair/typebox";
import { Type, type Static } from "typebox";
const FileType = Type.Union([
Type.Literal("doc"),

View File

@@ -1,4 +1,4 @@
import { Type, type Static } from "@sinclair/typebox";
import { Type, type Static } from "typebox";
const TokenType = Type.Union([
Type.Literal("doc"),

View File

@@ -1,4 +1,4 @@
import { Type, type Static } from "@sinclair/typebox";
import { Type, type Static } from "typebox";
export const FeishuWikiSchema = Type.Union([
Type.Object({