full diff

pub.chive.governance.grantDelegation

From
bafyreiah4tu7vsj4rstxzotypesj4jwwms4pxsowbymof2uceif6qygwni indexed 2026-06-18 13:14 UTC View this version
To
bafyreiah4tu7vsj4rstxzotypesj4jwwms4pxsowbymof2uceif6qygwni indexed 2026-06-18 13:14 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "delegationResult": {
55 "description": "Result of delegation operation",
66 "properties": {
77 "delegationId": {
88 "description": "Delegation ID (if created)",
99 "type": "string"
1010 },
1111 "message": {
1212 "description": "Human-readable result message",
1313 "type": "string"
1414 },
1515 "success": {
1616 "description": "Whether the operation succeeded",
1717 "type": "boolean"
1818 }
1919 },
2020 "required": [
2121 "success",
2222 "message"
2323 ],
2424 "type": "object"
2525 },
2626 "main": {
2727 "description": "Grant PDS delegation to a trusted editor. Only accessible to administrators. Delegation allows the user to write records to the Governance PDS.",
2828 "errors": [
2929 {
3030 "name": "AuthenticationRequired"
3131 },
3232 {
3333 "name": "Unauthorized"
3434 },
3535 {
3636 "name": "InvalidRequest"
3737 }
3838 ],
3939 "input": {
4040 "encoding": "application/json",
4141 "schema": {
4242 "properties": {
4343 "collections": {
4444 "description": "NSID collections the delegation covers",
4545 "items": {
4646 "type": "string"
4747 },
4848 "minLength": 1,
4949 "type": "array"
5050 },
5151 "daysValid": {
5252 "default": 365,
5353 "description": "Number of days the delegation is valid",
5454 "maximum": 365,
5555 "minimum": 1,
5656 "type": "integer"
5757 },
5858 "delegateDid": {
5959 "description": "DID of the user to delegate to",
6060 "format": "did",
6161 "type": "string"
6262 },
6363 "maxRecordsPerDay": {
6464 "default": 100,
6565 "description": "Maximum records delegate can create per day",
6666 "maximum": 1000,
6767 "minimum": 1,
6868 "type": "integer"
6969 }
7070 },
7171 "required": [
7272 "delegateDid",
7373 "collections",
7474 "daysValid"
7575 ],
7676 "type": "object"
7777 }
7878 },
7979 "output": {
8080 "encoding": "application/json",
8181 "schema": {
8282 "ref": "#delegationResult",
8383 "type": "ref"
8484 }
8585 },
8686 "type": "procedure"
8787 }
8888 },
8989 "id": "pub.chive.governance.grantDelegation",
9090 "lexicon": 1,
9191 "revision": 1
9292}