@atproto/api 0.13.2-next.0 → 0.13.2

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 (76) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/client/index.d.ts +27 -17
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +55 -39
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +155 -235
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +160 -247
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/images.d.ts +10 -3
  11. package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/images.js +11 -1
  13. package/dist/client/types/app/bsky/embed/images.js.map +1 -1
  14. package/dist/client/types/app/bsky/embed/record.d.ts +9 -3
  15. package/dist/client/types/app/bsky/embed/record.d.ts.map +1 -1
  16. package/dist/client/types/app/bsky/embed/record.js +11 -1
  17. package/dist/client/types/app/bsky/embed/record.js.map +1 -1
  18. package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +2 -3
  19. package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts.map +1 -1
  20. package/dist/client/types/app/bsky/embed/recordWithMedia.js.map +1 -1
  21. package/dist/client/types/app/bsky/feed/defs.d.ts +3 -2
  22. package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
  23. package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
  24. package/dist/client/types/app/bsky/feed/getQuotes.d.ts +31 -0
  25. package/dist/client/types/app/bsky/feed/getQuotes.d.ts.map +1 -0
  26. package/dist/client/types/app/bsky/{video/getUploadLimits.js → feed/getQuotes.js} +7 -1
  27. package/dist/client/types/app/bsky/feed/getQuotes.js.map +1 -0
  28. package/dist/client/types/app/bsky/feed/post.d.ts +1 -2
  29. package/dist/client/types/app/bsky/feed/post.d.ts.map +1 -1
  30. package/dist/client/types/app/bsky/feed/post.js.map +1 -1
  31. package/dist/client/types/app/bsky/feed/postgate.d.ts +25 -0
  32. package/dist/client/types/app/bsky/feed/postgate.d.ts.map +1 -0
  33. package/dist/client/types/app/bsky/feed/postgate.js +27 -0
  34. package/dist/client/types/app/bsky/feed/postgate.js.map +1 -0
  35. package/dist/client/types/app/bsky/feed/threadgate.d.ts +2 -0
  36. package/dist/client/types/app/bsky/feed/threadgate.d.ts.map +1 -1
  37. package/dist/client/types/app/bsky/feed/threadgate.js.map +1 -1
  38. package/package.json +4 -4
  39. package/src/client/index.ts +78 -53
  40. package/src/client/lexicons.ts +164 -250
  41. package/src/client/types/app/bsky/embed/images.ts +21 -3
  42. package/src/client/types/app/bsky/embed/record.ts +19 -2
  43. package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -3
  44. package/src/client/types/app/bsky/feed/defs.ts +2 -2
  45. package/src/client/types/app/bsky/{video/getJobStatus.ts → feed/getQuotes.ts} +16 -7
  46. package/src/client/types/app/bsky/feed/post.ts +0 -2
  47. package/src/client/types/app/bsky/feed/postgate.ts +47 -0
  48. package/src/client/types/app/bsky/feed/threadgate.ts +2 -0
  49. package/dist/client/types/app/bsky/embed/defs.d.ts +0 -13
  50. package/dist/client/types/app/bsky/embed/defs.d.ts.map +0 -1
  51. package/dist/client/types/app/bsky/embed/defs.js +0 -16
  52. package/dist/client/types/app/bsky/embed/defs.js.map +0 -1
  53. package/dist/client/types/app/bsky/embed/video.d.ts +0 -33
  54. package/dist/client/types/app/bsky/embed/video.d.ts.map +0 -1
  55. package/dist/client/types/app/bsky/embed/video.js +0 -35
  56. package/dist/client/types/app/bsky/embed/video.js.map +0 -1
  57. package/dist/client/types/app/bsky/video/defs.d.ts +0 -19
  58. package/dist/client/types/app/bsky/video/defs.d.ts.map +0 -1
  59. package/dist/client/types/app/bsky/video/defs.js +0 -16
  60. package/dist/client/types/app/bsky/video/defs.js.map +0 -1
  61. package/dist/client/types/app/bsky/video/getJobStatus.d.ts +0 -24
  62. package/dist/client/types/app/bsky/video/getJobStatus.d.ts.map +0 -1
  63. package/dist/client/types/app/bsky/video/getJobStatus.js +0 -8
  64. package/dist/client/types/app/bsky/video/getJobStatus.js.map +0 -1
  65. package/dist/client/types/app/bsky/video/getUploadLimits.d.ts +0 -26
  66. package/dist/client/types/app/bsky/video/getUploadLimits.d.ts.map +0 -1
  67. package/dist/client/types/app/bsky/video/getUploadLimits.js.map +0 -1
  68. package/dist/client/types/app/bsky/video/uploadVideo.d.ts +0 -25
  69. package/dist/client/types/app/bsky/video/uploadVideo.d.ts.map +0 -1
  70. package/dist/client/types/app/bsky/video/uploadVideo.js +0 -8
  71. package/dist/client/types/app/bsky/video/uploadVideo.js.map +0 -1
  72. package/src/client/types/app/bsky/embed/defs.ts +0 -26
  73. package/src/client/types/app/bsky/embed/video.ts +0 -67
  74. package/src/client/types/app/bsky/video/defs.ts +0 -32
  75. package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -36
  76. package/src/client/types/app/bsky/video/uploadVideo.ts +0 -35
