@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
@@ -1,63 +1,51 @@
1
- import { ValidationResult } from '@atproto/lexicon'
2
- import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
3
- import * as AppBskyFeedDefs from '../feed/defs'
4
- import * as AppBskyGraphDefs from '../graph/defs'
5
- import * as AppBskyActorDefs from '../actor/defs'
6
- import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
7
- import * as AppBskyEmbedImages from './images'
8
- import * as AppBskyEmbedExternal from './external'
9
- import * as AppBskyEmbedRecordWithMedia from './recordWithMedia'
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
+ import * as AppBskyFeedDefs from '../feed/defs';
4
+ import * as AppBskyGraphDefs from '../graph/defs';
5
+ import * as AppBskyActorDefs from '../actor/defs';
6
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
7
+ import * as AppBskyEmbedImages from './images';
8
+ import * as AppBskyEmbedExternal from './external';
9
+ import * as AppBskyEmbedRecordWithMedia from './recordWithMedia';
10
10
  export interface Main {
11
- record: ComAtprotoRepoStrongRef.Main
12
- [k: string]: unknown
11
+ record: ComAtprotoRepoStrongRef.Main;
12
+ [k: string]: unknown;
13
13
  }
14
- export declare function isMain(v: unknown): v is Main
15
- export declare function validateMain(v: unknown): ValidationResult
14
+ export declare function isMain(v: unknown): v is Main;
15
+ export declare function validateMain(v: unknown): ValidationResult;
16
16
  export interface View {
17
- record:
18
- | ViewRecord
19
- | ViewNotFound
20
- | ViewBlocked
21
- | AppBskyFeedDefs.GeneratorView
22
- | AppBskyGraphDefs.ListView
23
- | {
24
- $type: string
25
- [k: string]: unknown
26
- }
27
- [k: string]: unknown
17
+ record: ViewRecord | ViewNotFound | ViewBlocked | AppBskyFeedDefs.GeneratorView | AppBskyGraphDefs.ListView | {
18
+ $type: string;
19
+ [k: string]: unknown;
20
+ };
21
+ [k: string]: unknown;
28
22
  }
29
- export declare function isView(v: unknown): v is View
30
- export declare function validateView(v: unknown): ValidationResult
23
+ export declare function isView(v: unknown): v is View;
24
+ export declare function validateView(v: unknown): ValidationResult;
31
25
  export interface ViewRecord {
32
- uri: string
33
- cid: string
34
- author: AppBskyActorDefs.ProfileViewBasic
35
- value: {}
36
- labels?: ComAtprotoLabelDefs.Label[]
37
- embeds?: (
38
- | AppBskyEmbedImages.View
39
- | AppBskyEmbedExternal.View
40
- | View
41
- | AppBskyEmbedRecordWithMedia.View
42
- | {
43
- $type: string
44
- [k: string]: unknown
45
- }
46
- )[]
47
- indexedAt: string
48
- [k: string]: unknown
26
+ uri: string;
27
+ cid: string;
28
+ author: AppBskyActorDefs.ProfileViewBasic;
29
+ value: {};
30
+ labels?: ComAtprotoLabelDefs.Label[];
31
+ embeds?: (AppBskyEmbedImages.View | AppBskyEmbedExternal.View | View | AppBskyEmbedRecordWithMedia.View | {
32
+ $type: string;
33
+ [k: string]: unknown;
34
+ })[];
35
+ indexedAt: string;
36
+ [k: string]: unknown;
49
37
  }
50
- export declare function isViewRecord(v: unknown): v is ViewRecord
51
- export declare function validateViewRecord(v: unknown): ValidationResult
38
+ export declare function isViewRecord(v: unknown): v is ViewRecord;
39
+ export declare function validateViewRecord(v: unknown): ValidationResult;
52
40
  export interface ViewNotFound {
53
- uri: string
54
- [k: string]: unknown
41
+ uri: string;
42
+ [k: string]: unknown;
55
43
  }
