@atproto/api 0.32.9 → 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.
Files changed (170) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/client/index.d.ts +177 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +373 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +8583 -4697
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +2135 -0
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/com/atproto/managedspace/checkAccess.d.ts +26 -0
  11. package/dist/client/types/com/atproto/managedspace/checkAccess.d.ts.map +1 -0
  12. package/dist/client/types/com/atproto/managedspace/checkAccess.js +14 -0
  13. package/dist/client/types/com/atproto/managedspace/checkAccess.js.map +1 -0
  14. package/dist/client/types/com/atproto/managedspace/policy.d.ts +15 -0
  15. package/dist/client/types/com/atproto/managedspace/policy.d.ts.map +1 -0
  16. package/dist/client/types/com/atproto/managedspace/policy.js +17 -0
  17. package/dist/client/types/com/atproto/managedspace/policy.js.map +1 -0
  18. package/dist/client/types/com/atproto/memberspace/defs.d.ts +13 -0
  19. package/dist/client/types/com/atproto/memberspace/defs.d.ts.map +1 -0
  20. package/dist/client/types/com/atproto/memberspace/defs.js +17 -0
  21. package/dist/client/types/com/atproto/memberspace/defs.js.map +1 -0
  22. package/dist/client/types/com/atproto/memberspace/listMembers.d.ts +38 -0
  23. package/dist/client/types/com/atproto/memberspace/listMembers.d.ts.map +1 -0
  24. package/dist/client/types/com/atproto/memberspace/listMembers.js +44 -0
  25. package/dist/client/types/com/atproto/memberspace/listMembers.js.map +1 -0
  26. package/dist/client/types/com/atproto/memberspace/member.d.ts +14 -0
  27. package/dist/client/types/com/atproto/memberspace/member.d.ts.map +1 -0
  28. package/dist/client/types/com/atproto/memberspace/member.js +18 -0
  29. package/dist/client/types/com/atproto/memberspace/member.js.map +1 -0
  30. package/dist/client/types/com/atproto/memberspace/policy.d.ts +21 -0
  31. package/dist/client/types/com/atproto/memberspace/policy.d.ts.map +1 -0
  32. package/dist/client/types/com/atproto/memberspace/policy.js +17 -0
  33. package/dist/client/types/com/atproto/memberspace/policy.js.map +1 -0
  34. package/dist/client/types/com/atproto/memberspace/putMembers.d.ts +31 -0
  35. package/dist/client/types/com/atproto/memberspace/putMembers.d.ts.map +1 -0
  36. package/dist/client/types/com/atproto/memberspace/putMembers.js +37 -0
  37. package/dist/client/types/com/atproto/memberspace/putMembers.js.map +1 -0
  38. package/dist/client/types/com/atproto/memberspace/removeMembers.d.ts +30 -0
  39. package/dist/client/types/com/atproto/memberspace/removeMembers.d.ts.map +1 -0
  40. package/dist/client/types/com/atproto/memberspace/removeMembers.js +37 -0
  41. package/dist/client/types/com/atproto/memberspace/removeMembers.js.map +1 -0
  42. package/dist/client/types/com/atproto/personalspace/policy.d.ts +11 -0
  43. package/dist/client/types/com/atproto/personalspace/policy.d.ts.map +1 -0
  44. package/dist/client/types/com/atproto/personalspace/policy.js +17 -0
  45. package/dist/client/types/com/atproto/personalspace/policy.js.map +1 -0
  46. package/dist/client/types/com/atproto/space/applyWrites.d.ts +90 -0
  47. package/dist/client/types/com/atproto/space/applyWrites.d.ts.map +1 -0
  48. package/dist/client/types/com/atproto/space/applyWrites.js +79 -0
  49. package/dist/client/types/com/atproto/space/applyWrites.js.map +1 -0
  50. package/dist/client/types/com/atproto/space/authorizeSpaceSync.d.ts +72 -0
  51. package/dist/client/types/com/atproto/space/authorizeSpaceSync.d.ts.map +1 -0
  52. package/dist/client/types/com/atproto/space/authorizeSpaceSync.js +93 -0
  53. package/dist/client/types/com/atproto/space/authorizeSpaceSync.js.map +1 -0
  54. package/dist/client/types/com/atproto/space/clearRecords.d.ts +24 -0
  55. package/dist/client/types/com/atproto/space/clearRecords.d.ts.map +1 -0
  56. package/dist/client/types/com/atproto/space/clearRecords.js +14 -0
  57. package/dist/client/types/com/atproto/space/clearRecords.js.map +1 -0
  58. package/dist/client/types/com/atproto/space/confirmRegistration.d.ts +26 -0
  59. package/dist/client/types/com/atproto/space/confirmRegistration.d.ts.map +1 -0
  60. package/dist/client/types/com/atproto/space/confirmRegistration.js +14 -0
  61. package/dist/client/types/com/atproto/space/confirmRegistration.js.map +1 -0
  62. package/dist/client/types/com/atproto/space/createRecord.d.ts +41 -0
  63. package/dist/client/types/com/atproto/space/createRecord.d.ts.map +1 -0
  64. package/dist/client/types/com/atproto/space/createRecord.js +30 -0
  65. package/dist/client/types/com/atproto/space/createRecord.js.map +1 -0
  66. package/dist/client/types/com/atproto/space/createSpace.d.ts +39 -0
  67. package/dist/client/types/com/atproto/space/createSpace.d.ts.map +1 -0
  68. package/dist/client/types/com/atproto/space/createSpace.js +30 -0
  69. package/dist/client/types/com/atproto/space/createSpace.js.map +1 -0
  70. package/dist/client/types/com/atproto/space/defs.d.ts +43 -0
  71. package/dist/client/types/com/atproto/space/defs.d.ts.map +1 -0
  72. package/dist/client/types/com/atproto/space/defs.js +31 -0
  73. package/dist/client/types/com/atproto/space/defs.js.map +1 -0
  74. package/dist/client/types/com/atproto/space/deleteRecord.d.ts +29 -0
  75. package/dist/client/types/com/atproto/space/deleteRecord.d.ts.map +1 -0
  76. package/dist/client/types/com/atproto/space/deleteRecord.js +23 -0
  77. package/dist/client/types/com/atproto/space/deleteRecord.js.map +1 -0
  78. package/dist/client/types/com/atproto/space/deleteSpace.d.ts +26 -0
  79. package/dist/client/types/com/atproto/space/deleteSpace.d.ts.map +1 -0
  80. package/dist/client/types/com/atproto/space/deleteSpace.js +30 -0
  81. package/dist/client/types/com/atproto/space/deleteSpace.js.map +1 -0
  82. package/dist/client/types/com/atproto/space/exportSpaceMeta.d.ts +25 -0
  83. package/dist/client/types/com/atproto/space/exportSpaceMeta.d.ts.map +1 -0
  84. package/dist/client/types/com/atproto/space/exportSpaceMeta.js +30 -0
  85. package/dist/client/types/com/atproto/space/exportSpaceMeta.js.map +1 -0
  86. package/dist/client/types/com/atproto/space/getBlob.d.ts +39 -0
  87. package/dist/client/types/com/atproto/space/getBlob.d.ts.map +1 -0
  88. package/dist/client/types/com/atproto/space/getBlob.js +58 -0
  89. package/dist/client/types/com/atproto/space/getBlob.js.map +1 -0
  90. package/dist/client/types/com/atproto/space/getDelegationToken.d.ts +22 -0
  91. package/dist/client/types/com/atproto/space/getDelegationToken.d.ts.map +1 -0
  92. package/dist/client/types/com/atproto/space/getDelegationToken.js +14 -0
  93. package/dist/client/types/com/atproto/space/getDelegationToken.js.map +1 -0
  94. package/dist/client/types/com/atproto/space/getLatestCommit.d.ts +42 -0
  95. package/dist/client/types/com/atproto/space/getLatestCommit.d.ts.map +1 -0
  96. package/dist/client/types/com/atproto/space/getLatestCommit.js +58 -0
  97. package/dist/client/types/com/atproto/space/getLatestCommit.js.map +1 -0
  98. package/dist/client/types/com/atproto/space/getRecord.d.ts +50 -0
  99. package/dist/client/types/com/atproto/space/getRecord.d.ts.map +1 -0
  100. package/dist/client/types/com/atproto/space/getRecord.js +65 -0
  101. package/dist/client/types/com/atproto/space/getRecord.js.map +1 -0
  102. package/dist/client/types/com/atproto/space/getRepo.d.ts +38 -0
  103. package/dist/client/types/com/atproto/space/getRepo.d.ts.map +1 -0
  104. package/dist/client/types/com/atproto/space/getRepo.js +58 -0
  105. package/dist/client/types/com/atproto/space/getRepo.js.map +1 -0
  106. package/dist/client/types/com/atproto/space/getSpace.d.ts +35 -0
  107. package/dist/client/types/com/atproto/space/getSpace.d.ts.map +1 -0
  108. package/dist/client/types/com/atproto/space/getSpace.js +30 -0
  109. package/dist/client/types/com/atproto/space/getSpace.js.map +1 -0
  110. package/dist/client/types/com/atproto/space/importRepo.d.ts +27 -0
  111. package/dist/client/types/com/atproto/space/importRepo.d.ts.map +1 -0
  112. package/dist/client/types/com/atproto/space/importRepo.js +37 -0
  113. package/dist/client/types/com/atproto/space/importRepo.js.map +1 -0
  114. package/dist/client/types/com/atproto/space/importSpaceMeta.d.ts +27 -0
  115. package/dist/client/types/com/atproto/space/importSpaceMeta.d.ts.map +1 -0
  116. package/dist/client/types/com/atproto/space/importSpaceMeta.js +37 -0
  117. package/dist/client/types/com/atproto/space/importSpaceMeta.js.map +1 -0
  118. package/dist/client/types/com/atproto/space/listBlobs.d.ts +41 -0
  119. package/dist/client/types/com/atproto/space/listBlobs.d.ts.map +1 -0
  120. package/dist/client/types/com/atproto/space/listBlobs.js +51 -0
  121. package/dist/client/types/com/atproto/space/listBlobs.js.map +1 -0
  122. package/dist/client/types/com/atproto/space/listRecords.d.ts +59 -0
  123. package/dist/client/types/com/atproto/space/listRecords.d.ts.map +1 -0
  124. package/dist/client/types/com/atproto/space/listRecords.js +65 -0
  125. package/dist/client/types/com/atproto/space/listRecords.js.map +1 -0
  126. package/dist/client/types/com/atproto/space/listRepoOps.d.ts +69 -0
  127. package/dist/client/types/com/atproto/space/listRepoOps.d.ts.map +1 -0
  128. package/dist/client/types/com/atproto/space/listRepoOps.js +72 -0
  129. package/dist/client/types/com/atproto/space/listRepoOps.js.map +1 -0
  130. package/dist/client/types/com/atproto/space/listSpaces.d.ts +43 -0
  131. package/dist/client/types/com/atproto/space/listSpaces.d.ts.map +1 -0
  132. package/dist/client/types/com/atproto/space/listSpaces.js +30 -0
  133. package/dist/client/types/com/atproto/space/listSpaces.js.map +1 -0
  134. package/dist/client/types/com/atproto/space/listWriters.d.ts +40 -0
  135. package/dist/client/types/com/atproto/space/listWriters.d.ts.map +1 -0
  136. package/dist/client/types/com/atproto/space/listWriters.js +37 -0
  137. package/dist/client/types/com/atproto/space/listWriters.js.map +1 -0
  138. package/dist/client/types/com/atproto/space/notifyCredentialsRevoked.d.ts +22 -0
  139. package/dist/client/types/com/atproto/space/notifyCredentialsRevoked.d.ts.map +1 -0
  140. package/dist/client/types/com/atproto/space/notifyCredentialsRevoked.js +14 -0
  141. package/dist/client/types/com/atproto/space/notifyCredentialsRevoked.js.map +1 -0
  142. package/dist/client/types/com/atproto/space/notifyRepoUpdate.d.ts +30 -0
  143. package/dist/client/types/com/atproto/space/notifyRepoUpdate.d.ts.map +1 -0
  144. package/dist/client/types/com/atproto/space/notifyRepoUpdate.js +30 -0
  145. package/dist/client/types/com/atproto/space/notifyRepoUpdate.js.map +1 -0
  146. package/dist/client/types/com/atproto/space/notifySpaceUpdate.d.ts +41 -0
  147. package/dist/client/types/com/atproto/space/notifySpaceUpdate.d.ts.map +1 -0
  148. package/dist/client/types/com/atproto/space/notifySpaceUpdate.js +28 -0
  149. package/dist/client/types/com/atproto/space/notifySpaceUpdate.js.map +1 -0
  150. package/dist/client/types/com/atproto/space/policy.d.ts +19 -0
  151. package/dist/client/types/com/atproto/space/policy.d.ts.map +1 -0
  152. package/dist/client/types/com/atproto/space/policy.js +18 -0
  153. package/dist/client/types/com/atproto/space/policy.js.map +1 -0
  154. package/dist/client/types/com/atproto/space/putRecord.d.ts +37 -0
  155. package/dist/client/types/com/atproto/space/putRecord.d.ts.map +1 -0
  156. package/dist/client/types/com/atproto/space/putRecord.js +23 -0
  157. package/dist/client/types/com/atproto/space/putRecord.js.map +1 -0
  158. package/dist/client/types/com/atproto/space/removeWriter.d.ts +27 -0
  159. package/dist/client/types/com/atproto/space/removeWriter.d.ts.map +1 -0
  160. package/dist/client/types/com/atproto/space/removeWriter.js +30 -0
  161. package/dist/client/types/com/atproto/space/removeWriter.js.map +1 -0
  162. package/dist/client/types/com/atproto/space/updateSpace.d.ts +36 -0
  163. package/dist/client/types/com/atproto/space/updateSpace.d.ts.map +1 -0
  164. package/dist/client/types/com/atproto/space/updateSpace.js +37 -0
  165. package/dist/client/types/com/atproto/space/updateSpace.js.map +1 -0
  166. package/package.json +7 -7
  167. package/dist/age-assurance.test.d.ts +0 -2
  168. package/dist/age-assurance.test.d.ts.map +0 -1
  169. package/dist/age-assurance.test.js +0 -236
  170. package/dist/age-assurance.test.js.map +0 -1
