@atproto/api 0.18.17 → 0.18.18

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.
@@ -11,6 +11,8 @@ export interface Main {
11
11
  /** Alt text description of the video, for accessibility. */
12
12
  alt?: string;
13
13
  aspectRatio?: AppBskyEmbedDefs.AspectRatio;
14
+ /** A hint to the client about how to present the video. */
15
+ presentation?: 'default' | 'gif' | (string & {});
14
16
  }
15
17
  export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.embed.video", "main">;
16
18
  export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
@@ -28,6 +30,8 @@ export interface View {
28
30
  thumbnail?: string;
29
31
  alt?: string;
30
32
  aspectRatio?: AppBskyEmbedDefs.AspectRatio;
33
+ /** A hint to the client about how to present the video. */
34
+ presentation?: 'default' | 'gif' | (string & {});
31
35
  }
32
36
  export declare function isView<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.embed.video", "view">;
33
37
  export declare function validateView<V>(v: V): ValidationResult<View & V>;
@@ -1 +1 @@
1
- {"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/video.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,sBAAsB,CAAA;IAC9B,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,4DAA4D;IAC5D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAA;CAC3C;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mFAE7B;AAED,wB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,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAQD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,SAAgB,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,SAAgB,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,CAAC;AAWD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyEmbedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.video'\n\nexport interface Main {\n $type?: 'app.bsky.embed.video'\n /** The mp4 video file. May be up to 100mb, formerly limited to 50mb. */\n video: BlobRef\n captions?: Caption[]\n /** Alt text description of the video, for accessibility. */\n alt?: string\n aspectRatio?: AppBskyEmbedDefs.AspectRatio\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 Caption {\n $type?: 'app.bsky.embed.video#caption'\n lang: string\n file: BlobRef\n}\n\nconst hashCaption = 'caption'\n\nexport function isCaption<V>(v: V) {\n return is$typed(v, id, hashCaption)\n}\n\nexport function validateCaption<V>(v: V) {\n return validate<Caption & V>(v, id, hashCaption)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.video#view'\n cid: string\n playlist: string\n thumbnail?: string\n alt?: string\n aspectRatio?: AppBskyEmbedDefs.AspectRatio\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"]}
1
+ {"version":3,"file":"video.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/video.ts"],"names":[],"mappings":";;AA+BA,wBAEC;AAED,oCAEC;AAUD,8BAEC;AAED,0CAEC;AAeD,wBAEC;AAED,oCAEC;AArED,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sBAAsB,CAAA;AAcjC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAQD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,SAAgB,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,SAAgB,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,CAAC;AAaD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyEmbedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.video'\n\nexport interface Main {\n $type?: 'app.bsky.embed.video'\n /** The mp4 video file. May be up to 100mb, formerly limited to 50mb. */\n video: BlobRef\n captions?: Caption[]\n /** Alt text description of the video, for accessibility. */\n alt?: string\n aspectRatio?: AppBskyEmbedDefs.AspectRatio\n /** A hint to the client about how to present the video. */\n presentation?: 'default' | 'gif' | (string & {})\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 Caption {\n $type?: 'app.bsky.embed.video#caption'\n lang: string\n file: BlobRef\n}\n\nconst hashCaption = 'caption'\n\nexport function isCaption<V>(v: V) {\n return is$typed(v, id, hashCaption)\n}\n\nexport function validateCaption<V>(v: V) {\n return validate<Caption & V>(v, id, hashCaption)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.video#view'\n cid: string\n playlist: string\n thumbnail?: string\n alt?: string\n aspectRatio?: AppBskyEmbedDefs.AspectRatio\n /** A hint to the client about how to present the video. */\n presentation?: 'default' | 'gif' | (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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.18.17",
3
+ "version": "0.18.18",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -21,7 +21,7 @@
21
21
  "multiformats": "^9.9.0",
22
22
  "tlds": "^1.234.0",
23
23
  "zod": "^3.23.8",
24
- "@atproto/common-web": "^0.4.13",
24
+ "@atproto/common-web": "^0.4.14",
25
25
  "@atproto/lexicon": "^0.6.1",
26
26
  "@atproto/syntax": "^0.4.3",
27
27
  "@atproto/xrpc": "^0.7.7"
@@ -3018,6 +3018,11 @@ export const schemaDict = {
3018
3018
  type: 'ref',
3019
3019
  ref: 'lex:app.bsky.embed.defs#aspectRatio',
3020
3020
  },
3021
+ presentation: {
3022
+ type: 'string',
3023
+ description: 'A hint to the client about how to present the video.',
3024
+ knownValues: ['default', 'gif'],
3025
+ },
3021
3026
  },
3022
3027
  },
3023
3028
  caption: {
@@ -3060,6 +3065,11 @@ export const schemaDict = {
3060
3065
  type: 'ref',
3061
3066
  ref: 'lex:app.bsky.embed.defs#aspectRatio',
3062
3067
  },
3068
+ presentation: {
3069
+ type: 'string',
3070
+ description: 'A hint to the client about how to present the video.',
3071
+ knownValues: ['default', 'gif'],
3072
+ },
3063
3073
  },
3064
3074
  },
3065
3075
  },
@@ -23,6 +23,8 @@ export interface Main {
23
23
  /** Alt text description of the video, for accessibility. */
24
24
  alt?: string
25
25
  aspectRatio?: AppBskyEmbedDefs.AspectRatio
26
+ /** A hint to the client about how to present the video. */
27
+ presentation?: 'default' | 'gif' | (string & {})
26
28
  }
27
29
 
28
30
  const hashMain = 'main'
@@ -58,6 +60,8 @@ export interface View {
58
60
  thumbnail?: string
59
61
  alt?: string
60
62
  aspectRatio?: AppBskyEmbedDefs.AspectRatio
63
+ /** A hint to the client about how to present the video. */
64
+ presentation?: 'default' | 'gif' | (string & {})
61
65
  }
62
66
 
63
67
  const hashView = 'view'