mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:00:44 +00:00
build: migrate schema deps to typebox
This commit is contained in:
@@ -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:*",
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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" }),
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Type, type Static } from "@sinclair/typebox";
|
||||
import { Type, type Static } from "typebox";
|
||||
|
||||
const FileType = Type.Union([
|
||||
Type.Literal("doc"),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Type, type Static } from "@sinclair/typebox";
|
||||
import { Type, type Static } from "typebox";
|
||||
|
||||
const TokenType = Type.Union([
|
||||
Type.Literal("doc"),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Type, type Static } from "@sinclair/typebox";
|
||||
import { Type, type Static } from "typebox";
|
||||
|
||||
export const FeishuWikiSchema = Type.Union([
|
||||
Type.Object({
|
||||
|
||||
Reference in New Issue
Block a user