@atproto/api 0.25.0 → 0.26.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.
@@ -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
  },
@@ -21744,10 +21756,20 @@ export const schemaDict = {
21744
21756
  },
21745
21757
  notificationPreferences: {
21746
21758
  type: 'object',
21747
- required: ['push'],
21759
+ description: 'Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled.',
21760
+ required: ['reports', 'account', 'labels'],
21748
21761
  properties: {
21749
- push: {
21762
+ reports: {
21750
21763
  type: 'boolean',
21764
+ description: 'Notify about outcomes of reports filed by the account (reportResolved and reportReopened).',
21765
+ },
21766
+ account: {
21767
+ type: 'boolean',
21768
+ 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.',
21769
+ },
21770
+ labels: {
21771
+ type: 'boolean',
21772
+ description: 'Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).',
21751
21773
  },
21752
21774
  },
21753
21775
  },
@@ -21911,6 +21933,7 @@ export const schemaDict = {
21911
21933
  defs: {
21912
21934
  main: {
21913
21935
  type: 'query',
21936
+ 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
21937
  parameters: {
21915
21938
  type: 'params',
21916
21939
  properties: {
@@ -22394,14 +22417,23 @@ export const schemaDict = {
22394
22417
  defs: {
22395
22418
  main: {
22396
22419
  type: 'procedure',
22420
+ 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
22421
  input: {
22398
22422
  encoding: 'application/json',
22399
22423
  schema: {
22400
22424
  type: 'object',
22401
- required: ['push'],
22402
22425
  properties: {
22403
- push: {
22426
+ reports: {
22427
+ type: 'boolean',
22428
+ description: 'Notify about outcomes of reports filed by the account.',
22429
+ },
22430
+ account: {
22431
+ type: 'boolean',
22432
+ description: 'Notify about moderation actions against the account or its content, excluding labeling.',
22433
+ },
22434
+ labels: {
22404
22435
  type: 'boolean',
22436
+ description: 'Notify about labels applied to or removed from the account or its content.',
22405
22437
  },
22406
22438
  },
22407
22439
  },