@atproto/api 0.6.24 → 0.7.1

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 (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/definitions/labels.json +6 -0
  3. package/definitions/locale/en/labels.json +14 -0
  4. package/definitions/moderation-behaviors.d.ts +1 -0
  5. package/definitions/post-moderation-behaviors.json +118 -0
  6. package/definitions/profile-moderation-behaviors.json +48 -0
  7. package/dist/client/index.d.ts +12 -0
  8. package/dist/client/lexicons.d.ts +134 -0
  9. package/dist/client/types/com/atproto/admin/deleteAccount.d.ts +17 -0
  10. package/dist/client/types/com/atproto/temp/importRepo.d.ts +16 -0
  11. package/dist/client/types/com/atproto/temp/pushBlob.d.ts +15 -0
  12. package/dist/client/types/com/atproto/temp/transferAccount.d.ts +48 -0
  13. package/dist/index.js +636 -326
  14. package/dist/index.js.map +3 -3
  15. package/dist/moderation/types.d.ts +1 -1
  16. package/docs/labels.md +16 -0
  17. package/docs/moderation-behaviors/posts.md +159 -92
  18. package/docs/moderation-behaviors/profiles.md +68 -0
  19. package/package.json +2 -2
  20. package/scripts/docs/labels.mjs +27 -27
  21. package/scripts/docs/post-moderation-behaviors.mjs +43 -48
  22. package/src/client/index.ts +52 -0
  23. package/src/client/lexicons.ts +156 -0
  24. package/src/client/types/com/atproto/admin/deleteAccount.ts +32 -0
  25. package/src/client/types/com/atproto/temp/importRepo.ts +33 -0
  26. package/src/client/types/com/atproto/temp/pushBlob.ts +32 -0
  27. package/src/client/types/com/atproto/temp/transferAccount.ts +92 -0
  28. package/src/moderation/accumulator.ts +5 -0
  29. package/src/moderation/const/label-groups.ts +6 -1
  30. package/src/moderation/const/labels.ts +31 -0
  31. package/src/moderation/types.ts +1 -1
  32. package/src/rich-text/detection.ts +1 -1
  33. package/tests/rich-text-detection.test.ts +2 -0
  34. package/tests/util/moderation-behavior.ts +4 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atproto/api
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1944](https://github.com/bluesky-social/atproto/pull/1944) [`60deea17`](https://github.com/bluesky-social/atproto/commit/60deea17622f7c574c18432a55ced4e1cdc1b3a1) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Strip trailing colon from URLs in rich-text facet detection.
8
+
9
+ ## 0.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#1937](https://github.com/bluesky-social/atproto/pull/1937) [`45352f9b`](https://github.com/bluesky-social/atproto/commit/45352f9b6d02aa405be94e9102424d983912ca5d) Thanks [@pfrazee](https://github.com/pfrazee)! - Add the !no-unauthenticated label to the moderation SDK
14
+
3
15
  ## 0.6.24
4
16
 
5
17
  ### Patch Changes
@@ -20,6 +20,12 @@
20
20
  "preferences": ["warn"],
21
21
  "flags": [],
22
22
  "onwarn": "blur"
23
+ },
24
+ {
25
+ "id": "!no-unauthenticated",
26
+ "preferences": ["hide"],
27
+ "flags": ["no-override", "unauthed"],
28
+ "onwarn": "blur"
23
29
  }
24
30
  ]
25
31
  },
@@ -41,6 +41,20 @@
41
41
  "description": "This content has received a general warning from moderators."
42
42
  }
43
43
  },
