@atproto/ozone 0.1.172 → 0.1.173

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/daemon/event-reverser.d.ts +1 -0
  3. package/dist/daemon/event-reverser.d.ts.map +1 -1
  4. package/dist/daemon/event-reverser.js +42 -1
  5. package/dist/daemon/event-reverser.js.map +1 -1
  6. package/dist/db/migrations/20260428T000000000Z-add-expiring-tag-table.d.ts +4 -0
  7. package/dist/db/migrations/20260428T000000000Z-add-expiring-tag-table.d.ts.map +1 -0
  8. package/dist/db/migrations/20260428T000000000Z-add-expiring-tag-table.js +32 -0
  9. package/dist/db/migrations/20260428T000000000Z-add-expiring-tag-table.js.map +1 -0
  10. package/dist/db/migrations/index.d.ts +1 -0
  11. package/dist/db/migrations/index.d.ts.map +1 -1
  12. package/dist/db/migrations/index.js +2 -1
  13. package/dist/db/migrations/index.js.map +1 -1
  14. package/dist/db/schema/expiring_tag.d.ts +15 -0
  15. package/dist/db/schema/expiring_tag.d.ts.map +1 -0
  16. package/dist/db/schema/expiring_tag.js +5 -0
  17. package/dist/db/schema/expiring_tag.js.map +1 -0
  18. package/dist/db/schema/index.d.ts +2 -1
  19. package/dist/db/schema/index.d.ts.map +1 -1
  20. package/dist/db/schema/index.js.map +1 -1
  21. package/dist/lexicon/lexicons.d.ts +264 -40
  22. package/dist/lexicon/lexicons.d.ts.map +1 -1
  23. package/dist/lexicon/lexicons.js +132 -19
  24. package/dist/lexicon/lexicons.js.map +1 -1
  25. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +8 -2
  26. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -1
  27. package/dist/lexicon/types/chat/bsky/actor/defs.js +9 -0
  28. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -1
  29. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +37 -10
  30. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -1
  31. package/dist/lexicon/types/chat/bsky/convo/defs.js +9 -0
  32. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
  33. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +3 -0
  34. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
  35. package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -1
  36. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -0
  37. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  38. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  39. package/dist/mod-service/expiring-tags.d.ts +27 -0
  40. package/dist/mod-service/expiring-tags.d.ts.map +1 -0
  41. package/dist/mod-service/expiring-tags.js +62 -0
  42. package/dist/mod-service/expiring-tags.js.map +1 -0
  43. package/dist/mod-service/index.d.ts.map +1 -1
  44. package/dist/mod-service/index.js +22 -0
  45. package/dist/mod-service/index.js.map +1 -1
  46. package/dist/mod-service/status.d.ts +4 -0
  47. package/dist/mod-service/status.d.ts.map +1 -1
  48. package/package.json +4 -4
  49. package/src/daemon/event-reverser.ts +50 -1
  50. package/src/db/migrations/20260428T000000000Z-add-expiring-tag-table.ts +32 -0
  51. package/src/db/migrations/index.ts +1 -0
  52. package/src/db/schema/expiring_tag.ts +17 -0
  53. package/src/db/schema/index.ts +3 -1
  54. package/src/lexicon/lexicons.ts +138 -19
  55. package/src/lexicon/types/chat/bsky/actor/defs.ts +17 -1
  56. package/src/lexicon/types/chat/bsky/convo/defs.ts +50 -10
  57. package/src/lexicon/types/chat/bsky/convo/getMessages.ts +3 -0
  58. package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
  59. package/src/mod-service/expiring-tags.ts +98 -0
  60. package/src/mod-service/index.ts +26 -0
  61. package/tests/expiring-tags.test.ts +231 -0
  62. package/tsconfig.build.tsbuildinfo +1 -1
@@ -9111,7 +9111,7 @@ export declare const schemaDict: {
9111
9111
  readonly kind: {
9112
9112
  readonly description: "Union field that has data specific to different kinds of convos.";
9113
9113
  readonly type: "union";
9114
- readonly refs: ["lex:chat.bsky.actor.defs#directConvoMember", "lex:chat.bsky.actor.defs#groupConvoMember"];
9114
+ readonly refs: ["lex:chat.bsky.actor.defs#directConvoMember", "lex:chat.bsky.actor.defs#groupConvoMember", "lex:chat.bsky.actor.defs#pastGroupConvoMember"];
9115
9115
  };
9116
9116
  };