@@ -1,35 +1,44 @@
1
1
  /**
2
2
  * GENERATED CODE - DO NOT MODIFY
3
3
  */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
5
  import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { isObj, hasProp } from '../../../../util'
7
7
  import { lexicons } from '../../../../lexicons'
8
8
  import { CID } from 'multiformats/cid'
9
- import * as AppBskyVideoDefs from './defs'
9
+ import * as AppBskyFeedDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
- jobId: string
12
+ /** Reference (AT-URI) of post record */
13
+ uri: string
14
+ /** If supplied, filters to quotes of specific version (by CID) of the post record. */
15
+ cid?: string
16
+ limit?: number
17
+ cursor?: string
13
18
  }
14
19
 
15
20
  export type InputSchema = undefined
16
21
 
17
22
  export interface OutputSchema {
18
- jobStatus: AppBskyVideoDefs.JobStatus
23
+ uri: string
24
+ cid?: string
25
+ cursor?: string
26
+ posts: AppBskyFeedDefs.PostView[]
19
27
  [k: string]: unknown
20
28
  }
21
29
 
22
30
  export interface CallOptions {
23
- signal?: AbortSignal
24
- headers?: HeadersMap
31
+ headers?: Headers
25
32
  }
26
33
 
27
34
  export interface Response {
28
35
  success: boolean
29
- headers: HeadersMap
36
+ headers: Headers
30
37
  data: OutputSchema
31
38
  }
32
39
 
33
40
  export function toKnownErr(e: any) {
41
+ if (e instanceof XRPCError) {
42
+ }
34
43
  return e
35
44
  }
@@ -7,7 +7,6 @@ import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
8
  import * as AppBskyRichtextFacet from '../richtext/facet'
9
9
  import * as AppBskyEmbedImages from '../embed/images'
10
- import * as AppBskyEmbedVideo from '../embed/video'
11
10
  import * as AppBskyEmbedExternal from '../embed/external'
12
11
  import * as AppBskyEmbedRecord from '../embed/record'
13
12
  import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia'
