ink.branchline.publishSeed

Gift a seed. The caller must be signed in and must be the grantee of `grantor`; publishing passes that seed's planting right on to `grantee` as a new child seed. The AppView writes an ink.branchline.seed record to the caller's PDS and mirrors it into the local read cache. Root (grantor-less) seeds are not created through this endpoint — they are authored only by the branchline.ink repo.

Repository @branchline.ink did:plc:brvu7akhdvsqcomb67pafw25 namespace authority
Details · procedure
Kindprocedure
Authoritybranchline.ink
Indexed
cid bafyreienzehicidm2r5zwrbsnuvs6dz4oij2jwauii7fswfkhbfyirtqfm

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Gift a seed. The caller must be signed in and must be the grantee of `grantor`; publishing passes that seed's planting right on to `grantee` as a new child seed. The AppView writes an ink.branchline.seed record to the caller's PDS and mirrors it into the local read cache. Root (grantor-less) seeds are not created through this endpoint — they are authored only by the branchline.ink repo.",
      "errors": [
        {
          "description": "The caller is not signed in.",
          "name": "Unauthorized"
        },
        {
          "description": "The grantor seed does not exist in the AppView.",
          "name": "GrantorNotFound"
        },
        {
          "description": "The caller is not the grantee of the grantor seed.",
          "name": "NotGrantee"
        },
        {
          "description": "The grantor seed's expiry has passed.",
          "name": "GrantorExpired"
        },
        {
          "description": "The grantor seed has already been granted to another recipient.",
          "name": "GrantorAlreadyGranted"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expiresAt": {
              "description": "Optional expiry for the new grant. Must not extend past the grantor chain's earliest expiry.",
              "format": "datetime",
              "type": "string"
            },
            "grantee": {
              "description": "DID of the new grantee receiving the gift.",
              "format": "did",
              "type": "string"
            },
            "grantor": {
              "description": "AT-URI of the seed the caller currently holds as grantee.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "grantor",
            "grantee"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ink.branchline.publishSeed",
  "lexicon": 1
}