pub.chive.governance.grantDelegation

Grant PDS delegation to a trusted editor. Only accessible to administrators. Delegation allows the user to write records to the Governance PDS.

Repository @lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh not from the namespace authority
Details · procedure
Kindprocedure
Authoritygovernance.chive.pub
Indexed
cid bafyreiah4tu7vsj4rstxzotypesj4jwwms4pxsowbymof2uceif6qygwni

Checks

Valid
  • unlimited-string defs.delegationResult.properties.delegationIdNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.delegationResult.properties.messageNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.input.schema.properties.collections.itemsNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "delegationResult": {
      "description": "Result of delegation operation",
      "properties": {
        "delegationId": {
          "description": "Delegation ID (if created)",
          "type": "string"
        },
        "message": {
          "description": "Human-readable result message",
          "type": "string"
        },
        "success": {
          "description": "Whether the operation succeeded",
          "type": "boolean"
        }
      },
      "required": [
        "success",
        "message"
      ],
      "type": "object"
    },
    "main": {
      "description": "Grant PDS delegation to a trusted editor. Only accessible to administrators. Delegation allows the user to write records to the Governance PDS.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "Unauthorized"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collections": {
              "description": "NSID collections the delegation covers",
              "items": {
                "type": "string"
              },
              "minLength": 1,
              "type": "array"
            },
            "daysValid": {
              "default": 365,
              "description": "Number of days the delegation is valid",
              "maximum": 365,
              "minimum": 1,
              "type": "integer"
            },
            "delegateDid": {
              "description": "DID of the user to delegate to",
              "format": "did",
              "type": "string"
            },
            "maxRecordsPerDay": {
              "default": 100,
              "description": "Maximum records delegate can create per day",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "delegateDid",
            "collections",
            "daysValid"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "#delegationResult",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "pub.chive.governance.grantDelegation",
  "lexicon": 1,
  "revision": 1
}