@atcute/bluesky 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/lexicons.d.ts +110 -15
  2. package/package.json +2 -2
@@ -354,6 +354,16 @@ declare module '@atcute/client/lexicons' {
354
354
  actors: AppBskyActorDefs.ProfileViewBasic[];
355
355
  }
356
356
  }
357
+ namespace AppBskyEmbedDefs {
358
+ /** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
359
+ interface AspectRatio {
360
+ [Brand.Type]?: 'app.bsky.embed.defs#aspectRatio';
361
+ /** Minimum: 1 */
362
+ height: number;
363
+ /** Minimum: 1 */
364
+ width: number;
365
+ }
366
+ }
357
367
  namespace AppBskyEmbedExternal {
358
368
  /** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */
359
369
  interface Main {
@@ -385,20 +395,12 @@ declare module '@atcute/client/lexicons' {
385
395
  /** Maximum array length: 4 */
386
396
  images: Image[];
387
397
  }
388
- /** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
389
- interface AspectRatio {
390
- [Brand.Type]?: 'app.bsky.embed.images#aspectRatio';
391
- /** Minimum: 1 */
392
- height: number;
393
- /** Minimum: 1 */
394
- width: number;
395
- }
396
398
  interface Image {
397
399
  [Brand.Type]?: 'app.bsky.embed.images#image';
398
400
  /** Alt text description of the image, for accessibility. */
399
401
  alt: string;
400
402
  image: At.Blob;
401
- aspectRatio?: AspectRatio;
403
+ aspectRatio?: AppBskyEmbedDefs.AspectRatio;
402
404
  }
403
405
  interface View {
404
406
  [Brand.Type]?: 'app.bsky.embed.images#view';
@@ -413,7 +415,7 @@ declare module '@atcute/client/lexicons' {
413
415
  fullsize: string;
414
416
  /** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */
415
417
  thumb: string;
416
- aspectRatio?: AspectRatio;
418
+ aspectRatio?: AppBskyEmbedDefs.AspectRatio;
417
419
  }
418
420
  }
419
421
  namespace AppBskyEmbedRecord {
@@ -449,7 +451,7 @@ declare module '@atcute/client/lexicons' {
449
451
  uri: At.Uri;
450
452
  /** The record data itself. */
451
453
  value: unknown;
452
- embeds?: Brand.Union<AppBskyEmbedExternal.View | AppBskyEmbedImages.View | AppBskyEmbedRecord.View | AppBskyEmbedRecordWithMedia.View>[];
454
+ embeds?: Brand.Union<AppBskyEmbedExternal.View | AppBskyEmbedImages.View | AppBskyEmbedRecord.View | AppBskyEmbedRecordWithMedia.View | AppBskyEmbedVideo.View>[];
453
455
  labels?: ComAtprotoLabelDefs.Label[];
454
456
  likeCount?: number;
455
457
  quoteCount?: number;
@@ -460,15 +462,47 @@ declare module '@atcute/client/lexicons' {
460
462
  namespace AppBskyEmbedRecordWithMedia {
461
463
  interface Main {
462
464
  [Brand.Type]?: 'app.bsky.embed.recordWithMedia';
463
- media: Brand.Union<AppBskyEmbedExternal.Main | AppBskyEmbedImages.Main>;
465
+ media: Brand.Union<AppBskyEmbedExternal.Main | AppBskyEmbedImages.Main | AppBskyEmbedVideo.Main>;
464
466
  record: AppBskyEmbedRecord.Main;
465
467
  }
466
468
  interface View {
467
469
  [Brand.Type]?: 'app.bsky.embed.recordWithMedia#view';
468
- media: Brand.Union<AppBskyEmbedExternal.View | AppBskyEmbedImages.View>;
470
+ media: Brand.Union<AppBskyEmbedExternal.View | AppBskyEmbedImages.View | AppBskyEmbedVideo.View>;
469
471
  record: AppBskyEmbedRecord.View;
470
472
  }
471
473
  }
474
+ namespace AppBskyEmbedVideo {
475
+ interface Main {
476
+ [Brand.Type]?: 'app.bsky.embed.video';
477
+ video: At.Blob;
478
+ /**
479
+ * Alt text description of the video, for accessibility. \
480
+ * Maximum string length: 10000 \
481
+ * Maximum grapheme length: 1000
482
+ */
483
+ alt?: string;
484
+ aspectRatio?: AppBskyEmbedDefs.AspectRatio;
485
+ /** Maximum array length: 20 */
486
+ captions?: Caption[];
487
+ }
488
+ interface Caption {
489
+ [Brand.Type]?: 'app.bsky.embed.video#caption';
490
+ file: At.Blob;
491
+ lang: string;
492
+ }
493
+ interface View {
494
+ [Brand.Type]?: 'app.bsky.embed.video#view';
495
+ cid: At.CID;
496
+ playlist: string;
497
+ /**
498
+ * Maximum string length: 10000 \
499
+ * Maximum grapheme length: 1000
500
+ */
501
+ alt?: string;
502
+ aspectRatio?: AppBskyEmbedDefs.AspectRatio;
503
+ thumbnail?: string;
504
+ }
505
+ }
472
506
  namespace AppBskyFeedDefs {
473
507
  interface BlockedAuthor {
474
508
  [Brand.Type]?: 'app.bsky.feed.defs#blockedAuthor';
@@ -549,7 +583,7 @@ declare module '@atcute/client/lexicons' {
549
583
  indexedAt: string;
550
584
  record: unknown;
551
585
  uri: At.Uri;
552
- embed?: Brand.Union<AppBskyEmbedExternal.View | AppBskyEmbedImages.View | AppBskyEmbedRecord.View | AppBskyEmbedRecordWithMedia.View>;
586
+ embed?: Brand.Union<AppBskyEmbedExternal.View | AppBskyEmbedImages.View | AppBskyEmbedRecord.View | AppBskyEmbedRecordWithMedia.View | AppBskyEmbedVideo.View>;
553
587
  labels?: ComAtprotoLabelDefs.Label[];
554
588
  likeCount?: number;
555
589
  quoteCount?: number;
@@ -978,7 +1012,7 @@ declare module '@atcute/client/lexicons' {
978
1012
  * Maximum grapheme length: 300
979
1013
  */
980
1014
  text: string;
981
- embed?: Brand.Union<AppBskyEmbedExternal.Main | AppBskyEmbedImages.Main | AppBskyEmbedRecord.Main | AppBskyEmbedRecordWithMedia.Main>;
1015
+ embed?: Brand.Union<AppBskyEmbedExternal.Main | AppBskyEmbedImages.Main | AppBskyEmbedRecord.Main | AppBskyEmbedRecordWithMedia.Main | AppBskyEmbedVideo.Main>;
982
1016
  /**
983
1017
  * DEPRECATED: replaced by app.bsky.richtext.facet.
984
1018
  * @deprecated
@@ -1918,6 +1952,56 @@ declare module '@atcute/client/lexicons' {
1918
1952
  BadQueryString: {};
1919
1953
  }
1920
1954
  }
1955
+ namespace AppBskyVideoDefs {
1956
+ interface JobStatus {
1957
+ [Brand.Type]?: 'app.bsky.video.defs#jobStatus';
1958
+ did: At.DID;
1959
+ jobId: string;
1960
+ /** The state of the video processing job. All values not listed as a known value indicate that the job is in process. */
1961
+ state: 'JOB_STATE_COMPLETED' | 'JOB_STATE_FAILED' | (string & {});
1962
+ blob?: At.Blob;
1963
+ error?: string;
1964
+ message?: string;
1965
+ /**
1966
+ * Progress within the current processing state. \
1967
+ * Minimum: 0 \
1968
+ * Maximum: 100
1969
+ */
1970
+ progress?: number;
1971
+ }
1972
+ }
1973
+ /** Get status details for a video processing job. */
1974
+ namespace AppBskyVideoGetJobStatus {
1975
+ interface Params {
1976
+ jobId: string;
1977
+ }
1978
+ type Input = undefined;
1979
+ interface Output {
1980
+ jobStatus: AppBskyVideoDefs.JobStatus;
1981
+ }
1982
+ }
1983
+ /** Get video upload limits for the authenticated user. */
1984
+ namespace AppBskyVideoGetUploadLimits {
1985
+ interface Params {
1986
+ }
1987
+ type Input = undefined;
1988
+ interface Output {
1989
+ canUpload: boolean;
1990
+ error?: string;
1991
+ message?: string;
1992
+ remainingDailyBytes?: number;
1993
+ remainingDailyVideos?: number;
1994
+ }
1995
+ }
1996
+ /** Upload a video to be processed then stored on the PDS. */
1997
+ namespace AppBskyVideoUploadVideo {
1998
+ interface Params {
1999
+ }
2000
+ type Input = Blob | ArrayBufferView;
2001
+ interface Output {
2002
+ jobStatus: AppBskyVideoDefs.JobStatus;
2003
+ }
2004
+ }
1921
2005
  namespace ChatBskyActorDeclaration {
1922
2006
  interface Record {
1923
2007
  allowIncoming: 'all' | 'following' | 'none' | (string & {});
@@ -2409,6 +2493,13 @@ declare module '@atcute/client/lexicons' {
2409
2493
  params: AppBskyUnspeccedSearchPostsSkeleton.Params;
2410
2494
  output: AppBskyUnspeccedSearchPostsSkeleton.Output;
2411
2495
  };
2496
+ 'app.bsky.video.getJobStatus': {
2497
+ params: AppBskyVideoGetJobStatus.Params;
2498
+ output: AppBskyVideoGetJobStatus.Output;
2499
+ };
2500
+ 'app.bsky.video.getUploadLimits': {
2501
+ output: AppBskyVideoGetUploadLimits.Output;
2502
+ };
2412
2503
  'chat.bsky.actor.exportAccountData': {
2413
2504
  output: ChatBskyActorExportAccountData.Output;
2414
2505
  };
@@ -2476,6 +2567,10 @@ declare module '@atcute/client/lexicons' {
2476
2567
  'app.bsky.notification.updateSeen': {
2477
2568
  input: AppBskyNotificationUpdateSeen.Input;
2478
2569
  };
2570
+ 'app.bsky.video.uploadVideo': {
2571
+ input: AppBskyVideoUploadVideo.Input;
2572
+ output: AppBskyVideoUploadVideo.Output;
2573
+ };
2479
2574
  'chat.bsky.actor.deleteAccount': {
2480
2575
  output: ChatBskyActorDeleteAccount.Output;
2481
2576
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/bluesky",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "description": "Bluesky type definitions for atcute",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "@atcute/client": "^1.0.0 || ^2.0.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@atcute/client": "^1.0.0",
20
+ "@atcute/client": "^2.0.0",
21
21
  "@atcute/lex-cli": "^1.0.0"
22
22
  },
23
23
  "scripts": {