@@ -24,7 +23,6 @@ export interface Record {
24
23
  reply?: ReplyRef
25
24
  embed?:
26
25
  | AppBskyEmbedImages.Main
27
- | AppBskyEmbedVideo.Main
28
26
  | AppBskyEmbedExternal.Main
29
27
  | AppBskyEmbedRecord.Main
30
28
  | AppBskyEmbedRecordWithMedia.Main
@@ -0,0 +1,47 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { isObj, hasProp } from '../../../../util'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { CID } from 'multiformats/cid'
8
+
9
+ export interface Record {
10
+ createdAt: string
11
+ /** Reference (AT-URI) to the post record. */
12
+ post: string
13
+ /** List of AT-URIs embedding this post that the author has detached from. */
14
+ detachedEmbeddingUris?: string[]
15
+ embeddingRules?: (DisableRule | { $type: string; [k: string]: unknown })[]
16
+ [k: string]: unknown
17
+ }
18
+
19
+ export function isRecord(v: unknown): v is Record {
20
+ return (
21
+ isObj(v) &&
22
+ hasProp(v, '$type') &&
23
+ (v.$type === 'app.bsky.feed.postgate#main' ||
24
+ v.$type === 'app.bsky.feed.postgate')
25
+ )
26
+ }
27
+
28
+ export function validateRecord(v: unknown): ValidationResult {
29
+ return lexicons.validate('app.bsky.feed.postgate#main', v)
30
+ }
31
+
32
+ /** Disables embedding of this post. */
33
+ export interface DisableRule {
34
+ [k: string]: unknown
35
+ }
36
+
37
+ export function isDisableRule(v: unknown): v is DisableRule {
38
+ return (
39
+ isObj(v) &&
40
+ hasProp(v, '$type') &&
41
+ v.$type === 'app.bsky.feed.postgate#disableRule'
42
+ )
43
+ }
44
+
45
+ export function validateDisableRule(v: unknown): ValidationResult {
46
+ return lexicons.validate('app.bsky.feed.postgate#disableRule', v)
47
+ }
@@ -16,6 +16,8 @@ export interface Record {
16
16
  | { $type: string; [k: string]: unknown }
17
17
  )[]
18
18
  createdAt: string
19
+ /** List of hidden reply URIs. */
20
+ hiddenReplies?: string[]
19
21
  [k: string]: unknown
20
22
  }
21
23
 
