diff --git a/lexicons/app/bsky/notification/listNotifications.json b/lexicons/app/bsky/notification/listNotifications.json index f3abe5139d0..eac2dc9bba7 100644 --- a/lexicons/app/bsky/notification/listNotifications.json +++ b/lexicons/app/bsky/notification/listNotifications.json @@ -9,10 +9,20 @@ "type": "params", "properties": { "filter": { - "type": "string", "description": "Notification types to include in response.", - "knownValues": ["all", "mentions"], - "default": "all" + "type": "array", + "items": { + "type": "string", + "knownValues": [ + "like", + "repost", + "follow", + "mention", + "reply", + "quote", + "starterpack-joined" + ] + } }, "limit": { "type": "integer", diff --git a/packages/api/src/client/lexicons.ts b/packages/api/src/client/lexicons.ts index f3c63904158..5ee7cd3d424 100644 --- a/packages/api/src/client/lexicons.ts +++ b/packages/api/src/client/lexicons.ts @@ -8945,10 +8945,20 @@ export const schemaDict = { type: 'params', properties: { filter: { - type: 'string', description: 'Notification types to include in response.', - knownValues: ['all', 'mentions'], - default: 'all', + type: 'array', + items: { + type: 'string', + knownValues: [ + 'like', + 'repost', + 'follow', + 'mention', + 'reply', + 'quote', + 'starterpack-joined', + ], + }, }, limit: { type: 'integer', diff --git a/packages/api/src/client/types/app/bsky/notification/listNotifications.ts b/packages/api/src/client/types/app/bsky/notification/listNotifications.ts index cf935a8b625..be4a2e758d8 100644 --- a/packages/api/src/client/types/app/bsky/notification/listNotifications.ts +++ b/packages/api/src/client/types/app/bsky/notification/listNotifications.ts @@ -11,7 +11,15 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' export interface QueryParams { /** Notification types to include in response. */ - filter?: 'all' | 'mentions' | (string & {}) + filter?: + | 'like' + | 'repost' + | 'follow' + | 'mention' + | 'reply' + | 'quote' + | 'starterpack-joined' + | (string & {})[] limit?: number priority?: boolean cursor?: string diff --git a/packages/bsky/src/lexicon/lexicons.ts b/packages/bsky/src/lexicon/lexicons.ts index 4b7e3c3dd44..12c20ad858f 100644 --- a/packages/bsky/src/lexicon/lexicons.ts +++ b/packages/bsky/src/lexicon/lexicons.ts @@ -8945,10 +8945,20 @@ export const schemaDict = { type: 'params', properties: { filter: { - type: 'string', description: 'Notification types to include in response.', - knownValues: ['all', 'mentions'], - default: 'all', + type: 'array', + items: { + type: 'string', + knownValues: [ + 'like', + 'repost', + 'follow', + 'mention', + 'reply', + 'quote', + 'starterpack-joined', + ], + }, }, limit: { type: 'integer', diff --git a/packages/bsky/src/lexicon/types/app/bsky/notification/listNotifications.ts b/packages/bsky/src/lexicon/types/app/bsky/notification/listNotifications.ts index 31066ac9499..32cd7dcc797 100644 --- a/packages/bsky/src/lexicon/types/app/bsky/notification/listNotifications.ts +++ b/packages/bsky/src/lexicon/types/app/bsky/notification/listNotifications.ts @@ -12,7 +12,15 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' export interface QueryParams { /** Notification types to include in response. */ - filter: 'all' | 'mentions' | (string & {}) + filter?: + | 'like' + | 'repost' + | 'follow' + | 'mention' + | 'reply' + | 'quote' + | 'starterpack-joined' + | (string & {})[] limit: number priority?: boolean cursor?: string diff --git a/packages/ozone/src/lexicon/lexicons.ts b/packages/ozone/src/lexicon/lexicons.ts index f3c63904158..5ee7cd3d424 100644 --- a/packages/ozone/src/lexicon/lexicons.ts +++ b/packages/ozone/src/lexicon/lexicons.ts @@ -8945,10 +8945,20 @@ export const schemaDict = { type: 'params', properties: { filter: { - type: 'string', description: 'Notification types to include in response.', - knownValues: ['all', 'mentions'], - default: 'all', + type: 'array', + items: { + type: 'string', + knownValues: [ + 'like', + 'repost', + 'follow', + 'mention', + 'reply', + 'quote', + 'starterpack-joined', + ], + }, }, limit: { type: 'integer', diff --git a/packages/ozone/src/lexicon/types/app/bsky/notification/listNotifications.ts b/packages/ozone/src/lexicon/types/app/bsky/notification/listNotifications.ts index 31066ac9499..32cd7dcc797 100644 --- a/packages/ozone/src/lexicon/types/app/bsky/notification/listNotifications.ts +++ b/packages/ozone/src/lexicon/types/app/bsky/notification/listNotifications.ts @@ -12,7 +12,15 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' export interface QueryParams { /** Notification types to include in response. */ - filter: 'all' | 'mentions' | (string & {}) + filter?: + | 'like' + | 'repost' + | 'follow' + | 'mention' + | 'reply' + | 'quote' + | 'starterpack-joined' + | (string & {})[] limit: number priority?: boolean cursor?: string diff --git a/packages/pds/src/lexicon/lexicons.ts b/packages/pds/src/lexicon/lexicons.ts index f3c63904158..5ee7cd3d424 100644 --- a/packages/pds/src/lexicon/lexicons.ts +++ b/packages/pds/src/lexicon/lexicons.ts @@ -8945,10 +8945,20 @@ export const schemaDict = { type: 'params', properties: { filter: { - type: 'string', description: 'Notification types to include in response.', - knownValues: ['all', 'mentions'], - default: 'all', + type: 'array', + items: { + type: 'string', + knownValues: [ + 'like', + 'repost', + 'follow', + 'mention', + 'reply', + 'quote', + 'starterpack-joined', + ], + }, }, limit: { type: 'integer', diff --git a/packages/pds/src/lexicon/types/app/bsky/notification/listNotifications.ts b/packages/pds/src/lexicon/types/app/bsky/notification/listNotifications.ts index 31066ac9499..32cd7dcc797 100644 --- a/packages/pds/src/lexicon/types/app/bsky/notification/listNotifications.ts +++ b/packages/pds/src/lexicon/types/app/bsky/notification/listNotifications.ts @@ -12,7 +12,15 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' export interface QueryParams { /** Notification types to include in response. */ - filter: 'all' | 'mentions' | (string & {}) + filter?: + | 'like' + | 'repost' + | 'follow' + | 'mention' + | 'reply' + | 'quote' + | 'starterpack-joined' + | (string & {})[] limit: number priority?: boolean cursor?: string