@atproto/api 0.32.6 → 0.32.8

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.
@@ -104,7 +104,7 @@ export interface ViewArticle {
104
104
  readingTime?: number;
105
105
  viewer?: ViewArticleViewerState;
106
106
  likeCount?: number;
107
- /** Available profile previews. Selected deterministically by DID; not a ranking. */
107
+ /** Available profile previews. Selected deterministically by DID; not a ranking. Deprecated: use viewer.knownLikers instead. */
108
108
  likers?: AppBskyActorDefs.ProfileViewBasic[];
109
109
  }
110
110
  export declare function isViewArticle<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticle">;
@@ -114,6 +114,10 @@ export interface ViewArticleViewerState {
114
114
  $type?: 'app.bsky.embed.external#viewArticleViewerState';
115
115
  /** The requesting account's site.standard.graph.recommend record for this article, if recommended. */
116
116
  like?: string;
117
+ /** Up to 3 accounts the requesting account follows that recommended the subject, newest first. Never includes the requesting account. */
118
+ knownLikers?: AppBskyActorDefs.ProfileViewBasic[];
119
+ /** Total number of accounts the requesting account follows that recommended the subject, including those in knownLikers. */
120
+ knownLikerCount?: number;
117
121
  }
118
122
  export declare function isViewArticleViewerState<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticleViewerState">;
119
123
  export declare function validateViewArticleViewerState<V>(v: V): ValidationResult<ViewArticleViewerState & V>;
@@ -144,6 +148,10 @@ export interface ViewArticlePublicationViewerState {
144
148
  $type?: 'app.bsky.embed.external#viewArticlePublicationViewerState';
145
149
  /** The requesting account's site.standard.graph.subscription record for this publication, if subscribed. */
146
150
  subscription?: string;
151
+ /** Up to 3 accounts the requesting account follows that subscribed to the subject, newest first. Never includes the requesting account. */
152
+ knownSubscribers?: AppBskyActorDefs.ProfileViewBasic[];
153
+ /** Total number of accounts the requesting account follows that subscribed to the subject, including those in knownSubscribers. */
154
+ knownSubscriberCount?: number;
147
155
  }
148
156
  export declare function isViewArticlePublicationViewerState<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticlePublicationViewerState">;
149
157
  export declare function validateViewArticlePublicationViewerState<V>(v: V): ValidationResult<ViewArticlePublicationViewerState & V>;
@@ -180,7 +188,7 @@ export interface ViewGallery {
180
188
  photoCount?: number;
181
189
  viewer?: ViewGalleryViewerState;
182
190
  likeCount?: number;
183
- /** Available profile previews. Selected deterministically by DID; not a ranking. */
191
+ /** Available profile previews. Selected deterministically by DID; not a ranking. Deprecated: use viewer.knownLikers instead. */
184
192
  likers?: AppBskyActorDefs.ProfileViewBasic[];
185
193
  }
186
194
  export declare function isViewGallery<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewGallery">;
@@ -190,6 +198,10 @@ export interface ViewGalleryViewerState {
190
198
  $type?: 'app.bsky.embed.external#viewGalleryViewerState';
191
199
  /** The requesting account's social.grain.favorite record for this gallery, if favorited. */
192
200
  like?: string;
201
+ /** Up to 3 accounts the requesting account follows that favorited the subject, newest first. Never includes the requesting account. */
202
+ knownLikers?: AppBskyActorDefs.ProfileViewBasic[];
203
+ /** Total number of accounts the requesting account follows that favorited the subject, including those in knownLikers. */
204
+ knownLikerCount?: number;
193
205
  }
194
206
  export declare function isViewGalleryViewerState<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewGalleryViewerState">;
195
207
  export declare function validateViewGalleryViewerState<V>(v: V): ValidationResult<ViewGalleryViewerState & V>;
