HookRequestParams
Experimental
hook/request params: one call of a hook that
the receiving connection declared.
Fields and variants
Section titled “Fields and variants”event— ExperimentalhookId— Experimentalinput— ExperimentalpluginId— ExperimentalsessionId— ExperimentaltimeoutMs— ExperimentalturnId— Experimental
Source
schema/msp/experimental/msp.schema.json#/types/HookRequestParams
{ "description": "`hook/request` params: one call of a hook that\nthe receiving connection declared.", "properties": { "event": { "$ref": "#/$defs/HookEventName", "description": "The event, as declared." }, "hookId": { "description": "The hook's ID, as declared.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "type": "string" }, "input": { "description": "The hook call's arguments: the shared `HookInputs` member of the event.", "properties": {}, "type": "object" }, "pluginId": { "description": "The plugin's ID, as declared.", "type": "string" }, "sessionId": { "description": "The session whose event the hook sees.", "type": "string" }, "timeoutMs": { "description": "The rest of the hook's deadline when the host sent the request.", "maximum": 10000, "minimum": 1, "type": "integer" }, "turnId": { "description": "The turn; absent only for `sessionStart`.", "type": "string" } }, "required": [ "event", "hookId", "input", "pluginId", "sessionId", "timeoutMs" ], "type": "object", "x-msp-descriptor": "hook/request", "x-msp-stability": "experimental"}