@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,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.createSpace';
|
|
11
|
+
export class SpaceAlreadyExistsError extends XRPCError {
|
|
12
|
+
constructor(src) {
|
|
13
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class UnsupportedPolicyError 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 === 'SpaceAlreadyExists')
|
|
24
|
+
return new SpaceAlreadyExistsError(e);
|
|
25
|
+
if (e.error === 'UnsupportedPolicy')
|
|
26
|
+
return new UnsupportedPolicyError(e);
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=createSpace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSpace.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/createSpace.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;AAK5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA;AAgC1C,MAAM,OAAO,uBAAwB,SAAQ,SAAS;IACpD,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,sBAAuB,SAAQ,SAAS;IACnD,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,oBAAoB;YAAE,OAAO,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAA;QAC3E,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 ComAtprotoPersonalspacePolicy from '../personalspace/policy.js'\nimport type * as ComAtprotoMemberspacePolicy from '../memberspace/policy.js'\nimport type * as ComAtprotoManagedspacePolicy from '../managedspace/policy.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.space.createSpace'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n spaceType: string\n /** Space key. Generated as a TID if not provided. */\n skey?: string\n policy:\n | $Typed<ComAtprotoPersonalspacePolicy.Main>\n | $Typed<ComAtprotoMemberspacePolicy.Main>\n | $Typed<ComAtprotoManagedspacePolicy.Main>\n | { $type: string }\n}\n\nexport interface OutputSchema {\n space: 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 SpaceAlreadyExistsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UnsupportedPolicyError 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 === 'SpaceAlreadyExists') return new SpaceAlreadyExistsError(e)\n if (e.error === 'UnsupportedPolicy') return new UnsupportedPolicyError(e)\n }\n\n return e\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
/** Commit to the current state of a space repo. Not signed; authenticated by the repo host with a MAC instead. */
|
|
6
|
+
export interface Commit {
|
|
7
|
+
$type?: 'com.atproto.space.defs#commit';
|
|
8
|
+
/** Commit format version, currently 1. */
|
|
9
|
+
ver: number;
|
|
10
|
+
repo: string;
|
|
11
|
+
space: string;
|
|
12
|
+
rev: string;
|
|
13
|
+
/** SHA-256 digest of the repo's LtHash state. */
|
|
14
|
+
data: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export declare function isCommit<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.defs", "commit">;
|
|
17
|
+
export declare function validateCommit<V>(v: V): ValidationResult<Commit & V>;
|
|
18
|
+
/** A repo in the space advanced to a new revision. */
|
|
19
|
+
export interface RepoWrite {
|
|
20
|
+
$type?: 'com.atproto.space.defs#repoWrite';
|
|
21
|
+
repo: string;
|
|
22
|
+
repoRev: string;
|
|
23
|
+
/** SHA-256 digest of the repo's LtHash state. */
|
|
24
|
+
data: Uint8Array;
|
|
25
|
+
/** The space revision at which this update was sequenced. */
|
|
26
|
+
spaceRev: string;
|
|
27
|
+
/** The space revision before this update, if any. Set in notifySpaceUpdate, where a gap indicates missed notifications, which can be recovered with listWriters. */
|
|
28
|
+
prevSpaceRev?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function isRepoWrite<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.defs", "repoWrite">;
|
|
31
|
+
export declare function validateRepoWrite<V>(v: V): ValidationResult<RepoWrite & V>;
|
|
32
|
+
/** A repo was removed from the writer set. */
|
|
33
|
+
export interface RepoRemoved {
|
|
34
|
+
$type?: 'com.atproto.space.defs#repoRemoved';
|
|
35
|
+
repo: string;
|
|
36
|
+
/** The space revision at which this update was sequenced. */
|
|
37
|
+
spaceRev: string;
|
|
38
|
+
/** The space revision before this update, if any. Set in notifySpaceUpdate, where a gap indicates missed notifications, which can be recovered with listWriters. */
|
|
39
|
+
prevSpaceRev?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function isRepoRemoved<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.defs", "repoRemoved">;
|
|
42
|
+
export declare function validateRepoRemoved<V>(v: V): ValidationResult<RepoRemoved & V>;
|
|
43
|
+
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,kHAAkH;AAClH,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,+BAA+B,CAAA;IACvC,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,iDAAiD;IACjD,IAAI,EAAE,UAAU,CAAA;CACjB;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0FAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC;AAED,sDAAsD;AACtD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,iDAAiD;IACjD,IAAI,EAAE,UAAU,CAAA;IAChB,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAA;IAChB,oKAAoK;IACpK,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC;AAED,8CAA8C;AAC9C,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAC5C,IAAI,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAA;IAChB,oKAAoK;IACpK,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 = 'com.atproto.space.defs';
|
|
10
|
+
const hashCommit = 'commit';
|
|
11
|
+
export function isCommit(v) {
|
|
12
|
+
return is$typed(v, id, hashCommit);
|
|
13
|
+
}
|
|
14
|
+
export function validateCommit(v) {
|
|
15
|
+
return validate(v, id, hashCommit);
|
|
16
|
+
}
|
|
17
|
+
const hashRepoWrite = 'repoWrite';
|
|
18
|
+
export function isRepoWrite(v) {
|
|
19
|
+
return is$typed(v, id, hashRepoWrite);
|
|
20
|
+
}
|
|
21
|
+
export function validateRepoWrite(v) {
|
|
22
|
+
return validate(v, id, hashRepoWrite);
|
|
23
|
+
}
|
|
24
|
+
const hashRepoRemoved = 'repoRemoved';
|
|
25
|
+
export function isRepoRemoved(v) {
|
|
26
|
+
return is$typed(v, id, hashRepoRemoved);
|
|
27
|
+
}
|
|
28
|
+
export function validateRepoRemoved(v) {
|
|
29
|
+
return validate(v, id, hashRepoRemoved);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/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,wBAAwB,CAAA;AAcnC,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,MAAM,UAAU,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AAChD,CAAC;AAeD,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;AAYD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,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 = 'com.atproto.space.defs'\n\n/** Commit to the current state of a space repo. Not signed; authenticated by the repo host with a MAC instead. */\nexport interface Commit {\n $type?: 'com.atproto.space.defs#commit'\n /** Commit format version, currently 1. */\n ver: number\n repo: string\n space: string\n rev: string\n /** SHA-256 digest of the repo's LtHash state. */\n data: Uint8Array\n}\n\nconst hashCommit = 'commit'\n\nexport function isCommit<V>(v: V) {\n return is$typed(v, id, hashCommit)\n}\n\nexport function validateCommit<V>(v: V) {\n return validate<Commit & V>(v, id, hashCommit)\n}\n\n/** A repo in the space advanced to a new revision. */\nexport interface RepoWrite {\n $type?: 'com.atproto.space.defs#repoWrite'\n repo: string\n repoRev: string\n /** SHA-256 digest of the repo's LtHash state. */\n data: Uint8Array\n /** The space revision at which this update was sequenced. */\n spaceRev: string\n /** The space revision before this update, if any. Set in notifySpaceUpdate, where a gap indicates missed notifications, which can be recovered with listWriters. */\n prevSpaceRev?: string\n}\n\nconst hashRepoWrite = 'repoWrite'\n\nexport function isRepoWrite<V>(v: V) {\n return is$typed(v, id, hashRepoWrite)\n}\n\nexport function validateRepoWrite<V>(v: V) {\n return validate<RepoWrite & V>(v, id, hashRepoWrite)\n}\n\n/** A repo was removed from the writer set. */\nexport interface RepoRemoved {\n $type?: 'com.atproto.space.defs#repoRemoved'\n repo: string\n /** The space revision at which this update was sequenced. */\n spaceRev: string\n /** The space revision before this update, if any. Set in notifySpaceUpdate, where a gap indicates missed notifications, which can be recovered with listWriters. */\n prevSpaceRev?: string\n}\n\nconst hashRepoRemoved = 'repoRemoved'\n\nexport function isRepoRemoved<V>(v: V) {\n return is$typed(v, id, hashRepoRemoved)\n}\n\nexport function validateRepoRemoved<V>(v: V) {\n return validate<RepoRemoved & V>(v, id, hashRepoRemoved)\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
collection: string;
|
|
10
|
+
rkey: string;
|
|
11
|
+
}
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
headers?: HeadersMap;
|
|
17
|
+
qp?: QueryParams;
|
|
18
|
+
encoding?: 'application/json';
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: HeadersMap;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
26
|
+
constructor(src: XRPCError);
|
|
27
|
+
}
|
|
28
|
+
export declare function toKnownErr(e: any): any;
|
|
29
|
+
//# sourceMappingURL=deleteRecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/deleteRecord.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,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;CAAG;AAEhC,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,kBAAmB,SAAQ,SAAS;IAC/C,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 = 'com.atproto.space.deleteRecord';
|
|
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 function toKnownErr(e) {
|
|
17
|
+
if (e instanceof XRPCError) {
|
|
18
|
+
if (e.error === 'SpaceNotFound')
|
|
19
|
+
return new SpaceNotFoundError(e);
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=deleteRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteRecord.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/deleteRecord.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,gCAAgC,CAAA;AA0B3C,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","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.deleteRecord'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: string\n repo: string\n collection: string\n rkey: string\n}\n\nexport interface OutputSchema {}\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 SpaceNotFoundError 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 }\n\n return e\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
headers?: HeadersMap;
|
|
12
|
+
qp?: QueryParams;
|
|
13
|
+
encoding?: 'application/json';
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: HeadersMap;
|
|
18
|
+
}
|
|
19
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
20
|
+
constructor(src: XRPCError);
|
|
21
|
+
}
|
|
22
|
+
export declare class NotAuthorizedError extends XRPCError {
|
|
23
|
+
constructor(src: XRPCError);
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
26
|
+
//# sourceMappingURL=deleteSpace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSpace.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/deleteSpace.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,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,kBAAmB,SAAQ,SAAS;IAC/C,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.deleteSpace';
|
|
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 NotAuthorizedError 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 === 'NotAuthorized')
|
|
26
|
+
return new NotAuthorizedError(e);
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=deleteSpace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSpace.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/deleteSpace.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,+BAA+B,CAAA;AAoB1C,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,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;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,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.deleteSpace'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: 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 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 NotAuthorizedError 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 === 'NotAuthorized') return new NotAuthorizedError(e)\n }\n\n return e\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
export type QueryParams = {
|
|
6
|
+
space: string;
|
|
7
|
+
};
|
|
8
|
+
export type InputSchema = undefined;
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
headers?: HeadersMap;
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: HeadersMap;
|
|
16
|
+
data: Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
19
|
+
constructor(src: XRPCError);
|
|
20
|
+
}
|
|
21
|
+
export declare class NotAuthorizedError extends XRPCError {
|
|
22
|
+
constructor(src: XRPCError);
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
25
|
+
//# sourceMappingURL=exportSpaceMeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportSpaceMeta.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/exportSpaceMeta.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,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,UAAU,CAAA;CACjB;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,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.exportSpaceMeta';
|
|
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 NotAuthorizedError 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 === 'NotAuthorized')
|
|
26
|
+
return new NotAuthorizedError(e);
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=exportSpaceMeta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportSpaceMeta.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/exportSpaceMeta.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,mCAAmC,CAAA;AAkB9C,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,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;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,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.exportSpaceMeta'\n\nexport type QueryParams = {\n space: string\n}\nexport type InputSchema = undefined\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: Uint8Array\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 NotAuthorizedError 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 === 'NotAuthorized') return new NotAuthorizedError(e)\n }\n\n return e\n}\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
export type QueryParams = {
|
|
6
|
+
space: string;
|
|
7
|
+
repo: string;
|
|
8
|
+
cid: string;
|
|
9
|
+
};
|
|
10
|
+
export type InputSchema = undefined;
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
headers?: HeadersMap;
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: HeadersMap;
|
|
18
|
+
data: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
export declare class BlobNotFoundError extends XRPCError {
|
|
21
|
+
constructor(src: XRPCError);
|
|
22
|
+
}
|
|
23
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
24
|
+
constructor(src: XRPCError);
|
|
25
|
+
}
|
|
26
|
+
export declare class RepoNotFoundError extends XRPCError {
|
|
27
|
+
constructor(src: XRPCError);
|
|
28
|
+
}
|
|
29
|
+
export declare class RepoTakendownError extends XRPCError {
|
|
30
|
+
constructor(src: XRPCError);
|
|
31
|
+
}
|
|
32
|
+
export declare class RepoSuspendedError extends XRPCError {
|
|
33
|
+
constructor(src: XRPCError);
|
|
34
|
+
}
|
|
35
|
+
export declare class RepoDeactivatedError extends XRPCError {
|
|
36
|
+
constructor(src: XRPCError);
|
|
37
|
+
}
|
|
38
|
+
export declare function toKnownErr(e: any): any;
|
|
39
|
+
//# sourceMappingURL=getBlob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlob.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/getBlob.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,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,UAAU,CAAA;CACjB;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,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,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAWhC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.getBlob';
|
|
11
|
+
export class BlobNotFoundError 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 function toKnownErr(e) {
|
|
42
|
+
if (e instanceof XRPCError) {
|
|
43
|
+
if (e.error === 'BlobNotFound')
|
|
44
|
+
return new BlobNotFoundError(e);
|
|
45
|
+
if (e.error === 'SpaceNotFound')
|
|
46
|
+
return new SpaceNotFoundError(e);
|
|
47
|
+
if (e.error === 'RepoNotFound')
|
|
48
|
+
return new RepoNotFoundError(e);
|
|
49
|
+
if (e.error === 'RepoTakendown')
|
|
50
|
+
return new RepoTakendownError(e);
|
|
51
|
+
if (e.error === 'RepoSuspended')
|
|
52
|
+
return new RepoSuspendedError(e);
|
|
53
|
+
if (e.error === 'RepoDeactivated')
|
|
54
|
+
return new RepoDeactivatedError(e);
|
|
55
|
+
}
|
|
56
|
+
return e;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=getBlob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlob.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/getBlob.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,2BAA2B,CAAA;AAoBtC,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,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,SAAS;IAC9C,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,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,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,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,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,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;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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.space.getBlob'\n\nexport type QueryParams = {\n space: string\n repo: string\n cid: string\n}\nexport type InputSchema = undefined\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: Uint8Array\n}\n\nexport class BlobNotFoundError 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 function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'BlobNotFound') return new BlobNotFoundError(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 }\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
|
+
space: string;
|
|
7
|
+
};
|
|
8
|
+
export type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
token: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
signal?: AbortSignal;
|
|
14
|
+
headers?: HeadersMap;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: HeadersMap;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
22
|
+
//# sourceMappingURL=getDelegationToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDelegationToken.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/getDelegationToken.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAc1D,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;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -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.getDelegationToken';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=getDelegationToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDelegationToken.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/getDelegationToken.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,sCAAsC,CAAA;AAsBjD,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.getDelegationToken'\n\nexport type QueryParams = {\n space: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n token: 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 function toKnownErr(e: any) {\n return e\n}\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import type * as ComAtprotoSpaceDefs from './defs.js';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
space: string;
|
|
8
|
+
repo: string;
|
|
9
|
+
};
|
|
10
|
+
export type InputSchema = undefined;
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
commit: ComAtprotoSpaceDefs.Commit;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
headers?: HeadersMap;
|
|
17
|
+
}
|
|
18
|
+
export interface Response {
|
|
19
|
+
success: boolean;
|
|
20
|
+
headers: HeadersMap;
|
|
21
|
+
data: OutputSchema;
|
|
22
|
+
}
|
|
23
|
+
export declare class InvalidSpaceMacError extends XRPCError {
|
|
24
|
+
constructor(src: XRPCError);
|
|
25
|
+
}
|
|
26
|
+
export declare class SpaceNotFoundError extends XRPCError {
|
|
27
|
+
constructor(src: XRPCError);
|
|
28
|
+
}
|
|
29
|
+
export declare class RepoNotFoundError extends XRPCError {
|
|
30
|
+
constructor(src: XRPCError);
|
|
31
|
+
}
|
|
32
|
+
export declare class RepoTakendownError extends XRPCError {
|
|
33
|
+
constructor(src: XRPCError);
|
|
34
|
+
}
|
|
35
|
+
export declare class RepoSuspendedError extends XRPCError {
|
|
36
|
+
constructor(src: XRPCError);
|
|
37
|
+
}
|
|
38
|
+
export declare class RepoDeactivatedError extends XRPCError {
|
|
39
|
+
constructor(src: XRPCError);
|
|
40
|
+
}
|
|
41
|
+
export declare function toKnownErr(e: any): any;
|
|
42
|
+
//# sourceMappingURL=getLatestCommit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLatestCommit.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/getLatestCommit.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,mBAAmB,CAAC,MAAM,CAAA;CACnC;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,oBAAqB,SAAQ,SAAS;IACjD,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,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAWhC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.getLatestCommit';
|
|
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 function toKnownErr(e) {
|
|
42
|
+
if (e instanceof XRPCError) {
|
|
43
|
+
if (e.error === 'InvalidSpaceMac')
|
|
44
|
+
return new InvalidSpaceMacError(e);
|
|
45
|
+
if (e.error === 'SpaceNotFound')
|
|
46
|
+
return new SpaceNotFoundError(e);
|
|
47
|
+
if (e.error === 'RepoNotFound')
|
|
48
|
+
return new RepoNotFoundError(e);
|
|
49
|
+
if (e.error === 'RepoTakendown')
|
|
50
|
+
return new RepoTakendownError(e);
|
|
51
|
+
if (e.error === 'RepoSuspended')
|
|
52
|
+
return new RepoSuspendedError(e);
|
|
53
|
+
if (e.error === 'RepoDeactivated')
|
|
54
|
+
return new RepoDeactivatedError(e);
|
|
55
|
+
}
|
|
56
|
+
return e;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=getLatestCommit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLatestCommit.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/getLatestCommit.ts"],"names":[],"mappings":"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","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.getLatestCommit'\n\nexport type QueryParams = {\n space: string\n repo: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n commit: ComAtprotoSpaceDefs.Commit\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 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 }\n\n return e\n}\n"]}
|