56
- export declare function isViewNotFound(v: unknown): v is ViewNotFound
57
- export declare function validateViewNotFound(v: unknown): ValidationResult
44
+ export declare function isViewNotFound(v: unknown): v is ViewNotFound;
45
+ export declare function validateViewNotFound(v: unknown): ValidationResult;
58
46
  export interface ViewBlocked {
59
- uri: string
60
- [k: string]: unknown
47
+ uri: string;
48
+ [k: string]: unknown;
61
49
  }
62
- export declare function isViewBlocked(v: unknown): v is ViewBlocked
63
- export declare function validateViewBlocked(v: unknown): ValidationResult
50
+ export declare function isViewBlocked(v: unknown): v is ViewBlocked;
51
+ export declare function validateViewBlocked(v: unknown): ValidationResult;
@@ -1,30 +1,24 @@
1
- import { ValidationResult } from '@atproto/lexicon'
2
- import * as AppBskyEmbedRecord from './record'
3
- import * as AppBskyEmbedImages from './images'
4
- import * as AppBskyEmbedExternal from './external'
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as AppBskyEmbedRecord from './record';
3
+ import * as AppBskyEmbedImages from './images';
4
+ import * as AppBskyEmbedExternal from './external';
5
5
  export interface Main {
6
- record: AppBskyEmbedRecord.Main
7
- media:
8
- | AppBskyEmbedImages.Main
9
- | AppBskyEmbedExternal.Main
10
- | {
11
- $type: string
12
- [k: string]: unknown
13
- }
14
- [k: string]: unknown
6
+ record: AppBskyEmbedRecord.Main;
7
+ media: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | {
8
+ $type: string;
9
+ [k: string]: unknown;
10
+ };
11
+ [k: string]: unknown;
15
12
  }
16
- export declare function isMain(v: unknown): v is Main
17
- export declare function validateMain(v: unknown): ValidationResult
13
+ export declare function isMain(v: unknown): v is Main;
14
+ export declare function validateMain(v: unknown): ValidationResult;
18
15
  export interface View {
19
- record: AppBskyEmbedRecord.View
20
- media:
21
- | AppBskyEmbedImages.View
22
- | AppBskyEmbedExternal.View
23
- | {
24
- $type: string
25
- [k: string]: unknown
26
- }
27
- [k: string]: unknown
16
+ record: AppBskyEmbedRecord.View;
17
+ media: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | {
18
+ $type: string;
19
+ [k: string]: unknown;
20
+ };
21
+ [k: string]: unknown;
28
22
  }
29
- export declare function isView(v: unknown): v is View
30
- export declare function validateView(v: unknown): ValidationResult
23
+ export declare function isView(v: unknown): v is View;
24
+ export declare function validateView(v: unknown): ValidationResult;
@@ -1,165 +1,139 @@
1
- import { ValidationResult } from '@atproto/lexicon'
2
- import * as AppBskyActorDefs from '../actor/defs'
3
- import * as AppBskyEmbedImages from '../embed/images'
4
- import * as AppBskyEmbedExternal from '../embed/external'
5
- import * as AppBskyEmbedRecord from '../embed/record'
6
- import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia'
7
- import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
8
- import * as AppBskyRichtextFacet from '../richtext/facet'
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as AppBskyActorDefs from '../actor/defs';
3
+ import * as AppBskyEmbedImages from '../embed/images';
4
+ import * as AppBskyEmbedExternal from '../embed/external';
5
+ import * as AppBskyEmbedRecord from '../embed/record';
6
+ import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia';
7
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
8
+ import * as AppBskyRichtextFacet from '../richtext/facet';
9
9
  export interface PostView {
10
- uri: string
11
- cid: string
12
- author: AppBskyActorDefs.ProfileViewBasic
13
- record: {}
14
- embed?:
15
- | AppBskyEmbedImages.View
16
- | AppBskyEmbedExternal.View
17
- | AppBskyEmbedRecord.View
18
- | AppBskyEmbedRecordWithMedia.View
19
- | {
20
- $type: string
21
- [k: string]: unknown
22
- }
23
- replyCount?: number
24
- repostCount?: number
25
- likeCount?: number
26
- indexedAt: string
27
- viewer?: ViewerState
28
- labels?: ComAtprotoLabelDefs.Label[]
29
- [k: string]: unknown
10
+ uri: string;
11
+ cid: string;
12
+ author: AppBskyActorDefs.ProfileViewBasic;
13
+ record: {};
14
+ embed?: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | AppBskyEmbedRecord.View | AppBskyEmbedRecordWithMedia.View | {
15
+ $type: string;
16
+ [k: string]: unknown;
17
+ };
18
+ replyCount?: number;
19
+ repostCount?: number;
20
+ likeCount?: number;
21
+ indexedAt: string;
22
+ viewer?: ViewerState;
23
+ labels?: ComAtprotoLabelDefs.Label[];
24
+ [k: string]: unknown;
30
25
  }
