@atproto/api 0.12.5 → 0.12.7
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/dist/bsky-agent.d.ts +19 -0
- package/dist/bsky-agent.d.ts.map +1 -1
- package/dist/bsky-agent.js +179 -0
- package/dist/bsky-agent.js.map +1 -1
- package/dist/client/lexicons.d.ts +68 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +78 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +16 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js +21 -1
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +22 -2
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js +22 -2
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts +2 -0
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/util.d.ts +13 -0
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +55 -1
- package/dist/util.js.map +1 -1
- package/package.json +1 -1
- package/src/bsky-agent.ts +222 -1
- package/src/client/lexicons.ts +80 -0
- package/src/client/types/app/bsky/actor/defs.ts +38 -0
- package/src/client/types/tools/ozone/moderation/defs.ts +56 -0
- package/src/client/types/tools/ozone/moderation/emitEvent.ts +3 -0
- package/src/client/types/tools/ozone/moderation/queryStatuses.ts +2 -0
- package/src/types.ts +4 -0
- package/src/util.ts +72 -0
- package/tests/bsky-agent.test.ts +1021 -2
- package/tests/moderation-prefs.test.ts +4 -0
package/dist/client/lexicons.js
CHANGED
|
@@ -3696,6 +3696,7 @@ exports.schemaDict = {
|
|
|
3696
3696
|
'lex:app.bsky.actor.defs#adultContentPref',
|
|
3697
3697
|
'lex:app.bsky.actor.defs#contentLabelPref',
|
|
3698
3698
|
'lex:app.bsky.actor.defs#savedFeedsPref',
|
|
3699
|
+
'lex:app.bsky.actor.defs#savedFeedsPrefV2',
|
|
3699
3700
|
'lex:app.bsky.actor.defs#personalDetailsPref',
|
|
3700
3701
|
'lex:app.bsky.actor.defs#feedViewPref',
|
|
3701
3702
|
'lex:app.bsky.actor.defs#threadViewPref',
|
|
@@ -3733,6 +3734,38 @@ exports.schemaDict = {
|
|
|
3733
3734
|
},
|
|
3734
3735
|
},
|
|
3735
3736
|
},
|
|
3737
|
+
savedFeed: {
|
|
3738
|
+
type: 'object',
|
|
3739
|
+
required: ['id', 'type', 'value', 'pinned'],
|
|
3740
|
+
properties: {
|
|
3741
|
+
id: {
|
|
3742
|
+
type: 'string',
|
|
3743
|
+
},
|
|
3744
|
+
type: {
|
|
3745
|
+
type: 'string',
|
|
3746
|
+
knownValues: ['feed', 'list', 'timeline'],
|
|
3747
|
+
},
|
|
3748
|
+
value: {
|
|
3749
|
+
type: 'string',
|
|
3750
|
+
},
|
|
3751
|
+
pinned: {
|
|
3752
|
+
type: 'boolean',
|
|
3753
|
+
},
|
|
3754
|
+
},
|
|
3755
|
+
},
|
|
3756
|
+
savedFeedsPrefV2: {
|
|
3757
|
+
type: 'object',
|
|
3758
|
+
required: ['items'],
|
|
3759
|
+
properties: {
|
|
3760
|
+
items: {
|
|
3761
|
+
type: 'array',
|
|
3762
|
+
items: {
|
|
3763
|
+
type: 'ref',
|
|
3764
|
+
ref: 'lex:app.bsky.actor.defs#savedFeed',
|
|
3765
|
+
},
|
|
3766
|
+
},
|
|
3767
|
+
},
|
|
3768
|
+
},
|
|
3736
3769
|
savedFeedsPref: {
|
|
3737
3770
|
type: 'object',
|
|
3738
3771
|
required: ['pinned', 'saved'],
|
|
@@ -8112,6 +8145,9 @@ exports.schemaDict = {
|
|
|
8112
8145
|
'lex:tools.ozone.moderation.defs#modEventAcknowledge',
|
|
8113
8146
|
'lex:tools.ozone.moderation.defs#modEventEscalate',
|
|
8114
8147
|
'lex:tools.ozone.moderation.defs#modEventMute',
|
|
8148
|
+
'lex:tools.ozone.moderation.defs#modEventUnmute',
|
|
8149
|
+
'lex:tools.ozone.moderation.defs#modEventMuteReporter',
|
|
8150
|
+
'lex:tools.ozone.moderation.defs#modEventUnmuteReporter',
|
|
8115
8151
|
'lex:tools.ozone.moderation.defs#modEventEmail',
|
|
8116
8152
|
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
|
8117
8153
|
'lex:tools.ozone.moderation.defs#modEventDivert',
|
|
@@ -8171,6 +8207,9 @@ exports.schemaDict = {
|
|
|
8171
8207
|
'lex:tools.ozone.moderation.defs#modEventAcknowledge',
|
|
8172
8208
|
'lex:tools.ozone.moderation.defs#modEventEscalate',
|
|
8173
8209
|
'lex:tools.ozone.moderation.defs#modEventMute',
|
|
8210
|
+
'lex:tools.ozone.moderation.defs#modEventUnmute',
|
|
8211
|
+
'lex:tools.ozone.moderation.defs#modEventMuteReporter',
|
|
8212
|
+
'lex:tools.ozone.moderation.defs#modEventUnmuteReporter',
|
|
8174
8213
|
'lex:tools.ozone.moderation.defs#modEventEmail',
|
|
8175
8214
|
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
|
8176
8215
|
'lex:tools.ozone.moderation.defs#modEventDivert',
|
|
@@ -8248,6 +8287,10 @@ exports.schemaDict = {
|
|
|
8248
8287
|
type: 'string',
|
|
8249
8288
|
format: 'datetime',
|
|
8250
8289
|
},
|
|
8290
|
+
muteReportingUntil: {
|
|
8291
|
+
type: 'string',
|
|
8292
|
+
format: 'datetime',
|
|
8293
|
+
},
|
|
8251
8294
|
lastReviewedBy: {
|
|
8252
8295
|
type: 'string',
|
|
8253
8296
|
format: 'did',
|
|
@@ -8364,6 +8407,10 @@ exports.schemaDict = {
|
|
|
8364
8407
|
comment: {
|
|
8365
8408
|
type: 'string',
|
|
8366
8409
|
},
|
|
8410
|
+
isReporterMuted: {
|
|
8411
|
+
type: 'boolean',
|
|
8412
|
+
description: "Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject.",
|
|
8413
|
+
},
|
|
8367
8414
|
reportType: {
|
|
8368
8415
|
type: 'ref',
|
|
8369
8416
|
ref: 'lex:com.atproto.moderation.defs#reasonType',
|
|
@@ -8432,6 +8479,30 @@ exports.schemaDict = {
|
|
|
8432
8479
|
},
|
|
8433
8480
|
},
|
|
8434
8481
|
},
|
|
8482
|
+
modEventMuteReporter: {
|
|
8483
|
+
type: 'object',
|
|
8484
|
+
description: 'Mute incoming reports from an account',
|
|
8485
|
+
required: ['durationInHours'],
|
|
8486
|
+
properties: {
|
|
8487
|
+
comment: {
|
|
8488
|
+
type: 'string',
|
|
8489
|
+
},
|
|
8490
|
+
durationInHours: {
|
|
8491
|
+
type: 'integer',
|
|
8492
|
+
description: 'Indicates how long the account should remain muted.',
|
|
8493
|
+
},
|
|
8494
|
+
},
|
|
8495
|
+
},
|
|
8496
|
+
modEventUnmuteReporter: {
|
|
8497
|
+
type: 'object',
|
|
8498
|
+
description: 'Unmute incoming reports from an account',
|
|
8499
|
+
properties: {
|
|
8500
|
+
comment: {
|
|
8501
|
+
type: 'string',
|
|
8502
|
+
description: 'Describe reasoning behind the reversal.',
|
|
8503
|
+
},
|
|
8504
|
+
},
|
|
8505
|
+
},
|
|
8435
8506
|
modEventEmail: {
|
|
8436
8507
|
type: 'object',
|
|
8437
8508
|
description: 'Keep a log of outgoing email to a user',
|
|
@@ -8813,6 +8884,9 @@ exports.schemaDict = {
|
|
|
8813
8884
|
'lex:tools.ozone.moderation.defs#modEventLabel',
|
|
8814
8885
|
'lex:tools.ozone.moderation.defs#modEventReport',
|
|
8815
8886
|
'lex:tools.ozone.moderation.defs#modEventMute',
|
|
8887
|
+
'lex:tools.ozone.moderation.defs#modEventUnmute',
|
|
8888
|
+
'lex:tools.ozone.moderation.defs#modEventMuteReporter',
|
|
8889
|
+
'lex:tools.ozone.moderation.defs#modEventUnmuteReporter',
|
|
8816
8890
|
'lex:tools.ozone.moderation.defs#modEventReverseTakedown',
|
|
8817
8891
|
'lex:tools.ozone.moderation.defs#modEventUnmute',
|
|
8818
8892
|
'lex:tools.ozone.moderation.defs#modEventEmail',
|
|
@@ -9112,6 +9186,10 @@ exports.schemaDict = {
|
|
|
9112
9186
|
type: 'boolean',
|
|
9113
9187
|
description: "By default, we don't include muted subjects in the results. Set this to true to include them.",
|
|
9114
9188
|
},
|
|
9189
|
+
onlyMuted: {
|
|
9190
|
+
type: 'boolean',
|
|
9191
|
+
description: 'When set to true, only muted subjects and reporters will be returned.',
|
|
9192
|
+
},
|
|
9115
9193
|
reviewState: {
|
|
9116
9194
|
type: 'string',
|
|
9117
9195
|
description: 'Specify when fetching subjects in a certain state',
|