File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { z } from "openclaw/plugin-sdk/zod";
44const ShipSchema = z . string ( ) . min ( 1 ) ;
55const ChannelNestSchema = z . string ( ) . min ( 1 ) ;
66
7- export const TlonChannelRuleSchema = z . object ( {
7+ const TlonChannelRuleSchema = z . object ( {
88 mode : z . enum ( [ "restricted" , "open" ] ) . optional ( ) ,
99 allowedShips : z . array ( ShipSchema ) . optional ( ) ,
1010} ) ;
@@ -39,7 +39,7 @@ const tlonCommonConfigFields = {
3939 ownerShip : ShipSchema . optional ( ) , // Ship that receives approval requests and can approve/deny
4040} satisfies z . ZodRawShape ;
4141
42- export const TlonAccountSchema = z . object ( {
42+ const TlonAccountSchema = z . object ( {
4343 ...tlonCommonConfigFields ,
4444} ) ;
4545
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export type TlonSettingsStore = {
5555 pendingApprovals ?: PendingApproval [ ] ;
5656} ;
5757
58- export type TlonSettingsState = {
58+ type TlonSettingsState = {
5959 current : TlonSettingsStore ;
6060 loaded : boolean ;
6161} ;
@@ -285,7 +285,7 @@ function applySettingsUpdate(
285285 return next ;
286286}
287287
288- export type SettingsLogger = {
288+ type SettingsLogger = {
289289 log ?: ( msg : string ) => void ;
290290 error ?: ( msg : string ) => void ;
291291} ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function tlonChannelId() {
2323 return "tlon" as const ;
2424}
2525
26- export type TlonSetupInput = ChannelSetupInput & TlonAccountFieldsInput ;
26+ type TlonSetupInput = ChannelSetupInput & TlonAccountFieldsInput ;
2727
2828function isConfigured ( account : TlonResolvedAccount ) : boolean {
2929 return Boolean ( account . ship && account . url && account . code ) ;
Original file line number Diff line number Diff line change 1- export type TlonTarget =
1+ type TlonTarget =
22 | { kind : "dm" ; ship : string }
33 | { kind : "group" ; nest : string ; hostShip : string ; channelName : string } ;
44
You can’t perform that action at this time.
0 commit comments