@atproto/api 0.6.1 → 0.6.2

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 (122) hide show
  1. package/dist/agent.d.ts +25 -44
  2. package/dist/bsky-agent.d.ts +43 -62
  3. package/dist/client/lexicons.d.ts +18 -0
  4. package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
  5. package/dist/client/types/app/bsky/actor/defs.d.ts +65 -74
  6. package/dist/client/types/app/bsky/actor/ref.d.ts +28 -0
  7. package/dist/client/types/app/bsky/actor/search.d.ts +22 -0
  8. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +20 -0
  9. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +40 -0
  10. package/dist/client/types/app/bsky/embed/external.d.ts +23 -23
  11. package/dist/client/types/app/bsky/embed/images.d.ts +20 -20
  12. package/dist/client/types/app/bsky/embed/record.d.ts +41 -53
  13. package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +20 -26
  14. package/dist/client/types/app/bsky/feed/defs.d.ts +115 -141
  15. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
  16. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +21 -0
  17. package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
  18. package/dist/client/types/app/bsky/feed/like.d.ts +7 -7
  19. package/dist/client/types/app/bsky/feed/repost.d.ts +7 -7
  20. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +17 -0
  21. package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
  22. package/dist/client/types/app/bsky/feed/trend.d.ts +9 -0
  23. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +17 -0
  24. package/dist/client/types/app/bsky/feed/vote.d.ts +10 -0
  25. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  26. package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  27. package/dist/client/types/app/bsky/graph/assertion.d.ts +10 -0
  28. package/dist/client/types/app/bsky/graph/block.d.ts +6 -6
  29. package/dist/client/types/app/bsky/graph/confirmation.d.ts +11 -0
  30. package/dist/client/types/app/bsky/graph/defs.d.ts +36 -36
  31. package/dist/client/types/app/bsky/graph/follow.d.ts +6 -6
  32. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +48 -0
  33. package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +21 -0
  34. package/dist/client/types/app/bsky/graph/getMembers.d.ts +36 -0
  35. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +36 -0
  36. package/dist/client/types/app/bsky/graph/listblock.d.ts +8 -0
  37. package/dist/client/types/app/bsky/graph/listitem.d.ts +7 -7
  38. package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
  39. package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +17 -0
  40. package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
  41. package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +17 -0
  42. package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
  43. package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
  44. package/dist/client/types/app/bsky/richtext/facet.d.ts +22 -26
  45. package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
  46. package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
  47. package/dist/client/types/app/bsky/system/declRef.d.ts +8 -0
  48. package/dist/client/types/app/bsky/system/declaration.d.ts +7 -0
  49. package/dist/client/types/com/atproto/account/create.d.ts +41 -0
  50. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  51. package/dist/client/types/com/atproto/account/delete.d.ts +25 -0
  52. package/dist/client/types/com/atproto/account/get.d.ts +12 -0
  53. package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
  54. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  55. package/dist/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  56. package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
  57. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +60 -0
  58. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
  59. package/dist/client/types/com/atproto/admin/record.d.ts +43 -0
  60. package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
  61. package/dist/client/types/com/atproto/blob/upload.d.ts +19 -0
  62. package/dist/client/types/com/atproto/handle/resolve.d.ts +18 -0
  63. package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
  64. package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +12 -12
  65. package/dist/client/types/com/atproto/moderation/defs.d.ts +7 -16
  66. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +46 -0
  67. package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
  68. package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
  69. package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
  70. package/dist/client/types/com/atproto/repo/strongRef.d.ts +6 -6
  71. package/dist/client/types/com/atproto/report/create.d.ts +39 -0
  72. package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
  73. package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
  74. package/dist/client/types/com/atproto/server/defs.d.ts +16 -16
  75. package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +27 -0
  76. package/dist/client/types/com/atproto/session/create.d.ts +29 -0
  77. package/dist/client/types/com/atproto/session/delete.d.ts +13 -0
  78. package/dist/client/types/com/atproto/session/get.d.ts +18 -0
  79. package/dist/client/types/com/atproto/session/refresh.d.ts +24 -0
  80. package/dist/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  81. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
  82. package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +46 -46
  83. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  84. package/dist/client/util.d.ts +2 -5
  85. package/dist/helpers/bsky.d.ts +20 -0
  86. package/dist/index.js +69 -37
  87. package/dist/index.js.map +2 -2
  88. package/dist/mixins/bsky.d.ts +23 -0
  89. package/dist/rich-text/detection.d.ts +4 -4
  90. package/dist/rich-text/rich-text.d.ts +31 -31
  91. package/dist/rich-text/sanitization.d.ts +4 -7
  92. package/dist/rich-text/sanitize.d.ts +4 -0
  93. package/dist/rich-text/unicode.d.ts +9 -9
  94. package/dist/session.d.ts +42 -0
  95. package/dist/types.d.ts +22 -34
  96. package/package.json +1 -1
  97. package/src/client/lexicons.ts +19 -1
  98. package/src/client/types/app/bsky/feed/defs.ts +19 -0
  99. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +2 -2
  100. package/src/client/types/app/bsky/feed/getFeed.ts +1 -1
  101. package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +1 -1
  102. package/src/client/types/app/bsky/feed/getPostThread.ts +1 -1
  103. package/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts +1 -1
  104. package/src/client/types/com/atproto/admin/getRecord.ts +1 -1
  105. package/src/client/types/com/atproto/admin/getRepo.ts +1 -1
  106. package/src/client/types/com/atproto/admin/rebaseRepo.ts +2 -2
  107. package/src/client/types/com/atproto/admin/takeModerationAction.ts +1 -1
  108. package/src/client/types/com/atproto/repo/applyWrites.ts +1 -1
  109. package/src/client/types/com/atproto/repo/createRecord.ts +1 -1
  110. package/src/client/types/com/atproto/repo/deleteRecord.ts +1 -1
  111. package/src/client/types/com/atproto/repo/putRecord.ts +1 -1
  112. package/src/client/types/com/atproto/repo/rebaseRepo.ts +2 -2
  113. package/src/client/types/com/atproto/server/createAccount.ts +7 -7
  114. package/src/client/types/com/atproto/server/createAppPassword.ts +1 -1
  115. package/src/client/types/com/atproto/server/createSession.ts +1 -1
  116. package/src/client/types/com/atproto/server/deleteAccount.ts +2 -2
  117. package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +1 -1
  118. package/src/client/types/com/atproto/server/listAppPasswords.ts +1 -1
  119. package/src/client/types/com/atproto/server/refreshSession.ts +1 -1
  120. package/src/client/types/com/atproto/server/resetPassword.ts +2 -2
  121. package/src/client/types/com/atproto/sync/getHead.ts +1 -1
  122. package/tsconfig.build.tsbuildinfo +1 -1