@@ -0,0 +1,90 @@
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 $Typed } from '../../../../util.js';
7
+ export type QueryParams = {};
8
+ export interface InputSchema {
9
+ space: string;
10
+ repo: string;
11
+ /** Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons. */
12
+ validate?: boolean;
13
+ writes: ($Typed<Create> | $Typed<Update> | $Typed<Delete>)[];
14
+ }
15
+ export interface OutputSchema {
16
+ results?: ($Typed<CreateResult> | $Typed<UpdateResult> | $Typed<DeleteResult>)[];
17
+ }
18
+ export interface CallOptions {
19
+ signal?: AbortSignal;
20
+ headers?: HeadersMap;
21
+ qp?: QueryParams;
22
+ encoding?: 'application/json';
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 RecordNotFoundError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare class RecordAlreadyExistsError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare function toKnownErr(e: any): any;
39
+ /** Operation which creates a new record. */
40
+ export interface Create {
41
+ $type?: 'com.atproto.space.applyWrites#create';
42
+ collection: string;
43
+ rkey?: string;
44
+ value: {
45
+ [_ in string]: unknown;
46
+ };
47
+ }
48
+ export declare function isCreate<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.applyWrites", "create">;
49
+ export declare function validateCreate<V>(v: V): ValidationResult<Create & V>;
50
+ /** Operation which updates an existing record. */
51
+ export interface Update {
52
+ $type?: 'com.atproto.space.applyWrites#update';
53
+ collection: string;
54
+ rkey: string;
55
+ value: {
56
+ [_ in string]: unknown;
57
+ };
58
+ }
59
+ export declare function isUpdate<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.applyWrites", "update">;
60
+ export declare function validateUpdate<V>(v: V): ValidationResult<Update & V>;
61
+ /** Operation which deletes an existing record. */
62
+ export interface Delete {
63
+ $type?: 'com.atproto.space.applyWrites#delete';
64
+ collection: string;
65
+ rkey: string;
66
+ }
67
+ export declare function isDelete<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.applyWrites", "delete">;
68
+ export declare function validateDelete<V>(v: V): ValidationResult<Delete & V>;
69
+ export interface CreateResult {
70
+ $type?: 'com.atproto.space.applyWrites#createResult';
71
+ uri: string;
72
+ cid: string;
73
+ validationStatus?: 'valid' | 'unknown' | (string & {});
74
+ }
75
+ export declare function isCreateResult<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.applyWrites", "createResult">;
76
+ export declare function validateCreateResult<V>(v: V): ValidationResult<CreateResult & V>;
77
+ export interface UpdateResult {
78
+ $type?: 'com.atproto.space.applyWrites#updateResult';
79
+ uri: string;
80
+ cid: string;
81
+ validationStatus?: 'valid' | 'unknown' | (string & {});
82
+ }
83
+ export declare function isUpdateResult<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.applyWrites", "updateResult">;
84
+ export declare function validateUpdateResult<V>(v: V): ValidationResult<UpdateResult & V>;
85
+ export interface DeleteResult {
86
+ $type?: 'com.atproto.space.applyWrites#deleteResult';
87
+ }
88
+ export declare function isDeleteResult<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.applyWrites", "deleteResult">;
89
+ export declare function validateDeleteResult<V>(v: V): ValidationResult<DeleteResult & V>;
90
+ //# sourceMappingURL=applyWrites.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyWrites.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/applyWrites.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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A;IACpD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACvD;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,4CAA4C,CAAA;CACrD;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
@@ -0,0 +1,79 @@
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.applyWrites';
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 RecordNotFoundError extends XRPCError {
17
+ constructor(src) {
18
+ super(src.status, src.error, src.message, src.headers, { cause: src });
19
+ }
20
+ }
21
+ export class RecordAlreadyExistsError 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 === 'RecordNotFound')
31
+ return new RecordNotFoundError(e);
32
+ if (e.error === 'RecordAlreadyExists')
33
+ return new RecordAlreadyExistsError(e);
34
+ }
35
+ return e;
36
+ }
37
+ const hashCreate = 'create';
38
+ export function isCreate(v) {
39
+ return is$typed(v, id, hashCreate);
40
+ }
41
+ export function validateCreate(v) {
42
+ return validate(v, id, hashCreate);
43
+ }
44
+ const hashUpdate = 'update';
45
+ export function isUpdate(v) {
46
+ return is$typed(v, id, hashUpdate);
47
+ }
48
+ export function validateUpdate(v) {
49
+ return validate(v, id, hashUpdate);
50
+ }
51
+ const hashDelete = 'delete';
52
+ export function isDelete(v) {
53
+ return is$typed(v, id, hashDelete);
54
+ }
55
+ export function validateDelete(v) {
56
+ return validate(v, id, hashDelete);
57
+ }
58
+ const hashCreateResult = 'createResult';
59
+ export function isCreateResult(v) {
60
+ return is$typed(v, id, hashCreateResult);
61
+ }
62
+ export function validateCreateResult(v) {
63
+ return validate(v, id, hashCreateResult);
64
+ }
65
+ const hashUpdateResult = 'updateResult';
66
+ export function isUpdateResult(v) {
67
+ return is$typed(v, id, hashUpdateResult);
68
+ }
69
+ export function validateUpdateResult(v) {
70
+ return validate(v, id, hashUpdateResult);
71
+ }
72
+ const hashDeleteResult = 'deleteResult';
73
+ export function isDeleteResult(v) {
74
+ return is$typed(v, id, hashDeleteResult);
75
+ }
76
+ export function validateDeleteResult(v) {
77
+ return validate(v, id, hashDeleteResult);
78
+ }
79
+ //# sourceMappingURL=applyWrites.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyWrites.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/applyWrites.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,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AAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AAMD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,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.applyWrites'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: string\n repo: string\n /** Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons. */\n validate?: boolean\n writes: ($Typed<Create> | $Typed<Update> | $Typed<Delete>)[]\n}\n\nexport interface OutputSchema {\n results?: (\n $Typed<CreateResult> | $Typed<UpdateResult> | $Typed<DeleteResult>\n )[]\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 SpaceNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecordNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecordAlreadyExistsError 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 === 'RecordNotFound') return new RecordNotFoundError(e)\n if (e.error === 'RecordAlreadyExists')\n return new RecordAlreadyExistsError(e)\n }\n\n return e\n}\n\n/** Operation which creates a new record. */\nexport interface Create {\n $type?: 'com.atproto.space.applyWrites#create'\n collection: string\n rkey?: string\n value: { [_ in string]: unknown }\n}\n\nconst hashCreate = 'create'\n\nexport function isCreate<V>(v: V) {\n return is$typed(v, id, hashCreate)\n}\n\nexport function validateCreate<V>(v: V) {\n return validate<Create & V>(v, id, hashCreate)\n}\n\n/** Operation which updates an existing record. */\nexport interface Update {\n $type?: 'com.atproto.space.applyWrites#update'\n collection: string\n rkey: string\n value: { [_ in string]: unknown }\n}\n\nconst hashUpdate = 'update'\n\nexport function isUpdate<V>(v: V) {\n return is$typed(v, id, hashUpdate)\n}\n\nexport function validateUpdate<V>(v: V) {\n return validate<Update & V>(v, id, hashUpdate)\n}\n\n/** Operation which deletes an existing record. */\nexport interface Delete {\n $type?: 'com.atproto.space.applyWrites#delete'\n collection: string\n rkey: string\n}\n\nconst hashDelete = 'delete'\n\nexport function isDelete<V>(v: V) {\n return is$typed(v, id, hashDelete)\n}\n\nexport function validateDelete<V>(v: V) {\n return validate<Delete & V>(v, id, hashDelete)\n}\n\nexport interface CreateResult {\n $type?: 'com.atproto.space.applyWrites#createResult'\n uri: string\n cid: string\n validationStatus?: 'valid' | 'unknown' | (string & {})\n}\n\nconst hashCreateResult = 'createResult'\n\nexport function isCreateResult<V>(v: V) {\n return is$typed(v, id, hashCreateResult)\n}\n\nexport function validateCreateResult<V>(v: V) {\n return validate<CreateResult & V>(v, id, hashCreateResult)\n}\n\nexport interface UpdateResult {\n $type?: 'com.atproto.space.applyWrites#updateResult'\n uri: string\n cid: string\n validationStatus?: 'valid' | 'unknown' | (string & {})\n}\n\nconst hashUpdateResult = 'updateResult'\n\nexport function isUpdateResult<V>(v: V) {\n return is$typed(v, id, hashUpdateResult)\n}\n\nexport function validateUpdateResult<V>(v: V) {\n return validate<UpdateResult & V>(v, id, hashUpdateResult)\n}\n\nexport interface DeleteResult {\n $type?: 'com.atproto.space.applyWrites#deleteResult'\n}\n\nconst hashDeleteResult = 'deleteResult'\n\nexport function isDeleteResult<V>(v: V) {\n return is$typed(v, id, hashDeleteResult)\n}\n\nexport function validateDeleteResult<V>(v: V) {\n return validate<DeleteResult & V>(v, id, hashDeleteResult)\n}\n"]}
@@ -0,0 +1,72 @@
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
+ export interface InputSchema {
8
+ space: string;
9
+ /** P-256 did:key that the credential is bound to. */
10
+ credentialKey: string;
11
+ /** Obtained from getDelegationToken. */
12
+ delegationToken?: string;
13
+ clientAttestation?: string;
14
+ notify?: Notify;
15
+ }
16
+ export interface OutputSchema {
17
+ credential: string;
18
+ /** The space's current revision. Omitted before the space's first update. */
19
+ spaceRev?: string;
20
+ }
21
+ export interface CallOptions {
22
+ signal?: AbortSignal;
23
+ headers?: HeadersMap;
24
+ qp?: QueryParams;
25
+ encoding?: 'application/json';
26
+ }
27
+ export interface Response {
28
+ success: boolean;
29
+ headers: HeadersMap;
30
+ data: OutputSchema;
31
+ }
32
+ export declare class SpaceNotFoundError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare class SpaceDeletedError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare class AccountNotAuthorizedError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
41
+ export declare class AppNotAuthorizedError extends XRPCError {
42
+ constructor(src: XRPCError);
43
+ }
44
+ export declare class NotAuthorizedError extends XRPCError {
45
+ constructor(src: XRPCError);
46
+ }
47
+ export declare class InvalidDelegationTokenError extends XRPCError {
48
+ constructor(src: XRPCError);
49
+ }
50
+ export declare class InvalidClientAttestationError extends XRPCError {
51
+ constructor(src: XRPCError);
52
+ }
53
+ export declare class RegistrationNotConfirmedError extends XRPCError {
54
+ constructor(src: XRPCError);
55
+ }
56
+ export declare class RepoTakendownError extends XRPCError {
57
+ constructor(src: XRPCError);
58
+ }
59
+ export declare class RepoDeactivatedError extends XRPCError {
60
+ constructor(src: XRPCError);
61
+ }
62
+ export declare function toKnownErr(e: any): any;
63
+ export interface Notify {
64
+ $type?: 'com.atproto.space.authorizeSpaceSync#notify';
65
+ /** Base HTTPS URL that notification methods are called against. */
66
+ endpoint: string;
67
+ /** Opaque secret, included in the body of each request to the endpoint. The endpoint and token together identify the registration, so the token should stay the same across authorizations. */
68
+ token: string;
69
+ }
70
+ export declare function isNotify<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.space.authorizeSpaceSync", "notify">;
71
+ export declare function validateNotify<V>(v: V): ValidationResult<Notify & V>;
72
+ //# sourceMappingURL=authorizeSpaceSync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorizeSpaceSync.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/authorizeSpaceSync.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,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAA;IACrB,wCAAwC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE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F;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAmBhC;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,6CAA6C,CAAA;IACrD,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAA;IAChB,+LAA+L;IAC/L,KAAK,EAAE,MAAM,CAAA;CACd;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wGAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
@@ -0,0 +1,93 @@
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.authorizeSpaceSync';
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 SpaceDeletedError extends XRPCError {
17
+ constructor(src) {
18
+ super(src.status, src.error, src.message, src.headers, { cause: src });
19
+ }
20
+ }
21
+ export class AccountNotAuthorizedError extends XRPCError {
22
+ constructor(src) {
23
+ super(src.status, src.error, src.message, src.headers, { cause: src });
24
+ }
25
+ }
26
+ export class AppNotAuthorizedError extends XRPCError {
27
+ constructor(src) {
28
+ super(src.status, src.error, src.message, src.headers, { cause: src });
29
+ }
30
+ }
31
+ export class NotAuthorizedError extends XRPCError {
32
+ constructor(src) {
33
+ super(src.status, src.error, src.message, src.headers, { cause: src });
34
+ }
35
+ }
36
+ export class InvalidDelegationTokenError extends XRPCError {
37
+ constructor(src) {
38
+ super(src.status, src.error, src.message, src.headers, { cause: src });
39
+ }
40
+ }
41
+ export class InvalidClientAttestationError extends XRPCError {
42
+ constructor(src) {
43
+ super(src.status, src.error, src.message, src.headers, { cause: src });
44
+ }
45
+ }
46
+ export class RegistrationNotConfirmedError extends XRPCError {
47
+ constructor(src) {
48
+ super(src.status, src.error, src.message, src.headers, { cause: src });
49
+ }
50
+ }
51
+ export class RepoTakendownError extends XRPCError {
52
+ constructor(src) {
53
+ super(src.status, src.error, src.message, src.headers, { cause: src });
54
+ }
55
+ }
56
+ export class RepoDeactivatedError extends XRPCError {
57
+ constructor(src) {
58
+ super(src.status, src.error, src.message, src.headers, { cause: src });
59
+ }
60
+ }
61
+ export function toKnownErr(e) {
62
+ if (e instanceof XRPCError) {
63
+ if (e.error === 'SpaceNotFound')
64
+ return new SpaceNotFoundError(e);
65
+ if (e.error === 'SpaceDeleted')
66
+ return new SpaceDeletedError(e);
67
+ if (e.error === 'AccountNotAuthorized')
68
+ return new AccountNotAuthorizedError(e);
69
+ if (e.error === 'AppNotAuthorized')
70
+ return new AppNotAuthorizedError(e);
71
+ if (e.error === 'NotAuthorized')
72
+ return new NotAuthorizedError(e);
73
+ if (e.error === 'InvalidDelegationToken')
74
+ return new InvalidDelegationTokenError(e);
75
+ if (e.error === 'InvalidClientAttestation')
76
+ return new InvalidClientAttestationError(e);
77
+ if (e.error === 'RegistrationNotConfirmed')
78
+ return new RegistrationNotConfirmedError(e);
79
+ if (e.error === 'RepoTakendown')
80
+ return new RepoTakendownError(e);
81
+ if (e.error === 'RepoDeactivated')
82
+ return new RepoDeactivatedError(e);
83
+ }
84
+ return e;
85
+ }
86
+ const hashNotify = 'notify';
87
+ export function isNotify(v) {
88
+ return is$typed(v, id, hashNotify);
89
+ }
90
+ export function validateNotify(v) {
91
+ return validate(v, id, hashNotify);
92
+ }
93
+ //# sourceMappingURL=authorizeSpaceSync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorizeSpaceSync.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/authorizeSpaceSync.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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AAC,CAAC,CAAA;IACvE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAUD,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","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.authorizeSpaceSync'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: string\n /** P-256 did:key that the credential is bound to. */\n credentialKey: string\n /** Obtained from getDelegationToken. */\n delegationToken?: string\n clientAttestation?: string\n notify?: Notify\n}\n\nexport interface OutputSchema {\n credential: string\n /** The space's current revision. Omitted before the space's first update. */\n spaceRev?: 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 SpaceNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class SpaceDeletedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class AccountNotAuthorizedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class AppNotAuthorizedError 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 class InvalidDelegationTokenError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidClientAttestationError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RegistrationNotConfirmedError 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 === 'SpaceDeleted') return new SpaceDeletedError(e)\n if (e.error === 'AccountNotAuthorized')\n return new AccountNotAuthorizedError(e)\n if (e.error === 'AppNotAuthorized') return new AppNotAuthorizedError(e)\n if (e.error === 'NotAuthorized') return new NotAuthorizedError(e)\n if (e.error === 'InvalidDelegationToken')\n return new InvalidDelegationTokenError(e)\n if (e.error === 'InvalidClientAttestation')\n return new InvalidClientAttestationError(e)\n if (e.error === 'RegistrationNotConfirmed')\n return new RegistrationNotConfirmedError(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\nexport interface Notify {\n $type?: 'com.atproto.space.authorizeSpaceSync#notify'\n /** Base HTTPS URL that notification methods are called against. */\n endpoint: string\n /** Opaque secret, included in the body of each request to the endpoint. The endpoint and token together identify the registration, so the token should stay the same across authorizations. */\n token: string\n}\n\nconst hashNotify = 'notify'\n\nexport function isNotify<V>(v: V) {\n return is$typed(v, id, hashNotify)\n}\n\nexport function validateNotify<V>(v: V) {\n return validate<Notify & V>(v, id, hashNotify)\n}\n"]}
@@ -0,0 +1,24 @@
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
+ repo: string;
9
+ }
10
+ export interface OutputSchema {
11
+ }
12
+ export interface CallOptions {
13
+ signal?: AbortSignal;
14
+ headers?: HeadersMap;
15
+ qp?: QueryParams;
16
+ encoding?: 'application/json';
17
+ }
18
+ export interface Response {
19
+ success: boolean;
20
+ headers: HeadersMap;
21
+ data: OutputSchema;
22
+ }
23
+ export declare function toKnownErr(e: any): any;
24
+ //# sourceMappingURL=clearRecords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clearRecords.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/clearRecords.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,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,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.clearRecords';
11
+ export function toKnownErr(e) {
12
+ return e;
13
+ }
14
+ //# sourceMappingURL=clearRecords.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clearRecords.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/clearRecords.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;AAwB3C,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.clearRecords'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: string\n repo: 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 function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,26 @@
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
+ token: string;
9
+ challenge: string;
10
+ }
11
+ export interface OutputSchema {
12
+ challenge: string;
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 function toKnownErr(e: any): any;
26
+ //# sourceMappingURL=confirmRegistration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirmRegistration.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/confirmRegistration.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,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,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.confirmRegistration';
11
+ export function toKnownErr(e) {
12
+ return e;
13
+ }
14
+ //# sourceMappingURL=confirmRegistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirmRegistration.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/confirmRegistration.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,uCAAuC,CAAA;AA2BlD,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.confirmRegistration'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: string\n token: string\n challenge: string\n}\n\nexport interface OutputSchema {\n challenge: 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 function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,41 @@
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
+ /** Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. */
12
+ validate?: boolean;
13
+ /** The record itself. Must contain a $type field. */
14
+ record: {
15
+ [_ in string]: unknown;
16
+ };
17
+ }
18
+ export interface OutputSchema {
19
+ uri: string;
20
+ cid: string;
21
+ validationStatus?: 'valid' | 'unknown' | (string & {});
22
+ }
23
+ export interface CallOptions {
24
+ signal?: AbortSignal;
25
+ headers?: HeadersMap;
26
+ qp?: QueryParams;
27
+ encoding?: 'application/json';
28
+ }
29
+ export interface Response {
30
+ success: boolean;
31
+ headers: HeadersMap;
32
+ data: OutputSchema;
33
+ }
34
+ export declare class SpaceNotFoundError extends XRPCError {
35
+ constructor(src: XRPCError);
36
+ }
37
+ export declare class RecordAlreadyExistsError extends XRPCError {
38
+ constructor(src: XRPCError);
39
+ }
40
+ export declare function toKnownErr(e: any): any;
41
+ //# sourceMappingURL=createRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/createRecord.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,CAAC,EAAE,MAAM,CAAA;IACb,wJAAwJ;IACxJ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qDAAqD;IACrD,MAAM,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;CACnC;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACvD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,wBAAyB,SAAQ,SAAS;IACrD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAQhC"}
@@ -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.createRecord';
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 RecordAlreadyExistsError 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 === 'RecordAlreadyExists')
26
+ return new RecordAlreadyExistsError(e);
27
+ }
28
+ return e;
29
+ }
30
+ //# sourceMappingURL=createRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRecord.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/createRecord.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;AAkC3C,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,wBAAyB,SAAQ,SAAS;IACrD,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,qBAAqB;YACnC,OAAO,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAA;IAC1C,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.createRecord'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n space: string\n repo: string\n collection: string\n rkey?: string\n /** Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. */\n validate?: boolean\n /** The record itself. Must contain a $type field. */\n record: { [_ in string]: unknown }\n}\n\nexport interface OutputSchema {\n uri: string\n cid: string\n validationStatus?: 'valid' | 'unknown' | (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 SpaceNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecordAlreadyExistsError 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 === 'RecordAlreadyExists')\n return new RecordAlreadyExistsError(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
+ import { type $Typed } from '../../../../util.js';
6
+ import type * as ComAtprotoPersonalspacePolicy from '../personalspace/policy.js';
7
+ import type * as ComAtprotoMemberspacePolicy from '../memberspace/policy.js';
8
+ import type * as ComAtprotoManagedspacePolicy from '../managedspace/policy.js';
9
+ export type QueryParams = {};
10
+ export interface InputSchema {
11
+ spaceType: string;
12
+ /** Space key. Generated as a TID if not provided. */
13
+ skey?: string;
14
+ policy: $Typed<ComAtprotoPersonalspacePolicy.Main> | $Typed<ComAtprotoMemberspacePolicy.Main> | $Typed<ComAtprotoManagedspacePolicy.Main> | {
15
+ $type: string;
16
+ };
17
+ }
18
+ export interface OutputSchema {
19
+ space: string;
20
+ }
21
+ export interface CallOptions {
22
+ signal?: AbortSignal;
23
+ headers?: HeadersMap;
24
+ qp?: QueryParams;
25
+ encoding?: 'application/json';
26
+ }
27
+ export interface Response {
28
+ success: boolean;
29
+ headers: HeadersMap;
30
+ data: OutputSchema;
31
+ }
32
+ export declare class SpaceAlreadyExistsError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare class UnsupportedPolicyError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare function toKnownErr(e: any): any;
39
+ //# sourceMappingURL=createSpace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSpace.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/space/createSpace.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI1D,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,6BAA6B,MAAM,4BAA4B,CAAA;AAChF,OAAO,KAAK,KAAK,2BAA2B,MAAM,0BAA0B,CAAA;AAC5E,OAAO,KAAK,KAAK,4BAA4B,MAAM,2BAA2B,CAAA;AAM9E,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EACF,MAAM,CAAC,6BAA6B,CAAC,IAAI,CAAC,GAC1C,MAAM,CAAC,2BAA2B,CAAC,IAAI,CAAC,GACxC,MAAM,CAAC,4BAA4B,CAAC,IAAI,CAAC,GACzC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CACtB;AAED,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;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,CA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