@@ -1 +1 @@
1
- {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,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,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;IACpC,cAAc,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;IAC/C,kBAAkB,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,EAAE,CAAA;IACxD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yGAAyG;IACzG,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uOAAuO;IACvO,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
1
+ {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,4HAA4H;AAC5H,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,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AAI,CAAI;IACpD,OAAO,QAAQ,CAA6B,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AAChF,CAAC;AAaD,MAAM,oBAAoB,GAAG,kBAAkB,CAAA;AAE/C,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AAC9C,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAuB,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AACpE,CAAC;AAuBD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as AppBskyEmbedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n data?:\n | $Typed<ViewArticle>\n | $Typed<ViewArticlePublication>\n | $Typed<ViewGallery>\n | $Typed<ViewLivestream>\n | { $type: string }\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n /** When the external content was created, if available. Example: a publication date, for an article. */\n createdAt?: string\n /** When the external content was updated, if available. */\n updatedAt?: string\n /** Estimated reading time in minutes, if applicable and available. */\n readingTime?: number\n labels?: ComAtprotoLabelDefs.Label[]\n source?: ViewExternalSource\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n /** Profiles of the owners of the Atmosphere records that backed this view. */\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n\n/** The source of an external embed, such as a standard.site publication. */\nexport interface ViewExternalSource {\n $type?: 'app.bsky.embed.external#viewExternalSource'\n /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */\n uri: string\n /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */\n icon?: string\n title: string\n description?: string\n theme?: ViewExternalSourceTheme\n}\n\nconst hashViewExternalSource = 'viewExternalSource'\n\nexport function isViewExternalSource<V>(v: V) {\n return is$typed(v, id, hashViewExternalSource)\n}\n\nexport function validateViewExternalSource<V>(v: V) {\n return validate<ViewExternalSource & V>(v, id, hashViewExternalSource)\n}\n\n/** The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source. */\nexport interface ViewExternalSourceTheme {\n $type?: 'app.bsky.embed.external#viewExternalSourceTheme'\n backgroundRGB?: ColorRGB\n foregroundRGB?: ColorRGB\n accentRGB?: ColorRGB\n accentForegroundRGB?: ColorRGB\n}\n\nconst hashViewExternalSourceTheme = 'viewExternalSourceTheme'\n\nexport function isViewExternalSourceTheme<V>(v: V) {\n return is$typed(v, id, hashViewExternalSourceTheme)\n}\n\nexport function validateViewExternalSourceTheme<V>(v: V) {\n return validate<ViewExternalSourceTheme & V>(\n v,\n id,\n hashViewExternalSourceTheme,\n )\n}\n\n/** RGB color definition, inspired by site.standard.theme.color#rgb */\nexport interface ColorRGB {\n $type?: 'app.bsky.embed.external#colorRGB'\n r: number\n g: number\n b: number\n}\n\nconst hashColorRGB = 'colorRGB'\n\nexport function isColorRGB<V>(v: V) {\n return is$typed(v, id, hashColorRGB)\n}\n\nexport function validateColorRGB<V>(v: V) {\n return validate<ColorRGB & V>(v, id, hashColorRGB)\n}\n\nexport interface ViewArticle {\n $type?: 'app.bsky.embed.external#viewArticle'\n /** Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n image?: string\n publisher?: ViewArticlePublication\n readingTime?: number\n viewer?: ViewArticleViewerState\n likeCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n likers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewArticle = 'viewArticle'\n\nexport function isViewArticle<V>(v: V) {\n return is$typed(v, id, hashViewArticle)\n}\n\nexport function validateViewArticle<V>(v: V) {\n return validate<ViewArticle & V>(v, id, hashViewArticle)\n}\n\n/** Metadata about the requesting account's relationship with the subject article. Only has meaningful content for authed requests. */\nexport interface ViewArticleViewerState {\n $type?: 'app.bsky.embed.external#viewArticleViewerState'\n /** The requesting account's site.standard.graph.recommend record for this article, if recommended. */\n like?: string\n}\n\nconst hashViewArticleViewerState = 'viewArticleViewerState'\n\nexport function isViewArticleViewerState<V>(v: V) {\n return is$typed(v, id, hashViewArticleViewerState)\n}\n\nexport function validateViewArticleViewerState<V>(v: V) {\n return validate<ViewArticleViewerState & V>(v, id, hashViewArticleViewerState)\n}\n\nexport interface ViewArticlePublication {\n $type?: 'app.bsky.embed.external#viewArticlePublication'\n /** Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n logo?: string\n image?: string\n theme?: ViewArticlePublicationTheme\n viewer?: ViewArticlePublicationViewerState\n subscriptionCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n subscribers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewArticlePublication = 'viewArticlePublication'\n\nexport function isViewArticlePublication<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublication)\n}\n\nexport function validateViewArticlePublication<V>(v: V) {\n return validate<ViewArticlePublication & V>(v, id, hashViewArticlePublication)\n}\n\n/** Metadata about the requesting account's relationship with the subject publication. Only has meaningful content for authed requests. */\nexport interface ViewArticlePublicationViewerState {\n $type?: 'app.bsky.embed.external#viewArticlePublicationViewerState'\n /** The requesting account's site.standard.graph.subscription record for this publication, if subscribed. */\n subscription?: string\n}\n\nconst hashViewArticlePublicationViewerState =\n 'viewArticlePublicationViewerState'\n\nexport function isViewArticlePublicationViewerState<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublicationViewerState)\n}\n\nexport function validateViewArticlePublicationViewerState<V>(v: V) {\n return validate<ViewArticlePublicationViewerState & V>(\n v,\n id,\n hashViewArticlePublicationViewerState,\n )\n}\n\nexport interface ViewArticlePublicationTheme {\n $type?: 'app.bsky.embed.external#viewArticlePublicationTheme'\n /** Hex color string, if available. Example: '#ffffff'. */\n background?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n foreground?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n accent?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n accentForeground?: string\n}\n\nconst hashViewArticlePublicationTheme = 'viewArticlePublicationTheme'\n\nexport function isViewArticlePublicationTheme<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublicationTheme)\n}\n\nexport function validateViewArticlePublicationTheme<V>(v: V) {\n return validate<ViewArticlePublicationTheme & V>(\n v,\n id,\n hashViewArticlePublicationTheme,\n )\n}\n\nexport interface ViewGallery {\n $type?: 'app.bsky.embed.external#viewGallery'\n /** Best-effort provider domain for cosmetic attribution, such as grain.social. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n /** The media items in the gallery. Each item may be of a different type, but all types must be supported by the client. */\n items: ($Typed<ViewGalleryImage> | { $type: string })[]\n /** Total number of gallery item backlinks, independent of the items included in this view. */\n photoCount?: number\n viewer?: ViewGalleryViewerState\n likeCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n likers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewGallery = 'viewGallery'\n\nexport function isViewGallery<V>(v: V) {\n return is$typed(v, id, hashViewGallery)\n}\n\nexport function validateViewGallery<V>(v: V) {\n return validate<ViewGallery & V>(v, id, hashViewGallery)\n}\n\n/** Metadata about the requesting account's relationship with the subject gallery. Only has meaningful content for authed requests. */\nexport interface ViewGalleryViewerState {\n $type?: 'app.bsky.embed.external#viewGalleryViewerState'\n /** The requesting account's social.grain.favorite record for this gallery, if favorited. */\n like?: string\n}\n\nconst hashViewGalleryViewerState = 'viewGalleryViewerState'\n\nexport function isViewGalleryViewerState<V>(v: V) {\n return is$typed(v, id, hashViewGalleryViewerState)\n}\n\nexport function validateViewGalleryViewerState<V>(v: V) {\n return validate<ViewGalleryViewerState & V>(v, id, hashViewGalleryViewerState)\n}\n\nexport interface ViewGalleryImage {\n $type?: 'app.bsky.embed.external#viewGalleryImage'\n /** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */\n thumbnail: string\n /** Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. */\n fullsize: string\n /** Alt text description of the image, for accessibility. */\n alt?: string\n aspectRatio?: AppBskyEmbedDefs.AspectRatio\n}\n\nconst hashViewGalleryImage = 'viewGalleryImage'\n\nexport function isViewGalleryImage<V>(v: V) {\n return is$typed(v, id, hashViewGalleryImage)\n}\n\nexport function validateViewGalleryImage<V>(v: V) {\n return validate<ViewGalleryImage & V>(v, id, hashViewGalleryImage)\n}\n\nexport interface ViewLivestream {\n $type?: 'app.bsky.embed.external#viewLivestream'\n /** Best-effort provider domain for cosmetic attribution, such as stream.place. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n image?: string\n /** True if the livestream is currently active at the time this view is served, false if it has ended. */\n active: boolean\n startedAt?: string\n endedAt?: string\n /** When the livestream last reported that it was live. A livestream without endedAt is considered active until two minutes after its last heartbeat; clients can apply the same window to tell whether a cached view is still live. */\n lastSeenAt?: string\n}\n\nconst hashViewLivestream = 'viewLivestream'\n\nexport function isViewLivestream<V>(v: V) {\n return is$typed(v, id, hashViewLivestream)\n}\n\nexport function validateViewLivestream<V>(v: V) {\n return validate<ViewLivestream & V>(v, id, hashViewLivestream)\n}\n"]}
1
+ {"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.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;AAM5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AAQpC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAYD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,MAAM,UAAU,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EA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AA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as AppBskyEmbedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n data?:\n | $Typed<ViewArticle>\n | $Typed<ViewArticlePublication>\n | $Typed<ViewGallery>\n | $Typed<ViewLivestream>\n | { $type: string }\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n /** When the external content was created, if available. Example: a publication date, for an article. */\n createdAt?: string\n /** When the external content was updated, if available. */\n updatedAt?: string\n /** Estimated reading time in minutes, if applicable and available. */\n readingTime?: number\n labels?: ComAtprotoLabelDefs.Label[]\n source?: ViewExternalSource\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n /** Profiles of the owners of the Atmosphere records that backed this view. */\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n\n/** The source of an external embed, such as a standard.site publication. */\nexport interface ViewExternalSource {\n $type?: 'app.bsky.embed.external#viewExternalSource'\n /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */\n uri: string\n /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */\n icon?: string\n title: string\n description?: string\n theme?: ViewExternalSourceTheme\n}\n\nconst hashViewExternalSource = 'viewExternalSource'\n\nexport function isViewExternalSource<V>(v: V) {\n return is$typed(v, id, hashViewExternalSource)\n}\n\nexport function validateViewExternalSource<V>(v: V) {\n return validate<ViewExternalSource & V>(v, id, hashViewExternalSource)\n}\n\n/** The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source. */\nexport interface ViewExternalSourceTheme {\n $type?: 'app.bsky.embed.external#viewExternalSourceTheme'\n backgroundRGB?: ColorRGB\n foregroundRGB?: ColorRGB\n accentRGB?: ColorRGB\n accentForegroundRGB?: ColorRGB\n}\n\nconst hashViewExternalSourceTheme = 'viewExternalSourceTheme'\n\nexport function isViewExternalSourceTheme<V>(v: V) {\n return is$typed(v, id, hashViewExternalSourceTheme)\n}\n\nexport function validateViewExternalSourceTheme<V>(v: V) {\n return validate<ViewExternalSourceTheme & V>(\n v,\n id,\n hashViewExternalSourceTheme,\n )\n}\n\n/** RGB color definition, inspired by site.standard.theme.color#rgb */\nexport interface ColorRGB {\n $type?: 'app.bsky.embed.external#colorRGB'\n r: number\n g: number\n b: number\n}\n\nconst hashColorRGB = 'colorRGB'\n\nexport function isColorRGB<V>(v: V) {\n return is$typed(v, id, hashColorRGB)\n}\n\nexport function validateColorRGB<V>(v: V) {\n return validate<ColorRGB & V>(v, id, hashColorRGB)\n}\n\nexport interface ViewArticle {\n $type?: 'app.bsky.embed.external#viewArticle'\n /** Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n image?: string\n publisher?: ViewArticlePublication\n readingTime?: number\n viewer?: ViewArticleViewerState\n likeCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. Deprecated: use viewer.knownLikers instead. */\n likers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewArticle = 'viewArticle'\n\nexport function isViewArticle<V>(v: V) {\n return is$typed(v, id, hashViewArticle)\n}\n\nexport function validateViewArticle<V>(v: V) {\n return validate<ViewArticle & V>(v, id, hashViewArticle)\n}\n\n/** Metadata about the requesting account's relationship with the subject article. Only has meaningful content for authed requests. */\nexport interface ViewArticleViewerState {\n $type?: 'app.bsky.embed.external#viewArticleViewerState'\n /** The requesting account's site.standard.graph.recommend record for this article, if recommended. */\n like?: string\n /** Up to 3 accounts the requesting account follows that recommended the subject, newest first. Never includes the requesting account. */\n knownLikers?: AppBskyActorDefs.ProfileViewBasic[]\n /** Total number of accounts the requesting account follows that recommended the subject, including those in knownLikers. */\n knownLikerCount?: number\n}\n\nconst hashViewArticleViewerState = 'viewArticleViewerState'\n\nexport function isViewArticleViewerState<V>(v: V) {\n return is$typed(v, id, hashViewArticleViewerState)\n}\n\nexport function validateViewArticleViewerState<V>(v: V) {\n return validate<ViewArticleViewerState & V>(v, id, hashViewArticleViewerState)\n}\n\nexport interface ViewArticlePublication {\n $type?: 'app.bsky.embed.external#viewArticlePublication'\n /** Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n logo?: string\n image?: string\n theme?: ViewArticlePublicationTheme\n viewer?: ViewArticlePublicationViewerState\n subscriptionCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n subscribers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewArticlePublication = 'viewArticlePublication'\n\nexport function isViewArticlePublication<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublication)\n}\n\nexport function validateViewArticlePublication<V>(v: V) {\n return validate<ViewArticlePublication & V>(v, id, hashViewArticlePublication)\n}\n\n/** Metadata about the requesting account's relationship with the subject publication. Only has meaningful content for authed requests. */\nexport interface ViewArticlePublicationViewerState {\n $type?: 'app.bsky.embed.external#viewArticlePublicationViewerState'\n /** The requesting account's site.standard.graph.subscription record for this publication, if subscribed. */\n subscription?: string\n /** Up to 3 accounts the requesting account follows that subscribed to the subject, newest first. Never includes the requesting account. */\n knownSubscribers?: AppBskyActorDefs.ProfileViewBasic[]\n /** Total number of accounts the requesting account follows that subscribed to the subject, including those in knownSubscribers. */\n knownSubscriberCount?: number\n}\n\nconst hashViewArticlePublicationViewerState =\n 'viewArticlePublicationViewerState'\n\nexport function isViewArticlePublicationViewerState<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublicationViewerState)\n}\n\nexport function validateViewArticlePublicationViewerState<V>(v: V) {\n return validate<ViewArticlePublicationViewerState & V>(\n v,\n id,\n hashViewArticlePublicationViewerState,\n )\n}\n\nexport interface ViewArticlePublicationTheme {\n $type?: 'app.bsky.embed.external#viewArticlePublicationTheme'\n /** Hex color string, if available. Example: '#ffffff'. */\n background?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n foreground?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n accent?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n accentForeground?: string\n}\n\nconst hashViewArticlePublicationTheme = 'viewArticlePublicationTheme'\n\nexport function isViewArticlePublicationTheme<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublicationTheme)\n}\n\nexport function validateViewArticlePublicationTheme<V>(v: V) {\n return validate<ViewArticlePublicationTheme & V>(\n v,\n id,\n hashViewArticlePublicationTheme,\n )\n}\n\nexport interface ViewGallery {\n $type?: 'app.bsky.embed.external#viewGallery'\n /** Best-effort provider domain for cosmetic attribution, such as grain.social. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n /** The media items in the gallery. Each item may be of a different type, but all types must be supported by the client. */\n items: ($Typed<ViewGalleryImage> | { $type: string })[]\n /** Total number of gallery item backlinks, independent of the items included in this view. */\n photoCount?: number\n viewer?: ViewGalleryViewerState\n likeCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. Deprecated: use viewer.knownLikers instead. */\n likers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewGallery = 'viewGallery'\n\nexport function isViewGallery<V>(v: V) {\n return is$typed(v, id, hashViewGallery)\n}\n\nexport function validateViewGallery<V>(v: V) {\n return validate<ViewGallery & V>(v, id, hashViewGallery)\n}\n\n/** Metadata about the requesting account's relationship with the subject gallery. Only has meaningful content for authed requests. */\nexport interface ViewGalleryViewerState {\n $type?: 'app.bsky.embed.external#viewGalleryViewerState'\n /** The requesting account's social.grain.favorite record for this gallery, if favorited. */\n like?: string\n /** Up to 3 accounts the requesting account follows that favorited the subject, newest first. Never includes the requesting account. */\n knownLikers?: AppBskyActorDefs.ProfileViewBasic[]\n /** Total number of accounts the requesting account follows that favorited the subject, including those in knownLikers. */\n knownLikerCount?: number\n}\n\nconst hashViewGalleryViewerState = 'viewGalleryViewerState'\n\nexport function isViewGalleryViewerState<V>(v: V) {\n return is$typed(v, id, hashViewGalleryViewerState)\n}\n\nexport function validateViewGalleryViewerState<V>(v: V) {\n return validate<ViewGalleryViewerState & V>(v, id, hashViewGalleryViewerState)\n}\n\nexport interface ViewGalleryImage {\n $type?: 'app.bsky.embed.external#viewGalleryImage'\n /** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */\n thumbnail: string\n /** Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. */\n fullsize: string\n /** Alt text description of the image, for accessibility. */\n alt?: string\n aspectRatio?: AppBskyEmbedDefs.AspectRatio\n}\n\nconst hashViewGalleryImage = 'viewGalleryImage'\n\nexport function isViewGalleryImage<V>(v: V) {\n return is$typed(v, id, hashViewGalleryImage)\n}\n\nexport function validateViewGalleryImage<V>(v: V) {\n return validate<ViewGalleryImage & V>(v, id, hashViewGalleryImage)\n}\n\nexport interface ViewLivestream {\n $type?: 'app.bsky.embed.external#viewLivestream'\n /** Best-effort provider domain for cosmetic attribution, such as stream.place. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n image?: string\n /** True if the livestream is currently active at the time this view is served, false if it has ended. */\n active: boolean\n startedAt?: string\n endedAt?: string\n /** When the livestream last reported that it was live. A livestream without endedAt is considered active until two minutes after its last heartbeat; clients can apply the same window to tell whether a cached view is still live. */\n lastSeenAt?: string\n}\n\nconst hashViewLivestream = 'viewLivestream'\n\nexport function isViewLivestream<V>(v: V) {\n return is$typed(v, id, hashViewLivestream)\n}\n\nexport function validateViewLivestream<V>(v: V) {\n return validate<ViewLivestream & V>(v, id, hashViewLivestream)\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.32.6",
3
+ "version": "0.32.8",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -41,15 +41,15 @@
41
41
  "zod": "^3.23.8"
42
42
  },
43
43
  "devDependencies": {
44
- "@atproto/lex-cli": "^0.10.21",
45
- "@atproto/lex-installer": "^0.2.12",
44
+ "@atproto/lex-cli": "^0.10.22",
45
+ "@atproto/lex-installer": "^0.2.14",
46
46
  "@jest/globals": "^28.1.3",
47
47
  "http-terminator": "^3.2.0",
48
48
  "jest": "^30.5.2",
49
49
  "prettier": "^3.9.6"
50
50
  },
51
51
  "scripts": {
52
- "lex:gen": "if [ ! -f ./src/client/index.ts ] || [ -n \"$(find -L ./lexicons -type f -newer ./src/client/index.ts -print -quit)\" ]; then lex gen-api --yes ./src/client ./lexicons/com/atproto/*/* ./lexicons/app/bsky/*/* ./lexicons/chat/bsky/*/* ./lexicons/tools/ozone/*/* ./lexicons/com/germnetwork/*; fi",
52
+ "lex:gen": "lex gen-api --yes ./src/client ./lexicons/com/atproto/*/* ./lexicons/app/bsky/*/* ./lexicons/chat/bsky/*/* ./lexicons/tools/ozone/*/* ./lexicons/com/germnetwork/*",
53
53
  "lex:install": "lex-installer install",
54
54
  "postlex:install": "pnpm run lex:gen",
55
55
  "lex:update": "lex-installer update",