@@ -0,0 +1,23 @@
1
+ import { AtpAgentType } from '../types';
2
+ export declare function addBsky<TBase extends AtpAgentType>(Base: TBase): {
3
+ new (...args: any[]): {
4
+ like(uri: string, cid: string): Promise<{
5
+ uri: string;
6
+ cid: string;
7
+ }>;
8
+ unlike(likeUri: string): Promise<void>;
9
+ repost(uri: string, cid: string): Promise<{
10
+ uri: string;
11
+ cid: string;
12
+ }>;
13
+ unrepost(repostUri: string): Promise<void>;
14
+ follow(subjectDid: string): Promise<{
15
+ uri: string;
16
+ cid: string;
17
+ }>;
18
+ unfollow(followUri: string): Promise<void>;
19
+ service: URL;
20
+ api: import("..").AtpServiceClient;
21
+ session?: import("../types").AtpSessionData | undefined;
22
+ };
23
+ } & TBase;
@@ -1,4 +1,4 @@
1
- import { AppBskyRichtextFacet } from '../client'
2
- import { UnicodeString } from './unicode'
3
- export declare type Facet = AppBskyRichtextFacet.Main
4
- export declare function detectFacets(text: UnicodeString): Facet[] | undefined
1
+ import { AppBskyRichtextFacet } from '../client';
2
+ import { UnicodeString } from './unicode';
3
+ export declare type Facet = AppBskyRichtextFacet.Main;
4
+ export declare function detectFacets(text: UnicodeString): Facet[] | undefined;
@@ -1,39 +1,39 @@
1
- import { AtpAgent } from '../agent'
2
- import { AppBskyFeedPost, AppBskyRichtextFacet } from '../client'
3
- import { UnicodeString } from './unicode'
4
- export declare type Facet = AppBskyRichtextFacet.Main
5
- export declare type FacetLink = AppBskyRichtextFacet.Link
6
- export declare type FacetMention = AppBskyRichtextFacet.Mention
7
- export declare type Entity = AppBskyFeedPost.Entity
1
+ import { AtpAgent } from '../agent';
2
+ import { AppBskyFeedPost, AppBskyRichtextFacet } from '../client';
3
+ import { UnicodeString } from './unicode';
4
+ export declare type Facet = AppBskyRichtextFacet.Main;
5
+ export declare type FacetLink = AppBskyRichtextFacet.Link;
6
+ export declare type FacetMention = AppBskyRichtextFacet.Mention;
7
+ export declare type Entity = AppBskyFeedPost.Entity;
8
8
  export interface RichTextProps {
9
- text: string
10
- facets?: Facet[]
11
- entities?: Entity[]
9
+ text: string;
10
+ facets?: Facet[];
11
+ entities?: Entity[];
12
12
  }
