Skip to content
Developer Preview

ApprovalListPendingResult

approval/listPending result. Ordering is by opening viewCursor; empty arrays when nothing is pending. The result is point-in-time — to act on it race-safely, approval/decide carries the requirementId guard regardless of how the client learned the state.

  • approvals
  • userInputs
Source

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

{
"description": "`approval/listPending` result. Ordering is by opening\n`viewCursor`; empty arrays when nothing is pending. The result is\npoint-in-time — to act on it race-safely, `approval/decide` carries the\n`requirementId` guard regardless of how the client learned the state.",
"properties": {
"approvals": {
"description": "Exactly the `approval/request` params, one per pending\napproval.",
"items": {
"$ref": "#/$defs/ApprovalRequestParams"
},
"type": "array"
},
"userInputs": {
"description": "Exactly the `userInput/request` params, one per pending\nprompt.",
"items": {
"$ref": "#/$defs/UserInputRequestParams"
},
"type": "array"
}
},
"required": [
"approvals",
"userInputs"
],
"type": "object"
}