@atproto/api 0.18.6 → 0.18.7

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.
@@ -36,7 +36,7 @@ export interface Notification {
36
36
  cid: string;
37
37
  author: AppBskyActorDefs.ProfileView;
38
38
  /** The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. */
39
- reason: 'like' | 'repost' | 'follow' | 'mention' | 'reply' | 'quote' | 'starterpack-joined' | 'verified' | 'unverified' | 'like-via-repost' | 'repost-via-repost' | 'subscribed-post' | (string & {});
39
+ reason: 'like' | 'repost' | 'follow' | 'mention' | 'reply' | 'quote' | 'starterpack-joined' | 'verified' | 'unverified' | 'like-via-repost' | 'repost-via-repost' | 'subscribed-post' | 'contact-match' | (string & {});
40
40
  reasonSubject?: string;
41
41
  record: {
42
42
  [_ in string]: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"listNotifications.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/listNotifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,sDAAsD,CAAA;IAC9D,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,gBAAgB,CAAC,WAAW,CAAA;IACpC,iHAAiH;IACjH,MAAM,EACF,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,oBAAoB,GACpB,UAAU,GACV,YAAY,GACZ,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GACjB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;IAClC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;CACrC;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8GAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
1
+ {"version":3,"file":"listNotifications.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/listNotifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EA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ACZ,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GACjB,eAAe,GACf,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;IAClC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;CACrC;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8GAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"listNotifications.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/listNotifications.ts"],"names":[],"mappings":";;AA+CA,gCAEC;AA+BD,wCAEC;AAED,oDAEC;AAhFD,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA;AA8BpD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AA6BD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.notification.listNotifications'\n\nexport type QueryParams = {\n /** Notification reasons to include in response. */\n reasons?: string[]\n limit?: number\n priority?: boolean\n cursor?: string\n seenAt?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n notifications: Notification[]\n priority?: boolean\n seenAt?: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n\nexport interface Notification {\n $type?: 'app.bsky.notification.listNotifications#notification'\n uri: string\n cid: string\n author: AppBskyActorDefs.ProfileView\n /** The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. */\n reason:\n | 'like'\n | 'repost'\n | 'follow'\n | 'mention'\n | 'reply'\n | 'quote'\n | 'starterpack-joined'\n | 'verified'\n | 'unverified'\n | 'like-via-repost'\n | 'repost-via-repost'\n | 'subscribed-post'\n | (string & {})\n reasonSubject?: string\n record: { [_ in string]: unknown }\n isRead: boolean\n indexedAt: string\n labels?: ComAtprotoLabelDefs.Label[]\n}\n\nconst hashNotification = 'notification'\n\nexport function isNotification<V>(v: V) {\n return is$typed(v, id, hashNotification)\n}\n\nexport function validateNotification<V>(v: V) {\n return validate<Notification & V>(v, id, hashNotification)\n}\n"]}
1
+ {"version":3,"file":"listNotifications.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/listNotifications.ts"],"names":[],"mappings":";;AA+CA,gCAEC;AAgCD,wCAEC;AAED,oDAEC;AAjFD,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA;AA8BpD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AA8BD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.notification.listNotifications'\n\nexport type QueryParams = {\n /** Notification reasons to include in response. */\n reasons?: string[]\n limit?: number\n priority?: boolean\n cursor?: string\n seenAt?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n notifications: Notification[]\n priority?: boolean\n seenAt?: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n\nexport interface Notification {\n $type?: 'app.bsky.notification.listNotifications#notification'\n uri: string\n cid: string\n author: AppBskyActorDefs.ProfileView\n /** The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. */\n reason:\n | 'like'\n | 'repost'\n | 'follow'\n | 'mention'\n | 'reply'\n | 'quote'\n | 'starterpack-joined'\n | 'verified'\n | 'unverified'\n | 'like-via-repost'\n | 'repost-via-repost'\n | 'subscribed-post'\n | 'contact-match'\n | (string & {})\n reasonSubject?: string\n record: { [_ in string]: unknown }\n isRead: boolean\n indexedAt: string\n labels?: ComAtprotoLabelDefs.Label[]\n}\n\nconst hashNotification = 'notification'\n\nexport function isNotification<V>(v: V) {\n return is$typed(v, id, hashNotification)\n}\n\nexport function validateNotification<V>(v: V) {\n return validate<Notification & V>(v, id, hashNotification)\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.18.6",
3
+ "version": "0.18.7",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  "tlds": "^1.234.0",
23
23
  "zod": "^3.23.8",
24
24
  "@atproto/common-web": "^0.4.7",
25
- "@atproto/lexicon": "^0.6.0",
26
25
  "@atproto/syntax": "^0.4.2",
26
+ "@atproto/lexicon": "^0.6.0",
27
27
  "@atproto/xrpc": "^0.7.7"
28
28
  },
29
29
  "devDependencies": {
@@ -6803,6 +6803,7 @@ export const schemaDict = {
6803
6803
  'like-via-repost',
6804
6804
  'repost-via-repost',
6805
6805
  'subscribed-post',
6806
+ 'contact-match',
6806
6807
  ],
6807
6808
  },
6808
6809
  reasonSubject: {
@@ -68,6 +68,7 @@ export interface Notification {
68
68
  | 'like-via-repost'
69
69
  | 'repost-via-repost'
70
70
  | 'subscribed-post'
71
+ | 'contact-match'
71
72
  | (string & {})
72
73
  reasonSubject?: string
73
74
  record: { [_ in string]: unknown }