13
13
  export interface RichTextOpts {
14
- cleanNewlines?: boolean
14
+ cleanNewlines?: boolean;
15
15
  }
16
16
  export declare class RichTextSegment {
17
- text: string
18
- facet?: AppBskyRichtextFacet.Main | undefined
19
- constructor(text: string, facet?: AppBskyRichtextFacet.Main | undefined)
20
- get link(): FacetLink | undefined
21
- isLink(): boolean
22
- get mention(): FacetMention | undefined
23
- isMention(): boolean
17
+ text: string;
18
+ facet?: AppBskyRichtextFacet.Main | undefined;
19
+ constructor(text: string, facet?: AppBskyRichtextFacet.Main | undefined);
20
+ get link(): FacetLink | undefined;
21
+ isLink(): boolean;
22
+ get mention(): FacetMention | undefined;
23
+ isMention(): boolean;
24
24
  }
25
25
  export declare class RichText {
26
- unicodeText: UnicodeString
27
- facets?: Facet[]
28
- constructor(props: RichTextProps, opts?: RichTextOpts)
29
- get text(): string
30
- get length(): number
31
- get graphemeLength(): number
32
- clone(): RichText
33
- copyInto(target: RichText): void
34
- segments(): Generator<RichTextSegment, void, void>
35
- insert(insertIndex: number, insertText: string): this
36
- delete(removeStartIndex: number, removeEndIndex: number): this
37
- detectFacets(agent: AtpAgent): Promise<void>
38
- detectFacetsWithoutResolution(): void
26
+ unicodeText: UnicodeString;
27
+ facets?: Facet[];
28
+ constructor(props: RichTextProps, opts?: RichTextOpts);
29
+ get text(): string;
30
+ get length(): number;
31
+ get graphemeLength(): number;
32
+ clone(): RichText;
33
+ copyInto(target: RichText): void;
34
+ segments(): Generator<RichTextSegment, void, void>;
35
+ insert(insertIndex: number, insertText: string): this;
36
+ delete(removeStartIndex: number, removeEndIndex: number): this;
37
+ detectFacets(agent: AtpAgent): Promise<void>;
38
+ detectFacetsWithoutResolution(): void;
39
39
  }