9117
9117
  };
@@ -9121,7 +9121,7 @@ export declare const schemaDict: {
9121
9121
  readonly properties: {};
9122
9122
  };
9123
9123
  readonly groupConvoMember: {
9124
- readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here].";
9124
+ readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here]. A current group convo member.";
9125
9125
  readonly type: "object";
9126
9126
  readonly required: ["role"];
9127
9127
  readonly properties: {
@@ -9137,6 +9137,12 @@ export declare const schemaDict: {
9137
9137
  };
9138
9138
  };
9139
9139
  };
9140
+ readonly pastGroupConvoMember: {
9141
+ readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here]. A past group convo member.";
9142
+ readonly type: "object";
9143
+ readonly required: [];
9144
+ readonly properties: {};
9145
+ };
9140
9146
  };
9141
9147
  };
9142
9148
  readonly ChatBskyActorDeleteAccount: {
@@ -9364,6 +9370,16 @@ export declare const schemaDict: {
9364
9370
  };
9365
9371
  };
9366
9372
  };
9373
+ readonly systemMessageReferredUser: {
9374
+ readonly type: "object";
9375
+ readonly required: ["did"];
9376
+ readonly properties: {
9377
+ readonly did: {
9378
+ readonly type: "string";
9379
+ readonly format: "did";
9380
+ };
9381
+ };
9382
+ };
9367
9383
  readonly systemMessageView: {
9368
9384
  readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here].";
9369
9385
  readonly type: "object";
@@ -9393,7 +9409,7 @@ export declare const schemaDict: {
9393
9409
  readonly member: {
9394
9410
  readonly description: "Current view of the member who was added.";
9395
9411
  readonly type: "ref";
9396
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9412
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9397
9413
  };
9398
9414
  readonly role: {
9399
9415
  readonly description: "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.";
@@ -9402,7 +9418,7 @@ export declare const schemaDict: {
9402
9418
  };
9403
9419
  readonly addedBy: {
9404
9420
  readonly type: "ref";
9405
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9421
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9406
9422
  };
9407
9423
  };
9408
9424
  };
@@ -9414,11 +9430,11 @@ export declare const schemaDict: {
9414
9430
  readonly member: {
9415
9431
  readonly description: "Current view of the member who was removed.";
9416
9432
  readonly type: "ref";
9417
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9433
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9418
9434
  };
9419
9435
  readonly removedBy: {
9420
9436
  readonly type: "ref";
9421
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9437
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9422
9438
  };
9423
9439
  };
9424
9440
  };
@@ -9430,7 +9446,7 @@ export declare const schemaDict: {
9430
9446
  readonly member: {
9431
9447
  readonly description: "Current view of the member who joined.";
9432
9448
  readonly type: "ref";
9433
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9449
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9434
9450
  };
9435
9451
  readonly role: {
9436
9452
  readonly description: "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.";
@@ -9440,7 +9456,7 @@ export declare const schemaDict: {
9440
9456
  readonly approvedBy: {
9441
9457
  readonly description: "If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required.";
9442
9458
  readonly type: "ref";
9443
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9459
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9444
9460
  };
9445
9461
  };
9446
9462
  };
@@ -9452,7 +9468,7 @@ export declare const schemaDict: {
9452
9468
  readonly member: {
9453
9469
  readonly description: "Current view of the member who left the group.";
9454
9470
  readonly type: "ref";
9455
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9471
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9456
9472
  };
9457
9473
  };
9458
9474
  };
@@ -9464,7 +9480,7 @@ export declare const schemaDict: {
9464
9480
  readonly lockedBy: {
9465
9481
  readonly description: "Current view of the member who locked the group.";
9466
9482
  readonly type: "ref";
9467
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9483
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9468
9484
  };
9469
9485
  };
9470
9486
  };