44
+ "!no-unauthenticated": {
45
+ "settings": {
46
+ "name": "Sign-in Required",
47
+ "description": "This user has requested that their account only be shown to signed-in users."
48
+ },
49
+ "account": {
50
+ "name": "Sign-in Required",
51
+ "description": "This user has requested that their account only be shown to signed-in users."
52
+ },
53
+ "content": {
54
+ "name": "Sign-in Required",
55
+ "description": "This user has requested that their content only be shown to signed-in users."
56
+ }
57
+ },
44
58
  "dmca-violation": {
45
59
  "settings": {
46
60
  "name": "Copyright Violation",
@@ -41,6 +41,7 @@ export interface ModerationBehaviors {
41
41
  configurations: Record<
42
42
  string,
43
43
  {
44
+ authed?: boolean
44
45
  adultContentEnabled: boolean
45
46
  settings: Record<string, LabelPreference>
46
47
  }
@@ -89,6 +89,9 @@
89
89
  "porn-warn-intolerant-hide": {
90
90
  "adultContentEnabled": true,
91
91
  "settings": { "porn": "warn", "intolerant": "hide" }
92
+ },
93
+ "logged-out": {
94
+ "authed": false
92
95
  }
93
96
  },
94
97
  "scenarios": {
@@ -248,6 +251,121 @@
248
251
  }
249
252
  },
250
253
 
254
+ "Imperative label ('!no-unauthenticated') on post when logged out": {
255
+ "cfg": "logged-out",
256
+ "subject": "post",
257
+ "author": "alice",
258
+ "labels": { "post": ["!no-unauthenticated"] },
259
+ "behaviors": {
260
+ "content": {
261
+ "cause": "label:!no-unauthenticated",
262
+ "filter": true,
263
+ "blur": true,
264
+ "noOverride": true
265
+ }
266
+ }
267
+ },
268
+ "Imperative label ('!no-unauthenticated') on author profile when logged out": {
269
+ "cfg": "logged-out",
270
+ "subject": "post",
271
+ "author": "alice",
272
+ "labels": { "profile": ["!no-unauthenticated"] },
273
+ "behaviors": {
274
+ "avatar": {
275
+ "cause": "label:!no-unauthenticated",
276
+ "blur": true,
277
+ "noOverride": true
278
+ }
279
+ }
280
+ },
281
+ "Imperative label ('!no-unauthenticated') on author account when logged out": {
282
+ "cfg": "logged-out",
283
+ "subject": "post",
284
+ "author": "alice",
285
+ "labels": { "account": ["!no-unauthenticated"] },
286
+ "behaviors": {
287
+ "content": {
288
+ "cause": "label:!no-unauthenticated",
289
+ "filter": true,
290
+ "blur": true,
291
+ "noOverride": true
292
+ },
293
+ "avatar": {
294
+ "cause": "label:!no-unauthenticated",
295
+ "blur": true,
296
+ "noOverride": true
297
+ }
298
+ }
299
+ },
300
+ "Imperative label ('!no-unauthenticated') on quoted post when logged out": {
301
+ "cfg": "logged-out",
302
+ "subject": "post",
303
+ "author": "alice",
304
+ "quoteAuthor": "alice",
305
+ "labels": { "quotedPost": ["!no-unauthenticated"] },
306
+ "behaviors": {
307
+ "content": { "cause": "label:!no-unauthenticated", "filter": true },
308
+ "embed": {
309
+ "cause": "label:!no-unauthenticated",
310
+ "blur": true,
311
+ "noOverride": true
312
+ }
313
+ }
314
+ },
315
+ "Imperative label ('!no-unauthenticated') on quoted author account when logged out": {
316
+ "cfg": "logged-out",
317
+ "subject": "post",
318
+ "author": "alice",
319
+ "quoteAuthor": "alice",
320
+ "labels": { "quotedAccount": ["!no-unauthenticated"] },
321
+ "behaviors": {
322
+ "content": { "cause": "label:!no-unauthenticated", "filter": true },
323
+ "embed": {
324
+ "cause": "label:!no-unauthenticated",
325
+ "blur": true,
326
+ "noOverride": true
327
+ }
328
+ }
329
+ },
330
+
331
+ "Imperative label ('!no-unauthenticated') on post when logged in": {
332
+ "cfg": "none",
333
+ "subject": "post",
334
+ "author": "alice",
335
+ "labels": { "post": ["!no-unauthenticated"] },
336
+ "behaviors": {}
337
+ },
338
+ "Imperative label ('!no-unauthenticated') on author profile when logged in": {
339
+ "cfg": "none",
340
+ "subject": "post",
341
+ "author": "alice",
342
+ "labels": { "profile": ["!no-unauthenticated"] },
343
+ "behaviors": {}
344
+ },
345
+ "Imperative label ('!no-unauthenticated') on author account when logged in": {
346
+ "cfg": "none",
347
+ "subject": "post",
348
+ "author": "alice",
349
+ "labels": { "account": ["!no-unauthenticated"] },
350
+ "behaviors": {}
351
+ },
352
+ "Imperative label ('!no-unauthenticated') on quoted post when logged in": {
353
+ "cfg": "none",
354
+ "subject": "post",
355
+ "author": "alice",
356
+ "quoteAuthor": "alice",
357
+ "labels": { "quotedPost": ["!no-unauthenticated"] },
358
+ "behaviors": {}
359
+ },
360
+ "Imperative label ('!no-unauthenticated') on quoted author account when logged in": {
361
+ "cfg": "none",
362
+ "subject": "post",
363
+ "author": "alice",
364
+ "quoteAuthor": "alice",
365
+ "labels": { "quotedAccount": ["!no-unauthenticated"] },
366
+ "behaviors": {}
367
+ },
368
+
251
369
  "Blur label ('intolerant') on post (hide)": {
252
370
  "cfg": "intolerant-hide",
253
371
  "subject": "post",
@@ -94,6 +94,9 @@
94
94
  },
95
95
  "intolerant-hide-scam-warn": {
96
96
  "settings": { "intolerant": "hide", "scam": "hide" }
97
+ },
98
+ "logged-out": {
99
+ "authed": false
97
100
  }
98
101
  },
