refactor: trim tlon helper exports · openclaw/openclaw@757af70
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import { z } from "openclaw/plugin-sdk/zod";
|
4 | 4 | const ShipSchema = z.string().min(1); |
5 | 5 | const ChannelNestSchema = z.string().min(1); |
6 | 6 | |
7 | | -export const TlonChannelRuleSchema = z.object({ |
| 7 | +const TlonChannelRuleSchema = z.object({ |
8 | 8 | mode: z.enum(["restricted", "open"]).optional(), |
9 | 9 | allowedShips: z.array(ShipSchema).optional(), |
10 | 10 | }); |
@@ -39,7 +39,7 @@ const tlonCommonConfigFields = {
|
39 | 39 | ownerShip: ShipSchema.optional(), // Ship that receives approval requests and can approve/deny |
40 | 40 | } satisfies z.ZodRawShape; |
41 | 41 | |
42 | | -export const TlonAccountSchema = z.object({ |
| 42 | +const TlonAccountSchema = z.object({ |
43 | 43 | ...tlonCommonConfigFields, |
44 | 44 | }); |
45 | 45 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。