31
- export declare function isPostView(v: unknown): v is PostView
32
- export declare function validatePostView(v: unknown): ValidationResult
26
+ export declare function isPostView(v: unknown): v is PostView;
27
+ export declare function validatePostView(v: unknown): ValidationResult;
33
28
  export interface ViewerState {
34
- repost?: string
35
- like?: string
36
- [k: string]: unknown
29
+ repost?: string;
30
+ like?: string;
31
+ [k: string]: unknown;
37
32
  }
38
- export declare function isViewerState(v: unknown): v is ViewerState
39
- export declare function validateViewerState(v: unknown): ValidationResult
33
+ export declare function isViewerState(v: unknown): v is ViewerState;
34
+ export declare function validateViewerState(v: unknown): ValidationResult;
40
35
  export interface FeedViewPost {
41
- post: PostView
42
- reply?: ReplyRef
43
- reason?:
44
- | ReasonRepost
45
- | {
46
- $type: string
47
- [k: string]: unknown
48
- }
49
- [k: string]: unknown
36
+ post: PostView;
37
+ reply?: ReplyRef;
38
+ reason?: ReasonRepost | {
39
+ $type: string;
40
+ [k: string]: unknown;
41
+ };
42
+ [k: string]: unknown;
50
43
  }
51
- export declare function isFeedViewPost(v: unknown): v is FeedViewPost
52
- export declare function validateFeedViewPost(v: unknown): ValidationResult
44
+ export declare function isFeedViewPost(v: unknown): v is FeedViewPost;
45
+ export declare function validateFeedViewPost(v: unknown): ValidationResult;
53
46
  export interface ReplyRef {
54
- root:
55
- | PostView
56
- | NotFoundPost
57
- | BlockedPost
58
- | {
59
- $type: string
60
- [k: string]: unknown
61
- }
62
- parent:
63
- | PostView
64
- | NotFoundPost
65
- | BlockedPost
66
- | {
67
- $type: string
68
- [k: string]: unknown
69
- }
70
- [k: string]: unknown
47
+ root: PostView | NotFoundPost | BlockedPost | {
48
+ $type: string;
49
+ [k: string]: unknown;
50
+ };
51
+ parent: PostView | NotFoundPost | BlockedPost | {
52
+ $type: string;
53
+ [k: string]: unknown;
54
+ };
55
+ [k: string]: unknown;
71
56
  }
72
- export declare function isReplyRef(v: unknown): v is ReplyRef
73
- export declare function validateReplyRef(v: unknown): ValidationResult
57
+ export declare function isReplyRef(v: unknown): v is ReplyRef;
58
+ export declare function validateReplyRef(v: unknown): ValidationResult;
74
59
  export interface ReasonRepost {
75
- by: AppBskyActorDefs.ProfileViewBasic
76
- indexedAt: string
77
- [k: string]: unknown
60
+ by: AppBskyActorDefs.ProfileViewBasic;
61
+ indexedAt: string;
62
+ [k: string]: unknown;
78
63
  }
