[SDK] Add lexicon codegen pipeline (@atproto/lex) (#11346)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"id": "chat.bsky.actor.declaration",
|
||||
"defs": {
|
||||
"main": {
|
||||
"key": "literal:self",
|
||||
"type": "record",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"allowIncoming"
|
||||
],
|
||||
"properties": {
|
||||
"allowIncoming": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"all",
|
||||
"none",
|
||||
"following"
|
||||
]
|
||||
},
|
||||
"allowGroupInvites": {
|
||||
"type": "string",
|
||||
"description": "Declaration about group chat invitation preferences for the record owner.",
|
||||
"knownValues": [
|
||||
"all",
|
||||
"none",
|
||||
"following"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "A declaration of a Bluesky chat account."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"id": "chat.bsky.actor.defs",
|
||||
"defs": {
|
||||
"memberRole": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"owner",
|
||||
"standard"
|
||||
]
|
||||
},
|
||||
"groupConvoMember": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"role"
|
||||
],
|
||||
"properties": {
|
||||
"role": {
|
||||
"ref": "#memberRole",
|
||||
"type": "ref",
|
||||
"description": "The member's role within this conversation. Only present in group conversation member lists."
|
||||
},
|
||||
"addedBy": {
|
||||
"ref": "#profileViewBasic",
|
||||
"type": "ref",
|
||||
"description": "Who added this member. Only present if the member was added (instead of joining via link)."
|
||||
}
|
||||
},
|
||||
"description": "A current group convo member."
|
||||
},
|
||||
"profileViewBasic": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"did",
|
||||
"handle"
|
||||
],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"kind": {
|
||||
"refs": [
|
||||
"#directConvoMember",
|
||||
"#groupConvoMember",
|
||||
"#pastGroupConvoMember"
|
||||
],
|
||||
"type": "union",
|
||||
"description": "Union field that has data specific to different kinds of convos."
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"handle": {
|
||||
"type": "string",
|
||||
"format": "handle"
|
||||
},
|
||||
"labels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"ref": "com.atproto.label.defs#label",
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"viewer": {
|
||||
"ref": "app.bsky.actor.defs#viewerState",
|
||||
"type": "ref"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"associated": {
|
||||
"ref": "app.bsky.actor.defs#profileAssociated",
|
||||
"type": "ref"
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"maxLength": 640,
|
||||
"maxGraphemes": 64
|
||||
},
|
||||
"chatDisabled": {
|
||||
"type": "boolean",
|
||||
"description": "Set to true when the actor cannot actively participate in conversations"
|
||||
},
|
||||
"verification": {
|
||||
"ref": "app.bsky.actor.defs#verificationState",
|
||||
"type": "ref"
|
||||
}
|
||||
}
|
||||
},
|
||||
"directConvoMember": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"pastGroupConvoMember": {
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"properties": {},
|
||||
"description": "A past group convo member."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "chat.bsky.actor.deleteAccount",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"id": "chat.bsky.actor.exportAccountData",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"output": {
|
||||
"encoding": "application/jsonl"
|
||||
}
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"id": "chat.bsky.actor.getStatus",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"chatDisabled",
|
||||
"canCreateGroups",
|
||||
"groupMemberLimit"
|
||||
],
|
||||
"properties": {
|
||||
"chatDisabled": {
|
||||
"type": "boolean",
|
||||
"description": "True when the viewer's account is disabled and cannot actively participate in chat."
|
||||
},
|
||||
"canCreateGroups": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the viewer's account is allowed to create group chats. New accounts are restricted from creating groups."
|
||||
},
|
||||
"groupMemberLimit": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of members allowed in a group conversation."
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Get the authenticated viewer's chat status: whether their account is chat-disabled and whether their group-membership additions are restricted to accounts they follow."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
Reference in New Issue
Block a user