Skip to content

Commit

Permalink
Add reasons param to listNotifications (#3222)
Browse files Browse the repository at this point in the history
* Add filter param to listNotifications

* Codegen

* Changeset

* update schemas

* tweak schema

* filter -> reasons

---------

Co-authored-by: dholms <[email protected]>
  • Loading branch information
gaearon and dholms authored Dec 11, 2024
1 parent 9fd65ba commit 207728d
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/stupid-feet-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@atproto/ozone": patch
"@atproto/bsky": patch
"@atproto/api": patch
"@atproto/pds": patch
---

Add optional reasons param to listNotifications
8 changes: 8 additions & 0 deletions lexicons/app/bsky/notification/listNotifications.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
"parameters": {
"type": "params",
"properties": {
"reasons": {
"description": "Notification reasons to include in response.",
"type": "array",
"items": {
"type": "string",
"description": "A reason that matches the reason property of #notification."
}
},
"limit": {
"type": "integer",
"minimum": 1,
Expand Down
9 changes: 9 additions & 0 deletions packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8944,6 +8944,15 @@ export const schemaDict = {
parameters: {
type: 'params',
properties: {
reasons: {
description: 'Notification reasons to include in response.',
type: 'array',
items: {
type: 'string',
description:
'A reason that matches the reason property of #notification.',
},
},
limit: {
type: 'integer',
minimum: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import * as AppBskyActorDefs from '../actor/defs'
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'

export interface QueryParams {
/** Notification reasons to include in response. */
reasons?: string[]
limit?: number
priority?: boolean
cursor?: string
Expand Down
9 changes: 9 additions & 0 deletions packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8944,6 +8944,15 @@ export const schemaDict = {
parameters: {
type: 'params',
properties: {
reasons: {
description: 'Notification reasons to include in response.',
type: 'array',
items: {
type: 'string',
description:
'A reason that matches the reason property of #notification.',
},
},
limit: {
type: 'integer',
minimum: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import * as AppBskyActorDefs from '../actor/defs'
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'

export interface QueryParams {
/** Notification reasons to include in response. */
reasons?: string[]
limit: number
priority?: boolean
cursor?: string
Expand Down
9 changes: 9 additions & 0 deletions packages/ozone/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8944,6 +8944,15 @@ export const schemaDict = {
parameters: {
type: 'params',
properties: {
reasons: {
description: 'Notification reasons to include in response.',
type: 'array',
items: {
type: 'string',
description:
'A reason that matches the reason property of #notification.',
},
},
limit: {
type: 'integer',
minimum: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import * as AppBskyActorDefs from '../actor/defs'
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'

export interface QueryParams {
/** Notification reasons to include in response. */
reasons?: string[]
limit: number
priority?: boolean
cursor?: string
Expand Down
9 changes: 9 additions & 0 deletions packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8944,6 +8944,15 @@ export const schemaDict = {
parameters: {
type: 'params',
properties: {
reasons: {
description: 'Notification reasons to include in response.',
type: 'array',
items: {
type: 'string',
description:
'A reason that matches the reason property of #notification.',
},
},
limit: {
type: 'integer',
minimum: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import * as AppBskyActorDefs from '../actor/defs'
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'

export interface QueryParams {
/** Notification reasons to include in response. */
reasons?: string[]
limit: number
priority?: boolean
cursor?: string
Expand Down

0 comments on commit 207728d

Please sign in to comment.