99
102
  "scenarios": {
@@ -161,6 +164,51 @@
161
164
  }
162
165
  },
163
166
 
167
+ "Imperative label ('!no-unauthenticated') on account when logged out": {
168
+ "cfg": "logged-out",
169
+ "subject": "profile",
170
+ "author": "alice",
171
+ "labels": { "account": ["!no-unauthenticated"] },
172
+ "behaviors": {
173
+ "account": {
174
+ "cause": "label:!no-unauthenticated",
175
+ "filter": true,
176
+ "blur": true,
177
+ "noOverride": true
178
+ },
179
+ "avatar": { "blur": true, "noOverride": true }
180
+ }
181
+ },
182
+ "Imperative label ('!no-unauthenticated') on profile when logged out": {
183
+ "cfg": "logged-out",
184
+ "subject": "profile",
185
+ "author": "alice",
186
+ "labels": { "profile": ["!no-unauthenticated"] },
187
+ "behaviors": {
188
+ "profile": {
189
+ "cause": "label:!no-unauthenticated",
190
+ "blur": true,
191
+ "noOverride": true
192
+ },
193
+ "avatar": { "blur": true, "noOverride": true }
194
+ }
195
+ },
196
+
197
+ "Imperative label ('!no-unauthenticated') on account when logged in": {
198
+ "cfg": "none",
199
+ "subject": "profile",
200
+ "author": "alice",
201
+ "labels": { "account": ["!no-unauthenticated"] },
202
+ "behaviors": {}
203
+ },
204
+ "Imperative label ('!no-unauthenticated') on profile when logged in": {
205
+ "cfg": "none",
206
+ "subject": "profile",
207
+ "author": "alice",
208
+ "labels": { "profile": ["!no-unauthenticated"] },
209
+ "behaviors": {}
210
+ },
211
+
164
212
  "Blur label ('intolerant') on account (hide)": {
165
213
  "cfg": "intolerant-hide",
166
214
  "subject": "profile",
@@ -1,4 +1,5 @@
1
1
  import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount';
2
3
  import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
3
4
  import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
4
5
  import * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent';
@@ -61,6 +62,9 @@ import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
61
62
  import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
62
63
  import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
63
64
  import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
65
+ import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo';
66
+ import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob';
67
+ import * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount';
64
68
  import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences';
65
69
  import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
66
70
  import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';
@@ -118,6 +122,7 @@ import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced
118
122
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
119
123
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
120
124
  export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs';
125
+ export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount';
121
126
  export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
122
127
  export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
123
128
  export * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent';
@@ -186,6 +191,9 @@ export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOf
186
191
  export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
187
192
  export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos';
188
193
  export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
194
+ export * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo';
195
+ export * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob';
196
+ export * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount';
189
197
  export * as AppBskyActorDefs from './types/app/bsky/actor/defs';
190
198
  export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences';
191
199
  export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
@@ -301,6 +309,7 @@ export declare class AtprotoNS {
301
309
  export declare class AdminNS {
302
310
  _service: AtpServiceClient;
303
311
  constructor(service: AtpServiceClient);
312
+ deleteAccount(data?: ComAtprotoAdminDeleteAccount.InputSchema, opts?: ComAtprotoAdminDeleteAccount.CallOptions): Promise<ComAtprotoAdminDeleteAccount.Response>;
304
313
  disableAccountInvites(data?: ComAtprotoAdminDisableAccountInvites.InputSchema, opts?: ComAtprotoAdminDisableAccountInvites.CallOptions): Promise<ComAtprotoAdminDisableAccountInvites.Response>;
305
314
  disableInviteCodes(data?: ComAtprotoAdminDisableInviteCodes.InputSchema, opts?: ComAtprotoAdminDisableInviteCodes.CallOptions): Promise<ComAtprotoAdminDisableInviteCodes.Response>;
306
315
  emitModerationEvent(data?: ComAtprotoAdminEmitModerationEvent.InputSchema, opts?: ComAtprotoAdminEmitModerationEvent.CallOptions): Promise<ComAtprotoAdminEmitModerationEvent.Response>;
@@ -391,6 +400,9 @@ export declare class TempNS {
391
400
  _service: AtpServiceClient;
392
401
  constructor(service: AtpServiceClient);
393
402
  fetchLabels(params?: ComAtprotoTempFetchLabels.QueryParams, opts?: ComAtprotoTempFetchLabels.CallOptions): Promise<ComAtprotoTempFetchLabels.Response>;
403
+ importRepo(data?: ComAtprotoTempImportRepo.InputSchema, opts?: ComAtprotoTempImportRepo.CallOptions): Promise<ComAtprotoTempImportRepo.Response>;
404
+ pushBlob(data?: ComAtprotoTempPushBlob.InputSchema, opts?: ComAtprotoTempPushBlob.CallOptions): Promise<ComAtprotoTempPushBlob.Response>;
405
+ transferAccount(data?: ComAtprotoTempTransferAccount.InputSchema, opts?: ComAtprotoTempTransferAccount.CallOptions): Promise<ComAtprotoTempTransferAccount.Response>;
394
406
  }
395
407
  export declare class AppNS {
396
408
  _service: AtpServiceClient;
@@ -709,6 +709,29 @@ export declare const schemaDict: {
709
709
  };
710
710
  };
711
711
  };
712
+ ComAtprotoAdminDeleteAccount: {
713
+ lexicon: number;
714
+ id: string;
715
+ defs: {
716
+ main: {
717
+ type: string;
718
+ description: string;
719
+ input: {
720
+ encoding: string;
721
+ schema: {
722
+ type: string;
723
+ required: string[];
724
+ properties: {
725
+ did: {
726
+ type: string;
727
+ format: string;
728
+ };
729
+ };
730
+ };
731
+ };
732
+ };
733
+ };
734
+ };
712
735
  ComAtprotoAdminDisableAccountInvites: {
713
736
  lexicon: number;
714
737
  id: string;
@@ -3656,6 +3679,113 @@ export declare const schemaDict: {
3656
3679
  };
3657
3680
  };
3658
3681
  };
3682
+ ComAtprotoTempImportRepo: {
3683
+ lexicon: number;
3684
+ id: string;
3685
+ defs: {
3686
+ main: {
3687
+ type: string;
3688
+ description: string;
3689
+ parameters: {
3690
+ type: string;
3691
+ required: string[];
3692
+ properties: {
3693
+ did: {
3694
+ type: string;
3695
+ format: string;
3696
+ description: string;
3697
+ };
3698
+ };
3699
+ };
3700
+ input: {
3701
+ encoding: string;
3702
+ };
3703
+ output: {
3704
+ encoding: string;
3705
+ };
3706
+ };
3707
+ };
3708
+ };
3709
+ ComAtprotoTempPushBlob: {
3710
+ lexicon: number;
3711
+ id: string;
3712
+ defs: {
3713
+ main: {
3714
+ type: string;
3715
+ description: string;
3716
+ parameters: {
3717
+ type: string;
3718
+ required: string[];
3719
+ properties: {
3720
+ did: {
3721
+ type: string;
3722
+ format: string;
3723
+ description: string;
3724
+ };
3725
+ };
3726
+ };
3727
+ input: {
3728
+ encoding: string;
3729
+ };
3730
+ };
3731
+ };
3732
+ };
3733
+ ComAtprotoTempTransferAccount: {
3734
+ lexicon: number;
3735
+ id: string;
3736
+ defs: {
3737
+ main: {
3738
+ type: string;
3739
+ description: string;
3740
+ input: {
3741
+ encoding: string;
3742
+ schema: {
3743
+ type: string;
3744
+ required: string[];
3745
+ properties: {
3746
+ handle: {
3747
+ type: string;
3748
+ format: string;
3749
+ };
3750
+ did: {
3751
+ type: string;
3752
+ format: string;
3753
+ };
3754
+ plcOp: {
3755
+ type: string;
3756
+ };
3757
+ };
3758
+ };
3759
+ };
3760
+ output: {
3761
+ encoding: string;
3762
+ schema: {
3763
+ type: string;
3764
+ required: string[];
3765
+ properties: {
3766
+ accessJwt: {
3767
+ type: string;
3768
+ };
3769
+ refreshJwt: {
3770
+ type: string;
3771
+ };
3772
+ handle: {
3773
+ type: string;
3774
+ format: string;
3775
+ };
3776
+ did: {
3777
+ type: string;
3778
+ format: string;
3779
+ };
3780
+ };
3781
+ };
3782
+ };
3783
+ errors: {
3784
+ name: string;
3785
+ }[];
3786
+ };
3787
+ };
3788
+ };
3659
3789
  AppBskyActorDefs: {
3660
3790
  lexicon: number;
3661
3791
  id: string;
@@ -7214,6 +7344,7 @@ export declare const schemas: LexiconDoc[];
7214
7344
  export declare const lexicons: Lexicons;
7215
7345
  export declare const ids: {
7216
7346
  ComAtprotoAdminDefs: string;
7347
+ ComAtprotoAdminDeleteAccount: string;
7217
7348
  ComAtprotoAdminDisableAccountInvites: string;
7218
7349
  ComAtprotoAdminDisableInviteCodes: string;
7219
7350
  ComAtprotoAdminEmitModerationEvent: string;
@@ -7282,6 +7413,9 @@ export declare const ids: {
7282
7413
  ComAtprotoSyncRequestCrawl: string;
7283
7414
  ComAtprotoSyncSubscribeRepos: string;
7284
7415
  ComAtprotoTempFetchLabels: string;
7416
+ ComAtprotoTempImportRepo: string;
7417
+ ComAtprotoTempPushBlob: string;
7418
+ ComAtprotoTempTransferAccount: string;
7285
7419
  AppBskyActorDefs: string;
7286
7420
  AppBskyActorGetPreferences: string;
7287
7421
  AppBskyActorGetProfile: string;
@@ -0,0 +1,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ did: string;
6
+ [k: string]: unknown;
7
+ }
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ qp?: QueryParams;
11
+ encoding: 'application/json';
12
+ }
13
+ export interface Response {
14
+ success: boolean;
15
+ headers: Headers;
16
+ }
17
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,16 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ did: string;
4
+ }
5
+ export declare type InputSchema = string | Uint8Array;
6
+ export interface CallOptions {
7
+ headers?: Headers;
8
+ qp?: QueryParams;
9
+ encoding: 'application/vnd.ipld.car';
10
+ }
11
+ export interface Response {
12
+ success: boolean;
13
+ headers: Headers;
14
+ data: Uint8Array;
15
+ }
16
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,15 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ did: string;
4
+ }
5
+ export declare type InputSchema = string | Uint8Array;
6
+ export interface CallOptions {
7
+ headers?: Headers;
8
+ qp?: QueryParams;
9
+ encoding: string;
10
+ }
11
+ export interface Response {
12
+ success: boolean;
13
+ headers: Headers;
14
+ }
15
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,48 @@
1
+ import { Headers, XRPCError } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ handle: string;
6
+ did: string;
7
+ plcOp: {};
8
+ [k: string]: unknown;
9
+ }
10
+ export interface OutputSchema {
11
+ accessJwt: string;
12
+ refreshJwt: string;
13
+ handle: string;
14
+ did: string;
15
+ [k: string]: unknown;
16
+ }
17
+ export interface CallOptions {
18
+ headers?: Headers;
19
+ qp?: QueryParams;
20
+ encoding: 'application/json';
21
+ }
22
+ export interface Response {
23
+ success: boolean;
24
+ headers: Headers;
25
+ data: OutputSchema;
26
+ }
27
+ export declare class InvalidHandleError extends XRPCError {
28
+ constructor(src: XRPCError);
29
+ }
30
+ export declare class InvalidPasswordError extends XRPCError {
31
+ constructor(src: XRPCError);
32
+ }
33
+ export declare class InvalidInviteCodeError extends XRPCError {
34
+ constructor(src: XRPCError);
35
+ }
36
+ export declare class HandleNotAvailableError extends XRPCError {
37
+ constructor(src: XRPCError);
38
+ }
39
+ export declare class UnsupportedDomainError extends XRPCError {
40
+ constructor(src: XRPCError);
41
+ }
42
+ export declare class UnresolvableDidError extends XRPCError {
43
+ constructor(src: XRPCError);
44
+ }
45
+ export declare class IncompatibleDidDocError extends XRPCError {
46
+ constructor(src: XRPCError);
47
+ }
48
+ export declare function toKnownErr(e: any): any;