Pending permission request ID and the decision to apply (approve/reject and scope).
| 4302 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 4303 | @dataclass |
| 4304 | class PermissionDecisionRequest: |
| 4305 | """Pending permission request ID and the decision to apply (approve/reject and scope).""" |
| 4306 | |
| 4307 | request_id: str |
| 4308 | """Request ID of the pending permission request""" |
| 4309 | |
| 4310 | result: PermissionDecision |
| 4311 | """The client's response to the pending permission prompt""" |
| 4312 | |
| 4313 | @staticmethod |
| 4314 | def from_dict(obj: Any) -> 'PermissionDecisionRequest': |
| 4315 | assert isinstance(obj, dict) |
| 4316 | request_id = from_str(obj.get("requestId")) |
| 4317 | result = _load_PermissionDecision(obj.get("result")) |
| 4318 | return PermissionDecisionRequest(request_id, result) |
| 4319 | |
| 4320 | def to_dict(self) -> dict: |
| 4321 | result: dict = {} |
| 4322 | result["requestId"] = from_str(self.request_id) |
| 4323 | result["result"] = (self.result).to_dict() |
| 4324 | return result |
| 4325 | |
| 4326 | class PermissionDecisionUserNotAvailableKind(Enum): |
| 4327 | USER_NOT_AVAILABLE = "user-not-available" |
no outgoing calls
searching dependent graphs…