@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/dist/client/lexicons.js
CHANGED
|
@@ -336,6 +336,13 @@ export const schemaDict = {
|
|
|
336
336
|
format: 'uri',
|
|
337
337
|
description: "Image URL for the destination site's icon.",
|
|
338
338
|
},
|
|
339
|
+
labels: {
|
|
340
|
+
type: 'array',
|
|
341
|
+
items: {
|
|
342
|
+
type: 'ref',
|
|
343
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
344
|
+
},
|
|
345
|
+
},
|
|
339
346
|
},
|
|
340
347
|
},
|
|
341
348
|
profileAssociatedActivitySubscription: {
|
|
@@ -1130,6 +1137,11 @@ export const schemaDict = {
|
|
|
1130
1137
|
type: 'string',
|
|
1131
1138
|
format: 'datetime',
|
|
1132
1139
|
},
|
|
1140
|
+
labels: {
|
|
1141
|
+
type: 'union',
|
|
1142
|
+
description: 'Self-label values for this link.',
|
|
1143
|
+
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
1144
|
+
},
|
|
1133
1145
|
},
|
|
1134
1146
|
},
|
|
1135
1147
|
},
|
|
@@ -21541,6 +21553,11 @@ export const schemaDict = {
|
|
|
21541
21553
|
format: 'datetime',
|
|
21542
21554
|
description: "When the appeal's report was closed.",
|
|
21543
21555
|
},
|
|
21556
|
+
outcome: {
|
|
21557
|
+
type: 'string',
|
|
21558
|
+
knownValues: ['approved', 'denied'],
|
|
21559
|
+
description: 'Decision on a resolved appeal.',
|
|
21560
|
+
},
|
|
21544
21561
|
appealableUntil: {
|
|
21545
21562
|
type: 'string',
|
|
21546
21563
|
format: 'datetime',
|
|
@@ -21744,10 +21761,20 @@ export const schemaDict = {
|
|
|
21744
21761
|
},
|
|
21745
21762
|
notificationPreferences: {
|
|
21746
21763
|
type: 'object',
|
|
21747
|
-
|
|
21764
|
+
description: 'Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled.',
|
|
21765
|
+
required: ['reports', 'account', 'labels'],
|
|
21748
21766
|
properties: {
|
|
21749
|
-
|
|
21767
|
+
reports: {
|
|
21750
21768
|
type: 'boolean',
|
|
21769
|
+
description: 'Notify about outcomes of reports filed by the account (reportResolved and reportReopened).',
|
|
21770
|
+
},
|
|
21771
|
+
account: {
|
|
21772
|
+
type: 'boolean',
|
|
21773
|
+
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.',
|
|
21774
|
+
},
|
|
21775
|
+
labels: {
|
|
21776
|
+
type: 'boolean',
|
|
21777
|
+
description: 'Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).',
|
|
21751
21778
|
},
|
|
21752
21779
|
},
|
|
21753
21780
|
},
|
|
@@ -21776,6 +21803,11 @@ export const schemaDict = {
|
|
|
21776
21803
|
type: 'object',
|
|
21777
21804
|
required: ['subject'],
|
|
21778
21805
|
properties: {
|
|
21806
|
+
appealOutcome: {
|
|
21807
|
+
type: 'string',
|
|
21808
|
+
knownValues: ['approved', 'denied'],
|
|
21809
|
+
description: 'Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown.',
|
|
21810
|
+
},
|
|
21779
21811
|
subject: {
|
|
21780
21812
|
type: 'union',
|
|
21781
21813
|
refs: [
|
|
@@ -21911,6 +21943,7 @@ export const schemaDict = {
|
|
|
21911
21943
|
defs: {
|
|
21912
21944
|
main: {
|
|
21913
21945
|
type: 'query',
|
|
21946
|
+
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.',
|
|
21914
21947
|
parameters: {
|
|
21915
21948
|
type: 'params',
|
|
21916
21949
|
properties: {
|
|
@@ -22394,14 +22427,23 @@ export const schemaDict = {
|
|
|
22394
22427
|
defs: {
|
|
22395
22428
|
main: {
|
|
22396
22429
|
type: 'procedure',
|
|
22430
|
+
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.",
|
|
22397
22431
|
input: {
|
|
22398
22432
|
encoding: 'application/json',
|
|
22399
22433
|
schema: {
|
|
22400
22434
|
type: 'object',
|
|
22401
|
-
required: ['push'],
|
|
22402
22435
|
properties: {
|
|
22403
|
-
|
|
22436
|
+
reports: {
|
|
22437
|
+
type: 'boolean',
|
|
22438
|
+
description: 'Notify about outcomes of reports filed by the account.',
|
|
22439
|
+
},
|
|
22440
|
+
account: {
|
|
22441
|
+
type: 'boolean',
|
|
22442
|
+
description: 'Notify about moderation actions against the account or its content, excluding labeling.',
|
|
22443
|
+
},
|
|
22444
|
+
labels: {
|
|
22404
22445
|
type: 'boolean',
|
|
22446
|
+
description: 'Notify about labels applied to or removed from the account or its content.',
|
|
22405
22447
|
},
|
|
22406
22448
|
},
|
|
22407
22449
|
},
|