@@ -9476,7 +9492,7 @@ export declare const schemaDict: {
9476
9492
  readonly unlockedBy: {
9477
9493
  readonly description: "Current view of the member who unlocked the group.";
9478
9494
  readonly type: "ref";
9479
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9495
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9480
9496
  };
9481
9497
  };
9482
9498
  };
@@ -9488,7 +9504,7 @@ export declare const schemaDict: {
9488
9504
  readonly lockedBy: {
9489
9505
  readonly description: "Current view of the member who locked the group.";
9490
9506
  readonly type: "ref";
9491
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9507
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
9492
9508
  };
9493
9509
  };
9494
9510
  };
@@ -9649,7 +9665,7 @@ export declare const schemaDict: {
9649
9665
  readonly groupConvo: {
9650
9666
  readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here].";
9651
9667
  readonly type: "object";
9652
- readonly required: ["name", "lockStatus", "memberCount"];
9668
+ readonly required: ["name", "lockStatus", "memberCount", "createdAt"];
9653
9669
  readonly properties: {
9654
9670
  readonly name: {
9655
9671
  readonly type: "string";
@@ -9661,6 +9677,10 @@ export declare const schemaDict: {
9661
9677
  readonly type: "integer";
9662
9678
  readonly description: "The total number of members in the group conversation.";
9663
9679
  };
9680
+ readonly createdAt: {
9681
+ readonly type: "string";
9682
+ readonly format: "datetime";
9683
+ };
9664
9684
  readonly joinLink: {
9665
9685
  readonly type: "ref";
9666
9686
  readonly ref: "lex:chat.bsky.group.defs#joinLinkView";
@@ -9752,6 +9772,14 @@ export declare const schemaDict: {
9752
9772
  readonly type: "union";
9753
9773
  readonly refs: ["lex:chat.bsky.convo.defs#messageView", "lex:chat.bsky.convo.defs#deletedMessageView"];
9754
9774
  };
9775
+ readonly relatedProfiles: {
9776
+ readonly description: "Profiles referred to in the message view. This isn't required for compatibility, because it was added later, but should generally be present.";
9777
+ readonly type: "array";
9778
+ readonly items: {
9779
+ readonly type: "ref";
9780
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9781
+ };
9782
+ };
9755
9783
  };
9756
9784
  };
9757
9785
  readonly logDeleteMessage: {
@@ -9807,6 +9835,14 @@ export declare const schemaDict: {
9807
9835
  readonly type: "ref";
9808
9836
  readonly ref: "lex:chat.bsky.convo.defs#reactionView";
9809
9837
  };
9838
+ readonly relatedProfiles: {
9839
+ readonly description: "Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present.";
9840
+ readonly type: "array";
9841
+ readonly items: {
9842
+ readonly type: "ref";
9843
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9844
+ };
9845
+ };
9810
9846
  };
9811
9847
  };
9812
9848
  readonly logRemoveReaction: {
@@ -9828,6 +9864,14 @@ export declare const schemaDict: {
9828
9864
  readonly type: "ref";
9829
9865
  readonly ref: "lex:chat.bsky.convo.defs#reactionView";
9830
9866
  };
9867
+ readonly relatedProfiles: {
9868
+ readonly description: "Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present.";
9869
+ readonly type: "array";
9870
+ readonly items: {
9871
+ readonly type: "ref";
9872
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9873
+ };
9874
+ };
9831
9875
  };
9832
9876
  };