79
- export declare function isReasonRepost(v: unknown): v is ReasonRepost
80
- export declare function validateReasonRepost(v: unknown): ValidationResult
64
+ export declare function isReasonRepost(v: unknown): v is ReasonRepost;
65
+ export declare function validateReasonRepost(v: unknown): ValidationResult;
81
66
  export interface ThreadViewPost {
82
- post: PostView
83
- parent?:
84
- | ThreadViewPost
85
- | NotFoundPost
86
- | BlockedPost
87
- | {
88
- $type: string
89
- [k: string]: unknown
90
- }
91
- replies?: (
92
- | ThreadViewPost
93
- | NotFoundPost
94
- | BlockedPost
95
- | {
96
- $type: string
97
- [k: string]: unknown
98
- }
99
- )[]
100
- [k: string]: unknown
67
+ post: PostView;
68
+ parent?: ThreadViewPost | NotFoundPost | BlockedPost | {
69
+ $type: string;
70
+ [k: string]: unknown;
71
+ };
72
+ replies?: (ThreadViewPost | NotFoundPost | BlockedPost | {
73
+ $type: string;
74
+ [k: string]: unknown;
75
+ })[];
76
+ [k: string]: unknown;
101
77
  }
102
- export declare function isThreadViewPost(v: unknown): v is ThreadViewPost
103
- export declare function validateThreadViewPost(v: unknown): ValidationResult
78
+ export declare function isThreadViewPost(v: unknown): v is ThreadViewPost;
79
+ export declare function validateThreadViewPost(v: unknown): ValidationResult;
104
80
  export interface NotFoundPost {
105
- uri: string
106
- notFound: true
107
- [k: string]: unknown
81
+ uri: string;
82
+ notFound: true;
83
+ [k: string]: unknown;
108
84
  }
109
- export declare function isNotFoundPost(v: unknown): v is NotFoundPost
110
- export declare function validateNotFoundPost(v: unknown): ValidationResult
85
+ export declare function isNotFoundPost(v: unknown): v is NotFoundPost;
86
+ export declare function validateNotFoundPost(v: unknown): ValidationResult;
111
87
  export interface BlockedPost {
112
- uri: string
113
- blocked: true
114
- [k: string]: unknown
88
+ uri: string;
89
+ blocked: true;
90
+ author: BlockedAuthor;
91
+ [k: string]: unknown;
115
92
  }
116
- export declare function isBlockedPost(v: unknown): v is BlockedPost
117
- export declare function validateBlockedPost(v: unknown): ValidationResult
93
+ export declare function isBlockedPost(v: unknown): v is BlockedPost;
94
+ export declare function validateBlockedPost(v: unknown): ValidationResult;
95
+ export interface BlockedAuthor {
96
+ did: string;
97
+ viewer?: AppBskyActorDefs.ViewerState;
98
+ [k: string]: unknown;
99
+ }
100
+ export declare function isBlockedAuthor(v: unknown): v is BlockedAuthor;
101
+ export declare function validateBlockedAuthor(v: unknown): ValidationResult;
118
102
  export interface GeneratorView {
119
- uri: string
120
- cid: string
121
- did: string
122
- creator: AppBskyActorDefs.ProfileView
123
- displayName: string
124
- description?: string
125
- descriptionFacets?: AppBskyRichtextFacet.Main[]
126
- avatar?: string
127
- likeCount?: number
128
- viewer?: GeneratorViewerState
129
- indexedAt: string
130
- [k: string]: unknown
103
+ uri: string;
104
+ cid: string;
105
+ did: string;
106
+ creator: AppBskyActorDefs.ProfileView;
107
+ displayName: string;
108
+ description?: string;
109
+ descriptionFacets?: AppBskyRichtextFacet.Main[];
110
+ avatar?: string;
111
+ likeCount?: number;
112
+ viewer?: GeneratorViewerState;
113
+ indexedAt: string;
114
+ [k: string]: unknown;
131
115
  }
