@atproto/api 0.13.32 → 0.13.33
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 +14 -0
- package/README.md +1 -1
- package/dist/agent.d.ts +1 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +43 -1
- package/dist/agent.js.map +1 -1
- package/dist/client/lexicons.d.ts +56 -2
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +32 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +19 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js +10 -0
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/feed/postgate.d.ts +1 -0
- package/dist/client/types/app/bsky/feed/postgate.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/postgate.js.map +1 -1
- package/dist/client/types/app/bsky/feed/threadgate.d.ts +1 -0
- package/dist/client/types/app/bsky/feed/threadgate.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/threadgate.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/mocker.d.ts +1 -1
- package/dist/mocker.d.ts.map +1 -1
- package/dist/moderation/decision.d.ts +1 -1
- package/dist/moderation/decision.d.ts.map +1 -1
- package/dist/moderation/decision.js +1 -1
- package/dist/moderation/decision.js.map +1 -1
- package/dist/moderation/index.d.ts +1 -1
- package/dist/moderation/index.d.ts.map +1 -1
- package/dist/moderation/index.js +3 -3
- package/dist/moderation/index.js.map +1 -1
- package/dist/moderation/subjects/account.d.ts +1 -1
- package/dist/moderation/subjects/account.d.ts.map +1 -1
- package/dist/moderation/subjects/feed-generator.d.ts +1 -1
- package/dist/moderation/subjects/feed-generator.d.ts.map +1 -1
- package/dist/moderation/subjects/notification.d.ts +1 -1
- package/dist/moderation/subjects/notification.d.ts.map +1 -1
- package/dist/moderation/subjects/post.d.ts +1 -1
- package/dist/moderation/subjects/post.d.ts.map +1 -1
- package/dist/moderation/subjects/post.js +1 -1
- package/dist/moderation/subjects/post.js.map +1 -1
- package/dist/moderation/subjects/profile.d.ts +1 -1
- package/dist/moderation/subjects/profile.d.ts.map +1 -1
- package/dist/moderation/subjects/user-list.d.ts +1 -1
- package/dist/moderation/subjects/user-list.d.ts.map +1 -1
- package/dist/moderation/types.d.ts +1 -1
- package/dist/moderation/types.d.ts.map +1 -1
- package/dist/rich-text/rich-text.d.ts.map +1 -1
- package/dist/rich-text/rich-text.js +2 -2
- package/dist/rich-text/rich-text.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/util.d.ts +8 -8
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +7 -10
- package/dist/util.js.map +1 -1
- package/package.json +6 -6
- package/src/agent.ts +59 -9
- package/src/client/lexicons.ts +37 -0
- package/src/client/types/app/bsky/actor/defs.ts +36 -0
- package/src/client/types/app/bsky/feed/postgate.ts +1 -0
- package/src/client/types/app/bsky/feed/threadgate.ts +1 -0
- package/src/index.ts +3 -3
- package/src/mocker.ts +3 -3
- package/src/moderation/decision.ts +7 -7
- package/src/moderation/index.ts +11 -11
- package/src/moderation/subjects/account.ts +1 -1
- package/src/moderation/subjects/feed-generator.ts +1 -1
- package/src/moderation/subjects/notification.ts +1 -1
- package/src/moderation/subjects/post.ts +5 -5
- package/src/moderation/subjects/profile.ts +1 -1
- package/src/moderation/subjects/user-list.ts +1 -1
- package/src/moderation/types.ts +1 -1
- package/src/moderation/util.ts +1 -1
- package/src/rich-text/detection.ts +1 -1
- package/src/rich-text/rich-text.ts +2 -2
- package/src/types.ts +1 -0
- package/src/util.ts +8 -9
- package/tests/atp-agent.test.ts +179 -1
- package/tests/dispatcher.test.ts +4 -4
- package/tests/errors.test.ts +1 -1
- package/tests/moderation-behaviors.test.ts +3 -3
- package/tests/moderation-custom-labels.test.ts +4 -4
- package/tests/moderation-mutewords.test.ts +0 -1
- package/tests/moderation-prefs.test.ts +16 -0
- package/tests/moderation-quoteposts.test.ts +3 -3
- package/tests/moderation.test.ts +4 -4
- package/tests/rich-text-sanitization.test.ts +1 -1
- package/tests/util/moderation-behavior.ts +2 -2
- package/bench/agent.bench.ts +0 -9
package/dist/client/lexicons.js
CHANGED
|
@@ -4240,6 +4240,7 @@ exports.schemaDict = {
|
|
|
4240
4240
|
'lex:app.bsky.actor.defs#hiddenPostsPref',
|
|
4241
4241
|
'lex:app.bsky.actor.defs#bskyAppStatePref',
|
|
4242
4242
|
'lex:app.bsky.actor.defs#labelersPref',
|
|
4243
|
+
'lex:app.bsky.actor.defs#postInteractionSettingsPref',
|
|
4243
4244
|
],
|
|
4244
4245
|
},
|
|
4245
4246
|
},
|
|
@@ -4560,6 +4561,35 @@ exports.schemaDict = {
|
|
|
4560
4561
|
},
|
|
4561
4562
|
},
|
|
4562
4563
|
},
|
|
4564
|
+
postInteractionSettingsPref: {
|
|
4565
|
+
type: 'object',
|
|
4566
|
+
description: 'Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.',
|
|
4567
|
+
required: [],
|
|
4568
|
+
properties: {
|
|
4569
|
+
threadgateAllowRules: {
|
|
4570
|
+
description: 'Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.',
|
|
4571
|
+
type: 'array',
|
|
4572
|
+
maxLength: 5,
|
|
4573
|
+
items: {
|
|
4574
|
+
type: 'union',
|
|
4575
|
+
refs: [
|
|
4576
|
+
'lex:app.bsky.feed.threadgate#mentionRule',
|
|
4577
|
+
'lex:app.bsky.feed.threadgate#followingRule',
|
|
4578
|
+
'lex:app.bsky.feed.threadgate#listRule',
|
|
4579
|
+
],
|
|
4580
|
+
},
|
|
4581
|
+
},
|
|
4582
|
+
postgateEmbeddingRules: {
|
|
4583
|
+
description: 'Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.',
|
|
4584
|
+
type: 'array',
|
|
4585
|
+
maxLength: 5,
|
|
4586
|
+
items: {
|
|
4587
|
+
type: 'union',
|
|
4588
|
+
refs: ['lex:app.bsky.feed.postgate#disableRule'],
|
|
4589
|
+
},
|
|
4590
|
+
},
|
|
4591
|
+
},
|
|
4592
|
+
},
|
|
4563
4593
|
},
|
|
4564
4594
|
},
|
|
4565
4595
|
AppBskyActorGetPreferences: {
|
|
@@ -6903,6 +6933,7 @@ exports.schemaDict = {
|
|
|
6903
6933
|
description: 'List of AT-URIs embedding this post that the author has detached from.',
|
|
6904
6934
|
},
|
|
6905
6935
|
embeddingRules: {
|
|
6936
|
+
description: 'List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.',
|
|
6906
6937
|
type: 'array',
|
|
6907
6938
|
maxLength: 5,
|
|
6908
6939
|
items: {
|
|
@@ -7101,6 +7132,7 @@ exports.schemaDict = {
|
|
|
7101
7132
|
description: 'Reference (AT-URI) to the post record.',
|
|
7102
7133
|
},
|
|
7103
7134
|
allow: {
|
|
7135
|
+
description: 'List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.',
|
|
7104
7136
|
type: 'array',
|
|
7105
7137
|
maxLength: 5,
|
|
7106
7138
|
items: {
|