9833
9877
  readonly logReadConvo: {
@@ -9850,7 +9894,7 @@ export declare const schemaDict: {
9850
9894
  readonly logAddMember: {
9851
9895
  readonly 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).";
9852
9896
  readonly type: "object";
9853
- readonly required: ["rev", "convoId", "message"];
9897
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
9854
9898
  readonly properties: {
9855
9899
  readonly rev: {
9856
9900
  readonly type: "string";
@@ -9863,12 +9907,20 @@ export declare const schemaDict: {
9863
9907
  readonly type: "ref";
9864
9908
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
9865
9909
  };
9910
+ readonly relatedProfiles: {
9911
+ readonly description: "Profiles referred in the system message.";
9912
+ readonly type: "array";
9913
+ readonly items: {
9914
+ readonly type: "ref";
9915
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9916
+ };
9917
+ };
9866
9918
  };
9867
9919
  };
9868
9920
  readonly logRemoveMember: {
9869
9921
  readonly 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).";
9870
9922
  readonly type: "object";
9871
- readonly required: ["rev", "convoId", "message"];
9923
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
9872
9924
  readonly properties: {
9873
9925
  readonly rev: {
9874
9926
  readonly type: "string";
@@ -9881,12 +9933,20 @@ export declare const schemaDict: {
9881
9933
  readonly type: "ref";
9882
9934
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
9883
9935
  };
9936
+ readonly relatedProfiles: {
9937
+ readonly description: "Profiles referred in the system message.";
9938
+ readonly type: "array";
9939
+ readonly items: {
9940
+ readonly type: "ref";
9941
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9942
+ };
9943
+ };
9884
9944
  };
9885
9945
  };
9886
9946
  readonly logMemberJoin: {
9887
9947
  readonly 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).";
9888
9948
  readonly type: "object";
9889
- readonly required: ["rev", "convoId", "message"];
9949
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
9890
9950
  readonly properties: {
9891
9951
  readonly rev: {
9892
9952
  readonly type: "string";
@@ -9899,12 +9959,20 @@ export declare const schemaDict: {
9899
9959
  readonly type: "ref";
9900
9960
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
9901
9961
  };
9962
+ readonly relatedProfiles: {
9963
+ readonly description: "Profiles referred in the system message.";
9964
+ readonly type: "array";
9965
+ readonly items: {
9966
+ readonly type: "ref";
9967
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9968
+ };
9969
+ };
9902
9970
  };
9903
9971
  };
9904
9972
  readonly logMemberLeave: {
9905
9973
  readonly 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).";
9906
9974
  readonly type: "object";
9907
- readonly required: ["rev", "convoId", "message"];
9975
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
9908
9976
  readonly properties: {
9909
9977
  readonly rev: {
9910
9978
  readonly type: "string";
@@ -9917,12 +9985,20 @@ export declare const schemaDict: {
9917
9985
  readonly type: "ref";
9918
9986
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
9919
9987
  };
9988
+ readonly relatedProfiles: {
9989
+ readonly description: "Profiles referred in the system message.";
9990
+ readonly type: "array";
9991
+ readonly items: {
9992
+ readonly type: "ref";
9993
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
9994
+ };
9995
+ };
9920
9996
  };
9921
9997
  };
9922
9998
  readonly logLockConvo: {
9923
9999
  readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked.";
9924
10000
  readonly type: "object";
9925
- readonly required: ["rev", "convoId", "message"];
10001
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
9926
10002
  readonly properties: {
9927
10003
  readonly rev: {
9928
10004
  readonly type: "string";
@@ -9935,12 +10011,20 @@ export declare const schemaDict: {
9935
10011
  readonly type: "ref";
9936
10012
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
9937
10013
  };
10014
+ readonly relatedProfiles: {
10015
+ readonly description: "Profiles referred in the system message.";
10016
+ readonly type: "array";
10017
+ readonly items: {
10018
+ readonly type: "ref";
10019
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
10020
+ };
10021
+ };
9938
10022
  };
9939
10023
  };
9940
10024
  readonly logUnlockConvo: {
9941
10025
  readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked.";
9942
10026
  readonly type: "object";
9943
- readonly required: ["rev", "convoId", "message"];
10027
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
9944
10028
  readonly properties: {
9945
10029
  readonly rev: {
9946
10030
  readonly type: "string";
@@ -9953,12 +10037,20 @@ export declare const schemaDict: {
9953
10037
  readonly type: "ref";
9954
10038
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
9955
10039
  };
10040
+ readonly relatedProfiles: {
10041
+ readonly description: "Profiles referred in the system message.";
10042
+ readonly type: "array";
10043
+ readonly items: {
10044
+ readonly type: "ref";
10045
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
10046
+ };
10047
+ };
9956
10048
  };
9957
10049
  };
9958
10050
  readonly logLockConvoPermanently: {
9959
10051
  readonly 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.";
9960
10052
  readonly type: "object";
9961
- readonly required: ["rev", "convoId", "message"];
10053
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
9962
10054
  readonly properties: {
9963
10055
  readonly rev: {
9964
10056
  readonly type: "string";
@@ -9971,6 +10063,14 @@ export declare const schemaDict: {
9971
10063
  readonly type: "ref";
9972
10064
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
9973
10065
  };
10066
+ readonly relatedProfiles: {
10067
+ readonly description: "Profiles referred in the system message.";
10068
+ readonly type: "array";
10069
+ readonly items: {
10070
+ readonly type: "ref";
10071
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
10072
+ };
10073
+ };
9974
10074
  };
9975
10075
  };
9976
10076
  readonly logEditGroup: {
@@ -10426,6 +10526,14 @@ export declare const schemaDict: {
10426
10526
  readonly refs: ["lex:chat.bsky.convo.defs#messageView", "lex:chat.bsky.convo.defs#deletedMessageView", "lex:chat.bsky.convo.defs#systemMessageView"];
10427
10527
  };
10428
10528
  };
10529
+ readonly relatedProfiles: {
10530
+ readonly description: "Set of all members who authored or reacted to the returned messages. Members referred to by system messages are also included.";
10531
+ readonly type: "array";
10532
+ readonly items: {
10533
+ readonly type: "ref";
10534
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
10535
+ };
10536
+ };
10429
10537
  };
10430
10538
  };
10431
10539
  };
@@ -17343,6 +17451,10 @@ export declare const schemaDict: {
17343
17451
  readonly type: "string";
17344
17452
  readonly description: "Additional comment about added/removed tags.";
17345
17453
  };
17454
+ readonly durationInHours: {
17455
+ readonly type: "integer";
17456
+ readonly description: "Indicates how long the tags being added should remain before automatically being removed. Only applies to tags being added.";
17457
+ };
17346
17458
  };
17347
17459
  };
