@sqlrooms/room-store / RoomCommand
Type Alias: RoomCommand<RS>
RoomCommand<
RS> =object
Type Parameters
| Type Parameter | Default type |
|---|---|
RS extends BaseRoomStoreState | BaseRoomStoreState |
Properties
id
id:
string
name
name:
string
description?
optionaldescription?:string
group?
optionalgroup?:string
keywords?
optionalkeywords?:string[]
inputSchema?
optionalinputSchema?:ZodType<unknown>
inputDescription?
optionalinputDescription?:string
validateInput?
optionalvalidateInput?: (input,context) =>void|Promise<void>
Parameters
| Parameter | Type |
|---|---|
input | unknown |
context | RoomCommandExecutionContext<RS> |
Returns
void | Promise<void>
execute
execute: (
context,input?) =>RoomCommandExecuteOutput|Promise<RoomCommandExecuteOutput>
Parameters
| Parameter | Type |
|---|---|
context | RoomCommandExecutionContext<RS> |
input? | unknown |
Returns
RoomCommandExecuteOutput | Promise<RoomCommandExecuteOutput>
isVisible?
optionalisVisible?:RoomCommandPredicate<RS>
isEnabled?
optionalisEnabled?:RoomCommandPredicate<RS>
metadata?
optionalmetadata?:RoomCommandPolicyMetadata
ui?
optionalui?:RoomCommandUiMetadata
keystrokes?
optionalkeystrokes?:RoomCommandKeystrokes
Deprecated
Use ui?.keystrokes
shortcut?
optionalshortcut?:string
Deprecated
Use ui?.shortcut
inputComponent?
optionalinputComponent?:RoomCommandInputComponent
Deprecated
Use ui?.inputComponent
readOnly?
optionalreadOnly?:boolean
Deprecated
Use metadata?.readOnly
idempotent?
optionalidempotent?:boolean
Deprecated
Use metadata?.idempotent
riskLevel?
optionalriskLevel?:RoomCommandRiskLevel
Deprecated
Use metadata?.riskLevel
requiresConfirmation?
optionalrequiresConfirmation?:boolean
Deprecated
Use metadata?.requiresConfirmation
