mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 18:24:36 +00:00
security(feishu): bind doc create grants to trusted requester context (#31184)
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
@@ -29,12 +29,10 @@ export const FeishuDocSchema = Type.Union([
|
||||
action: Type.Literal("create"),
|
||||
title: Type.String({ description: "Document title" }),
|
||||
folder_token: Type.Optional(Type.String({ description: "Target folder token (optional)" })),
|
||||
owner_open_id: Type.Optional(
|
||||
Type.String({ description: "Open ID of the user to grant ownership permission" }),
|
||||
),
|
||||
owner_perm_type: Type.Optional(
|
||||
Type.Union([Type.Literal("view"), Type.Literal("edit"), Type.Literal("full_access")], {
|
||||
description: "Permission type (default: full_access)",
|
||||
grant_to_requester: Type.Optional(
|
||||
Type.Boolean({
|
||||
description:
|
||||
"Grant edit permission to the trusted requesting Feishu user from runtime context (default: true).",
|
||||
}),
|
||||
),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user