full diff

org.tangled.repo.mintToken

tangled.org +0 −0
From
bafyreicnlsfce7h3qndo6ayvul2ft3rpozh56tdgvzf5ordcecj3phfrc4 indexed 2026-10-28 14:06 UTC View this version
To
bafyreicnlsfce7h3qndo6ayvul2ft3rpozh56tdgvzf5ordcecj3phfrc4 indexed 2026-10-28 14:06 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Mint a service-auth JWT whose issuer is this repo's DID, signed by the knot that owns the repo's signing key. When calling this, you'll need the same perms as git push, ie. being repo owner/collaborator/knot-admin.",
66 "input": {
77 "encoding": "application/json",
88 "schema": {
99 "properties": {
1010 "aud": {
1111 "description": "Audience of the minted token, a DID service ref for the service, that the token is addressed to.",
1212 "format": "did",
1313 "type": "string"
1414 },
1515 "exp": {
1616 "description": "Unix seconds. Must be in the future, and at most 60s after mint time.",
1717 "format": "int64",
1818 "type": "integer"
1919 },
2020 "lxm": {
2121 "description": "Lexicon method to which minted token binds.",
2222 "format": "nsid",
2323 "type": "string"
2424 },
2525 "repo": {
2626 "description": "DID of the repo that becomes the token's issuer. Must be the audience of a given calling session.",
2727 "format": "did",
2828 "type": "string"
2929 }
3030 },
3131 "required": [
3232 "repo",
3333 "aud",
3434 "lxm",
3535 "exp"
3636 ],
3737 "type": "object"
3838 }
3939 },
4040 "output": {
4141 "encoding": "application/json",
4242 "schema": {
4343 "properties": {
4444 "token": {
4545 "description": "The signed service-auth JWT.",
4646 "type": "string"
4747 }
4848 },
4949 "required": [
5050 "token"
5151 ],
5252 "type": "object"
5353 }
5454 },
5555 "type": "procedure"
5656 }
5757 },
5858 "id": "org.tangled.repo.mintToken",
5959 "lexicon": 1
6060}