@atproto/api 0.20.16 → 0.20.17
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 +8 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +19 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +338 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +173 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/notification/defs.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/notification/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/notification/defs.d.ts +19 -0
- package/dist/client/types/chat/bsky/notification/defs.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/notification/defs.js +19 -0
- package/dist/client/types/chat/bsky/notification/defs.js.map +1 -0
- package/dist/client/types/chat/bsky/notification/getPreferences.d.ts +21 -0
- package/dist/client/types/chat/bsky/notification/getPreferences.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/notification/getPreferences.js +8 -0
- package/dist/client/types/chat/bsky/notification/getPreferences.js.map +1 -0
- package/dist/client/types/chat/bsky/notification/putPreferences.d.ts +26 -0
- package/dist/client/types/chat/bsky/notification/putPreferences.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/notification/putPreferences.js +8 -0
- package/dist/client/types/chat/bsky/notification/putPreferences.js.map +1 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts +1 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/report/queryActivities.d.ts +33 -0
- package/dist/client/types/tools/ozone/report/queryActivities.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/queryActivities.js +8 -0
- package/dist/client/types/tools/ozone/report/queryActivities.js.map +1 -0
- package/package.json +4 -3
- package/tests/atp-agent.test.ts +1 -1
- package/tests/dispatcher.test.ts +5 -10
- package/tests/errors.test.ts +1 -1
- package/tests/moderation-prefs.test.ts +1 -1
- package/tests/util/echo-server.ts +18 -2
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -7017,6 +7017,7 @@ export const schemaDict = {
|
|
|
7017
7017
|
},
|
|
7018
7018
|
chatPreference: {
|
|
7019
7019
|
type: 'object',
|
|
7020
|
+
description: 'Deprecated: use chat.bsky.notification preferences instead. This will only return a default value.',
|
|
7020
7021
|
required: ['include', 'push'],
|
|
7021
7022
|
properties: {
|
|
7022
7023
|
include: {
|
|
@@ -7077,6 +7078,7 @@ export const schemaDict = {
|
|
|
7077
7078
|
chat: {
|
|
7078
7079
|
type: 'ref',
|
|
7079
7080
|
ref: 'lex:app.bsky.notification.defs#chatPreference',
|
|
7081
|
+
description: 'Deprecated: use chat.bsky.notification preferences instead. This will only return a default value.',
|
|
7080
7082
|
},
|
|
7081
7083
|
follow: {
|
|
7082
7084
|
type: 'ref',
|
|
@@ -7473,6 +7475,7 @@ export const schemaDict = {
|
|
|
7473
7475
|
chat: {
|
|
7474
7476
|
type: 'ref',
|
|
7475
7477
|
ref: 'lex:app.bsky.notification.defs#chatPreference',
|
|
7478
|
+
description: "Deprecated: use chat.bsky.notification preferences instead. Setting this won't stick and the default values will be returned.",
|
|
7476
7479
|
},
|
|
7477
7480
|
follow: {
|
|
7478
7481
|
type: 'ref',
|
|
@@ -14022,6 +14025,101 @@ export const schemaDict = {
|
|
|
14022
14025
|
},
|
|
14023
14026
|
},
|
|
14024
14027
|
},
|
|
14028
|
+
ChatBskyNotificationDefs: {
|
|
14029
|
+
lexicon: 1,
|
|
14030
|
+
id: 'chat.bsky.notification.defs',
|
|
14031
|
+
defs: {
|
|
14032
|
+
preferences: {
|
|
14033
|
+
type: 'object',
|
|
14034
|
+
required: ['chat', 'chatRequest'],
|
|
14035
|
+
properties: {
|
|
14036
|
+
chat: {
|
|
14037
|
+
type: 'ref',
|
|
14038
|
+
ref: 'lex:chat.bsky.notification.defs#chatPreference',
|
|
14039
|
+
},
|
|
14040
|
+
chatRequest: {
|
|
14041
|
+
type: 'ref',
|
|
14042
|
+
ref: 'lex:chat.bsky.notification.defs#chatPreference',
|
|
14043
|
+
},
|
|
14044
|
+
},
|
|
14045
|
+
},
|
|
14046
|
+
chatPreference: {
|
|
14047
|
+
type: 'object',
|
|
14048
|
+
required: ['include', 'push'],
|
|
14049
|
+
properties: {
|
|
14050
|
+
include: {
|
|
14051
|
+
type: 'string',
|
|
14052
|
+
knownValues: ['all', 'follows'],
|
|
14053
|
+
},
|
|
14054
|
+
push: {
|
|
14055
|
+
type: 'boolean',
|
|
14056
|
+
},
|
|
14057
|
+
},
|
|
14058
|
+
},
|
|
14059
|
+
},
|
|
14060
|
+
},
|
|
14061
|
+
ChatBskyNotificationGetPreferences: {
|
|
14062
|
+
lexicon: 1,
|
|
14063
|
+
id: 'chat.bsky.notification.getPreferences',
|
|
14064
|
+
defs: {
|
|
14065
|
+
main: {
|
|
14066
|
+
type: 'query',
|
|
14067
|
+
description: "Get the requesting account's chat notification preferences. Defaults are returned for accounts that have not set any preferences. Requires auth.",
|
|
14068
|
+
output: {
|
|
14069
|
+
encoding: 'application/json',
|
|
14070
|
+
schema: {
|
|
14071
|
+
type: 'object',
|
|
14072
|
+
required: ['preferences'],
|
|
14073
|
+
properties: {
|
|
14074
|
+
preferences: {
|
|
14075
|
+
type: 'ref',
|
|
14076
|
+
ref: 'lex:chat.bsky.notification.defs#preferences',
|
|
14077
|
+
},
|
|
14078
|
+
},
|
|
14079
|
+
},
|
|
14080
|
+
},
|
|
14081
|
+
},
|
|
14082
|
+
},
|
|
14083
|
+
},
|
|
14084
|
+
ChatBskyNotificationPutPreferences: {
|
|
14085
|
+
lexicon: 1,
|
|
14086
|
+
id: 'chat.bsky.notification.putPreferences',
|
|
14087
|
+
defs: {
|
|
14088
|
+
main: {
|
|
14089
|
+
type: 'procedure',
|
|
14090
|
+
description: "Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged.",
|
|
14091
|
+
input: {
|
|
14092
|
+
encoding: 'application/json',
|
|
14093
|
+
schema: {
|
|
14094
|
+
type: 'object',
|
|
14095
|
+
properties: {
|
|
14096
|
+
chat: {
|
|
14097
|
+
type: 'ref',
|
|
14098
|
+
ref: 'lex:chat.bsky.notification.defs#chatPreference',
|
|
14099
|
+
},
|
|
14100
|
+
chatRequest: {
|
|
14101
|
+
type: 'ref',
|
|
14102
|
+
ref: 'lex:chat.bsky.notification.defs#chatPreference',
|
|
14103
|
+
},
|
|
14104
|
+
},
|
|
14105
|
+
},
|
|
14106
|
+
},
|
|
14107
|
+
output: {
|
|
14108
|
+
encoding: 'application/json',
|
|
14109
|
+
schema: {
|
|
14110
|
+
type: 'object',
|
|
14111
|
+
required: ['preferences'],
|
|
14112
|
+
properties: {
|
|
14113
|
+
preferences: {
|
|
14114
|
+
type: 'ref',
|
|
14115
|
+
ref: 'lex:chat.bsky.notification.defs#preferences',
|
|
14116
|
+
},
|
|
14117
|
+
},
|
|
14118
|
+
},
|
|
14119
|
+
},
|
|
14120
|
+
},
|
|
14121
|
+
},
|
|
14122
|
+
},
|
|
14025
14123
|
ComAtprotoAdminDefs: {
|
|
14026
14124
|
lexicon: 1,
|
|
14027
14125
|
id: 'com.atproto.admin.defs',
|
|
@@ -22932,6 +23030,11 @@ export const schemaDict = {
|
|
|
22932
23030
|
ref: 'lex:tools.ozone.team.defs#member',
|
|
22933
23031
|
description: 'Full member record of the moderator who created this activity',
|
|
22934
23032
|
},
|
|
23033
|
+
report: {
|
|
23034
|
+
type: 'ref',
|
|
23035
|
+
ref: 'lex:tools.ozone.report.defs#reportView',
|
|
23036
|
+
description: 'Full view of the report this activity belongs to.',
|
|
23037
|
+
},
|
|
22935
23038
|
createdAt: {
|
|
22936
23039
|
type: 'string',
|
|
22937
23040
|
format: 'datetime',
|
|
@@ -23344,6 +23447,72 @@ export const schemaDict = {
|
|
|
23344
23447
|
},
|
|
23345
23448
|
},
|
|
23346
23449
|
},
|
|
23450
|
+
ToolsOzoneReportQueryActivities: {
|
|
23451
|
+
lexicon: 1,
|
|
23452
|
+
id: 'tools.ozone.report.queryActivities',
|
|
23453
|
+
defs: {
|
|
23454
|
+
main: {
|
|
23455
|
+
type: 'query',
|
|
23456
|
+
description: 'Query report activities across all reports, ordered by createdAt. Used by downstream pollers; for per-report activity history use listActivities.',
|
|
23457
|
+
parameters: {
|
|
23458
|
+
type: 'params',
|
|
23459
|
+
properties: {
|
|
23460
|
+
activityTypes: {
|
|
23461
|
+
type: 'array',
|
|
23462
|
+
items: {
|
|
23463
|
+
type: 'string',
|
|
23464
|
+
},
|
|
23465
|
+
description: 'Filter to specific activity types (e.g. closeActivity, escalationActivity). If omitted, all types are returned.',
|
|
23466
|
+
},
|
|
23467
|
+
createdAfter: {
|
|
23468
|
+
type: 'string',
|
|
23469
|
+
format: 'datetime',
|
|
23470
|
+
description: 'Retrieve activities created at or after a given timestamp',
|
|
23471
|
+
},
|
|
23472
|
+
createdBefore: {
|
|
23473
|
+
type: 'string',
|
|
23474
|
+
format: 'datetime',
|
|
23475
|
+
description: 'Retrieve activities created at or before a given timestamp',
|
|
23476
|
+
},
|
|
23477
|
+
sortDirection: {
|
|
23478
|
+
type: 'string',
|
|
23479
|
+
default: 'desc',
|
|
23480
|
+
enum: ['asc', 'desc'],
|
|
23481
|
+
},
|
|
23482
|
+
limit: {
|
|
23483
|
+
type: 'integer',
|
|
23484
|
+
minimum: 1,
|
|
23485
|
+
maximum: 100,
|
|
23486
|
+
default: 50,
|
|
23487
|
+
},
|
|
23488
|
+
cursor: {
|
|
23489
|
+
type: 'string',
|
|
23490
|
+
description: 'Cursor of the form `<createdAtMs>::<activityId>`.',
|
|
23491
|
+
},
|
|
23492
|
+
},
|
|
23493
|
+
},
|
|
23494
|
+
output: {
|
|
23495
|
+
encoding: 'application/json',
|
|
23496
|
+
schema: {
|
|
23497
|
+
type: 'object',
|
|
23498
|
+
required: ['activities'],
|
|
23499
|
+
properties: {
|
|
23500
|
+
activities: {
|
|
23501
|
+
type: 'array',
|
|
23502
|
+
items: {
|
|
23503
|
+
type: 'ref',
|
|
23504
|
+
ref: 'lex:tools.ozone.report.defs#reportActivityView',
|
|
23505
|
+
},
|
|
23506
|
+
},
|
|
23507
|
+
cursor: {
|
|
23508
|
+
type: 'string',
|
|
23509
|
+
},
|
|
23510
|
+
},
|
|
23511
|
+
},
|
|
23512
|
+
},
|
|
23513
|
+
},
|
|
23514
|
+
},
|
|
23515
|
+
},
|
|
23347
23516
|
ToolsOzoneReportQueryReports: {
|
|
23348
23517
|
lexicon: 1,
|
|
23349
23518
|
id: 'tools.ozone.report.queryReports',
|
|
@@ -25584,6 +25753,9 @@ export const ids = {
|
|
|
25584
25753
|
ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
|
|
25585
25754
|
ChatBskyModerationSubscribeModEvents: 'chat.bsky.moderation.subscribeModEvents',
|
|
25586
25755
|
ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess',
|
|
25756
|
+
ChatBskyNotificationDefs: 'chat.bsky.notification.defs',
|
|
25757
|
+
ChatBskyNotificationGetPreferences: 'chat.bsky.notification.getPreferences',
|
|
25758
|
+
ChatBskyNotificationPutPreferences: 'chat.bsky.notification.putPreferences',
|
|
25587
25759
|
ComAtprotoAdminDefs: 'com.atproto.admin.defs',
|
|
25588
25760
|
ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',
|
|
25589
25761
|
ComAtprotoAdminDisableAccountInvites: 'com.atproto.admin.disableAccountInvites',
|
|
@@ -25720,6 +25892,7 @@ export const ids = {
|
|
|
25720
25892
|
ToolsOzoneReportGetLiveStats: 'tools.ozone.report.getLiveStats',
|
|
25721
25893
|
ToolsOzoneReportGetReport: 'tools.ozone.report.getReport',
|
|
25722
25894
|
ToolsOzoneReportListActivities: 'tools.ozone.report.listActivities',
|
|
25895
|
+
ToolsOzoneReportQueryActivities: 'tools.ozone.report.queryActivities',
|
|
25723
25896
|
ToolsOzoneReportQueryReports: 'tools.ozone.report.queryReports',
|
|
25724
25897
|
ToolsOzoneReportReassignQueue: 'tools.ozone.report.reassignQueue',
|
|
25725
25898
|
ToolsOzoneReportRefreshStats: 'tools.ozone.report.refreshStats',
|