full diff

fyi.opensocial.importAccount

From
bafyreigtmc5mitg3es2r2xg2dhutxvtuur3v3tocdaaxlabnn6nfgexjpe indexed 2026-11-02 23:05 UTC View this version
To
bafyreifbbaw6vahpyoxqrbu5fdgbfqte6qcotdntzkkwbe6mvlegdltnum indexed 2026-11-05 16:25 UTC View this version

Compatibility

breaking 2 breaking changes, 1 non-breaking change.

Breaking changes (2)
  • ConstraintAdded ConstraintAdded { vertex_id: "fyi.opensocial.importAccount:input.serviceJwt", sort: "maxLength", value: "8192" }
  • ConstraintAdded ConstraintAdded { vertex_id: "fyi.opensocial.importAccount:input.address", sort: "maxLength", value: "253" }
Non-breaking changes (1)
  • ConstraintRemoved ConstraintRemoved { vertex_id: "fyi.opensocial.importAccount:output.address", sort: "format" }

Migration guidance

Constraint changes

  • ConstraintAdded ConstraintAdded { vertex_id: "fyi.opensocial.importAccount:input.address", sort: "maxLength", value: "253" }
  • ConstraintAdded ConstraintAdded { vertex_id: "fyi.opensocial.importAccount:input.serviceJwt", sort: "maxLength", value: "8192" }
  • ConstraintRemoved ConstraintRemoved { vertex_id: "fyi.opensocial.importAccount:output.address", sort: "format" }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Start moving an account that already exists on the network, on any server, here to become a group: check the account's proof that it hands its DID to this host, make it here switched off with new keys, and copy its whole repo and its files from its server. Answers with the credentials the account's PLC operation should name; once its server has signed one, completeImport finishes the move. The caller becomes the group's admin. Only a did:plc account, and never the caller's own. Starting again for an account the caller started on discards what the first start copied.",
66 "errors": [
77 {
88 "name": "NotAllowed"
99 },
1010 {
1111 "name": "InvalidToken"
1212 },
1313 {
1414 "name": "NotPlc"
1515 },
1616 {
1717 "name": "SameAccount"
1818 },
1919 {
2020 "name": "AlreadyHere"
2121 },
2222 {
2323 "name": "InvalidHandle"
2424 },
2525 {
2626 "name": "HandleNotAvailable"
2727 },
2828 {
2929 "name": "InvalidRepo"
3030 },
3131 {
3232 "name": "UpstreamFailure"
3333 }
3434 ],
3535 "input": {
3636 "encoding": "application/json",
3737 "schema": {
3838 "properties": {
3939 "address": {
4040 "description": "The label of its address on this host; by default its handle's first label.",
41 "maxLength": 253,
4142 "type": "string"
4243 },
4344 "serviceJwt": {
4445 "description": "A service token from the account's own server (com.atproto.server.getServiceAuth), with this host's DID as aud and com.atproto.server.createAccount as lxm.",
46 "maxLength": 8192,
4547 "type": "string"
4648 }
4749 },
4850 "required": [
4951 "serviceJwt"
5052 ],
5153 "type": "object"
5254 }
5355 },
5456 "output": {
5557 "encoding": "application/json",
5658 "schema": {
5759 "properties": {
5860 "address": {
59 "format": "handle",
61 "description": "Its address here: one label under this host's handle domain.",
6062 "type": "string"
6163 },
6264 "blobs": {
6365 "description": "Files copied.",
6466 "type": "integer"
6567 },
6668 "did": {
6769 "format": "did",
6870 "type": "string"
6971 },
7072 "displayName": {
7173 "type": "string"
7274 },
7375 "handle": {
7476 "description": "Its handle once moved: its own domain if it has one that still names it, otherwise its address.",
7577 "format": "handle",
7678 "type": "string"
7779 },
7880 "recommendedCreds": {
7981 "description": "rotationKeys, alsoKnownAs, verificationMethods and services, as com.atproto.identity.getRecommendedDidCredentials answers: what the account's server signs into its PLC operation (com.atproto.identity.signPlcOperation).",
8082 "type": "unknown"
8183 },
8284 "records": {
8385 "description": "Records copied.",
8486 "type": "integer"
8587 }
8688 },
8789 "required": [
8890 "did",
8991 "handle",
9092 "address",
9193 "displayName",
9294 "records",
9395 "blobs",
9496 "recommendedCreds"
9597 ],
9698 "type": "object"
9799 }
98100 },
99101 "type": "procedure"
100102 }
101103 },
102104 "id": "fyi.opensocial.importAccount",
103105 "lexicon": 1
104106}

Compare other versions