@atproto/api 0.24.3 → 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.
- package/CHANGELOG.md +28 -0
- package/dist/client/index.d.ts +28 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +35 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +498 -28
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +253 -14
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +16 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js +7 -0
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/actor/link.d.ts +24 -0
- package/dist/client/types/app/bsky/actor/link.d.ts.map +1 -0
- package/dist/client/types/app/bsky/actor/link.js +18 -0
- package/dist/client/types/app/bsky/actor/link.js.map +1 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts +2 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts +11 -4
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.js.map +1 -1
- package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts +49 -2
- package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts.map +1 -1
- package/dist/client/types/app/bsky/notification/getGroupedNotifications.js +42 -0
- package/dist/client/types/app/bsky/notification/getGroupedNotifications.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.d.ts +7 -1
- package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts +6 -1
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGroupedNotifications.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/getGroupedNotifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAK5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+CAA+C,CAAA;AA6C1D,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AA6BD,MAAM,SAAS,GAAG,OAAO,CAAA;AAEzB,MAAM,UAAU,OAAO,CAAI,CAAI;IAC7B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAY,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AAC9C,CAAC;AASD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAA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C,EACD,EAAE,EACF,iCAAiC,CAClC,CAAA;AACH,CAAC;AAQD,MAAM,4BAA4B,GAAG,0BAA0B,CAAA;AAE/D,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,4BAA4B,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAI,CAAI;IACtD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,4BAA4B,CAC7B,CAAA;AACH,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as AppBskyFeedDefs from '../feed/defs.js'\nimport type * as AppBskyGraphDefs from '../graph/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.notification.getGroupedNotifications'\n\nexport type QueryParams = {\n /** Which notification feed to return. Grouping behavior varies by feed: notifications about follows might be grouped in 'all' and ungrouped (or rather, in single-item groups) in 'followers'. */\n feed?:\n | 'all'\n | 'people-i-follow'\n | 'conversations'\n | 'followers'\n | 'activity'\n | (string & {})\n /** Maximum number of groups to return. */\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n /** Notification groups or individual notifications, newest first. Clients should ignore kinds they do not recognize. Grouping behavior depends on the kind and selected feed. */\n groups: Group[]\n seenAt?: string\n /** Reusable views referenced by notifications. Views shared across notifications appear once to avoid duplication. Each group contributes only its first 10 of each related view to this array. Ex: for a group containing likes in a post, we might have a large number of likeItem (e.g., 50) in a group, but only the profile views for the newest 10 items will be included here. */\n relatedViews?: (\n | $Typed<AppBskyActorDefs.ProfileViewDetailed>\n | $Typed<AppBskyFeedDefs.BlockedPost>\n | $Typed<AppBskyFeedDefs.GeneratorView>\n | $Typed<AppBskyFeedDefs.NotFoundPost>\n | $Typed<AppBskyFeedDefs.PostView>\n | $Typed<AppBskyGraphDefs.StarterPackView>\n | { $type: string }\n )[]\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\n/** Contains common metadata and kind-specific data for a notification group or individual notification. */\nexport interface Group {\n $type?: 'app.bsky.notification.getGroupedNotifications#group'\n id: string\n isRead: boolean\n indexedAt: string\n count: number\n kind:\n | $Typed<LikeGroup>\n | $Typed<MultiPostLikeGroup>\n | $Typed<RepostGroup>\n | $Typed<LikeViaRepostGroup>\n | $Typed<RepostViaRepostGroup>\n | $Typed<FollowGroup>\n | $Typed<SubscribedPostGroup>\n | $Typed<GeneratorLikeGroup>\n | $Typed<ReplyNotification>\n | $Typed<QuoteNotification>\n | $Typed<MentionNotification>\n | $Typed<FollowBackNotification>\n | $Typed<VerifiedNotification>\n | $Typed<UnverifiedNotification>\n | $Typed<StarterPackJoinedNotification>\n | $Typed<ContactMatchNotification>\n | { $type: string }\n}\n\nconst hashGroup = 'group'\n\nexport function isGroup<V>(v: V) {\n return is$typed(v, id, hashGroup)\n}\n\nexport function validateGroup<V>(v: V) {\n return validate<Group & V>(v, id, hashGroup)\n}\n\n/** Group of likes by different actors on the same post. */\nexport interface LikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeGroup'\n post: string\n items: LikeItem[]\n}\n\nconst hashLikeGroup = 'likeGroup'\n\nexport function isLikeGroup<V>(v: V) {\n return is$typed(v, id, hashLikeGroup)\n}\n\nexport function validateLikeGroup<V>(v: V) {\n return validate<LikeGroup & V>(v, id, hashLikeGroup)\n}\n\n/** One actor who liked the group's post. */\nexport interface LikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeItem'\n actor: string\n}\n\nconst hashLikeItem = 'likeItem'\n\nexport function isLikeItem<V>(v: V) {\n return is$typed(v, id, hashLikeItem)\n}\n\nexport function validateLikeItem<V>(v: V) {\n return validate<LikeItem & V>(v, id, hashLikeItem)\n}\n\n/** Group of likes by the same actor on different posts. */\nexport interface MultiPostLikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostLikeGroup'\n actor: string\n items: MultiPostLikeItem[]\n}\n\nconst hashMultiPostLikeGroup = 'multiPostLikeGroup'\n\nexport function isMultiPostLikeGroup<V>(v: V) {\n return is$typed(v, id, hashMultiPostLikeGroup)\n}\n\nexport function validateMultiPostLikeGroup<V>(v: V) {\n return validate<MultiPostLikeGroup & V>(v, id, hashMultiPostLikeGroup)\n}\n\n/** One post which was liked by the group's actor. */\nexport interface MultiPostLikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostLikeItem'\n post: string\n}\n\nconst hashMultiPostLikeItem = 'multiPostLikeItem'\n\nexport function isMultiPostLikeItem<V>(v: V) {\n return is$typed(v, id, hashMultiPostLikeItem)\n}\n\nexport function validateMultiPostLikeItem<V>(v: V) {\n return validate<MultiPostLikeItem & V>(v, id, hashMultiPostLikeItem)\n}\n\n/** Group of reposts by different actors of the same post. */\nexport interface RepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostGroup'\n post: string\n items: RepostItem[]\n}\n\nconst hashRepostGroup = 'repostGroup'\n\nexport function isRepostGroup<V>(v: V) {\n return is$typed(v, id, hashRepostGroup)\n}\n\nexport function validateRepostGroup<V>(v: V) {\n return validate<RepostGroup & V>(v, id, hashRepostGroup)\n}\n\n/** One actor who reposted the group's post. */\nexport interface RepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostItem'\n actor: string\n}\n\nconst hashRepostItem = 'repostItem'\n\nexport function isRepostItem<V>(v: V) {\n return is$typed(v, id, hashRepostItem)\n}\n\nexport function validateRepostItem<V>(v: V) {\n return validate<RepostItem & V>(v, id, hashRepostItem)\n}\n\n/** Group of likes by different actors on the same post via the requesting account's repost. */\nexport interface LikeViaRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeViaRepostGroup'\n post: string\n viaRepost: string\n items: LikeViaRepostItem[]\n}\n\nconst hashLikeViaRepostGroup = 'likeViaRepostGroup'\n\nexport function isLikeViaRepostGroup<V>(v: V) {\n return is$typed(v, id, hashLikeViaRepostGroup)\n}\n\nexport function validateLikeViaRepostGroup<V>(v: V) {\n return validate<LikeViaRepostGroup & V>(v, id, hashLikeViaRepostGroup)\n}\n\n/** One actor who liked the group's post via the requesting account's repost. */\nexport interface LikeViaRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeViaRepostItem'\n actor: string\n}\n\nconst hashLikeViaRepostItem = 'likeViaRepostItem'\n\nexport function isLikeViaRepostItem<V>(v: V) {\n return is$typed(v, id, hashLikeViaRepostItem)\n}\n\nexport function validateLikeViaRepostItem<V>(v: V) {\n return validate<LikeViaRepostItem & V>(v, id, hashLikeViaRepostItem)\n}\n\n/** Group of reposts by different actors of the same post via the requesting account's repost. */\nexport interface RepostViaRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostViaRepostGroup'\n post: string\n viaRepost: string\n items: RepostViaRepostItem[]\n}\n\nconst hashRepostViaRepostGroup = 'repostViaRepostGroup'\n\nexport function isRepostViaRepostGroup<V>(v: V) {\n return is$typed(v, id, hashRepostViaRepostGroup)\n}\n\nexport function validateRepostViaRepostGroup<V>(v: V) {\n return validate<RepostViaRepostGroup & V>(v, id, hashRepostViaRepostGroup)\n}\n\n/** One actor who reposted the group's post via the requesting account's repost. */\nexport interface RepostViaRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostViaRepostItem'\n actor: string\n}\n\nconst hashRepostViaRepostItem = 'repostViaRepostItem'\n\nexport function isRepostViaRepostItem<V>(v: V) {\n return is$typed(v, id, hashRepostViaRepostItem)\n}\n\nexport function validateRepostViaRepostItem<V>(v: V) {\n return validate<RepostViaRepostItem & V>(v, id, hashRepostViaRepostItem)\n}\n\n/** Group of actors who followed the requesting account. */\nexport interface FollowGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#followGroup'\n items: FollowItem[]\n}\n\nconst hashFollowGroup = 'followGroup'\n\nexport function isFollowGroup<V>(v: V) {\n return is$typed(v, id, hashFollowGroup)\n}\n\nexport function validateFollowGroup<V>(v: V) {\n return validate<FollowGroup & V>(v, id, hashFollowGroup)\n}\n\n/** An actor who followed the requesting account, possibly via a starter pack. */\nexport interface FollowItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#followItem'\n actor: string\n starterPack?: string\n}\n\nconst hashFollowItem = 'followItem'\n\nexport function isFollowItem<V>(v: V) {\n return is$typed(v, id, hashFollowItem)\n}\n\nexport function validateFollowItem<V>(v: V) {\n return validate<FollowItem & V>(v, id, hashFollowItem)\n}\n\n/** Group of new posts by actors the requesting account subscribes to. */\nexport interface SubscribedPostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#subscribedPostGroup'\n items: SubscribedPostItem[]\n}\n\nconst hashSubscribedPostGroup = 'subscribedPostGroup'\n\nexport function isSubscribedPostGroup<V>(v: V) {\n return is$typed(v, id, hashSubscribedPostGroup)\n}\n\nexport function validateSubscribedPostGroup<V>(v: V) {\n return validate<SubscribedPostGroup & V>(v, id, hashSubscribedPostGroup)\n}\n\n/** One new post by an actor the requesting account subscribes to. */\nexport interface SubscribedPostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#subscribedPostItem'\n actor: string\n post: string\n}\n\nconst hashSubscribedPostItem = 'subscribedPostItem'\n\nexport function isSubscribedPostItem<V>(v: V) {\n return is$typed(v, id, hashSubscribedPostItem)\n}\n\nexport function validateSubscribedPostItem<V>(v: V) {\n return validate<SubscribedPostItem & V>(v, id, hashSubscribedPostItem)\n}\n\n/** Group of likes by different actors on the same feed generator. */\nexport interface GeneratorLikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#generatorLikeGroup'\n generator: string\n items: GeneratorLikeItem[]\n}\n\nconst hashGeneratorLikeGroup = 'generatorLikeGroup'\n\nexport function isGeneratorLikeGroup<V>(v: V) {\n return is$typed(v, id, hashGeneratorLikeGroup)\n}\n\nexport function validateGeneratorLikeGroup<V>(v: V) {\n return validate<GeneratorLikeGroup & V>(v, id, hashGeneratorLikeGroup)\n}\n\n/** One actor who liked the feed generator in the group. */\nexport interface GeneratorLikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#generatorLikeItem'\n actor: string\n}\n\nconst hashGeneratorLikeItem = 'generatorLikeItem'\n\nexport function isGeneratorLikeItem<V>(v: V) {\n return is$typed(v, id, hashGeneratorLikeItem)\n}\n\nexport function validateGeneratorLikeItem<V>(v: V) {\n return validate<GeneratorLikeItem & V>(v, id, hashGeneratorLikeItem)\n}\n\n/** A reply to a post by the requesting account or to a thread they are participating in. */\nexport interface ReplyNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#replyNotification'\n post: string\n parent: string\n}\n\nconst hashReplyNotification = 'replyNotification'\n\nexport function isReplyNotification<V>(v: V) {\n return is$typed(v, id, hashReplyNotification)\n}\n\nexport function validateReplyNotification<V>(v: V) {\n return validate<ReplyNotification & V>(v, id, hashReplyNotification)\n}\n\n/** A post quoting a post by the requesting account. */\nexport interface QuoteNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#quoteNotification'\n post: string\n parent?: string\n}\n\nconst hashQuoteNotification = 'quoteNotification'\n\nexport function isQuoteNotification<V>(v: V) {\n return is$typed(v, id, hashQuoteNotification)\n}\n\nexport function validateQuoteNotification<V>(v: V) {\n return validate<QuoteNotification & V>(v, id, hashQuoteNotification)\n}\n\n/** A post mentioning the requesting account. */\nexport interface MentionNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#mentionNotification'\n post: string\n parent?: string\n}\n\nconst hashMentionNotification = 'mentionNotification'\n\nexport function isMentionNotification<V>(v: V) {\n return is$typed(v, id, hashMentionNotification)\n}\n\nexport function validateMentionNotification<V>(v: V) {\n return validate<MentionNotification & V>(v, id, hashMentionNotification)\n}\n\n/** An actor followed the requesting account back, possibly via a starter pack. */\nexport interface FollowBackNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#followBackNotification'\n actor: string\n starterPack?: string\n}\n\nconst hashFollowBackNotification = 'followBackNotification'\n\nexport function isFollowBackNotification<V>(v: V) {\n return is$typed(v, id, hashFollowBackNotification)\n}\n\nexport function validateFollowBackNotification<V>(v: V) {\n return validate<FollowBackNotification & V>(v, id, hashFollowBackNotification)\n}\n\n/** An actor verified the requesting account. */\nexport interface VerifiedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#verifiedNotification'\n actor: string\n}\n\nconst hashVerifiedNotification = 'verifiedNotification'\n\nexport function isVerifiedNotification<V>(v: V) {\n return is$typed(v, id, hashVerifiedNotification)\n}\n\nexport function validateVerifiedNotification<V>(v: V) {\n return validate<VerifiedNotification & V>(v, id, hashVerifiedNotification)\n}\n\n/** A verification of the requesting account was removed. */\nexport interface UnverifiedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#unverifiedNotification'\n actor: string\n}\n\nconst hashUnverifiedNotification = 'unverifiedNotification'\n\nexport function isUnverifiedNotification<V>(v: V) {\n return is$typed(v, id, hashUnverifiedNotification)\n}\n\nexport function validateUnverifiedNotification<V>(v: V) {\n return validate<UnverifiedNotification & V>(v, id, hashUnverifiedNotification)\n}\n\n/** An actor joined Bluesky via a starter pack created by the requesting account. */\nexport interface StarterPackJoinedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#starterPackJoinedNotification'\n actor: string\n starterPack: string\n}\n\nconst hashStarterPackJoinedNotification = 'starterPackJoinedNotification'\n\nexport function isStarterPackJoinedNotification<V>(v: V) {\n return is$typed(v, id, hashStarterPackJoinedNotification)\n}\n\nexport function validateStarterPackJoinedNotification<V>(v: V) {\n return validate<StarterPackJoinedNotification & V>(\n v,\n id,\n hashStarterPackJoinedNotification,\n )\n}\n\n/** A contact of the requesting account joined Bluesky. */\nexport interface ContactMatchNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#contactMatchNotification'\n actor: string\n}\n\nconst hashContactMatchNotification = 'contactMatchNotification'\n\nexport function isContactMatchNotification<V>(v: V) {\n return is$typed(v, id, hashContactMatchNotification)\n}\n\nexport function validateContactMatchNotification<V>(v: V) {\n return validate<ContactMatchNotification & V>(\n v,\n id,\n hashContactMatchNotification,\n )\n}\n"]}
|
|
1
|
+
{"version":3,"file":"getGroupedNotifications.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/getGroupedNotifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAK5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+CAA+C,CAAA;AA6C1D,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAgCD,MAAM,SAAS,GAAG,OAAO,CAAA;AAEzB,MAAM,UAAU,OAAO,CAAI,CAAI;IAC7B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAY,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AAC9C,CAAC;AASD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,C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Q,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,CAAC;AAQD,MAAM,0BAA0B,GAAG,wBAAwB,CAAA;AAE3D,MAAM,UAAU,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAI,CAAI;IACpD,OAAO,QAAQ,CAA6B,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AAChF,CAAC;AASD,MAAM,iCAAiC,GAAG,+BAA+B,CAAA;AAEzE,MAAM,UAAU,+BAA+B,CAAI,CAAI;IACrD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,iCAAiC,CAAC,CAAA;AAC3D,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAI,CAAI;IAC3D,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,iCAAiC,CAClC,CAAA;AACH,CAAC;AAQD,MAAM,4BAA4B,GAAG,0BAA0B,CAAA;AAE/D,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,4BAA4B,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAI,CAAI;IACtD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,4BAA4B,CAC7B,CAAA;AACH,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as AppBskyFeedDefs from '../feed/defs.js'\nimport type * as AppBskyGraphDefs from '../graph/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.notification.getGroupedNotifications'\n\nexport type QueryParams = {\n /** Which notification feed to return. Grouping behavior varies by feed: notifications about follows might be grouped in 'all' and ungrouped (or rather, in single-item groups) in 'followers'. */\n feed?:\n | 'all'\n | 'people-i-follow'\n | 'conversations'\n | 'followers'\n | 'activity'\n | (string & {})\n /** Maximum number of groups to return. */\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n /** Notification groups or individual notifications, newest first. Clients should ignore kinds they do not recognize. Grouping behavior depends on the kind and selected feed. */\n groups: Group[]\n seenAt?: string\n /** Reusable views referenced by notifications. Views shared across notifications appear once to avoid duplication. Each group contributes only its first 10 of each related view to this array. Ex: for a group containing likes in a post, we might have a large number of likeItem (e.g., 50) in a group, but only the profile views for the newest 10 items will be included here. */\n relatedViews?: (\n | $Typed<AppBskyActorDefs.ProfileViewBasic>\n | $Typed<AppBskyFeedDefs.BlockedPost>\n | $Typed<AppBskyFeedDefs.GeneratorView>\n | $Typed<AppBskyFeedDefs.NotFoundPost>\n | $Typed<AppBskyFeedDefs.PostView>\n | $Typed<AppBskyGraphDefs.StarterPackViewBasic>\n | { $type: string }\n )[]\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\n/** Contains common metadata and kind-specific data for a notification group or individual notification. */\nexport interface Group {\n $type?: 'app.bsky.notification.getGroupedNotifications#group'\n id: string\n isRead: boolean\n indexedAt: string\n count: number\n kind:\n | $Typed<LikeGroup>\n | $Typed<MultiPostLikeGroup>\n | $Typed<MultiPostRepostGroup>\n | $Typed<MultiPostLikeViaRepostGroup>\n | $Typed<MultiPostRepostViaRepostGroup>\n | $Typed<RepostGroup>\n | $Typed<LikeViaRepostGroup>\n | $Typed<RepostViaRepostGroup>\n | $Typed<FollowGroup>\n | $Typed<SubscribedPostGroup>\n | $Typed<GeneratorLikeGroup>\n | $Typed<ReplyNotification>\n | $Typed<QuoteNotification>\n | $Typed<MentionNotification>\n | $Typed<FollowBackNotification>\n | $Typed<VerifiedNotification>\n | $Typed<UnverifiedNotification>\n | $Typed<StarterPackJoinedNotification>\n | $Typed<ContactMatchNotification>\n | { $type: string }\n}\n\nconst hashGroup = 'group'\n\nexport function isGroup<V>(v: V) {\n return is$typed(v, id, hashGroup)\n}\n\nexport function validateGroup<V>(v: V) {\n return validate<Group & V>(v, id, hashGroup)\n}\n\n/** Group of likes by different actors on the same post. */\nexport interface LikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeGroup'\n post: string\n items: LikeItem[]\n}\n\nconst hashLikeGroup = 'likeGroup'\n\nexport function isLikeGroup<V>(v: V) {\n return is$typed(v, id, hashLikeGroup)\n}\n\nexport function validateLikeGroup<V>(v: V) {\n return validate<LikeGroup & V>(v, id, hashLikeGroup)\n}\n\n/** One actor who liked the group's post. */\nexport interface LikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeItem'\n actor: string\n}\n\nconst hashLikeItem = 'likeItem'\n\nexport function isLikeItem<V>(v: V) {\n return is$typed(v, id, hashLikeItem)\n}\n\nexport function validateLikeItem<V>(v: V) {\n return validate<LikeItem & V>(v, id, hashLikeItem)\n}\n\n/** Group of likes by the same actor on different posts. */\nexport interface MultiPostLikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostLikeGroup'\n actor: string\n items: MultiPostLikeItem[]\n}\n\nconst hashMultiPostLikeGroup = 'multiPostLikeGroup'\n\nexport function isMultiPostLikeGroup<V>(v: V) {\n return is$typed(v, id, hashMultiPostLikeGroup)\n}\n\nexport function validateMultiPostLikeGroup<V>(v: V) {\n return validate<MultiPostLikeGroup & V>(v, id, hashMultiPostLikeGroup)\n}\n\n/** One post which was liked by the group's actor. */\nexport interface MultiPostLikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostLikeItem'\n post: string\n}\n\nconst hashMultiPostLikeItem = 'multiPostLikeItem'\n\nexport function isMultiPostLikeItem<V>(v: V) {\n return is$typed(v, id, hashMultiPostLikeItem)\n}\n\nexport function validateMultiPostLikeItem<V>(v: V) {\n return validate<MultiPostLikeItem & V>(v, id, hashMultiPostLikeItem)\n}\n\n/** Group of reposts by the same actor of different posts. */\nexport interface MultiPostRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostRepostGroup'\n actor: string\n items: MultiPostRepostItem[]\n}\n\nconst hashMultiPostRepostGroup = 'multiPostRepostGroup'\n\nexport function isMultiPostRepostGroup<V>(v: V) {\n return is$typed(v, id, hashMultiPostRepostGroup)\n}\n\nexport function validateMultiPostRepostGroup<V>(v: V) {\n return validate<MultiPostRepostGroup & V>(v, id, hashMultiPostRepostGroup)\n}\n\n/** One post which was reposted by the group's actor. */\nexport interface MultiPostRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostRepostItem'\n post: string\n}\n\nconst hashMultiPostRepostItem = 'multiPostRepostItem'\n\nexport function isMultiPostRepostItem<V>(v: V) {\n return is$typed(v, id, hashMultiPostRepostItem)\n}\n\nexport function validateMultiPostRepostItem<V>(v: V) {\n return validate<MultiPostRepostItem & V>(v, id, hashMultiPostRepostItem)\n}\n\n/** Group of likes by the same actor on different posts via the requesting account's reposts. */\nexport interface MultiPostLikeViaRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostLikeViaRepostGroup'\n actor: string\n items: MultiPostLikeViaRepostItem[]\n}\n\nconst hashMultiPostLikeViaRepostGroup = 'multiPostLikeViaRepostGroup'\n\nexport function isMultiPostLikeViaRepostGroup<V>(v: V) {\n return is$typed(v, id, hashMultiPostLikeViaRepostGroup)\n}\n\nexport function validateMultiPostLikeViaRepostGroup<V>(v: V) {\n return validate<MultiPostLikeViaRepostGroup & V>(\n v,\n id,\n hashMultiPostLikeViaRepostGroup,\n )\n}\n\n/** One post which was liked by the group's actor via the requesting account's repost. */\nexport interface MultiPostLikeViaRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostLikeViaRepostItem'\n post: string\n viaRepost: string\n}\n\nconst hashMultiPostLikeViaRepostItem = 'multiPostLikeViaRepostItem'\n\nexport function isMultiPostLikeViaRepostItem<V>(v: V) {\n return is$typed(v, id, hashMultiPostLikeViaRepostItem)\n}\n\nexport function validateMultiPostLikeViaRepostItem<V>(v: V) {\n return validate<MultiPostLikeViaRepostItem & V>(\n v,\n id,\n hashMultiPostLikeViaRepostItem,\n )\n}\n\n/** Group of reposts by the same actor of different posts via the requesting account's reposts. */\nexport interface MultiPostRepostViaRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostRepostViaRepostGroup'\n actor: string\n items: MultiPostRepostViaRepostItem[]\n}\n\nconst hashMultiPostRepostViaRepostGroup = 'multiPostRepostViaRepostGroup'\n\nexport function isMultiPostRepostViaRepostGroup<V>(v: V) {\n return is$typed(v, id, hashMultiPostRepostViaRepostGroup)\n}\n\nexport function validateMultiPostRepostViaRepostGroup<V>(v: V) {\n return validate<MultiPostRepostViaRepostGroup & V>(\n v,\n id,\n hashMultiPostRepostViaRepostGroup,\n )\n}\n\n/** One post which was reposted by the group's actor via the requesting account's repost. */\nexport interface MultiPostRepostViaRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostRepostViaRepostItem'\n post: string\n viaRepost: string\n}\n\nconst hashMultiPostRepostViaRepostItem = 'multiPostRepostViaRepostItem'\n\nexport function isMultiPostRepostViaRepostItem<V>(v: V) {\n return is$typed(v, id, hashMultiPostRepostViaRepostItem)\n}\n\nexport function validateMultiPostRepostViaRepostItem<V>(v: V) {\n return validate<MultiPostRepostViaRepostItem & V>(\n v,\n id,\n hashMultiPostRepostViaRepostItem,\n )\n}\n\n/** Group of reposts by different actors of the same post. */\nexport interface RepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostGroup'\n post: string\n items: RepostItem[]\n}\n\nconst hashRepostGroup = 'repostGroup'\n\nexport function isRepostGroup<V>(v: V) {\n return is$typed(v, id, hashRepostGroup)\n}\n\nexport function validateRepostGroup<V>(v: V) {\n return validate<RepostGroup & V>(v, id, hashRepostGroup)\n}\n\n/** One actor who reposted the group's post. */\nexport interface RepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostItem'\n actor: string\n}\n\nconst hashRepostItem = 'repostItem'\n\nexport function isRepostItem<V>(v: V) {\n return is$typed(v, id, hashRepostItem)\n}\n\nexport function validateRepostItem<V>(v: V) {\n return validate<RepostItem & V>(v, id, hashRepostItem)\n}\n\n/** Group of likes by different actors on the same post via the requesting account's repost. */\nexport interface LikeViaRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeViaRepostGroup'\n post: string\n viaRepost: string\n items: LikeViaRepostItem[]\n}\n\nconst hashLikeViaRepostGroup = 'likeViaRepostGroup'\n\nexport function isLikeViaRepostGroup<V>(v: V) {\n return is$typed(v, id, hashLikeViaRepostGroup)\n}\n\nexport function validateLikeViaRepostGroup<V>(v: V) {\n return validate<LikeViaRepostGroup & V>(v, id, hashLikeViaRepostGroup)\n}\n\n/** One actor who liked the group's post via the requesting account's repost. */\nexport interface LikeViaRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeViaRepostItem'\n actor: string\n}\n\nconst hashLikeViaRepostItem = 'likeViaRepostItem'\n\nexport function isLikeViaRepostItem<V>(v: V) {\n return is$typed(v, id, hashLikeViaRepostItem)\n}\n\nexport function validateLikeViaRepostItem<V>(v: V) {\n return validate<LikeViaRepostItem & V>(v, id, hashLikeViaRepostItem)\n}\n\n/** Group of reposts by different actors of the same post via the requesting account's repost. */\nexport interface RepostViaRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostViaRepostGroup'\n post: string\n viaRepost: string\n items: RepostViaRepostItem[]\n}\n\nconst hashRepostViaRepostGroup = 'repostViaRepostGroup'\n\nexport function isRepostViaRepostGroup<V>(v: V) {\n return is$typed(v, id, hashRepostViaRepostGroup)\n}\n\nexport function validateRepostViaRepostGroup<V>(v: V) {\n return validate<RepostViaRepostGroup & V>(v, id, hashRepostViaRepostGroup)\n}\n\n/** One actor who reposted the group's post via the requesting account's repost. */\nexport interface RepostViaRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostViaRepostItem'\n actor: string\n}\n\nconst hashRepostViaRepostItem = 'repostViaRepostItem'\n\nexport function isRepostViaRepostItem<V>(v: V) {\n return is$typed(v, id, hashRepostViaRepostItem)\n}\n\nexport function validateRepostViaRepostItem<V>(v: V) {\n return validate<RepostViaRepostItem & V>(v, id, hashRepostViaRepostItem)\n}\n\n/** Group of actors who followed the requesting account. */\nexport interface FollowGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#followGroup'\n items: FollowItem[]\n}\n\nconst hashFollowGroup = 'followGroup'\n\nexport function isFollowGroup<V>(v: V) {\n return is$typed(v, id, hashFollowGroup)\n}\n\nexport function validateFollowGroup<V>(v: V) {\n return validate<FollowGroup & V>(v, id, hashFollowGroup)\n}\n\n/** An actor who followed the requesting account, possibly via a starter pack. */\nexport interface FollowItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#followItem'\n actor: string\n starterPack?: string\n}\n\nconst hashFollowItem = 'followItem'\n\nexport function isFollowItem<V>(v: V) {\n return is$typed(v, id, hashFollowItem)\n}\n\nexport function validateFollowItem<V>(v: V) {\n return validate<FollowItem & V>(v, id, hashFollowItem)\n}\n\n/** Group of new posts by actors the requesting account subscribes to. */\nexport interface SubscribedPostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#subscribedPostGroup'\n items: SubscribedPostItem[]\n}\n\nconst hashSubscribedPostGroup = 'subscribedPostGroup'\n\nexport function isSubscribedPostGroup<V>(v: V) {\n return is$typed(v, id, hashSubscribedPostGroup)\n}\n\nexport function validateSubscribedPostGroup<V>(v: V) {\n return validate<SubscribedPostGroup & V>(v, id, hashSubscribedPostGroup)\n}\n\n/** One new post by an actor the requesting account subscribes to. */\nexport interface SubscribedPostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#subscribedPostItem'\n actor: string\n post: string\n}\n\nconst hashSubscribedPostItem = 'subscribedPostItem'\n\nexport function isSubscribedPostItem<V>(v: V) {\n return is$typed(v, id, hashSubscribedPostItem)\n}\n\nexport function validateSubscribedPostItem<V>(v: V) {\n return validate<SubscribedPostItem & V>(v, id, hashSubscribedPostItem)\n}\n\n/** Group of likes by different actors on the same feed generator. */\nexport interface GeneratorLikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#generatorLikeGroup'\n generator: string\n items: GeneratorLikeItem[]\n}\n\nconst hashGeneratorLikeGroup = 'generatorLikeGroup'\n\nexport function isGeneratorLikeGroup<V>(v: V) {\n return is$typed(v, id, hashGeneratorLikeGroup)\n}\n\nexport function validateGeneratorLikeGroup<V>(v: V) {\n return validate<GeneratorLikeGroup & V>(v, id, hashGeneratorLikeGroup)\n}\n\n/** One actor who liked the feed generator in the group. */\nexport interface GeneratorLikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#generatorLikeItem'\n actor: string\n}\n\nconst hashGeneratorLikeItem = 'generatorLikeItem'\n\nexport function isGeneratorLikeItem<V>(v: V) {\n return is$typed(v, id, hashGeneratorLikeItem)\n}\n\nexport function validateGeneratorLikeItem<V>(v: V) {\n return validate<GeneratorLikeItem & V>(v, id, hashGeneratorLikeItem)\n}\n\n/** A reply to a post by the requesting account or to a thread they are participating in. */\nexport interface ReplyNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#replyNotification'\n post: string\n parent: string\n}\n\nconst hashReplyNotification = 'replyNotification'\n\nexport function isReplyNotification<V>(v: V) {\n return is$typed(v, id, hashReplyNotification)\n}\n\nexport function validateReplyNotification<V>(v: V) {\n return validate<ReplyNotification & V>(v, id, hashReplyNotification)\n}\n\n/** A post quoting a post by the requesting account. */\nexport interface QuoteNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#quoteNotification'\n post: string\n parent?: string\n}\n\nconst hashQuoteNotification = 'quoteNotification'\n\nexport function isQuoteNotification<V>(v: V) {\n return is$typed(v, id, hashQuoteNotification)\n}\n\nexport function validateQuoteNotification<V>(v: V) {\n return validate<QuoteNotification & V>(v, id, hashQuoteNotification)\n}\n\n/** A post mentioning the requesting account. */\nexport interface MentionNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#mentionNotification'\n post: string\n parent?: string\n}\n\nconst hashMentionNotification = 'mentionNotification'\n\nexport function isMentionNotification<V>(v: V) {\n return is$typed(v, id, hashMentionNotification)\n}\n\nexport function validateMentionNotification<V>(v: V) {\n return validate<MentionNotification & V>(v, id, hashMentionNotification)\n}\n\n/** An actor followed the requesting account back, possibly via a starter pack. */\nexport interface FollowBackNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#followBackNotification'\n actor: string\n starterPack?: string\n}\n\nconst hashFollowBackNotification = 'followBackNotification'\n\nexport function isFollowBackNotification<V>(v: V) {\n return is$typed(v, id, hashFollowBackNotification)\n}\n\nexport function validateFollowBackNotification<V>(v: V) {\n return validate<FollowBackNotification & V>(v, id, hashFollowBackNotification)\n}\n\n/** An actor verified the requesting account. */\nexport interface VerifiedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#verifiedNotification'\n actor: string\n}\n\nconst hashVerifiedNotification = 'verifiedNotification'\n\nexport function isVerifiedNotification<V>(v: V) {\n return is$typed(v, id, hashVerifiedNotification)\n}\n\nexport function validateVerifiedNotification<V>(v: V) {\n return validate<VerifiedNotification & V>(v, id, hashVerifiedNotification)\n}\n\n/** A verification of the requesting account was removed. */\nexport interface UnverifiedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#unverifiedNotification'\n actor: string\n}\n\nconst hashUnverifiedNotification = 'unverifiedNotification'\n\nexport function isUnverifiedNotification<V>(v: V) {\n return is$typed(v, id, hashUnverifiedNotification)\n}\n\nexport function validateUnverifiedNotification<V>(v: V) {\n return validate<UnverifiedNotification & V>(v, id, hashUnverifiedNotification)\n}\n\n/** An actor joined Bluesky via a starter pack created by the requesting account. */\nexport interface StarterPackJoinedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#starterPackJoinedNotification'\n actor: string\n starterPack: string\n}\n\nconst hashStarterPackJoinedNotification = 'starterPackJoinedNotification'\n\nexport function isStarterPackJoinedNotification<V>(v: V) {\n return is$typed(v, id, hashStarterPackJoinedNotification)\n}\n\nexport function validateStarterPackJoinedNotification<V>(v: V) {\n return validate<StarterPackJoinedNotification & V>(\n v,\n id,\n hashStarterPackJoinedNotification,\n )\n}\n\n/** A contact of the requesting account joined Bluesky. */\nexport interface ContactMatchNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#contactMatchNotification'\n actor: string\n}\n\nconst hashContactMatchNotification = 'contactMatchNotification'\n\nexport function isContactMatchNotification<V>(v: V) {\n return is$typed(v, id, hashContactMatchNotification)\n}\n\nexport function validateContactMatchNotification<V>(v: V) {\n return validate<ContactMatchNotification & V>(\n v,\n id,\n hashContactMatchNotification,\n )\n}\n"]}
|
|
@@ -121,9 +121,15 @@ export interface Notification {
|
|
|
121
121
|
}
|
|
122
122
|
export declare function isNotification<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "notification">;
|
|
123
123
|
export declare function validateNotification<V>(v: V): ValidationResult<Notification & V>;
|
|
124
|
+
/** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */
|
|
124
125
|
export interface NotificationPreferences {
|
|
125
126
|
$type?: 'tools.ozone.inbox.defs#notificationPreferences';
|
|
126
|
-
|
|
127
|
+
/** Notify about outcomes of reports filed by the account (reportResolved and reportReopened). */
|
|
128
|
+
reports: boolean;
|
|
129
|
+
/** 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. */
|
|
130
|
+
account: boolean;
|
|
131
|
+
/** Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions). */
|
|
132
|
+
labels: boolean;
|
|
127
133
|
}
|
|
128
134
|
export declare function isNotificationPreferences<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "notificationPreferences">;
|
|
129
135
|
export declare function validateNotificationPreferences<V>(v: V): ValidationResult<NotificationPreferences & V>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAC5C,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,GACnC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,WAAW,EAAE,eAAe,CAAA;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;IAC/C,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE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M,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAQD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.defs'\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nexport interface SubjectView {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n /** DID of the moderation service that took the actions. */\n src: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: string\n updatedAt: string\n isRead: boolean\n}\n\nconst hashSubjectView = 'subjectView'\n\nexport function isSubjectView<V>(v: V) {\n return is$typed(v, id, hashSubjectView)\n}\n\nexport function validateSubjectView<V>(v: V) {\n return validate<SubjectView & V>(v, id, hashSubjectView)\n}\n\n/** The current enforcement state of a subject. */\nexport interface EnforcementView {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | (string & {})\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n expiresAt?: string\n /** Active label values on the subject, excluding negated and expired labels. */\n labels?: string[]\n}\n\nconst hashEnforcementView = 'enforcementView'\n\nexport function isEnforcementView<V>(v: V) {\n return is$typed(v, id, hashEnforcementView)\n}\n\nexport function validateEnforcementView<V>(v: V) {\n return validate<EnforcementView & V>(v, id, hashEnforcementView)\n}\n\n/** The state of the viewer's appeal against the actions on a subject. */\nexport interface AppealView {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | (string & {})\n appealedAt?: string\n /** When the appeal's report was closed. */\n resolvedAt?: string\n appealableUntil?: string\n}\n\nconst hashAppealView = 'appealView'\n\nexport function isAppealView<V>(v: V) {\n return is$typed(v, id, hashAppealView)\n}\n\nexport function validateAppealView<V>(v: V) {\n return validate<AppealView & V>(v, id, hashAppealView)\n}\n\n/** A single moderation action taken against a subject. */\nexport interface ActionView {\n $type?: 'tools.ozone.inbox.defs#actionView'\n /** Action ID (moderation event ID). */\n id: number\n /** Public action type. */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n createdAt: string\n reversedAt?: string\n expiresAt?: string\n /** Label values, for labelApplied/labelRemoved. */\n labels?: string[]\n /** Policies applied by a takedown action. */\n policies?: PolicyView[]\n}\n\nconst hashActionView = 'actionView'\n\nexport function isActionView<V>(v: V) {\n return is$typed(v, id, hashActionView)\n}\n\nexport function validateActionView<V>(v: V) {\n return validate<ActionView & V>(v, id, hashActionView)\n}\n\nexport interface PolicyView {\n $type?: 'tools.ozone.inbox.defs#policyView'\n key: string\n displayName: string\n link: string\n}\n\nconst hashPolicyView = 'policyView'\n\nexport function isPolicyView<V>(v: V) {\n return is$typed(v, id, hashPolicyView)\n}\n\nexport function validatePolicyView<V>(v: V) {\n return validate<PolicyView & V>(v, id, hashPolicyView)\n}\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\nexport interface SubjectViewDetail {\n $type?: 'tools.ozone.inbox.defs#subjectViewDetail'\n src: string\n isRead: boolean\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n /** Raw record JSON for the subject, when the subject is a record and the record is available. */\n record?: { [_ in string]: unknown }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n /** A page of action history, most recent first. Reversal timestamps include changes outside this page. */\n actions: ActionView[]\n /** Cursor for the next page of action history. Omitted when no older actions remain. */\n cursor?: string\n reports?: ReportsSummary\n createdAt: string\n updatedAt: string\n}\n\nconst hashSubjectViewDetail = 'subjectViewDetail'\n\nexport function isSubjectViewDetail<V>(v: V) {\n return is$typed(v, id, hashSubjectViewDetail)\n}\n\nexport function validateSubjectViewDetail<V>(v: V) {\n return validate<SubjectViewDetail & V>(v, id, hashSubjectViewDetail)\n}\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\nexport interface ReportsSummary {\n $type?: 'tools.ozone.inbox.defs#reportsSummary'\n /** Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal. */\n reasonTypes: string[]\n /** Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n firstReportedOn: string\n /** Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n lastReportedOn: string\n}\n\nconst hashReportsSummary = 'reportsSummary'\n\nexport function isReportsSummary<V>(v: V) {\n return is$typed(v, id, hashReportsSummary)\n}\n\nexport function validateReportsSummary<V>(v: V) {\n return validate<ReportsSummary & V>(v, id, hashReportsSummary)\n}\n\nexport interface Notification {\n $type?: 'tools.ozone.inbox.defs#notification'\n id: number\n reason:\n | 'reportResolved'\n | 'reportReopened'\n | 'actionTaken'\n | 'actionReversed'\n | 'appealResolved'\n | 'standingChanged'\n | (string & {})\n target:\n | $Typed<ReportRef>\n | $Typed<SubjectRef>\n | $Typed<StandingRef>\n | { $type: string }\n isRead: boolean\n createdAt: string\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\nexport interface NotificationPreferences {\n $type?: 'tools.ozone.inbox.defs#notificationPreferences'\n push: boolean\n}\n\nconst hashNotificationPreferences = 'notificationPreferences'\n\nexport function isNotificationPreferences<V>(v: V) {\n return is$typed(v, id, hashNotificationPreferences)\n}\n\nexport function validateNotificationPreferences<V>(v: V) {\n return validate<NotificationPreferences & V>(\n v,\n id,\n hashNotificationPreferences,\n )\n}\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\nexport interface ReportRef {\n $type?: 'tools.ozone.inbox.defs#reportRef'\n reportId: number\n subject?:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n status?: 'pending' | 'resolved' | (string & {})\n}\n\nconst hashReportRef = 'reportRef'\n\nexport function isReportRef<V>(v: V) {\n return is$typed(v, id, hashReportRef)\n}\n\nexport function validateReportRef<V>(v: V) {\n return validate<ReportRef & V>(v, id, hashReportRef)\n}\n\nexport interface SubjectRef {\n $type?: 'tools.ozone.inbox.defs#subjectRef'\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n actionType?: string\n actionId?: number\n}\n\nconst hashSubjectRef = 'subjectRef'\n\nexport function isSubjectRef<V>(v: V) {\n return is$typed(v, id, hashSubjectRef)\n}\n\nexport function validateSubjectRef<V>(v: V) {\n return validate<SubjectRef & V>(v, id, hashSubjectRef)\n}\n\nexport interface StandingRef {\n $type?: 'tools.ozone.inbox.defs#standingRef'\n standing: 'good' | 'warning' | 'atRisk' | (string & {})\n previousStanding?: 'good' | 'warning' | 'atRisk' | (string & {})\n}\n\nconst hashStandingRef = 'standingRef'\n\nexport function isStandingRef<V>(v: V) {\n return is$typed(v, id, hashStandingRef)\n}\n\nexport function validateStandingRef<V>(v: V) {\n return validate<StandingRef & V>(v, id, hashStandingRef)\n}\n"]}
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAqBnC,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC;AAaD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAaD,MAAM,cAAc,GAAG,YAAY,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AAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.defs'\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nexport interface SubjectView {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n /** DID of the moderation service that took the actions. */\n src: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: string\n updatedAt: string\n isRead: boolean\n}\n\nconst hashSubjectView = 'subjectView'\n\nexport function isSubjectView<V>(v: V) {\n return is$typed(v, id, hashSubjectView)\n}\n\nexport function validateSubjectView<V>(v: V) {\n return validate<SubjectView & V>(v, id, hashSubjectView)\n}\n\n/** The current enforcement state of a subject. */\nexport interface EnforcementView {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | (string & {})\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n expiresAt?: string\n /** Active label values on the subject, excluding negated and expired labels. */\n labels?: string[]\n}\n\nconst hashEnforcementView = 'enforcementView'\n\nexport function isEnforcementView<V>(v: V) {\n return is$typed(v, id, hashEnforcementView)\n}\n\nexport function validateEnforcementView<V>(v: V) {\n return validate<EnforcementView & V>(v, id, hashEnforcementView)\n}\n\n/** The state of the viewer's appeal against the actions on a subject. */\nexport interface AppealView {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | (string & {})\n appealedAt?: string\n /** When the appeal's report was closed. */\n resolvedAt?: string\n appealableUntil?: string\n}\n\nconst hashAppealView = 'appealView'\n\nexport function isAppealView<V>(v: V) {\n return is$typed(v, id, hashAppealView)\n}\n\nexport function validateAppealView<V>(v: V) {\n return validate<AppealView & V>(v, id, hashAppealView)\n}\n\n/** A single moderation action taken against a subject. */\nexport interface ActionView {\n $type?: 'tools.ozone.inbox.defs#actionView'\n /** Action ID (moderation event ID). */\n id: number\n /** Public action type. */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n createdAt: string\n reversedAt?: string\n expiresAt?: string\n /** Label values, for labelApplied/labelRemoved. */\n labels?: string[]\n /** Policies applied by a takedown action. */\n policies?: PolicyView[]\n}\n\nconst hashActionView = 'actionView'\n\nexport function isActionView<V>(v: V) {\n return is$typed(v, id, hashActionView)\n}\n\nexport function validateActionView<V>(v: V) {\n return validate<ActionView & V>(v, id, hashActionView)\n}\n\nexport interface PolicyView {\n $type?: 'tools.ozone.inbox.defs#policyView'\n key: string\n displayName: string\n link: string\n}\n\nconst hashPolicyView = 'policyView'\n\nexport function isPolicyView<V>(v: V) {\n return is$typed(v, id, hashPolicyView)\n}\n\nexport function validatePolicyView<V>(v: V) {\n return validate<PolicyView & V>(v, id, hashPolicyView)\n}\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\nexport interface SubjectViewDetail {\n $type?: 'tools.ozone.inbox.defs#subjectViewDetail'\n src: string\n isRead: boolean\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n /** Raw record JSON for the subject, when the subject is a record and the record is available. */\n record?: { [_ in string]: unknown }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n /** A page of action history, most recent first. Reversal timestamps include changes outside this page. */\n actions: ActionView[]\n /** Cursor for the next page of action history. Omitted when no older actions remain. */\n cursor?: string\n reports?: ReportsSummary\n createdAt: string\n updatedAt: string\n}\n\nconst hashSubjectViewDetail = 'subjectViewDetail'\n\nexport function isSubjectViewDetail<V>(v: V) {\n return is$typed(v, id, hashSubjectViewDetail)\n}\n\nexport function validateSubjectViewDetail<V>(v: V) {\n return validate<SubjectViewDetail & V>(v, id, hashSubjectViewDetail)\n}\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\nexport interface ReportsSummary {\n $type?: 'tools.ozone.inbox.defs#reportsSummary'\n /** Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal. */\n reasonTypes: string[]\n /** Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n firstReportedOn: string\n /** Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n lastReportedOn: string\n}\n\nconst hashReportsSummary = 'reportsSummary'\n\nexport function isReportsSummary<V>(v: V) {\n return is$typed(v, id, hashReportsSummary)\n}\n\nexport function validateReportsSummary<V>(v: V) {\n return validate<ReportsSummary & V>(v, id, hashReportsSummary)\n}\n\nexport interface Notification {\n $type?: 'tools.ozone.inbox.defs#notification'\n id: number\n reason:\n | 'reportResolved'\n | 'reportReopened'\n | 'actionTaken'\n | 'actionReversed'\n | 'appealResolved'\n | 'standingChanged'\n | (string & {})\n target:\n | $Typed<ReportRef>\n | $Typed<SubjectRef>\n | $Typed<StandingRef>\n | { $type: string }\n isRead: boolean\n createdAt: string\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\n/** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */\nexport interface NotificationPreferences {\n $type?: 'tools.ozone.inbox.defs#notificationPreferences'\n /** Notify about outcomes of reports filed by the account (reportResolved and reportReopened). */\n reports: boolean\n /** 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. */\n account: boolean\n /** Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions). */\n labels: boolean\n}\n\nconst hashNotificationPreferences = 'notificationPreferences'\n\nexport function isNotificationPreferences<V>(v: V) {\n return is$typed(v, id, hashNotificationPreferences)\n}\n\nexport function validateNotificationPreferences<V>(v: V) {\n return validate<NotificationPreferences & V>(\n v,\n id,\n hashNotificationPreferences,\n )\n}\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\nexport interface ReportRef {\n $type?: 'tools.ozone.inbox.defs#reportRef'\n reportId: number\n subject?:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n status?: 'pending' | 'resolved' | (string & {})\n}\n\nconst hashReportRef = 'reportRef'\n\nexport function isReportRef<V>(v: V) {\n return is$typed(v, id, hashReportRef)\n}\n\nexport function validateReportRef<V>(v: V) {\n return validate<ReportRef & V>(v, id, hashReportRef)\n}\n\nexport interface SubjectRef {\n $type?: 'tools.ozone.inbox.defs#subjectRef'\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n actionType?: string\n actionId?: number\n}\n\nconst hashSubjectRef = 'subjectRef'\n\nexport function isSubjectRef<V>(v: V) {\n return is$typed(v, id, hashSubjectRef)\n}\n\nexport function validateSubjectRef<V>(v: V) {\n return validate<SubjectRef & V>(v, id, hashSubjectRef)\n}\n\nexport interface StandingRef {\n $type?: 'tools.ozone.inbox.defs#standingRef'\n standing: 'good' | 'warning' | 'atRisk' | (string & {})\n previousStanding?: 'good' | 'warning' | 'atRisk' | (string & {})\n}\n\nconst hashStandingRef = 'standingRef'\n\nexport function isStandingRef<V>(v: V) {\n return is$typed(v, id, hashStandingRef)\n}\n\nexport function validateStandingRef<V>(v: V) {\n return validate<StandingRef & V>(v, id, hashStandingRef)\n}\n"]}
|
|
@@ -5,7 +5,12 @@ import { type HeadersMap } from '@atproto/xrpc';
|
|
|
5
5
|
import type * as ToolsOzoneInboxDefs from './defs.js';
|
|
6
6
|
export type QueryParams = {};
|
|
7
7
|
export interface InputSchema {
|
|
8
|
-
|
|
8
|
+
/** Notify about outcomes of reports filed by the account. */
|
|
9
|
+
reports?: boolean;
|
|
10
|
+
/** Notify about moderation actions against the account or its content, excluding labeling. */
|
|
11
|
+
account?: boolean;
|
|
12
|
+
/** Notify about labels applied to or removed from the account or its content. */
|
|
13
|
+
labels?: boolean;
|
|
9
14
|
}
|
|
10
15
|
export interface OutputSchema {
|
|
11
16
|
preferences: ToolsOzoneInboxDefs.NotificationPreferences;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putNotificationPreferences.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/putNotificationPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,
|
|
1
|
+
{"version":3,"file":"putNotificationPreferences.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/putNotificationPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8FAA8F;IAC9F,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,mBAAmB,CAAC,uBAAuB,CAAA;CACzD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putNotificationPreferences.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/putNotificationPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;
|
|
1
|
+
{"version":3,"file":"putNotificationPreferences.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/putNotificationPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;AA8BzD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneInboxDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.putNotificationPreferences'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** Notify about outcomes of reports filed by the account. */\n reports?: boolean\n /** Notify about moderation actions against the account or its content, excluding labeling. */\n account?: boolean\n /** Notify about labels applied to or removed from the account or its content. */\n labels?: boolean\n}\n\nexport interface OutputSchema {\n preferences: ToolsOzoneInboxDefs.NotificationPreferences\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"multiformats": "^13.0.0",
|
|
36
36
|
"tlds": "^1.234.0",
|
|
37
37
|
"zod": "^3.23.8",
|
|
38
|
-
"@atproto/lexicon": "^0.7.16",
|
|
39
38
|
"@atproto/common-web": "^0.5.14",
|
|
39
|
+
"@atproto/lexicon": "^0.7.16",
|
|
40
40
|
"@atproto/syntax": "^0.7.6",
|
|
41
41
|
"@atproto/xrpc": "^0.8.15"
|
|
42
42
|
},
|