132
- export declare function isGeneratorView(v: unknown): v is GeneratorView
133
- export declare function validateGeneratorView(v: unknown): ValidationResult
116
+ export declare function isGeneratorView(v: unknown): v is GeneratorView;
117
+ export declare function validateGeneratorView(v: unknown): ValidationResult;
134
118
  export interface GeneratorViewerState {
135
- like?: string
136
- [k: string]: unknown
119
+ like?: string;
120
+ [k: string]: unknown;
137
121
  }
138
- export declare function isGeneratorViewerState(
139
- v: unknown,
140
- ): v is GeneratorViewerState
141
- export declare function validateGeneratorViewerState(
142
- v: unknown,
143
- ): ValidationResult
122
+ export declare function isGeneratorViewerState(v: unknown): v is GeneratorViewerState;
123
+ export declare function validateGeneratorViewerState(v: unknown): ValidationResult;
144
124
  export interface SkeletonFeedPost {
145
- post: string
146
- reason?:
147
- | SkeletonReasonRepost
148
- | {
149
- $type: string
150
- [k: string]: unknown
151
- }
152
- [k: string]: unknown
125
+ post: string;
126
+ reason?: SkeletonReasonRepost | {
127
+ $type: string;
128
+ [k: string]: unknown;
129
+ };
130
+ [k: string]: unknown;
153
131
  }
154
- export declare function isSkeletonFeedPost(v: unknown): v is SkeletonFeedPost
155
- export declare function validateSkeletonFeedPost(v: unknown): ValidationResult
132
+ export declare function isSkeletonFeedPost(v: unknown): v is SkeletonFeedPost;
133
+ export declare function validateSkeletonFeedPost(v: unknown): ValidationResult;
156
134
  export interface SkeletonReasonRepost {
157
- repost: string
158
- [k: string]: unknown
135
+ repost: string;
136
+ [k: string]: unknown;
159
137
  }
160
- export declare function isSkeletonReasonRepost(
161
- v: unknown,
162
- ): v is SkeletonReasonRepost
163
- export declare function validateSkeletonReasonRepost(
164
- v: unknown,
165
- ): ValidationResult
138
+ export declare function isSkeletonReasonRepost(v: unknown): v is SkeletonReasonRepost;
139
+ export declare function validateSkeletonReasonRepost(v: unknown): ValidationResult;
@@ -0,0 +1,28 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as AppBskyFeedPost from './post';
3
+ import * as AppBskyActorRef from '../actor/ref';
4
+ export interface Main {
5
+ post: AppBskyFeedPost.View;
6
+ reply?: ReplyRef;
7
+ reason?: ReasonRepost | {
8
+ $type: string;
9
+ [k: string]: unknown;
10
+ };
11
+ [k: string]: unknown;
12
+ }
13
+ export declare function isMain(v: unknown): v is Main;
14
+ export declare function validateMain(v: unknown): ValidationResult;
15
+ export interface ReplyRef {
16
+ root: AppBskyFeedPost.View;
17
+ parent: AppBskyFeedPost.View;
18
+ [k: string]: unknown;
19
+ }
20
+ export declare function isReplyRef(v: unknown): v is ReplyRef;
21
+ export declare function validateReplyRef(v: unknown): ValidationResult;
22
+ export interface ReasonRepost {
23
+ by: AppBskyActorRef.WithInfo;
24
+ indexedAt: string;
25
+ [k: string]: unknown;
26
+ }
27
+ export declare function isReasonRepost(v: unknown): v is ReasonRepost;
28
+ export declare function validateReasonRepost(v: unknown): ValidationResult;
@@ -0,0 +1,21 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyFeedDefs from './defs';
3
+ export interface QueryParams {
4
+ limit?: number;
5
+ cursor?: string;
6
+ }
7
+ export declare type InputSchema = undefined;
8
+ export interface OutputSchema {
9
+ cursor?: string;
10
+ feeds: AppBskyFeedDefs.GeneratorView[];
11
+ [k: string]: unknown;
12
+ }
13
+ export interface CallOptions {
14
+ headers?: Headers;
15
+ }
16
+ export interface Response {
17
+ success: boolean;
18
+ headers: Headers;
19
+ data: OutputSchema;
20
+ }
21
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,36 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import { ValidationResult } from '@atproto/lexicon';
3
+ import * as AppBskyActorRef from '../actor/ref';
4
+ export interface QueryParams {
5
+ uri: string;
6
+ cid?: string;
7
+ direction?: 'up' | 'down';
8
+ limit?: number;
9
+ before?: string;
10
+ }
11
+ export declare type InputSchema = undefined;
12
+ export interface OutputSchema {
13
+ uri: string;
14
+ cid?: string;
15
+ cursor?: string;
16
+ votes: Vote[];
17
+ [k: string]: unknown;
18
+ }
19
+ export interface CallOptions {
20
+ headers?: Headers;
21
+ }
22
+ export interface Response {
23
+ success: boolean;
24
+ headers: Headers;
25
+ data: OutputSchema;
26
+ }
27
+ export declare function toKnownErr(e: any): any;
28
+ export interface Vote {
29
+ direction: 'up' | 'down';
30
+ indexedAt: string;
31
+ createdAt: string;
32
+ actor: AppBskyActorRef.WithInfo;
33
+ [k: string]: unknown;
34
+ }
35
+ export declare function isVote(v: unknown): v is Vote;
36
+ export declare function validateVote(v: unknown): ValidationResult;
@@ -1,9 +1,9 @@
1
- import { ValidationResult } from '@atproto/lexicon'
2
- import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
3
  export interface Record {
4
- subject: ComAtprotoRepoStrongRef.Main
5
- createdAt: string
6
- [k: string]: unknown
4
+ subject: ComAtprotoRepoStrongRef.Main;
5
+ createdAt: string;
6
+ [k: string]: unknown;
7
7
  }
