@atproto/api 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +179 -25
- package/build.js +10 -1
- package/dist/agent.d.ts +11 -6
- package/dist/bsky-agent.d.ts +43 -0
- package/dist/client/index.d.ts +127 -215
- package/dist/client/lexicons.d.ts +1496 -1347
- package/dist/client/types/app/bsky/actor/defs.d.ts +47 -0
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -2
- package/dist/client/types/app/bsky/actor/getProfiles.d.ts +2 -2
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +2 -2
- package/dist/client/types/app/bsky/actor/profile.d.ts +4 -60
- package/dist/client/types/app/bsky/actor/searchActors.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +4 -11
- package/dist/client/types/app/bsky/embed/external.d.ts +9 -13
- package/dist/client/types/app/bsky/embed/images.d.ts +9 -13
- package/dist/client/types/app/bsky/embed/record.d.ts +41 -0
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +24 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +77 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +4 -4
- package/dist/client/types/app/bsky/feed/getLikes.d.ts +34 -0
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +2 -24
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +3 -3
- package/dist/client/types/app/bsky/feed/getTimeline.d.ts +3 -3
- package/dist/client/types/app/bsky/feed/like.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/post.d.ts +5 -29
- package/dist/client/types/app/bsky/graph/follow.d.ts +1 -2
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +5 -5
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +5 -5
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +3 -3
- package/dist/client/types/app/bsky/graph/muteActor.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmuteActor.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +35 -0
- package/dist/client/types/app/bsky/richtext/facet.d.ts +30 -0
- package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +21 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +181 -0
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +3 -3
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +3 -3
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +3 -3
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +5 -6
- package/dist/client/types/com/atproto/identity/resolveHandle.d.ts +18 -0
- package/dist/client/types/com/atproto/identity/updateHandle.d.ts +17 -0
- package/dist/client/types/com/atproto/moderation/createReport.d.ts +38 -0
- package/dist/client/types/com/atproto/moderation/defs.d.ts +3 -0
- package/dist/client/types/com/atproto/repo/applyWrites.d.ts +47 -0
- package/dist/client/types/com/atproto/repo/createRecord.d.ts +7 -2
- package/dist/client/types/com/atproto/repo/deleteRecord.d.ts +7 -2
- package/dist/client/types/com/atproto/repo/describeRepo.d.ts +22 -0
- package/dist/client/types/com/atproto/repo/getRecord.d.ts +1 -1
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +3 -3
- package/dist/client/types/com/atproto/repo/putRecord.d.ts +7 -2
- package/dist/client/types/com/atproto/repo/uploadBlob.d.ts +20 -0
- package/dist/client/types/com/atproto/server/createAccount.d.ts +44 -0
- package/dist/client/types/com/atproto/server/createInviteCode.d.ts +22 -0
- package/dist/client/types/com/atproto/server/createSession.d.ts +29 -0
- package/dist/client/types/com/atproto/server/deleteAccount.d.ts +25 -0
- package/dist/client/types/com/atproto/server/deleteSession.d.ts +13 -0
- package/dist/client/types/com/atproto/server/describeServer.d.ts +27 -0
- package/dist/client/types/com/atproto/server/getSession.d.ts +18 -0
- package/dist/client/types/com/atproto/server/refreshSession.d.ts +24 -0
- package/dist/client/types/com/atproto/server/requestAccountDelete.d.ts +13 -0
- package/dist/client/types/com/atproto/server/requestPasswordReset.d.ts +17 -0
- package/dist/client/types/com/atproto/server/resetPassword.d.ts +24 -0
- package/dist/client/types/com/atproto/sync/getBlob.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/getBlocks.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts +20 -0
- package/dist/client/types/com/atproto/sync/notifyOfUpdate.d.ts +13 -0
- package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +13 -0
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +6 -17
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +58 -0
- package/dist/helpers/bsky.d.ts +20 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8222 -3608
- package/dist/index.js.map +4 -4
- package/dist/mixins/bsky.d.ts +23 -0
- package/dist/rich-text/detection.d.ts +4 -0
- package/dist/rich-text/rich-text.d.ts +39 -0
- package/dist/rich-text/sanitization.d.ts +4 -0
- package/dist/rich-text/sanitize.d.ts +4 -0
- package/dist/rich-text/unicode.d.ts +11 -0
- package/dist/types.d.ts +2 -2
- package/docs/rn-fetch-handler.ts +88 -0
- package/package.json +4 -1
- package/src/agent.ts +51 -15
- package/src/bsky-agent.ts +228 -0
- package/src/client/index.ts +371 -581
- package/src/client/lexicons.ts +1920 -1746
- package/src/client/types/app/bsky/actor/defs.ts +97 -0
- package/src/client/types/app/bsky/actor/getProfile.ts +4 -3
- package/src/client/types/app/bsky/actor/getProfiles.ts +4 -3
- package/src/client/types/app/bsky/actor/getSuggestions.ts +4 -3
- package/src/client/types/app/bsky/actor/profile.ts +5 -95
- package/src/client/types/app/bsky/actor/{searchTypeahead.ts → searchActors.ts} +6 -3
- package/src/client/types/app/bsky/actor/{search.ts → searchActorsTypeahead.ts} +4 -5
- package/src/client/types/app/bsky/embed/external.ts +14 -13
- package/src/client/types/app/bsky/embed/images.ts +14 -15
- package/src/client/types/app/bsky/embed/record.ts +90 -0
- package/src/client/types/app/bsky/embed/recordWithMedia.ts +53 -0
- package/src/client/types/app/bsky/feed/defs.ts +156 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +6 -5
- package/src/client/types/app/bsky/feed/{getVotes.ts → getLikes.ts} +11 -12
- package/src/client/types/app/bsky/feed/getPostThread.ts +5 -48
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +5 -4
- package/src/client/types/app/bsky/feed/getTimeline.ts +5 -4
- package/src/client/types/app/bsky/feed/{vote.ts → like.ts} +4 -4
- package/src/client/types/app/bsky/feed/post.ts +12 -51
- package/src/client/types/app/bsky/feed/repost.ts +2 -1
- package/src/client/types/app/bsky/graph/follow.ts +3 -3
- package/src/client/types/app/bsky/graph/getFollowers.ts +7 -6
- package/src/client/types/app/bsky/graph/getFollows.ts +7 -6
- package/src/client/types/app/bsky/graph/getMutes.ts +5 -4
- package/src/client/types/app/bsky/graph/{mute.ts → muteActor.ts} +3 -2
- package/src/client/types/app/bsky/graph/{unmute.ts → unmuteActor.ts} +3 -2
- package/src/client/types/app/bsky/notification/{getCount.ts → getUnreadCount.ts} +2 -1
- package/src/client/types/app/bsky/notification/{list.ts → listNotifications.ts} +13 -9
- package/src/client/types/app/bsky/notification/updateSeen.ts +2 -1
- package/src/client/types/app/bsky/richtext/facet.ts +81 -0
- package/src/client/types/app/bsky/unspecced/getPopular.ts +38 -0
- package/src/client/types/com/atproto/admin/defs.ts +366 -0
- package/src/client/types/com/atproto/admin/getModerationAction.ts +4 -3
- package/src/client/types/com/atproto/admin/getModerationActions.ts +5 -4
- package/src/client/types/com/atproto/admin/getModerationReport.ts +4 -3
- package/src/client/types/com/atproto/admin/getModerationReports.ts +5 -4
- package/src/client/types/com/atproto/admin/getRecord.ts +4 -3
- package/src/client/types/com/atproto/admin/getRepo.ts +4 -3
- package/src/client/types/com/atproto/admin/resolveModerationReports.ts +4 -3
- package/src/client/types/com/atproto/admin/reverseModerationAction.ts +4 -3
- package/src/client/types/com/atproto/admin/searchRepos.ts +5 -4
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +10 -10
- package/src/client/types/com/atproto/{handle/resolve.ts → identity/resolveHandle.ts} +2 -1
- package/src/client/types/com/atproto/{handle/update.ts → identity/updateHandle.ts} +2 -1
- package/src/client/types/com/atproto/{report/create.ts → moderation/createReport.ts} +10 -10
- package/src/client/types/com/atproto/moderation/defs.ts +17 -0
- package/src/client/types/com/atproto/repo/{batchWrite.ts → applyWrites.ts} +21 -12
- package/src/client/types/com/atproto/repo/createRecord.ts +15 -3
- package/src/client/types/com/atproto/repo/deleteRecord.ts +15 -3
- package/src/client/types/com/atproto/repo/{describe.ts → describeRepo.ts} +3 -2
- package/src/client/types/com/atproto/repo/getRecord.ts +4 -3
- package/src/client/types/com/atproto/repo/listRecords.ts +7 -6
- package/src/client/types/com/atproto/repo/putRecord.ts +18 -6
- package/src/client/types/com/atproto/repo/strongRef.ts +2 -1
- package/src/client/types/com/atproto/{blob/upload.ts → repo/uploadBlob.ts} +3 -2
- package/src/client/types/com/atproto/{account/create.ts → server/createAccount.ts} +9 -1
- package/src/client/types/com/atproto/{account → server}/createInviteCode.ts +2 -1
- package/src/client/types/com/atproto/{session/create.ts → server/createSession.ts} +2 -1
- package/src/client/types/com/atproto/{account/delete.ts → server/deleteAccount.ts} +2 -1
- package/src/client/types/com/atproto/{account/requestDelete.ts → server/deleteSession.ts} +2 -1
- package/src/client/types/com/atproto/server/{getAccountsConfig.ts → describeServer.ts} +4 -3
- package/src/client/types/com/atproto/{session/get.ts → server/getSession.ts} +2 -1
- package/src/client/types/com/atproto/{session/refresh.ts → server/refreshSession.ts} +2 -1
- package/src/client/types/com/atproto/{session/delete.ts → server/requestAccountDelete.ts} +2 -1
- package/src/client/types/com/atproto/{account → server}/requestPasswordReset.ts +2 -1
- package/src/client/types/com/atproto/{account → server}/resetPassword.ts +2 -1
- package/src/client/types/com/atproto/sync/getBlob.ts +33 -0
- package/src/client/types/com/atproto/sync/getBlocks.ts +32 -0
- package/src/client/types/com/atproto/sync/getCheckout.ts +2 -1
- package/src/client/types/com/atproto/sync/getCommitPath.ts +2 -1
- package/src/client/types/com/atproto/sync/getHead.ts +2 -1
- package/src/client/types/com/atproto/sync/getRecord.ts +2 -1
- package/src/client/types/com/atproto/sync/getRepo.ts +2 -1
- package/src/client/types/com/atproto/sync/listBlobs.ts +40 -0
- package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +30 -0
- package/src/client/types/com/atproto/{account/get.ts → sync/requestCrawl.ts} +6 -2
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +131 -0
- package/src/index.ts +12 -0
- package/src/rich-text/detection.ts +83 -0
- package/src/rich-text/rich-text.ts +401 -0
- package/src/rich-text/sanitization.ts +40 -0
- package/src/rich-text/unicode.ts +47 -0
- package/src/types.ts +2 -2
- package/tests/agent.test.ts +10 -6
- package/tests/bsky-agent.test.ts +140 -0
- package/tests/errors.test.ts +4 -4
- package/tests/rich-text-detection.test.ts +229 -0
- package/tests/rich-text-sanitization.test.ts +211 -0
- package/tests/rich-text.test.ts +661 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/client/types/app/bsky/actor/ref.ts +0 -64
- package/src/client/types/app/bsky/actor/updateProfile.ts +0 -71
- package/src/client/types/app/bsky/feed/feedViewPost.ts +0 -64
- package/src/client/types/app/bsky/feed/setVote.ts +0 -40
- package/src/client/types/app/bsky/graph/assertCreator.ts +0 -9
- package/src/client/types/app/bsky/graph/assertMember.ts +0 -9
- package/src/client/types/app/bsky/graph/assertion.ts +0 -27
- package/src/client/types/app/bsky/graph/confirmation.ts +0 -28
- package/src/client/types/app/bsky/system/actorUser.ts +0 -9
- package/src/client/types/app/bsky/system/declRef.ts +0 -26
- package/src/client/types/app/bsky/system/declaration.ts +0 -24
- package/src/client/types/com/atproto/admin/blob.ts +0 -84
- package/src/client/types/com/atproto/admin/moderationAction.ts +0 -118
- package/src/client/types/com/atproto/admin/moderationReport.ts +0 -64
- package/src/client/types/com/atproto/admin/record.ts +0 -92
- package/src/client/types/com/atproto/admin/repo.ts +0 -103
- package/src/client/types/com/atproto/repo/recordRef.ts +0 -25
- package/src/client/types/com/atproto/repo/repoRef.ts +0 -24
- package/src/client/types/com/atproto/report/reasonType.ts +0 -16
- package/src/client/types/com/atproto/report/subject.ts +0 -66
- package/src/client/types/com/atproto/sync/subscribeAllRepos.ts +0 -48
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
|
-
import
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as AppBskyActorDefs from '../actor/defs'
|
|
9
10
|
|
|
10
11
|
export interface QueryParams {
|
|
11
12
|
limit?: number
|
|
12
|
-
|
|
13
|
+
cursor?: string
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export type InputSchema = undefined
|
|
@@ -39,15 +40,15 @@ export function toKnownErr(e: any) {
|
|
|
39
40
|
export interface Notification {
|
|
40
41
|
uri: string
|
|
41
42
|
cid: string
|
|
42
|
-
author:
|
|
43
|
-
/** Expected values are '
|
|
43
|
+
author: AppBskyActorDefs.ProfileView
|
|
44
|
+
/** Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'. */
|
|
44
45
|
reason:
|
|
45
|
-
| '
|
|
46
|
+
| 'like'
|
|
46
47
|
| 'repost'
|
|
47
48
|
| 'follow'
|
|
48
|
-
| 'invite'
|
|
49
49
|
| 'mention'
|
|
50
50
|
| 'reply'
|
|
51
|
+
| 'quote'
|
|
51
52
|
| (string & {})
|
|
52
53
|
reasonSubject?: string
|
|
53
54
|
record: {}
|
|
@@ -60,10 +61,13 @@ export function isNotification(v: unknown): v is Notification {
|
|
|
60
61
|
return (
|
|
61
62
|
isObj(v) &&
|
|
62
63
|
hasProp(v, '$type') &&
|
|
63
|
-
v.$type === 'app.bsky.notification.
|
|
64
|
+
v.$type === 'app.bsky.notification.listNotifications#notification'
|
|
64
65
|
)
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
export function validateNotification(v: unknown): ValidationResult {
|
|
68
|
-
return lexicons.validate(
|
|
69
|
+
return lexicons.validate(
|
|
70
|
+
'app.bsky.notification.listNotifications#notification',
|
|
71
|
+
v,
|
|
72
|
+
)
|
|
69
73
|
}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
8
9
|
|
|
9
10
|
export interface QueryParams {}
|
|
10
11
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { isObj, hasProp } from '../../../../util'
|
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
|
7
|
+
import { CID } from 'multiformats/cid'
|
|
8
|
+
|
|
9
|
+
export interface Main {
|
|
10
|
+
index: ByteSlice
|
|
11
|
+
features: (Mention | Link | { $type: string; [k: string]: unknown })[]
|
|
12
|
+
[k: string]: unknown
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function isMain(v: unknown): v is Main {
|
|
16
|
+
return (
|
|
17
|
+
isObj(v) &&
|
|
18
|
+
hasProp(v, '$type') &&
|
|
19
|
+
(v.$type === 'app.bsky.richtext.facet#main' ||
|
|
20
|
+
v.$type === 'app.bsky.richtext.facet')
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function validateMain(v: unknown): ValidationResult {
|
|
25
|
+
return lexicons.validate('app.bsky.richtext.facet#main', v)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** A facet feature for actor mentions. */
|
|
29
|
+
export interface Mention {
|
|
30
|
+
did: string
|
|
31
|
+
[k: string]: unknown
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function isMention(v: unknown): v is Mention {
|
|
35
|
+
return (
|
|
36
|
+
isObj(v) &&
|
|
37
|
+
hasProp(v, '$type') &&
|
|
38
|
+
v.$type === 'app.bsky.richtext.facet#mention'
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function validateMention(v: unknown): ValidationResult {
|
|
43
|
+
return lexicons.validate('app.bsky.richtext.facet#mention', v)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** A facet feature for links. */
|
|
47
|
+
export interface Link {
|
|
48
|
+
uri: string
|
|
49
|
+
[k: string]: unknown
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function isLink(v: unknown): v is Link {
|
|
53
|
+
return (
|
|
54
|
+
isObj(v) &&
|
|
55
|
+
hasProp(v, '$type') &&
|
|
56
|
+
v.$type === 'app.bsky.richtext.facet#link'
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function validateLink(v: unknown): ValidationResult {
|
|
61
|
+
return lexicons.validate('app.bsky.richtext.facet#link', v)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings. */
|
|
65
|
+
export interface ByteSlice {
|
|
66
|
+
byteStart: number
|
|
67
|
+
byteEnd: number
|
|
68
|
+
[k: string]: unknown
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function isByteSlice(v: unknown): v is ByteSlice {
|
|
72
|
+
return (
|
|
73
|
+
isObj(v) &&
|
|
74
|
+
hasProp(v, '$type') &&
|
|
75
|
+
v.$type === 'app.bsky.richtext.facet#byteSlice'
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function validateByteSlice(v: unknown): ValidationResult {
|
|
80
|
+
return lexicons.validate('app.bsky.richtext.facet#byteSlice', v)
|
|
81
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
|
7
|
+
import { lexicons } from '../../../../lexicons'
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as AppBskyFeedDefs from '../feed/defs'
|
|
10
|
+
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
limit?: number
|
|
13
|
+
cursor?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type InputSchema = undefined
|
|
17
|
+
|
|
18
|
+
export interface OutputSchema {
|
|
19
|
+
cursor?: string
|
|
20
|
+
feed: AppBskyFeedDefs.FeedViewPost[]
|
|
21
|
+
[k: string]: unknown
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface CallOptions {
|
|
25
|
+
headers?: Headers
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface Response {
|
|
29
|
+
success: boolean
|
|
30
|
+
headers: Headers
|
|
31
|
+
data: OutputSchema
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function toKnownErr(e: any) {
|
|
35
|
+
if (e instanceof XRPCError) {
|
|
36
|
+
}
|
|
37
|
+
return e
|
|
38
|
+
}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { isObj, hasProp } from '../../../../util'
|
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
|
7
|
+
import { CID } from 'multiformats/cid'
|
|
8
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef'
|
|
9
|
+
import * as ComAtprotoModerationDefs from '../moderation/defs'
|
|
10
|
+
|
|
11
|
+
export interface ActionView {
|
|
12
|
+
id: number
|
|
13
|
+
action: ActionType
|
|
14
|
+
subject:
|
|
15
|
+
| RepoRef
|
|
16
|
+
| ComAtprotoRepoStrongRef.Main
|
|
17
|
+
| { $type: string; [k: string]: unknown }
|
|
18
|
+
subjectBlobCids: string[]
|
|
19
|
+
reason: string
|
|
20
|
+
createdBy: string
|
|
21
|
+
createdAt: string
|
|
22
|
+
reversal?: ActionReversal
|
|
23
|
+
resolvedReportIds: number[]
|
|
24
|
+
[k: string]: unknown
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function isActionView(v: unknown): v is ActionView {
|
|
28
|
+
return (
|
|
29
|
+
isObj(v) &&
|
|
30
|
+
hasProp(v, '$type') &&
|
|
31
|
+
v.$type === 'com.atproto.admin.defs#actionView'
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function validateActionView(v: unknown): ValidationResult {
|
|
36
|
+
return lexicons.validate('com.atproto.admin.defs#actionView', v)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ActionViewDetail {
|
|
40
|
+
id: number
|
|
41
|
+
action: ActionType
|
|
42
|
+
subject: RepoView | RecordView | { $type: string; [k: string]: unknown }
|
|
43
|
+
subjectBlobs: BlobView[]
|
|
44
|
+
reason: string
|
|
45
|
+
createdBy: string
|
|
46
|
+
createdAt: string
|
|
47
|
+
reversal?: ActionReversal
|
|
48
|
+
resolvedReports: ReportView[]
|
|
49
|
+
[k: string]: unknown
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function isActionViewDetail(v: unknown): v is ActionViewDetail {
|
|
53
|
+
return (
|
|
54
|
+
isObj(v) &&
|
|
55
|
+
hasProp(v, '$type') &&
|
|
56
|
+
v.$type === 'com.atproto.admin.defs#actionViewDetail'
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function validateActionViewDetail(v: unknown): ValidationResult {
|
|
61
|
+
return lexicons.validate('com.atproto.admin.defs#actionViewDetail', v)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ActionViewCurrent {
|
|
65
|
+
id: number
|
|
66
|
+
action: ActionType
|
|
67
|
+
[k: string]: unknown
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function isActionViewCurrent(v: unknown): v is ActionViewCurrent {
|
|
71
|
+
return (
|
|
72
|
+
isObj(v) &&
|
|
73
|
+
hasProp(v, '$type') &&
|
|
74
|
+
v.$type === 'com.atproto.admin.defs#actionViewCurrent'
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function validateActionViewCurrent(v: unknown): ValidationResult {
|
|
79
|
+
return lexicons.validate('com.atproto.admin.defs#actionViewCurrent', v)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ActionReversal {
|
|
83
|
+
reason: string
|
|
84
|
+
createdBy: string
|
|
85
|
+
createdAt: string
|
|
86
|
+
[k: string]: unknown
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function isActionReversal(v: unknown): v is ActionReversal {
|
|
90
|
+
return (
|
|
91
|
+
isObj(v) &&
|
|
92
|
+
hasProp(v, '$type') &&
|
|
93
|
+
v.$type === 'com.atproto.admin.defs#actionReversal'
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function validateActionReversal(v: unknown): ValidationResult {
|
|
98
|
+
return lexicons.validate('com.atproto.admin.defs#actionReversal', v)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ActionType =
|
|
102
|
+
| 'lex:com.atproto.admin.defs#takedown'
|
|
103
|
+
| 'lex:com.atproto.admin.defs#flag'
|
|
104
|
+
| 'lex:com.atproto.admin.defs#acknowledge'
|
|
105
|
+
| (string & {})
|
|
106
|
+
|
|
107
|
+
/** Moderation action type: Takedown. Indicates that content should not be served by the PDS. */
|
|
108
|
+
export const TAKEDOWN = 'com.atproto.admin.defs#takedown'
|
|
109
|
+
/** Moderation action type: Flag. Indicates that the content was reviewed and considered to violate PDS rules, but may still be served. */
|
|
110
|
+
export const FLAG = 'com.atproto.admin.defs#flag'
|
|
111
|
+
/** Moderation action type: Acknowledge. Indicates that the content was reviewed and not considered to violate PDS rules. */
|
|
112
|
+
export const ACKNOWLEDGE = 'com.atproto.admin.defs#acknowledge'
|
|
113
|
+
|
|
114
|
+
export interface ReportView {
|
|
115
|
+
id: number
|
|
116
|
+
reasonType: ComAtprotoModerationDefs.ReasonType
|
|
117
|
+
reason?: string
|
|
118
|
+
subject:
|
|
119
|
+
| RepoRef
|
|
120
|
+
| ComAtprotoRepoStrongRef.Main
|
|
121
|
+
| { $type: string; [k: string]: unknown }
|
|
122
|
+
reportedBy: string
|
|
123
|
+
createdAt: string
|
|
124
|
+
resolvedByActionIds: number[]
|
|
125
|
+
[k: string]: unknown
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function isReportView(v: unknown): v is ReportView {
|
|
129
|
+
return (
|
|
130
|
+
isObj(v) &&
|
|
131
|
+
hasProp(v, '$type') &&
|
|
132
|
+
v.$type === 'com.atproto.admin.defs#reportView'
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function validateReportView(v: unknown): ValidationResult {
|
|
137
|
+
return lexicons.validate('com.atproto.admin.defs#reportView', v)
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface ReportViewDetail {
|
|
141
|
+
id: number
|
|
142
|
+
reasonType: ComAtprotoModerationDefs.ReasonType
|
|
143
|
+
reason?: string
|
|
144
|
+
subject: RepoView | RecordView | { $type: string; [k: string]: unknown }
|
|
145
|
+
reportedBy: string
|
|
146
|
+
createdAt: string
|
|
147
|
+
resolvedByActions: ActionView[]
|
|
148
|
+
[k: string]: unknown
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function isReportViewDetail(v: unknown): v is ReportViewDetail {
|
|
152
|
+
return (
|
|
153
|
+
isObj(v) &&
|
|
154
|
+
hasProp(v, '$type') &&
|
|
155
|
+
v.$type === 'com.atproto.admin.defs#reportViewDetail'
|
|
156
|
+
)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function validateReportViewDetail(v: unknown): ValidationResult {
|
|
160
|
+
return lexicons.validate('com.atproto.admin.defs#reportViewDetail', v)
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface RepoView {
|
|
164
|
+
did: string
|
|
165
|
+
handle: string
|
|
166
|
+
email?: string
|
|
167
|
+
relatedRecords: {}[]
|
|
168
|
+
indexedAt: string
|
|
169
|
+
moderation: Moderation
|
|
170
|
+
[k: string]: unknown
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function isRepoView(v: unknown): v is RepoView {
|
|
174
|
+
return (
|
|
175
|
+
isObj(v) &&
|
|
176
|
+
hasProp(v, '$type') &&
|
|
177
|
+
v.$type === 'com.atproto.admin.defs#repoView'
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function validateRepoView(v: unknown): ValidationResult {
|
|
182
|
+
return lexicons.validate('com.atproto.admin.defs#repoView', v)
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface RepoViewDetail {
|
|
186
|
+
did: string
|
|
187
|
+
handle: string
|
|
188
|
+
email?: string
|
|
189
|
+
relatedRecords: {}[]
|
|
190
|
+
indexedAt: string
|
|
191
|
+
moderation: ModerationDetail
|
|
192
|
+
[k: string]: unknown
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function isRepoViewDetail(v: unknown): v is RepoViewDetail {
|
|
196
|
+
return (
|
|
197
|
+
isObj(v) &&
|
|
198
|
+
hasProp(v, '$type') &&
|
|
199
|
+
v.$type === 'com.atproto.admin.defs#repoViewDetail'
|
|
200
|
+
)
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function validateRepoViewDetail(v: unknown): ValidationResult {
|
|
204
|
+
return lexicons.validate('com.atproto.admin.defs#repoViewDetail', v)
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface RepoRef {
|
|
208
|
+
did: string
|
|
209
|
+
[k: string]: unknown
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export function isRepoRef(v: unknown): v is RepoRef {
|
|
213
|
+
return (
|
|
214
|
+
isObj(v) &&
|
|
215
|
+
hasProp(v, '$type') &&
|
|
216
|
+
v.$type === 'com.atproto.admin.defs#repoRef'
|
|
217
|
+
)
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function validateRepoRef(v: unknown): ValidationResult {
|
|
221
|
+
return lexicons.validate('com.atproto.admin.defs#repoRef', v)
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface RecordView {
|
|
225
|
+
uri: string
|
|
226
|
+
cid: string
|
|
227
|
+
value: {}
|
|
228
|
+
blobCids: string[]
|
|
229
|
+
indexedAt: string
|
|
230
|
+
moderation: Moderation
|
|
231
|
+
repo: RepoView
|
|
232
|
+
[k: string]: unknown
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function isRecordView(v: unknown): v is RecordView {
|
|
236
|
+
return (
|
|
237
|
+
isObj(v) &&
|
|
238
|
+
hasProp(v, '$type') &&
|
|
239
|
+
v.$type === 'com.atproto.admin.defs#recordView'
|
|
240
|
+
)
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export function validateRecordView(v: unknown): ValidationResult {
|
|
244
|
+
return lexicons.validate('com.atproto.admin.defs#recordView', v)
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface RecordViewDetail {
|
|
248
|
+
uri: string
|
|
249
|
+
cid: string
|
|
250
|
+
value: {}
|
|
251
|
+
blobs: BlobView[]
|
|
252
|
+
indexedAt: string
|
|
253
|
+
moderation: ModerationDetail
|
|
254
|
+
repo: RepoView
|
|
255
|
+
[k: string]: unknown
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export function isRecordViewDetail(v: unknown): v is RecordViewDetail {
|
|
259
|
+
return (
|
|
260
|
+
isObj(v) &&
|
|
261
|
+
hasProp(v, '$type') &&
|
|
262
|
+
v.$type === 'com.atproto.admin.defs#recordViewDetail'
|
|
263
|
+
)
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export function validateRecordViewDetail(v: unknown): ValidationResult {
|
|
267
|
+
return lexicons.validate('com.atproto.admin.defs#recordViewDetail', v)
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface Moderation {
|
|
271
|
+
currentAction?: ActionViewCurrent
|
|
272
|
+
[k: string]: unknown
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export function isModeration(v: unknown): v is Moderation {
|
|
276
|
+
return (
|
|
277
|
+
isObj(v) &&
|
|
278
|
+
hasProp(v, '$type') &&
|
|
279
|
+
v.$type === 'com.atproto.admin.defs#moderation'
|
|
280
|
+
)
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export function validateModeration(v: unknown): ValidationResult {
|
|
284
|
+
return lexicons.validate('com.atproto.admin.defs#moderation', v)
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface ModerationDetail {
|
|
288
|
+
currentAction?: ActionViewCurrent
|
|
289
|
+
actions: ActionView[]
|
|
290
|
+
reports: ReportView[]
|
|
291
|
+
[k: string]: unknown
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export function isModerationDetail(v: unknown): v is ModerationDetail {
|
|
295
|
+
return (
|
|
296
|
+
isObj(v) &&
|
|
297
|
+
hasProp(v, '$type') &&
|
|
298
|
+
v.$type === 'com.atproto.admin.defs#moderationDetail'
|
|
299
|
+
)
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export function validateModerationDetail(v: unknown): ValidationResult {
|
|
303
|
+
return lexicons.validate('com.atproto.admin.defs#moderationDetail', v)
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface BlobView {
|
|
307
|
+
cid: string
|
|
308
|
+
mimeType: string
|
|
309
|
+
size: number
|
|
310
|
+
createdAt: string
|
|
311
|
+
details?:
|
|
312
|
+
| ImageDetails
|
|
313
|
+
| VideoDetails
|
|
314
|
+
| { $type: string; [k: string]: unknown }
|
|
315
|
+
moderation?: Moderation
|
|
316
|
+
[k: string]: unknown
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export function isBlobView(v: unknown): v is BlobView {
|
|
320
|
+
return (
|
|
321
|
+
isObj(v) &&
|
|
322
|
+
hasProp(v, '$type') &&
|
|
323
|
+
v.$type === 'com.atproto.admin.defs#blobView'
|
|
324
|
+
)
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export function validateBlobView(v: unknown): ValidationResult {
|
|
328
|
+
return lexicons.validate('com.atproto.admin.defs#blobView', v)
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface ImageDetails {
|
|
332
|
+
width: number
|
|
333
|
+
height: number
|
|
334
|
+
[k: string]: unknown
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export function isImageDetails(v: unknown): v is ImageDetails {
|
|
338
|
+
return (
|
|
339
|
+
isObj(v) &&
|
|
340
|
+
hasProp(v, '$type') &&
|
|
341
|
+
v.$type === 'com.atproto.admin.defs#imageDetails'
|
|
342
|
+
)
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export function validateImageDetails(v: unknown): ValidationResult {
|
|
346
|
+
return lexicons.validate('com.atproto.admin.defs#imageDetails', v)
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export interface VideoDetails {
|
|
350
|
+
width: number
|
|
351
|
+
height: number
|
|
352
|
+
length: number
|
|
353
|
+
[k: string]: unknown
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export function isVideoDetails(v: unknown): v is VideoDetails {
|
|
357
|
+
return (
|
|
358
|
+
isObj(v) &&
|
|
359
|
+
hasProp(v, '$type') &&
|
|
360
|
+
v.$type === 'com.atproto.admin.defs#videoDetails'
|
|
361
|
+
)
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export function validateVideoDetails(v: unknown): ValidationResult {
|
|
365
|
+
return lexicons.validate('com.atproto.admin.defs#videoDetails', v)
|
|
366
|
+
}
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
|
-
import
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as ComAtprotoAdminDefs from './defs'
|
|
9
10
|
|
|
10
11
|
export interface QueryParams {
|
|
11
12
|
id: number
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export type InputSchema = undefined
|
|
15
|
-
export type OutputSchema =
|
|
16
|
+
export type OutputSchema = ComAtprotoAdminDefs.ActionViewDetail
|
|
16
17
|
|
|
17
18
|
export interface CallOptions {
|
|
18
19
|
headers?: Headers
|
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
|
-
import
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as ComAtprotoAdminDefs from './defs'
|
|
9
10
|
|
|
10
11
|
export interface QueryParams {
|
|
11
12
|
subject?: string
|
|
12
13
|
limit?: number
|
|
13
|
-
|
|
14
|
+
cursor?: string
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export type InputSchema = undefined
|
|
17
18
|
|
|
18
19
|
export interface OutputSchema {
|
|
19
20
|
cursor?: string
|
|
20
|
-
actions:
|
|
21
|
+
actions: ComAtprotoAdminDefs.ActionView[]
|
|
21
22
|
[k: string]: unknown
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
|
-
import
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as ComAtprotoAdminDefs from './defs'
|
|
9
10
|
|
|
10
11
|
export interface QueryParams {
|
|
11
12
|
id: number
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export type InputSchema = undefined
|
|
15
|
-
export type OutputSchema =
|
|
16
|
+
export type OutputSchema = ComAtprotoAdminDefs.ReportViewDetail
|
|
16
17
|
|
|
17
18
|
export interface CallOptions {
|
|
18
19
|
headers?: Headers
|
|
@@ -2,23 +2,24 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
|
-
import
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as ComAtprotoAdminDefs from './defs'
|
|
9
10
|
|
|
10
11
|
export interface QueryParams {
|
|
11
12
|
subject?: string
|
|
12
13
|
resolved?: boolean
|
|
13
14
|
limit?: number
|
|
14
|
-
|
|
15
|
+
cursor?: string
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export type InputSchema = undefined
|
|
18
19
|
|
|
19
20
|
export interface OutputSchema {
|
|
20
21
|
cursor?: string
|
|
21
|
-
reports:
|
|
22
|
+
reports: ComAtprotoAdminDefs.ReportView[]
|
|
22
23
|
[k: string]: unknown
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
|
-
import
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as ComAtprotoAdminDefs from './defs'
|
|
9
10
|
|
|
10
11
|
export interface QueryParams {
|
|
11
12
|
uri: string
|
|
@@ -13,7 +14,7 @@ export interface QueryParams {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export type InputSchema = undefined
|
|
16
|
-
export type OutputSchema =
|
|
17
|
+
export type OutputSchema = ComAtprotoAdminDefs.RecordViewDetail
|
|
17
18
|
|
|
18
19
|
export interface CallOptions {
|
|
19
20
|
headers?: Headers
|