Skip to content
Developer Preview

EffectiveApprovalModeState

The effective approval-mode projection: the same object session/setApprovalMode returns as effectiveMode and the Session object carries as approvalMode.

  • lastCommandId
  • mode
  • source
Source

schema/msp/experimental/msp.schema.json#/types/EffectiveApprovalModeState

{
"description": "The effective approval-mode projection: the same object `session/setApprovalMode` returns as\n`effectiveMode` and the `Session` object carries as `approvalMode`.",
"properties": {
"lastCommandId": {
"description": "The command that last set it; `null` when no command did.",
"type": [
"string",
"null"
]
},
"mode": {
"$ref": "#/$defs/ApprovalMode",
"description": "The mode in effect."
},
"source": {
"$ref": "#/$defs/ApprovalModeSource",
"description": "How the mode took effect."
}
},
"required": [
"lastCommandId",
"mode",
"source"
],
"type": "object"
}