full diff

dev.knotless.defineLabel

From
bafyreidfceuw272kfvfmjq5ztnktnxy4cmcqdvqewaqs52m2w3ycq2fdcu indexed 2026-11-02 23:59 UTC View this version
To
bafyreicbuwrqs6kq6fkgpmzrgogz2x22hxmtmi44fvppvpvmumzwp5njku indexed 2026-11-04 13:32 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
5 "description": "Adds the label to the repository's dev.knotless.repo record, in place of any of its name, as `knotless labels add` does. Its owner can, logged in to this appview's web pages: the appview writes with the session it keeps for that account, which the pages' session cookie names. For an organization's repository, so can an admin who joined it, logged in to the pages or with a service token from their own PDS for this method: the appview's gateway, which the organization delegated its writes to, writes as the organization.",
5 "description": "Adds the label to the repository's dev.knotless.repo record, in place of any of its name, as `knotless label define` does. Its owner can, logged in to this appview's web pages: the appview writes with the session it keeps for that account, which the pages' session cookie names. For an organization's repository, so can an admin who joined it, logged in to the pages or with a service token from their own PDS for this method: the appview's gateway, which the organization delegated its writes to, writes as the organization.",
66 "errors": [
77 {
88 "description": "No such repository.",
99 "name": "NotFound"
1010 },
1111 {
1212 "description": "The name is empty or too long, or the color is no hex color.",
1313 "name": "InvalidRequest"
1414 },
1515 {
1616 "description": "No account is logged in to the pages, or its session has ended.",
1717 "name": "AuthenticationRequired"
1818 },
1919 {
2020 "description": "The account logged in is not the repository's owner.",
2121 "name": "Forbidden"
2222 }
2323 ],
2424 "input": {
2525 "encoding": "application/json",
2626 "schema": {
2727 "properties": {
2828 "color": {
2929 "description": "A hex color, as #d73a4a.",
3030 "maxLength": 7,
3131 "type": "string"
3232 },
3333 "description": {
3434 "description": "What the label means, for those who put it on.",
3535 "maxGraphemes": 200,
3636 "maxLength": 1000,
3737 "type": "string"
3838 },
3939 "exclusive": {
4040 "description": "Whether, of its scope's exclusive labels, it stands alone: setting one takes the others off.",
4141 "type": "boolean"
4242 },
4343 "name": {
4444 "description": "Up to its last `/`, if it has one, its scope, as kind/bug's is kind.",
4545 "maxGraphemes": 50,
4646 "maxLength": 100,
4747 "type": "string"
4848 },
4949 "repo": {
5050 "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
5151 "format": "at-uri",
5252 "type": "string"
5353 }
5454 },
5555 "required": [
5656 "repo",
5757 "name"
5858 ],
5959 "type": "object"
6060 }
6161 },
6262 "output": {
6363 "encoding": "application/json",
6464 "schema": {
6565 "properties": {
6666 "labels": {
6767 "description": "The labels it defines now.",
6868 "items": {
6969 "ref": "dev.knotless.repo#label",
7070 "type": "ref"
7171 },
7272 "type": "array"
7373 }
7474 },
7575 "required": [
7676 "labels"
7777 ],
7878 "type": "object"
7979 }
8080 },
8181 "type": "procedure"
8282 }
8383 },
8484 "description": "Defines a label pulls and issues of a repository may carry.",
8585 "id": "dev.knotless.defineLabel",
8686 "lexicon": 1
8787}

Compare other versions