@atproto/api 0.20.39 → 0.20.41

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 (40) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/client/index.d.ts +43 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +86 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +782 -10
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +454 -5
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/actor/contentVisibilityDeclaration.d.ts +14 -0
  11. package/dist/client/types/app/bsky/actor/contentVisibilityDeclaration.d.ts.map +1 -0
  12. package/dist/client/types/app/bsky/actor/contentVisibilityDeclaration.js +18 -0
  13. package/dist/client/types/app/bsky/actor/contentVisibilityDeclaration.js.map +1 -0
  14. package/dist/client/types/app/bsky/video/abortUpload.d.ts +34 -0
  15. package/dist/client/types/app/bsky/video/abortUpload.d.ts.map +1 -0
  16. package/dist/client/types/app/bsky/video/abortUpload.js +30 -0
  17. package/dist/client/types/app/bsky/video/abortUpload.js.map +1 -0
  18. package/dist/client/types/app/bsky/video/defs.d.ts +1 -1
  19. package/dist/client/types/app/bsky/video/defs.d.ts.map +1 -1
  20. package/dist/client/types/app/bsky/video/defs.js.map +1 -1
  21. package/dist/client/types/app/bsky/video/finishUpload.d.ts +51 -0
  22. package/dist/client/types/app/bsky/video/finishUpload.d.ts.map +1 -0
  23. package/dist/client/types/app/bsky/video/finishUpload.js +72 -0
  24. package/dist/client/types/app/bsky/video/finishUpload.js.map +1 -0
  25. package/dist/client/types/app/bsky/video/getUploadStatus.d.ts +36 -0
  26. package/dist/client/types/app/bsky/video/getUploadStatus.d.ts.map +1 -0
  27. package/dist/client/types/app/bsky/video/getUploadStatus.js +23 -0
  28. package/dist/client/types/app/bsky/video/getUploadStatus.js.map +1 -0
  29. package/dist/client/types/app/bsky/video/startUpload.d.ts +62 -0
  30. package/dist/client/types/app/bsky/video/startUpload.d.ts.map +1 -0
  31. package/dist/client/types/app/bsky/video/startUpload.js +72 -0
  32. package/dist/client/types/app/bsky/video/startUpload.js.map +1 -0
  33. package/dist/client/types/app/bsky/video/uploadPart.d.ts +53 -0
  34. package/dist/client/types/app/bsky/video/uploadPart.d.ts.map +1 -0
  35. package/dist/client/types/app/bsky/video/uploadPart.js +79 -0
  36. package/dist/client/types/app/bsky/video/uploadPart.js.map +1 -0
  37. package/dist/moderation/const/labels.d.ts +1 -1
  38. package/dist/moderation/const/labels.d.ts.map +1 -1
  39. package/dist/moderation/const/labels.js.map +1 -1
  40. package/package.json +3 -3