17348
17460
  readonly accountEvent: {
@@ -29788,7 +29900,7 @@ export declare const schemas: ({
29788
29900
  readonly kind: {
29789
29901
  readonly description: "Union field that has data specific to different kinds of convos.";
29790
29902
  readonly type: "union";
29791
- readonly refs: ["lex:chat.bsky.actor.defs#directConvoMember", "lex:chat.bsky.actor.defs#groupConvoMember"];
29903
+ readonly refs: ["lex:chat.bsky.actor.defs#directConvoMember", "lex:chat.bsky.actor.defs#groupConvoMember", "lex:chat.bsky.actor.defs#pastGroupConvoMember"];
29792
29904
  };
29793
29905
  };
29794
29906
  };
@@ -29798,7 +29910,7 @@ export declare const schemas: ({
29798
29910
  readonly properties: {};
29799
29911
  };
29800
29912
  readonly groupConvoMember: {
29801
- readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here].";
29913
+ readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here]. A current group convo member.";
29802
29914
  readonly type: "object";
29803
29915
  readonly required: ["role"];
29804
29916
  readonly properties: {
@@ -29814,6 +29926,12 @@ export declare const schemas: ({
29814
29926
  };
29815
29927
  };
29816
29928
  };
29929
+ readonly pastGroupConvoMember: {
29930
+ readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here]. A past group convo member.";
29931
+ readonly type: "object";
29932
+ readonly required: [];
29933
+ readonly properties: {};
29934
+ };
29817
29935
  };
29818
29936
  } | {
29819
29937
  readonly lexicon: 1;
@@ -30036,6 +30154,16 @@ export declare const schemas: ({
30036
30154
  };
30037
30155
  };
30038
30156
  };
30157
+ readonly systemMessageReferredUser: {
30158
+ readonly type: "object";
30159
+ readonly required: ["did"];
30160
+ readonly properties: {
30161
+ readonly did: {
30162
+ readonly type: "string";
30163
+ readonly format: "did";
30164
+ };
30165
+ };
30166
+ };
30039
30167
  readonly systemMessageView: {
30040
30168
  readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here].";
30041
30169
  readonly type: "object";