@@ -1,7 +1,4 @@
1
- import { RichText } from './rich-text'
2
- export declare function sanitizeRichText(
3
- richText: RichText,
4
- opts: {
5
- cleanNewlines?: boolean
6
- },
7
- ): RichText
1
+ import { RichText } from './rich-text';
2
+ export declare function sanitizeRichText(richText: RichText, opts: {
3
+ cleanNewlines?: boolean;
4
+ }): RichText;
@@ -0,0 +1,4 @@
1
+ import { RichText } from './rich-text';
2
+ export declare function sanitizeRichText(richText: RichText, opts: {
3
+ cleanNewlines?: boolean;
4
+ }): RichText;
@@ -1,11 +1,11 @@
1
1
  export declare class UnicodeString {
2
- utf16: string
3
- utf8: Uint8Array
4
- private _graphemeLen?
5
- constructor(utf16: string)
6
- get length(): number
7
- get graphemeLength(): number
8
- slice(start?: number, end?: number): string
9
- utf16IndexToUtf8Index(i: number): number
10
- toString(): string
2
+ utf16: string;
3
+ utf8: Uint8Array;
4
+ private _graphemeLen?;
5
+ constructor(utf16: string);
6
+ get length(): number;
7
+ get graphemeLength(): number;
8
+ slice(start?: number, end?: number): string;
9
+ utf16IndexToUtf8Index(i: number): number;
10
+ toString(): string;
11
11
  }
@@ -0,0 +1,42 @@
1
+ import { CallOptions, Client as XrpcClient, ServiceClient as XrpcServiceClient, QueryParams, XRPCResponse } from '@atproto/xrpc';
2
+ import TypedEmitter from 'typed-emitter';
3
+ import { Client, ServiceClient } from './client';
4
+ export declare class SessionClient extends Client {
5
+ service(serviceUri: string | URL): SessionServiceClient;
6
+ }
7
+ declare const defaultInst: SessionClient;
8
+ export default defaultInst;
9
+ export declare class SessionServiceClient extends ServiceClient {
10
+ xrpc: SessionXrpcServiceClient;
11
+ sessionManager: SessionManager;
12
+ constructor(baseClient: Client, xrpcService: SessionXrpcServiceClient);
13
+ }
14
+ export declare class SessionXrpcServiceClient extends XrpcServiceClient {
15
+ sessionManager: SessionManager;
16
+ refreshing?: Promise<XRPCResponse>;
17
+ constructor(baseClient: XrpcClient, serviceUri: string | URL);
18
+ call(methodNsid: string, params?: QueryParams, data?: unknown, opts?: CallOptions): Promise<XRPCResponse>;
19
+ refresh(opts?: CallOptions): Promise<XRPCResponse>;
20
+ private _refresh;
21
+ }
22
+ declare const SessionManager_base: new () => TypedEmitter<SessionEvents>;
23
+ export declare class SessionManager extends SessionManager_base {
24
+ session?: Session;
25
+ get(): Session | undefined;
26
+ set(session: Session): void;
27
+ unset(): void;
28
+ active(): boolean;
29
+ accessHeaders(): {
30
+ authorization: string;
31
+ } | undefined;
32
+ refreshHeaders(): {
33
+ authorization: string;
34
+ } | undefined;
35
+ }
36
+ export declare type Session = {
37
+ refreshJwt: string;
38
+ accessJwt: string;
39
+ };
40
+ declare type SessionEvents = {
41
+ session: (session?: Session) => void;
42
+ };
package/dist/types.d.ts CHANGED
@@ -1,46 +1,34 @@
1
- export declare type AtpSessionEvent =
2
- | 'create'
3
- | 'create-failed'
4
- | 'update'
5
- | 'expired'
1
+ export declare type AtpSessionEvent = 'create' | 'create-failed' | 'update' | 'expired';
6
2
  export interface AtpSessionData {
7
- refreshJwt: string
8
- accessJwt: string
9
- handle: string
10
- did: string
11
- email?: string
3
+ refreshJwt: string;
4
+ accessJwt: string;
5
+ handle: string;
6
+ did: string;
7
+ email?: string;
12
8
  }
