@atproto/api 0.13.27 → 0.13.29
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 +12 -0
- package/dist/client/index.d.ts +31 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +69 -6
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +272 -2
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +148 -1
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts +5 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.js +5 -1
- package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/client/types/app/bsky/feed/generator.d.ts +1 -0
- package/dist/client/types/app/bsky/feed/generator.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/generator.js.map +1 -1
- package/dist/client/types/com/atproto/lexicon/schema.d.ts +12 -0
- package/dist/client/types/com/atproto/lexicon/schema.d.ts.map +1 -0
- package/dist/client/types/com/atproto/lexicon/schema.js +16 -0
- package/dist/client/types/com/atproto/lexicon/schema.js.map +1 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +40 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js +20 -0
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts +7 -1
- 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/package.json +1 -1
- package/src/client/index.ts +81 -0
- package/src/client/lexicons.ts +162 -1
- package/src/client/types/app/bsky/feed/defs.ts +9 -0
- package/src/client/types/app/bsky/feed/generator.ts +4 -0
- package/src/client/types/com/atproto/lexicon/schema.ts +26 -0
- package/src/client/types/tools/ozone/moderation/defs.ts +62 -0
- package/src/client/types/tools/ozone/moderation/queryStatuses.ts +11 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -1090,6 +1090,27 @@ exports.schemaDict = {
|
|
|
1090
1090
|
},
|
|
1091
1091
|
},
|
|
1092
1092
|
},
|
|
1093
|
+
ComAtprotoLexiconSchema: {
|
|
1094
|
+
lexicon: 1,
|
|
1095
|
+
id: 'com.atproto.lexicon.schema',
|
|
1096
|
+
defs: {
|
|
1097
|
+
main: {
|
|
1098
|
+
type: 'record',
|
|
1099
|
+
description: "Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc).",
|
|
1100
|
+
key: 'nsid',
|
|
1101
|
+
record: {
|
|
1102
|
+
type: 'object',
|
|
1103
|
+
required: ['lexicon'],
|
|
1104
|
+
properties: {
|
|
1105
|
+
lexicon: {
|
|
1106
|
+
type: 'integer',
|
|
1107
|
+
description: "Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system.",
|
|
1108
|
+
},
|
|
1109
|
+
},
|
|
1110
|
+
},
|
|
1111
|
+
},
|
|
1112
|
+
},
|
|
1113
|
+
},
|
|
1093
1114
|
ComAtprotoModerationCreateReport: {
|
|
1094
1115
|
lexicon: 1,
|
|
1095
1116
|
id: 'com.atproto.moderation.createReport',
|
|
@@ -4673,6 +4694,10 @@ exports.schemaDict = {
|
|
|
4673
4694
|
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
4674
4695
|
},
|
|
4675
4696
|
},
|
|
4697
|
+
recId: {
|
|
4698
|
+
type: 'integer',
|
|
4699
|
+
description: 'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
4700
|
+
},
|
|
4676
4701
|
},
|
|
4677
4702
|
},
|
|
4678
4703
|
},
|
|
@@ -5577,6 +5602,13 @@ exports.schemaDict = {
|
|
|
5577
5602
|
type: 'ref',
|
|
5578
5603
|
ref: 'lex:app.bsky.feed.defs#generatorViewerState',
|
|
5579
5604
|
},
|
|
5605
|
+
contentMode: {
|
|
5606
|
+
type: 'string',
|
|
5607
|
+
knownValues: [
|
|
5608
|
+
'app.bsky.feed.defs#contentModeUnspecified',
|
|
5609
|
+
'app.bsky.feed.defs#contentModeVideo',
|
|
5610
|
+
],
|
|
5611
|
+
},
|
|
5580
5612
|
indexedAt: {
|
|
5581
5613
|
type: 'string',
|
|
5582
5614
|
format: 'datetime',
|
|
@@ -5706,6 +5738,14 @@ exports.schemaDict = {
|
|
|
5706
5738
|
type: 'token',
|
|
5707
5739
|
description: 'User clicked through to the embedded content of the feed item',
|
|
5708
5740
|
},
|
|
5741
|
+
contentModeUnspecified: {
|
|
5742
|
+
type: 'token',
|
|
5743
|
+
description: 'Declares the feed generator returns any types of posts.',
|
|
5744
|
+
},
|
|
5745
|
+
contentModeVideo: {
|
|
5746
|
+
type: 'token',
|
|
5747
|
+
description: 'Declares the feed generator returns posts containing app.bsky.embed.video embeds.',
|
|
5748
|
+
},
|
|
5709
5749
|
interactionSeen: {
|
|
5710
5750
|
type: 'token',
|
|
5711
5751
|
description: 'Feed item was seen by user',
|
|
@@ -5834,6 +5874,13 @@ exports.schemaDict = {
|
|
|
5834
5874
|
description: 'Self-label values',
|
|
5835
5875
|
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
5836
5876
|
},
|
|
5877
|
+
contentMode: {
|
|
5878
|
+
type: 'string',
|
|
5879
|
+
knownValues: [
|
|
5880
|
+
'app.bsky.feed.defs#contentModeUnspecified',
|
|
5881
|
+
'app.bsky.feed.defs#contentModeVideo',
|
|
5882
|
+
],
|
|
5883
|
+
},
|
|
5837
5884
|
createdAt: {
|
|
5838
5885
|
type: 'string',
|
|
5839
5886
|
format: 'datetime',
|
|
@@ -8086,6 +8133,10 @@ exports.schemaDict = {
|
|
|
8086
8133
|
description: 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid',
|
|
8087
8134
|
default: false,
|
|
8088
8135
|
},
|
|
8136
|
+
recId: {
|
|
8137
|
+
type: 'integer',
|
|
8138
|
+
description: 'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8139
|
+
},
|
|
8089
8140
|
},
|
|
8090
8141
|
},
|
|
8091
8142
|
},
|
|
@@ -9129,6 +9180,10 @@ exports.schemaDict = {
|
|
|
9129
9180
|
format: 'did',
|
|
9130
9181
|
description: 'DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer.',
|
|
9131
9182
|
},
|
|
9183
|
+
recId: {
|
|
9184
|
+
type: 'integer',
|
|
9185
|
+
description: 'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
9186
|
+
},
|
|
9132
9187
|
},
|
|
9133
9188
|
},
|
|
9134
9189
|
},
|
|
@@ -10950,6 +11005,80 @@ exports.schemaDict = {
|
|
|
10950
11005
|
type: 'string',
|
|
10951
11006
|
},
|
|
10952
11007
|
},
|
|
11008
|
+
accountStats: {
|
|
11009
|
+
description: 'Statistics related to the account subject',
|
|
11010
|
+
type: 'ref',
|
|
11011
|
+
ref: 'lex:tools.ozone.moderation.defs#accountStats',
|
|
11012
|
+
},
|
|
11013
|
+
recordsStats: {
|
|
11014
|
+
description: "Statistics related to the record subjects authored by the subject's account",
|
|
11015
|
+
type: 'ref',
|
|
11016
|
+
ref: 'lex:tools.ozone.moderation.defs#recordsStats',
|
|
11017
|
+
},
|
|
11018
|
+
},
|
|
11019
|
+
},
|
|
11020
|
+
accountStats: {
|
|
11021
|
+
description: 'Statistics about a particular account subject',
|
|
11022
|
+
type: 'object',
|
|
11023
|
+
properties: {
|
|
11024
|
+
reportCount: {
|
|
11025
|
+
description: 'Total number of reports on the account',
|
|
11026
|
+
type: 'integer',
|
|
11027
|
+
},
|
|
11028
|
+
appealCount: {
|
|
11029
|
+
description: 'Total number of appeals against a moderation action on the account',
|
|
11030
|
+
type: 'integer',
|
|
11031
|
+
},
|
|
11032
|
+
suspendCount: {
|
|
11033
|
+
description: 'Number of times the account was suspended',
|
|
11034
|
+
type: 'integer',
|
|
11035
|
+
},
|
|
11036
|
+
escalateCount: {
|
|
11037
|
+
description: 'Number of times the account was escalated',
|
|
11038
|
+
type: 'integer',
|
|
11039
|
+
},
|
|
11040
|
+
takedownCount: {
|
|
11041
|
+
description: 'Number of times the account was taken down',
|
|
11042
|
+
type: 'integer',
|
|
11043
|
+
},
|
|
11044
|
+
},
|
|
11045
|
+
},
|
|
11046
|
+
recordsStats: {
|
|
11047
|
+
description: 'Statistics about a set of record subject items',
|
|
11048
|
+
type: 'object',
|
|
11049
|
+
properties: {
|
|
11050
|
+
totalReports: {
|
|
11051
|
+
description: 'Cumulative sum of the number of reports on the items in the set',
|
|
11052
|
+
type: 'integer',
|
|
11053
|
+
},
|
|
11054
|
+
reportedCount: {
|
|
11055
|
+
description: 'Number of items that were reported at least once',
|
|
11056
|
+
type: 'integer',
|
|
11057
|
+
},
|
|
11058
|
+
escalatedCount: {
|
|
11059
|
+
description: 'Number of items that were escalated at least once',
|
|
11060
|
+
type: 'integer',
|
|
11061
|
+
},
|
|
11062
|
+
appealedCount: {
|
|
11063
|
+
description: 'Number of items that were appealed at least once',
|
|
11064
|
+
type: 'integer',
|
|
11065
|
+
},
|
|
11066
|
+
subjectCount: {
|
|
11067
|
+
description: 'Total number of item in the set',
|
|
11068
|
+
type: 'integer',
|
|
11069
|
+
},
|
|
11070
|
+
pendingCount: {
|
|
11071
|
+
description: 'Number of item currently in "reviewOpen" or "reviewEscalated" state',
|
|
11072
|
+
type: 'integer',
|
|
11073
|
+
},
|
|
11074
|
+
processedCount: {
|
|
11075
|
+
description: 'Number of item currently in "reviewNone" or "reviewClosed" state',
|
|
11076
|
+
type: 'integer',
|
|
11077
|
+
},
|
|
11078
|
+
takendownCount: {
|
|
11079
|
+
description: 'Number of item currently taken down',
|
|
11080
|
+
type: 'integer',
|
|
11081
|
+
},
|
|
10953
11082
|
},
|
|
10954
11083
|
},
|
|
10955
11084
|
subjectReviewState: {
|
|
@@ -12159,7 +12288,12 @@ exports.schemaDict = {
|
|
|
12159
12288
|
sortField: {
|
|
12160
12289
|
type: 'string',
|
|
12161
12290
|
default: 'lastReportedAt',
|
|
12162
|
-
enum: [
|
|
12291
|
+
enum: [
|
|
12292
|
+
'lastReviewedAt',
|
|
12293
|
+
'lastReportedAt',
|
|
12294
|
+
'reportedRecordsCount',
|
|
12295
|
+
'takendownRecordsCount',
|
|
12296
|
+
],
|
|
12163
12297
|
},
|
|
12164
12298
|
sortDirection: {
|
|
12165
12299
|
type: 'string',
|
|
@@ -12211,6 +12345,18 @@ exports.schemaDict = {
|
|
|
12211
12345
|
description: "If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.",
|
|
12212
12346
|
knownValues: ['account', 'record'],
|
|
12213
12347
|
},
|
|
12348
|
+
minAccountSuspendCount: {
|
|
12349
|
+
type: 'integer',
|
|
12350
|
+
description: 'If specified, only subjects that belong to an account that has at least this many suspensions will be returned.',
|
|
12351
|
+
},
|
|
12352
|
+
minReportedRecordsCount: {
|
|
12353
|
+
type: 'integer',
|
|
12354
|
+
description: 'If specified, only subjects that belong to an account that has at least this many reported records will be returned.',
|
|
12355
|
+
},
|
|
12356
|
+
minTakendownRecordsCount: {
|
|
12357
|
+
type: 'integer',
|
|
12358
|
+
description: 'If specified, only subjects that belong to an account that has at least this many taken down records will be returned.',
|
|
12359
|
+
},
|
|
12214
12360
|
},
|
|
12215
12361
|
},
|
|
12216
12362
|
output: {
|
|
@@ -13275,6 +13421,7 @@ exports.ids = {
|
|
|
13275
13421
|
ComAtprotoLabelDefs: 'com.atproto.label.defs',
|
|
13276
13422
|
ComAtprotoLabelQueryLabels: 'com.atproto.label.queryLabels',
|
|
13277
13423
|
ComAtprotoLabelSubscribeLabels: 'com.atproto.label.subscribeLabels',
|
|
13424
|
+
ComAtprotoLexiconSchema: 'com.atproto.lexicon.schema',
|
|
13278
13425
|
ComAtprotoModerationCreateReport: 'com.atproto.moderation.createReport',
|
|
13279
13426
|
ComAtprotoModerationDefs: 'com.atproto.moderation.defs',
|
|
13280
13427
|
ComAtprotoRepoApplyWrites: 'com.atproto.repo.applyWrites',
|