@atproto/api 0.20.0-next.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -10
- package/dist/client/lexicons.d.ts +1022 -104
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +581 -7
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +2 -1
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.d.ts +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.js +3 -3
- package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.d.ts +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.js +3 -3
- package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +5 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +206 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +63 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
- package/dist/rich-text/detection.js +1 -1
- package/dist/rich-text/detection.js.map +1 -1
- package/jest.config.cjs +9 -2
- package/package.json +6 -6
- package/src/client/lexicons.ts +606 -7
- package/src/client/types/app/bsky/embed/external.ts +2 -1
- package/src/client/types/chat/bsky/convo/defs.ts +1 -1
- package/src/client/types/chat/bsky/group/addMembers.ts +2 -3
- package/src/client/types/chat/bsky/group/createGroup.ts +2 -3
- package/src/client/types/chat/bsky/moderation/getMessageContext.ts +4 -1
- package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +328 -0
- package/src/rich-text/detection.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -2597,9 +2597,12 @@ export const schemaDict = {
|
|
|
2597
2597
|
accept: ['image/*'],
|
|
2598
2598
|
maxSize: 1000000,
|
|
2599
2599
|
},
|
|
2600
|
-
|
|
2601
|
-
type: '
|
|
2602
|
-
|
|
2600
|
+
associatedRecords: {
|
|
2601
|
+
type: 'array',
|
|
2602
|
+
items: {
|
|
2603
|
+
type: 'ref',
|
|
2604
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
2605
|
+
},
|
|
2603
2606
|
description: 'The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record.',
|
|
2604
2607
|
},
|
|
2605
2608
|
},
|
|
@@ -9950,7 +9953,7 @@ export const schemaDict = {
|
|
|
9950
9953
|
type: 'string',
|
|
9951
9954
|
},
|
|
9952
9955
|
members: {
|
|
9953
|
-
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
|
|
9956
|
+
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 added 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. Use chat.bsky.convo.getConvoMembers to list all members.',
|
|
9954
9957
|
type: 'array',
|
|
9955
9958
|
items: {
|
|
9956
9959
|
type: 'ref',
|
|
@@ -11523,7 +11526,7 @@ export const schemaDict = {
|
|
|
11523
11526
|
name: 'BlockedActor',
|
|
11524
11527
|
},
|
|
11525
11528
|
{
|
|
11526
|
-
name: '
|
|
11529
|
+
name: 'UserForbidsGroups',
|
|
11527
11530
|
},
|
|
11528
11531
|
{
|
|
11529
11532
|
name: 'ConvoLocked',
|
|
@@ -11652,7 +11655,7 @@ export const schemaDict = {
|
|
|
11652
11655
|
name: 'BlockedActor',
|
|
11653
11656
|
},
|
|
11654
11657
|
{
|
|
11655
|
-
name: '
|
|
11658
|
+
name: 'UserForbidsGroups',
|
|
11656
11659
|
},
|
|
11657
11660
|
{
|
|
11658
11661
|
name: 'NotFollowedBySender',
|
|
@@ -12368,10 +12371,19 @@ export const schemaDict = {
|
|
|
12368
12371
|
before: {
|
|
12369
12372
|
type: 'integer',
|
|
12370
12373
|
default: 5,
|
|
12374
|
+
description: 'Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages before the target, up to `maxInterleavedSystemMessages` system messages immediately preceding the target are returned instead.',
|
|
12371
12375
|
},
|
|
12372
12376
|
after: {
|
|
12373
12377
|
type: 'integer',
|
|
12374
12378
|
default: 5,
|
|
12379
|
+
description: 'Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages after the target, up to `maxInterleavedSystemMessages` system messages immediately following the target are returned instead.',
|
|
12380
|
+
},
|
|
12381
|
+
maxInterleavedSystemMessages: {
|
|
12382
|
+
type: 'integer',
|
|
12383
|
+
default: 10,
|
|
12384
|
+
minimum: 0,
|
|
12385
|
+
maximum: 1000,
|
|
12386
|
+
description: 'Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept.',
|
|
12375
12387
|
},
|
|
12376
12388
|
},
|
|
12377
12389
|
},
|
|
@@ -12387,7 +12399,6 @@ export const schemaDict = {
|
|
|
12387
12399
|
type: 'union',
|
|
12388
12400
|
refs: [
|
|
12389
12401
|
'lex:chat.bsky.convo.defs#messageView',
|
|
12390
|
-
'lex:chat.bsky.convo.defs#deletedMessageView',
|
|
12391
12402
|
'lex:chat.bsky.convo.defs#systemMessageView',
|
|
12392
12403
|
],
|
|
12393
12404
|
},
|
|
@@ -12419,6 +12430,15 @@ export const schemaDict = {
|
|
|
12419
12430
|
type: 'union',
|
|
12420
12431
|
refs: [
|
|
12421
12432
|
'lex:chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage',
|
|
12433
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatCreated',
|
|
12434
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberAdded',
|
|
12435
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberJoined',
|
|
12436
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequest',
|
|
12437
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestApproved',
|
|
12438
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestRejected',
|
|
12439
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventChatAccepted',
|
|
12440
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberLeft',
|
|
12441
|
+
'lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatUpdated',
|
|
12422
12442
|
],
|
|
12423
12443
|
},
|
|
12424
12444
|
},
|
|
@@ -12434,6 +12454,7 @@ export const schemaDict = {
|
|
|
12434
12454
|
},
|
|
12435
12455
|
eventConvoFirstMessage: {
|
|
12436
12456
|
type: 'object',
|
|
12457
|
+
description: 'Fired when the first message was sent on a convo.',
|
|
12437
12458
|
required: ['createdAt', 'rev', 'convoId', 'user', 'recipients'],
|
|
12438
12459
|
properties: {
|
|
12439
12460
|
convoId: {
|
|
@@ -12464,6 +12485,559 @@ export const schemaDict = {
|
|
|
12464
12485
|
},
|
|
12465
12486
|
},
|
|
12466
12487
|
},
|
|
12488
|
+
eventGroupChatCreated: {
|
|
12489
|
+
type: 'object',
|
|
12490
|
+
description: 'Fire when a group chat is created.',
|
|
12491
|
+
required: [
|
|
12492
|
+
'actorDid',
|
|
12493
|
+
'convoCreatedAt',
|
|
12494
|
+
'convoId',
|
|
12495
|
+
'createdAt',
|
|
12496
|
+
'groupMemberCount',
|
|
12497
|
+
'groupName',
|
|
12498
|
+
'initialMemberDids',
|
|
12499
|
+
'ownerDid',
|
|
12500
|
+
'rev',
|
|
12501
|
+
],
|
|
12502
|
+
properties: {
|
|
12503
|
+
actorDid: {
|
|
12504
|
+
description: 'The DID of the actor performing the action. For this event, same as ownerDid.',
|
|
12505
|
+
type: 'string',
|
|
12506
|
+
format: 'did',
|
|
12507
|
+
},
|
|
12508
|
+
convoCreatedAt: {
|
|
12509
|
+
description: 'When the group was originally created.',
|
|
12510
|
+
type: 'string',
|
|
12511
|
+
format: 'datetime',
|
|
12512
|
+
},
|
|
12513
|
+
convoId: {
|
|
12514
|
+
type: 'string',
|
|
12515
|
+
},
|
|
12516
|
+
createdAt: {
|
|
12517
|
+
type: 'string',
|
|
12518
|
+
format: 'datetime',
|
|
12519
|
+
},
|
|
12520
|
+
groupMemberCount: {
|
|
12521
|
+
description: 'Current member count at the time of the event.',
|
|
12522
|
+
type: 'integer',
|
|
12523
|
+
},
|
|
12524
|
+
groupName: {
|
|
12525
|
+
description: 'The name set at creation time.',
|
|
12526
|
+
type: 'string',
|
|
12527
|
+
},
|
|
12528
|
+
initialMemberDids: {
|
|
12529
|
+
description: 'DIDs of everyone added at creation time.',
|
|
12530
|
+
type: 'array',
|
|
12531
|
+
items: {
|
|
12532
|
+
type: 'string',
|
|
12533
|
+
format: 'did',
|
|
12534
|
+
},
|
|
12535
|
+
},
|
|
12536
|
+
ownerDid: {
|
|
12537
|
+
description: 'The DID of the group chat owner.',
|
|
12538
|
+
type: 'string',
|
|
12539
|
+
format: 'did',
|
|
12540
|
+
},
|
|
12541
|
+
rev: {
|
|
12542
|
+
type: 'string',
|
|
12543
|
+
},
|
|
12544
|
+
},
|
|
12545
|
+
},
|
|
12546
|
+
eventGroupChatMemberAdded: {
|
|
12547
|
+
type: 'object',
|
|
12548
|
+
description: "Fired when a member is added to a group chat. Note that members are added in the 'request' state.",
|
|
12549
|
+
required: [
|
|
12550
|
+
'actorDid',
|
|
12551
|
+
'convoCreatedAt',
|
|
12552
|
+
'convoId',
|
|
12553
|
+
'createdAt',
|
|
12554
|
+
'groupMemberCount',
|
|
12555
|
+
'groupName',
|
|
12556
|
+
'ownerDid',
|
|
12557
|
+
'requestMembersCount',
|
|
12558
|
+
'rev',
|
|
12559
|
+
'subjectDid',
|
|
12560
|
+
'subjectFollowsOwner',
|
|
12561
|
+
],
|
|
12562
|
+
properties: {
|
|
12563
|
+
actorDid: {
|
|
12564
|
+
description: 'The DID of the actor performing the action. For this event, same as ownerDid.',
|
|
12565
|
+
type: 'string',
|
|
12566
|
+
format: 'did',
|
|
12567
|
+
},
|
|
12568
|
+
convoCreatedAt: {
|
|
12569
|
+
description: 'When the group was originally created.',
|
|
12570
|
+
type: 'string',
|
|
12571
|
+
format: 'datetime',
|
|
12572
|
+
},
|
|
12573
|
+
convoId: {
|
|
12574
|
+
type: 'string',
|
|
12575
|
+
},
|
|
12576
|
+
createdAt: {
|
|
12577
|
+
type: 'string',
|
|
12578
|
+
format: 'datetime',
|
|
12579
|
+
},
|
|
12580
|
+
groupMemberCount: {
|
|
12581
|
+
description: 'Current member count at the time of the event.',
|
|
12582
|
+
type: 'integer',
|
|
12583
|
+
},
|
|
12584
|
+
groupName: {
|
|
12585
|
+
type: 'string',
|
|
12586
|
+
},
|
|
12587
|
+
ownerDid: {
|
|
12588
|
+
description: 'The DID of the group chat owner.',
|
|
12589
|
+
type: 'string',
|
|
12590
|
+
format: 'did',
|
|
12591
|
+
},
|
|
12592
|
+
requestMembersCount: {
|
|
12593
|
+
description: 'The number of members who have not yet accepted the convo.',
|
|
12594
|
+
type: 'integer',
|
|
12595
|
+
},
|
|
12596
|
+
rev: {
|
|
12597
|
+
type: 'string',
|
|
12598
|
+
},
|
|
12599
|
+
subjectDid: {
|
|
12600
|
+
description: 'The DID of the member who was added.',
|
|
12601
|
+
type: 'string',
|
|
12602
|
+
format: 'did',
|
|
12603
|
+
},
|
|
12604
|
+
subjectFollowsOwner: {
|
|
12605
|
+
description: 'Whether the added member follows the group owner.',
|
|
12606
|
+
type: 'boolean',
|
|
12607
|
+
},
|
|
12608
|
+
},
|
|
12609
|
+
},
|
|
12610
|
+
eventGroupChatMemberJoined: {
|
|
12611
|
+
type: 'object',
|
|
12612
|
+
description: 'Fired when a member joins a group chat via an join link that does not require approval.',
|
|
12613
|
+
required: [
|
|
12614
|
+
'actorDid',
|
|
12615
|
+
'convoCreatedAt',
|
|
12616
|
+
'convoId',
|
|
12617
|
+
'createdAt',
|
|
12618
|
+
'groupMemberCount',
|
|
12619
|
+
'groupName',
|
|
12620
|
+
'joinLinkCode',
|
|
12621
|
+
'ownerDid',
|
|
12622
|
+
'rev',
|
|
12623
|
+
'subjectFollowsOwner',
|
|
12624
|
+
],
|
|
12625
|
+
properties: {
|
|
12626
|
+
actorDid: {
|
|
12627
|
+
description: 'The DID of the person joining.',
|
|
12628
|
+
type: 'string',
|
|
12629
|
+
format: 'did',
|
|
12630
|
+
},
|
|
12631
|
+
convoCreatedAt: {
|
|
12632
|
+
description: 'When the group was originally created.',
|
|
12633
|
+
type: 'string',
|
|
12634
|
+
format: 'datetime',
|
|
12635
|
+
},
|
|
12636
|
+
convoId: {
|
|
12637
|
+
type: 'string',
|
|
12638
|
+
},
|
|
12639
|
+
createdAt: {
|
|
12640
|
+
type: 'string',
|
|
12641
|
+
format: 'datetime',
|
|
12642
|
+
},
|
|
12643
|
+
groupMemberCount: {
|
|
12644
|
+
description: 'Current member count at the time of the event.',
|
|
12645
|
+
type: 'integer',
|
|
12646
|
+
},
|
|
12647
|
+
groupName: {
|
|
12648
|
+
type: 'string',
|
|
12649
|
+
},
|
|
12650
|
+
joinLinkCode: {
|
|
12651
|
+
description: 'The code of the join link used to join.',
|
|
12652
|
+
type: 'string',
|
|
12653
|
+
},
|
|
12654
|
+
ownerDid: {
|
|
12655
|
+
description: 'The DID of the group chat owner.',
|
|
12656
|
+
type: 'string',
|
|
12657
|
+
format: 'did',
|
|
12658
|
+
},
|
|
12659
|
+
rev: {
|
|
12660
|
+
type: 'string',
|
|
12661
|
+
},
|
|
12662
|
+
subjectFollowsOwner: {
|
|
12663
|
+
description: 'Whether the joining member follows the group owner.',
|
|
12664
|
+
type: 'boolean',
|
|
12665
|
+
},
|
|
12666
|
+
},
|
|
12667
|
+
},
|
|
12668
|
+
eventGroupChatJoinRequest: {
|
|
12669
|
+
type: 'object',
|
|
12670
|
+
description: 'Fired when a user requests to join a group chat via an join link that requires approval.',
|
|
12671
|
+
required: [
|
|
12672
|
+
'actorDid',
|
|
12673
|
+
'convoCreatedAt',
|
|
12674
|
+
'convoId',
|
|
12675
|
+
'createdAt',
|
|
12676
|
+
'groupMemberCount',
|
|
12677
|
+
'groupName',
|
|
12678
|
+
'joinLinkCode',
|
|
12679
|
+
'ownerDid',
|
|
12680
|
+
'rev',
|
|
12681
|
+
'subjectFollowsOwner',
|
|
12682
|
+
],
|
|
12683
|
+
properties: {
|
|
12684
|
+
actorDid: {
|
|
12685
|
+
description: 'The DID of the person requesting to join.',
|
|
12686
|
+
type: 'string',
|
|
12687
|
+
format: 'did',
|
|
12688
|
+
},
|
|
12689
|
+
convoCreatedAt: {
|
|
12690
|
+
description: 'When the group was originally created.',
|
|
12691
|
+
type: 'string',
|
|
12692
|
+
format: 'datetime',
|
|
12693
|
+
},
|
|
12694
|
+
convoId: {
|
|
12695
|
+
type: 'string',
|
|
12696
|
+
},
|
|
12697
|
+
createdAt: {
|
|
12698
|
+
type: 'string',
|
|
12699
|
+
format: 'datetime',
|
|
12700
|
+
},
|
|
12701
|
+
groupMemberCount: {
|
|
12702
|
+
description: 'Current member count at the time of the event.',
|
|
12703
|
+
type: 'integer',
|
|
12704
|
+
},
|
|
12705
|
+
groupName: {
|
|
12706
|
+
type: 'string',
|
|
12707
|
+
},
|
|
12708
|
+
joinLinkCode: {
|
|
12709
|
+
description: 'The code of the join link used to request joining.',
|
|
12710
|
+
type: 'string',
|
|
12711
|
+
},
|
|
12712
|
+
ownerDid: {
|
|
12713
|
+
description: 'The DID of the group chat owner.',
|
|
12714
|
+
type: 'string',
|
|
12715
|
+
format: 'did',
|
|
12716
|
+
},
|
|
12717
|
+
rev: {
|
|
12718
|
+
type: 'string',
|
|
12719
|
+
},
|
|
12720
|
+
subjectFollowsOwner: {
|
|
12721
|
+
description: 'Whether the requesting member follows the group owner.',
|
|
12722
|
+
type: 'boolean',
|
|
12723
|
+
},
|
|
12724
|
+
},
|
|
12725
|
+
},
|
|
12726
|
+
eventGroupChatJoinRequestApproved: {
|
|
12727
|
+
type: 'object',
|
|
12728
|
+
description: 'Fired when a join request is approved by the group owner.',
|
|
12729
|
+
required: [
|
|
12730
|
+
'actorDid',
|
|
12731
|
+
'convoCreatedAt',
|
|
12732
|
+
'convoId',
|
|
12733
|
+
'createdAt',
|
|
12734
|
+
'groupMemberCount',
|
|
12735
|
+
'groupName',
|
|
12736
|
+
'ownerDid',
|
|
12737
|
+
'rev',
|
|
12738
|
+
'subjectDid',
|
|
12739
|
+
],
|
|
12740
|
+
properties: {
|
|
12741
|
+
actorDid: {
|
|
12742
|
+
description: 'The DID of the owner approving the request.',
|
|
12743
|
+
type: 'string',
|
|
12744
|
+
format: 'did',
|
|
12745
|
+
},
|
|
12746
|
+
convoCreatedAt: {
|
|
12747
|
+
description: 'When the group was originally created.',
|
|
12748
|
+
type: 'string',
|
|
12749
|
+
format: 'datetime',
|
|
12750
|
+
},
|
|
12751
|
+
convoId: {
|
|
12752
|
+
type: 'string',
|
|
12753
|
+
},
|
|
12754
|
+
createdAt: {
|
|
12755
|
+
type: 'string',
|
|
12756
|
+
format: 'datetime',
|
|
12757
|
+
},
|
|
12758
|
+
groupMemberCount: {
|
|
12759
|
+
description: 'Current member count at the time of the event.',
|
|
12760
|
+
type: 'integer',
|
|
12761
|
+
},
|
|
12762
|
+
groupName: {
|
|
12763
|
+
type: 'string',
|
|
12764
|
+
},
|
|
12765
|
+
ownerDid: {
|
|
12766
|
+
description: 'The DID of the group chat owner.',
|
|
12767
|
+
type: 'string',
|
|
12768
|
+
format: 'did',
|
|
12769
|
+
},
|
|
12770
|
+
rev: {
|
|
12771
|
+
type: 'string',
|
|
12772
|
+
},
|
|
12773
|
+
subjectDid: {
|
|
12774
|
+
description: 'The DID of the member whose request was approved.',
|
|
12775
|
+
type: 'string',
|
|
12776
|
+
format: 'did',
|
|
12777
|
+
},
|
|
12778
|
+
},
|
|
12779
|
+
},
|
|
12780
|
+
eventGroupChatJoinRequestRejected: {
|
|
12781
|
+
type: 'object',
|
|
12782
|
+
description: 'Fired when a join request is rejected by the group owner.',
|
|
12783
|
+
required: [
|
|
12784
|
+
'actorDid',
|
|
12785
|
+
'convoCreatedAt',
|
|
12786
|
+
'convoId',
|
|
12787
|
+
'createdAt',
|
|
12788
|
+
'groupMemberCount',
|
|
12789
|
+
'groupName',
|
|
12790
|
+
'ownerDid',
|
|
12791
|
+
'rev',
|
|
12792
|
+
'subjectDid',
|
|
12793
|
+
],
|
|
12794
|
+
properties: {
|
|
12795
|
+
actorDid: {
|
|
12796
|
+
description: 'The DID of the owner rejecting the request.',
|
|
12797
|
+
type: 'string',
|
|
12798
|
+
format: 'did',
|
|
12799
|
+
},
|
|
12800
|
+
convoCreatedAt: {
|
|
12801
|
+
description: 'When the group was originally created.',
|
|
12802
|
+
type: 'string',
|
|
12803
|
+
format: 'datetime',
|
|
12804
|
+
},
|
|
12805
|
+
convoId: {
|
|
12806
|
+
type: 'string',
|
|
12807
|
+
},
|
|
12808
|
+
createdAt: {
|
|
12809
|
+
type: 'string',
|
|
12810
|
+
format: 'datetime',
|
|
12811
|
+
},
|
|
12812
|
+
groupMemberCount: {
|
|
12813
|
+
description: 'Current member count at the time of the event.',
|
|
12814
|
+
type: 'integer',
|
|
12815
|
+
},
|
|
12816
|
+
groupName: {
|
|
12817
|
+
type: 'string',
|
|
12818
|
+
},
|
|
12819
|
+
ownerDid: {
|
|
12820
|
+
description: 'The DID of the group chat owner.',
|
|
12821
|
+
type: 'string',
|
|
12822
|
+
format: 'did',
|
|
12823
|
+
},
|
|
12824
|
+
rev: {
|
|
12825
|
+
type: 'string',
|
|
12826
|
+
},
|
|
12827
|
+
subjectDid: {
|
|
12828
|
+
description: 'The DID of the member whose request was rejected.',
|
|
12829
|
+
type: 'string',
|
|
12830
|
+
format: 'did',
|
|
12831
|
+
},
|
|
12832
|
+
},
|
|
12833
|
+
},
|
|
12834
|
+
eventChatAccepted: {
|
|
12835
|
+
type: 'object',
|
|
12836
|
+
description: 'Fired when a user accepts a chat convo, either explicitly or by sending a message.',
|
|
12837
|
+
required: [
|
|
12838
|
+
'actorDid',
|
|
12839
|
+
'convoCreatedAt',
|
|
12840
|
+
'convoId',
|
|
12841
|
+
'createdAt',
|
|
12842
|
+
'method',
|
|
12843
|
+
'rev',
|
|
12844
|
+
],
|
|
12845
|
+
properties: {
|
|
12846
|
+
actorDid: {
|
|
12847
|
+
description: 'The DID of the person accepting the convo.',
|
|
12848
|
+
type: 'string',
|
|
12849
|
+
format: 'did',
|
|
12850
|
+
},
|
|
12851
|
+
convoCreatedAt: {
|
|
12852
|
+
description: 'When the convo was originally created.',
|
|
12853
|
+
type: 'string',
|
|
12854
|
+
format: 'datetime',
|
|
12855
|
+
},
|
|
12856
|
+
convoId: {
|
|
12857
|
+
type: 'string',
|
|
12858
|
+
},
|
|
12859
|
+
createdAt: {
|
|
12860
|
+
type: 'string',
|
|
12861
|
+
format: 'datetime',
|
|
12862
|
+
},
|
|
12863
|
+
groupMemberCount: {
|
|
12864
|
+
description: 'Current member count at the time of the event. Only present for group convos.',
|
|
12865
|
+
type: 'integer',
|
|
12866
|
+
},
|
|
12867
|
+
groupName: {
|
|
12868
|
+
description: 'The name of the group chat. Only present for group convos.',
|
|
12869
|
+
type: 'string',
|
|
12870
|
+
},
|
|
12871
|
+
method: {
|
|
12872
|
+
description: 'How the convo was accepted.',
|
|
12873
|
+
type: 'string',
|
|
12874
|
+
knownValues: ['explicit', 'message'],
|
|
12875
|
+
},
|
|
12876
|
+
ownerDid: {
|
|
12877
|
+
description: 'The DID of the group chat owner. Only present for group convos.',
|
|
12878
|
+
type: 'string',
|
|
12879
|
+
format: 'did',
|
|
12880
|
+
},
|
|
12881
|
+
rev: {
|
|
12882
|
+
type: 'string',
|
|
12883
|
+
},
|
|
12884
|
+
},
|
|
12885
|
+
},
|
|
12886
|
+
eventGroupChatMemberLeft: {
|
|
12887
|
+
type: 'object',
|
|
12888
|
+
description: 'Fired when a member leaves or is removed from a group chat.',
|
|
12889
|
+
required: [
|
|
12890
|
+
'actorDid',
|
|
12891
|
+
'convoCreatedAt',
|
|
12892
|
+
'convoId',
|
|
12893
|
+
'createdAt',
|
|
12894
|
+
'groupMemberCount',
|
|
12895
|
+
'groupName',
|
|
12896
|
+
'leaveMethod',
|
|
12897
|
+
'ownerDid',
|
|
12898
|
+
'rev',
|
|
12899
|
+
'subjectDid',
|
|
12900
|
+
],
|
|
12901
|
+
properties: {
|
|
12902
|
+
actorDid: {
|
|
12903
|
+
description: 'The DID of the actor. For voluntary: the person leaving. For kicked: the owner.',
|
|
12904
|
+
type: 'string',
|
|
12905
|
+
format: 'did',
|
|
12906
|
+
},
|
|
12907
|
+
convoCreatedAt: {
|
|
12908
|
+
description: 'When the group was originally created.',
|
|
12909
|
+
type: 'string',
|
|
12910
|
+
format: 'datetime',
|
|
12911
|
+
},
|
|
12912
|
+
convoId: {
|
|
12913
|
+
type: 'string',
|
|
12914
|
+
},
|
|
12915
|
+
createdAt: {
|
|
12916
|
+
type: 'string',
|
|
12917
|
+
format: 'datetime',
|
|
12918
|
+
},
|
|
12919
|
+
groupMemberCount: {
|
|
12920
|
+
description: 'Current member count at the time of the event.',
|
|
12921
|
+
type: 'integer',
|
|
12922
|
+
},
|
|
12923
|
+
groupName: {
|
|
12924
|
+
type: 'string',
|
|
12925
|
+
},
|
|
12926
|
+
leaveMethod: {
|
|
12927
|
+
description: 'How the member left.',
|
|
12928
|
+
type: 'string',
|
|
12929
|
+
knownValues: ['voluntary', 'kicked'],
|
|
12930
|
+
},
|
|
12931
|
+
ownerDid: {
|
|
12932
|
+
description: 'The DID of the group chat owner.',
|
|
12933
|
+
type: 'string',
|
|
12934
|
+
format: 'did',
|
|
12935
|
+
},
|
|
12936
|
+
rev: {
|
|
12937
|
+
type: 'string',
|
|
12938
|
+
},
|
|
12939
|
+
subjectDid: {
|
|
12940
|
+
description: 'The DID of the member who left or was removed.',
|
|
12941
|
+
type: 'string',
|
|
12942
|
+
format: 'did',
|
|
12943
|
+
},
|
|
12944
|
+
},
|
|
12945
|
+
},
|
|
12946
|
+
eventGroupChatUpdated: {
|
|
12947
|
+
type: 'object',
|
|
12948
|
+
description: "Fired when a group chat's metadata or status changes.",
|
|
12949
|
+
required: [
|
|
12950
|
+
'actorDid',
|
|
12951
|
+
'convoCreatedAt',
|
|
12952
|
+
'convoId',
|
|
12953
|
+
'createdAt',
|
|
12954
|
+
'groupMemberCount',
|
|
12955
|
+
'groupName',
|
|
12956
|
+
'ownerDid',
|
|
12957
|
+
'rev',
|
|
12958
|
+
'updateType',
|
|
12959
|
+
],
|
|
12960
|
+
properties: {
|
|
12961
|
+
actorDid: {
|
|
12962
|
+
description: 'The DID of the actor performing the action (the owner).',
|
|
12963
|
+
type: 'string',
|
|
12964
|
+
format: 'did',
|
|
12965
|
+
},
|
|
12966
|
+
convoCreatedAt: {
|
|
12967
|
+
description: 'When the group was originally created.',
|
|
12968
|
+
type: 'string',
|
|
12969
|
+
format: 'datetime',
|
|
12970
|
+
},
|
|
12971
|
+
convoId: {
|
|
12972
|
+
type: 'string',
|
|
12973
|
+
},
|
|
12974
|
+
createdAt: {
|
|
12975
|
+
type: 'string',
|
|
12976
|
+
format: 'datetime',
|
|
12977
|
+
},
|
|
12978
|
+
groupMemberCount: {
|
|
12979
|
+
description: 'Current member count at the time of the event.',
|
|
12980
|
+
type: 'integer',
|
|
12981
|
+
},
|
|
12982
|
+
groupName: {
|
|
12983
|
+
description: 'Current group name.',
|
|
12984
|
+
type: 'string',
|
|
12985
|
+
},
|
|
12986
|
+
joinLinkCode: {
|
|
12987
|
+
description: 'The code of the join link. Only present when updateType is join-link-related.',
|
|
12988
|
+
type: 'string',
|
|
12989
|
+
},
|
|
12990
|
+
joinLinkFollowersOnly: {
|
|
12991
|
+
description: 'Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related.',
|
|
12992
|
+
type: 'boolean',
|
|
12993
|
+
},
|
|
12994
|
+
joinLinkRequiresApproval: {
|
|
12995
|
+
description: 'Whether the join link requires owner approval to join. Only present when updateType is join-link-related.',
|
|
12996
|
+
type: 'boolean',
|
|
12997
|
+
},
|
|
12998
|
+
lockReason: {
|
|
12999
|
+
description: "Why the group was locked. Only present when updateType is 'locked'.",
|
|
13000
|
+
type: 'string',
|
|
13001
|
+
knownValues: [
|
|
13002
|
+
'owner_action',
|
|
13003
|
+
'owner_left',
|
|
13004
|
+
'owner_deactivated',
|
|
13005
|
+
'owner_deleted',
|
|
13006
|
+
'owner_taken_down',
|
|
13007
|
+
'label_applied',
|
|
13008
|
+
],
|
|
13009
|
+
},
|
|
13010
|
+
newName: {
|
|
13011
|
+
description: "The new group name. Only present when updateType is 'name_changed'.",
|
|
13012
|
+
type: 'string',
|
|
13013
|
+
},
|
|
13014
|
+
oldName: {
|
|
13015
|
+
description: "The previous group name. Only present when updateType is 'name_changed'.",
|
|
13016
|
+
type: 'string',
|
|
13017
|
+
},
|
|
13018
|
+
ownerDid: {
|
|
13019
|
+
description: 'The DID of the group chat owner.',
|
|
13020
|
+
type: 'string',
|
|
13021
|
+
format: 'did',
|
|
13022
|
+
},
|
|
13023
|
+
rev: {
|
|
13024
|
+
type: 'string',
|
|
13025
|
+
},
|
|
13026
|
+
updateType: {
|
|
13027
|
+
description: 'What changed.',
|
|
13028
|
+
type: 'string',
|
|
13029
|
+
knownValues: [
|
|
13030
|
+
'name_changed',
|
|
13031
|
+
'locked',
|
|
13032
|
+
'locked_permanently',
|
|
13033
|
+
'unlocked',
|
|
13034
|
+
'join_link_created',
|
|
13035
|
+
'join_link_disabled',
|
|
13036
|
+
'join_link_settings_changed',
|
|
13037
|
+
],
|
|
13038
|
+
},
|
|
13039
|
+
},
|
|
13040
|
+
},
|
|
12467
13041
|
},
|
|
12468
13042
|
},
|
|
12469
13043
|
ChatBskyModerationUpdateActorAccess: {
|