@atproto/api 0.28.1 → 0.29.1

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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atproto/api
2
2
 
3
+ ## 0.29.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5700](https://github.com/bluesky-social/atproto/pull/5700) [`53d307b`](https://github.com/bluesky-social/atproto/commit/53d307b614120947d7a11687e9bd0868c1c02dd1) Thanks [@gcwill70](https://github.com/gcwill70)! - Add strict access flag to report queues. Non-admin users will only be able to access strict queues and their reports if they are assigned to them.
8
+
9
+ Allow filtering SafeLink rules by exact source in queryRules, combining with existing filters and pagination.
10
+
11
+ ## 0.29.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#5662](https://github.com/bluesky-social/atproto/pull/5662) [`a2840e2`](https://github.com/bluesky-social/atproto/commit/a2840e277d5ed0d01b97fd4d2427b676e6c90bf2) Thanks [@foysalit](https://github.com/foysalit)! - Expose client-supplied expiry on strike reversals and preserve supplied expiry
16
+ when executing scheduled takedowns. Strike amounts and expiry policy remain
17
+ client-controlled.
18
+
19
+ ### Patch Changes
20
+
21
+ - [#5693](https://github.com/bluesky-social/atproto/pull/5693) [`1a99766`](https://github.com/bluesky-social/atproto/commit/1a99766791d15cf62e8508cf2b5abc8e9bbb25aa) Thanks [@gcwill70](https://github.com/gcwill70)! - Route reports using reporter and reported-account tags. Record automated notes with the matched tag values.
22
+
3
23
  ## 0.28.1
4
24
 
5
25
  ### Patch Changes
@@ -21925,6 +21925,11 @@ export declare const schemaDict: {
21925
21925
  readonly type: 'integer';
21926
21926
  readonly description: "Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity.";
21927
21927
  };
21928
+ readonly strikeExpiresAt: {
21929
+ readonly type: 'string';
21930
+ readonly format: 'datetime';
21931
+ readonly description: 'When the strike should expire. If not provided, the strike never expires.';
21932
+ };
21928
21933
  };
21929
21934
  };
