@atproto/api 0.20.2 → 0.20.3

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.
@@ -51,10 +51,10 @@ export declare function validateViewExternal<V>(v: V): ValidationResult<ViewExte
51
51
  export interface ViewExternalSource {
52
52
  $type?: 'app.bsky.embed.external#viewExternalSource';
53
53
  /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */
54
- uri?: string;
54
+ uri: string;
55
55
  /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */
56
56
  icon?: string;
57
- title?: string;
57
+ title: string;
58
58
  description?: string;
59
59
  theme?: ViewExternalSourceTheme;
60
60
  }
@@ -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;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,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,CAAC,yFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,4EAA4E;IAC5E,cAAc,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;CA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AA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AAcD,MAAM,sBAAsB,GAAG,oBAAoB,CAAA;AAEnD,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAWD,MAAM,2BAA2B,GAAG,yBAAyB,CAAA;AAE7D,MAAM,UAAU,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,2BAA2B,CAAC,CAAA;AACrD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAI,CAAI;IACrD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,2BAA2B,CAC5B,CAAA;AACH,CAAC;AAUD,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,EAAE,YAAY,CAAC,CAAA;AACpD,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'\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}\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}\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"]}
1
+ {"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAA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OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AAcD,MAAM,sBAAsB,GAAG,oBAAoB,CAAA;AAEnD,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAWD,MAAM,2BAA2B,GAAG,yBAAyB,CAAA;AAE7D,MAAM,UAAU,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,2BAA2B,CAAC,CAAA;AACrD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAI,CAAI;IACrD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,2BAA2B,CAC5B,CAAA;AACH,CAAC;AAUD,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,EAAE,YAAY,CAAC,CAAA;AACpD,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'\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}\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}\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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },