@atproto/api 0.32.10 → 0.32.11
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.
- package/CHANGELOG.md +11 -0
- package/dist/client/index.d.ts +177 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +373 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +8583 -4697
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +2135 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/com/atproto/managedspace/checkAccess.d.ts +26 -0
- package/dist/client/types/com/atproto/managedspace/checkAccess.d.ts.map +1 -0
- package/dist/client/types/com/atproto/managedspace/checkAccess.js +14 -0
- package/dist/client/types/com/atproto/managedspace/checkAccess.js.map +1 -0
- package/dist/client/types/com/atproto/managedspace/policy.d.ts +15 -0
- package/dist/client/types/com/atproto/managedspace/policy.d.ts.map +1 -0
- package/dist/client/types/com/atproto/managedspace/policy.js +17 -0
- package/dist/client/types/com/atproto/managedspace/policy.js.map +1 -0
- package/dist/client/types/com/atproto/memberspace/defs.d.ts +13 -0
- package/dist/client/types/com/atproto/memberspace/defs.d.ts.map +1 -0
- package/dist/client/types/com/atproto/memberspace/defs.js +17 -0
- package/dist/client/types/com/atproto/memberspace/defs.js.map +1 -0
- package/dist/client/types/com/atproto/memberspace/listMembers.d.ts +38 -0
- package/dist/client/types/com/atproto/memberspace/listMembers.d.ts.map +1 -0
- package/dist/client/types/com/atproto/memberspace/listMembers.js +44 -0
- package/dist/client/types/com/atproto/memberspace/listMembers.js.map +1 -0
- package/dist/client/types/com/atproto/memberspace/member.d.ts +14 -0
- package/dist/client/types/com/atproto/memberspace/member.d.ts.map +1 -0
- package/dist/client/types/com/atproto/memberspace/member.js +18 -0
- package/dist/client/types/com/atproto/memberspace/member.js.map +1 -0
- package/dist/client/types/com/atproto/memberspace/policy.d.ts +21 -0
- package/dist/client/types/com/atproto/memberspace/policy.d.ts.map +1 -0
- package/dist/client/types/com/atproto/memberspace/policy.js +17 -0
- package/dist/client/types/com/atproto/memberspace/policy.js.map +1 -0
- package/dist/client/types/com/atproto/memberspace/putMembers.d.ts +31 -0
- package/dist/client/types/com/atproto/memberspace/putMembers.d.ts.map +1 -0
- package/dist/client/types/com/atproto/memberspace/putMembers.js +37 -0
- package/dist/client/types/com/atproto/memberspace/putMembers.js.map +1 -0
- package/dist/client/types/com/atproto/memberspace/removeMembers.d.ts +30 -0
- package/dist/client/types/com/atproto/memberspace/removeMembers.d.ts.map +1 -0
- package/dist/client/types/com/atproto/memberspace/removeMembers.js +37 -0
- package/dist/client/types/com/atproto/memberspace/removeMembers.js.map +1 -0
- package/dist/client/types/com/atproto/personalspace/policy.d.ts +11 -0
- package/dist/client/types/com/atproto/personalspace/policy.d.ts.map +1 -0
- package/dist/client/types/com/atproto/personalspace/policy.js +17 -0
- package/dist/client/types/com/atproto/personalspace/policy.js.map +1 -0
- package/dist/client/types/com/atproto/space/applyWrites.d.ts +90 -0
- package/dist/client/types/com/atproto/space/applyWrites.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/applyWrites.js +79 -0
- package/dist/client/types/com/atproto/space/applyWrites.js.map +1 -0
- package/dist/client/types/com/atproto/space/authorizeSpaceSync.d.ts +72 -0
- package/dist/client/types/com/atproto/space/authorizeSpaceSync.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/authorizeSpaceSync.js +93 -0
- package/dist/client/types/com/atproto/space/authorizeSpaceSync.js.map +1 -0
- package/dist/client/types/com/atproto/space/clearRecords.d.ts +24 -0
- package/dist/client/types/com/atproto/space/clearRecords.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/clearRecords.js +14 -0
- package/dist/client/types/com/atproto/space/clearRecords.js.map +1 -0
- package/dist/client/types/com/atproto/space/confirmRegistration.d.ts +26 -0
- package/dist/client/types/com/atproto/space/confirmRegistration.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/confirmRegistration.js +14 -0
- package/dist/client/types/com/atproto/space/confirmRegistration.js.map +1 -0
- package/dist/client/types/com/atproto/space/createRecord.d.ts +41 -0
- package/dist/client/types/com/atproto/space/createRecord.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/createRecord.js +30 -0
- package/dist/client/types/com/atproto/space/createRecord.js.map +1 -0
- package/dist/client/types/com/atproto/space/createSpace.d.ts +39 -0
- package/dist/client/types/com/atproto/space/createSpace.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/createSpace.js +30 -0
- package/dist/client/types/com/atproto/space/createSpace.js.map +1 -0
- package/dist/client/types/com/atproto/space/defs.d.ts +43 -0
- package/dist/client/types/com/atproto/space/defs.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/defs.js +31 -0
- package/dist/client/types/com/atproto/space/defs.js.map +1 -0
- package/dist/client/types/com/atproto/space/deleteRecord.d.ts +29 -0
- package/dist/client/types/com/atproto/space/deleteRecord.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/deleteRecord.js +23 -0
- package/dist/client/types/com/atproto/space/deleteRecord.js.map +1 -0
- package/dist/client/types/com/atproto/space/deleteSpace.d.ts +26 -0
- package/dist/client/types/com/atproto/space/deleteSpace.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/deleteSpace.js +30 -0
- package/dist/client/types/com/atproto/space/deleteSpace.js.map +1 -0
- package/dist/client/types/com/atproto/space/exportSpaceMeta.d.ts +25 -0
- package/dist/client/types/com/atproto/space/exportSpaceMeta.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/exportSpaceMeta.js +30 -0
- package/dist/client/types/com/atproto/space/exportSpaceMeta.js.map +1 -0
- package/dist/client/types/com/atproto/space/getBlob.d.ts +39 -0
- package/dist/client/types/com/atproto/space/getBlob.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/getBlob.js +58 -0
- package/dist/client/types/com/atproto/space/getBlob.js.map +1 -0
- package/dist/client/types/com/atproto/space/getDelegationToken.d.ts +22 -0
- package/dist/client/types/com/atproto/space/getDelegationToken.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/getDelegationToken.js +14 -0
- package/dist/client/types/com/atproto/space/getDelegationToken.js.map +1 -0
- package/dist/client/types/com/atproto/space/getLatestCommit.d.ts +42 -0
- package/dist/client/types/com/atproto/space/getLatestCommit.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/getLatestCommit.js +58 -0
- package/dist/client/types/com/atproto/space/getLatestCommit.js.map +1 -0
- package/dist/client/types/com/atproto/space/getRecord.d.ts +50 -0
- package/dist/client/types/com/atproto/space/getRecord.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/getRecord.js +65 -0
- package/dist/client/types/com/atproto/space/getRecord.js.map +1 -0
- package/dist/client/types/com/atproto/space/getRepo.d.ts +38 -0
- package/dist/client/types/com/atproto/space/getRepo.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/getRepo.js +58 -0
- package/dist/client/types/com/atproto/space/getRepo.js.map +1 -0
- package/dist/client/types/com/atproto/space/getSpace.d.ts +35 -0
- package/dist/client/types/com/atproto/space/getSpace.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/getSpace.js +30 -0
- package/dist/client/types/com/atproto/space/getSpace.js.map +1 -0
- package/dist/client/types/com/atproto/space/importRepo.d.ts +27 -0
- package/dist/client/types/com/atproto/space/importRepo.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/importRepo.js +37 -0
- package/dist/client/types/com/atproto/space/importRepo.js.map +1 -0
- package/dist/client/types/com/atproto/space/importSpaceMeta.d.ts +27 -0
- package/dist/client/types/com/atproto/space/importSpaceMeta.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/importSpaceMeta.js +37 -0
- package/dist/client/types/com/atproto/space/importSpaceMeta.js.map +1 -0
- package/dist/client/types/com/atproto/space/listBlobs.d.ts +41 -0
- package/dist/client/types/com/atproto/space/listBlobs.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/listBlobs.js +51 -0
- package/dist/client/types/com/atproto/space/listBlobs.js.map +1 -0
- package/dist/client/types/com/atproto/space/listRecords.d.ts +59 -0
- package/dist/client/types/com/atproto/space/listRecords.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/listRecords.js +65 -0
- package/dist/client/types/com/atproto/space/listRecords.js.map +1 -0
- package/dist/client/types/com/atproto/space/listRepoOps.d.ts +69 -0
- package/dist/client/types/com/atproto/space/listRepoOps.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/listRepoOps.js +72 -0
- package/dist/client/types/com/atproto/space/listRepoOps.js.map +1 -0
- package/dist/client/types/com/atproto/space/listSpaces.d.ts +43 -0
- package/dist/client/types/com/atproto/space/listSpaces.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/listSpaces.js +30 -0
- package/dist/client/types/com/atproto/space/listSpaces.js.map +1 -0
- package/dist/client/types/com/atproto/space/listWriters.d.ts +40 -0
- package/dist/client/types/com/atproto/space/listWriters.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/listWriters.js +37 -0
- package/dist/client/types/com/atproto/space/listWriters.js.map +1 -0
- package/dist/client/types/com/atproto/space/notifyCredentialsRevoked.d.ts +22 -0
- package/dist/client/types/com/atproto/space/notifyCredentialsRevoked.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/notifyCredentialsRevoked.js +14 -0
- package/dist/client/types/com/atproto/space/notifyCredentialsRevoked.js.map +1 -0
- package/dist/client/types/com/atproto/space/notifyRepoUpdate.d.ts +30 -0
- package/dist/client/types/com/atproto/space/notifyRepoUpdate.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/notifyRepoUpdate.js +30 -0
- package/dist/client/types/com/atproto/space/notifyRepoUpdate.js.map +1 -0
- package/dist/client/types/com/atproto/space/notifySpaceUpdate.d.ts +41 -0
- package/dist/client/types/com/atproto/space/notifySpaceUpdate.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/notifySpaceUpdate.js +28 -0
- package/dist/client/types/com/atproto/space/notifySpaceUpdate.js.map +1 -0
- package/dist/client/types/com/atproto/space/policy.d.ts +19 -0
- package/dist/client/types/com/atproto/space/policy.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/policy.js +18 -0
- package/dist/client/types/com/atproto/space/policy.js.map +1 -0
- package/dist/client/types/com/atproto/space/putRecord.d.ts +37 -0
- package/dist/client/types/com/atproto/space/putRecord.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/putRecord.js +23 -0
- package/dist/client/types/com/atproto/space/putRecord.js.map +1 -0
- package/dist/client/types/com/atproto/space/removeWriter.d.ts +27 -0
- package/dist/client/types/com/atproto/space/removeWriter.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/removeWriter.js +30 -0
- package/dist/client/types/com/atproto/space/removeWriter.js.map +1 -0
- package/dist/client/types/com/atproto/space/updateSpace.d.ts +36 -0
- package/dist/client/types/com/atproto/space/updateSpace.d.ts.map +1 -0
- package/dist/client/types/com/atproto/space/updateSpace.js +37 -0
- package/dist/client/types/com/atproto/space/updateSpace.js.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
space: string;
|
|
8
|
+
repo: string;
|
|
9
|
+
/** If omitted, lists records across all collections. */
|
|
10
|
+
collection?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
cursor?: string;
|
|
13
|
+
excludeValues?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type InputSchema = undefined;
|
|
16
|
+
export interface OutputSchema {
|
|
17
|
+
cursor?: string;
|
|
18
|
+
records: Record[];
|
|
19
|
+
}
|
|
20
|
+
export interface CallOptions {
|
|
21
|
+
signal?: AbortSignal;
|
|
22
|
+
headers?: HeadersMap;
|
|
23
|
+
}
|
|
24
|
+
export interface Response {
|
|
25
|
+
success: boolean;
|
|
26
|
+
headers: HeadersMap;
|
|
27
|
+
data: OutputSchema;
|
|
28
|
+
}
|
|
29
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
30
|
+
constructor(src: XRPCError);
|
|
31
|
+
}
|
|
32
|
+
export declare class RepoNotFoundError extends XRPCError {
|
|
33
|
+
constructor(src: XRPCError);
|
|
34
|
+
}
|
|
35
|
+
export declare class RepoTakendownError extends XRPCError {
|
|
36
|
+
constructor(src: XRPCError);
|
|
37
|
+
}
|
|
38
|
+
export declare class RepoSuspendedError extends XRPCError {
|
|
39
|
+
constructor(src: XRPCError);
|
|
40
|
+
}
|
|
41
|
+
export declare class RepoDeactivatedError extends XRPCError {
|
|
42
|
+
constructor(src: XRPCError);
|
|
43
|
+
}
|
|
44
|
+
export declare class InvalidCursorError extends XRPCError {
|
|
45
|
+
constructor(src: XRPCError);
|
|
46
|
+
}
|
|
47
|
+
export declare function toKnownErr(e: any): any;
|
|
48
|
+
export interface Record {
|
|
49
|
+
$type?: 'com.atproto.space.listRecords#record';
|
|
50
|
+
collection: string;
|
|
51
|
+
rkey: string;
|
|
52
|
+
cid: string;
|
|
53
|
+
value?: {
|
|
54
|
+
[_ in string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export declare function isRecord<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.listRecords", "record">;
|
|
58
|
+
export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
|
|
59
|
+
//# sourceMappingURL=listRecords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listRecords.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/listRecords.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,MAA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AAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;CACnC;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iGAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 = 'com.atproto.space.listRecords';
|
|
11
|
+
export class SpaceNotFoundError extends XRPCError {
|
|
12
|
+
constructor(src) {
|
|
13
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class RepoNotFoundError extends XRPCError {
|
|
17
|
+
constructor(src) {
|
|
18
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export class RepoTakendownError extends XRPCError {
|
|
22
|
+
constructor(src) {
|
|
23
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class RepoSuspendedError extends XRPCError {
|
|
27
|
+
constructor(src) {
|
|
28
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export class RepoDeactivatedError extends XRPCError {
|
|
32
|
+
constructor(src) {
|
|
33
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export class InvalidCursorError extends XRPCError {
|
|
37
|
+
constructor(src) {
|
|
38
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export function toKnownErr(e) {
|
|
42
|
+
if (e instanceof XRPCError) {
|
|
43
|
+
if (e.error === 'SpaceNotFound')
|
|
44
|
+
return new SpaceNotFoundError(e);
|
|
45
|
+
if (e.error === 'RepoNotFound')
|
|
46
|
+
return new RepoNotFoundError(e);
|
|
47
|
+
if (e.error === 'RepoTakendown')
|
|
48
|
+
return new RepoTakendownError(e);
|
|
49
|
+
if (e.error === 'RepoSuspended')
|
|
50
|
+
return new RepoSuspendedError(e);
|
|
51
|
+
if (e.error === 'RepoDeactivated')
|
|
52
|
+
return new RepoDeactivatedError(e);
|
|
53
|
+
if (e.error === 'InvalidCursor')
|
|
54
|
+
return new InvalidCursorError(e);
|
|
55
|
+
}
|
|
56
|
+
return e;
|
|
57
|
+
}
|
|
58
|
+
const hashRecord = 'record';
|
|
59
|
+
export function isRecord(v) {
|
|
60
|
+
return is$typed(v, id, hashRecord);
|
|
61
|
+
}
|
|
62
|
+
export function validateRecord(v) {
|
|
63
|
+
return validate(v, id, hashRecord);
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=listRecords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listRecords.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/listRecords.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,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C","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 = 'com.atproto.space.listRecords'\n\nexport type QueryParams = {\n space: string\n repo: string\n /** If omitted, lists records across all collections. */\n collection?: string\n limit?: number\n cursor?: string\n excludeValues?: boolean\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n records: Record[]\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 SpaceNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoTakendownError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoDeactivatedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidCursorError 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 === 'SpaceNotFound') return new SpaceNotFoundError(e)\n if (e.error === 'RepoNotFound') return new RepoNotFoundError(e)\n if (e.error === 'RepoTakendown') return new RepoTakendownError(e)\n if (e.error === 'RepoSuspended') return new RepoSuspendedError(e)\n if (e.error === 'RepoDeactivated') return new RepoDeactivatedError(e)\n if (e.error === 'InvalidCursor') return new InvalidCursorError(e)\n }\n\n return e\n}\n\nexport interface Record {\n $type?: 'com.atproto.space.listRecords#record'\n collection: string\n rkey: string\n cid: string\n value?: { [_ in string]: unknown }\n}\n\nconst hashRecord = 'record'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord)\n}\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import type * as ComAtprotoSpaceDefs from './defs.js';
|
|
7
|
+
export type QueryParams = {
|
|
8
|
+
space: string;
|
|
9
|
+
repo: string;
|
|
10
|
+
since?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
cursor?: string;
|
|
13
|
+
excludeValues?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type InputSchema = undefined;
|
|
16
|
+
export interface OutputSchema {
|
|
17
|
+
ops: OpEntry[];
|
|
18
|
+
commit: ComAtprotoSpaceDefs.Commit;
|
|
19
|
+
cursor?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CallOptions {
|
|
22
|
+
signal?: AbortSignal;
|
|
23
|
+
headers?: HeadersMap;
|
|
24
|
+
}
|
|
25
|
+
export interface Response {
|
|
26
|
+
success: boolean;
|
|
27
|
+
headers: HeadersMap;
|
|
28
|
+
data: OutputSchema;
|
|
29
|
+
}
|
|
30
|
+
export declare class InvalidSpaceMacError extends XRPCError {
|
|
31
|
+
constructor(src: XRPCError);
|
|
32
|
+
}
|
|
33
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
34
|
+
constructor(src: XRPCError);
|
|
35
|
+
}
|
|
36
|
+
export declare class RepoNotFoundError extends XRPCError {
|
|
37
|
+
constructor(src: XRPCError);
|
|
38
|
+
}
|
|
39
|
+
export declare class RepoTakendownError extends XRPCError {
|
|
40
|
+
constructor(src: XRPCError);
|
|
41
|
+
}
|
|
42
|
+
export declare class RepoSuspendedError extends XRPCError {
|
|
43
|
+
constructor(src: XRPCError);
|
|
44
|
+
}
|
|
45
|
+
export declare class RepoDeactivatedError extends XRPCError {
|
|
46
|
+
constructor(src: XRPCError);
|
|
47
|
+
}
|
|
48
|
+
export declare class InvalidCursorError extends XRPCError {
|
|
49
|
+
constructor(src: XRPCError);
|
|
50
|
+
}
|
|
51
|
+
export declare function toKnownErr(e: any): any;
|
|
52
|
+
/** Operations that share a rev were applied in the same commit. */
|
|
53
|
+
export interface OpEntry {
|
|
54
|
+
$type?: 'com.atproto.space.listRepoOps#opEntry';
|
|
55
|
+
rev: string;
|
|
56
|
+
collection: string;
|
|
57
|
+
rkey: string;
|
|
58
|
+
/** CID of the record after the operation. Null for deletes. */
|
|
59
|
+
cid: string | null;
|
|
60
|
+
/** CID of the record before the operation. Null for creates. */
|
|
61
|
+
prev: string | null;
|
|
62
|
+
/** Omitted for deletes, if excludeValues is set, or if the record has since changed. */
|
|
63
|
+
value?: {
|
|
64
|
+
[_ in string]: unknown;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export declare function isOpEntry<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.listRepoOps", "opEntry">;
|
|
68
|
+
export declare function validateOpEntry<V>(v: V): ValidationResult<OpEntry & V>;
|
|
69
|
+
//# sourceMappingURL=listRepoOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listRepoOps.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/listRepoOps.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe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;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAYhC;AAED,mEAAmE;AACnE,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,+DAA+D;IAC/D,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,gEAAgE;IAChE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,wFAAwF;IACxF,KAAK,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;CACnC;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kGAEhC;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iCAEtC"}
|
|
@@ -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 = 'com.atproto.space.listRepoOps';
|
|
11
|
+
export class InvalidSpaceMacError extends XRPCError {
|
|
12
|
+
constructor(src) {
|
|
13
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class SpaceNotFoundError extends XRPCError {
|
|
17
|
+
constructor(src) {
|
|
18
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export class RepoNotFoundError extends XRPCError {
|
|
22
|
+
constructor(src) {
|
|
23
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class RepoTakendownError extends XRPCError {
|
|
27
|
+
constructor(src) {
|
|
28
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export class RepoSuspendedError extends XRPCError {
|
|
32
|
+
constructor(src) {
|
|
33
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export class RepoDeactivatedError extends XRPCError {
|
|
37
|
+
constructor(src) {
|
|
38
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export class InvalidCursorError extends XRPCError {
|
|
42
|
+
constructor(src) {
|
|
43
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export function toKnownErr(e) {
|
|
47
|
+
if (e instanceof XRPCError) {
|
|
48
|
+
if (e.error === 'InvalidSpaceMac')
|
|
49
|
+
return new InvalidSpaceMacError(e);
|
|
50
|
+
if (e.error === 'SpaceNotFound')
|
|
51
|
+
return new SpaceNotFoundError(e);
|
|
52
|
+
if (e.error === 'RepoNotFound')
|
|
53
|
+
return new RepoNotFoundError(e);
|
|
54
|
+
if (e.error === 'RepoTakendown')
|
|
55
|
+
return new RepoTakendownError(e);
|
|
56
|
+
if (e.error === 'RepoSuspended')
|
|
57
|
+
return new RepoSuspendedError(e);
|
|
58
|
+
if (e.error === 'RepoDeactivated')
|
|
59
|
+
return new RepoDeactivatedError(e);
|
|
60
|
+
if (e.error === 'InvalidCursor')
|
|
61
|
+
return new InvalidCursorError(e);
|
|
62
|
+
}
|
|
63
|
+
return e;
|
|
64
|
+
}
|
|
65
|
+
const hashOpEntry = 'opEntry';
|
|
66
|
+
export function isOpEntry(v) {
|
|
67
|
+
return is$typed(v, id, hashOpEntry);
|
|
68
|
+
}
|
|
69
|
+
export function validateOpEntry(v) {
|
|
70
|
+
return validate(v, id, hashOpEntry);
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=listRepoOps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listRepoOps.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/listRepoOps.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,+BAA+B,CAAA;AA6B1C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD,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,kBAAmB,SAAQ,SAAS;IAC/C,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,iBAAkB,SAAQ,SA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K,iBAAiB;YAAE,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;QACrE,IAAI,CAAC,CAAC,KAAK,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,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,iBAAiB;YAAE,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;QACrE,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAgBD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,MAAM,UAAU,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,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 ComAtprotoSpaceDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.space.listRepoOps'\n\nexport type QueryParams = {\n space: string\n repo: string\n since?: string\n limit?: number\n cursor?: string\n excludeValues?: boolean\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n ops: OpEntry[]\n commit: ComAtprotoSpaceDefs.Commit\n cursor?: 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 InvalidSpaceMacError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class SpaceNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoTakendownError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoDeactivatedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidCursorError 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 === 'InvalidSpaceMac') return new InvalidSpaceMacError(e)\n if (e.error === 'SpaceNotFound') return new SpaceNotFoundError(e)\n if (e.error === 'RepoNotFound') return new RepoNotFoundError(e)\n if (e.error === 'RepoTakendown') return new RepoTakendownError(e)\n if (e.error === 'RepoSuspended') return new RepoSuspendedError(e)\n if (e.error === 'RepoDeactivated') return new RepoDeactivatedError(e)\n if (e.error === 'InvalidCursor') return new InvalidCursorError(e)\n }\n\n return e\n}\n\n/** Operations that share a rev were applied in the same commit. */\nexport interface OpEntry {\n $type?: 'com.atproto.space.listRepoOps#opEntry'\n rev: string\n collection: string\n rkey: string\n /** CID of the record after the operation. Null for deletes. */\n cid: string | null\n /** CID of the record before the operation. Null for creates. */\n prev: string | null\n /** Omitted for deletes, if excludeValues is set, or if the record has since changed. */\n value?: { [_ in string]: unknown }\n}\n\nconst hashOpEntry = 'opEntry'\n\nexport function isOpEntry<V>(v: V) {\n return is$typed(v, id, hashOpEntry)\n}\n\nexport function validateOpEntry<V>(v: V) {\n return validate<OpEntry & V>(v, id, hashOpEntry)\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
/** Filter to spaces with this DID as their authority. */
|
|
8
|
+
spaceDid?: string;
|
|
9
|
+
spaceType?: string;
|
|
10
|
+
limit?: number;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
};
|
|
13
|
+
export type InputSchema = undefined;
|
|
14
|
+
export interface OutputSchema {
|
|
15
|
+
cursor?: string;
|
|
16
|
+
spaces: SpaceView[];
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
headers?: HeadersMap;
|
|
21
|
+
}
|
|
22
|
+
export interface Response {
|
|
23
|
+
success: boolean;
|
|
24
|
+
headers: HeadersMap;
|
|
25
|
+
data: OutputSchema;
|
|
26
|
+
}
|
|
27
|
+
export declare class InvalidCursorError extends XRPCError {
|
|
28
|
+
constructor(src: XRPCError);
|
|
29
|
+
}
|
|
30
|
+
export declare function toKnownErr(e: any): any;
|
|
31
|
+
export interface SpaceView {
|
|
32
|
+
$type?: 'com.atproto.space.listSpaces#spaceView';
|
|
33
|
+
space: string;
|
|
34
|
+
/** The current revision of the account's repo in the space, if it has one. */
|
|
35
|
+
repoRev?: string;
|
|
36
|
+
/** The current commit data of the account's repo in the space, if it has one. */
|
|
37
|
+
data?: Uint8Array;
|
|
38
|
+
/** The current revision of the space. Only included if the account is the space's authority. */
|
|
39
|
+
spaceRev?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function isSpaceView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.listSpaces", "spaceView">;
|
|
42
|
+
export declare function validateSpaceView<V>(v: V): ValidationResult<SpaceView & V>;
|
|
43
|
+
//# sourceMappingURL=listSpaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSpaces.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/listSpaces.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,MAAM,WAAW,GAAG;IACxB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,EAAE,CAAA;CACpB;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,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,wCAAwC,CAAA;IAChD,KAAK,EAAE,MAAM,CAAA;IACb,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iFAAiF;IACjF,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC"}
|
|
@@ -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 = 'com.atproto.space.listSpaces';
|
|
11
|
+
export class InvalidCursorError 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 === 'InvalidCursor')
|
|
19
|
+
return new InvalidCursorError(e);
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
const hashSpaceView = 'spaceView';
|
|
24
|
+
export function isSpaceView(v) {
|
|
25
|
+
return is$typed(v, id, hashSpaceView);
|
|
26
|
+
}
|
|
27
|
+
export function validateSpaceView(v) {
|
|
28
|
+
return validate(v, id, hashSpaceView);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=listSpaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSpaces.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/listSpaces.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,8BAA8B,CAAA;AA2BzC,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,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,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAaD,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 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 = 'com.atproto.space.listSpaces'\n\nexport type QueryParams = {\n /** Filter to spaces with this DID as their authority. */\n spaceDid?: string\n spaceType?: string\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n spaces: SpaceView[]\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 InvalidCursorError 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 === 'InvalidCursor') return new InvalidCursorError(e)\n }\n\n return e\n}\n\nexport interface SpaceView {\n $type?: 'com.atproto.space.listSpaces#spaceView'\n space: string\n /** The current revision of the account's repo in the space, if it has one. */\n repoRev?: string\n /** The current commit data of the account's repo in the space, if it has one. */\n data?: Uint8Array\n /** The current revision of the space. Only included if the account is the space's authority. */\n spaceRev?: string\n}\n\nconst hashSpaceView = 'spaceView'\n\nexport function isSpaceView<V>(v: V) {\n return is$typed(v, id, hashSpaceView)\n}\n\nexport function validateSpaceView<V>(v: V) {\n return validate<SpaceView & V>(v, id, hashSpaceView)\n}\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type $Typed } from '../../../../util.js';
|
|
6
|
+
import type * as ComAtprotoSpaceDefs from './defs.js';
|
|
7
|
+
export type QueryParams = {
|
|
8
|
+
space: string;
|
|
9
|
+
limit?: number;
|
|
10
|
+
/** Return repos updated after this space revision. Removed repos may be garbage collected after 72 hrs, so a syncer whose last seen space revision is older should list the whole writer set instead. */
|
|
11
|
+
cursor?: string;
|
|
12
|
+
};
|
|
13
|
+
export type InputSchema = undefined;
|
|
14
|
+
export interface OutputSchema {
|
|
15
|
+
/** The latest update to each repo, ordered by spaceRev, ascending. prevSpaceRev is not set. */
|
|
16
|
+
repos: ($Typed<ComAtprotoSpaceDefs.RepoWrite> | $Typed<ComAtprotoSpaceDefs.RepoRemoved> | {
|
|
17
|
+
$type: string;
|
|
18
|
+
})[];
|
|
19
|
+
cursor?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CallOptions {
|
|
22
|
+
signal?: AbortSignal;
|
|
23
|
+
headers?: HeadersMap;
|
|
24
|
+
}
|
|
25
|
+
export interface Response {
|
|
26
|
+
success: boolean;
|
|
27
|
+
headers: HeadersMap;
|
|
28
|
+
data: OutputSchema;
|
|
29
|
+
}
|
|
30
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
31
|
+
constructor(src: XRPCError);
|
|
32
|
+
}
|
|
33
|
+
export declare class RepoTakendownError extends XRPCError {
|
|
34
|
+
constructor(src: XRPCError);
|
|
35
|
+
}
|
|
36
|
+
export declare class RepoDeactivatedError extends XRPCError {
|
|
37
|
+
constructor(src: XRPCError);
|
|
38
|
+
}
|
|
39
|
+
export declare function toKnownErr(e: any): any;
|
|
40
|
+
//# sourceMappingURL=listWriters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listWriters.d.ts","sourceRoot":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+
/**
|
|
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 = 'com.atproto.space.listWriters';
|
|
11
|
+
export class SpaceNotFoundError extends XRPCError {
|
|
12
|
+
constructor(src) {
|
|
13
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class RepoTakendownError extends XRPCError {
|
|
17
|
+
constructor(src) {
|
|
18
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export class RepoDeactivatedError extends XRPCError {
|
|
22
|
+
constructor(src) {
|
|
23
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function toKnownErr(e) {
|
|
27
|
+
if (e instanceof XRPCError) {
|
|
28
|
+
if (e.error === 'SpaceNotFound')
|
|
29
|
+
return new SpaceNotFoundError(e);
|
|
30
|
+
if (e.error === 'RepoTakendown')
|
|
31
|
+
return new RepoTakendownError(e);
|
|
32
|
+
if (e.error === 'RepoDeactivated')
|
|
33
|
+
return new RepoDeactivatedError(e);
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=listWriters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listWriters.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/listWriters.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OA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Ae;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,iBAAiB;YAAE,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;IACvE,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 ComAtprotoSpaceDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.space.listWriters'\n\nexport type QueryParams = {\n space: string\n limit?: number\n /** Return repos updated after this space revision. Removed repos may be garbage collected after 72 hrs, so a syncer whose last seen space revision is older should list the whole writer set instead. */\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n /** The latest update to each repo, ordered by spaceRev, ascending. prevSpaceRev is not set. */\n repos: (\n | $Typed<ComAtprotoSpaceDefs.RepoWrite>\n | $Typed<ComAtprotoSpaceDefs.RepoRemoved>\n | { $type: string }\n )[]\n cursor?: 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 SpaceNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoTakendownError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RepoDeactivatedError 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 === 'SpaceNotFound') return new SpaceNotFoundError(e)\n if (e.error === 'RepoTakendown') return new RepoTakendownError(e)\n if (e.error === 'RepoDeactivated') return new RepoDeactivatedError(e)\n }\n\n return e\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
export type QueryParams = {};
|
|
6
|
+
export interface InputSchema {
|
|
7
|
+
space: string;
|
|
8
|
+
/** The IDs (jti) of the revoked credentials. */
|
|
9
|
+
credentials: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
headers?: HeadersMap;
|
|
14
|
+
qp?: QueryParams;
|
|
15
|
+
encoding?: 'application/json';
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: HeadersMap;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
22
|
+
//# sourceMappingURL=notifyCredentialsRevoked.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifyCredentialsRevoked.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/notifyCredentialsRevoked.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,WAAW,EAAE,MAAM,EAAE,CAAA;CACtB;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;CACpB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 = 'com.atproto.space.notifyCredentialsRevoked';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=notifyCredentialsRevoked.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifyCredentialsRevoked.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/notifyCredentialsRevoked.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,4CAA4C,CAAA;AAsBvD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,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 = 'com.atproto.space.notifyCredentialsRevoked'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: string\n /** The IDs (jti) of the revoked credentials. */\n credentials: 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}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
space: string;
|
|
8
|
+
repo: string;
|
|
9
|
+
repoRev: string;
|
|
10
|
+
/** SHA-256 digest of the repo's LtHash state. */
|
|
11
|
+
data: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
headers?: HeadersMap;
|
|
16
|
+
qp?: QueryParams;
|
|
17
|
+
encoding?: 'application/json';
|
|
18
|
+
}
|
|
19
|
+
export interface Response {
|
|
20
|
+
success: boolean;
|
|
21
|
+
headers: HeadersMap;
|
|
22
|
+
}
|
|
23
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
24
|
+
constructor(src: XRPCError);
|
|
25
|
+
}
|
|
26
|
+
export declare class FutureRevError extends XRPCError {
|
|
27
|
+
constructor(src: XRPCError);
|
|
28
|
+
}
|
|
29
|
+
export declare function toKnownErr(e: any): any;
|
|
30
|
+
//# sourceMappingURL=notifyRepoUpdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifyRepoUpdate.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/notifyRepoUpdate.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;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,iDAAiD;IACjD,IAAI,EAAE,UAAU,CAAA;CACjB;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;CACpB;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,cAAe,SAAQ,SAAS;IAC3C,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 = 'com.atproto.space.notifyRepoUpdate';
|
|
11
|
+
export class SpaceNotFoundError extends XRPCError {
|
|
12
|
+
constructor(src) {
|
|
13
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class FutureRevError 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 === 'SpaceNotFound')
|
|
24
|
+
return new SpaceNotFoundError(e);
|
|
25
|
+
if (e.error === 'FutureRev')
|
|
26
|
+
return new FutureRevError(e);
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=notifyRepoUpdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifyRepoUpdate.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/notifyRepoUpdate.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,oCAAoC,CAAA;AAwB/C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,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,cAAe,SAAQ,SAAS;IAC3C,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,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,WAAW;YAAE,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;IAC3D,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 = 'com.atproto.space.notifyRepoUpdate'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: string\n repo: string\n repoRev: string\n /** SHA-256 digest of the repo's LtHash state. */\n data: Uint8Array\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}\n\nexport class SpaceNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class FutureRevError 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 === 'SpaceNotFound') return new SpaceNotFoundError(e)\n if (e.error === 'FutureRev') return new FutureRevError(e)\n }\n\n return e\n}\n"]}
|