@@ -550,20 +550,20 @@ The request/response message shapes are versioned and defined by JSON Schemas:
550550Each request contains a version (` v ` ), the Deno process ID (` pid ` ), a unique
551551monotonic request ` id ` , a timestamp (` datetime ` , RFC 3339), the ` permission `
552552name, and an optional ` value ` depending on permission type. The response must
553- echo the ` id ` and include a ` result ` of either ` "grant " ` or ` "deny" ` . When
553+ echo the ` id ` and include a ` result ` of either ` "allow " ` or ` "deny" ` . When
554554denied, a human-readable ` reason ` may be included.
555555
556556Example message flow:
557557
558558``` text
559559-> req {"v":1,"pid":10234,"id":1,"datetime":"2025-01-01T00:00:00.000Z","permission":"read","value":"./run/permission_broker/scratch.txt"}
560- <- res {"id":1,"result":"grant "}
560+ <- res {"id":1,"result":"allow "}
561561-> req {"v":1,"pid":10234,"id":2,"datetime":"2025-01-01T00:00:01.000Z","permission":"read","value":"./run/permission_broker/scratch.txt"}
562- <- res {"id":2,"result":"grant "}
562+ <- res {"id":2,"result":"allow "}
563563-> req {"v":1,"pid":10234,"id":3,"datetime":"2025-01-01T00:00:02.000Z","permission":"read","value":"./run/permission_broker/log.txt"}
564- <- res {"id":3,"result":"grant "}
564+ <- res {"id":3,"result":"allow "}
565565-> req {"v":1,"pid":10234,"id":4,"datetime":"2025-01-01T00:00:03.000Z","permission":"write","value":"./run/permission_broker/log.txt"}
566- <- res {"id":4,"result":"grant "}
566+ <- res {"id":4,"result":"allow "}
567567-> req {"v":1,"pid":10234,"id":5,"datetime":"2025-01-01T00:00:04.000Z","permission":"env","value":null}
568568<- res {"id":5,"result":"deny","reason":"Environment access is denied."}
569569```
0 commit comments