13
- export declare type AtpPersistSessionHandler = (
14
- evt: AtpSessionEvent,
15
- session: AtpSessionData | undefined,
16
- ) => void | Promise<void>
9
+ export declare type AtpPersistSessionHandler = (evt: AtpSessionEvent, session: AtpSessionData | undefined) => void | Promise<void>;
17
10
  export interface AtpAgentOpts {
18
- service: string | URL
19
- persistSession?: AtpPersistSessionHandler
11
+ service: string | URL;
12
+ persistSession?: AtpPersistSessionHandler;
20
13
  }
21
14
  export interface AtpAgentCreateAccountOpts {
22
- email: string
23
- password: string
24
- handle: string
25
- inviteCode?: string
15
+ email: string;
16
+ password: string;
17
+ handle: string;
18
+ inviteCode?: string;
26
19
  }
27
20
  export interface AtpAgentLoginOpts {
28
- identifier: string
29
- password: string
21
+ identifier: string;
22
+ password: string;
30
23
  }
31
- declare type AtpAgentFetchHeaders = Record<string, string>
24
+ declare type AtpAgentFetchHeaders = Record<string, string>;
32
25
  export interface AtpAgentFetchHandlerResponse {
33
- status: number
34
- headers: Record<string, string>
35
- body: any
26
+ status: number;
27
+ headers: Record<string, string>;
28
+ body: any;
36
29
  }
37
- export declare type AtpAgentFetchHandler = (
38
- httpUri: string,
39
- httpMethod: string,
40
- httpHeaders: AtpAgentFetchHeaders,
41
- httpReqBody: any,
42
- ) => Promise<AtpAgentFetchHandlerResponse>
30
+ export declare type AtpAgentFetchHandler = (httpUri: string, httpMethod: string, httpHeaders: AtpAgentFetchHeaders, httpReqBody: any) => Promise<AtpAgentFetchHandlerResponse>;
43
31
  export interface AtpAgentGlobalOpts {
44
- fetch: AtpAgentFetchHandler
32
+ fetch: AtpAgentFetchHandler;
45
33
  }
46
- export {}
34
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "codegen": "yarn docgen && node ./scripts/generate-code.mjs && lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
@@ -4512,7 +4512,7 @@ export const schemaDict = {
4512
4512
  },
