From
bafyreicjkubnl4l5jiexh7cculn2hzakxi67lwkiblhjr6jfzt5e5yuffm
indexed 2026-10-19 18:20 UTC
View this version
To
bafyreieijc3dbqictzi3q2thsgqhjdvizzjucqstd6qvxrbqdlnu27ifvm
indexed 2026-11-09 03:40 UTC
View this version
Compatibility
backward compatible No changes detected.
Changes
11
{22
"$type": "com.atproto.lexicon.schema",33
"defs": {44
"main": {5
"description": "Create HappyProto's admin and customers spaces under HAPPYPROTO_DID, member-only, keeping either that already exists, and add each of staff to the admin space with write access, skipping existing members. Idempotent: a second call creates nothing and adds no one. Only HappyProto's own account may call it.",5
"description": "Create HappyProto's admin and customers spaces, member-only, keeping either that already exists, and add each of staff to the admin space with write access, skipping existing members. Each space is looked up at the uri its script variable (HAPPYPROTO_ADMIN_SPACE, HAPPYPROTO_CUSTOMERS_SPACE) names, or, unset, under HAPPYPROTO_DID. A space created here has a DID of its own, and the uri answered is the one to set its variable to. Idempotent once the variables are set: a second call creates nothing and adds no one. Only HappyProto's own account may call it.",66
"errors": [77
{8
"description": "A space of this type already exists at a uri of its own that no variable names. The message names the variable to set to it.",9
"name": "Conflict"10
},11
{812
"description": "The caller is not HAPPYPROTO_DID, is signed out, or HAPPYPROTO_DID is unset or not a DID.",913
"name": "Forbidden"1014
},1115
{1216
"description": "staff is not a list of at most 50 DIDs.",1317
"name": "InvalidRequest"1418
},1519
{16
"description": "A space could not be read, created or changed, or the instance anchors new spaces under its own DID rather than HAPPYPROTO_DID. A failure part-way through staff names, in its message, the DIDs already added. Retrying is safe.",20
"description": "A space could not be read, created or changed. A failure part-way through staff names, in its message, the DIDs already added. Retrying is safe.",1721
"name": "Upstream"1822
}1923
],2024
"input": {2125
"encoding": "application/json",2226
"schema": {2327
"properties": {2428
"staff": {2529
"description": "DIDs to add to the admin space with write access. A DID listed twice is added once. A DID that is already a member is left at its current access (a read-only member is not upgraded) and is not listed in staffAdded.",2630
"items": {2731
"format": "did",2832
"type": "string"2933
},3034
"maxLength": 50,3135
"type": "array"3236
}3337
},3438
"type": "object"3539
}3640
},3741
"output": {3842
"encoding": "application/json",3943
"schema": {4044
"properties": {4145
"adminSpace": {4246
"ref": "#space",4347
"type": "ref"4448
},4549
"customersSpace": {4650
"ref": "#space",4751
"type": "ref"4852
},4953
"staffAdded": {5054
"description": "The DIDs this call added to the admin space; members already present are left out.",5155
"items": {5256
"format": "did",5357
"type": "string"5458
},5559
"type": "array"5660
}5761
},5862
"required": [5963
"adminSpace",6064
"customersSpace",6165
"staffAdded"6266
],6367
"type": "object"6468
}6569
},6670
"type": "procedure"6771
},6872
"space": {6973
"properties": {7074
"created": {7175
"description": "Whether this call created the space; false when it already existed.",7276
"type": "boolean"7377
},7478
"uri": {7579
"description": "The space's at:// uri, at://<HAPPYPROTO_DID>/space/<type>/main. Not format at-uri: that format allows a collection NSID and a record key at most, and a space uri has four path segments and `space` where the NSID would be, so @atproto/lexicon refuses it.",7680
"format": "uri",7781
"type": "string"7882
}7983
},8084
"required": [8185
"uri",8286
"created"8387
],8488
"type": "object"8589
}8690
},8791
"id": "at.happyproto.admin.createSpaces",8892
"lexicon": 18993
}