dev.knotless.blockActor

lexicons.knotless.dev

Documentation

Writes a dev.knotless.block record in the account logged in to this appview's web pages, as `knotless block` does, unless one is there already: nothing the account blocked writes about its repositories, or about the one repository named, shows. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.

main procedure

Writes a dev.knotless.block record in the account logged in to this appview's web pages, as `knotless block` does, unless one is there already: nothing the account blocked writes about its repositories, or about the one repository named, shows. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.

Input

Encodingapplication/json
Schema#block

Output

Encodingapplication/json

Errors

InvalidRequest The account is the one asking, or the repository is not its own.
NotFound No such account.
AuthenticationRequired No account is logged in to the pages, or its session has ended.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "description": "Writes a dev.knotless.block record in the account logged in to this appview's web pages, as `knotless block` does, unless one is there already: nothing the account blocked writes about its repositories, or about the one repository named, shows. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.",
  "errors": [
    {
      "description": "The account is the one asking, or the repository is not its own.",
      "name": "InvalidRequest"
    },
    {
      "description": "No such account.",
      "name": "NotFound"
    },
    {
      "description": "No account is logged in to the pages, or its session has ended.",
      "name": "AuthenticationRequired"
    }
  ],
  "input": {
    "encoding": "application/json",
    "schema": {
      "ref": "#block",
      "type": "ref"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "ref": "#blockState",
      "type": "ref"
    }
  },
  "type": "procedure"
}
block object

Whom to block, and from what.

Properties

repo string at-uri Optional

The one repository to block it from, by its dev.knotless.repo record: one of the asker's own. All of them when absent.

subject string at-identifier Required

The account to block, by DID or handle.

View raw schema
{
  "description": "Whom to block, and from what.",
  "properties": {
    "repo": {
      "description": "The one repository to block it from, by its dev.knotless.repo record: one of the asker's own. All of them when absent.",
      "format": "at-uri",
      "type": "string"
    },
    "subject": {
      "description": "The account to block, by DID or handle.",
      "format": "at-identifier",
      "type": "string"
    }
  },
  "required": [
    "subject"
  ],
  "type": "object"
}
blockState object

Whether the account is blocked now, from what was asked.

Properties

blocking boolean Required

Whether it is blocked now.

subject string did Required

The account.

View raw schema
{
  "description": "Whether the account is blocked now, from what was asked.",
  "properties": {
    "blocking": {
      "description": "Whether it is blocked now.",
      "type": "boolean"
    },
    "subject": {
      "description": "The account.",
      "format": "did",
      "type": "string"
    }
  },
  "required": [
    "subject",
    "blocking"
  ],
  "type": "object"
}

Lexicon Garden

@