@atproto/api 0.25.0 → 0.27.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 +20 -0
- package/dist/client/lexicons.d.ts +92 -8
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +46 -4
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/actor/link.d.ts +5 -0
- package/dist/client/types/app/bsky/actor/link.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/link.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.d.ts +11 -1
- package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts +6 -1
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#5642](https://github.com/bluesky-social/atproto/pull/5642) [`2db2f9d`](https://github.com/bluesky-social/atproto/commit/2db2f9d9cc619906d4cde3284d512c87bf26b9e7) Thanks [@foysalit](https://github.com/foysalit)! - Expose approved or denied outcomes on resolved moderation inbox appeals and snapshot outcomes in appeal resolution notifications. Preserve unknown historical outcomes, record no-action denials, and close targeted appeal reports when reversing a takedown.
|
|
8
|
+
|
|
9
|
+
Resolve outcomes only after indexed lookups select each subject's latest appeal, keeping page hydration independent of appeal history.
|
|
10
|
+
|
|
11
|
+
## 0.26.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#5641](https://github.com/bluesky-social/atproto/pull/5641) [`7184ed7`](https://github.com/bluesky-social/atproto/commit/7184ed74423e1d976ceb9e57310d2983c90c2f18) Thanks [@foysalit](https://github.com/foysalit)! - Replace the moderation inbox global push preference with independent reports, account, and labels preferences. Support atomic partial updates and preserve existing opt-outs through nullable category columns that inherit the stored global value. Clients must switch to the category fields.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#5647](https://github.com/bluesky-social/atproto/pull/5647) [`f882504`](https://github.com/bluesky-social/atproto/commit/f88250427e91402d6142bf908074ac6e368c455d) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Support self-labels on profile link records and include them in profile link views.
|
|
20
|
+
|
|
21
|
+
- [#5647](https://github.com/bluesky-social/atproto/pull/5647) [`f882504`](https://github.com/bluesky-social/atproto/commit/f88250427e91402d6142bf908074ac6e368c455d) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Apply takedown labels to individual profile links and expose labels on profile link views.
|
|
22
|
+
|
|
3
23
|
## 0.25.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -335,6 +335,13 @@ export declare const schemaDict: {
|
|
|
335
335
|
readonly format: 'uri';
|
|
336
336
|
readonly description: "Image URL for the destination site's icon.";
|
|
337
337
|
};
|
|
338
|
+
readonly labels: {
|
|
339
|
+
readonly type: 'array';
|
|
340
|
+
readonly items: {
|
|
341
|
+
readonly type: 'ref';
|
|
342
|
+
readonly ref: 'lex:com.atproto.label.defs#label';
|
|
343
|
+
};
|
|
344
|
+
};
|
|
338
345
|
};
|
|
339
346
|
};
|
|
340
347
|
readonly profileAssociatedActivitySubscription: {
|
|
@@ -1101,6 +1108,11 @@ export declare const schemaDict: {
|
|
|
1101
1108
|
readonly type: 'string';
|
|
1102
1109
|
readonly format: 'datetime';
|
|
1103
1110
|
};
|
|
1111
|
+
readonly labels: {
|
|
1112
|
+
readonly type: 'union';
|
|
1113
|
+
readonly description: 'Self-label values for this link.';
|
|
1114
|
+
readonly refs: ["lex:com.atproto.label.defs#selfLabels"];
|
|
1115
|
+
};
|
|
1104
1116
|
};
|
|
1105
1117
|
};
|
|
1106
1118
|
};
|
|
@@ -20421,6 +20433,11 @@ export declare const schemaDict: {
|
|
|
20421
20433
|
readonly format: 'datetime';
|
|
20422
20434
|
readonly description: "When the appeal's report was closed.";
|
|
20423
20435
|
};
|
|
20436
|
+
readonly outcome: {
|
|
20437
|
+
readonly type: 'string';
|
|
20438
|
+
readonly knownValues: ["approved", "denied"];
|
|
20439
|
+
readonly description: 'Decision on a resolved appeal.';
|
|
20440
|
+
};
|
|
20424
20441
|
readonly appealableUntil: {
|
|
20425
20442
|
readonly type: 'string';
|
|
20426
20443
|
readonly format: 'datetime';
|
|
@@ -20602,10 +20619,20 @@ export declare const schemaDict: {
|
|
|
20602
20619
|
};
|
|
20603
20620
|
readonly notificationPreferences: {
|
|
20604
20621
|
readonly type: 'object';
|
|
20605
|
-
readonly
|
|
20622
|
+
readonly description: 'Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled.';
|
|
20623
|
+
readonly required: ["reports", "account", "labels"];
|
|
20606
20624
|
readonly properties: {
|
|
20607
|
-
readonly
|
|
20625
|
+
readonly reports: {
|
|
20608
20626
|
readonly type: 'boolean';
|
|
20627
|
+
readonly description: 'Notify about outcomes of reports filed by the account (reportResolved and reportReopened).';
|
|
20628
|
+
};
|
|
20629
|
+
readonly account: {
|
|
20630
|
+
readonly type: 'boolean';
|
|
20631
|
+
readonly description: 'Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels.';
|
|
20632
|
+
};
|
|
20633
|
+
readonly labels: {
|
|
20634
|
+
readonly type: 'boolean';
|
|
20635
|
+
readonly description: 'Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).';
|
|
20609
20636
|
};
|
|
20610
20637
|
};
|
|
20611
20638
|
};
|
|
@@ -20631,6 +20658,11 @@ export declare const schemaDict: {
|
|
|
20631
20658
|
readonly type: 'object';
|
|
20632
20659
|
readonly required: ["subject"];
|
|
20633
20660
|
readonly properties: {
|
|
20661
|
+
readonly appealOutcome: {
|
|
20662
|
+
readonly type: 'string';
|
|
20663
|
+
readonly knownValues: ["approved", "denied"];
|
|
20664
|
+
readonly description: 'Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown.';
|
|
20665
|
+
};
|
|
20634
20666
|
readonly subject: {
|
|
20635
20667
|
readonly type: 'union';
|
|
20636
20668
|
readonly refs: ["lex:com.atproto.admin.defs#repoRef", "lex:com.atproto.repo.strongRef"];
|
|
@@ -20761,6 +20793,7 @@ export declare const schemaDict: {
|
|
|
20761
20793
|
readonly defs: {
|
|
20762
20794
|
readonly main: {
|
|
20763
20795
|
readonly type: 'query';
|
|
20796
|
+
readonly description: 'Get moderation push notification preferences for report outcomes, account actions, and labeling. Returns all three categories, defaulting to enabled for an account without saved preferences.';
|
|
20764
20797
|
readonly parameters: {
|
|
20765
20798
|
readonly type: 'params';
|
|
20766
20799
|
readonly properties: {
|
|
@@ -21208,14 +21241,23 @@ export declare const schemaDict: {
|
|
|
21208
21241
|
readonly defs: {
|
|
21209
21242
|
readonly main: {
|
|
21210
21243
|
readonly type: 'procedure';
|
|
21244
|
+
readonly description: "Update the authenticated account's moderation push notification preferences. Only provided categories are updated; omitted categories retain their values. At least one category must be provided. Returns all three preferences. These preferences do not hide in-app inbox activity.";
|
|
21211
21245
|
readonly input: {
|
|
21212
21246
|
readonly encoding: 'application/json';
|
|
21213
21247
|
readonly schema: {
|
|
21214
21248
|
readonly type: 'object';
|
|
21215
|
-
readonly required: ["push"];
|
|
21216
21249
|
readonly properties: {
|
|
21217
|
-
readonly
|
|
21250
|
+
readonly reports: {
|
|
21251
|
+
readonly type: 'boolean';
|
|
21252
|
+
readonly description: 'Notify about outcomes of reports filed by the account.';
|
|
21253
|
+
};
|
|
21254
|
+
readonly account: {
|
|
21255
|
+
readonly type: 'boolean';
|
|
21256
|
+
readonly description: 'Notify about moderation actions against the account or its content, excluding labeling.';
|
|
21257
|
+
};
|
|
21258
|
+
readonly labels: {
|
|
21218
21259
|
readonly type: 'boolean';
|
|
21260
|
+
readonly description: 'Notify about labels applied to or removed from the account or its content.';
|
|
21219
21261
|
};
|
|
21220
21262
|
};
|
|
21221
21263
|
};
|
|
@@ -27940,6 +27982,13 @@ export declare const schemas: ({
|
|
|
27940
27982
|
readonly format: 'uri';
|
|
27941
27983
|
readonly description: "Image URL for the destination site's icon.";
|
|
27942
27984
|
};
|
|
27985
|
+
readonly labels: {
|
|
27986
|
+
readonly type: 'array';
|
|
27987
|
+
readonly items: {
|
|
27988
|
+
readonly type: 'ref';
|
|
27989
|
+
readonly ref: 'lex:com.atproto.label.defs#label';
|
|
27990
|
+
};
|
|
27991
|
+
};
|
|
27943
27992
|
};
|
|
27944
27993
|
};
|
|
27945
27994
|
readonly profileAssociatedActivitySubscription: {
|
|
@@ -28701,6 +28750,11 @@ export declare const schemas: ({
|
|
|
28701
28750
|
readonly type: 'string';
|
|
28702
28751
|
readonly format: 'datetime';
|
|
28703
28752
|
};
|
|
28753
|
+
readonly labels: {
|
|
28754
|
+
readonly type: 'union';
|
|
28755
|
+
readonly description: 'Self-label values for this link.';
|
|
28756
|
+
readonly refs: ["lex:com.atproto.label.defs#selfLabels"];
|
|
28757
|
+
};
|
|
28704
28758
|
};
|
|
28705
28759
|
};
|
|
28706
28760
|
};
|
|
@@ -47708,6 +47762,11 @@ export declare const schemas: ({
|
|
|
47708
47762
|
readonly format: 'datetime';
|
|
47709
47763
|
readonly description: "When the appeal's report was closed.";
|
|
47710
47764
|
};
|
|
47765
|
+
readonly outcome: {
|
|
47766
|
+
readonly type: 'string';
|
|
47767
|
+
readonly knownValues: ["approved", "denied"];
|
|
47768
|
+
readonly description: 'Decision on a resolved appeal.';
|
|
47769
|
+
};
|
|
47711
47770
|
readonly appealableUntil: {
|
|
47712
47771
|
readonly type: 'string';
|
|
47713
47772
|
readonly format: 'datetime';
|
|
@@ -47889,10 +47948,20 @@ export declare const schemas: ({
|
|
|
47889
47948
|
};
|
|
47890
47949
|
readonly notificationPreferences: {
|
|
47891
47950
|
readonly type: 'object';
|
|
47892
|
-
readonly
|
|
47951
|
+
readonly description: 'Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled.';
|
|
47952
|
+
readonly required: ["reports", "account", "labels"];
|
|
47893
47953
|
readonly properties: {
|
|
47894
|
-
readonly
|
|
47954
|
+
readonly reports: {
|
|
47895
47955
|
readonly type: 'boolean';
|
|
47956
|
+
readonly description: 'Notify about outcomes of reports filed by the account (reportResolved and reportReopened).';
|
|
47957
|
+
};
|
|
47958
|
+
readonly account: {
|
|
47959
|
+
readonly type: 'boolean';
|
|
47960
|
+
readonly description: 'Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels.';
|
|
47961
|
+
};
|
|
47962
|
+
readonly labels: {
|
|
47963
|
+
readonly type: 'boolean';
|
|
47964
|
+
readonly description: 'Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).';
|
|
47896
47965
|
};
|
|
47897
47966
|
};
|
|
47898
47967
|
};
|
|
@@ -47918,6 +47987,11 @@ export declare const schemas: ({
|
|
|
47918
47987
|
readonly type: 'object';
|
|
47919
47988
|
readonly required: ["subject"];
|
|
47920
47989
|
readonly properties: {
|
|
47990
|
+
readonly appealOutcome: {
|
|
47991
|
+
readonly type: 'string';
|
|
47992
|
+
readonly knownValues: ["approved", "denied"];
|
|
47993
|
+
readonly description: 'Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown.';
|
|
47994
|
+
};
|
|
47921
47995
|
readonly subject: {
|
|
47922
47996
|
readonly type: 'union';
|
|
47923
47997
|
readonly refs: ["lex:com.atproto.admin.defs#repoRef", "lex:com.atproto.repo.strongRef"];
|
|
@@ -48045,6 +48119,7 @@ export declare const schemas: ({
|
|
|
48045
48119
|
readonly defs: {
|
|
48046
48120
|
readonly main: {
|
|
48047
48121
|
readonly type: 'query';
|
|
48122
|
+
readonly description: 'Get moderation push notification preferences for report outcomes, account actions, and labeling. Returns all three categories, defaulting to enabled for an account without saved preferences.';
|
|
48048
48123
|
readonly parameters: {
|
|
48049
48124
|
readonly type: 'params';
|
|
48050
48125
|
readonly properties: {
|
|
@@ -48486,14 +48561,23 @@ export declare const schemas: ({
|
|
|
48486
48561
|
readonly defs: {
|
|
48487
48562
|
readonly main: {
|
|
48488
48563
|
readonly type: 'procedure';
|
|
48564
|
+
readonly description: "Update the authenticated account's moderation push notification preferences. Only provided categories are updated; omitted categories retain their values. At least one category must be provided. Returns all three preferences. These preferences do not hide in-app inbox activity.";
|
|
48489
48565
|
readonly input: {
|
|
48490
48566
|
readonly encoding: 'application/json';
|
|
48491
48567
|
readonly schema: {
|
|
48492
48568
|
readonly type: 'object';
|
|
48493
|
-
readonly required: ["push"];
|
|
48494
48569
|
readonly properties: {
|
|
48495
|
-
readonly
|
|
48570
|
+
readonly reports: {
|
|
48571
|
+
readonly type: 'boolean';
|
|
48572
|
+
readonly description: 'Notify about outcomes of reports filed by the account.';
|
|
48573
|
+
};
|
|
48574
|
+
readonly account: {
|
|
48575
|
+
readonly type: 'boolean';
|
|
48576
|
+
readonly description: 'Notify about moderation actions against the account or its content, excluding labeling.';
|
|
48577
|
+
};
|
|
48578
|
+
readonly labels: {
|
|
48496
48579
|
readonly type: 'boolean';
|
|
48580
|
+
readonly description: 'Notify about labels applied to or removed from the account or its content.';
|
|
48497
48581
|
};
|
|
48498
48582
|
};
|
|
48499
48583
|
};
|