full diff

space.highport.manage.grantSpaceAccess

From
bafyreidbvvlptqgvhunon524yanqeftaac6uvtdkdbw33epxpbczzhozde indexed 2026-09-01 13:04 UTC View this version
To
bafyreidmfnhhehs2izyuaolralcuk4derqgqcgrkqz72qct3vahzipritq indexed 2026-09-17 17:50 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
5 "description": "Hand bard a delegation token so it can keep reading a space. Any member may grant; the calling identity must be the token's issuer. Bard exchanges it under its own key, stores the credential, renews the notification registration when due, drains a queued receipt, and runs a head check if the space had lapsed.",
5 "description": "Give bard a delegation token so it can keep reading a space. Any member can call this with a token they issued. Bard trades it for a credential, renews its notification registration when due, and catches up on anything it missed.",
66 "errors": [
77 {
8 "description": "Bard is not connected to that space; call connectSpace first.",
8 "description": "Bard is not connected to that space. Call connectSpace first.",
99 "name": "SpaceNotFound"
1010 },
1111 {
12 "description": "The delegation token's issuer is not the calling identity.",
12 "description": "The delegation token was not issued by the caller.",
1313 "name": "GrantIssuerMismatch"
1414 },
1515 {
16 "description": "The delegation token is past its lifetime.",
16 "description": "The delegation token has expired.",
1717 "name": "GrantExpired"
1818 },
1919 {
2020 "description": "The space host refused the exchange.",
2121 "name": "GrantRefused"
2222 },
2323 {
24 "description": "The space's app access does not admit bard.",
24 "description": "The space does not allow bard access.",
2525 "name": "AppNotAllowed"
2626 },
2727 {
2828 "description": "Space support is disabled on this deployment.",
2929 "name": "SpacesDisabled"
3030 }
3131 ],
3232 "input": {
3333 "encoding": "application/json",
3434 "schema": {
3535 "properties": {
3636 "delegationToken": {
37 "description": "A delegation token minted by the calling identity for this space; spent immediately and never stored.",
37 "description": "A delegation token the caller minted for this space. Used once and never stored.",
3838 "type": "string"
3939 },
4040 "space": {
4141 "format": "at-uri",
4242 "type": "string"
4343 }
4444 },
4545 "required": [
4646 "space",
4747 "delegationToken"
4848 ],
4949 "type": "object"
5050 }
5151 },
5252 "output": {
5353 "encoding": "application/json",
5454 "schema": {
5555 "properties": {
5656 "accessExpiresAt": {
57 "description": "When the credential bard now holds expires.",
57 "description": "When bard's new credential expires.",
5858 "format": "datetime",
5959 "type": "string"
6060 },
6161 "drained": {
62 "description": "Queued notification receipts turned into sync jobs by this grant.",
62 "description": "Queued notifications this grant turned into sync jobs.",
6363 "type": "integer"
6464 },
6565 "registrationExpiresAt": {
66 "description": "When bard's notification registration at the space host expires.",
66 "description": "When bard's notification registration with the space host expires.",
6767 "format": "datetime",
6868 "type": "string"
6969 }
7070 },
7171 "required": [
7272 "accessExpiresAt",
7373 "drained"
7474 ],
7575 "type": "object"
7676 }
7777 },
7878 "type": "procedure"
7979 }
8080 },
8181 "id": "space.highport.manage.grantSpaceAccess",
8282 "lexicon": 1
8383}

Compare other versions