a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(bluesky): pull latest Bluesky lexicons

Mary c75fe0b4 e879572f

+3064 -13
+5
.changeset/fluffy-pianos-pull.md
··· 1 + --- 2 + '@atcute/bluesky': patch 3 + --- 4 + 5 + pull latest Bluesky lexicons
+1 -1
packages/definitions/bluesky/lexicons/README.md
··· 3 3 this directory contains lexicon documents pulled from the following sources: 4 4 5 5 - https://github.com/bluesky-social/atproto.git 6 - - commit: d8801e2a17fe7062b7aa674475b384ead7518a17 6 + - commit: e1d5e63314f5dad324486157e7c65e4fd04eab1c
+5
packages/definitions/bluesky/lexicons/chat/bsky/actor/declaration.json
··· 13 13 "allowIncoming": { 14 14 "type": "string", 15 15 "knownValues": ["all", "none", "following"] 16 + }, 17 + "allowGroupInvites": { 18 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Declaration about group chat invitation preferences for the record owner.", 19 + "type": "string", 20 + "knownValues": ["all", "none", "following"] 16 21 } 17 22 } 18 23 }
+35
packages/definitions/bluesky/lexicons/chat/bsky/actor/defs.json
··· 2 2 "lexicon": 1, 3 3 "id": "chat.bsky.actor.defs", 4 4 "defs": { 5 + "memberRole": { 6 + "type": "string", 7 + "knownValues": ["owner", "standard"] 8 + }, 5 9 "profileViewBasic": { 6 10 "type": "object", 7 11 "required": ["did", "handle"], ··· 38 42 "ref": "com.atproto.label.defs#label" 39 43 } 40 44 }, 45 + "createdAt": { 46 + "type": "string", 47 + "format": "datetime" 48 + }, 41 49 "chatDisabled": { 42 50 "type": "boolean", 43 51 "description": "Set to true when the actor cannot actively participate in conversations" ··· 45 53 "verification": { 46 54 "type": "ref", 47 55 "ref": "app.bsky.actor.defs#verificationState" 56 + }, 57 + "kind": { 58 + "description": "Union field that has data specific to different kinds of convos.", 59 + "type": "union", 60 + "refs": ["#directConvoMember", "#groupConvoMember"] 61 + } 62 + } 63 + }, 64 + "directConvoMember": { 65 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here].", 66 + "type": "object", 67 + "properties": {} 68 + }, 69 + "groupConvoMember": { 70 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here].", 71 + "type": "object", 72 + "required": ["role"], 73 + "properties": { 74 + "addedBy": { 75 + "description": "Who added this member. Only present if the member was added (instead of joining via link).", 76 + "type": "ref", 77 + "ref": "#profileViewBasic" 78 + }, 79 + "role": { 80 + "description": "The member's role within this conversation. Only present in group conversation member lists.", 81 + "type": "ref", 82 + "ref": "#memberRole" 48 83 } 49 84 } 50 85 }
+1 -1
packages/definitions/bluesky/lexicons/chat/bsky/authFullChatClient.json
··· 17 17 "inheritAud": true, 18 18 "lxm": [ 19 19 "chat.bsky.actor.deleteAccount", 20 - "chat.bsky.actor.exportAccountData", 21 20 "chat.bsky.convo.acceptConvo", 22 21 "chat.bsky.convo.addReaction", 23 22 "chat.bsky.convo.deleteMessageForSelf", 23 + "chat.bsky.convo.exportAccountData", 24 24 "chat.bsky.convo.getConvo", 25 25 "chat.bsky.convo.getConvoAvailability", 26 26 "chat.bsky.convo.getConvoForMembers",
+6
packages/definitions/bluesky/lexicons/chat/bsky/convo/acceptConvo.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Marks a conversation as accepted, so it is shown in the list of accepted convos instead on the request convos.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + } 12 + ], 7 13 "input": { 8 14 "encoding": "application/json", 9 15 "schema": {
+7
packages/definitions/bluesky/lexicons/chat/bsky/convo/addReaction.json
··· 42 42 }, 43 43 "errors": [ 44 44 { 45 + "name": "InvalidConvo" 46 + }, 47 + { 48 + "name": "ReactionNotAllowed", 49 + "description": "Indicates that reactions are not allowed on this message, e.g. because it is a system message." 50 + }, 51 + { 45 52 "name": "ReactionMessageDeleted", 46 53 "description": "Indicates that the message has been deleted and reactions can no longer be added/removed." 47 54 },
+523 -4
packages/definitions/bluesky/lexicons/chat/bsky/convo/defs.json
··· 2 2 "lexicon": 1, 3 3 "id": "chat.bsky.convo.defs", 4 4 "defs": { 5 + "convoKind": { 6 + "type": "string", 7 + "knownValues": ["direct", "group"] 8 + }, 9 + "convoLockStatus": { 10 + "type": "string", 11 + "knownValues": ["unlocked", "locked", "locked-permanently"] 12 + }, 13 + "convoStatus": { 14 + "type": "string", 15 + "knownValues": ["request", "accepted"] 16 + }, 5 17 "messageRef": { 6 18 "type": "object", 7 19 "required": ["did", "messageId", "convoId"], ··· 86 98 } 87 99 } 88 100 }, 101 + "systemMessageView": { 102 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here].", 103 + "type": "object", 104 + "required": ["id", "rev", "sentAt", "data"], 105 + "properties": { 106 + "id": { 107 + "type": "string" 108 + }, 109 + "rev": { 110 + "type": "string" 111 + }, 112 + "sentAt": { 113 + "type": "string", 114 + "format": "datetime" 115 + }, 116 + "data": { 117 + "type": "union", 118 + "refs": [ 119 + "#systemMessageDataAddMember", 120 + "#systemMessageDataRemoveMember", 121 + "#systemMessageDataMemberJoin", 122 + "#systemMessageDataMemberLeave", 123 + "#systemMessageDataLockConvo", 124 + "#systemMessageDataUnlockConvo", 125 + "#systemMessageDataLockConvoPermanently", 126 + "#systemMessageDataEditGroup", 127 + "#systemMessageDataCreateJoinLink", 128 + "#systemMessageDataEditJoinLink", 129 + "#systemMessageDataEnableJoinLink", 130 + "#systemMessageDataDisableJoinLink" 131 + ] 132 + } 133 + } 134 + }, 135 + "systemMessageDataAddMember": { 136 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was added to the group convo.", 137 + "type": "object", 138 + "required": ["member", "role", "addedBy"], 139 + "properties": { 140 + "member": { 141 + "description": "Current view of the member who was added.", 142 + "type": "ref", 143 + "ref": "chat.bsky.actor.defs#profileViewBasic" 144 + }, 145 + "role": { 146 + "description": "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.", 147 + "type": "ref", 148 + "ref": "chat.bsky.actor.defs#memberRole" 149 + }, 150 + "addedBy": { 151 + "type": "ref", 152 + "ref": "chat.bsky.actor.defs#profileViewBasic" 153 + } 154 + } 155 + }, 156 + "systemMessageDataRemoveMember": { 157 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was removed from the group convo.", 158 + "type": "object", 159 + "required": ["member", "removedBy"], 160 + "properties": { 161 + "member": { 162 + "description": "Current view of the member who was removed.", 163 + "type": "ref", 164 + "ref": "chat.bsky.actor.defs#profileViewBasic" 165 + }, 166 + "removedBy": { 167 + "type": "ref", 168 + "ref": "chat.bsky.actor.defs#profileViewBasic" 169 + } 170 + } 171 + }, 172 + "systemMessageDataMemberJoin": { 173 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user joined the group convo via join link.", 174 + "type": "object", 175 + "required": ["member", "role"], 176 + "properties": { 177 + "member": { 178 + "description": "Current view of the member who joined.", 179 + "type": "ref", 180 + "ref": "chat.bsky.actor.defs#profileViewBasic" 181 + }, 182 + "role": { 183 + "description": "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.", 184 + "type": "ref", 185 + "ref": "chat.bsky.actor.defs#memberRole" 186 + }, 187 + "approvedBy": { 188 + "description": "If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required.", 189 + "type": "ref", 190 + "ref": "chat.bsky.actor.defs#profileViewBasic" 191 + } 192 + } 193 + }, 194 + "systemMessageDataMemberLeave": { 195 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user voluntarily left the group convo.", 196 + "type": "object", 197 + "required": ["member"], 198 + "properties": { 199 + "member": { 200 + "description": "Current view of the member who left the group.", 201 + "type": "ref", 202 + "ref": "chat.bsky.actor.defs#profileViewBasic" 203 + } 204 + } 205 + }, 206 + "systemMessageDataLockConvo": { 207 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked.", 208 + "type": "object", 209 + "required": ["lockedBy"], 210 + "properties": { 211 + "lockedBy": { 212 + "description": "Current view of the member who locked the group.", 213 + "type": "ref", 214 + "ref": "chat.bsky.actor.defs#profileViewBasic" 215 + } 216 + } 217 + }, 218 + "systemMessageDataUnlockConvo": { 219 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was unlocked.", 220 + "type": "object", 221 + "required": ["unlockedBy"], 222 + "properties": { 223 + "unlockedBy": { 224 + "description": "Current view of the member who unlocked the group.", 225 + "type": "ref", 226 + "ref": "chat.bsky.actor.defs#profileViewBasic" 227 + } 228 + } 229 + }, 230 + "systemMessageDataLockConvoPermanently": { 231 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked permanently.", 232 + "type": "object", 233 + "required": ["lockedBy"], 234 + "properties": { 235 + "lockedBy": { 236 + "description": "Current view of the member who locked the group.", 237 + "type": "ref", 238 + "ref": "chat.bsky.actor.defs#profileViewBasic" 239 + } 240 + } 241 + }, 242 + "systemMessageDataEditGroup": { 243 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group info was edited.", 244 + "type": "object", 245 + "properties": { 246 + "oldName": { 247 + "description": "Group name that was replaced.", 248 + "type": "string" 249 + }, 250 + "newName": { 251 + "description": "Group name that replaced the old.", 252 + "type": "string" 253 + } 254 + } 255 + }, 256 + "systemMessageDataCreateJoinLink": { 257 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was created.", 258 + "type": "object", 259 + "properties": {} 260 + }, 261 + "systemMessageDataEditJoinLink": { 262 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was edited.", 263 + "type": "object", 264 + "properties": {} 265 + }, 266 + "systemMessageDataEnableJoinLink": { 267 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was enabled.", 268 + "type": "object", 269 + "properties": {} 270 + }, 271 + "systemMessageDataDisableJoinLink": { 272 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was disabled.", 273 + "type": "object", 274 + "properties": {} 275 + }, 89 276 "deletedMessageView": { 90 277 "type": "object", 91 278 "required": ["id", "rev", "sender", "sentAt"], ··· 168 355 "type": "string" 169 356 }, 170 357 "members": { 358 + "description": "Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. NOTE: TBD an endpoint to list all members.", 171 359 "type": "array", 172 360 "items": { 173 361 "type": "ref", ··· 176 364 }, 177 365 "lastMessage": { 178 366 "type": "union", 179 - "refs": ["#messageView", "#deletedMessageView"] 367 + "refs": ["#messageView", "#deletedMessageView", "#systemMessageView"] 180 368 }, 181 369 "lastReaction": { 182 370 "type": "union", ··· 186 374 "type": "boolean" 187 375 }, 188 376 "status": { 189 - "type": "string", 190 - "knownValues": ["request", "accepted"] 377 + "description": "Convo status for the viewer member (not the convo itself).", 378 + "type": "ref", 379 + "ref": "#convoStatus" 191 380 }, 192 381 "unreadCount": { 193 382 "type": "integer" 383 + }, 384 + "kind": { 385 + "description": "Union field that has data specific to different kinds of convos.", 386 + "type": "union", 387 + "refs": ["#directConvo", "#groupConvo"] 388 + } 389 + } 390 + }, 391 + "directConvo": { 392 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here].", 393 + "type": "object", 394 + "properties": {} 395 + }, 396 + "groupConvo": { 397 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here].", 398 + "type": "object", 399 + "required": ["name", "lockStatus"], 400 + "properties": { 401 + "name": { 402 + "type": "string", 403 + "description": "The display name of the group conversation.", 404 + "maxGraphemes": 128, 405 + "maxLength": 1280 406 + }, 407 + "joinLink": { 408 + "type": "ref", 409 + "ref": "chat.bsky.group.defs#joinLinkView" 410 + }, 411 + "lockStatus": { 412 + "description": "The lock status of the conversation.", 413 + "type": "ref", 414 + "ref": "#convoLockStatus" 194 415 } 195 416 } 196 417 }, 197 418 "logBeginConvo": { 419 + "description": "Event indicating a convo containing the viewer was started. Can be direct or group. When a member is added to a group convo, they also get this event.", 198 420 "type": "object", 199 421 "required": ["rev", "convoId"], 200 422 "properties": { ··· 207 429 } 208 430 }, 209 431 "logAcceptConvo": { 432 + "description": "Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group.", 210 433 "type": "object", 211 434 "required": ["rev", "convoId"], 212 435 "properties": { ··· 219 442 } 220 443 }, 221 444 "logLeaveConvo": { 445 + "description": "Event indicating the viewer left a convo. Can be direct or group.", 222 446 "type": "object", 223 447 "required": ["rev", "convoId"], 224 448 "properties": { ··· 231 455 } 232 456 }, 233 457 "logMuteConvo": { 458 + "description": "Event indicating the viewer muted a convo. Can be direct or group.", 234 459 "type": "object", 235 460 "required": ["rev", "convoId"], 236 461 "properties": { ··· 243 468 } 244 469 }, 245 470 "logUnmuteConvo": { 471 + "description": "Event indicating the viewer unmuted a convo. Can be direct or group.", 246 472 "type": "object", 247 473 "required": ["rev", "convoId"], 248 474 "properties": { ··· 255 481 } 256 482 }, 257 483 "logCreateMessage": { 484 + "description": "Event indicating a user-originated message was created. Is not emitted for system messages.", 258 485 "type": "object", 259 486 "required": ["rev", "convoId", "message"], 260 487 "properties": { ··· 271 498 } 272 499 }, 273 500 "logDeleteMessage": { 501 + "description": "Event indicating a user-originated message was deleted. Is not emitted for system messages.", 274 502 "type": "object", 275 503 "required": ["rev", "convoId", "message"], 276 504 "properties": { ··· 287 515 } 288 516 }, 289 517 "logReadMessage": { 518 + "description": "DEPRECATED: use logReadConvo instead. Event indicating a convo was read up to a certain message.", 290 519 "type": "object", 291 520 "required": ["rev", "convoId", "message"], 292 521 "properties": { ··· 298 527 }, 299 528 "message": { 300 529 "type": "union", 301 - "refs": ["#messageView", "#deletedMessageView"] 530 + "refs": ["#messageView", "#deletedMessageView", "#systemMessageView"] 302 531 } 303 532 } 304 533 }, 305 534 "logAddReaction": { 535 + "description": "Event indicating a reaction was added to a message.", 306 536 "type": "object", 307 537 "required": ["rev", "convoId", "message", "reaction"], 308 538 "properties": { ··· 323 553 } 324 554 }, 325 555 "logRemoveReaction": { 556 + "description": "Event indicating a reaction was removed from a message.", 326 557 "type": "object", 327 558 "required": ["rev", "convoId", "message", "reaction"], 328 559 "properties": { ··· 339 570 "reaction": { 340 571 "type": "ref", 341 572 "ref": "#reactionView" 573 + } 574 + } 575 + }, 576 + "logReadConvo": { 577 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a convo was read up to a certain message.", 578 + "type": "object", 579 + "required": ["rev", "convoId", "message"], 580 + "properties": { 581 + "rev": { 582 + "type": "string" 583 + }, 584 + "convoId": { 585 + "type": "string" 586 + }, 587 + "message": { 588 + "type": "union", 589 + "refs": ["#messageView", "#deletedMessageView", "#systemMessageView"] 590 + } 591 + } 592 + }, 593 + "logAddMember": { 594 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was added to a group convo. The member who was added gets a logBeginConvo (to create the convo) but also a logAddMember (to show the system message as the first message the user sees).", 595 + "type": "object", 596 + "required": ["rev", "convoId", "message"], 597 + "properties": { 598 + "rev": { 599 + "type": "string" 600 + }, 601 + "convoId": { 602 + "type": "string" 603 + }, 604 + "message": { 605 + "type": "ref", 606 + "ref": "#systemMessageDataAddMember" 607 + } 608 + } 609 + }, 610 + "logRemoveMember": { 611 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was removed from a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logRemoveMember (because they already left, so can't see the system message).", 612 + "type": "object", 613 + "required": ["rev", "convoId", "message"], 614 + "properties": { 615 + "rev": { 616 + "type": "string" 617 + }, 618 + "convoId": { 619 + "type": "string" 620 + }, 621 + "message": { 622 + "type": "ref", 623 + "ref": "#systemMessageDataRemoveMember" 624 + } 625 + } 626 + }, 627 + "logMemberJoin": { 628 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member joined a group convo via join link. The member who was added gets a logBeginConvo (to create the convo) but also a logMemberJoin (to show the system message as the first message the user sees).", 629 + "type": "object", 630 + "required": ["rev", "convoId", "message"], 631 + "properties": { 632 + "rev": { 633 + "type": "string" 634 + }, 635 + "convoId": { 636 + "type": "string" 637 + }, 638 + "message": { 639 + "type": "ref", 640 + "ref": "#systemMessageDataMemberJoin" 641 + } 642 + } 643 + }, 644 + "logMemberLeave": { 645 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member voluntarily left a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logMemberLeave (because they already left, so can't see the system message).", 646 + "type": "object", 647 + "required": ["rev", "convoId", "message"], 648 + "properties": { 649 + "rev": { 650 + "type": "string" 651 + }, 652 + "convoId": { 653 + "type": "string" 654 + }, 655 + "message": { 656 + "type": "ref", 657 + "ref": "#systemMessageDataMemberLeave" 658 + } 659 + } 660 + }, 661 + "logLockConvo": { 662 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked.", 663 + "type": "object", 664 + "required": ["rev", "convoId", "message"], 665 + "properties": { 666 + "rev": { 667 + "type": "string" 668 + }, 669 + "convoId": { 670 + "type": "string" 671 + }, 672 + "message": { 673 + "type": "ref", 674 + "ref": "#systemMessageDataLockConvo" 675 + } 676 + } 677 + }, 678 + "logUnlockConvo": { 679 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked.", 680 + "type": "object", 681 + "required": ["rev", "convoId", "message"], 682 + "properties": { 683 + "rev": { 684 + "type": "string" 685 + }, 686 + "convoId": { 687 + "type": "string" 688 + }, 689 + "message": { 690 + "type": "ref", 691 + "ref": "#systemMessageDataUnlockConvo" 692 + } 693 + } 694 + }, 695 + "logLockConvoPermanently": { 696 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently.", 697 + "type": "object", 698 + "required": ["rev", "convoId", "message"], 699 + "properties": { 700 + "rev": { 701 + "type": "string" 702 + }, 703 + "convoId": { 704 + "type": "string" 705 + }, 706 + "message": { 707 + "type": "ref", 708 + "ref": "#systemMessageDataLockConvoPermanently" 709 + } 710 + } 711 + }, 712 + "logEditGroup": { 713 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating info about group convo was edited.", 714 + "type": "object", 715 + "required": ["rev", "convoId", "message"], 716 + "properties": { 717 + "rev": { 718 + "type": "string" 719 + }, 720 + "convoId": { 721 + "type": "string" 722 + }, 723 + "message": { 724 + "type": "ref", 725 + "ref": "#systemMessageDataEditGroup" 726 + } 727 + } 728 + }, 729 + "logCreateJoinLink": { 730 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was created for a group convo.", 731 + "type": "object", 732 + "required": ["rev", "convoId", "message"], 733 + "properties": { 734 + "rev": { 735 + "type": "string" 736 + }, 737 + "convoId": { 738 + "type": "string" 739 + }, 740 + "message": { 741 + "type": "ref", 742 + "ref": "#systemMessageDataCreateJoinLink" 743 + } 744 + } 745 + }, 746 + "logEditJoinLink": { 747 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a settings about a join link for a group convo were edited.", 748 + "type": "object", 749 + "required": ["rev", "convoId", "message"], 750 + "properties": { 751 + "rev": { 752 + "type": "string" 753 + }, 754 + "convoId": { 755 + "type": "string" 756 + }, 757 + "message": { 758 + "type": "ref", 759 + "ref": "#systemMessageDataEditJoinLink" 760 + } 761 + } 762 + }, 763 + "logEnableJoinLink": { 764 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was enabled for a group convo.", 765 + "type": "object", 766 + "required": ["rev", "convoId", "message"], 767 + "properties": { 768 + "rev": { 769 + "type": "string" 770 + }, 771 + "convoId": { 772 + "type": "string" 773 + }, 774 + "message": { 775 + "type": "ref", 776 + "ref": "#systemMessageDataEnableJoinLink" 777 + } 778 + } 779 + }, 780 + "logDisableJoinLink": { 781 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was disabled for a group convo.", 782 + "type": "object", 783 + "required": ["rev", "convoId", "message"], 784 + "properties": { 785 + "rev": { 786 + "type": "string" 787 + }, 788 + "convoId": { 789 + "type": "string" 790 + }, 791 + "message": { 792 + "type": "ref", 793 + "ref": "#systemMessageDataDisableJoinLink" 794 + } 795 + } 796 + }, 797 + "logIncomingJoinRequest": { 798 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made to a group the viewer owns. Only the owner gets this.", 799 + "type": "object", 800 + "required": ["rev", "convoId", "member"], 801 + "properties": { 802 + "rev": { 803 + "type": "string" 804 + }, 805 + "convoId": { 806 + "type": "string" 807 + }, 808 + "member": { 809 + "description": "Prospective member who requested to join.", 810 + "type": "ref", 811 + "ref": "chat.bsky.actor.defs#profileViewBasic" 812 + } 813 + } 814 + }, 815 + "logApproveJoinRequest": { 816 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was approved by the viewer. Only the owner gets this. The approved member gets a logBeginConvo.", 817 + "type": "object", 818 + "required": ["rev", "convoId", "member"], 819 + "properties": { 820 + "rev": { 821 + "type": "string" 822 + }, 823 + "convoId": { 824 + "type": "string" 825 + }, 826 + "member": { 827 + "description": "Prospective member who requested to join.", 828 + "type": "ref", 829 + "ref": "chat.bsky.actor.defs#profileViewBasic" 830 + } 831 + } 832 + }, 833 + "logRejectJoinRequest": { 834 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was rejected by the viewer. Only the owner gets this.", 835 + "type": "object", 836 + "required": ["rev", "convoId", "member"], 837 + "properties": { 838 + "rev": { 839 + "type": "string" 840 + }, 841 + "convoId": { 842 + "type": "string" 843 + }, 844 + "member": { 845 + "description": "Prospective member who requested to join.", 846 + "type": "ref", 847 + "ref": "chat.bsky.actor.defs#profileViewBasic" 848 + } 849 + } 850 + }, 851 + "logOutgoingJoinRequest": { 852 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made by the viewer.", 853 + "type": "object", 854 + "required": ["rev", "convoId"], 855 + "properties": { 856 + "rev": { 857 + "type": "string" 858 + }, 859 + "convoId": { 860 + "type": "string" 342 861 } 343 862 } 344 863 }
+10
packages/definitions/bluesky/lexicons/chat/bsky/convo/deleteMessageForSelf.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Marks a message as deleted for the viewer, so they won't see that message in future enumerations.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "MessageDeleteNotAllowed", 14 + "description": "Indicates that this message cannot be deleted, e.g. because it is a system message." 15 + } 16 + ], 7 17 "input": { 8 18 "encoding": "application/json", 9 19 "schema": {
+6
packages/definitions/bluesky/lexicons/chat/bsky/convo/getConvo.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "query", 7 + "description": "Gets an existing conversation by its ID.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + } 12 + ], 7 13 "parameters": { 8 14 "type": "params", 9 15 "required": ["convoId"],
+1 -1
packages/definitions/bluesky/lexicons/chat/bsky/convo/getConvoAvailability.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "query", 7 - "description": "Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned.", 7 + "description": "Check whether the requester and the other members can start a 1-1 chat. Only applicable to direct (non-group) conversations. If an existing convo is found for these members, it is returned. Does not create a new convo if it doesn't exist.", 8 8 "parameters": { 9 9 "type": "params", 10 10 "required": ["members"],
+18
packages/definitions/bluesky/lexicons/chat/bsky/convo/getConvoForMembers.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "query", 7 + "description": "Get or create a 1-1 conversation for the given members. Always returns the same direct (non-group) conversation. To create a group conversation, use createGroup.", 8 + "errors": [ 9 + { 10 + "name": "AccountSuspended" 11 + }, 12 + { 13 + "name": "BlockedActor" 14 + }, 15 + { 16 + "name": "MessagesDisabled" 17 + }, 18 + { 19 + "name": "NotFollowedBySender" 20 + }, 21 + { 22 + "name": "RecipientNotFound" 23 + } 24 + ], 7 25 "parameters": { 8 26 "type": "params", 9 27 "required": ["members"],
+18 -1
packages/definitions/bluesky/lexicons/chat/bsky/convo/getLog.json
··· 36 36 "chat.bsky.convo.defs#logDeleteMessage", 37 37 "chat.bsky.convo.defs#logReadMessage", 38 38 "chat.bsky.convo.defs#logAddReaction", 39 - "chat.bsky.convo.defs#logRemoveReaction" 39 + "chat.bsky.convo.defs#logRemoveReaction", 40 + "chat.bsky.convo.defs#logReadConvo", 41 + "chat.bsky.convo.defs#logAddMember", 42 + "chat.bsky.convo.defs#logRemoveMember", 43 + "chat.bsky.convo.defs#logMemberJoin", 44 + "chat.bsky.convo.defs#logMemberLeave", 45 + "chat.bsky.convo.defs#logLockConvo", 46 + "chat.bsky.convo.defs#logUnlockConvo", 47 + "chat.bsky.convo.defs#logLockConvoPermanently", 48 + "chat.bsky.convo.defs#logEditGroup", 49 + "chat.bsky.convo.defs#logCreateJoinLink", 50 + "chat.bsky.convo.defs#logEditJoinLink", 51 + "chat.bsky.convo.defs#logEnableJoinLink", 52 + "chat.bsky.convo.defs#logDisableJoinLink", 53 + "chat.bsky.convo.defs#logIncomingJoinRequest", 54 + "chat.bsky.convo.defs#logApproveJoinRequest", 55 + "chat.bsky.convo.defs#logRejectJoinRequest", 56 + "chat.bsky.convo.defs#logOutgoingJoinRequest" 40 57 ] 41 58 } 42 59 }
+11 -1
packages/definitions/bluesky/lexicons/chat/bsky/convo/getMessages.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "query", 7 + "description": "Returns a page of messages from a conversation.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + } 12 + ], 7 13 "parameters": { 8 14 "type": "params", 9 15 "required": ["convoId"], ··· 35 41 "type": "array", 36 42 "items": { 37 43 "type": "union", 38 - "refs": ["chat.bsky.convo.defs#messageView", "chat.bsky.convo.defs#deletedMessageView"] 44 + "refs": [ 45 + "chat.bsky.convo.defs#messageView", 46 + "chat.bsky.convo.defs#deletedMessageView", 47 + "chat.bsky.convo.defs#systemMessageView" 48 + ] 39 49 } 40 50 } 41 51 }
+10
packages/definitions/bluesky/lexicons/chat/bsky/convo/leaveConvo.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Leaves a conversation (direct or group). For group, this effectively removes membership. For direct, membership is never removed, only changed to remove from enumerations by the user who left.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "OwnerCannotLeave", 14 + "description": "The owner of a group conversation cannot leave before locking the group." 15 + } 16 + ], 7 17 "input": { 8 18 "encoding": "application/json", 9 19 "schema": {
+43
packages/definitions/bluesky/lexicons/chat/bsky/convo/listConvoRequests.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.convo.listConvoRequests", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Returns a page of incoming conversation requests for the user. Direct convo requests are returned as convoView; group join requests are returned as joinRequestView.", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "limit": { 12 + "type": "integer", 13 + "minimum": 1, 14 + "maximum": 100, 15 + "default": 50 16 + }, 17 + "cursor": { 18 + "type": "string" 19 + } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "required": ["requests"], 27 + "properties": { 28 + "cursor": { 29 + "type": "string" 30 + }, 31 + "requests": { 32 + "type": "array", 33 + "items": { 34 + "type": "union", 35 + "refs": ["chat.bsky.convo.defs#convoView", "chat.bsky.group.defs#joinRequestView"] 36 + } 37 + } 38 + } 39 + } 40 + } 41 + } 42 + } 43 + }
+7
packages/definitions/bluesky/lexicons/chat/bsky/convo/listConvos.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "query", 7 + "description": "Returns a page of conversations (direct or group) for the user.", 7 8 "parameters": { 8 9 "type": "params", 9 10 "properties": { ··· 21 22 "knownValues": ["unread"] 22 23 }, 23 24 "status": { 25 + "description": "Filter convos by their status. It is discouraged to call with \"request\" and preferred to call chat.bsky.convo.listConvoRequests, which also includes group join requests made by the user.", 24 26 "type": "string", 25 27 "knownValues": ["request", "accepted"] 28 + }, 29 + "kind": { 30 + "type": "string", 31 + "description": "Filter by conversation kind.", 32 + "knownValues": ["direct", "group"] 26 33 } 27 34 } 28 35 },
+46
packages/definitions/bluesky/lexicons/chat/bsky/convo/lockConvo.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.convo.lockConvo", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Locks a group convo so no more content (messages, reactions) can be added to it.", 8 + "errors": [ 9 + { 10 + "name": "ConvoLocked" 11 + }, 12 + { 13 + "name": "InvalidConvo" 14 + }, 15 + { 16 + "name": "InsufficientRole" 17 + } 18 + ], 19 + "input": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["convoId"], 24 + "properties": { 25 + "convoId": { 26 + "type": "string" 27 + } 28 + } 29 + } 30 + }, 31 + "output": { 32 + "encoding": "application/json", 33 + "schema": { 34 + "type": "object", 35 + "required": ["convo"], 36 + "properties": { 37 + "convo": { 38 + "type": "ref", 39 + "ref": "chat.bsky.convo.defs#convoView" 40 + } 41 + } 42 + } 43 + } 44 + } 45 + } 46 + }
+6
packages/definitions/bluesky/lexicons/chat/bsky/convo/muteConvo.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Mutes a conversation, preventing notifications related to it.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + } 12 + ], 7 13 "input": { 8 14 "encoding": "application/json", 9 15 "schema": {
+7
packages/definitions/bluesky/lexicons/chat/bsky/convo/removeReaction.json
··· 42 42 }, 43 43 "errors": [ 44 44 { 45 + "name": "InvalidConvo" 46 + }, 47 + { 48 + "name": "ReactionNotAllowed", 49 + "description": "Indicates that reactions are not allowed on this message, e.g. because it is a system message." 50 + }, 51 + { 45 52 "name": "ReactionMessageDeleted", 46 53 "description": "Indicates that the message has been deleted and reactions can no longer be added/removed." 47 54 },
+9
packages/definitions/bluesky/lexicons/chat/bsky/convo/sendMessage.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Sends a message to a conversation.", 8 + "errors": [ 9 + { 10 + "name": "ConvoLocked" 11 + }, 12 + { 13 + "name": "InvalidConvo" 14 + } 15 + ], 7 16 "input": { 8 17 "encoding": "application/json", 9 18 "schema": {
+9
packages/definitions/bluesky/lexicons/chat/bsky/convo/sendMessageBatch.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Sends a batch of messages to a conversation.", 8 + "errors": [ 9 + { 10 + "name": "ConvoLocked" 11 + }, 12 + { 13 + "name": "InvalidConvo" 14 + } 15 + ], 7 16 "input": { 8 17 "encoding": "application/json", 9 18 "schema": {
+43
packages/definitions/bluesky/lexicons/chat/bsky/convo/unlockConvo.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.convo.unlockConvo", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Unlocks a group convo so it is able to receive new content.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "InsufficientRole" 14 + } 15 + ], 16 + "input": { 17 + "encoding": "application/json", 18 + "schema": { 19 + "type": "object", 20 + "required": ["convoId"], 21 + "properties": { 22 + "convoId": { 23 + "type": "string" 24 + } 25 + } 26 + } 27 + }, 28 + "output": { 29 + "encoding": "application/json", 30 + "schema": { 31 + "type": "object", 32 + "required": ["convo"], 33 + "properties": { 34 + "convo": { 35 + "type": "ref", 36 + "ref": "chat.bsky.convo.defs#convoView" 37 + } 38 + } 39 + } 40 + } 41 + } 42 + } 43 + }
+6
packages/definitions/bluesky/lexicons/chat/bsky/convo/unmuteConvo.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Unmutes a conversation, allowing notifications related to it.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + } 12 + ], 7 13 "input": { 8 14 "encoding": "application/json", 9 15 "schema": {
+1
packages/definitions/bluesky/lexicons/chat/bsky/convo/updateAllRead.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Sets conversations from a user as read to the latest message, with filters.", 7 8 "input": { 8 9 "encoding": "application/json", 9 10 "schema": {
+6
packages/definitions/bluesky/lexicons/chat/bsky/convo/updateRead.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 + "description": "Updates the read state of a conversation from, optionally specifying the last read message.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + } 12 + ], 7 13 "input": { 8 14 "encoding": "application/json", 9 15 "schema": {
+72
packages/definitions/bluesky/lexicons/chat/bsky/group/addMembers.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.addMembers", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Adds members to a group. The members are added in 'request' status, so they have to accept it. This creates convo memberships.", 8 + "errors": [ 9 + { 10 + "name": "AccountSuspended" 11 + }, 12 + { 13 + "name": "BlockedActor" 14 + }, 15 + { 16 + "name": "GroupInvitesDisabled" 17 + }, 18 + { 19 + "name": "ConvoLocked" 20 + }, 21 + { 22 + "name": "InsufficientRole" 23 + }, 24 + { 25 + "name": "InvalidConvo" 26 + }, 27 + { 28 + "name": "MemberLimitReached" 29 + }, 30 + { 31 + "name": "NotFollowedBySender" 32 + }, 33 + { 34 + "name": "RecipientNotFound" 35 + } 36 + ], 37 + "input": { 38 + "encoding": "application/json", 39 + "schema": { 40 + "type": "object", 41 + "required": ["convoId", "members"], 42 + "properties": { 43 + "convoId": { 44 + "type": "string" 45 + }, 46 + "members": { 47 + "type": "array", 48 + "items": { 49 + "type": "string", 50 + "format": "did" 51 + }, 52 + "minLength": 1 53 + } 54 + } 55 + } 56 + }, 57 + "output": { 58 + "encoding": "application/json", 59 + "schema": { 60 + "type": "object", 61 + "required": ["convo"], 62 + "properties": { 63 + "convo": { 64 + "type": "ref", 65 + "ref": "chat.bsky.convo.defs#convoView" 66 + } 67 + } 68 + } 69 + } 70 + } 71 + } 72 + }
+50
packages/definitions/bluesky/lexicons/chat/bsky/group/approveJoinRequest.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.approveJoinRequest", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Approves a request to join a group (via join link) the user owns. Action taken by the group owner.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "InsufficientRole" 14 + }, 15 + { 16 + "name": "MemberLimitReached" 17 + } 18 + ], 19 + "input": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["convoId", "member"], 24 + "properties": { 25 + "convoId": { 26 + "type": "string" 27 + }, 28 + "member": { 29 + "type": "string", 30 + "format": "did" 31 + } 32 + } 33 + } 34 + }, 35 + "output": { 36 + "encoding": "application/json", 37 + "schema": { 38 + "type": "object", 39 + "required": ["convo"], 40 + "properties": { 41 + "convo": { 42 + "type": "ref", 43 + "ref": "chat.bsky.convo.defs#convoView" 44 + } 45 + } 46 + } 47 + } 48 + } 49 + } 50 + }
+63
packages/definitions/bluesky/lexicons/chat/bsky/group/createGroup.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.createGroup", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Creates a group convo, specifying the members to be added to it. Unlike getConvoForMembers, this isn't idempotent. It will create new groups even if the membership is identical to pre-existing groups. Will create 'pending' membership for all members, except the owner who is 'accepted'.", 8 + "errors": [ 9 + { 10 + "name": "AccountSuspended" 11 + }, 12 + { 13 + "name": "BlockedActor" 14 + }, 15 + { 16 + "name": "GroupInvitesDisabled" 17 + }, 18 + { 19 + "name": "NotFollowedBySender" 20 + }, 21 + { 22 + "name": "RecipientNotFound" 23 + } 24 + ], 25 + "input": { 26 + "encoding": "application/json", 27 + "schema": { 28 + "type": "object", 29 + "required": ["members", "name"], 30 + "properties": { 31 + "members": { 32 + "type": "array", 33 + "maxLength": 49, 34 + "items": { 35 + "type": "string", 36 + "format": "did" 37 + } 38 + }, 39 + "name": { 40 + "type": "string", 41 + "minLength": 1, 42 + "maxGraphemes": 128, 43 + "maxLength": 1280 44 + } 45 + } 46 + } 47 + }, 48 + "output": { 49 + "encoding": "application/json", 50 + "schema": { 51 + "type": "object", 52 + "required": ["convo"], 53 + "properties": { 54 + "convo": { 55 + "type": "ref", 56 + "ref": "chat.bsky.convo.defs#convoView" 57 + } 58 + } 59 + } 60 + } 61 + } 62 + } 63 + }
+54
packages/definitions/bluesky/lexicons/chat/bsky/group/createJoinLink.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.createJoinLink", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Creates a join link for the group convo.", 8 + "errors": [ 9 + { 10 + "name": "EnabledJoinLinkAlreadyExists" 11 + }, 12 + { 13 + "name": "InvalidConvo" 14 + }, 15 + { 16 + "name": "InsufficientRole" 17 + } 18 + ], 19 + "input": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["convoId", "joinRule"], 24 + "properties": { 25 + "convoId": { 26 + "type": "string" 27 + }, 28 + "requireApproval": { 29 + "type": "boolean", 30 + "default": false 31 + }, 32 + "joinRule": { 33 + "type": "ref", 34 + "ref": "chat.bsky.group.defs#joinRule" 35 + } 36 + } 37 + } 38 + }, 39 + "output": { 40 + "encoding": "application/json", 41 + "schema": { 42 + "type": "object", 43 + "required": ["joinLink"], 44 + "properties": { 45 + "joinLink": { 46 + "type": "ref", 47 + "ref": "chat.bsky.group.defs#joinLinkView" 48 + } 49 + } 50 + } 51 + } 52 + } 53 + } 54 + }
+75
packages/definitions/bluesky/lexicons/chat/bsky/group/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.defs", 4 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here].", 5 + "defs": { 6 + "linkEnabledStatus": { 7 + "type": "string", 8 + "knownValues": ["enabled", "disabled"] 9 + }, 10 + "joinRule": { 11 + "type": "string", 12 + "knownValues": ["anyone", "followedByOwner"] 13 + }, 14 + "joinLinkView": { 15 + "type": "object", 16 + "required": ["code", "enabledStatus", "requireApproval", "joinRule", "createdAt"], 17 + "properties": { 18 + "code": { 19 + "type": "string" 20 + }, 21 + "enabledStatus": { 22 + "type": "ref", 23 + "ref": "#linkEnabledStatus" 24 + }, 25 + "requireApproval": { 26 + "type": "boolean" 27 + }, 28 + "joinRule": { 29 + "type": "ref", 30 + "ref": "#joinRule" 31 + }, 32 + "createdAt": { 33 + "type": "string", 34 + "format": "datetime" 35 + } 36 + } 37 + }, 38 + "groupPublicView": { 39 + "type": "object", 40 + "required": ["name", "owner", "memberCount", "requireApproval"], 41 + "properties": { 42 + "name": { 43 + "type": "string" 44 + }, 45 + "owner": { 46 + "type": "ref", 47 + "ref": "chat.bsky.actor.defs#profileViewBasic" 48 + }, 49 + "memberCount": { 50 + "type": "integer" 51 + }, 52 + "requireApproval": { 53 + "type": "boolean" 54 + } 55 + } 56 + }, 57 + "joinRequestView": { 58 + "type": "object", 59 + "required": ["convoId", "requestedBy", "requestedAt"], 60 + "properties": { 61 + "convoId": { 62 + "type": "string" 63 + }, 64 + "requestedBy": { 65 + "type": "ref", 66 + "ref": "chat.bsky.actor.defs#profileViewBasic" 67 + }, 68 + "requestedAt": { 69 + "type": "string", 70 + "format": "datetime" 71 + } 72 + } 73 + } 74 + } 75 + }
+46
packages/definitions/bluesky/lexicons/chat/bsky/group/disableJoinLink.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.disableJoinLink", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Disables the active join link for the group convo.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "InsufficientRole" 14 + }, 15 + { 16 + "name": "NoJoinLink" 17 + } 18 + ], 19 + "input": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["convoId"], 24 + "properties": { 25 + "convoId": { 26 + "type": "string" 27 + } 28 + } 29 + } 30 + }, 31 + "output": { 32 + "encoding": "application/json", 33 + "schema": { 34 + "type": "object", 35 + "required": ["joinLink"], 36 + "properties": { 37 + "joinLink": { 38 + "type": "ref", 39 + "ref": "chat.bsky.group.defs#joinLinkView" 40 + } 41 + } 42 + } 43 + } 44 + } 45 + } 46 + }
+52
packages/definitions/bluesky/lexicons/chat/bsky/group/editGroup.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.editGroup", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Edits group settings.", 8 + "errors": [ 9 + { 10 + "name": "ConvoLocked" 11 + }, 12 + { 13 + "name": "InvalidConvo" 14 + }, 15 + { 16 + "name": "InsufficientRole" 17 + } 18 + ], 19 + "input": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["convoId", "name"], 24 + "properties": { 25 + "convoId": { 26 + "type": "string" 27 + }, 28 + "name": { 29 + "type": "string", 30 + "minLength": 1, 31 + "maxGraphemes": 128, 32 + "maxLength": 1280 33 + } 34 + } 35 + } 36 + }, 37 + "output": { 38 + "encoding": "application/json", 39 + "schema": { 40 + "type": "object", 41 + "required": ["convo"], 42 + "properties": { 43 + "convo": { 44 + "type": "ref", 45 + "ref": "chat.bsky.convo.defs#convoView" 46 + } 47 + } 48 + } 49 + } 50 + } 51 + } 52 + }
+53
packages/definitions/bluesky/lexicons/chat/bsky/group/editJoinLink.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.editJoinLink", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Edits the existing join link settings for the group convo.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "InsufficientRole" 14 + }, 15 + { 16 + "name": "NoJoinLink" 17 + } 18 + ], 19 + "input": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["convoId"], 24 + "properties": { 25 + "convoId": { 26 + "type": "string" 27 + }, 28 + "requireApproval": { 29 + "type": "boolean" 30 + }, 31 + "joinRule": { 32 + "type": "ref", 33 + "ref": "chat.bsky.group.defs#joinRule" 34 + } 35 + } 36 + } 37 + }, 38 + "output": { 39 + "encoding": "application/json", 40 + "schema": { 41 + "type": "object", 42 + "required": ["joinLink"], 43 + "properties": { 44 + "joinLink": { 45 + "type": "ref", 46 + "ref": "chat.bsky.group.defs#joinLinkView" 47 + } 48 + } 49 + } 50 + } 51 + } 52 + } 53 + }
+49
packages/definitions/bluesky/lexicons/chat/bsky/group/enableJoinLink.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.enableJoinLink", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Re-enables a previously disabled join link for the group convo.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "InsufficientRole" 14 + }, 15 + { 16 + "name": "NoJoinLink" 17 + }, 18 + { 19 + "name": "LinkAlreadyEnabled" 20 + } 21 + ], 22 + "input": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "required": ["convoId"], 27 + "properties": { 28 + "convoId": { 29 + "type": "string" 30 + } 31 + } 32 + } 33 + }, 34 + "output": { 35 + "encoding": "application/json", 36 + "schema": { 37 + "type": "object", 38 + "required": ["joinLink"], 39 + "properties": { 40 + "joinLink": { 41 + "type": "ref", 42 + "ref": "chat.bsky.group.defs#joinLinkView" 43 + } 44 + } 45 + } 46 + } 47 + } 48 + } 49 + }
+37
packages/definitions/bluesky/lexicons/chat/bsky/group/getGroupPublicInfo.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.getGroupPublicInfo", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Get public information about a group from an join link.", 8 + "errors": [ 9 + { 10 + "name": "InvalidCode" 11 + } 12 + ], 13 + "parameters": { 14 + "type": "params", 15 + "required": ["code"], 16 + "properties": { 17 + "code": { 18 + "type": "string" 19 + } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "required": ["group"], 27 + "properties": { 28 + "group": { 29 + "type": "ref", 30 + "ref": "chat.bsky.group.defs#groupPublicView" 31 + } 32 + } 33 + } 34 + } 35 + } 36 + } 37 + }
+55
packages/definitions/bluesky/lexicons/chat/bsky/group/listJoinRequests.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.listJoinRequests", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Lists a page of request to join a group (via join link) the user owns. Shows the data from the owner's point of view.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "InsufficientRole" 14 + } 15 + ], 16 + "parameters": { 17 + "type": "params", 18 + "required": ["convoId"], 19 + "properties": { 20 + "convoId": { 21 + "type": "string" 22 + }, 23 + "limit": { 24 + "type": "integer", 25 + "minimum": 1, 26 + "maximum": 100, 27 + "default": 50 28 + }, 29 + "cursor": { 30 + "type": "string" 31 + } 32 + } 33 + }, 34 + "output": { 35 + "encoding": "application/json", 36 + "schema": { 37 + "type": "object", 38 + "required": ["requests"], 39 + "properties": { 40 + "cursor": { 41 + "type": "string" 42 + }, 43 + "requests": { 44 + "type": "array", 45 + "items": { 46 + "type": "ref", 47 + "ref": "chat.bsky.group.defs#joinRequestView" 48 + } 49 + } 50 + } 51 + } 52 + } 53 + } 54 + } 55 + }
+42
packages/definitions/bluesky/lexicons/chat/bsky/group/rejectJoinRequest.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.rejectJoinRequest", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Rejects a request to join a group (via join link) the user owns. Action taken by the group owner.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "InsufficientRole" 14 + } 15 + ], 16 + "input": { 17 + "encoding": "application/json", 18 + "schema": { 19 + "type": "object", 20 + "required": ["convoId", "member"], 21 + "properties": { 22 + "convoId": { 23 + "type": "string" 24 + }, 25 + "member": { 26 + "type": "string", 27 + "format": "did" 28 + } 29 + } 30 + } 31 + }, 32 + "output": { 33 + "encoding": "application/json", 34 + "schema": { 35 + "type": "object", 36 + "required": [], 37 + "properties": {} 38 + } 39 + } 40 + } 41 + } 42 + }
+51
packages/definitions/bluesky/lexicons/chat/bsky/group/removeMembers.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.removeMembers", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Removes members from a group. This deletes convo memberships, doesn't just set a status.", 8 + "errors": [ 9 + { 10 + "name": "InvalidConvo" 11 + }, 12 + { 13 + "name": "InsufficientRole" 14 + } 15 + ], 16 + "input": { 17 + "encoding": "application/json", 18 + "schema": { 19 + "type": "object", 20 + "required": ["convoId", "members"], 21 + "properties": { 22 + "convoId": { 23 + "type": "string" 24 + }, 25 + "members": { 26 + "type": "array", 27 + "items": { 28 + "type": "string", 29 + "format": "did" 30 + }, 31 + "minLength": 1 32 + } 33 + } 34 + } 35 + }, 36 + "output": { 37 + "encoding": "application/json", 38 + "schema": { 39 + "type": "object", 40 + "required": ["convo"], 41 + "properties": { 42 + "convo": { 43 + "type": "ref", 44 + "ref": "chat.bsky.convo.defs#convoView" 45 + } 46 + } 47 + } 48 + } 49 + } 50 + } 51 + }
+60
packages/definitions/bluesky/lexicons/chat/bsky/group/requestJoin.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.group.requestJoin", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Sends a request to join a group (via join link) to the group owner. Action taken by the prospective group member.", 8 + "errors": [ 9 + { 10 + "name": "ConvoLocked" 11 + }, 12 + { 13 + "name": "FollowRequired" 14 + }, 15 + { 16 + "name": "InvalidCode" 17 + }, 18 + { 19 + "name": "LinkDisabled" 20 + }, 21 + { 22 + "name": "MemberLimitReached" 23 + }, 24 + { 25 + "name": "UserKicked" 26 + } 27 + ], 28 + "input": { 29 + "encoding": "application/json", 30 + "schema": { 31 + "type": "object", 32 + "required": ["code"], 33 + "properties": { 34 + "code": { 35 + "type": "string" 36 + } 37 + } 38 + } 39 + }, 40 + "output": { 41 + "encoding": "application/json", 42 + "schema": { 43 + "type": "object", 44 + "required": ["status"], 45 + "properties": { 46 + "status": { 47 + "type": "string", 48 + "knownValues": ["joined", "pending"] 49 + }, 50 + "convo": { 51 + "description": "The group convo joined. This is only present in the case of status=joined", 52 + "type": "ref", 53 + "ref": "chat.bsky.convo.defs#convoView" 54 + } 55 + } 56 + } 57 + } 58 + } 59 + } 60 + }
+5 -1
packages/definitions/bluesky/lexicons/chat/bsky/moderation/getMessageContext.json
··· 35 35 "type": "array", 36 36 "items": { 37 37 "type": "union", 38 - "refs": ["chat.bsky.convo.defs#messageView", "chat.bsky.convo.defs#deletedMessageView"] 38 + "refs": [ 39 + "chat.bsky.convo.defs#messageView", 40 + "chat.bsky.convo.defs#deletedMessageView", 41 + "chat.bsky.convo.defs#systemMessageView" 42 + ] 39 43 } 40 44 } 41 45 }
+66
packages/definitions/bluesky/lexicons/chat/bsky/moderation/subscribeModEvents.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "chat.bsky.moderation.subscribeModEvents", 4 + "defs": { 5 + "main": { 6 + "type": "subscription", 7 + "description": "Subscribe to stream of chat events targeted to moderation. Private endpoint.", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "cursor": { 12 + "type": "string", 13 + "description": "The last known event seq number to backfill from. Use '2222222222222' to backfill from the beginning. Don't specify a cursor to listen only for new events." 14 + } 15 + } 16 + }, 17 + "message": { 18 + "schema": { 19 + "type": "union", 20 + "refs": ["#eventConvoFirstMessage"] 21 + } 22 + }, 23 + "errors": [ 24 + { 25 + "name": "FutureCursor" 26 + }, 27 + { 28 + "name": "ConsumerTooSlow", 29 + "description": "If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection." 30 + } 31 + ] 32 + }, 33 + "eventConvoFirstMessage": { 34 + "type": "object", 35 + "required": ["createdAt", "rev", "convoId", "user", "recipients"], 36 + "properties": { 37 + "convoId": { 38 + "type": "string" 39 + }, 40 + "createdAt": { 41 + "type": "string", 42 + "format": "datetime" 43 + }, 44 + "messageId": { 45 + "type": "string" 46 + }, 47 + "recipients": { 48 + "description": "The list of DIDs message recipients. Does not include the sender, which is in the `user` field", 49 + "type": "array", 50 + "items": { 51 + "type": "string", 52 + "format": "did" 53 + } 54 + }, 55 + "rev": { 56 + "type": "string" 57 + }, 58 + "user": { 59 + "description": "The DID of the message author.", 60 + "type": "string", 61 + "format": "did" 62 + } 63 + } 64 + } 65 + } 66 + }
+18
packages/definitions/bluesky/lib/lexicons/index.ts
··· 157 157 export * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog.ts'; 158 158 export * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages.ts'; 159 159 export * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo.ts'; 160 + export * as ChatBskyConvoListConvoRequests from './types/chat/bsky/convo/listConvoRequests.ts'; 160 161 export * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos.ts'; 162 + export * as ChatBskyConvoLockConvo from './types/chat/bsky/convo/lockConvo.ts'; 161 163 export * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo.ts'; 162 164 export * as ChatBskyConvoRemoveReaction from './types/chat/bsky/convo/removeReaction.ts'; 163 165 export * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage.ts'; 164 166 export * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch.ts'; 167 + export * as ChatBskyConvoUnlockConvo from './types/chat/bsky/convo/unlockConvo.ts'; 165 168 export * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo.ts'; 166 169 export * as ChatBskyConvoUpdateAllRead from './types/chat/bsky/convo/updateAllRead.ts'; 167 170 export * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead.ts'; 171 + export * as ChatBskyGroupAddMembers from './types/chat/bsky/group/addMembers.ts'; 172 + export * as ChatBskyGroupApproveJoinRequest from './types/chat/bsky/group/approveJoinRequest.ts'; 173 + export * as ChatBskyGroupCreateGroup from './types/chat/bsky/group/createGroup.ts'; 174 + export * as ChatBskyGroupCreateJoinLink from './types/chat/bsky/group/createJoinLink.ts'; 175 + export * as ChatBskyGroupDefs from './types/chat/bsky/group/defs.ts'; 176 + export * as ChatBskyGroupDisableJoinLink from './types/chat/bsky/group/disableJoinLink.ts'; 177 + export * as ChatBskyGroupEditGroup from './types/chat/bsky/group/editGroup.ts'; 178 + export * as ChatBskyGroupEditJoinLink from './types/chat/bsky/group/editJoinLink.ts'; 179 + export * as ChatBskyGroupEnableJoinLink from './types/chat/bsky/group/enableJoinLink.ts'; 180 + export * as ChatBskyGroupGetGroupPublicInfo from './types/chat/bsky/group/getGroupPublicInfo.ts'; 181 + export * as ChatBskyGroupListJoinRequests from './types/chat/bsky/group/listJoinRequests.ts'; 182 + export * as ChatBskyGroupRejectJoinRequest from './types/chat/bsky/group/rejectJoinRequest.ts'; 183 + export * as ChatBskyGroupRemoveMembers from './types/chat/bsky/group/removeMembers.ts'; 184 + export * as ChatBskyGroupRequestJoin from './types/chat/bsky/group/requestJoin.ts'; 168 185 export * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata.ts'; 169 186 export * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext.ts'; 187 + export * as ChatBskyModerationSubscribeModEvents from './types/chat/bsky/moderation/subscribeModEvents.ts'; 170 188 export * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess.ts';
+6
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/actor/declaration.ts
··· 6 6 /*#__PURE__*/ v.literal('self'), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('chat.bsky.actor.declaration'), 9 + /** 10 + * [NOTE: This is under active development and should be considered unstable while this note is here]. Declaration about group chat invitation preferences for the record owner. 11 + */ 12 + allowGroupInvites: /*#__PURE__*/ v.optional( 13 + /*#__PURE__*/ v.string<'all' | 'following' | 'none' | (string & {})>(), 14 + ), 9 15 allowIncoming: /*#__PURE__*/ v.string<'all' | 'following' | 'none' | (string & {})>(), 10 16 }), 11 17 );
+40
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/actor/defs.ts
··· 4 4 5 5 import * as AppBskyActorDefs from '../../../app/bsky/actor/defs.ts'; 6 6 7 + const _directConvoMemberSchema = /*#__PURE__*/ v.object({ 8 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.actor.defs#directConvoMember')), 9 + }); 10 + const _groupConvoMemberSchema = /*#__PURE__*/ v.object({ 11 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.actor.defs#groupConvoMember')), 12 + /** 13 + * Who added this member. Only present if the member was added (instead of joining via link). 14 + */ 15 + get addedBy() { 16 + return /*#__PURE__*/ v.optional(profileViewBasicSchema); 17 + }, 18 + /** 19 + * The member's role within this conversation. Only present in group conversation member lists. 20 + */ 21 + get role() { 22 + return memberRoleSchema; 23 + }, 24 + }); 25 + const _memberRoleSchema = /*#__PURE__*/ v.string<'owner' | 'standard' | (string & {})>(); 7 26 const _profileViewBasicSchema = /*#__PURE__*/ v.object({ 8 27 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.actor.defs#profileViewBasic')), 9 28 get associated() { ··· 14 33 * Set to true when the actor cannot actively participate in conversations 15 34 */ 16 35 chatDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 36 + createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 17 37 did: /*#__PURE__*/ v.didString(), 18 38 /** 19 39 * @maxLength 640 ··· 26 46 ]), 27 47 ), 28 48 handle: /*#__PURE__*/ v.handleString(), 49 + /** 50 + * Union field that has data specific to different kinds of convos. 51 + */ 52 + get kind() { 53 + return /*#__PURE__*/ v.optional( 54 + /*#__PURE__*/ v.variant([directConvoMemberSchema, groupConvoMemberSchema]), 55 + ); 56 + }, 29 57 get labels() { 30 58 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 31 59 }, ··· 37 65 }, 38 66 }); 39 67 68 + type directConvoMember$schematype = typeof _directConvoMemberSchema; 69 + type groupConvoMember$schematype = typeof _groupConvoMemberSchema; 70 + type memberRole$schematype = typeof _memberRoleSchema; 40 71 type profileViewBasic$schematype = typeof _profileViewBasicSchema; 41 72 73 + export interface directConvoMemberSchema extends directConvoMember$schematype {} 74 + export interface groupConvoMemberSchema extends groupConvoMember$schematype {} 75 + export interface memberRoleSchema extends memberRole$schematype {} 42 76 export interface profileViewBasicSchema extends profileViewBasic$schematype {} 43 77 78 + export const directConvoMemberSchema = _directConvoMemberSchema as directConvoMemberSchema; 79 + export const groupConvoMemberSchema = _groupConvoMemberSchema as groupConvoMemberSchema; 80 + export const memberRoleSchema = _memberRoleSchema as memberRoleSchema; 44 81 export const profileViewBasicSchema = _profileViewBasicSchema as profileViewBasicSchema; 45 82 83 + export interface DirectConvoMember extends v.InferInput<typeof directConvoMemberSchema> {} 84 + export interface GroupConvoMember extends v.InferInput<typeof groupConvoMemberSchema> {} 85 + export type MemberRole = v.InferInput<typeof memberRoleSchema>; 46 86 export interface ProfileViewBasic extends v.InferInput<typeof profileViewBasicSchema> {}
+509 -3
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/defs.ts
··· 4 4 import * as AppBskyEmbedRecord from '../../../app/bsky/embed/record.ts'; 5 5 import * as AppBskyRichtextFacet from '../../../app/bsky/richtext/facet.ts'; 6 6 import * as ChatBskyActorDefs from '../actor/defs.ts'; 7 + import * as ChatBskyGroupDefs from '../group/defs.ts'; 7 8 9 + const _convoKindSchema = /*#__PURE__*/ v.string<'direct' | 'group' | (string & {})>(); 10 + const _convoLockStatusSchema = /*#__PURE__*/ v.string< 11 + 'locked' | 'locked-permanently' | 'unlocked' | (string & {}) 12 + >(); 13 + const _convoStatusSchema = /*#__PURE__*/ v.string<'accepted' | 'request' | (string & {})>(); 8 14 const _convoViewSchema = /*#__PURE__*/ v.object({ 9 15 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#convoView')), 10 16 id: /*#__PURE__*/ v.string(), 17 + /** 18 + * Union field that has data specific to different kinds of convos. 19 + */ 20 + get kind() { 21 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([directConvoSchema, groupConvoSchema])); 22 + }, 11 23 get lastMessage() { 12 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema])); 24 + return /*#__PURE__*/ v.optional( 25 + /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema, systemMessageViewSchema]), 26 + ); 13 27 }, 14 28 get lastReaction() { 15 29 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([messageAndReactionViewSchema])); 16 30 }, 31 + /** 32 + * Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. NOTE: TBD an endpoint to list all members. 33 + */ 17 34 get members() { 18 35 return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema); 19 36 }, 20 37 muted: /*#__PURE__*/ v.boolean(), 21 38 rev: /*#__PURE__*/ v.string(), 22 - status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'accepted' | 'request' | (string & {})>()), 39 + /** 40 + * Convo status for the viewer member (not the convo itself). 41 + */ 42 + get status() { 43 + return /*#__PURE__*/ v.optional(convoStatusSchema); 44 + }, 23 45 unreadCount: /*#__PURE__*/ v.integer(), 24 46 }); 25 47 const _deletedMessageViewSchema = /*#__PURE__*/ v.object({ ··· 31 53 }, 32 54 sentAt: /*#__PURE__*/ v.datetimeString(), 33 55 }); 56 + const _directConvoSchema = /*#__PURE__*/ v.object({ 57 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#directConvo')), 58 + }); 59 + const _groupConvoSchema = /*#__PURE__*/ v.object({ 60 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#groupConvo')), 61 + get joinLink() { 62 + return /*#__PURE__*/ v.optional(ChatBskyGroupDefs.joinLinkViewSchema); 63 + }, 64 + /** 65 + * The lock status of the conversation. 66 + */ 67 + get lockStatus() { 68 + return convoLockStatusSchema; 69 + }, 70 + /** 71 + * The display name of the group conversation. 72 + * @maxLength 1280 73 + * @maxGraphemes 128 74 + */ 75 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 76 + /*#__PURE__*/ v.stringLength(0, 1280), 77 + /*#__PURE__*/ v.stringGraphemes(0, 128), 78 + ]), 79 + }); 34 80 const _logAcceptConvoSchema = /*#__PURE__*/ v.object({ 35 81 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logAcceptConvo')), 36 82 convoId: /*#__PURE__*/ v.string(), 37 83 rev: /*#__PURE__*/ v.string(), 38 84 }); 85 + const _logAddMemberSchema = /*#__PURE__*/ v.object({ 86 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logAddMember')), 87 + convoId: /*#__PURE__*/ v.string(), 88 + get message() { 89 + return systemMessageDataAddMemberSchema; 90 + }, 91 + rev: /*#__PURE__*/ v.string(), 92 + }); 39 93 const _logAddReactionSchema = /*#__PURE__*/ v.object({ 40 94 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logAddReaction')), 41 95 convoId: /*#__PURE__*/ v.string(), ··· 47 101 }, 48 102 rev: /*#__PURE__*/ v.string(), 49 103 }); 104 + const _logApproveJoinRequestSchema = /*#__PURE__*/ v.object({ 105 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logApproveJoinRequest')), 106 + convoId: /*#__PURE__*/ v.string(), 107 + /** 108 + * Prospective member who requested to join. 109 + */ 110 + get member() { 111 + return ChatBskyActorDefs.profileViewBasicSchema; 112 + }, 113 + rev: /*#__PURE__*/ v.string(), 114 + }); 50 115 const _logBeginConvoSchema = /*#__PURE__*/ v.object({ 51 116 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logBeginConvo')), 52 117 convoId: /*#__PURE__*/ v.string(), 53 118 rev: /*#__PURE__*/ v.string(), 54 119 }); 120 + const _logCreateJoinLinkSchema = /*#__PURE__*/ v.object({ 121 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logCreateJoinLink')), 122 + convoId: /*#__PURE__*/ v.string(), 123 + get message() { 124 + return systemMessageDataCreateJoinLinkSchema; 125 + }, 126 + rev: /*#__PURE__*/ v.string(), 127 + }); 55 128 const _logCreateMessageSchema = /*#__PURE__*/ v.object({ 56 129 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logCreateMessage')), 57 130 convoId: /*#__PURE__*/ v.string(), ··· 68 141 }, 69 142 rev: /*#__PURE__*/ v.string(), 70 143 }); 144 + const _logDisableJoinLinkSchema = /*#__PURE__*/ v.object({ 145 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logDisableJoinLink')), 146 + convoId: /*#__PURE__*/ v.string(), 147 + get message() { 148 + return systemMessageDataDisableJoinLinkSchema; 149 + }, 150 + rev: /*#__PURE__*/ v.string(), 151 + }); 152 + const _logEditGroupSchema = /*#__PURE__*/ v.object({ 153 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logEditGroup')), 154 + convoId: /*#__PURE__*/ v.string(), 155 + get message() { 156 + return systemMessageDataEditGroupSchema; 157 + }, 158 + rev: /*#__PURE__*/ v.string(), 159 + }); 160 + const _logEditJoinLinkSchema = /*#__PURE__*/ v.object({ 161 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logEditJoinLink')), 162 + convoId: /*#__PURE__*/ v.string(), 163 + get message() { 164 + return systemMessageDataEditJoinLinkSchema; 165 + }, 166 + rev: /*#__PURE__*/ v.string(), 167 + }); 168 + const _logEnableJoinLinkSchema = /*#__PURE__*/ v.object({ 169 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logEnableJoinLink')), 170 + convoId: /*#__PURE__*/ v.string(), 171 + get message() { 172 + return systemMessageDataEnableJoinLinkSchema; 173 + }, 174 + rev: /*#__PURE__*/ v.string(), 175 + }); 176 + const _logIncomingJoinRequestSchema = /*#__PURE__*/ v.object({ 177 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logIncomingJoinRequest')), 178 + convoId: /*#__PURE__*/ v.string(), 179 + /** 180 + * Prospective member who requested to join. 181 + */ 182 + get member() { 183 + return ChatBskyActorDefs.profileViewBasicSchema; 184 + }, 185 + rev: /*#__PURE__*/ v.string(), 186 + }); 71 187 const _logLeaveConvoSchema = /*#__PURE__*/ v.object({ 72 188 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logLeaveConvo')), 73 189 convoId: /*#__PURE__*/ v.string(), 74 190 rev: /*#__PURE__*/ v.string(), 75 191 }); 192 + const _logLockConvoSchema = /*#__PURE__*/ v.object({ 193 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logLockConvo')), 194 + convoId: /*#__PURE__*/ v.string(), 195 + get message() { 196 + return systemMessageDataLockConvoSchema; 197 + }, 198 + rev: /*#__PURE__*/ v.string(), 199 + }); 200 + const _logLockConvoPermanentlySchema = /*#__PURE__*/ v.object({ 201 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logLockConvoPermanently')), 202 + convoId: /*#__PURE__*/ v.string(), 203 + get message() { 204 + return systemMessageDataLockConvoPermanentlySchema; 205 + }, 206 + rev: /*#__PURE__*/ v.string(), 207 + }); 208 + const _logMemberJoinSchema = /*#__PURE__*/ v.object({ 209 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logMemberJoin')), 210 + convoId: /*#__PURE__*/ v.string(), 211 + get message() { 212 + return systemMessageDataMemberJoinSchema; 213 + }, 214 + rev: /*#__PURE__*/ v.string(), 215 + }); 216 + const _logMemberLeaveSchema = /*#__PURE__*/ v.object({ 217 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logMemberLeave')), 218 + convoId: /*#__PURE__*/ v.string(), 219 + get message() { 220 + return systemMessageDataMemberLeaveSchema; 221 + }, 222 + rev: /*#__PURE__*/ v.string(), 223 + }); 76 224 const _logMuteConvoSchema = /*#__PURE__*/ v.object({ 77 225 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logMuteConvo')), 78 226 convoId: /*#__PURE__*/ v.string(), 79 227 rev: /*#__PURE__*/ v.string(), 80 228 }); 229 + const _logOutgoingJoinRequestSchema = /*#__PURE__*/ v.object({ 230 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logOutgoingJoinRequest')), 231 + convoId: /*#__PURE__*/ v.string(), 232 + rev: /*#__PURE__*/ v.string(), 233 + }); 234 + const _logReadConvoSchema = /*#__PURE__*/ v.object({ 235 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logReadConvo')), 236 + convoId: /*#__PURE__*/ v.string(), 237 + get message() { 238 + return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema, systemMessageViewSchema]); 239 + }, 240 + rev: /*#__PURE__*/ v.string(), 241 + }); 81 242 const _logReadMessageSchema = /*#__PURE__*/ v.object({ 82 243 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logReadMessage')), 83 244 convoId: /*#__PURE__*/ v.string(), 84 245 get message() { 85 - return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema]); 246 + return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema, systemMessageViewSchema]); 247 + }, 248 + rev: /*#__PURE__*/ v.string(), 249 + }); 250 + const _logRejectJoinRequestSchema = /*#__PURE__*/ v.object({ 251 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logRejectJoinRequest')), 252 + convoId: /*#__PURE__*/ v.string(), 253 + /** 254 + * Prospective member who requested to join. 255 + */ 256 + get member() { 257 + return ChatBskyActorDefs.profileViewBasicSchema; 258 + }, 259 + rev: /*#__PURE__*/ v.string(), 260 + }); 261 + const _logRemoveMemberSchema = /*#__PURE__*/ v.object({ 262 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logRemoveMember')), 263 + convoId: /*#__PURE__*/ v.string(), 264 + get message() { 265 + return systemMessageDataRemoveMemberSchema; 86 266 }, 87 267 rev: /*#__PURE__*/ v.string(), 88 268 }); ··· 97 277 }, 98 278 rev: /*#__PURE__*/ v.string(), 99 279 }); 280 + const _logUnlockConvoSchema = /*#__PURE__*/ v.object({ 281 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logUnlockConvo')), 282 + convoId: /*#__PURE__*/ v.string(), 283 + get message() { 284 + return systemMessageDataUnlockConvoSchema; 285 + }, 286 + rev: /*#__PURE__*/ v.string(), 287 + }); 100 288 const _logUnmuteConvoSchema = /*#__PURE__*/ v.object({ 101 289 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logUnmuteConvo')), 102 290 convoId: /*#__PURE__*/ v.string(), ··· 185 373 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#reactionViewSender')), 186 374 did: /*#__PURE__*/ v.didString(), 187 375 }); 376 + const _systemMessageDataAddMemberSchema = /*#__PURE__*/ v.object({ 377 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataAddMember')), 378 + get addedBy() { 379 + return ChatBskyActorDefs.profileViewBasicSchema; 380 + }, 381 + /** 382 + * Current view of the member who was added. 383 + */ 384 + get member() { 385 + return ChatBskyActorDefs.profileViewBasicSchema; 386 + }, 387 + /** 388 + * Role the user was added to the group with. The role from 'member' will reflect the current data, not historical. 389 + */ 390 + get role() { 391 + return ChatBskyActorDefs.memberRoleSchema; 392 + }, 393 + }); 394 + const _systemMessageDataCreateJoinLinkSchema = /*#__PURE__*/ v.object({ 395 + $type: /*#__PURE__*/ v.optional( 396 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataCreateJoinLink'), 397 + ), 398 + }); 399 + const _systemMessageDataDisableJoinLinkSchema = /*#__PURE__*/ v.object({ 400 + $type: /*#__PURE__*/ v.optional( 401 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataDisableJoinLink'), 402 + ), 403 + }); 404 + const _systemMessageDataEditGroupSchema = /*#__PURE__*/ v.object({ 405 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataEditGroup')), 406 + /** 407 + * Group name that replaced the old. 408 + */ 409 + newName: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 410 + /** 411 + * Group name that was replaced. 412 + */ 413 + oldName: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 414 + }); 415 + const _systemMessageDataEditJoinLinkSchema = /*#__PURE__*/ v.object({ 416 + $type: /*#__PURE__*/ v.optional( 417 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataEditJoinLink'), 418 + ), 419 + }); 420 + const _systemMessageDataEnableJoinLinkSchema = /*#__PURE__*/ v.object({ 421 + $type: /*#__PURE__*/ v.optional( 422 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataEnableJoinLink'), 423 + ), 424 + }); 425 + const _systemMessageDataLockConvoSchema = /*#__PURE__*/ v.object({ 426 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataLockConvo')), 427 + /** 428 + * Current view of the member who locked the group. 429 + */ 430 + get lockedBy() { 431 + return ChatBskyActorDefs.profileViewBasicSchema; 432 + }, 433 + }); 434 + const _systemMessageDataLockConvoPermanentlySchema = /*#__PURE__*/ v.object({ 435 + $type: /*#__PURE__*/ v.optional( 436 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataLockConvoPermanently'), 437 + ), 438 + /** 439 + * Current view of the member who locked the group. 440 + */ 441 + get lockedBy() { 442 + return ChatBskyActorDefs.profileViewBasicSchema; 443 + }, 444 + }); 445 + const _systemMessageDataMemberJoinSchema = /*#__PURE__*/ v.object({ 446 + $type: /*#__PURE__*/ v.optional( 447 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataMemberJoin'), 448 + ), 449 + /** 450 + * If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required. 451 + */ 452 + get approvedBy() { 453 + return /*#__PURE__*/ v.optional(ChatBskyActorDefs.profileViewBasicSchema); 454 + }, 455 + /** 456 + * Current view of the member who joined. 457 + */ 458 + get member() { 459 + return ChatBskyActorDefs.profileViewBasicSchema; 460 + }, 461 + /** 462 + * Role the user was added to the group with. The role from 'member' will reflect the current data, not historical. 463 + */ 464 + get role() { 465 + return ChatBskyActorDefs.memberRoleSchema; 466 + }, 467 + }); 468 + const _systemMessageDataMemberLeaveSchema = /*#__PURE__*/ v.object({ 469 + $type: /*#__PURE__*/ v.optional( 470 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataMemberLeave'), 471 + ), 472 + /** 473 + * Current view of the member who left the group. 474 + */ 475 + get member() { 476 + return ChatBskyActorDefs.profileViewBasicSchema; 477 + }, 478 + }); 479 + const _systemMessageDataRemoveMemberSchema = /*#__PURE__*/ v.object({ 480 + $type: /*#__PURE__*/ v.optional( 481 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataRemoveMember'), 482 + ), 483 + /** 484 + * Current view of the member who was removed. 485 + */ 486 + get member() { 487 + return ChatBskyActorDefs.profileViewBasicSchema; 488 + }, 489 + get removedBy() { 490 + return ChatBskyActorDefs.profileViewBasicSchema; 491 + }, 492 + }); 493 + const _systemMessageDataUnlockConvoSchema = /*#__PURE__*/ v.object({ 494 + $type: /*#__PURE__*/ v.optional( 495 + /*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataUnlockConvo'), 496 + ), 497 + /** 498 + * Current view of the member who unlocked the group. 499 + */ 500 + get unlockedBy() { 501 + return ChatBskyActorDefs.profileViewBasicSchema; 502 + }, 503 + }); 504 + const _systemMessageViewSchema = /*#__PURE__*/ v.object({ 505 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageView')), 506 + get data() { 507 + return /*#__PURE__*/ v.variant([ 508 + systemMessageDataAddMemberSchema, 509 + systemMessageDataCreateJoinLinkSchema, 510 + systemMessageDataDisableJoinLinkSchema, 511 + systemMessageDataEditGroupSchema, 512 + systemMessageDataEditJoinLinkSchema, 513 + systemMessageDataEnableJoinLinkSchema, 514 + systemMessageDataLockConvoSchema, 515 + systemMessageDataLockConvoPermanentlySchema, 516 + systemMessageDataMemberJoinSchema, 517 + systemMessageDataMemberLeaveSchema, 518 + systemMessageDataRemoveMemberSchema, 519 + systemMessageDataUnlockConvoSchema, 520 + ]); 521 + }, 522 + id: /*#__PURE__*/ v.string(), 523 + rev: /*#__PURE__*/ v.string(), 524 + sentAt: /*#__PURE__*/ v.datetimeString(), 525 + }); 188 526 527 + type convoKind$schematype = typeof _convoKindSchema; 528 + type convoLockStatus$schematype = typeof _convoLockStatusSchema; 529 + type convoStatus$schematype = typeof _convoStatusSchema; 189 530 type convoView$schematype = typeof _convoViewSchema; 190 531 type deletedMessageView$schematype = typeof _deletedMessageViewSchema; 532 + type directConvo$schematype = typeof _directConvoSchema; 533 + type groupConvo$schematype = typeof _groupConvoSchema; 191 534 type logAcceptConvo$schematype = typeof _logAcceptConvoSchema; 535 + type logAddMember$schematype = typeof _logAddMemberSchema; 192 536 type logAddReaction$schematype = typeof _logAddReactionSchema; 537 + type logApproveJoinRequest$schematype = typeof _logApproveJoinRequestSchema; 193 538 type logBeginConvo$schematype = typeof _logBeginConvoSchema; 539 + type logCreateJoinLink$schematype = typeof _logCreateJoinLinkSchema; 194 540 type logCreateMessage$schematype = typeof _logCreateMessageSchema; 195 541 type logDeleteMessage$schematype = typeof _logDeleteMessageSchema; 542 + type logDisableJoinLink$schematype = typeof _logDisableJoinLinkSchema; 543 + type logEditGroup$schematype = typeof _logEditGroupSchema; 544 + type logEditJoinLink$schematype = typeof _logEditJoinLinkSchema; 545 + type logEnableJoinLink$schematype = typeof _logEnableJoinLinkSchema; 546 + type logIncomingJoinRequest$schematype = typeof _logIncomingJoinRequestSchema; 196 547 type logLeaveConvo$schematype = typeof _logLeaveConvoSchema; 548 + type logLockConvo$schematype = typeof _logLockConvoSchema; 549 + type logLockConvoPermanently$schematype = typeof _logLockConvoPermanentlySchema; 550 + type logMemberJoin$schematype = typeof _logMemberJoinSchema; 551 + type logMemberLeave$schematype = typeof _logMemberLeaveSchema; 197 552 type logMuteConvo$schematype = typeof _logMuteConvoSchema; 553 + type logOutgoingJoinRequest$schematype = typeof _logOutgoingJoinRequestSchema; 554 + type logReadConvo$schematype = typeof _logReadConvoSchema; 198 555 type logReadMessage$schematype = typeof _logReadMessageSchema; 556 + type logRejectJoinRequest$schematype = typeof _logRejectJoinRequestSchema; 557 + type logRemoveMember$schematype = typeof _logRemoveMemberSchema; 199 558 type logRemoveReaction$schematype = typeof _logRemoveReactionSchema; 559 + type logUnlockConvo$schematype = typeof _logUnlockConvoSchema; 200 560 type logUnmuteConvo$schematype = typeof _logUnmuteConvoSchema; 201 561 type messageAndReactionView$schematype = typeof _messageAndReactionViewSchema; 202 562 type messageInput$schematype = typeof _messageInputSchema; ··· 205 565 type messageViewSender$schematype = typeof _messageViewSenderSchema; 206 566 type reactionView$schematype = typeof _reactionViewSchema; 207 567 type reactionViewSender$schematype = typeof _reactionViewSenderSchema; 568 + type systemMessageDataAddMember$schematype = typeof _systemMessageDataAddMemberSchema; 569 + type systemMessageDataCreateJoinLink$schematype = typeof _systemMessageDataCreateJoinLinkSchema; 570 + type systemMessageDataDisableJoinLink$schematype = typeof _systemMessageDataDisableJoinLinkSchema; 571 + type systemMessageDataEditGroup$schematype = typeof _systemMessageDataEditGroupSchema; 572 + type systemMessageDataEditJoinLink$schematype = typeof _systemMessageDataEditJoinLinkSchema; 573 + type systemMessageDataEnableJoinLink$schematype = typeof _systemMessageDataEnableJoinLinkSchema; 574 + type systemMessageDataLockConvo$schematype = typeof _systemMessageDataLockConvoSchema; 575 + type systemMessageDataLockConvoPermanently$schematype = typeof _systemMessageDataLockConvoPermanentlySchema; 576 + type systemMessageDataMemberJoin$schematype = typeof _systemMessageDataMemberJoinSchema; 577 + type systemMessageDataMemberLeave$schematype = typeof _systemMessageDataMemberLeaveSchema; 578 + type systemMessageDataRemoveMember$schematype = typeof _systemMessageDataRemoveMemberSchema; 579 + type systemMessageDataUnlockConvo$schematype = typeof _systemMessageDataUnlockConvoSchema; 580 + type systemMessageView$schematype = typeof _systemMessageViewSchema; 208 581 582 + export interface convoKindSchema extends convoKind$schematype {} 583 + export interface convoLockStatusSchema extends convoLockStatus$schematype {} 584 + export interface convoStatusSchema extends convoStatus$schematype {} 209 585 export interface convoViewSchema extends convoView$schematype {} 210 586 export interface deletedMessageViewSchema extends deletedMessageView$schematype {} 587 + export interface directConvoSchema extends directConvo$schematype {} 588 + export interface groupConvoSchema extends groupConvo$schematype {} 211 589 export interface logAcceptConvoSchema extends logAcceptConvo$schematype {} 590 + export interface logAddMemberSchema extends logAddMember$schematype {} 212 591 export interface logAddReactionSchema extends logAddReaction$schematype {} 592 + export interface logApproveJoinRequestSchema extends logApproveJoinRequest$schematype {} 213 593 export interface logBeginConvoSchema extends logBeginConvo$schematype {} 594 + export interface logCreateJoinLinkSchema extends logCreateJoinLink$schematype {} 214 595 export interface logCreateMessageSchema extends logCreateMessage$schematype {} 215 596 export interface logDeleteMessageSchema extends logDeleteMessage$schematype {} 597 + export interface logDisableJoinLinkSchema extends logDisableJoinLink$schematype {} 598 + export interface logEditGroupSchema extends logEditGroup$schematype {} 599 + export interface logEditJoinLinkSchema extends logEditJoinLink$schematype {} 600 + export interface logEnableJoinLinkSchema extends logEnableJoinLink$schematype {} 601 + export interface logIncomingJoinRequestSchema extends logIncomingJoinRequest$schematype {} 216 602 export interface logLeaveConvoSchema extends logLeaveConvo$schematype {} 603 + export interface logLockConvoSchema extends logLockConvo$schematype {} 604 + export interface logLockConvoPermanentlySchema extends logLockConvoPermanently$schematype {} 605 + export interface logMemberJoinSchema extends logMemberJoin$schematype {} 606 + export interface logMemberLeaveSchema extends logMemberLeave$schematype {} 217 607 export interface logMuteConvoSchema extends logMuteConvo$schematype {} 608 + export interface logOutgoingJoinRequestSchema extends logOutgoingJoinRequest$schematype {} 609 + export interface logReadConvoSchema extends logReadConvo$schematype {} 218 610 export interface logReadMessageSchema extends logReadMessage$schematype {} 611 + export interface logRejectJoinRequestSchema extends logRejectJoinRequest$schematype {} 612 + export interface logRemoveMemberSchema extends logRemoveMember$schematype {} 219 613 export interface logRemoveReactionSchema extends logRemoveReaction$schematype {} 614 + export interface logUnlockConvoSchema extends logUnlockConvo$schematype {} 220 615 export interface logUnmuteConvoSchema extends logUnmuteConvo$schematype {} 221 616 export interface messageAndReactionViewSchema extends messageAndReactionView$schematype {} 222 617 export interface messageInputSchema extends messageInput$schematype {} ··· 225 620 export interface messageViewSenderSchema extends messageViewSender$schematype {} 226 621 export interface reactionViewSchema extends reactionView$schematype {} 227 622 export interface reactionViewSenderSchema extends reactionViewSender$schematype {} 623 + export interface systemMessageDataAddMemberSchema extends systemMessageDataAddMember$schematype {} 624 + export interface systemMessageDataCreateJoinLinkSchema extends systemMessageDataCreateJoinLink$schematype {} 625 + export interface systemMessageDataDisableJoinLinkSchema extends systemMessageDataDisableJoinLink$schematype {} 626 + export interface systemMessageDataEditGroupSchema extends systemMessageDataEditGroup$schematype {} 627 + export interface systemMessageDataEditJoinLinkSchema extends systemMessageDataEditJoinLink$schematype {} 628 + export interface systemMessageDataEnableJoinLinkSchema extends systemMessageDataEnableJoinLink$schematype {} 629 + export interface systemMessageDataLockConvoSchema extends systemMessageDataLockConvo$schematype {} 630 + export interface systemMessageDataLockConvoPermanentlySchema extends systemMessageDataLockConvoPermanently$schematype {} 631 + export interface systemMessageDataMemberJoinSchema extends systemMessageDataMemberJoin$schematype {} 632 + export interface systemMessageDataMemberLeaveSchema extends systemMessageDataMemberLeave$schematype {} 633 + export interface systemMessageDataRemoveMemberSchema extends systemMessageDataRemoveMember$schematype {} 634 + export interface systemMessageDataUnlockConvoSchema extends systemMessageDataUnlockConvo$schematype {} 635 + export interface systemMessageViewSchema extends systemMessageView$schematype {} 228 636 637 + export const convoKindSchema = _convoKindSchema as convoKindSchema; 638 + export const convoLockStatusSchema = _convoLockStatusSchema as convoLockStatusSchema; 639 + export const convoStatusSchema = _convoStatusSchema as convoStatusSchema; 229 640 export const convoViewSchema = _convoViewSchema as convoViewSchema; 230 641 export const deletedMessageViewSchema = _deletedMessageViewSchema as deletedMessageViewSchema; 642 + export const directConvoSchema = _directConvoSchema as directConvoSchema; 643 + export const groupConvoSchema = _groupConvoSchema as groupConvoSchema; 231 644 export const logAcceptConvoSchema = _logAcceptConvoSchema as logAcceptConvoSchema; 645 + export const logAddMemberSchema = _logAddMemberSchema as logAddMemberSchema; 232 646 export const logAddReactionSchema = _logAddReactionSchema as logAddReactionSchema; 647 + export const logApproveJoinRequestSchema = _logApproveJoinRequestSchema as logApproveJoinRequestSchema; 233 648 export const logBeginConvoSchema = _logBeginConvoSchema as logBeginConvoSchema; 649 + export const logCreateJoinLinkSchema = _logCreateJoinLinkSchema as logCreateJoinLinkSchema; 234 650 export const logCreateMessageSchema = _logCreateMessageSchema as logCreateMessageSchema; 235 651 export const logDeleteMessageSchema = _logDeleteMessageSchema as logDeleteMessageSchema; 652 + export const logDisableJoinLinkSchema = _logDisableJoinLinkSchema as logDisableJoinLinkSchema; 653 + export const logEditGroupSchema = _logEditGroupSchema as logEditGroupSchema; 654 + export const logEditJoinLinkSchema = _logEditJoinLinkSchema as logEditJoinLinkSchema; 655 + export const logEnableJoinLinkSchema = _logEnableJoinLinkSchema as logEnableJoinLinkSchema; 656 + export const logIncomingJoinRequestSchema = _logIncomingJoinRequestSchema as logIncomingJoinRequestSchema; 236 657 export const logLeaveConvoSchema = _logLeaveConvoSchema as logLeaveConvoSchema; 658 + export const logLockConvoSchema = _logLockConvoSchema as logLockConvoSchema; 659 + export const logLockConvoPermanentlySchema = _logLockConvoPermanentlySchema as logLockConvoPermanentlySchema; 660 + export const logMemberJoinSchema = _logMemberJoinSchema as logMemberJoinSchema; 661 + export const logMemberLeaveSchema = _logMemberLeaveSchema as logMemberLeaveSchema; 237 662 export const logMuteConvoSchema = _logMuteConvoSchema as logMuteConvoSchema; 663 + export const logOutgoingJoinRequestSchema = _logOutgoingJoinRequestSchema as logOutgoingJoinRequestSchema; 664 + export const logReadConvoSchema = _logReadConvoSchema as logReadConvoSchema; 238 665 export const logReadMessageSchema = _logReadMessageSchema as logReadMessageSchema; 666 + export const logRejectJoinRequestSchema = _logRejectJoinRequestSchema as logRejectJoinRequestSchema; 667 + export const logRemoveMemberSchema = _logRemoveMemberSchema as logRemoveMemberSchema; 239 668 export const logRemoveReactionSchema = _logRemoveReactionSchema as logRemoveReactionSchema; 669 + export const logUnlockConvoSchema = _logUnlockConvoSchema as logUnlockConvoSchema; 240 670 export const logUnmuteConvoSchema = _logUnmuteConvoSchema as logUnmuteConvoSchema; 241 671 export const messageAndReactionViewSchema = _messageAndReactionViewSchema as messageAndReactionViewSchema; 242 672 export const messageInputSchema = _messageInputSchema as messageInputSchema; ··· 245 675 export const messageViewSenderSchema = _messageViewSenderSchema as messageViewSenderSchema; 246 676 export const reactionViewSchema = _reactionViewSchema as reactionViewSchema; 247 677 export const reactionViewSenderSchema = _reactionViewSenderSchema as reactionViewSenderSchema; 678 + export const systemMessageDataAddMemberSchema = 679 + _systemMessageDataAddMemberSchema as systemMessageDataAddMemberSchema; 680 + export const systemMessageDataCreateJoinLinkSchema = 681 + _systemMessageDataCreateJoinLinkSchema as systemMessageDataCreateJoinLinkSchema; 682 + export const systemMessageDataDisableJoinLinkSchema = 683 + _systemMessageDataDisableJoinLinkSchema as systemMessageDataDisableJoinLinkSchema; 684 + export const systemMessageDataEditGroupSchema = 685 + _systemMessageDataEditGroupSchema as systemMessageDataEditGroupSchema; 686 + export const systemMessageDataEditJoinLinkSchema = 687 + _systemMessageDataEditJoinLinkSchema as systemMessageDataEditJoinLinkSchema; 688 + export const systemMessageDataEnableJoinLinkSchema = 689 + _systemMessageDataEnableJoinLinkSchema as systemMessageDataEnableJoinLinkSchema; 690 + export const systemMessageDataLockConvoSchema = 691 + _systemMessageDataLockConvoSchema as systemMessageDataLockConvoSchema; 692 + export const systemMessageDataLockConvoPermanentlySchema = 693 + _systemMessageDataLockConvoPermanentlySchema as systemMessageDataLockConvoPermanentlySchema; 694 + export const systemMessageDataMemberJoinSchema = 695 + _systemMessageDataMemberJoinSchema as systemMessageDataMemberJoinSchema; 696 + export const systemMessageDataMemberLeaveSchema = 697 + _systemMessageDataMemberLeaveSchema as systemMessageDataMemberLeaveSchema; 698 + export const systemMessageDataRemoveMemberSchema = 699 + _systemMessageDataRemoveMemberSchema as systemMessageDataRemoveMemberSchema; 700 + export const systemMessageDataUnlockConvoSchema = 701 + _systemMessageDataUnlockConvoSchema as systemMessageDataUnlockConvoSchema; 702 + export const systemMessageViewSchema = _systemMessageViewSchema as systemMessageViewSchema; 248 703 704 + export type ConvoKind = v.InferInput<typeof convoKindSchema>; 705 + export type ConvoLockStatus = v.InferInput<typeof convoLockStatusSchema>; 706 + export type ConvoStatus = v.InferInput<typeof convoStatusSchema>; 249 707 export interface ConvoView extends v.InferInput<typeof convoViewSchema> {} 250 708 export interface DeletedMessageView extends v.InferInput<typeof deletedMessageViewSchema> {} 709 + export interface DirectConvo extends v.InferInput<typeof directConvoSchema> {} 710 + export interface GroupConvo extends v.InferInput<typeof groupConvoSchema> {} 251 711 export interface LogAcceptConvo extends v.InferInput<typeof logAcceptConvoSchema> {} 712 + export interface LogAddMember extends v.InferInput<typeof logAddMemberSchema> {} 252 713 export interface LogAddReaction extends v.InferInput<typeof logAddReactionSchema> {} 714 + export interface LogApproveJoinRequest extends v.InferInput<typeof logApproveJoinRequestSchema> {} 253 715 export interface LogBeginConvo extends v.InferInput<typeof logBeginConvoSchema> {} 716 + export interface LogCreateJoinLink extends v.InferInput<typeof logCreateJoinLinkSchema> {} 254 717 export interface LogCreateMessage extends v.InferInput<typeof logCreateMessageSchema> {} 255 718 export interface LogDeleteMessage extends v.InferInput<typeof logDeleteMessageSchema> {} 719 + export interface LogDisableJoinLink extends v.InferInput<typeof logDisableJoinLinkSchema> {} 720 + export interface LogEditGroup extends v.InferInput<typeof logEditGroupSchema> {} 721 + export interface LogEditJoinLink extends v.InferInput<typeof logEditJoinLinkSchema> {} 722 + export interface LogEnableJoinLink extends v.InferInput<typeof logEnableJoinLinkSchema> {} 723 + export interface LogIncomingJoinRequest extends v.InferInput<typeof logIncomingJoinRequestSchema> {} 256 724 export interface LogLeaveConvo extends v.InferInput<typeof logLeaveConvoSchema> {} 725 + export interface LogLockConvo extends v.InferInput<typeof logLockConvoSchema> {} 726 + export interface LogLockConvoPermanently extends v.InferInput<typeof logLockConvoPermanentlySchema> {} 727 + export interface LogMemberJoin extends v.InferInput<typeof logMemberJoinSchema> {} 728 + export interface LogMemberLeave extends v.InferInput<typeof logMemberLeaveSchema> {} 257 729 export interface LogMuteConvo extends v.InferInput<typeof logMuteConvoSchema> {} 730 + export interface LogOutgoingJoinRequest extends v.InferInput<typeof logOutgoingJoinRequestSchema> {} 731 + export interface LogReadConvo extends v.InferInput<typeof logReadConvoSchema> {} 258 732 export interface LogReadMessage extends v.InferInput<typeof logReadMessageSchema> {} 733 + export interface LogRejectJoinRequest extends v.InferInput<typeof logRejectJoinRequestSchema> {} 734 + export interface LogRemoveMember extends v.InferInput<typeof logRemoveMemberSchema> {} 259 735 export interface LogRemoveReaction extends v.InferInput<typeof logRemoveReactionSchema> {} 736 + export interface LogUnlockConvo extends v.InferInput<typeof logUnlockConvoSchema> {} 260 737 export interface LogUnmuteConvo extends v.InferInput<typeof logUnmuteConvoSchema> {} 261 738 export interface MessageAndReactionView extends v.InferInput<typeof messageAndReactionViewSchema> {} 262 739 export interface MessageInput extends v.InferInput<typeof messageInputSchema> {} ··· 265 742 export interface MessageViewSender extends v.InferInput<typeof messageViewSenderSchema> {} 266 743 export interface ReactionView extends v.InferInput<typeof reactionViewSchema> {} 267 744 export interface ReactionViewSender extends v.InferInput<typeof reactionViewSenderSchema> {} 745 + export interface SystemMessageDataAddMember extends v.InferInput<typeof systemMessageDataAddMemberSchema> {} 746 + export interface SystemMessageDataCreateJoinLink extends v.InferInput< 747 + typeof systemMessageDataCreateJoinLinkSchema 748 + > {} 749 + export interface SystemMessageDataDisableJoinLink extends v.InferInput< 750 + typeof systemMessageDataDisableJoinLinkSchema 751 + > {} 752 + export interface SystemMessageDataEditGroup extends v.InferInput<typeof systemMessageDataEditGroupSchema> {} 753 + export interface SystemMessageDataEditJoinLink extends v.InferInput< 754 + typeof systemMessageDataEditJoinLinkSchema 755 + > {} 756 + export interface SystemMessageDataEnableJoinLink extends v.InferInput< 757 + typeof systemMessageDataEnableJoinLinkSchema 758 + > {} 759 + export interface SystemMessageDataLockConvo extends v.InferInput<typeof systemMessageDataLockConvoSchema> {} 760 + export interface SystemMessageDataLockConvoPermanently extends v.InferInput< 761 + typeof systemMessageDataLockConvoPermanentlySchema 762 + > {} 763 + export interface SystemMessageDataMemberJoin extends v.InferInput<typeof systemMessageDataMemberJoinSchema> {} 764 + export interface SystemMessageDataMemberLeave extends v.InferInput< 765 + typeof systemMessageDataMemberLeaveSchema 766 + > {} 767 + export interface SystemMessageDataRemoveMember extends v.InferInput< 768 + typeof systemMessageDataRemoveMemberSchema 769 + > {} 770 + export interface SystemMessageDataUnlockConvo extends v.InferInput< 771 + typeof systemMessageDataUnlockConvoSchema 772 + > {} 773 + export interface SystemMessageView extends v.InferInput<typeof systemMessageViewSchema> {}
+17
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/getLog.ts
··· 16 16 return /*#__PURE__*/ v.array( 17 17 /*#__PURE__*/ v.variant([ 18 18 ChatBskyConvoDefs.logAcceptConvoSchema, 19 + ChatBskyConvoDefs.logAddMemberSchema, 19 20 ChatBskyConvoDefs.logAddReactionSchema, 21 + ChatBskyConvoDefs.logApproveJoinRequestSchema, 20 22 ChatBskyConvoDefs.logBeginConvoSchema, 23 + ChatBskyConvoDefs.logCreateJoinLinkSchema, 21 24 ChatBskyConvoDefs.logCreateMessageSchema, 22 25 ChatBskyConvoDefs.logDeleteMessageSchema, 26 + ChatBskyConvoDefs.logDisableJoinLinkSchema, 27 + ChatBskyConvoDefs.logEditGroupSchema, 28 + ChatBskyConvoDefs.logEditJoinLinkSchema, 29 + ChatBskyConvoDefs.logEnableJoinLinkSchema, 30 + ChatBskyConvoDefs.logIncomingJoinRequestSchema, 23 31 ChatBskyConvoDefs.logLeaveConvoSchema, 32 + ChatBskyConvoDefs.logLockConvoSchema, 33 + ChatBskyConvoDefs.logLockConvoPermanentlySchema, 34 + ChatBskyConvoDefs.logMemberJoinSchema, 35 + ChatBskyConvoDefs.logMemberLeaveSchema, 24 36 ChatBskyConvoDefs.logMuteConvoSchema, 37 + ChatBskyConvoDefs.logOutgoingJoinRequestSchema, 38 + ChatBskyConvoDefs.logReadConvoSchema, 25 39 ChatBskyConvoDefs.logReadMessageSchema, 40 + ChatBskyConvoDefs.logRejectJoinRequestSchema, 41 + ChatBskyConvoDefs.logRemoveMemberSchema, 26 42 ChatBskyConvoDefs.logRemoveReactionSchema, 43 + ChatBskyConvoDefs.logUnlockConvoSchema, 27 44 ChatBskyConvoDefs.logUnmuteConvoSchema, 28 45 ]), 29 46 );
+1
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/getMessages.ts
··· 27 27 /*#__PURE__*/ v.variant([ 28 28 ChatBskyConvoDefs.deletedMessageViewSchema, 29 29 ChatBskyConvoDefs.messageViewSchema, 30 + ChatBskyConvoDefs.systemMessageViewSchema, 30 31 ]), 31 32 ); 32 33 },
+51
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/listConvoRequests.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyGroupDefs from '../group/defs.ts'; 6 + 7 + import * as ChatBskyConvoDefs from './defs.ts'; 8 + 9 + const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.listConvoRequests', { 10 + params: /*#__PURE__*/ v.object({ 11 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 + /** 13 + * @minimum 1 14 + * @maximum 100 15 + * @default 50 16 + */ 17 + limit: /*#__PURE__*/ v.optional( 18 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 19 + 50, 20 + ), 21 + }), 22 + output: { 23 + type: 'lex', 24 + schema: /*#__PURE__*/ v.object({ 25 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 26 + get requests() { 27 + return /*#__PURE__*/ v.array( 28 + /*#__PURE__*/ v.variant([ 29 + ChatBskyConvoDefs.convoViewSchema, 30 + ChatBskyGroupDefs.joinRequestViewSchema, 31 + ]), 32 + ); 33 + }, 34 + }), 35 + }, 36 + }); 37 + 38 + type main$schematype = typeof _mainSchema; 39 + 40 + export interface mainSchema extends main$schematype {} 41 + 42 + export const mainSchema = _mainSchema as mainSchema; 43 + 44 + export interface $params extends v.InferInput<mainSchema['params']> {} 45 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 46 + 47 + declare module '@atcute/lexicons/ambient' { 48 + interface XRPCQueries { 49 + 'chat.bsky.convo.listConvoRequests': mainSchema; 50 + } 51 + }
+7
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/listConvos.ts
··· 8 8 params: /*#__PURE__*/ v.object({ 9 9 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 10 /** 11 + * Filter by conversation kind. 12 + */ 13 + kind: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'direct' | 'group' | (string & {})>()), 14 + /** 11 15 * @minimum 1 12 16 * @maximum 100 13 17 * @default 50 ··· 17 21 50, 18 22 ), 19 23 readState: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'unread' | (string & {})>()), 24 + /** 25 + * Filter convos by their status. It is discouraged to call with "request" and preferred to call chat.bsky.convo.listConvoRequests, which also includes group join requests made by the user. 26 + */ 20 27 status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'accepted' | 'request' | (string & {})>()), 21 28 }), 22 29 output: {
+39
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/lockConvo.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyConvoDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.convo.lockConvo', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + }), 14 + }, 15 + output: { 16 + type: 'lex', 17 + schema: /*#__PURE__*/ v.object({ 18 + get convo() { 19 + return ChatBskyConvoDefs.convoViewSchema; 20 + }, 21 + }), 22 + }, 23 + }); 24 + 25 + type main$schematype = typeof _mainSchema; 26 + 27 + export interface mainSchema extends main$schematype {} 28 + 29 + export const mainSchema = _mainSchema as mainSchema; 30 + 31 + export interface $params {} 32 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 33 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 34 + 35 + declare module '@atcute/lexicons/ambient' { 36 + interface XRPCProcedures { 37 + 'chat.bsky.convo.lockConvo': mainSchema; 38 + } 39 + }
+39
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/unlockConvo.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyConvoDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.convo.unlockConvo', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + }), 14 + }, 15 + output: { 16 + type: 'lex', 17 + schema: /*#__PURE__*/ v.object({ 18 + get convo() { 19 + return ChatBskyConvoDefs.convoViewSchema; 20 + }, 21 + }), 22 + }, 23 + }); 24 + 25 + type main$schematype = typeof _mainSchema; 26 + 27 + export interface mainSchema extends main$schematype {} 28 + 29 + export const mainSchema = _mainSchema as mainSchema; 30 + 31 + export interface $params {} 32 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 33 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 34 + 35 + declare module '@atcute/lexicons/ambient' { 36 + interface XRPCProcedures { 37 + 'chat.bsky.convo.unlockConvo': mainSchema; 38 + } 39 + }
+45
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/addMembers.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyConvoDefs from '../convo/defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.addMembers', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + /** 14 + * @minLength 1 15 + */ 16 + members: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 17 + /*#__PURE__*/ v.arrayLength(1), 18 + ]), 19 + }), 20 + }, 21 + output: { 22 + type: 'lex', 23 + schema: /*#__PURE__*/ v.object({ 24 + get convo() { 25 + return ChatBskyConvoDefs.convoViewSchema; 26 + }, 27 + }), 28 + }, 29 + }); 30 + 31 + type main$schematype = typeof _mainSchema; 32 + 33 + export interface mainSchema extends main$schematype {} 34 + 35 + export const mainSchema = _mainSchema as mainSchema; 36 + 37 + export interface $params {} 38 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 39 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 40 + 41 + declare module '@atcute/lexicons/ambient' { 42 + interface XRPCProcedures { 43 + 'chat.bsky.group.addMembers': mainSchema; 44 + } 45 + }
+40
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/approveJoinRequest.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyConvoDefs from '../convo/defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.approveJoinRequest', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + member: /*#__PURE__*/ v.didString(), 14 + }), 15 + }, 16 + output: { 17 + type: 'lex', 18 + schema: /*#__PURE__*/ v.object({ 19 + get convo() { 20 + return ChatBskyConvoDefs.convoViewSchema; 21 + }, 22 + }), 23 + }, 24 + }); 25 + 26 + type main$schematype = typeof _mainSchema; 27 + 28 + export interface mainSchema extends main$schematype {} 29 + 30 + export const mainSchema = _mainSchema as mainSchema; 31 + 32 + export interface $params {} 33 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 34 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 35 + 36 + declare module '@atcute/lexicons/ambient' { 37 + interface XRPCProcedures { 38 + 'chat.bsky.group.approveJoinRequest': mainSchema; 39 + } 40 + }
+53
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/createGroup.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyConvoDefs from '../convo/defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.createGroup', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + /** 13 + * @maxLength 49 14 + */ 15 + members: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 16 + /*#__PURE__*/ v.arrayLength(0, 49), 17 + ]), 18 + /** 19 + * @minLength 1 20 + * @maxLength 1280 21 + * @maxGraphemes 128 22 + */ 23 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 24 + /*#__PURE__*/ v.stringLength(1, 1280), 25 + /*#__PURE__*/ v.stringGraphemes(0, 128), 26 + ]), 27 + }), 28 + }, 29 + output: { 30 + type: 'lex', 31 + schema: /*#__PURE__*/ v.object({ 32 + get convo() { 33 + return ChatBskyConvoDefs.convoViewSchema; 34 + }, 35 + }), 36 + }, 37 + }); 38 + 39 + type main$schematype = typeof _mainSchema; 40 + 41 + export interface mainSchema extends main$schematype {} 42 + 43 + export const mainSchema = _mainSchema as mainSchema; 44 + 45 + export interface $params {} 46 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 47 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 48 + 49 + declare module '@atcute/lexicons/ambient' { 50 + interface XRPCProcedures { 51 + 'chat.bsky.group.createGroup': mainSchema; 52 + } 53 + }
+46
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/createJoinLink.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyGroupDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.createJoinLink', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + get joinRule() { 14 + return ChatBskyGroupDefs.joinRuleSchema; 15 + }, 16 + /** 17 + * @default false 18 + */ 19 + requireApproval: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 20 + }), 21 + }, 22 + output: { 23 + type: 'lex', 24 + schema: /*#__PURE__*/ v.object({ 25 + get joinLink() { 26 + return ChatBskyGroupDefs.joinLinkViewSchema; 27 + }, 28 + }), 29 + }, 30 + }); 31 + 32 + type main$schematype = typeof _mainSchema; 33 + 34 + export interface mainSchema extends main$schematype {} 35 + 36 + export const mainSchema = _mainSchema as mainSchema; 37 + 38 + export interface $params {} 39 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 40 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 41 + 42 + declare module '@atcute/lexicons/ambient' { 43 + interface XRPCProcedures { 44 + 'chat.bsky.group.createJoinLink': mainSchema; 45 + } 46 + }
+60
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/defs.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + 4 + import * as ChatBskyActorDefs from '../actor/defs.ts'; 5 + 6 + const _groupPublicViewSchema = /*#__PURE__*/ v.object({ 7 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#groupPublicView')), 8 + memberCount: /*#__PURE__*/ v.integer(), 9 + name: /*#__PURE__*/ v.string(), 10 + get owner() { 11 + return ChatBskyActorDefs.profileViewBasicSchema; 12 + }, 13 + requireApproval: /*#__PURE__*/ v.boolean(), 14 + }); 15 + const _joinLinkViewSchema = /*#__PURE__*/ v.object({ 16 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinLinkView')), 17 + code: /*#__PURE__*/ v.string(), 18 + createdAt: /*#__PURE__*/ v.datetimeString(), 19 + get enabledStatus() { 20 + return linkEnabledStatusSchema; 21 + }, 22 + get joinRule() { 23 + return joinRuleSchema; 24 + }, 25 + requireApproval: /*#__PURE__*/ v.boolean(), 26 + }); 27 + const _joinRequestViewSchema = /*#__PURE__*/ v.object({ 28 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinRequestView')), 29 + convoId: /*#__PURE__*/ v.string(), 30 + requestedAt: /*#__PURE__*/ v.datetimeString(), 31 + get requestedBy() { 32 + return ChatBskyActorDefs.profileViewBasicSchema; 33 + }, 34 + }); 35 + const _joinRuleSchema = /*#__PURE__*/ v.string<'anyone' | 'followedByOwner' | (string & {})>(); 36 + const _linkEnabledStatusSchema = /*#__PURE__*/ v.string<'disabled' | 'enabled' | (string & {})>(); 37 + 38 + type groupPublicView$schematype = typeof _groupPublicViewSchema; 39 + type joinLinkView$schematype = typeof _joinLinkViewSchema; 40 + type joinRequestView$schematype = typeof _joinRequestViewSchema; 41 + type joinRule$schematype = typeof _joinRuleSchema; 42 + type linkEnabledStatus$schematype = typeof _linkEnabledStatusSchema; 43 + 44 + export interface groupPublicViewSchema extends groupPublicView$schematype {} 45 + export interface joinLinkViewSchema extends joinLinkView$schematype {} 46 + export interface joinRequestViewSchema extends joinRequestView$schematype {} 47 + export interface joinRuleSchema extends joinRule$schematype {} 48 + export interface linkEnabledStatusSchema extends linkEnabledStatus$schematype {} 49 + 50 + export const groupPublicViewSchema = _groupPublicViewSchema as groupPublicViewSchema; 51 + export const joinLinkViewSchema = _joinLinkViewSchema as joinLinkViewSchema; 52 + export const joinRequestViewSchema = _joinRequestViewSchema as joinRequestViewSchema; 53 + export const joinRuleSchema = _joinRuleSchema as joinRuleSchema; 54 + export const linkEnabledStatusSchema = _linkEnabledStatusSchema as linkEnabledStatusSchema; 55 + 56 + export interface GroupPublicView extends v.InferInput<typeof groupPublicViewSchema> {} 57 + export interface JoinLinkView extends v.InferInput<typeof joinLinkViewSchema> {} 58 + export interface JoinRequestView extends v.InferInput<typeof joinRequestViewSchema> {} 59 + export type JoinRule = v.InferInput<typeof joinRuleSchema>; 60 + export type LinkEnabledStatus = v.InferInput<typeof linkEnabledStatusSchema>;
+39
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/disableJoinLink.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyGroupDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.disableJoinLink', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + }), 14 + }, 15 + output: { 16 + type: 'lex', 17 + schema: /*#__PURE__*/ v.object({ 18 + get joinLink() { 19 + return ChatBskyGroupDefs.joinLinkViewSchema; 20 + }, 21 + }), 22 + }, 23 + }); 24 + 25 + type main$schematype = typeof _mainSchema; 26 + 27 + export interface mainSchema extends main$schematype {} 28 + 29 + export const mainSchema = _mainSchema as mainSchema; 30 + 31 + export interface $params {} 32 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 33 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 34 + 35 + declare module '@atcute/lexicons/ambient' { 36 + interface XRPCProcedures { 37 + 'chat.bsky.group.disableJoinLink': mainSchema; 38 + } 39 + }
+48
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/editGroup.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyConvoDefs from '../convo/defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.editGroup', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + /** 14 + * @minLength 1 15 + * @maxLength 1280 16 + * @maxGraphemes 128 17 + */ 18 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 19 + /*#__PURE__*/ v.stringLength(1, 1280), 20 + /*#__PURE__*/ v.stringGraphemes(0, 128), 21 + ]), 22 + }), 23 + }, 24 + output: { 25 + type: 'lex', 26 + schema: /*#__PURE__*/ v.object({ 27 + get convo() { 28 + return ChatBskyConvoDefs.convoViewSchema; 29 + }, 30 + }), 31 + }, 32 + }); 33 + 34 + type main$schematype = typeof _mainSchema; 35 + 36 + export interface mainSchema extends main$schematype {} 37 + 38 + export const mainSchema = _mainSchema as mainSchema; 39 + 40 + export interface $params {} 41 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 42 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 43 + 44 + declare module '@atcute/lexicons/ambient' { 45 + interface XRPCProcedures { 46 + 'chat.bsky.group.editGroup': mainSchema; 47 + } 48 + }
+43
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/editJoinLink.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyGroupDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.editJoinLink', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + get joinRule() { 14 + return /*#__PURE__*/ v.optional(ChatBskyGroupDefs.joinRuleSchema); 15 + }, 16 + requireApproval: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 17 + }), 18 + }, 19 + output: { 20 + type: 'lex', 21 + schema: /*#__PURE__*/ v.object({ 22 + get joinLink() { 23 + return ChatBskyGroupDefs.joinLinkViewSchema; 24 + }, 25 + }), 26 + }, 27 + }); 28 + 29 + type main$schematype = typeof _mainSchema; 30 + 31 + export interface mainSchema extends main$schematype {} 32 + 33 + export const mainSchema = _mainSchema as mainSchema; 34 + 35 + export interface $params {} 36 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 37 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 38 + 39 + declare module '@atcute/lexicons/ambient' { 40 + interface XRPCProcedures { 41 + 'chat.bsky.group.editJoinLink': mainSchema; 42 + } 43 + }
+39
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/enableJoinLink.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyGroupDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.enableJoinLink', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + }), 14 + }, 15 + output: { 16 + type: 'lex', 17 + schema: /*#__PURE__*/ v.object({ 18 + get joinLink() { 19 + return ChatBskyGroupDefs.joinLinkViewSchema; 20 + }, 21 + }), 22 + }, 23 + }); 24 + 25 + type main$schematype = typeof _mainSchema; 26 + 27 + export interface mainSchema extends main$schematype {} 28 + 29 + export const mainSchema = _mainSchema as mainSchema; 30 + 31 + export interface $params {} 32 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 33 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 34 + 35 + declare module '@atcute/lexicons/ambient' { 36 + interface XRPCProcedures { 37 + 'chat.bsky.group.enableJoinLink': mainSchema; 38 + } 39 + }
+34
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/getGroupPublicInfo.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyGroupDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.group.getGroupPublicInfo', { 8 + params: /*#__PURE__*/ v.object({ 9 + code: /*#__PURE__*/ v.string(), 10 + }), 11 + output: { 12 + type: 'lex', 13 + schema: /*#__PURE__*/ v.object({ 14 + get group() { 15 + return ChatBskyGroupDefs.groupPublicViewSchema; 16 + }, 17 + }), 18 + }, 19 + }); 20 + 21 + type main$schematype = typeof _mainSchema; 22 + 23 + export interface mainSchema extends main$schematype {} 24 + 25 + export const mainSchema = _mainSchema as mainSchema; 26 + 27 + export interface $params extends v.InferInput<mainSchema['params']> {} 28 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 29 + 30 + declare module '@atcute/lexicons/ambient' { 31 + interface XRPCQueries { 32 + 'chat.bsky.group.getGroupPublicInfo': mainSchema; 33 + } 34 + }
+45
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/listJoinRequests.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyGroupDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.group.listJoinRequests', { 8 + params: /*#__PURE__*/ v.object({ 9 + convoId: /*#__PURE__*/ v.string(), 10 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + /** 12 + * @minimum 1 13 + * @maximum 100 14 + * @default 50 15 + */ 16 + limit: /*#__PURE__*/ v.optional( 17 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 18 + 50, 19 + ), 20 + }), 21 + output: { 22 + type: 'lex', 23 + schema: /*#__PURE__*/ v.object({ 24 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 25 + get requests() { 26 + return /*#__PURE__*/ v.array(ChatBskyGroupDefs.joinRequestViewSchema); 27 + }, 28 + }), 29 + }, 30 + }); 31 + 32 + type main$schematype = typeof _mainSchema; 33 + 34 + export interface mainSchema extends main$schematype {} 35 + 36 + export const mainSchema = _mainSchema as mainSchema; 37 + 38 + export interface $params extends v.InferInput<mainSchema['params']> {} 39 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 40 + 41 + declare module '@atcute/lexicons/ambient' { 42 + interface XRPCQueries { 43 + 'chat.bsky.group.listJoinRequests': mainSchema; 44 + } 45 + }
+34
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/rejectJoinRequest.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.rejectJoinRequest', { 6 + params: null, 7 + input: { 8 + type: 'lex', 9 + schema: /*#__PURE__*/ v.object({ 10 + convoId: /*#__PURE__*/ v.string(), 11 + member: /*#__PURE__*/ v.didString(), 12 + }), 13 + }, 14 + output: { 15 + type: 'lex', 16 + schema: /*#__PURE__*/ v.object({}), 17 + }, 18 + }); 19 + 20 + type main$schematype = typeof _mainSchema; 21 + 22 + export interface mainSchema extends main$schematype {} 23 + 24 + export const mainSchema = _mainSchema as mainSchema; 25 + 26 + export interface $params {} 27 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 28 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 29 + 30 + declare module '@atcute/lexicons/ambient' { 31 + interface XRPCProcedures { 32 + 'chat.bsky.group.rejectJoinRequest': mainSchema; 33 + } 34 + }
+45
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/removeMembers.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyConvoDefs from '../convo/defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.removeMembers', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + convoId: /*#__PURE__*/ v.string(), 13 + /** 14 + * @minLength 1 15 + */ 16 + members: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 17 + /*#__PURE__*/ v.arrayLength(1), 18 + ]), 19 + }), 20 + }, 21 + output: { 22 + type: 'lex', 23 + schema: /*#__PURE__*/ v.object({ 24 + get convo() { 25 + return ChatBskyConvoDefs.convoViewSchema; 26 + }, 27 + }), 28 + }, 29 + }); 30 + 31 + type main$schematype = typeof _mainSchema; 32 + 33 + export interface mainSchema extends main$schematype {} 34 + 35 + export const mainSchema = _mainSchema as mainSchema; 36 + 37 + export interface $params {} 38 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 39 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 40 + 41 + declare module '@atcute/lexicons/ambient' { 42 + interface XRPCProcedures { 43 + 'chat.bsky.group.removeMembers': mainSchema; 44 + } 45 + }
+43
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/group/requestJoin.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ChatBskyConvoDefs from '../convo/defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.requestJoin', { 8 + params: null, 9 + input: { 10 + type: 'lex', 11 + schema: /*#__PURE__*/ v.object({ 12 + code: /*#__PURE__*/ v.string(), 13 + }), 14 + }, 15 + output: { 16 + type: 'lex', 17 + schema: /*#__PURE__*/ v.object({ 18 + /** 19 + * The group convo joined. This is only present in the case of status=joined 20 + */ 21 + get convo() { 22 + return /*#__PURE__*/ v.optional(ChatBskyConvoDefs.convoViewSchema); 23 + }, 24 + status: /*#__PURE__*/ v.string<'joined' | 'pending' | (string & {})>(), 25 + }), 26 + }, 27 + }); 28 + 29 + type main$schematype = typeof _mainSchema; 30 + 31 + export interface mainSchema extends main$schematype {} 32 + 33 + export const mainSchema = _mainSchema as mainSchema; 34 + 35 + export interface $params {} 36 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 37 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 38 + 39 + declare module '@atcute/lexicons/ambient' { 40 + interface XRPCProcedures { 41 + 'chat.bsky.group.requestJoin': mainSchema; 42 + } 43 + }
+1
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/moderation/getMessageContext.ts
··· 28 28 /*#__PURE__*/ v.variant([ 29 29 ChatBskyConvoDefs.deletedMessageViewSchema, 30 30 ChatBskyConvoDefs.messageViewSchema, 31 + ChatBskyConvoDefs.systemMessageViewSchema, 31 32 ]), 32 33 ); 33 34 },
+52
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/moderation/subscribeModEvents.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _eventConvoFirstMessageSchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional( 7 + /*#__PURE__*/ v.literal('chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage'), 8 + ), 9 + convoId: /*#__PURE__*/ v.string(), 10 + createdAt: /*#__PURE__*/ v.datetimeString(), 11 + messageId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 + /** 13 + * The list of DIDs message recipients. Does not include the sender, which is in the `user` field 14 + */ 15 + recipients: /*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), 16 + rev: /*#__PURE__*/ v.string(), 17 + /** 18 + * The DID of the message author. 19 + */ 20 + user: /*#__PURE__*/ v.didString(), 21 + }); 22 + const _mainSchema = /*#__PURE__*/ v.subscription('chat.bsky.moderation.subscribeModEvents', { 23 + params: /*#__PURE__*/ v.object({ 24 + /** 25 + * The last known event seq number to backfill from. Use '2222222222222' to backfill from the beginning. Don't specify a cursor to listen only for new events. 26 + */ 27 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 28 + }), 29 + get message() { 30 + return /*#__PURE__*/ v.variant([eventConvoFirstMessageSchema]); 31 + }, 32 + }); 33 + 34 + type eventConvoFirstMessage$schematype = typeof _eventConvoFirstMessageSchema; 35 + type main$schematype = typeof _mainSchema; 36 + 37 + export interface eventConvoFirstMessageSchema extends eventConvoFirstMessage$schematype {} 38 + export interface mainSchema extends main$schematype {} 39 + 40 + export const eventConvoFirstMessageSchema = _eventConvoFirstMessageSchema as eventConvoFirstMessageSchema; 41 + export const mainSchema = _mainSchema as mainSchema; 42 + 43 + export interface EventConvoFirstMessage extends v.InferInput<typeof eventConvoFirstMessageSchema> {} 44 + 45 + export interface $params extends v.InferInput<mainSchema['params']> {} 46 + export type $message = v.InferInput<mainSchema['message']>; 47 + 48 + declare module '@atcute/lexicons/ambient' { 49 + interface XRPCSubscriptions { 50 + 'chat.bsky.moderation.subscribeModEvents': mainSchema; 51 + } 52 + }