@@ -0,0 +1,14 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ export interface Main {
6
+ $type: 'app.bsky.actor.contentVisibilityDeclaration';
7
+ /** Whether the account requests that its posts be hidden from algorithmic recommendations. Consumers must treat a missing record as false. */
8
+ hideFromAlgorithmicRecommendations: boolean;
9
+ [k: string]: unknown;
10
+ }
11
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.actor.contentVisibilityDeclaration", "main">;
12
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
13
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
14
+ //# sourceMappingURL=contentVisibilityDeclaration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentVisibilityDeclaration.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/actor/contentVisibilityDeclaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6CAA6C,CAAA;IACpD,8IAA8I;IAC9I,kCAAkC,EAAE,OAAO,CAAA;IAC3C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6GAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { BlobRef } from '@atproto/lexicon';
5
+ import { CID } from 'multiformats/cid';
6
+ import { validate as _validate } from '../../../../lexicons.js';
7
+ import { is$typed as _is$typed, } from '../../../../util.js';
8
+ const is$typed = _is$typed, validate = _validate;
9
+ const id = 'app.bsky.actor.contentVisibilityDeclaration';
10
+ const hashMain = 'main';
11
+ export function isMain(v) {
12
+ return is$typed(v, id, hashMain);
13
+ }
14
+ export function validateMain(v) {
15
+ return validate(v, id, hashMain, true);
16
+ }
17
+ export { isMain as isRecord, validateMain as validateRecord, };
18
+ //# sourceMappingURL=contentVisibilityDeclaration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentVisibilityDeclaration.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/actor/contentVisibilityDeclaration.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;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6CAA6C,CAAA;AASxD,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,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAED,OAAO,EAEL,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA","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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.actor.contentVisibilityDeclaration'\n\nexport interface Main {\n $type: 'app.bsky.actor.contentVisibilityDeclaration'\n /** Whether the account requests that its posts be hidden from algorithmic recommendations. Consumers must treat a missing record as false. */\n hideFromAlgorithmicRecommendations: boolean\n [k: string]: unknown\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, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ jobId: string;
8
+ }
9
+ export interface OutputSchema {
10
+ state: 'aborted' | 'completed' | 'failed' | 'expired' | (string & {});
11
+ /** Present only when state is completed. */
12
+ completedJobId?: string;
13
+ /** Present only when state is failed. */
14
+ failureReason?: string;
15
+ }
16
+ export interface CallOptions {
17
+ signal?: AbortSignal;
18
+ headers?: HeadersMap;
19
+ qp?: QueryParams;
20
+ encoding?: 'application/json';
21
+ }
22
+ export interface Response {
23
+ success: boolean;
24
+ headers: HeadersMap;
25
+ data: OutputSchema;
26
+ }
27
+ export declare class UploadNotFoundError extends XRPCError {
28
+ constructor(src: XRPCError);
29
+ }
30
+ export declare class UploadNotReadyError extends XRPCError {
31
+ constructor(src: XRPCError);
32
+ }
33
+ export declare function toKnownErr(e: any): any;
34
+ //# sourceMappingURL=abortUpload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abortUpload.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/abortUpload.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACrE,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;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,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAOhC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'app.bsky.video.abortUpload';
11
+ export class UploadNotFoundError extends XRPCError {
12
+ constructor(src) {
13
+ super(src.status, src.error, src.message, src.headers, { cause: src });
14
+ }
15
+ }
16
+ export class UploadNotReadyError extends XRPCError {
17
+ constructor(src) {
18
+ super(src.status, src.error, src.message, src.headers, { cause: src });
19
+ }
20
+ }
21
+ export function toKnownErr(e) {
22
+ if (e instanceof XRPCError) {
23
+ if (e.error === 'UploadNotFound')
24
+ return new UploadNotFoundError(e);
25
+ if (e.error === 'UploadNotReady')
26
+ return new UploadNotReadyError(e);
27
+ }
28
+ return e;
29
+ }
30
+ //# sourceMappingURL=abortUpload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abortUpload.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/abortUpload.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,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;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4BAA4B,CAAA;AA6BvC,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;QACnE,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;IACrE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.video.abortUpload'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n jobId: string\n}\n\nexport interface OutputSchema {\n state: 'aborted' | 'completed' | 'failed' | 'expired' | (string & {})\n /** Present only when state is completed. */\n completedJobId?: string\n /** Present only when state is failed. */\n failureReason?: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class UploadNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UploadNotReadyError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'UploadNotFound') return new UploadNotFoundError(e)\n if (e.error === 'UploadNotReady') return new UploadNotReadyError(e)\n }\n\n return e\n}\n"]}
@@ -7,7 +7,7 @@ export interface JobStatus {
7
7
  jobId: string;
8
8
  did: string;
9
9
  /** The state of the video processing job. All values not listed as a known value indicate that the job is in process. */
10
- state: 'JOB_STATE_COMPLETED' | 'JOB_STATE_FAILED' | (string & {});
10
+ state: 'JOB_STATE_CREATED' | 'JOB_STATE_ENCODING' | 'JOB_STATE_ENCODED' | 'JOB_STATE_SCANNING' | 'JOB_STATE_SCANNED' | 'JOB_STATE_UPLOADING' | 'JOB_STATE_UPLOADED' | 'JOB_STATE_COMPLETED' | 'JOB_STATE_FAILED' | (string & {});
11
11
  /** Progress within the current processing state. */
12
12
  progress?: number;
13
13
  blob?: BlobRef;
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,+BAA+B,CAAA;IACvC,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,uEAAuE;IACvE,WAAW,CAAC,EACR,oBAAoB,GACpB,kBAAkB,GAClB,oBAAoB,GACpB,kCAAkC,GAClC,iBAAiB,GACjB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0FAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC"}
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,+BAA+B,CAAA;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,yHAAyH;IACzH,KAAK,EACD,mBAAmB,GACnB,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,mBAAmB,GACnB,qBAAqB,GACrB,oBAAoB,GACpB,qBAAqB,GACrB,kBAAkB,GAClB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uEAAuE;IACvE,WAAW,CAAC,EACR,oBAAoB,GACpB,kBAAkB,GAClB,oBAAoB,GACpB,kCAAkC,GAClC,iBAAiB,GACjB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0FAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC"}
@@ -1 +1 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/defs.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;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qBAAqB,CAAA;AAuBhC,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.video.defs'\n\nexport interface JobStatus {\n $type?: 'app.bsky.video.defs#jobStatus'\n jobId: string\n did: string\n /** The state of the video processing job. All values not listed as a known value indicate that the job is in process. */\n state: 'JOB_STATE_COMPLETED' | 'JOB_STATE_FAILED' | (string & {})\n /** Progress within the current processing state. */\n progress?: number\n blob?: BlobRef\n error?: string\n /** A machine-readable code for why the video processing job failed. */\n failureCode?:\n | 'validation_failure'\n | 'encoding_failure'\n | 'pds_upload_failure'\n | 'pds_upload_unsupported_blob_size'\n | 'generic_failure'\n | (string & {})\n message?: string\n}\n\nconst hashJobStatus = 'jobStatus'\n\nexport function isJobStatus<V>(v: V) {\n return is$typed(v, id, hashJobStatus)\n}\n\nexport function validateJobStatus<V>(v: V) {\n return validate<JobStatus & V>(v, id, hashJobStatus)\n}\n"]}
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/defs.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;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qBAAqB,CAAA;AAiChC,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.video.defs'\n\nexport interface JobStatus {\n $type?: 'app.bsky.video.defs#jobStatus'\n jobId: string\n did: string\n /** The state of the video processing job. All values not listed as a known value indicate that the job is in process. */\n state:\n | 'JOB_STATE_CREATED'\n | 'JOB_STATE_ENCODING'\n | 'JOB_STATE_ENCODED'\n | 'JOB_STATE_SCANNING'\n | 'JOB_STATE_SCANNED'\n | 'JOB_STATE_UPLOADING'\n | 'JOB_STATE_UPLOADED'\n | 'JOB_STATE_COMPLETED'\n | 'JOB_STATE_FAILED'\n | (string & {})\n /** Progress within the current processing state. */\n progress?: number\n blob?: BlobRef\n error?: string\n /** A machine-readable code for why the video processing job failed. */\n failureCode?:\n | 'validation_failure'\n | 'encoding_failure'\n | 'pds_upload_failure'\n | 'pds_upload_unsupported_blob_size'\n | 'generic_failure'\n | (string & {})\n message?: string\n}\n\nconst hashJobStatus = 'jobStatus'\n\nexport function isJobStatus<V>(v: V) {\n return is$typed(v, id, hashJobStatus)\n}\n\nexport function validateJobStatus<V>(v: V) {\n return validate<JobStatus & V>(v, id, hashJobStatus)\n}\n"]}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as AppBskyVideoDefs from './defs.js';
6
+ export type QueryParams = {};
7
+ export interface InputSchema {
8
+ jobId: string;
9
+ }
10
+ export interface OutputSchema {
11
+ /** The processing job to poll with getJobStatus; on deduplication this may differ from the input jobId. */
12
+ completedJobId: string;
13
+ jobStatus: AppBskyVideoDefs.JobStatus;
14
+ }
15
+ export interface CallOptions {
16
+ signal?: AbortSignal;
17
+ headers?: HeadersMap;
18
+ qp?: QueryParams;
19
+ encoding?: 'application/json';
20
+ }
21
+ export interface Response {
22
+ success: boolean;
23
+ headers: HeadersMap;
24
+ data: OutputSchema;
25
+ }
26
+ export declare class UploadNotFoundError extends XRPCError {
27
+ constructor(src: XRPCError);
28
+ }
29
+ export declare class UploadExpiredError extends XRPCError {
30
+ constructor(src: XRPCError);
31
+ }
32
+ export declare class MissingPartsError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare class UploadNotReadyError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare class UnsupportedContentTypeError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
41
+ export declare class UploadFailedError extends XRPCError {
42
+ constructor(src: XRPCError);
43
+ }
44
+ export declare class UploadAbortedError extends XRPCError {
45
+ constructor(src: XRPCError);
46
+ }
47
+ export declare class ServiceOverloadedError extends XRPCError {
48
+ constructor(src: XRPCError);
49
+ }
50
+ export declare function toKnownErr(e: any): any;
51
+ //# sourceMappingURL=finishUpload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finishUpload.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/finishUpload.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,2GAA2G;IAC3G,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,gBAAgB,CAAC,SAAS,CAAA;CACtC;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,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,2BAA4B,SAAQ,SAAS;IACxD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,sBAAuB,SAAQ,SAAS;IACnD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAchC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'app.bsky.video.finishUpload';
11
+ export class UploadNotFoundError extends XRPCError {
12
+ constructor(src) {
13
+ super(src.status, src.error, src.message, src.headers, { cause: src });
14
+ }
15
+ }
16
+ export class UploadExpiredError extends XRPCError {
17
+ constructor(src) {
18
+ super(src.status, src.error, src.message, src.headers, { cause: src });
19
+ }
20
+ }
21
+ export class MissingPartsError extends XRPCError {
22
+ constructor(src) {
23
+ super(src.status, src.error, src.message, src.headers, { cause: src });
24
+ }
25
+ }
26
+ export class UploadNotReadyError extends XRPCError {
27
+ constructor(src) {
28
+ super(src.status, src.error, src.message, src.headers, { cause: src });
29
+ }
30
+ }
31
+ export class UnsupportedContentTypeError extends XRPCError {
32
+ constructor(src) {
33
+ super(src.status, src.error, src.message, src.headers, { cause: src });
34
+ }
35
+ }
36
+ export class UploadFailedError extends XRPCError {
37
+ constructor(src) {
38
+ super(src.status, src.error, src.message, src.headers, { cause: src });
39
+ }
40
+ }
41
+ export class UploadAbortedError extends XRPCError {
42
+ constructor(src) {
43
+ super(src.status, src.error, src.message, src.headers, { cause: src });
44
+ }
45
+ }
46
+ export class ServiceOverloadedError extends XRPCError {
47
+ constructor(src) {
48
+ super(src.status, src.error, src.message, src.headers, { cause: src });
49
+ }
50
+ }
51
+ export function toKnownErr(e) {
52
+ if (e instanceof XRPCError) {
53
+ if (e.error === 'UploadNotFound')
54
+ return new UploadNotFoundError(e);
55
+ if (e.error === 'UploadExpired')
56
+ return new UploadExpiredError(e);
57
+ if (e.error === 'MissingParts')
58
+ return new MissingPartsError(e);
59
+ if (e.error === 'UploadNotReady')
60
+ return new UploadNotReadyError(e);
61
+ if (e.error === 'UnsupportedContentType')
62
+ return new UnsupportedContentTypeError(e);
63
+ if (e.error === 'UploadFailed')
64
+ return new UploadFailedError(e);
65
+ if (e.error === 'UploadAborted')
66
+ return new UploadAbortedError(e);
67
+ if (e.error === 'ServiceOverloaded')
68
+ return new ServiceOverloadedError(e);
69
+ }
70
+ return e;
71
+ }
72
+ //# sourceMappingURL=finishUpload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finishUpload.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/finishUpload.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,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,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;QACnE,IAAI,CAAC,CAAC,KAAK,KAAK,wBAAwB;YACtC,OAAO,IAAI,2BAA2B,CAAC,CAAC,CAAC,CAAA;QAC3C,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\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 AppBskyVideoDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.video.finishUpload'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n jobId: string\n}\n\nexport interface OutputSchema {\n /** The processing job to poll with getJobStatus; on deduplication this may differ from the input jobId. */\n completedJobId: string\n jobStatus: AppBskyVideoDefs.JobStatus\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class UploadNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UploadExpiredError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class MissingPartsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UploadNotReadyError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UnsupportedContentTypeError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UploadFailedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UploadAbortedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class ServiceOverloadedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'UploadNotFound') return new UploadNotFoundError(e)\n if (e.error === 'UploadExpired') return new UploadExpiredError(e)\n if (e.error === 'MissingParts') return new MissingPartsError(e)\n if (e.error === 'UploadNotReady') return new UploadNotReadyError(e)\n if (e.error === 'UnsupportedContentType')\n return new UnsupportedContentTypeError(e)\n if (e.error === 'UploadFailed') return new UploadFailedError(e)\n if (e.error === 'UploadAborted') return new UploadAbortedError(e)\n if (e.error === 'ServiceOverloaded') return new ServiceOverloadedError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as AppBskyVideoDefs from './defs.js';
6
+ export type QueryParams = {
7
+ jobId: string;
8
+ };
9
+ export type InputSchema = undefined;
10
+ export interface OutputSchema {
11
+ jobId: string;
12
+ partSizeBytes: number;
13
+ partCount: number;
14
+ receivedParts: number[];
15
+ expiresAt: string;
16
+ state: 'created' | 'finishing' | 'completed' | 'failed' | 'aborted' | 'expired' | (string & {});
17
+ /** Present only when state is completed; may differ from jobId on deduplication. */
18
+ completedJobId?: string;
19
+ jobStatus?: AppBskyVideoDefs.JobStatus;
20
+ /** Present only when state is failed. */
21
+ failureReason?: string;
22
+ }
23
+ export interface CallOptions {
24
+ signal?: AbortSignal;
25
+ headers?: HeadersMap;
26
+ }
27
+ export interface Response {
28
+ success: boolean;
29
+ headers: HeadersMap;
30
+ data: OutputSchema;
31
+ }
32
+ export declare class UploadNotFoundError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare function toKnownErr(e: any): any;
36
+ //# sourceMappingURL=getUploadStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUploadStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/getUploadStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EACD,SAAS,GACT,WAAW,GACX,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAA;IACtC,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;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,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'app.bsky.video.getUploadStatus';
11
+ export class UploadNotFoundError extends XRPCError {
12
+ constructor(src) {
13
+ super(src.status, src.error, src.message, src.headers, { cause: src });
14
+ }
15
+ }
16
+ export function toKnownErr(e) {
17
+ if (e instanceof XRPCError) {
18
+ if (e.error === 'UploadNotFound')
19
+ return new UploadNotFoundError(e);
20
+ }
21
+ return e;
22
+ }
23
+ //# sourceMappingURL=getUploadStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUploadStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/getUploadStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,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;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,gCAAgC,CAAA;AAuC3C,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;IACrE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\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 AppBskyVideoDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.video.getUploadStatus'\n\nexport type QueryParams = {\n jobId: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n jobId: string\n partSizeBytes: number\n partCount: number\n receivedParts: number[]\n expiresAt: string\n state:\n | 'created'\n | 'finishing'\n | 'completed'\n | 'failed'\n | 'aborted'\n | 'expired'\n | (string & {})\n /** Present only when state is completed; may differ from jobId on deduplication. */\n completedJobId?: string\n jobStatus?: AppBskyVideoDefs.JobStatus\n /** Present only when state is failed. */\n failureReason?: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class UploadNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'UploadNotFound') return new UploadNotFoundError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ /** Exact byte size of the complete upload-ready video file before it is split into parts. */
8
+ sizeBytes: number;
9
+ /** Declared MIME type of the video. */
10
+ mimeType: string;
11
+ /** Optional client-provided file name. */
12
+ name?: string;
13
+ /** Advisory, non-authoritative duration used only for early failure; the authoritative probe runs asynchronously after upload. */
14
+ durationMs?: number;
15
+ /** Advisory, non-authoritative width used only for early failure; the authoritative probe runs asynchronously after upload. */
16
+ width?: number;
17
+ /** Advisory, non-authoritative height used only for early failure; the authoritative probe runs asynchronously after upload. */
18
+ height?: number;
19
+ }
20
+ export interface OutputSchema {
21
+ jobId: string;
22
+ partSizeBytes: number;
23
+ partCount: number;
24
+ expiresAt: string;
25
+ }
26
+ export interface CallOptions {
27
+ signal?: AbortSignal;
28
+ headers?: HeadersMap;
29
+ qp?: QueryParams;
30
+ encoding?: 'application/json';
31
+ }
32
+ export interface Response {
33
+ success: boolean;
34
+ headers: HeadersMap;
35
+ data: OutputSchema;
36
+ }
37
+ export declare class UnsupportedContentTypeError extends XRPCError {
38
+ constructor(src: XRPCError);
39
+ }
40
+ export declare class VideoTooLargeError extends XRPCError {
41
+ constructor(src: XRPCError);
42
+ }
43
+ export declare class VideoTooLongError extends XRPCError {
44
+ constructor(src: XRPCError);
45
+ }
46
+ export declare class BadAspectRatioError extends XRPCError {
47
+ constructor(src: XRPCError);
48
+ }
49
+ export declare class DailyLimitExceededError extends XRPCError {
50
+ constructor(src: XRPCError);
51
+ }
52
+ export declare class TooManyOpenUploadsError extends XRPCError {
53
+ constructor(src: XRPCError);
54
+ }
55
+ export declare class UploadForbiddenError extends XRPCError {
56
+ constructor(src: XRPCError);
57
+ }
58
+ export declare class ServiceOverloadedError extends XRPCError {
59
+ constructor(src: XRPCError);
60
+ }
61
+ export declare function toKnownErr(e: any): any;
62
+ //# sourceMappingURL=startUpload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startUpload.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/startUpload.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,6FAA6F;IAC7F,SAAS,EAAE,MAAM,CAAA;IACjB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kIAAkI;IAClI,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+HAA+H;IAC/H,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gIAAgI;IAChI,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;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,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,2BAA4B,SAAQ,SAAS;IACxD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,uBAAwB,SAAQ,SAAS;IACpD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,uBAAwB,SAAQ,SAAS;IACpD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,sBAAuB,SAAQ,SAAS;IACnD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAchC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'app.bsky.video.startUpload';
11
+ export class UnsupportedContentTypeError extends XRPCError {
12
+ constructor(src) {
13
+ super(src.status, src.error, src.message, src.headers, { cause: src });
14
+ }
15
+ }
16
+ export class VideoTooLargeError extends XRPCError {
17
+ constructor(src) {
18
+ super(src.status, src.error, src.message, src.headers, { cause: src });
19
+ }
20
+ }
21
+ export class VideoTooLongError extends XRPCError {
22
+ constructor(src) {
23
+ super(src.status, src.error, src.message, src.headers, { cause: src });
24
+ }
25
+ }
26
+ export class BadAspectRatioError extends XRPCError {
27
+ constructor(src) {
28
+ super(src.status, src.error, src.message, src.headers, { cause: src });
29
+ }
30
+ }
31
+ export class DailyLimitExceededError extends XRPCError {
32
+ constructor(src) {
33
+ super(src.status, src.error, src.message, src.headers, { cause: src });
34
+ }
35
+ }
36
+ export class TooManyOpenUploadsError extends XRPCError {
37
+ constructor(src) {
38
+ super(src.status, src.error, src.message, src.headers, { cause: src });
39
+ }
40
+ }
41
+ export class UploadForbiddenError extends XRPCError {
42
+ constructor(src) {
43
+ super(src.status, src.error, src.message, src.headers, { cause: src });
44
+ }
45
+ }
46
+ export class ServiceOverloadedError extends XRPCError {
47
+ constructor(src) {
48
+ super(src.status, src.error, src.message, src.headers, { cause: src });
49
+ }
50
+ }
51
+ export function toKnownErr(e) {
52
+ if (e instanceof XRPCError) {
53
+ if (e.error === 'UnsupportedContentType')
54
+ return new UnsupportedContentTypeError(e);
55
+ if (e.error === 'VideoTooLarge')
56
+ return new VideoTooLargeError(e);
57
+ if (e.error === 'VideoTooLong')
58
+ return new VideoTooLongError(e);
59
+ if (e.error === 'BadAspectRatio')
60
+ return new BadAspectRatioError(e);
61
+ if (e.error === 'DailyLimitExceeded')
62
+ return new DailyLimitExceededError(e);
63
+ if (e.error === 'TooManyOpenUploads')
64
+ return new TooManyOpenUploadsError(e);
65
+ if (e.error === 'UploadForbidden')
66
+ return new UploadForbiddenError(e);
67
+ if (e.error === 'ServiceOverloaded')
68
+ return new ServiceOverloadedError(e);
69
+ }
70
+ return e;
71
+ }
72
+ //# sourceMappingURL=startUpload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startUpload.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/startUpload.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,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;QACnE,IAAI,CAAC,CAAC,KAAK,KAAK,oBAAoB;YAAE,OAAO,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAA;QAC3E,IAAI,CAAC,CAAC,KAAK,KAAK,oBAAoB;YAAE,OAAO,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAA;QAC3E,IAAI,CAAC,CAAC,KAAK,KAAK,iBAAiB;YAAE,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;QACrE,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.video.startUpload'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** Exact byte size of the complete upload-ready video file before it is split into parts. */\n sizeBytes: number\n /** Declared MIME type of the video. */\n mimeType: string\n /** Optional client-provided file name. */\n name?: string\n /** Advisory, non-authoritative duration used only for early failure; the authoritative probe runs asynchronously after upload. */\n durationMs?: number\n /** Advisory, non-authoritative width used only for early failure; the authoritative probe runs asynchronously after upload. */\n width?: number\n /** Advisory, non-authoritative height used only for early failure; the authoritative probe runs asynchronously after upload. */\n height?: number\n}\n\nexport interface OutputSchema {\n jobId: string\n partSizeBytes: number\n partCount: number\n expiresAt: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class UnsupportedContentTypeError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class VideoTooLargeError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class VideoTooLongError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BadAspectRatioError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class DailyLimitExceededError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class TooManyOpenUploadsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UploadForbiddenError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class ServiceOverloadedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'UnsupportedContentType')\n return new UnsupportedContentTypeError(e)\n if (e.error === 'VideoTooLarge') return new VideoTooLargeError(e)\n if (e.error === 'VideoTooLong') return new VideoTooLongError(e)\n if (e.error === 'BadAspectRatio') return new BadAspectRatioError(e)\n if (e.error === 'DailyLimitExceeded') return new DailyLimitExceededError(e)\n if (e.error === 'TooManyOpenUploads') return new TooManyOpenUploadsError(e)\n if (e.error === 'UploadForbidden') return new UploadForbiddenError(e)\n if (e.error === 'ServiceOverloaded') return new ServiceOverloadedError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {
6
+ jobId: string;
7
+ partNumber: number;
8
+ };
9
+ export type InputSchema = string | Uint8Array | Blob;
10
+ export interface OutputSchema {
11
+ partNumber: number;
12
+ sizeBytes: number;
13
+ }
14
+ export interface CallOptions {
15
+ signal?: AbortSignal;
16
+ headers?: HeadersMap;
17
+ qp?: QueryParams;
18
+ encoding?: 'application/octet-stream';
19
+ }
20
+ export interface Response {
21
+ success: boolean;
22
+ headers: HeadersMap;
23
+ data: OutputSchema;
24
+ }
25
+ export declare class UploadNotFoundError extends XRPCError {
26
+ constructor(src: XRPCError);
27
+ }
28
+ export declare class UploadExpiredError extends XRPCError {
29
+ constructor(src: XRPCError);
30
+ }
31
+ export declare class InvalidPartNumberError extends XRPCError {
32
+ constructor(src: XRPCError);
33
+ }
34
+ export declare class PartSizeMismatchError extends XRPCError {
35
+ constructor(src: XRPCError);
36
+ }
37
+ export declare class UploadNotReadyError extends XRPCError {
38
+ constructor(src: XRPCError);
39
+ }
40
+ export declare class UploadFailedError extends XRPCError {
41
+ constructor(src: XRPCError);
42
+ }
43
+ export declare class UploadAbortedError extends XRPCError {
44
+ constructor(src: XRPCError);
45
+ }
46
+ export declare class UploadAlreadyCompletedError extends XRPCError {
47
+ constructor(src: XRPCError);
48
+ }
49
+ export declare class ServiceOverloadedError extends XRPCError {
50
+ constructor(src: XRPCError);
51
+ }
52
+ export declare function toKnownErr(e: any): any;
53
+ //# sourceMappingURL=uploadPart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadPart.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/video/uploadPart.ts"],"names":[],"mappings":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