@atproto/api 0.2.5 → 0.2.6
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/dist/client/index.d.ts +19 -0
- package/dist/client/lexicons.d.ts +364 -7
- package/dist/client/types/app/bsky/actor/defs.d.ts +4 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +2 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +2 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +4 -1
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +2 -0
- package/dist/client/types/com/atproto/{handle/update.d.ts → admin/updateAccountHandle.d.ts} +1 -0
- package/dist/client/types/com/atproto/label/defs.d.ts +12 -0
- package/dist/client/types/{app/bsky/feed/getAuthorFeed.d.ts → com/atproto/label/queryLabels.d.ts} +4 -3
- package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +16 -0
- package/dist/client/types/com/atproto/{account/createInviteCode.d.ts → server/createInviteCodes.d.ts} +3 -1
- package/dist/client/types/com/atproto/server/createSession.d.ts +1 -1
- package/dist/client/types/{app/bsky/actor/getSuggestions.d.ts → com/atproto/sync/listRepos.d.ts} +9 -2
- package/dist/index.js +674 -229
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +66 -0
- package/src/client/lexicons.ts +377 -10
- package/src/client/types/app/bsky/actor/defs.ts +4 -0
- package/src/client/types/app/bsky/feed/defs.ts +2 -0
- package/src/client/types/app/bsky/notification/listNotifications.ts +2 -0
- package/src/client/types/com/atproto/admin/defs.ts +4 -1
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +2 -0
- package/src/client/types/com/atproto/admin/updateAccountHandle.ts +33 -0
- package/src/client/types/com/atproto/label/defs.ts +36 -0
- package/src/client/types/com/atproto/label/queryLabels.ts +42 -0
- package/src/client/types/com/atproto/label/subscribeLabels.ts +45 -0
- package/src/client/types/com/atproto/repo/listRecords.ts +2 -2
- package/src/client/types/com/atproto/server/createInviteCodes.ts +40 -0
- package/src/client/types/com/atproto/server/createSession.ts +1 -1
- package/src/client/types/com/atproto/sync/listRepos.ts +55 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/agent.d.ts +0 -27
- package/dist/bsky-agent.d.ts +0 -43
- package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +0 -16
- package/dist/client/types/app/bsky/actor/getProfiles.d.ts +0 -19
- package/dist/client/types/app/bsky/actor/profile.d.ts +0 -10
- package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
- package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchActors.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
- package/dist/client/types/app/bsky/embed/external.d.ts +0 -31
- package/dist/client/types/app/bsky/embed/images.d.ts +0 -28
- package/dist/client/types/app/bsky/embed/record.d.ts +0 -41
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +0 -24
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
- package/dist/client/types/app/bsky/feed/getLikes.d.ts +0 -34
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +0 -26
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
- package/dist/client/types/app/bsky/feed/like.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/post.d.ts +0 -43
- package/dist/client/types/app/bsky/feed/repost.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
- package/dist/client/types/app/bsky/graph/follow.d.ts +0 -8
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +0 -23
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +0 -23
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +0 -21
- package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/muteActor.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmuteActor.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
- package/dist/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
- package/dist/client/types/app/bsky/richtext/facet.d.ts +0 -30
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
- package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
- package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +0 -21
- package/dist/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
- package/dist/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +0 -16
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +0 -22
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +0 -16
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +0 -23
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +0 -17
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +0 -16
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
- package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +0 -22
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +0 -22
- package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/client/types/com/atproto/identity/resolveHandle.d.ts +0 -18
- package/dist/client/types/com/atproto/identity/updateHandle.d.ts +0 -17
- package/dist/client/types/com/atproto/moderation/createReport.d.ts +0 -38
- package/dist/client/types/com/atproto/moderation/defs.d.ts +0 -3
- package/dist/client/types/com/atproto/repo/applyWrites.d.ts +0 -47
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
- package/dist/client/types/com/atproto/repo/createRecord.d.ts +0 -31
- package/dist/client/types/com/atproto/repo/deleteRecord.d.ts +0 -24
- package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/describeRepo.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/getRecord.d.ts +0 -23
- package/dist/client/types/com/atproto/repo/putRecord.d.ts +0 -32
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/uploadBlob.d.ts +0 -20
- package/dist/client/types/com/atproto/report/create.d.ts +0 -39
- package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
- package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
- package/dist/client/types/com/atproto/server/createAccount.d.ts +0 -44
- package/dist/client/types/com/atproto/server/deleteAccount.d.ts +0 -25
- package/dist/client/types/com/atproto/server/deleteSession.d.ts +0 -13
- package/dist/client/types/com/atproto/server/describeServer.d.ts +0 -27
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
- package/dist/client/types/com/atproto/server/refreshSession.d.ts +0 -24
- package/dist/client/types/com/atproto/server/requestAccountDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/server/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/server/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
- package/dist/client/types/com/atproto/sync/getBlob.d.ts +0 -15
- package/dist/client/types/com/atproto/sync/getBlocks.d.ts +0 -15
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +0 -15
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +0 -20
- package/dist/client/types/com/atproto/sync/getHead.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +0 -17
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +0 -16
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts +0 -20
- package/dist/client/types/com/atproto/sync/notifyOfUpdate.d.ts +0 -13
- package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +0 -13
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +0 -58
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/client/util.d.ts +0 -2
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/index.d.ts +0 -10
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/detection.d.ts +0 -4
- package/dist/rich-text/rich-text.d.ts +0 -39
- package/dist/rich-text/sanitization.d.ts +0 -4
- package/dist/rich-text/sanitize.d.ts +0 -4
- package/dist/rich-text/unicode.d.ts +0 -11
- package/dist/session.d.ts +0 -42
|
@@ -10,6 +10,7 @@ import * as AppBskyEmbedImages from '../embed/images'
|
|
|
10
10
|
import * as AppBskyEmbedExternal from '../embed/external'
|
|
11
11
|
import * as AppBskyEmbedRecord from '../embed/record'
|
|
12
12
|
import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia'
|
|
13
|
+
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
13
14
|
|
|
14
15
|
export interface PostView {
|
|
15
16
|
uri: string
|
|
@@ -27,6 +28,7 @@ export interface PostView {
|
|
|
27
28
|
likeCount?: number
|
|
28
29
|
indexedAt: string
|
|
29
30
|
viewer?: ViewerState
|
|
31
|
+
labels?: ComAtprotoLabelDefs.Label[]
|
|
30
32
|
[k: string]: unknown
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -7,6 +7,7 @@ import { isObj, hasProp } from '../../../../util'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
9
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
10
|
+
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
10
11
|
|
|
11
12
|
export interface QueryParams {
|
|
12
13
|
limit?: number
|
|
@@ -54,6 +55,7 @@ export interface Notification {
|
|
|
54
55
|
record: {}
|
|
55
56
|
isRead: boolean
|
|
56
57
|
indexedAt: string
|
|
58
|
+
labels?: ComAtprotoLabelDefs.Label[]
|
|
57
59
|
[k: string]: unknown
|
|
58
60
|
}
|
|
59
61
|
|
|
@@ -17,6 +17,8 @@ export interface ActionView {
|
|
|
17
17
|
| ComAtprotoRepoStrongRef.Main
|
|
18
18
|
| { $type: string; [k: string]: unknown }
|
|
19
19
|
subjectBlobCids: string[]
|
|
20
|
+
createLabelVals?: string[]
|
|
21
|
+
negateLabelVals?: string[]
|
|
20
22
|
reason: string
|
|
21
23
|
createdBy: string
|
|
22
24
|
createdAt: string
|
|
@@ -42,6 +44,8 @@ export interface ActionViewDetail {
|
|
|
42
44
|
action: ActionType
|
|
43
45
|
subject: RepoView | RecordView | { $type: string; [k: string]: unknown }
|
|
44
46
|
subjectBlobs: BlobView[]
|
|
47
|
+
createLabelVals?: string[]
|
|
48
|
+
negateLabelVals?: string[]
|
|
45
49
|
reason: string
|
|
46
50
|
createdBy: string
|
|
47
51
|
createdAt: string
|
|
@@ -169,7 +173,6 @@ export interface RepoView {
|
|
|
169
173
|
indexedAt: string
|
|
170
174
|
moderation: Moderation
|
|
171
175
|
invitedBy?: ComAtprotoServerDefs.InviteCode
|
|
172
|
-
invites?: ComAtprotoServerDefs.InviteCode[]
|
|
173
176
|
[k: string]: unknown
|
|
174
177
|
}
|
|
175
178
|
|
|
@@ -22,6 +22,8 @@ export interface InputSchema {
|
|
|
22
22
|
| ComAtprotoRepoStrongRef.Main
|
|
23
23
|
| { $type: string; [k: string]: unknown }
|
|
24
24
|
subjectBlobCids?: string[]
|
|
25
|
+
createLabelVals?: string[]
|
|
26
|
+
negateLabelVals?: string[]
|
|
25
27
|
reason: string
|
|
26
28
|
createdBy: string
|
|
27
29
|
[k: string]: unknown
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
|
|
10
|
+
export interface QueryParams {}
|
|
11
|
+
|
|
12
|
+
export interface InputSchema {
|
|
13
|
+
did: string
|
|
14
|
+
handle: string
|
|
15
|
+
[k: string]: unknown
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
headers?: Headers
|
|
20
|
+
qp?: QueryParams
|
|
21
|
+
encoding: 'application/json'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface Response {
|
|
25
|
+
success: boolean
|
|
26
|
+
headers: Headers
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function toKnownErr(e: any) {
|
|
30
|
+
if (e instanceof XRPCError) {
|
|
31
|
+
}
|
|
32
|
+
return e
|
|
33
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/** Metadata tag on an atproto resource (eg, repo or record) */
|
|
10
|
+
export interface Label {
|
|
11
|
+
/** DID of the actor who created this label */
|
|
12
|
+
src: string
|
|
13
|
+
/** AT URI of the record, repository (account), or other resource which this label applies to */
|
|
14
|
+
uri: string
|
|
15
|
+
/** optionally, CID specifying the specific version of 'uri' resource this label applies to */
|
|
16
|
+
cid?: string
|
|
17
|
+
/** the short string name of the value or type of this label */
|
|
18
|
+
val: string
|
|
19
|
+
/** if true, this is a negation label, overwriting a previous label */
|
|
20
|
+
neg?: boolean
|
|
21
|
+
/** timestamp when this label was created */
|
|
22
|
+
cts: string
|
|
23
|
+
[k: string]: unknown
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function isLabel(v: unknown): v is Label {
|
|
27
|
+
return (
|
|
28
|
+
isObj(v) &&
|
|
29
|
+
hasProp(v, '$type') &&
|
|
30
|
+
v.$type === 'com.atproto.label.defs#label'
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function validateLabel(v: unknown): ValidationResult {
|
|
35
|
+
return lexicons.validate('com.atproto.label.defs#label', v)
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 ComAtprotoLabelDefs from './defs'
|
|
10
|
+
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
/** List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI */
|
|
13
|
+
uriPatterns: string[]
|
|
14
|
+
/** Optional list of label sources (DIDs) to filter on */
|
|
15
|
+
sources?: string[]
|
|
16
|
+
limit?: number
|
|
17
|
+
cursor?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type InputSchema = undefined
|
|
21
|
+
|
|
22
|
+
export interface OutputSchema {
|
|
23
|
+
cursor?: string
|
|
24
|
+
labels: ComAtprotoLabelDefs.Label[]
|
|
25
|
+
[k: string]: unknown
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface CallOptions {
|
|
29
|
+
headers?: Headers
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface Response {
|
|
33
|
+
success: boolean
|
|
34
|
+
headers: Headers
|
|
35
|
+
data: OutputSchema
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function toKnownErr(e: any) {
|
|
39
|
+
if (e instanceof XRPCError) {
|
|
40
|
+
}
|
|
41
|
+
return e
|
|
42
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 ComAtprotoLabelDefs from './defs'
|
|
10
|
+
|
|
11
|
+
export interface Labels {
|
|
12
|
+
seq: number
|
|
13
|
+
labels: ComAtprotoLabelDefs.Label[]
|
|
14
|
+
[k: string]: unknown
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function isLabels(v: unknown): v is Labels {
|
|
18
|
+
return (
|
|
19
|
+
isObj(v) &&
|
|
20
|
+
hasProp(v, '$type') &&
|
|
21
|
+
v.$type === 'com.atproto.label.subscribeLabels#labels'
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function validateLabels(v: unknown): ValidationResult {
|
|
26
|
+
return lexicons.validate('com.atproto.label.subscribeLabels#labels', v)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface Info {
|
|
30
|
+
name: 'OutdatedCursor' | (string & {})
|
|
31
|
+
message?: string
|
|
32
|
+
[k: string]: unknown
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function isInfo(v: unknown): v is Info {
|
|
36
|
+
return (
|
|
37
|
+
isObj(v) &&
|
|
38
|
+
hasProp(v, '$type') &&
|
|
39
|
+
v.$type === 'com.atproto.label.subscribeLabels#info'
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function validateInfo(v: unknown): ValidationResult {
|
|
44
|
+
return lexicons.validate('com.atproto.label.subscribeLabels#info', v)
|
|
45
|
+
}
|
|
@@ -15,9 +15,9 @@ export interface QueryParams {
|
|
|
15
15
|
/** The number of records to return. */
|
|
16
16
|
limit?: number
|
|
17
17
|
cursor?: string
|
|
18
|
-
/** The lowest sort-ordered rkey to start from (exclusive) */
|
|
18
|
+
/** DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) */
|
|
19
19
|
rkeyStart?: string
|
|
20
|
-
/** The highest sort-ordered rkey to stop at (exclusive) */
|
|
20
|
+
/** DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) */
|
|
21
21
|
rkeyEnd?: string
|
|
22
22
|
/** Reverse the order of the returned records? */
|
|
23
23
|
reverse?: boolean
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
|
|
10
|
+
export interface QueryParams {}
|
|
11
|
+
|
|
12
|
+
export interface InputSchema {
|
|
13
|
+
codeCount: number
|
|
14
|
+
useCount: number
|
|
15
|
+
forAccount?: string
|
|
16
|
+
[k: string]: unknown
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface OutputSchema {
|
|
20
|
+
codes: string[]
|
|
21
|
+
[k: string]: unknown
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface CallOptions {
|
|
25
|
+
headers?: Headers
|
|
26
|
+
qp?: QueryParams
|
|
27
|
+
encoding: 'application/json'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface Response {
|
|
31
|
+
success: boolean
|
|
32
|
+
headers: Headers
|
|
33
|
+
data: OutputSchema
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function toKnownErr(e: any) {
|
|
37
|
+
if (e instanceof XRPCError) {
|
|
38
|
+
}
|
|
39
|
+
return e
|
|
40
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
10
|
+
export interface QueryParams {
|
|
11
|
+
limit?: number
|
|
12
|
+
cursor?: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type InputSchema = undefined
|
|
16
|
+
|
|
17
|
+
export interface OutputSchema {
|
|
18
|
+
cursor?: string
|
|
19
|
+
repos: Repo[]
|
|
20
|
+
[k: string]: unknown
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface CallOptions {
|
|
24
|
+
headers?: Headers
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Response {
|
|
28
|
+
success: boolean
|
|
29
|
+
headers: Headers
|
|
30
|
+
data: OutputSchema
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function toKnownErr(e: any) {
|
|
34
|
+
if (e instanceof XRPCError) {
|
|
35
|
+
}
|
|
36
|
+
return e
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface Repo {
|
|
40
|
+
did: string
|
|
41
|
+
head: string
|
|
42
|
+
[k: string]: unknown
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function isRepo(v: unknown): v is Repo {
|
|
46
|
+
return (
|
|
47
|
+
isObj(v) &&
|
|
48
|
+
hasProp(v, '$type') &&
|
|
49
|
+
v.$type === 'com.atproto.sync.listRepos#repo'
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function validateRepo(v: unknown): ValidationResult {
|
|
54
|
+
return lexicons.validate('com.atproto.sync.listRepos#repo', v)
|
|
55
|
+
}
|