21930
21935
  readonly modEventResolveAppeal: {
@@ -24023,7 +24028,7 @@ export declare const schemaDict: {
24023
24028
  readonly defs: {
24024
24029
  readonly main: {
24025
24030
  readonly type: 'procedure';
24026
- readonly description: "Create a new moderation queue. A queue can have optional matching criteria that ozone's queue router will use to match reports. A queue with no criteria must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`.";
24031
+ readonly description: 'Create a new moderation queue. A queue with omitted or empty subjectTypes or reportTypes must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`.';
24027
24032
  readonly input: {
24028
24033
  readonly encoding: 'application/json';
24029
24034
  readonly schema: {
@@ -24045,16 +24050,33 @@ export declare const schemaDict: {
24045
24050
  readonly collection: {
24046
24051
  readonly type: 'string';
24047
24052
  readonly format: 'nsid';
24048
- readonly description: "Collection name for record subjects. Required if subjectTypes includes 'record'.";
24053
+ readonly description: 'Collection name for record subjects. Omit to accept every collection.';
24049
24054
  };
24050
24055
  readonly reportTypes: {
24051
24056
  readonly type: 'array';
24052
24057
  readonly items: {
24053
24058
  readonly type: 'string';
24054
24059
  };
24055
- readonly maxLength: 25;
24056
24060
  readonly description: 'Report reason types (fully qualified NSIDs)';
24057
24061
  };
24062
+ readonly reporterTags: {
24063
+ readonly type: 'array';
24064
+ readonly maxLength: 25;
24065
+ readonly items: {
24066
+ readonly type: 'string';
24067
+ readonly minLength: 1;
24068
+ };
24069
+ readonly description: 'Match any listed tag on the account submitting the report.';
24070
+ };
24071
+ readonly accountTags: {
24072
+ readonly type: 'array';
24073
+ readonly maxLength: 25;
24074
+ readonly items: {
24075
+ readonly type: 'string';
24076
+ readonly minLength: 1;
24077
+ };
24078
+ readonly description: 'Match any of these tags on the account that is being reported against.';
24079
+ };
24058
24080
  readonly description: {
24059
24081
  readonly type: 'string';
24060
24082
  readonly description: 'Optional description of the queue';
@@ -24073,6 +24095,10 @@ export declare const schemaDict: {
24073
24095
  };
24074
24096
  readonly description: 'Labels to recommend for this queue and use as fallback appeal routing mappings';
24075
24097
  };
24098
+ readonly strictAccess: {
24099
+ readonly type: 'boolean';
24100
+ readonly description: 'Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.';
24101
+ };
24076
24102
  };
24077
24103
  };
24078
24104
  };
@@ -24126,7 +24152,7 @@ export declare const schemaDict: {
24126
24152
  readonly collection: {
24127
24153
  readonly type: 'string';
24128
24154
  readonly format: 'nsid';
24129
- readonly description: "Collection name for record subjects (e.g., 'app.bsky.feed.post')";
24155
+ readonly description: 'Collection name for record subjects. Omit to accept every collection.';
24130
24156
  };
24131
24157
  readonly reportTypes: {
24132
24158
  readonly type: 'array';
@@ -24135,6 +24161,24 @@ export declare const schemaDict: {
24135
24161
  };
24136
24162
  readonly description: 'Report reason types this queue accepts (fully qualified NSIDs)';
24137
24163
  };
24164
+ readonly reporterTags: {
24165
+ readonly type: 'array';
24166
+ readonly maxLength: 25;
24167
+ readonly items: {
24168
+ readonly type: 'string';
24169
+ readonly minLength: 1;
24170
+ };
24171
+ readonly description: 'Match any listed tag on the account submitting the report.';
24172
+ };
24173
+ readonly accountTags: {
24174
+ readonly type: 'array';
24175
+ readonly maxLength: 25;
24176
+ readonly items: {
24177
+ readonly type: 'string';
24178
+ readonly minLength: 1;
24179
+ };
24180
+ readonly description: 'Match tags on the account that is being reported against. For record subjects, use the author account. Match any listed tag.';
24181
+ };
24138
24182
  readonly description: {
24139
24183
  readonly type: 'string';
24140
24184
  readonly description: 'Optional description of the queue';
@@ -24180,6 +24224,10 @@ export declare const schemaDict: {
24180
24224
  readonly ref: 'lex:tools.ozone.queue.defs#queueStats';
24181
24225
  readonly description: 'Statistics about this queue';
24182
24226
  };
24227
+ readonly strictAccess: {
24228
+ readonly type: 'boolean';
24229
+ readonly description: 'Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.';
24230
+ };
24183
24231
  };
24184
24232
  };
24185
24233
  readonly queueStats: {
@@ -24602,6 +24650,10 @@ export declare const schemaDict: {
24602
24650
  };
24603
24651
  readonly description: 'Labels to recommend for this queue and use as fallback appeal routing mappings';
24604
24652
  };
24653
+ readonly strictAccess: {
24654
+ readonly type: 'boolean';
24655
+ readonly description: 'Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.';
24656
+ };
24605
24657
  };
24606
24658
  };
24607
24659
  };
@@ -26392,6 +26444,11 @@ export declare const schemaDict: {
26392
26444
  readonly type: 'string';
26393
26445
  readonly description: 'Filter by reason type';
26394
26446
  };
26447
+ readonly source: {
26448
+ readonly type: 'string';
26449
+ readonly maxLength: 128;
26450
+ readonly description: 'Filter by exact rule source. Omit to include all sources.';
26451
+ };
26395
26452
  readonly createdBy: {
26396
26453
  readonly type: 'string';
26397
26454
  readonly format: 'did';
@@ -49506,6 +49563,11 @@ export declare const schemas: ({
49506
49563
  readonly type: 'integer';
49507
49564
  readonly description: "Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity.";
49508
49565
  };
49566
+ readonly strikeExpiresAt: {
49567
+ readonly type: 'string';
49568
+ readonly format: 'datetime';
49569
+ readonly description: 'When the strike should expire. If not provided, the strike never expires.';
49570
+ };
49509
49571
  };
49510
49572
  };
49511
49573
  readonly modEventResolveAppeal: {
@@ -51587,7 +51649,7 @@ export declare const schemas: ({
51587
51649
  readonly defs: {
51588
51650
  readonly main: {
51589
51651
  readonly type: 'procedure';
51590
- readonly description: "Create a new moderation queue. A queue can have optional matching criteria that ozone's queue router will use to match reports. A queue with no criteria must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`.";
51652
+ readonly description: 'Create a new moderation queue. A queue with omitted or empty subjectTypes or reportTypes must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`.';
51591
51653
  readonly input: {
51592
51654
  readonly encoding: 'application/json';
51593
51655
  readonly schema: {
@@ -51609,16 +51671,33 @@ export declare const schemas: ({
51609
51671
  readonly collection: {
51610
51672
  readonly type: 'string';
51611
51673
  readonly format: 'nsid';
51612
- readonly description: "Collection name for record subjects. Required if subjectTypes includes 'record'.";
51674
+ readonly description: 'Collection name for record subjects. Omit to accept every collection.';
51613
51675
  };
51614
51676
  readonly reportTypes: {
51615
51677
  readonly type: 'array';
51616
51678
  readonly items: {
51617
51679
  readonly type: 'string';
51618
51680
  };
51619
- readonly maxLength: 25;
51620
51681
  readonly description: 'Report reason types (fully qualified NSIDs)';
51621
51682
  };
51683
+ readonly reporterTags: {
51684
+ readonly type: 'array';
51685
+ readonly maxLength: 25;
51686
+ readonly items: {
51687
+ readonly type: 'string';
51688
+ readonly minLength: 1;
51689
+ };
51690
+ readonly description: 'Match any listed tag on the account submitting the report.';
51691
+ };
51692
+ readonly accountTags: {
51693
+ readonly type: 'array';
51694
+ readonly maxLength: 25;
51695
+ readonly items: {
51696
+ readonly type: 'string';
51697
+ readonly minLength: 1;
51698
+ };
51699
+ readonly description: 'Match any of these tags on the account that is being reported against.';
51700
+ };
51622
51701
  readonly description: {
51623
51702
  readonly type: 'string';
51624
51703
  readonly description: 'Optional description of the queue';
@@ -51637,6 +51716,10 @@ export declare const schemas: ({
51637
51716
  };
51638
51717
  readonly description: 'Labels to recommend for this queue and use as fallback appeal routing mappings';
51639
51718
  };
51719
+ readonly strictAccess: {
51720
+ readonly type: 'boolean';
51721
+ readonly description: 'Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.';
51722
+ };
51640
51723
  };
51641
51724
  };
51642
51725
  };
@@ -51689,7 +51772,7 @@ export declare const schemas: ({
51689
51772
  readonly collection: {
51690
51773
  readonly type: 'string';
51691
51774
  readonly format: 'nsid';
51692
- readonly description: "Collection name for record subjects (e.g., 'app.bsky.feed.post')";
51775
+ readonly description: 'Collection name for record subjects. Omit to accept every collection.';
51693
51776
  };
51694
51777
  readonly reportTypes: {
51695
51778
  readonly type: 'array';
@@ -51698,6 +51781,24 @@ export declare const schemas: ({
51698
51781
  };
51699
51782
  readonly description: 'Report reason types this queue accepts (fully qualified NSIDs)';
51700
51783
  };
51784
+ readonly reporterTags: {
51785
+ readonly type: 'array';
51786
+ readonly maxLength: 25;
51787
+ readonly items: {
51788
+ readonly type: 'string';
51789
+ readonly minLength: 1;
51790
+ };
51791
+ readonly description: 'Match any listed tag on the account submitting the report.';
51792
+ };
51793
+ readonly accountTags: {
51794
+ readonly type: 'array';
51795
+ readonly maxLength: 25;
51796
+ readonly items: {
51797
+ readonly type: 'string';
51798
+ readonly minLength: 1;
51799
+ };
51800
+ readonly description: 'Match tags on the account that is being reported against. For record subjects, use the author account. Match any listed tag.';
51801
+ };
51701
51802
  readonly description: {
51702
51803
  readonly type: 'string';
51703
51804
  readonly description: 'Optional description of the queue';
@@ -51743,6 +51844,10 @@ export declare const schemas: ({
51743
51844
  readonly ref: 'lex:tools.ozone.queue.defs#queueStats';
51744
51845
  readonly description: 'Statistics about this queue';
51745
51846
  };
51847
+ readonly strictAccess: {
51848
+ readonly type: 'boolean';
51849
+ readonly description: 'Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.';
51850
+ };
51746
51851
  };
51747
51852
  };
51748
51853
  readonly queueStats: {
@@ -52159,6 +52264,10 @@ export declare const schemas: ({
52159
52264
  };
52160
52265
  readonly description: 'Labels to recommend for this queue and use as fallback appeal routing mappings';
52161
52266
  };
52267
+ readonly strictAccess: {
52268
+ readonly type: 'boolean';
52269
+ readonly description: 'Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.';
52270
+ };
52162
52271
  };
52163
52272
  };
52164
52273
  };
@@ -53930,6 +54039,11 @@ export declare const schemas: ({
53930
54039
  readonly type: 'string';
53931
54040
  readonly description: 'Filter by reason type';
53932
54041
  };
54042
+ readonly source: {
54043
+ readonly type: 'string';
54044
+ readonly maxLength: 128;
54045
+ readonly description: 'Filter by exact rule source. Omit to include all sources.';
54046
+ };
53933
54047
  readonly createdBy: {
53934
54048
  readonly type: 'string';
53935
54049
  readonly format: 'did';