@@ -1,13 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult } from '@atproto/lexicon';
5
- /** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
6
- export interface AspectRatio {
7
- width: number;
8
- height: number;
9
- [k: string]: unknown;
10
- }
11
- export declare function isAspectRatio(v: unknown): v is AspectRatio;
12
- export declare function validateAspectRatio(v: unknown): ValidationResult;
13
- //# sourceMappingURL=defs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAK5D,uIAAuI;AACvI,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,WAAW,CAM1D;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEhE"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateAspectRatio = exports.isAspectRatio = void 0;
4
- const util_1 = require("../../../../util");
5
- const lexicons_1 = require("../../../../lexicons");
6
- function isAspectRatio(v) {
7
- return ((0, util_1.isObj)(v) &&
8
- (0, util_1.hasProp)(v, '$type') &&
9
- v.$type === 'app.bsky.embed.defs#aspectRatio');
10
- }
11
- exports.isAspectRatio = isAspectRatio;
12
- function validateAspectRatio(v) {
13
- return lexicons_1.lexicons.validate('app.bsky.embed.defs#aspectRatio', v);
14
- }
15
- exports.validateAspectRatio = validateAspectRatio;
16
- //# sourceMappingURL=defs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/defs.ts"],"names":[],"mappings":";;;AAIA,2CAAiD;AACjD,mDAA+C;AAU/C,SAAgB,aAAa,CAAC,CAAU;IACtC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,iCAAiC,CAC9C,CAAA;AACH,CAAC;AAND,sCAMC;AAED,SAAgB,mBAAmB,CAAC,CAAU;IAC5C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,iCAAiC,EAAE,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,kDAEC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult, BlobRef } from '@atproto/lexicon';
5
- import * as AppBskyEmbedDefs from './defs';
6
- export interface Main {
7
- video: BlobRef;
8
- captions?: Caption[];
9
- /** Alt text description of the video, for accessibility. */
10
- alt?: string;
11
- aspectRatio?: AppBskyEmbedDefs.AspectRatio;
12
- [k: string]: unknown;
13
- }
14
- export declare function isMain(v: unknown): v is Main;
15
- export declare function validateMain(v: unknown): ValidationResult;
16
- export interface Caption {
17
- lang: string;
18
- file: BlobRef;
19
- [k: string]: unknown;
20
- }
21
- export declare function isCaption(v: unknown): v is Caption;
22
- export declare function validateCaption(v: unknown): ValidationResult;
23
- export interface View {
24
- cid: string;
25
- playlist: string;
26
- thumbnail?: string;
27
- alt?: string;
28
- aspectRatio?: AppBskyEmbedDefs.AspectRatio;
29
- [k: string]: unknown;
30
- }
31
- export declare function isView(v: unknown): v is View;
32
- export declare function validateView(v: unknown): ValidationResult;
33
- //# sourceMappingURL=video.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/video.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,gBAAgB,MAAM,QAAQ,CAAA;AAE1C,MAAM,WAAW,IAAI;IACnB,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;IAC1C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,IAAI,CAO5C;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEzD;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,OAAO,CAMlD;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAE5D;AAED,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAA;IAC1C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,IAAI,CAI5C;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEzD"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateView = exports.isView = exports.validateCaption = exports.isCaption = exports.validateMain = exports.isMain = void 0;
4
- const util_1 = require("../../../../util");
5
- const lexicons_1 = require("../../../../lexicons");
6
- function isMain(v) {
7
- return ((0, util_1.isObj)(v) &&
8
- (0, util_1.hasProp)(v, '$type') &&
9
- (v.$type === 'app.bsky.embed.video#main' ||
10
- v.$type === 'app.bsky.embed.video'));
11
- }
12
- exports.isMain = isMain;
13
- function validateMain(v) {
14
- return lexicons_1.lexicons.validate('app.bsky.embed.video#main', v);
15
- }
16
- exports.validateMain = validateMain;
17
- function isCaption(v) {
18
- return ((0, util_1.isObj)(v) &&
19
- (0, util_1.hasProp)(v, '$type') &&
20
- v.$type === 'app.bsky.embed.video#caption');
21
- }
22
- exports.isCaption = isCaption;
23
- function validateCaption(v) {
24
- return lexicons_1.lexicons.validate('app.bsky.embed.video#caption', v);
25
- }
26
- exports.validateCaption = validateCaption;
27
- function isView(v) {
28
- return ((0, util_1.isObj)(v) && (0, util_1.hasProp)(v, '$type') && v.$type === 'app.bsky.embed.video#view');
29
- }
30
- exports.isView = isView;
31
- function validateView(v) {
32
- return lexicons_1.lexicons.validate('app.bsky.embed.video#view', v);
33
- }
34
- exports.validateView = validateView;
35
- //# sourceMappingURL=video.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/video.ts"],"names":[],"mappings":";;;AAIA,2CAAiD;AACjD,mDAA+C;AAa/C,SAAgB,MAAM,CAAC,CAAU;IAC/B,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,CAAC,KAAK,KAAK,2BAA2B;YACtC,CAAC,CAAC,KAAK,KAAK,sBAAsB,CAAC,CACtC,CAAA;AACH,CAAC;AAPD,wBAOC;AAED,SAAgB,YAAY,CAAC,CAAU;IACrC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,2BAA2B,EAAE,CAAC,CAAC,CAAA;AAC1D,CAAC;AAFD,oCAEC;AAQD,SAAgB,SAAS,CAAC,CAAU;IAClC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,8BAA8B,CAC3C,CAAA;AACH,CAAC;AAND,8BAMC;AAED,SAAgB,eAAe,CAAC,CAAU;IACxC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC;AAWD,SAAgB,MAAM,CAAC,CAAU;IAC/B,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC,IAAI,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,2BAA2B,CAC3E,CAAA;AACH,CAAC;AAJD,wBAIC;AAED,SAAgB,YAAY,CAAC,CAAU;IACrC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,2BAA2B,EAAE,CAAC,CAAC,CAAA;AAC1D,CAAC;AAFD,oCAEC"}
@@ -1,19 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult, BlobRef } from '@atproto/lexicon';
5
- export interface JobStatus {
6
- jobId: string;
7
- did: string;
8
- /** The state of the video processing job. All values not listed as a known value indicate that the job is in process. */
9
- state: 'JOB_STATE_COMPLETED' | 'JOB_STATE_FAILED' | (string & {});
10
- /** Progress within the current processing state. */
11
- progress?: number;
12
- blob?: BlobRef;
13
- error?: string;
14
- message?: string;
15
- [k: string]: unknown;
16
- }
17
- export declare function isJobStatus(v: unknown): v is JobStatus;
18
- export declare function validateJobStatus(v: unknown): ValidationResult;
19
- //# sourceMappingURL=defs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAK5D,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,yHAAyH;IACzH,KAAK,EAAE,qBAAqB,GAAG,kBAAkB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjE,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,SAAS,CAMtD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAE9D"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateJobStatus = exports.isJobStatus = void 0;
4
- const util_1 = require("../../../../util");
5
- const lexicons_1 = require("../../../../lexicons");
6
- function isJobStatus(v) {
7
- return ((0, util_1.isObj)(v) &&
8
- (0, util_1.hasProp)(v, '$type') &&
9
- v.$type === 'app.bsky.video.defs#jobStatus');
10
- }
11
- exports.isJobStatus = isJobStatus;
12
- function validateJobStatus(v) {
13
- return lexicons_1.lexicons.validate('app.bsky.video.defs#jobStatus', v);
14
- }
15
- exports.validateJobStatus = validateJobStatus;
16
- //# sourceMappingURL=defs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/defs.ts"],"names":[],"mappings":";;;AAIA,2CAAiD;AACjD,mDAA+C;AAgB/C,SAAgB,WAAW,CAAC,CAAU;IACpC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,+BAA+B,CAC5C,CAAA;AACH,CAAC;AAND,kCAMC;AAED,SAAgB,iBAAiB,CAAC,CAAU;IAC1C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,8CAEC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap } from '@atproto/xrpc';
5
- import * as AppBskyVideoDefs from './defs';
6
- export interface QueryParams {
7
- jobId: string;
8
- }
9
- export type InputSchema = undefined;
10
- export interface OutputSchema {
11
- jobStatus: AppBskyVideoDefs.JobStatus;
12
- [k: string]: unknown;
13
- }
14
- export interface CallOptions {
15
- signal?: AbortSignal;
16
- headers?: HeadersMap;
17
- }
18
- export interface Response {
19
- success: boolean;
20
- headers: HeadersMap;
21
- data: OutputSchema;
22
- }
23
- export declare function toKnownErr(e: any): any;
24
- //# sourceMappingURL=getJobStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getJobStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/getJobStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAKrD,OAAO,KAAK,gBAAgB,MAAM,QAAQ,CAAA;AAE1C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,gBAAgB,CAAC,SAAS,CAAA;IACrC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;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,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toKnownErr = void 0;
4
- function toKnownErr(e) {
5
- return e;
6
- }
7
- exports.toKnownErr = toKnownErr;
8
- //# sourceMappingURL=getJobStatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getJobStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/getJobStatus.ts"],"names":[],"mappings":";;;AAgCA,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAFD,gCAEC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap } from '@atproto/xrpc';
5
- export interface QueryParams {
6
- }
7
- export type InputSchema = undefined;
8
- export interface OutputSchema {
9
- canUpload: boolean;
10
- remainingDailyVideos?: number;
11
- remainingDailyBytes?: number;
12
- message?: string;
13
- error?: string;
14
- [k: string]: unknown;
15
- }
16
- export interface CallOptions {
17
- signal?: AbortSignal;
18
- headers?: HeadersMap;
19
- }
20
- export interface Response {
21
- success: boolean;
22
- headers: HeadersMap;
23
- data: OutputSchema;
24
- }
25
- export declare function toKnownErr(e: any): any;
26
- //# sourceMappingURL=getUploadLimits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUploadLimits.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/getUploadLimits.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAMrD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,OAAO,CAAA;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;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 +0,0 @@
1
- {"version":3,"file":"getUploadLimits.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/getUploadLimits.ts"],"names":[],"mappings":";;;AAiCA,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAFD,gCAEC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap } from '@atproto/xrpc';
5
- import * as AppBskyVideoDefs from './defs';
6
- export interface QueryParams {
7
- }
8
- export type InputSchema = string | Uint8Array | Blob;
9
- export interface OutputSchema {
10
- jobStatus: AppBskyVideoDefs.JobStatus;
11
- [k: string]: unknown;
12
- }
13
- export interface CallOptions {
14
- signal?: AbortSignal;
15
- headers?: HeadersMap;
16
- qp?: QueryParams;
17
- encoding?: 'video/mp4';
18
- }
19
- export interface Response {
20
- success: boolean;
21
- headers: HeadersMap;
22
- data: OutputSchema;
23
- }
24
- export declare function toKnownErr(e: any): any;
25
- //# sourceMappingURL=uploadVideo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploadVideo.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/uploadVideo.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAKrD,OAAO,KAAK,gBAAgB,MAAM,QAAQ,CAAA;AAE1C,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,IAAI,CAAA;AAEpD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,gBAAgB,CAAC,SAAS,CAAA;IACrC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;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,WAAW,CAAA;CACvB;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,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toKnownErr = void 0;
4
- function toKnownErr(e) {
5
- return e;
6
- }
7
- exports.toKnownErr = toKnownErr;
8
- //# sourceMappingURL=uploadVideo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploadVideo.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/uploadVideo.ts"],"names":[],"mappings":";;;AAgCA,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAFD,gCAEC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
- import { isObj, hasProp } from '../../../../util'
6
- import { lexicons } from '../../../../lexicons'
7
- import { CID } from 'multiformats/cid'
8
-
9
- /** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
10
- export interface AspectRatio {
11
- width: number
12
- height: number
13
- [k: string]: unknown
14
- }
15
-
16
- export function isAspectRatio(v: unknown): v is AspectRatio {
17
- return (
18
- isObj(v) &&
19
- hasProp(v, '$type') &&
20
- v.$type === 'app.bsky.embed.defs#aspectRatio'
21
- )
22
- }
23
-
24
- export function validateAspectRatio(v: unknown): ValidationResult {
25
- return lexicons.validate('app.bsky.embed.defs#aspectRatio', v)
26
- }
@@ -1,67 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
- import { isObj, hasProp } from '../../../../util'
6
- import { lexicons } from '../../../../lexicons'
7
- import { CID } from 'multiformats/cid'
8
- import * as AppBskyEmbedDefs from './defs'
9
-
10
- export interface Main {
11
- video: BlobRef
12
- captions?: Caption[]
13
- /** Alt text description of the video, for accessibility. */
14
- alt?: string
15
- aspectRatio?: AppBskyEmbedDefs.AspectRatio
16
- [k: string]: unknown
17
- }
18
-
19
- export function isMain(v: unknown): v is Main {
20
- return (
21
- isObj(v) &&
22
- hasProp(v, '$type') &&
23
- (v.$type === 'app.bsky.embed.video#main' ||
24
- v.$type === 'app.bsky.embed.video')
25
- )
26
- }
27
-
28
- export function validateMain(v: unknown): ValidationResult {
29
- return lexicons.validate('app.bsky.embed.video#main', v)
30
- }
31
-
32
- export interface Caption {
33
- lang: string
34
- file: BlobRef
35
- [k: string]: unknown
36
- }
37
-
38
- export function isCaption(v: unknown): v is Caption {
39
- return (
40
- isObj(v) &&
41
- hasProp(v, '$type') &&
42
- v.$type === 'app.bsky.embed.video#caption'
43
- )
44
- }
45
-
46
- export function validateCaption(v: unknown): ValidationResult {
47
- return lexicons.validate('app.bsky.embed.video#caption', v)
48
- }
49
-
50
- export interface View {
51
- cid: string
52
- playlist: string
53
- thumbnail?: string
54
- alt?: string
55
- aspectRatio?: AppBskyEmbedDefs.AspectRatio
56
- [k: string]: unknown
57
- }
58
-
59
- export function isView(v: unknown): v is View {
60
- return (
61
- isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.embed.video#view'
62
- )
63
- }
64
-
65
- export function validateView(v: unknown): ValidationResult {
66
- return lexicons.validate('app.bsky.embed.video#view', v)
67
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
- import { isObj, hasProp } from '../../../../util'
6
- import { lexicons } from '../../../../lexicons'
7
- import { CID } from 'multiformats/cid'
8
-
9
- export interface JobStatus {
10
- jobId: string
11
- did: string
12
- /** The state of the video processing job. All values not listed as a known value indicate that the job is in process. */
13
- state: 'JOB_STATE_COMPLETED' | 'JOB_STATE_FAILED' | (string & {})
14
- /** Progress within the current processing state. */
15
- progress?: number
16
- blob?: BlobRef
17
- error?: string
18
- message?: string
19
- [k: string]: unknown
20
- }
21
-
22
- export function isJobStatus(v: unknown): v is JobStatus {
23
- return (
24
- isObj(v) &&
25
- hasProp(v, '$type') &&
26
- v.$type === 'app.bsky.video.defs#jobStatus'
27
- )
28
- }
29
-
30
- export function validateJobStatus(v: unknown): ValidationResult {
31
- return lexicons.validate('app.bsky.video.defs#jobStatus', v)
32
- }
@@ -1,36 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { isObj, hasProp } from '../../../../util'
7
- import { lexicons } from '../../../../lexicons'
8
- import { CID } from 'multiformats/cid'
9
-
10
- export interface QueryParams {}
11
-
12
- export type InputSchema = undefined
13
-
14
- export interface OutputSchema {
15
- canUpload: boolean
16
- remainingDailyVideos?: number
17
- remainingDailyBytes?: number
18
- message?: string
19
- error?: string
20
- [k: string]: unknown
21
- }
22
-
23
- export interface CallOptions {
24
- signal?: AbortSignal
25
- headers?: HeadersMap
26
- }
27
-
28
- export interface Response {
29
- success: boolean
30
- headers: HeadersMap
31
- data: OutputSchema
32
- }
33
-
34
- export function toKnownErr(e: any) {
35
- return e
36
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { isObj, hasProp } from '../../../../util'
7
- import { lexicons } from '../../../../lexicons'
8
- import { CID } from 'multiformats/cid'
9
- import * as AppBskyVideoDefs from './defs'
10
-
11
- export interface QueryParams {}
12
-
13
- export type InputSchema = string | Uint8Array | Blob
14
-
15
- export interface OutputSchema {
16
- jobStatus: AppBskyVideoDefs.JobStatus
17
- [k: string]: unknown
18
- }
19
-
20
- export interface CallOptions {
21
- signal?: AbortSignal
22
- headers?: HeadersMap
23
- qp?: QueryParams
24
- encoding?: 'video/mp4'
25
- }
26
-
27
- export interface Response {
28
- success: boolean
29
- headers: HeadersMap
30
- data: OutputSchema
31
- }
32
-
33
- export function toKnownErr(e: any) {
34
- return e
35
- }