@@ -30065,7 +30193,7 @@ export declare const schemas: ({
30065
30193
  readonly member: {
30066
30194
  readonly description: "Current view of the member who was added.";
30067
30195
  readonly type: "ref";
30068
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30196
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30069
30197
  };
30070
30198
  readonly role: {
30071
30199
  readonly description: "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.";
@@ -30074,7 +30202,7 @@ export declare const schemas: ({
30074
30202
  };
30075
30203
  readonly addedBy: {
30076
30204
  readonly type: "ref";
30077
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30205
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30078
30206
  };
30079
30207
  };
30080
30208
  };
@@ -30086,11 +30214,11 @@ export declare const schemas: ({
30086
30214
  readonly member: {
30087
30215
  readonly description: "Current view of the member who was removed.";
30088
30216
  readonly type: "ref";
30089
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30217
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30090
30218
  };
30091
30219
  readonly removedBy: {
30092
30220
  readonly type: "ref";
30093
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30221
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30094
30222
  };
30095
30223
  };
30096
30224
  };
@@ -30102,7 +30230,7 @@ export declare const schemas: ({
30102
30230
  readonly member: {
30103
30231
  readonly description: "Current view of the member who joined.";
30104
30232
  readonly type: "ref";
30105
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30233
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30106
30234
  };
30107
30235
  readonly role: {
30108
30236
  readonly description: "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.";
@@ -30112,7 +30240,7 @@ export declare const schemas: ({
30112
30240
  readonly approvedBy: {
30113
30241
  readonly description: "If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required.";
30114
30242
  readonly type: "ref";
30115
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30243
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30116
30244
  };
30117
30245
  };
30118
30246
  };
@@ -30124,7 +30252,7 @@ export declare const schemas: ({
30124
30252
  readonly member: {
30125
30253
  readonly description: "Current view of the member who left the group.";
30126
30254
  readonly type: "ref";
30127
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30255
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30128
30256
  };
30129
30257
  };
30130
30258
  };
@@ -30136,7 +30264,7 @@ export declare const schemas: ({
30136
30264
  readonly lockedBy: {
30137
30265
  readonly description: "Current view of the member who locked the group.";
30138
30266
  readonly type: "ref";
30139
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30267
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30140
30268
  };
30141
30269
  };
30142
30270
  };
@@ -30148,7 +30276,7 @@ export declare const schemas: ({
30148
30276
  readonly unlockedBy: {
30149
30277
  readonly description: "Current view of the member who unlocked the group.";
30150
30278
  readonly type: "ref";
30151
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30279
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30152
30280
  };
30153
30281
  };
30154
30282
  };
@@ -30160,7 +30288,7 @@ export declare const schemas: ({
30160
30288
  readonly lockedBy: {
30161
30289
  readonly description: "Current view of the member who locked the group.";
30162
30290
  readonly type: "ref";
30163
- readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30291
+ readonly ref: "lex:chat.bsky.convo.defs#systemMessageReferredUser";
30164
30292
  };
30165
30293
  };
30166
30294
  };
@@ -30321,7 +30449,7 @@ export declare const schemas: ({
30321
30449
  readonly groupConvo: {
30322
30450
  readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here].";
30323
30451
  readonly type: "object";
30324
- readonly required: ["name", "lockStatus", "memberCount"];
30452
+ readonly required: ["name", "lockStatus", "memberCount", "createdAt"];
30325
30453
  readonly properties: {
30326
30454
  readonly name: {
30327
30455
  readonly type: "string";
@@ -30333,6 +30461,10 @@ export declare const schemas: ({
30333
30461
  readonly type: "integer";
30334
30462
  readonly description: "The total number of members in the group conversation.";
30335
30463
  };
30464
+ readonly createdAt: {
30465
+ readonly type: "string";
30466
+ readonly format: "datetime";
30467
+ };
30336
30468
  readonly joinLink: {
30337
30469
  readonly type: "ref";
30338
30470
  readonly ref: "lex:chat.bsky.group.defs#joinLinkView";
@@ -30424,6 +30556,14 @@ export declare const schemas: ({
30424
30556
  readonly type: "union";
30425
30557
  readonly refs: ["lex:chat.bsky.convo.defs#messageView", "lex:chat.bsky.convo.defs#deletedMessageView"];
30426
30558
  };
30559
+ readonly relatedProfiles: {
30560
+ readonly description: "Profiles referred to in the message view. This isn't required for compatibility, because it was added later, but should generally be present.";
30561
+ readonly type: "array";
30562
+ readonly items: {
30563
+ readonly type: "ref";
30564
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30565
+ };
30566
+ };
30427
30567
  };
30428
30568
  };
30429
30569
  readonly logDeleteMessage: {
@@ -30479,6 +30619,14 @@ export declare const schemas: ({
30479
30619
  readonly type: "ref";
30480
30620
  readonly ref: "lex:chat.bsky.convo.defs#reactionView";
30481
30621
  };
30622
+ readonly relatedProfiles: {
30623
+ readonly description: "Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present.";
30624
+ readonly type: "array";
30625
+ readonly items: {
30626
+ readonly type: "ref";
30627
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30628
+ };
30629
+ };
30482
30630
  };
30483
30631
  };
30484
30632
  readonly logRemoveReaction: {
@@ -30500,6 +30648,14 @@ export declare const schemas: ({
30500
30648
  readonly type: "ref";
30501
30649
  readonly ref: "lex:chat.bsky.convo.defs#reactionView";
30502
30650
  };
30651
+ readonly relatedProfiles: {
30652
+ readonly description: "Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present.";
30653
+ readonly type: "array";
30654
+ readonly items: {
30655
+ readonly type: "ref";
30656
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30657
+ };
30658
+ };
30503
30659
  };
30504
30660
  };
30505
30661
  readonly logReadConvo: {
@@ -30522,7 +30678,7 @@ export declare const schemas: ({
30522
30678
  readonly logAddMember: {
30523
30679
  readonly 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).";
30524
30680
  readonly type: "object";
30525
- readonly required: ["rev", "convoId", "message"];
30681
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
30526
30682
  readonly properties: {
30527
30683
  readonly rev: {
30528
30684
  readonly type: "string";
@@ -30535,12 +30691,20 @@ export declare const schemas: ({
30535
30691
  readonly type: "ref";
30536
30692
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
30537
30693
  };
30694
+ readonly relatedProfiles: {
30695
+ readonly description: "Profiles referred in the system message.";
30696
+ readonly type: "array";
30697
+ readonly items: {
30698
+ readonly type: "ref";
30699
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30700
+ };
30701
+ };
30538
30702
  };
30539
30703
  };
30540
30704
  readonly logRemoveMember: {
30541
30705
  readonly 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).";
30542
30706
  readonly type: "object";
30543
- readonly required: ["rev", "convoId", "message"];
30707
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
30544
30708
  readonly properties: {
30545
30709
  readonly rev: {
30546
30710
  readonly type: "string";
@@ -30553,12 +30717,20 @@ export declare const schemas: ({
30553
30717
  readonly type: "ref";
30554
30718
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
30555
30719
  };
30720
+ readonly relatedProfiles: {
30721
+ readonly description: "Profiles referred in the system message.";
30722
+ readonly type: "array";
30723
+ readonly items: {
30724
+ readonly type: "ref";
30725
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30726
+ };
30727
+ };
30556
30728
  };
30557
30729
  };
30558
30730
  readonly logMemberJoin: {
30559
30731
  readonly 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).";
30560
30732
  readonly type: "object";
30561
- readonly required: ["rev", "convoId", "message"];
30733
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
30562
30734
  readonly properties: {
30563
30735
  readonly rev: {
30564
30736
  readonly type: "string";
@@ -30571,12 +30743,20 @@ export declare const schemas: ({
30571
30743
  readonly type: "ref";
30572
30744
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
30573
30745
  };
30746
+ readonly relatedProfiles: {
30747
+ readonly description: "Profiles referred in the system message.";
30748
+ readonly type: "array";
30749
+ readonly items: {
30750
+ readonly type: "ref";
30751
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30752
+ };
30753
+ };
30574
30754
  };
30575
30755
  };
30576
30756
  readonly logMemberLeave: {
30577
30757
  readonly 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).";
30578
30758
  readonly type: "object";
30579
- readonly required: ["rev", "convoId", "message"];
30759
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
30580
30760
  readonly properties: {
30581
30761
  readonly rev: {
30582
30762
  readonly type: "string";
@@ -30589,12 +30769,20 @@ export declare const schemas: ({
30589
30769
  readonly type: "ref";
30590
30770
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
30591
30771
  };
30772
+ readonly relatedProfiles: {
30773
+ readonly description: "Profiles referred in the system message.";
30774
+ readonly type: "array";
30775
+ readonly items: {
30776
+ readonly type: "ref";
30777
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30778
+ };
30779
+ };
30592
30780
  };
30593
30781
  };
30594
30782
  readonly logLockConvo: {
30595
30783
  readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked.";
30596
30784
  readonly type: "object";
30597
- readonly required: ["rev", "convoId", "message"];
30785
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
30598
30786
  readonly properties: {
30599
30787
  readonly rev: {
30600
30788
  readonly type: "string";
@@ -30607,12 +30795,20 @@ export declare const schemas: ({
30607
30795
  readonly type: "ref";
30608
30796
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
30609
30797
  };
30798
+ readonly relatedProfiles: {
30799
+ readonly description: "Profiles referred in the system message.";
30800
+ readonly type: "array";
30801
+ readonly items: {
30802
+ readonly type: "ref";
30803
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30804
+ };
30805
+ };
30610
30806
  };
30611
30807
  };
30612
30808
  readonly logUnlockConvo: {
30613
30809
  readonly description: "[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked.";
30614
30810
  readonly type: "object";
30615
- readonly required: ["rev", "convoId", "message"];
30811
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
30616
30812
  readonly properties: {
30617
30813
  readonly rev: {
30618
30814
  readonly type: "string";
@@ -30625,12 +30821,20 @@ export declare const schemas: ({
30625
30821
  readonly type: "ref";
30626
30822
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
30627
30823
  };
30824
+ readonly relatedProfiles: {
30825
+ readonly description: "Profiles referred in the system message.";
30826
+ readonly type: "array";
30827
+ readonly items: {
30828
+ readonly type: "ref";
30829
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30830
+ };
30831
+ };
30628
30832
  };
30629
30833
  };
30630
30834
  readonly logLockConvoPermanently: {
30631
30835
  readonly 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.";
30632
30836
  readonly type: "object";
30633
- readonly required: ["rev", "convoId", "message"];
30837
+ readonly required: ["rev", "convoId", "message", "relatedProfiles"];
30634
30838
  readonly properties: {
30635
30839
  readonly rev: {
30636
30840
  readonly type: "string";
@@ -30643,6 +30847,14 @@ export declare const schemas: ({
30643
30847
  readonly type: "ref";
30644
30848
  readonly ref: "lex:chat.bsky.convo.defs#systemMessageView";
30645
30849
  };
30850
+ readonly relatedProfiles: {
30851
+ readonly description: "Profiles referred in the system message.";
30852
+ readonly type: "array";
30853
+ readonly items: {
30854
+ readonly type: "ref";
30855
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
30856
+ };
30857
+ };
30646
30858
  };
30647
30859
  };
30648
30860
  readonly logEditGroup: {
@@ -31091,6 +31303,14 @@ export declare const schemas: ({
31091
31303
  readonly refs: ["lex:chat.bsky.convo.defs#messageView", "lex:chat.bsky.convo.defs#deletedMessageView", "lex:chat.bsky.convo.defs#systemMessageView"];
31092
31304
  };
31093
31305
  };
31306
+ readonly relatedProfiles: {
31307
+ readonly description: "Set of all members who authored or reacted to the returned messages. Members referred to by system messages are also included.";
31308
+ readonly type: "array";
31309
+ readonly items: {
31310
+ readonly type: "ref";
31311
+ readonly ref: "lex:chat.bsky.actor.defs#profileViewBasic";
31312
+ };
31313
+ };
31094
31314
  };
31095
31315
  };
31096
31316
  };
@@ -37875,6 +38095,10 @@ export declare const schemas: ({
37875
38095
  readonly type: "string";
37876
38096
  readonly description: "Additional comment about added/removed tags.";
37877
38097
  };
38098
+ readonly durationInHours: {
38099
+ readonly type: "integer";
38100
+ readonly description: "Indicates how long the tags being added should remain before automatically being removed. Only applies to tags being added.";
38101
+ };
37878
38102
  };
37879
38103
  };
37880
38104
  readonly accountEvent: {