add @bsky.app/sdk + @atproto/lex, vendor lexicons, codegen via lex cli

This commit is contained in:
Samuel Newman
2026-07-15 16:06:20 +03:00
parent 17c1ee4869
commit 15e232749a
306 changed files with 22544 additions and 2 deletions
+64
View File
@@ -0,0 +1,64 @@
{
"lexicon": 1,
"id": "com.germnetwork.declaration",
"defs": {
"main": {
"type": "record",
"description": "A declaration of a Germ Network account",
"key": "literal:self",
"record": {
"type": "object",
"required": ["version", "currentKey"],
"properties": {
"version": {
"type": "string",
"description": "Semver version number, without pre-release or build information, for the format of opaque content",
"minLength": 5,
"maxLength": 14
},
"currentKey": {
"type": "bytes",
"description": "Opaque value, an ed25519 public key prefixed with a byte enum"
},
"messageMe": {
"type": "ref",
"description": "Controls who can message this account",
"ref": "#messageMe"
},
"keyPackage": {
"type": "bytes",
"description": "Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey"
},
"continuityProofs": {
"type": "array",
"description": "Array of opaque values to allow for key rolling",
"items": {
"type": "bytes"
},
"maxLength": 1000
}
}
}
},
"messageMe": {
"type": "object",
"required": ["showButtonTo", "messageMeUrl"],
"properties": {
"messageMeUrl": {
"type": "string",
"description": "A URL to present to an account that does not have its own com.germnetwork.declaration record, must have an empty fragment component, where the app should fill in the fragment component with the DIDs of the two accounts who wish to message each other",
"format": "uri",
"minLength": 1,
"maxLength": 2047
},
"showButtonTo": {
"type": "string",
"knownValues": ["none", "usersIFollow", "everyone"],
"description": "The policy of who can message the account, this value is included in the keyPackage, but is duplicated here to allow applications to decide if they should show a 'Message on Germ' button to the viewer.",
"minLength": 1,
"maxLength": 100
}
}
}
}
}