8
- export declare function isRecord(v: unknown): v is Record
9
- export declare function validateRecord(v: unknown): ValidationResult
8
+ export declare function isRecord(v: unknown): v is Record;
9
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -1,9 +1,9 @@
1
- import { ValidationResult } from '@atproto/lexicon'
2
- import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
3
  export interface Record {
4
- subject: ComAtprotoRepoStrongRef.Main
5
- createdAt: string
6
- [k: string]: unknown
4
+ subject: ComAtprotoRepoStrongRef.Main;
5
+ createdAt: string;
6
+ [k: string]: unknown;
7
7
  }
8
- export declare function isRecord(v: unknown): v is Record
9
- export declare function validateRecord(v: unknown): ValidationResult
8
+ export declare function isRecord(v: unknown): v is Record;
9
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -0,0 +1,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ feed: 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,25 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
+ export interface QueryParams {
4
+ }
5
+ export interface InputSchema {
6
+ subject: ComAtprotoRepoStrongRef.Main;
7
+ direction: 'up' | 'down' | 'none';
8
+ [k: string]: unknown;
9
+ }
10
+ export interface OutputSchema {
11
+ upvote?: string;
12
+ downvote?: string;
13
+ [k: string]: unknown;
14
+ }
15
+ export interface CallOptions {
16
+ headers?: Headers;
17
+ qp?: QueryParams;
18
+ encoding: 'application/json';
19
+ }
20
+ export interface Response {
21
+ success: boolean;
22
+ headers: Headers;
23
+ data: OutputSchema;
24
+ }
25
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,9 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
+ export interface Record {
4
+ subject: ComAtprotoRepoStrongRef.Main;
5
+ createdAt: string;
6
+ [k: string]: unknown;
7
+ }
8
+ export declare function isRecord(v: unknown): v is Record;
9
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -0,0 +1,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ feed: 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,10 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
+ export interface Record {
4
+ subject: ComAtprotoRepoStrongRef.Main;
5
+ direction: 'up' | 'down';
6
+ createdAt: string;
7
+ [k: string]: unknown;
8
+ }
9
+ export declare function isRecord(v: unknown): v is Record;
10
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -0,0 +1 @@
1
+ export declare const MAIN = "app.bsky.graph.assertCreator#main";
@@ -0,0 +1 @@
1
+ export declare const MAIN = "app.bsky.graph.assertMember#main";