4513
4513
  blockedPost: {
4514
4514
  type: 'object',
4515
- required: ['uri', 'blocked'],
4515
+ required: ['uri', 'blocked', 'author'],
4516
4516
  properties: {
4517
4517
  uri: {
4518
4518
  type: 'string',
@@ -4522,6 +4522,24 @@ export const schemaDict = {
4522
4522
  type: 'boolean',
4523
4523
  const: true,
4524
4524
  },
4525
+ author: {
4526
+ type: 'ref',
4527
+ ref: 'lex:app.bsky.feed.defs#blockedAuthor',
4528
+ },
4529
+ },
4530
+ },
4531
+ blockedAuthor: {
4532
+ type: 'object',
4533
+ required: ['did'],
4534
+ properties: {
4535
+ did: {
4536
+ type: 'string',
4537
+ format: 'did',
4538
+ },
4539
+ viewer: {
4540
+ type: 'ref',
4541
+ ref: 'lex:app.bsky.actor.defs#viewerState',
4542
+ },
4525
4543
  },
4526
4544
  },
4527
4545
  generatorView: {
@@ -171,6 +171,7 @@ export function validateNotFoundPost(v: unknown): ValidationResult {
171
171
  export interface BlockedPost {
172
172
  uri: string
173
173
  blocked: true
174
+ author: BlockedAuthor
174
175
  [k: string]: unknown
175
176
  }
176
177
 
@@ -186,6 +187,24 @@ export function validateBlockedPost(v: unknown): ValidationResult {
186
187
  return lexicons.validate('app.bsky.feed.defs#blockedPost', v)
187
188
  }
188
189
 
190
+ export interface BlockedAuthor {
191
+ did: string
192
+ viewer?: AppBskyActorDefs.ViewerState
193
+ [k: string]: unknown
194
+ }
195
+
196
+ export function isBlockedAuthor(v: unknown): v is BlockedAuthor {
197
+ return (
198
+ isObj(v) &&
199
+ hasProp(v, '$type') &&
200
+ v.$type === 'app.bsky.feed.defs#blockedAuthor'
201
+ )
202
+ }
203
+
204
+ export function validateBlockedAuthor(v: unknown): ValidationResult {
205
+ return lexicons.validate('app.bsky.feed.defs#blockedAuthor', v)
206
+ }
207
+
189
208
  export interface GeneratorView {
190
209
  uri: string
191
210
  cid: string
@@ -39,13 +39,13 @@ export interface Response {
39
39
 
40
40
  export class BlockedActorError extends XRPCError {
41
41
  constructor(src: XRPCError) {
42
- super(src.status, src.error, src.message)
42
+ super(src.status, src.error, src.message, src.headers)
43
43
  }
44
44
  }
45
45
 
46
46
  export class BlockedByActorError extends XRPCError {
47
47
  constructor(src: XRPCError) {
48
- super(src.status, src.error, src.message)
48
+ super(src.status, src.error, src.message, src.headers)
49
49
  }
50
50
  }
51
51
 
@@ -34,7 +34,7 @@ export interface Response {
34
34
 
35
35
  export class UnknownFeedError extends XRPCError {
36
36
  constructor(src: XRPCError) {
37
- super(src.status, src.error, src.message)
37
+ super(src.status, src.error, src.message, src.headers)
38
38
  }
39
39
  }
40
40
 
@@ -34,7 +34,7 @@ export interface Response {
34
34
 
35
35
  export class UnknownFeedError extends XRPCError {
36
36
  constructor(src: XRPCError) {
37
- super(src.status, src.error, src.message)
37
+ super(src.status, src.error, src.message, src.headers)
38
38
  }
39
39
  }
40
40
 
@@ -37,7 +37,7 @@ export interface Response {
37
37
 
38
38
  export class NotFoundError extends XRPCError {
39
39
  constructor(src: XRPCError) {
40
- super(src.status, src.error, src.message)
40
+ super(src.status, src.error, src.message, src.headers)
41
41
  }
42
42
  }
43
43
 
@@ -33,7 +33,7 @@ export interface Response {
33
33
 
34
34
  export class UnknownFeedError extends XRPCError {
35
35
  constructor(src: XRPCError) {
36
- super(src.status, src.error, src.message)
36
+ super(src.status, src.error, src.message, src.headers)
37
37
  }
38
38
  }
39
39
 
@@ -28,7 +28,7 @@ export interface Response {
28
28
 
29
29
  export class RecordNotFoundError extends XRPCError {
30
30
  constructor(src: XRPCError) {
31
- super(src.status, src.error, src.message)
31
+ super(src.status, src.error, src.message, src.headers)
32
32
  }
33
33
  }
34
34
 
@@ -27,7 +27,7 @@ export interface Response {
27
27
 
28
28
  export class RepoNotFoundError extends XRPCError {
29
29
  constructor(src: XRPCError) {
30
- super(src.status, src.error, src.message)
30
+ super(src.status, src.error, src.message, src.headers)
31
31
  }
32
32
  }
33
33
 
@@ -30,13 +30,13 @@ export interface Response {
30
30
 
31
31
  export class InvalidSwapError extends XRPCError {
32
32
  constructor(src: XRPCError) {
33
- super(src.status, src.error, src.message)
33
+ super(src.status, src.error, src.message, src.headers)
34
34
  }
35
35
  }
36
36
 
37
37
  export class ConcurrentWritesError extends XRPCError {
38
38
  constructor(src: XRPCError) {
39
- super(src.status, src.error, src.message)
39
+ super(src.status, src.error, src.message, src.headers)
40
40
  }
41
41
  }
42
42
 
@@ -45,7 +45,7 @@ export interface Response {
45
45
 
46
46
  export class SubjectHasActionError extends XRPCError {
47
47
  constructor(src: XRPCError) {
48
- super(src.status, src.error, src.message)
48
+ super(src.status, src.error, src.message, src.headers)
49
49
  }
50
50
  }
51
51
 
@@ -32,7 +32,7 @@ export interface Response {
32
32
 
33
33
  export class InvalidSwapError extends XRPCError {
34
34
  constructor(src: XRPCError) {
35
- super(src.status, src.error, src.message)
35
+ super(src.status, src.error, src.message, src.headers)
36
36
  }
37
37
  }
38
38
 
@@ -45,7 +45,7 @@ export interface Response {
45
45
 
46
46
  export class InvalidSwapError extends XRPCError {
47
47
  constructor(src: XRPCError) {
48
- super(src.status, src.error, src.message)
48
+ super(src.status, src.error, src.message, src.headers)
49
49
  }
50
50
  }
51
51
 
@@ -36,7 +36,7 @@ export interface Response {
36
36
 
37
37
  export class InvalidSwapError extends XRPCError {
38
38
  constructor(src: XRPCError) {
39
- super(src.status, src.error, src.message)
39
+ super(src.status, src.error, src.message, src.headers)
40
40
  }
41
41
  }
42
42
 
@@ -47,7 +47,7 @@ export interface Response {
47
47
 
48
48
  export class InvalidSwapError extends XRPCError {
49
49
  constructor(src: XRPCError) {
50
- super(src.status, src.error, src.message)
50
+ super(src.status, src.error, src.message, src.headers)
51
51
  }
52
52
  }
53
53
 
@@ -30,13 +30,13 @@ export interface Response {
30
30
 
31
31
  export class InvalidSwapError extends XRPCError {
32
32
  constructor(src: XRPCError) {
33
- super(src.status, src.error, src.message)
33
+ super(src.status, src.error, src.message, src.headers)
34
34
  }
35
35
  }
36
36
 
37
37
  export class ConcurrentWritesError extends XRPCError {
38
38
  constructor(src: XRPCError) {
39
- super(src.status, src.error, src.message)
39
+ super(src.status, src.error, src.message, src.headers)
40
40
  }
41
41
  }
42
42
 
@@ -41,43 +41,43 @@ export interface Response {
41
41
 
42
42
  export class InvalidHandleError extends XRPCError {
43
43
  constructor(src: XRPCError) {
44
- super(src.status, src.error, src.message)
44
+ super(src.status, src.error, src.message, src.headers)
45
45
  }
46
46
  }
47
47
 
48
48
  export class InvalidPasswordError extends XRPCError {
49
49
  constructor(src: XRPCError) {
50
- super(src.status, src.error, src.message)
50
+ super(src.status, src.error, src.message, src.headers)
51
51
  }
52
52
  }
53
53
 
54
54
  export class InvalidInviteCodeError extends XRPCError {
55
55
  constructor(src: XRPCError) {
56
- super(src.status, src.error, src.message)
56
+ super(src.status, src.error, src.message, src.headers)
57
57
  }
58
58
  }
59
59
 
60
60
  export class HandleNotAvailableError extends XRPCError {
61
61
  constructor(src: XRPCError) {
62
- super(src.status, src.error, src.message)
62
+ super(src.status, src.error, src.message, src.headers)
63
63
  }
64
64
  }
65
65
 
66
66
  export class UnsupportedDomainError extends XRPCError {
67
67
  constructor(src: XRPCError) {
68
- super(src.status, src.error, src.message)
68
+ super(src.status, src.error, src.message, src.headers)
69
69
  }
70
70
  }
71
71
 
72
72
  export class UnresolvableDidError extends XRPCError {
73
73
  constructor(src: XRPCError) {
74
- super(src.status, src.error, src.message)
74
+ super(src.status, src.error, src.message, src.headers)
75
75
  }
76
76
  }
77
77
 
78
78
  export class IncompatibleDidDocError extends XRPCError {
79
79
  constructor(src: XRPCError) {
80
- super(src.status, src.error, src.message)
80
+ super(src.status, src.error, src.message, src.headers)
81
81
  }
82
82
  }
83
83
 
@@ -30,7 +30,7 @@ export interface Response {
30
30
 
31
31
  export class AccountTakedownError extends XRPCError {
32
32
  constructor(src: XRPCError) {
33
- super(src.status, src.error, src.message)
33
+ super(src.status, src.error, src.message, src.headers)
34
34
  }
35
35
  }
36
36
 
@@ -39,7 +39,7 @@ export interface Response {
39
39
 
40
40
  export class AccountTakedownError extends XRPCError {
41
41
  constructor(src: XRPCError) {
42
- super(src.status, src.error, src.message)
42
+ super(src.status, src.error, src.message, src.headers)
43
43
  }
44
44
  }
45
45
 
@@ -29,13 +29,13 @@ export interface Response {
29
29
 
30
30
  export class ExpiredTokenError extends XRPCError {
31
31
  constructor(src: XRPCError) {
32
- super(src.status, src.error, src.message)
32
+ super(src.status, src.error, src.message, src.headers)
33
33
  }
34
34
  }
35
35
 
36
36
  export class InvalidTokenError extends XRPCError {
37
37
  constructor(src: XRPCError) {
38
- super(src.status, src.error, src.message)
38
+ super(src.status, src.error, src.message, src.headers)
39
39
  }
40
40
  }
41
41
 
@@ -32,7 +32,7 @@ export interface Response {
32
32
 
33
33
  export class DuplicateCreateError extends XRPCError {
34
34
  constructor(src: XRPCError) {
35
- super(src.status, src.error, src.message)
35
+ super(src.status, src.error, src.message, src.headers)
36
36
  }
37
37
  }
38
38
 
@@ -28,7 +28,7 @@ export interface Response {
28
28
 
29
29
  export class AccountTakedownError extends XRPCError {
30
30
  constructor(src: XRPCError) {
31
- super(src.status, src.error, src.message)
31
+ super(src.status, src.error, src.message, src.headers)
32
32
  }
33
33
  }
34
34
 
@@ -32,7 +32,7 @@ export interface Response {
32
32
 
33
33
  export class AccountTakedownError extends XRPCError {
34
34
  constructor(src: XRPCError) {
35
- super(src.status, src.error, src.message)
35
+ super(src.status, src.error, src.message, src.headers)
36
36
  }
37
37
  }
38
38
 
@@ -28,13 +28,13 @@ export interface Response {
28
28
 
29
29
  export class ExpiredTokenError extends XRPCError {
30
30
  constructor(src: XRPCError) {
31
- super(src.status, src.error, src.message)
31
+ super(src.status, src.error, src.message, src.headers)
32
32
  }
33
33
  }
34
34
 
35
35
  export class InvalidTokenError extends XRPCError {
36
36
  constructor(src: XRPCError) {
37
- super(src.status, src.error, src.message)
37
+ super(src.status, src.error, src.message, src.headers)
38
38
  }
39
39
  }
40
40
 
@@ -31,7 +31,7 @@ export interface Response {
31
31
 
32
32
  export class HeadNotFoundError extends XRPCError {
33
33
  constructor(src: XRPCError) {
34
- super(src.status, src.error, src.message)
34
+ super(src.status, src.error, src.message, src.headers)
35
35
  }
36
36
  }
37
37