@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.
Files changed (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/client/index.d.ts +15 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +19 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +338 -0
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +173 -0
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/notification/defs.d.ts +1 -0
  11. package/dist/client/types/app/bsky/notification/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/notification/defs.js.map +1 -1
  13. package/dist/client/types/chat/bsky/notification/defs.d.ts +19 -0
  14. package/dist/client/types/chat/bsky/notification/defs.d.ts.map +1 -0
  15. package/dist/client/types/chat/bsky/notification/defs.js +19 -0
  16. package/dist/client/types/chat/bsky/notification/defs.js.map +1 -0
  17. package/dist/client/types/chat/bsky/notification/getPreferences.d.ts +21 -0
  18. package/dist/client/types/chat/bsky/notification/getPreferences.d.ts.map +1 -0
  19. package/dist/client/types/chat/bsky/notification/getPreferences.js +8 -0
  20. package/dist/client/types/chat/bsky/notification/getPreferences.js.map +1 -0
  21. package/dist/client/types/chat/bsky/notification/putPreferences.d.ts +26 -0
  22. package/dist/client/types/chat/bsky/notification/putPreferences.d.ts.map +1 -0
  23. package/dist/client/types/chat/bsky/notification/putPreferences.js +8 -0
  24. package/dist/client/types/chat/bsky/notification/putPreferences.js.map +1 -0
  25. package/dist/client/types/tools/ozone/report/defs.d.ts +1 -0
  26. package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
  27. package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
  28. package/dist/client/types/tools/ozone/report/queryActivities.d.ts +33 -0
  29. package/dist/client/types/tools/ozone/report/queryActivities.d.ts.map +1 -0
  30. package/dist/client/types/tools/ozone/report/queryActivities.js +8 -0
  31. package/dist/client/types/tools/ozone/report/queryActivities.js.map +1 -0
  32. package/package.json +4 -3
  33. package/tests/atp-agent.test.ts +1 -1
  34. package/tests/dispatcher.test.ts +5 -10
  35. package/tests/errors.test.ts +1 -1
  36. package/tests/moderation-prefs.test.ts +1 -1
  37. package/tests/util/echo-server.ts +18 -2
  38. package/tsconfig.build.tsbuildinfo +1 -1
@@ -6805,6 +6805,7 @@ export declare const schemaDict: {
6805
6805
  };
6806
6806
  readonly chatPreference: {
6807
6807
  readonly type: 'object';
6808
+ readonly description: 'Deprecated: use chat.bsky.notification preferences instead. This will only return a default value.';
6808
6809
  readonly required: ["include", "push"];
6809
6810
  readonly properties: {
6810
6811
  readonly include: {
@@ -6851,6 +6852,7 @@ export declare const schemaDict: {
6851
6852
  readonly chat: {
6852
6853
  readonly type: 'ref';
6853
6854
  readonly ref: 'lex:app.bsky.notification.defs#chatPreference';
6855
+ readonly description: 'Deprecated: use chat.bsky.notification preferences instead. This will only return a default value.';
6854
6856
  };
6855
6857
  readonly follow: {
6856
6858
  readonly type: 'ref';
@@ -7225,6 +7227,7 @@ export declare const schemaDict: {
7225
7227
  readonly chat: {
7226
7228
  readonly type: 'ref';
7227
7229
  readonly ref: 'lex:app.bsky.notification.defs#chatPreference';
7230
+ readonly description: "Deprecated: use chat.bsky.notification preferences instead. Setting this won't stick and the default values will be returned.";
7228
7231
  };
7229
7232
  readonly follow: {
7230
7233
  readonly type: 'ref';
@@ -13344,6 +13347,101 @@ export declare const schemaDict: {
13344
13347
  };
13345
13348
  };
13346
13349
  };
13350
+ readonly ChatBskyNotificationDefs: {
13351
+ readonly lexicon: 1;
13352
+ readonly id: 'chat.bsky.notification.defs';
13353
+ readonly defs: {
13354
+ readonly preferences: {
13355
+ readonly type: 'object';
13356
+ readonly required: ["chat", "chatRequest"];
13357
+ readonly properties: {
13358
+ readonly chat: {
13359
+ readonly type: 'ref';
13360
+ readonly ref: 'lex:chat.bsky.notification.defs#chatPreference';
13361
+ };
13362
+ readonly chatRequest: {
13363
+ readonly type: 'ref';
13364
+ readonly ref: 'lex:chat.bsky.notification.defs#chatPreference';
13365
+ };
13366
+ };
13367
+ };
13368
+ readonly chatPreference: {
13369
+ readonly type: 'object';
13370
+ readonly required: ["include", "push"];
13371
+ readonly properties: {
13372
+ readonly include: {
13373
+ readonly type: 'string';
13374
+ readonly knownValues: ["all", "follows"];
13375
+ };
13376
+ readonly push: {
13377
+ readonly type: 'boolean';
13378
+ };
13379
+ };
13380
+ };
13381
+ };
13382
+ };
13383
+ readonly ChatBskyNotificationGetPreferences: {
13384
+ readonly lexicon: 1;
13385
+ readonly id: 'chat.bsky.notification.getPreferences';
13386
+ readonly defs: {
13387
+ readonly main: {
13388
+ readonly type: 'query';
13389
+ readonly description: "Get the requesting account's chat notification preferences. Defaults are returned for accounts that have not set any preferences. Requires auth.";
13390
+ readonly output: {
13391
+ readonly encoding: 'application/json';
13392
+ readonly schema: {
13393
+ readonly type: 'object';
13394
+ readonly required: ["preferences"];
13395
+ readonly properties: {
13396
+ readonly preferences: {
13397
+ readonly type: 'ref';
13398
+ readonly ref: 'lex:chat.bsky.notification.defs#preferences';
13399
+ };
13400
+ };
13401
+ };
13402
+ };
13403
+ };
13404
+ };
13405
+ };
13406
+ readonly ChatBskyNotificationPutPreferences: {
13407
+ readonly lexicon: 1;
13408
+ readonly id: 'chat.bsky.notification.putPreferences';
13409
+ readonly defs: {
13410
+ readonly main: {
13411
+ readonly type: 'procedure';
13412
+ readonly description: "Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged.";
13413
+ readonly input: {
13414
+ readonly encoding: 'application/json';
13415
+ readonly schema: {
13416
+ readonly type: 'object';
13417
+ readonly properties: {
13418
+ readonly chat: {
13419
+ readonly type: 'ref';
13420
+ readonly ref: 'lex:chat.bsky.notification.defs#chatPreference';
13421
+ };
13422
+ readonly chatRequest: {
13423
+ readonly type: 'ref';
13424
+ readonly ref: 'lex:chat.bsky.notification.defs#chatPreference';
13425
+ };
13426
+ };
13427
+ };
13428
+ };
13429
+ readonly output: {
13430
+ readonly encoding: 'application/json';
13431
+ readonly schema: {
13432
+ readonly type: 'object';
13433
+ readonly required: ["preferences"];
13434
+ readonly properties: {
13435
+ readonly preferences: {
13436
+ readonly type: 'ref';
13437
+ readonly ref: 'lex:chat.bsky.notification.defs#preferences';
13438
+ };
13439
+ };
13440
+ };
13441
+ };
13442
+ };
13443
+ };
13444
+ };
13347
13445
  readonly ComAtprotoAdminDefs: {
13348
13446
  readonly lexicon: 1;
13349
13447
  readonly id: 'com.atproto.admin.defs';
@@ -21617,6 +21715,11 @@ export declare const schemaDict: {
21617
21715
  readonly ref: 'lex:tools.ozone.team.defs#member';
21618
21716
  readonly description: 'Full member record of the moderator who created this activity';
21619
21717
  };
21718
+ readonly report: {
21719
+ readonly type: 'ref';
21720
+ readonly ref: 'lex:tools.ozone.report.defs#reportView';
21721
+ readonly description: 'Full view of the report this activity belongs to.';
21722
+ };
21620
21723
  readonly createdAt: {
21621
21724
  readonly type: 'string';
21622
21725
  readonly format: 'datetime';
@@ -22025,6 +22128,72 @@ export declare const schemaDict: {
22025
22128
  };
22026
22129
  };
22027
22130
  };
22131
+ readonly ToolsOzoneReportQueryActivities: {
22132
+ readonly lexicon: 1;
22133
+ readonly id: 'tools.ozone.report.queryActivities';
22134
+ readonly defs: {
22135
+ readonly main: {
22136
+ readonly type: 'query';
22137
+ readonly description: 'Query report activities across all reports, ordered by createdAt. Used by downstream pollers; for per-report activity history use listActivities.';
22138
+ readonly parameters: {
22139
+ readonly type: 'params';
22140
+ readonly properties: {
22141
+ readonly activityTypes: {
22142
+ readonly type: 'array';
22143
+ readonly items: {
22144
+ readonly type: 'string';
22145
+ };
22146
+ readonly description: 'Filter to specific activity types (e.g. closeActivity, escalationActivity). If omitted, all types are returned.';
22147
+ };
22148
+ readonly createdAfter: {
22149
+ readonly type: 'string';
22150
+ readonly format: 'datetime';
22151
+ readonly description: 'Retrieve activities created at or after a given timestamp';
22152
+ };
22153
+ readonly createdBefore: {
22154
+ readonly type: 'string';
22155
+ readonly format: 'datetime';
22156
+ readonly description: 'Retrieve activities created at or before a given timestamp';
22157
+ };
22158
+ readonly sortDirection: {
22159
+ readonly type: 'string';
22160
+ readonly default: 'desc';
22161
+ readonly enum: ["asc", "desc"];
22162
+ };
22163
+ readonly limit: {
22164
+ readonly type: 'integer';
22165
+ readonly minimum: 1;
22166
+ readonly maximum: 100;
22167
+ readonly default: 50;
22168
+ };
22169
+ readonly cursor: {
22170
+ readonly type: 'string';
22171
+ readonly description: 'Cursor of the form `<createdAtMs>::<activityId>`.';
22172
+ };
22173
+ };
22174
+ };
22175
+ readonly output: {
22176
+ readonly encoding: 'application/json';
22177
+ readonly schema: {
22178
+ readonly type: 'object';
22179
+ readonly required: ["activities"];
22180
+ readonly properties: {
22181
+ readonly activities: {
22182
+ readonly type: 'array';
22183
+ readonly items: {
22184
+ readonly type: 'ref';
22185
+ readonly ref: 'lex:tools.ozone.report.defs#reportActivityView';
22186
+ };
22187
+ };
22188
+ readonly cursor: {
22189
+ readonly type: 'string';
22190
+ };
22191
+ };
22192
+ };
22193
+ };
22194
+ };
22195
+ };
22196
+ };
22028
22197
  readonly ToolsOzoneReportQueryReports: {
22029
22198
  readonly lexicon: 1;
22030
22199
  readonly id: 'tools.ozone.report.queryReports';
@@ -30654,6 +30823,7 @@ export declare const schemas: ({
30654
30823
  };
30655
30824
  readonly chatPreference: {
30656
30825
  readonly type: 'object';
30826
+ readonly description: 'Deprecated: use chat.bsky.notification preferences instead. This will only return a default value.';
30657
30827
  readonly required: ["include", "push"];
30658
30828
  readonly properties: {
30659
30829
  readonly include: {
@@ -30700,6 +30870,7 @@ export declare const schemas: ({
30700
30870
  readonly chat: {
30701
30871
  readonly type: 'ref';
30702
30872
  readonly ref: 'lex:app.bsky.notification.defs#chatPreference';
30873
+ readonly description: 'Deprecated: use chat.bsky.notification preferences instead. This will only return a default value.';
30703
30874
  };
30704
30875
  readonly follow: {
30705
30876
  readonly type: 'ref';
@@ -31067,6 +31238,7 @@ export declare const schemas: ({
31067
31238
  readonly chat: {
31068
31239
  readonly type: 'ref';
31069
31240
  readonly ref: 'lex:app.bsky.notification.defs#chatPreference';
31241
+ readonly description: "Deprecated: use chat.bsky.notification preferences instead. Setting this won't stick and the default values will be returned.";
31070
31242
  };
31071
31243
  readonly follow: {
31072
31244
  readonly type: 'ref';
@@ -37092,6 +37264,98 @@ export declare const schemas: ({
37092
37264
  };
37093
37265
  };
37094
37266
  };
37267
+ } | {
37268
+ readonly lexicon: 1;
37269
+ readonly id: 'chat.bsky.notification.defs';
37270
+ readonly defs: {
37271
+ readonly preferences: {
37272
+ readonly type: 'object';
37273
+ readonly required: ["chat", "chatRequest"];
37274
+ readonly properties: {
37275
+ readonly chat: {
37276
+ readonly type: 'ref';
37277
+ readonly ref: 'lex:chat.bsky.notification.defs#chatPreference';
37278
+ };
37279
+ readonly chatRequest: {
37280
+ readonly type: 'ref';
37281
+ readonly ref: 'lex:chat.bsky.notification.defs#chatPreference';
37282
+ };
37283
+ };
37284
+ };
37285
+ readonly chatPreference: {
37286
+ readonly type: 'object';
37287
+ readonly required: ["include", "push"];
37288
+ readonly properties: {
37289
+ readonly include: {
37290
+ readonly type: 'string';
37291
+ readonly knownValues: ["all", "follows"];
37292
+ };
37293
+ readonly push: {
37294
+ readonly type: 'boolean';
37295
+ };
37296
+ };
37297
+ };
37298
+ };
37299
+ } | {
37300
+ readonly lexicon: 1;
37301
+ readonly id: 'chat.bsky.notification.getPreferences';
37302
+ readonly defs: {
37303
+ readonly main: {
37304
+ readonly type: 'query';
37305
+ readonly description: "Get the requesting account's chat notification preferences. Defaults are returned for accounts that have not set any preferences. Requires auth.";
37306
+ readonly output: {
37307
+ readonly encoding: 'application/json';
37308
+ readonly schema: {
37309
+ readonly type: 'object';
37310
+ readonly required: ["preferences"];
37311
+ readonly properties: {
37312
+ readonly preferences: {
37313
+ readonly type: 'ref';
37314
+ readonly ref: 'lex:chat.bsky.notification.defs#preferences';
37315
+ };
37316
+ };
37317
+ };
37318
+ };
37319
+ };
37320
+ };
37321
+ } | {
37322
+ readonly lexicon: 1;
37323
+ readonly id: 'chat.bsky.notification.putPreferences';
37324
+ readonly defs: {
37325
+ readonly main: {
37326
+ readonly type: 'procedure';
37327
+ readonly description: "Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged.";
37328
+ readonly input: {
37329
+ readonly encoding: 'application/json';
37330
+ readonly schema: {
37331
+ readonly type: 'object';
37332
+ readonly properties: {
37333
+ readonly chat: {
37334
+ readonly type: 'ref';
37335
+ readonly ref: 'lex:chat.bsky.notification.defs#chatPreference';
37336
+ };
37337
+ readonly chatRequest: {
37338
+ readonly type: 'ref';
37339
+ readonly ref: 'lex:chat.bsky.notification.defs#chatPreference';
37340
+ };
37341
+ };
37342
+ };
37343
+ };
37344
+ readonly output: {
37345
+ readonly encoding: 'application/json';
37346
+ readonly schema: {
37347
+ readonly type: 'object';
37348
+ readonly required: ["preferences"];
37349
+ readonly properties: {
37350
+ readonly preferences: {
37351
+ readonly type: 'ref';
37352
+ readonly ref: 'lex:chat.bsky.notification.defs#preferences';
37353
+ };
37354
+ };
37355
+ };
37356
+ };
37357
+ };
37358
+ };
37095
37359
  } | {
37096
37360
  readonly lexicon: 1;
37097
37361
  readonly id: 'com.atproto.admin.defs';
@@ -45236,6 +45500,11 @@ export declare const schemas: ({
45236
45500
  readonly ref: 'lex:tools.ozone.team.defs#member';
45237
45501
  readonly description: 'Full member record of the moderator who created this activity';
45238
45502
  };
45503
+ readonly report: {
45504
+ readonly type: 'ref';
45505
+ readonly ref: 'lex:tools.ozone.report.defs#reportView';
45506
+ readonly description: 'Full view of the report this activity belongs to.';
45507
+ };
45239
45508
  readonly createdAt: {
45240
45509
  readonly type: 'string';
45241
45510
  readonly format: 'datetime';
@@ -45637,6 +45906,71 @@ export declare const schemas: ({
45637
45906
  };
45638
45907
  };
45639
45908
  };
45909
+ } | {
45910
+ readonly lexicon: 1;
45911
+ readonly id: 'tools.ozone.report.queryActivities';
45912
+ readonly defs: {
45913
+ readonly main: {
45914
+ readonly type: 'query';
45915
+ readonly description: 'Query report activities across all reports, ordered by createdAt. Used by downstream pollers; for per-report activity history use listActivities.';
45916
+ readonly parameters: {
45917
+ readonly type: 'params';
45918
+ readonly properties: {
45919
+ readonly activityTypes: {
45920
+ readonly type: 'array';
45921
+ readonly items: {
45922
+ readonly type: 'string';
45923
+ };
45924
+ readonly description: 'Filter to specific activity types (e.g. closeActivity, escalationActivity). If omitted, all types are returned.';
45925
+ };
45926
+ readonly createdAfter: {
45927
+ readonly type: 'string';
45928
+ readonly format: 'datetime';
45929
+ readonly description: 'Retrieve activities created at or after a given timestamp';
45930
+ };
45931
+ readonly createdBefore: {
45932
+ readonly type: 'string';
45933
+ readonly format: 'datetime';
45934
+ readonly description: 'Retrieve activities created at or before a given timestamp';
45935
+ };
45936
+ readonly sortDirection: {
45937
+ readonly type: 'string';
45938
+ readonly default: 'desc';
45939
+ readonly enum: ["asc", "desc"];
45940
+ };
45941
+ readonly limit: {
45942
+ readonly type: 'integer';
45943
+ readonly minimum: 1;
45944
+ readonly maximum: 100;
45945
+ readonly default: 50;
45946
+ };
45947
+ readonly cursor: {
45948
+ readonly type: 'string';
45949
+ readonly description: 'Cursor of the form `<createdAtMs>::<activityId>`.';
45950
+ };
45951
+ };
45952
+ };
45953
+ readonly output: {
45954
+ readonly encoding: 'application/json';
45955
+ readonly schema: {
45956
+ readonly type: 'object';
45957
+ readonly required: ["activities"];
45958
+ readonly properties: {
45959
+ readonly activities: {
45960
+ readonly type: 'array';
45961
+ readonly items: {
45962
+ readonly type: 'ref';
45963
+ readonly ref: 'lex:tools.ozone.report.defs#reportActivityView';
45964
+ };
45965
+ };
45966
+ readonly cursor: {
45967
+ readonly type: 'string';
45968
+ };
45969
+ };
45970
+ };
45971
+ };
45972
+ };
45973
+ };
45640
45974
  } | {
45641
45975
  readonly lexicon: 1;
45642
45976
  readonly id: 'tools.ozone.report.queryReports';
@@ -47738,6 +48072,9 @@ export declare const ids: {
47738
48072
  readonly ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext';
47739
48073
  readonly ChatBskyModerationSubscribeModEvents: 'chat.bsky.moderation.subscribeModEvents';
47740
48074
  readonly ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess';
48075
+ readonly ChatBskyNotificationDefs: 'chat.bsky.notification.defs';
48076
+ readonly ChatBskyNotificationGetPreferences: 'chat.bsky.notification.getPreferences';
48077
+ readonly ChatBskyNotificationPutPreferences: 'chat.bsky.notification.putPreferences';
47741
48078
  readonly ComAtprotoAdminDefs: 'com.atproto.admin.defs';
47742
48079
  readonly ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount';
47743
48080
  readonly ComAtprotoAdminDisableAccountInvites: 'com.atproto.admin.disableAccountInvites';
@@ -47874,6 +48211,7 @@ export declare const ids: {
47874
48211
  readonly ToolsOzoneReportGetLiveStats: 'tools.ozone.report.getLiveStats';
47875
48212
  readonly ToolsOzoneReportGetReport: 'tools.ozone.report.getReport';
47876
48213
  readonly ToolsOzoneReportListActivities: 'tools.ozone.report.listActivities';
48214
+ readonly ToolsOzoneReportQueryActivities: 'tools.ozone.report.queryActivities';
47877
48215
  readonly ToolsOzoneReportQueryReports: 'tools.ozone.report.queryReports';
47878
48216
  readonly ToolsOzoneReportReassignQueue: 'tools.ozone.report.reassignQueue';
47879
48217
  readonly ToolsOzoneReportRefreshStats: 'tools.ozone.report.refreshStats';