Skip to content

Commit

Permalink
update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms authored and gaearon committed Dec 10, 2024
1 parent 415a359 commit 219582b
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 19 deletions.
16 changes: 13 additions & 3 deletions lexicons/app/bsky/notification/listNotifications.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 13 additions & 3 deletions packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions packages/ozone/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 219582b

Please sign in to comment.