@atproto/api 0.30.3 → 0.31.0

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,18 @@
1
1
  # @atproto/api
2
2
 
3
+ ## 0.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#5802](https://github.com/bluesky-social/atproto/pull/5802) [`d930c3b`](https://github.com/bluesky-social/atproto/commit/d930c3b6b401df7085b8e85f3fc83dbbc3e28605) Thanks [@foysalit](https://github.com/foysalit)! - Retire moderation subject statistics and count-based filters. Legacy count-based
8
+ sorts fall back to last reported time.
9
+
10
+ ### Patch Changes
11
+
12
+ - [#5861](https://github.com/bluesky-social/atproto/pull/5861) [`211c9e8`](https://github.com/bluesky-social/atproto/commit/211c9e8acceccca2e983b7bc8ebfc0756664c956) Thanks [@blackmichael](https://github.com/blackmichael)! - Use Iris Grain gallery recommendations in Atmosphere Explore behind `atmosphere_explore:galleries:iris:enable`, independently of article recommendations. Return the gallery recommendation ID in `photos.recIdStr`. Retain curated photos when Iris returns an empty list or fails.
13
+
14
+ Update the shared Explore contract description for recommended photo galleries.
15
+
3
16
  ## 0.30.3
4
17
 
5
18
  ### Patch Changes
@@ -9312,13 +9312,13 @@ export declare const schemaDict: {
9312
9312
  readonly defs: {
9313
9313
  readonly main: {
9314
9314
  readonly type: 'query';
9315
- readonly description: 'Get Atmosphere Explore content. Articles are recommended when algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Curated content is selected using the x-atproto-bsky-geo-country, x-atproto-bsky-geo-region, and x-atproto-bsky-topics request headers. Authentication is optional; authenticated requests include viewer-specific profile state.';
9315
+ readonly description: 'Get Atmosphere Explore content. Articles and photo galleries are recommended when their algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Curated content is selected using the x-atproto-bsky-geo-country, x-atproto-bsky-geo-region, and x-atproto-bsky-topics request headers. Authentication is optional; authenticated requests include viewer-specific profile state.';
9316
9316
  readonly parameters: {
9317
9317
  readonly type: 'params';
9318
9318
  readonly properties: {
9319
9319
  readonly langs: {
9320
9320
  readonly type: 'array';
9321
- readonly description: 'Preferred languages for article recommendations when algorithmic recommendations are enabled. Ignored otherwise.';
9321
+ readonly description: 'Preferred languages for article and photo gallery recommendations when their algorithmic recommendations are enabled. Ignored otherwise.';
9322
9322
  readonly items: {
9323
9323
  readonly type: 'string';
9324
9324
  readonly format: 'language';
@@ -22016,16 +22016,6 @@ export declare const schemaDict: {
22016
22016
  readonly type: 'string';
22017
22017
  };
22018
22018
  };
22019
- readonly accountStats: {
22020
- readonly description: 'Statistics related to the account subject';
22021
- readonly type: 'ref';
22022
- readonly ref: 'lex:tools.ozone.moderation.defs#accountStats';
22023
- };
22024
- readonly recordsStats: {
22025
- readonly description: "Statistics related to the record subjects authored by the subject's account";
22026
- readonly type: 'ref';
22027
- readonly ref: 'lex:tools.ozone.moderation.defs#recordsStats';
22028
- };
22029
22019
  readonly accountStrike: {
22030
22020
  readonly description: 'Strike information for the account (account-level only)';
22031
22021
  readonly type: 'ref';
@@ -22073,70 +22063,6 @@ export declare const schemaDict: {
22073
22063
  };
22074
22064
  };
22075
22065
  };
22076
- readonly accountStats: {
22077
- readonly description: 'Statistics about a particular account subject';
22078
- readonly type: 'object';
22079
- readonly properties: {
22080
- readonly reportCount: {
22081
- readonly description: 'Total number of reports on the account';
22082
- readonly type: 'integer';
22083
- };
22084
- readonly appealCount: {
22085
- readonly description: 'Total number of appeals against a moderation action on the account';
22086
- readonly type: 'integer';
22087
- };
22088
- readonly suspendCount: {
22089
- readonly description: 'Number of times the account was suspended';
22090
- readonly type: 'integer';
22091
- };
22092
- readonly escalateCount: {
22093
- readonly description: 'Number of times the account was escalated';
22094
- readonly type: 'integer';
22095
- };
22096
- readonly takedownCount: {
22097
- readonly description: 'Number of times the account was taken down';
22098
- readonly type: 'integer';
22099
- };
22100
- };
22101
- };
22102
- readonly recordsStats: {
22103
- readonly description: 'Statistics about a set of record subject items';
22104
- readonly type: 'object';
22105
- readonly properties: {
22106
- readonly totalReports: {
22107
- readonly description: 'Cumulative sum of the number of reports on the items in the set';
22108
- readonly type: 'integer';
22109
- };
22110
- readonly reportedCount: {
22111
- readonly description: 'Number of items that were reported at least once';
22112
- readonly type: 'integer';
22113
- };
22114
- readonly escalatedCount: {
22115
- readonly description: 'Number of items that were escalated at least once';
22116
- readonly type: 'integer';
22117
- };
22118
- readonly appealedCount: {
22119
- readonly description: 'Number of items that were appealed at least once';
22120
- readonly type: 'integer';
22121
- };
22122
- readonly subjectCount: {
22123
- readonly description: 'Total number of item in the set';
22124
- readonly type: 'integer';
22125
- };
22126
- readonly pendingCount: {
22127
- readonly description: 'Number of item currently in "reviewOpen" or "reviewEscalated" state';
22128
- readonly type: 'integer';
22129
- };
22130
- readonly processedCount: {
22131
- readonly description: 'Number of item currently in "reviewNone" or "reviewClosed" state';
22132
- readonly type: 'integer';
22133
- };
22134
- readonly takendownCount: {
22135
- readonly description: 'Number of item currently taken down';
22136
- readonly type: 'integer';
22137
- };
22138
- };
22139
- };
22140
22066
  readonly accountStrike: {
22141
22067
  readonly description: 'Strike information for an account';
22142
22068
  readonly type: 'object';
@@ -24008,8 +23934,9 @@ export declare const schemaDict: {
24008
23934
  };
24009
23935
  readonly sortField: {
24010
23936
  readonly type: 'string';
23937
+ readonly description: 'The reportedRecordsCount and takendownRecordsCount values are deprecated and use lastReportedAt instead.';
24011
23938
  readonly default: 'lastReportedAt';
24012
- readonly enum: ["lastReviewedAt", "lastReportedAt", "reportedRecordsCount", "takendownRecordsCount", "priorityScore"];
23939
+ readonly enum: ["lastReviewedAt", "lastReportedAt", "priorityScore", "reportedRecordsCount", "takendownRecordsCount"];
24013
23940
  };
24014
23941
  readonly sortDirection: {
24015
23942
  readonly type: 'string';
@@ -24061,18 +23988,6 @@ export declare const schemaDict: {
24061
23988
  readonly description: "If specified, subjects of the given type (account, record, or conversation) 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.";
24062
23989
  readonly knownValues: ["account", "record", "conversation"];
24063
23990
  };
24064
- readonly minAccountSuspendCount: {
24065
- readonly type: 'integer';
24066
- readonly description: 'If specified, only subjects that belong to an account that has at least this many suspensions will be returned.';
24067
- };
24068
- readonly minReportedRecordsCount: {
24069
- readonly type: 'integer';
24070
- readonly description: 'If specified, only subjects that belong to an account that has at least this many reported records will be returned.';
24071
- };
24072
- readonly minTakendownRecordsCount: {
24073
- readonly type: 'integer';
24074
- readonly description: 'If specified, only subjects that belong to an account that has at least this many taken down records will be returned.';
24075
- };
24076
23991
  readonly minPriorityScore: {
24077
23992
  readonly minimum: 0;
24078
23993
  readonly maximum: 100;
@@ -37571,13 +37486,13 @@ export declare const schemas: ({
37571
37486
  readonly defs: {
37572
37487
  readonly main: {
37573
37488
  readonly type: 'query';
37574
- readonly description: 'Get Atmosphere Explore content. Articles are recommended when algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Curated content is selected using the x-atproto-bsky-geo-country, x-atproto-bsky-geo-region, and x-atproto-bsky-topics request headers. Authentication is optional; authenticated requests include viewer-specific profile state.';
37489
+ readonly description: 'Get Atmosphere Explore content. Articles and photo galleries are recommended when their algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Curated content is selected using the x-atproto-bsky-geo-country, x-atproto-bsky-geo-region, and x-atproto-bsky-topics request headers. Authentication is optional; authenticated requests include viewer-specific profile state.';
37575
37490
  readonly parameters: {
37576
37491
  readonly type: 'params';
37577
37492
  readonly properties: {
37578
37493
  readonly langs: {
37579
37494
  readonly type: 'array';
37580
- readonly description: 'Preferred languages for article recommendations when algorithmic recommendations are enabled. Ignored otherwise.';
37495
+ readonly description: 'Preferred languages for article and photo gallery recommendations when their algorithmic recommendations are enabled. Ignored otherwise.';
37581
37496
  readonly items: {
37582
37497
  readonly type: 'string';
37583
37498
  readonly format: 'language';
@@ -50062,16 +49977,6 @@ export declare const schemas: ({
50062
49977
  readonly type: 'string';
50063
49978
  };
50064
49979
  };
50065
- readonly accountStats: {
50066
- readonly description: 'Statistics related to the account subject';
50067
- readonly type: 'ref';
50068
- readonly ref: 'lex:tools.ozone.moderation.defs#accountStats';
50069
- };
50070
- readonly recordsStats: {
50071
- readonly description: "Statistics related to the record subjects authored by the subject's account";
50072
- readonly type: 'ref';
50073
- readonly ref: 'lex:tools.ozone.moderation.defs#recordsStats';
50074
- };
50075
49980
  readonly accountStrike: {
50076
49981
  readonly description: 'Strike information for the account (account-level only)';
50077
49982
  readonly type: 'ref';
@@ -50119,70 +50024,6 @@ export declare const schemas: ({
50119
50024
  };
50120
50025
  };
50121
50026
  };
50122
- readonly accountStats: {
50123
- readonly description: 'Statistics about a particular account subject';
50124
- readonly type: 'object';
50125
- readonly properties: {
50126
- readonly reportCount: {
50127
- readonly description: 'Total number of reports on the account';
50128
- readonly type: 'integer';
50129
- };
50130
- readonly appealCount: {
50131
- readonly description: 'Total number of appeals against a moderation action on the account';
50132
- readonly type: 'integer';
50133
- };
50134
- readonly suspendCount: {
50135
- readonly description: 'Number of times the account was suspended';
50136
- readonly type: 'integer';
50137
- };
50138
- readonly escalateCount: {
50139
- readonly description: 'Number of times the account was escalated';
50140
- readonly type: 'integer';
50141
- };
50142
- readonly takedownCount: {
50143
- readonly description: 'Number of times the account was taken down';
50144
- readonly type: 'integer';
50145
- };
50146
- };
50147
- };
50148
- readonly recordsStats: {
50149
- readonly description: 'Statistics about a set of record subject items';
50150
- readonly type: 'object';
50151
- readonly properties: {
50152
- readonly totalReports: {
50153
- readonly description: 'Cumulative sum of the number of reports on the items in the set';
50154
- readonly type: 'integer';
50155
- };
50156
- readonly reportedCount: {
50157
- readonly description: 'Number of items that were reported at least once';
50158
- readonly type: 'integer';
50159
- };
50160
- readonly escalatedCount: {
50161
- readonly description: 'Number of items that were escalated at least once';
50162
- readonly type: 'integer';
50163
- };
50164
- readonly appealedCount: {
50165
- readonly description: 'Number of items that were appealed at least once';
50166
- readonly type: 'integer';
50167
- };
50168
- readonly subjectCount: {
50169
- readonly description: 'Total number of item in the set';
50170
- readonly type: 'integer';
50171
- };
50172
- readonly pendingCount: {
50173
- readonly description: 'Number of item currently in "reviewOpen" or "reviewEscalated" state';
50174
- readonly type: 'integer';
50175
- };
50176
- readonly processedCount: {
50177
- readonly description: 'Number of item currently in "reviewNone" or "reviewClosed" state';
50178
- readonly type: 'integer';
50179
- };
50180
- readonly takendownCount: {
50181
- readonly description: 'Number of item currently taken down';
50182
- readonly type: 'integer';
50183
- };
50184
- };
50185
- };
50186
50027
  readonly accountStrike: {
50187
50028
  readonly description: 'Strike information for an account';
50188
50029
  readonly type: 'object';
@@ -52041,8 +51882,9 @@ export declare const schemas: ({
52041
51882
  };
52042
51883
  readonly sortField: {
52043
51884
  readonly type: 'string';
51885
+ readonly description: 'The reportedRecordsCount and takendownRecordsCount values are deprecated and use lastReportedAt instead.';
52044
51886
  readonly default: 'lastReportedAt';
52045
- readonly enum: ["lastReviewedAt", "lastReportedAt", "reportedRecordsCount", "takendownRecordsCount", "priorityScore"];
51887
+ readonly enum: ["lastReviewedAt", "lastReportedAt", "priorityScore", "reportedRecordsCount", "takendownRecordsCount"];
52046
51888
  };
52047
51889
  readonly sortDirection: {
52048
51890
  readonly type: 'string';
@@ -52094,18 +51936,6 @@ export declare const schemas: ({
52094
51936
  readonly description: "If specified, subjects of the given type (account, record, or conversation) 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.";
52095
51937
  readonly knownValues: ["account", "record", "conversation"];
52096
51938
  };
52097
- readonly minAccountSuspendCount: {
52098
- readonly type: 'integer';
52099
- readonly description: 'If specified, only subjects that belong to an account that has at least this many suspensions will be returned.';
52100
- };
52101
- readonly minReportedRecordsCount: {
52102
- readonly type: 'integer';
52103
- readonly description: 'If specified, only subjects that belong to an account that has at least this many reported records will be returned.';
52104
- };
52105
- readonly minTakendownRecordsCount: {
52106
- readonly type: 'integer';
52107
- readonly description: 'If specified, only subjects that belong to an account that has at least this many taken down records will be returned.';
52108
- };
52109
51939
  readonly minPriorityScore: {
52110
51940
  readonly minimum: 0;
52111
51941
  readonly maximum: 100;