@atproto/api 0.9.6 → 0.9.8
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/CHANGELOG.md +12 -0
- package/dist/client/lexicons.d.ts +153 -5
- package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +9 -0
- package/dist/client/types/com/atproto/admin/emitModerationEvent.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/queryModerationEvents.d.ts +2 -0
- package/dist/client/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -0
- package/dist/index.js +335 -181
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
- package/src/client/lexicons.ts +401 -123
- package/src/client/types/app/bsky/actor/defs.ts +2 -0
- package/src/client/types/app/bsky/actor/getProfile.ts +1 -0
- package/src/client/types/app/bsky/actor/profile.ts +3 -0
- package/src/client/types/app/bsky/embed/external.ts +1 -0
- package/src/client/types/app/bsky/embed/images.ts +4 -0
- package/src/client/types/app/bsky/embed/record.ts +1 -0
- package/src/client/types/app/bsky/feed/defs.ts +1 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +1 -0
- package/src/client/types/app/bsky/feed/getFeedGenerator.ts +3 -0
- package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +1 -0
- package/src/client/types/app/bsky/feed/getLikes.ts +2 -0
- package/src/client/types/app/bsky/feed/getListFeed.ts +1 -0
- package/src/client/types/app/bsky/feed/getPostThread.ts +3 -0
- package/src/client/types/app/bsky/feed/getPosts.ts +1 -0
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +2 -0
- package/src/client/types/app/bsky/feed/getTimeline.ts +1 -0
- package/src/client/types/app/bsky/feed/post.ts +5 -1
- package/src/client/types/app/bsky/feed/threadgate.ts +1 -0
- package/src/client/types/app/bsky/graph/block.ts +1 -0
- package/src/client/types/app/bsky/graph/getList.ts +1 -0
- package/src/client/types/app/bsky/graph/getLists.ts +1 -0
- package/src/client/types/app/bsky/graph/getRelationships.ts +2 -0
- package/src/client/types/app/bsky/graph/list.ts +1 -0
- package/src/client/types/app/bsky/graph/listblock.ts +1 -0
- package/src/client/types/app/bsky/graph/listitem.ts +2 -0
- package/src/client/types/app/bsky/richtext/facet.ts +5 -4
- package/src/client/types/com/atproto/admin/defs.ts +24 -0
- package/src/client/types/com/atproto/admin/emitModerationEvent.ts +1 -0
- package/src/client/types/com/atproto/admin/queryModerationEvents.ts +4 -0
- package/src/client/types/com/atproto/admin/queryModerationStatuses.ts +2 -0
- package/src/client/types/com/atproto/identity/updateHandle.ts +1 -0
- package/src/client/types/com/atproto/moderation/createReport.ts +1 -0
- package/src/client/types/com/atproto/repo/applyWrites.ts +6 -5
- package/src/client/types/com/atproto/repo/createRecord.ts +4 -4
- package/src/client/types/com/atproto/repo/deleteRecord.ts +2 -2
- package/src/client/types/com/atproto/repo/describeRepo.ts +3 -0
- package/src/client/types/com/atproto/repo/getRecord.ts +1 -1
- package/src/client/types/com/atproto/repo/putRecord.ts +4 -4
- package/src/client/types/com/atproto/server/createAccount.ts +8 -0
- package/src/client/types/com/atproto/server/createAppPassword.ts +1 -0
- package/src/client/types/com/atproto/server/describeServer.ts +3 -0
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +1 -0
- package/src/client/types/com/atproto/server/reserveSigningKey.ts +2 -2
- package/src/client/types/com/atproto/sync/getBlob.ts +1 -1
- package/src/client/types/com/atproto/sync/getRecord.ts +1 -0
- package/src/client/types/com/atproto/sync/getRepo.ts +1 -1
- package/src/client/types/com/atproto/sync/listRepos.ts +1 -0
- package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +1 -1
- package/src/client/types/com/atproto/sync/requestCrawl.ts +1 -1
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +16 -4
|
@@ -82,6 +82,7 @@ export function validateProfileViewDetailed(v: unknown): ValidationResult {
|
|
|
82
82
|
return lexicons.validate('app.bsky.actor.defs#profileViewDetailed', v)
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
|
|
85
86
|
export interface ViewerState {
|
|
86
87
|
muted?: boolean
|
|
87
88
|
mutedByList?: AppBskyGraphDefs.ListViewBasic
|
|
@@ -154,6 +155,7 @@ export function validateContentLabelPref(v: unknown): ValidationResult {
|
|
|
154
155
|
export interface SavedFeedsPref {
|
|
155
156
|
pinned: string[]
|
|
156
157
|
saved: string[]
|
|
158
|
+
timelineIndex?: number
|
|
157
159
|
[k: string]: unknown
|
|
158
160
|
}
|
|
159
161
|
|
|
@@ -9,8 +9,11 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
|
9
9
|
|
|
10
10
|
export interface Record {
|
|
11
11
|
displayName?: string
|
|
12
|
+
/** Free-form profile description text. */
|
|
12
13
|
description?: string
|
|
14
|
+
/** Small image to be displayed next to posts from account. AKA, 'profile picture' */
|
|
13
15
|
avatar?: BlobRef
|
|
16
|
+
/** Larger horizontal image to display behind profile view. */
|
|
14
17
|
banner?: BlobRef
|
|
15
18
|
labels?:
|
|
16
19
|
| ComAtprotoLabelDefs.SelfLabels
|
|
@@ -6,6 +6,7 @@ import { isObj, hasProp } from '../../../../util'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
|
|
9
|
+
/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */
|
|
9
10
|
export interface Main {
|
|
10
11
|
external: External
|
|
11
12
|
[k: string]: unknown
|
|
@@ -26,6 +26,7 @@ export function validateMain(v: unknown): ValidationResult {
|
|
|
26
26
|
|
|
27
27
|
export interface Image {
|
|
28
28
|
image: BlobRef
|
|
29
|
+
/** Alt text description of the image, for accessibility. */
|
|
29
30
|
alt: string
|
|
30
31
|
aspectRatio?: AspectRatio
|
|
31
32
|
[k: string]: unknown
|
|
@@ -76,8 +77,11 @@ export function validateView(v: unknown): ValidationResult {
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
export interface ViewImage {
|
|
80
|
+
/** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */
|
|
79
81
|
thumb: string
|
|
82
|
+
/** Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. */
|
|
80
83
|
fullsize: string
|
|
84
|
+
/** Alt text description of the image, for accessibility. */
|
|
81
85
|
alt: string
|
|
82
86
|
aspectRatio?: AspectRatio
|
|
83
87
|
[k: string]: unknown
|
|
@@ -45,6 +45,7 @@ export function validatePostView(v: unknown): ValidationResult {
|
|
|
45
45
|
return lexicons.validate('app.bsky.feed.defs#postView', v)
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
/** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
|
|
48
49
|
export interface ViewerState {
|
|
49
50
|
repost?: string
|
|
50
51
|
like?: string
|
|
@@ -9,6 +9,7 @@ import { CID } from 'multiformats/cid'
|
|
|
9
9
|
import * as AppBskyFeedDefs from './defs'
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {
|
|
12
|
+
/** AT-URI of the feed generator record. */
|
|
12
13
|
feed: string
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -16,7 +17,9 @@ export type InputSchema = undefined
|
|
|
16
17
|
|
|
17
18
|
export interface OutputSchema {
|
|
18
19
|
view: AppBskyFeedDefs.GeneratorView
|
|
20
|
+
/** Indicates whether the feed generator service has been online recently, or else seems to be inactive. */
|
|
19
21
|
isOnline: boolean
|
|
22
|
+
/** Indicates whether the feed generator service is compatible with the record declaration. */
|
|
20
23
|
isValid: boolean
|
|
21
24
|
[k: string]: unknown
|
|
22
25
|
}
|
|
@@ -9,7 +9,9 @@ import { CID } from 'multiformats/cid'
|
|
|
9
9
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {
|
|
12
|
+
/** AT-URI of the subject (eg, a post record). */
|
|
12
13
|
uri: string
|
|
14
|
+
/** CID of the subject record (aka, specific version of record), to filter likes. */
|
|
13
15
|
cid?: string
|
|
14
16
|
limit?: number
|
|
15
17
|
cursor?: string
|
|
@@ -9,8 +9,11 @@ import { CID } from 'multiformats/cid'
|
|
|
9
9
|
import * as AppBskyFeedDefs from './defs'
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {
|
|
12
|
+
/** Reference (AT-URI) to post record. */
|
|
12
13
|
uri: string
|
|
14
|
+
/** How many levels of reply depth should be included in response. */
|
|
13
15
|
depth?: number
|
|
16
|
+
/** How many levels of parent (and grandparent, etc) post to include. */
|
|
14
17
|
parentHeight?: number
|
|
15
18
|
}
|
|
16
19
|
|
|
@@ -9,7 +9,9 @@ import { CID } from 'multiformats/cid'
|
|
|
9
9
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {
|
|
12
|
+
/** Reference (AT-URI) of post record */
|
|
12
13
|
uri: string
|
|
14
|
+
/** If supplied, filters to reposts of specific version (by CID) of the post record. */
|
|
13
15
|
cid?: string
|
|
14
16
|
limit?: number
|
|
15
17
|
cursor?: string
|
|
@@ -9,6 +9,7 @@ import { CID } from 'multiformats/cid'
|
|
|
9
9
|
import * as AppBskyFeedDefs from './defs'
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {
|
|
12
|
+
/** Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism. */
|
|
12
13
|
algorithm?: string
|
|
13
14
|
limit?: number
|
|
14
15
|
cursor?: string
|
|
@@ -14,9 +14,11 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
|
14
14
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
|
15
15
|
|
|
16
16
|
export interface Record {
|
|
17
|
+
/** The primary post content. May be an empty string, if there are embeds. */
|
|
17
18
|
text: string
|
|
18
|
-
/**
|
|
19
|
+
/** DEPRECATED: replaced by app.bsky.richtext.facet. */
|
|
19
20
|
entities?: Entity[]
|
|
21
|
+
/** Annotations of text (mentions, URLs, hashtags, etc) */
|
|
20
22
|
facets?: AppBskyRichtextFacet.Main[]
|
|
21
23
|
reply?: ReplyRef
|
|
22
24
|
embed?:
|
|
@@ -25,12 +27,14 @@ export interface Record {
|
|
|
25
27
|
| AppBskyEmbedRecord.Main
|
|
26
28
|
| AppBskyEmbedRecordWithMedia.Main
|
|
27
29
|
| { $type: string; [k: string]: unknown }
|
|
30
|
+
/** Indicates human language of post primary text content. */
|
|
28
31
|
langs?: string[]
|
|
29
32
|
labels?:
|
|
30
33
|
| ComAtprotoLabelDefs.SelfLabels
|
|
31
34
|
| { $type: string; [k: string]: unknown }
|
|
32
35
|
/** Additional non-inline tags describing this post. */
|
|
33
36
|
tags?: string[]
|
|
37
|
+
/** Client-declared timestamp when this post was originally created. */
|
|
34
38
|
createdAt: string
|
|
35
39
|
[k: string]: unknown
|
|
36
40
|
}
|
|
@@ -9,7 +9,9 @@ import { CID } from 'multiformats/cid'
|
|
|
9
9
|
import * as AppBskyGraphDefs from './defs'
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {
|
|
12
|
+
/** Primary account requesting relationships for. */
|
|
12
13
|
actor: string
|
|
14
|
+
/** List of 'other' accounts to be related back to the primary. */
|
|
13
15
|
others?: string[]
|
|
14
16
|
}
|
|
15
17
|
|
|
@@ -11,6 +11,7 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
|
11
11
|
|
|
12
12
|
export interface Record {
|
|
13
13
|
purpose: AppBskyGraphDefs.ListPurpose
|
|
14
|
+
/** Display name for list; can not be empty. */
|
|
14
15
|
name: string
|
|
15
16
|
description?: string
|
|
16
17
|
descriptionFacets?: AppBskyRichtextFacet.Main[]
|
|
@@ -7,7 +7,9 @@ import { lexicons } from '../../../../lexicons'
|
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
|
|
9
9
|
export interface Record {
|
|
10
|
+
/** The account which is included on the list. */
|
|
10
11
|
subject: string
|
|
12
|
+
/** Reference (AT-URI) to the list record (app.bsky.graph.list). */
|
|
11
13
|
list: string
|
|
12
14
|
createdAt: string
|
|
13
15
|
[k: string]: unknown
|
|
@@ -6,6 +6,7 @@ import { isObj, hasProp } from '../../../../util'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
|
|
9
|
+
/** Annotation of a sub-string within rich text. */
|
|
9
10
|
export interface Main {
|
|
10
11
|
index: ByteSlice
|
|
11
12
|
features: (Mention | Link | Tag | { $type: string; [k: string]: unknown })[]
|
|
@@ -25,7 +26,7 @@ export function validateMain(v: unknown): ValidationResult {
|
|
|
25
26
|
return lexicons.validate('app.bsky.richtext.facet#main', v)
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
/**
|
|
29
|
+
/** Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. */
|
|
29
30
|
export interface Mention {
|
|
30
31
|
did: string
|
|
31
32
|
[k: string]: unknown
|
|
@@ -43,7 +44,7 @@ export function validateMention(v: unknown): ValidationResult {
|
|
|
43
44
|
return lexicons.validate('app.bsky.richtext.facet#mention', v)
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
/**
|
|
47
|
+
/** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */
|
|
47
48
|
export interface Link {
|
|
48
49
|
uri: string
|
|
49
50
|
[k: string]: unknown
|
|
@@ -61,7 +62,7 @@ export function validateLink(v: unknown): ValidationResult {
|
|
|
61
62
|
return lexicons.validate('app.bsky.richtext.facet#link', v)
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
/**
|
|
65
|
+
/** Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags'). */
|
|
65
66
|
export interface Tag {
|
|
66
67
|
tag: string
|
|
67
68
|
[k: string]: unknown
|
|
@@ -77,7 +78,7 @@ export function validateTag(v: unknown): ValidationResult {
|
|
|
77
78
|
return lexicons.validate('app.bsky.richtext.facet#tag', v)
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
/**
|
|
81
|
+
/** Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. */
|
|
81
82
|
export interface ByteSlice {
|
|
82
83
|
byteStart: number
|
|
83
84
|
byteEnd: number
|
|
@@ -156,6 +156,7 @@ export interface SubjectStatusView {
|
|
|
156
156
|
/** True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. */
|
|
157
157
|
appealed?: boolean
|
|
158
158
|
suspendUntil?: string
|
|
159
|
+
tags?: string[]
|
|
159
160
|
[k: string]: unknown
|
|
160
161
|
}
|
|
161
162
|
|
|
@@ -720,6 +721,29 @@ export function validateModEventEmail(v: unknown): ValidationResult {
|
|
|
720
721
|
return lexicons.validate('com.atproto.admin.defs#modEventEmail', v)
|
|
721
722
|
}
|
|
722
723
|
|
|
724
|
+
/** Add/Remove a tag on a subject */
|
|
725
|
+
export interface ModEventTag {
|
|
726
|
+
/** Tags to be added to the subject. If already exists, won't be duplicated. */
|
|
727
|
+
add: string[]
|
|
728
|
+
/** Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. */
|
|
729
|
+
remove: string[]
|
|
730
|
+
/** Additional comment about added/removed tags. */
|
|
731
|
+
comment?: string
|
|
732
|
+
[k: string]: unknown
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
export function isModEventTag(v: unknown): v is ModEventTag {
|
|
736
|
+
return (
|
|
737
|
+
isObj(v) &&
|
|
738
|
+
hasProp(v, '$type') &&
|
|
739
|
+
v.$type === 'com.atproto.admin.defs#modEventTag'
|
|
740
|
+
)
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export function validateModEventTag(v: unknown): ValidationResult {
|
|
744
|
+
return lexicons.validate('com.atproto.admin.defs#modEventTag', v)
|
|
745
|
+
}
|
|
746
|
+
|
|
723
747
|
export interface CommunicationTemplateView {
|
|
724
748
|
id: string
|
|
725
749
|
/** Name of the template. */
|
|
@@ -23,6 +23,7 @@ export interface InputSchema {
|
|
|
23
23
|
| ComAtprotoAdminDefs.ModEventReverseTakedown
|
|
24
24
|
| ComAtprotoAdminDefs.ModEventUnmute
|
|
25
25
|
| ComAtprotoAdminDefs.ModEventEmail
|
|
26
|
+
| ComAtprotoAdminDefs.ModEventTag
|
|
26
27
|
| { $type: string; [k: string]: unknown }
|
|
27
28
|
subject:
|
|
28
29
|
| ComAtprotoAdminDefs.RepoRef
|
|
@@ -30,6 +30,10 @@ export interface QueryParams {
|
|
|
30
30
|
addedLabels?: string[]
|
|
31
31
|
/** If specified, only events where all of these labels were removed are returned */
|
|
32
32
|
removedLabels?: string[]
|
|
33
|
+
/** If specified, only events where all of these tags were added are returned */
|
|
34
|
+
addedTags?: string[]
|
|
35
|
+
/** If specified, only events where all of these tags were removed are returned */
|
|
36
|
+
removedTags?: string[]
|
|
33
37
|
reportTypes?: string[]
|
|
34
38
|
cursor?: string
|
|
35
39
|
}
|
|
@@ -10,11 +10,12 @@ import { CID } from 'multiformats/cid'
|
|
|
10
10
|
export interface QueryParams {}
|
|
11
11
|
|
|
12
12
|
export interface InputSchema {
|
|
13
|
-
/** The handle or DID of the repo. */
|
|
13
|
+
/** The handle or DID of the repo (aka, current account). */
|
|
14
14
|
repo: string
|
|
15
|
-
/**
|
|
15
|
+
/** Can be set to 'false' to skip Lexicon schema validation of record data, for all operations. */
|
|
16
16
|
validate?: boolean
|
|
17
17
|
writes: (Create | Update | Delete)[]
|
|
18
|
+
/** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
|
|
18
19
|
swapCommit?: string
|
|
19
20
|
[k: string]: unknown
|
|
20
21
|
}
|
|
@@ -43,7 +44,7 @@ export function toKnownErr(e: any) {
|
|
|
43
44
|
return e
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
/**
|
|
47
|
+
/** Operation which creates a new record. */
|
|
47
48
|
export interface Create {
|
|
48
49
|
collection: string
|
|
49
50
|
rkey?: string
|
|
@@ -63,7 +64,7 @@ export function validateCreate(v: unknown): ValidationResult {
|
|
|
63
64
|
return lexicons.validate('com.atproto.repo.applyWrites#create', v)
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
/**
|
|
67
|
+
/** Operation which updates an existing record. */
|
|
67
68
|
export interface Update {
|
|
68
69
|
collection: string
|
|
69
70
|
rkey: string
|
|
@@ -83,7 +84,7 @@ export function validateUpdate(v: unknown): ValidationResult {
|
|
|
83
84
|
return lexicons.validate('com.atproto.repo.applyWrites#update', v)
|
|
84
85
|
}
|
|
85
86
|
|
|
86
|
-
/**
|
|
87
|
+
/** Operation which deletes an existing record. */
|
|
87
88
|
export interface Delete {
|
|
88
89
|
collection: string
|
|
89
90
|
rkey: string
|
|
@@ -10,15 +10,15 @@ import { CID } from 'multiformats/cid'
|
|
|
10
10
|
export interface QueryParams {}
|
|
11
11
|
|
|
12
12
|
export interface InputSchema {
|
|
13
|
-
/** The handle or DID of the repo. */
|
|
13
|
+
/** The handle or DID of the repo (aka, current account). */
|
|
14
14
|
repo: string
|
|
15
15
|
/** The NSID of the record collection. */
|
|
16
16
|
collection: string
|
|
17
|
-
/** The
|
|
17
|
+
/** The Record Key. */
|
|
18
18
|
rkey?: string
|
|
19
|
-
/**
|
|
19
|
+
/** Can be set to 'false' to skip Lexicon schema validation of record data. */
|
|
20
20
|
validate?: boolean
|
|
21
|
-
/** The record
|
|
21
|
+
/** The record itself. Must contain a $type field. */
|
|
22
22
|
record: {}
|
|
23
23
|
/** Compare and swap with the previous commit by CID. */
|
|
24
24
|
swapCommit?: string
|
|
@@ -10,11 +10,11 @@ import { CID } from 'multiformats/cid'
|
|
|
10
10
|
export interface QueryParams {}
|
|
11
11
|
|
|
12
12
|
export interface InputSchema {
|
|
13
|
-
/** The handle or DID of the repo. */
|
|
13
|
+
/** The handle or DID of the repo (aka, current account). */
|
|
14
14
|
repo: string
|
|
15
15
|
/** The NSID of the record collection. */
|
|
16
16
|
collection: string
|
|
17
|
-
/** The
|
|
17
|
+
/** The Record Key. */
|
|
18
18
|
rkey: string
|
|
19
19
|
/** Compare and swap with the previous record by CID. */
|
|
20
20
|
swapRecord?: string
|
|
@@ -17,8 +17,11 @@ export type InputSchema = undefined
|
|
|
17
17
|
export interface OutputSchema {
|
|
18
18
|
handle: string
|
|
19
19
|
did: string
|
|
20
|
+
/** The complete DID document for this account. */
|
|
20
21
|
didDoc: {}
|
|
22
|
+
/** List of all the collections (NSIDs) for which this repo contains at least one record. */
|
|
21
23
|
collections: string[]
|
|
24
|
+
/** Indicates if handle is currently valid (resolves bi-directionally) */
|
|
22
25
|
handleIsCorrect: boolean
|
|
23
26
|
[k: string]: unknown
|
|
24
27
|
}
|
|
@@ -12,7 +12,7 @@ export interface QueryParams {
|
|
|
12
12
|
repo: string
|
|
13
13
|
/** The NSID of the record collection. */
|
|
14
14
|
collection: string
|
|
15
|
-
/** The
|
|
15
|
+
/** The Record Key. */
|
|
16
16
|
rkey: string
|
|
17
17
|
/** The CID of the version of the record. If not specified, then return the most recent version. */
|
|
18
18
|
cid?: string
|
|
@@ -10,17 +10,17 @@ import { CID } from 'multiformats/cid'
|
|
|
10
10
|
export interface QueryParams {}
|
|
11
11
|
|
|
12
12
|
export interface InputSchema {
|
|
13
|
-
/** The handle or DID of the repo. */
|
|
13
|
+
/** The handle or DID of the repo (aka, current account). */
|
|
14
14
|
repo: string
|
|
15
15
|
/** The NSID of the record collection. */
|
|
16
16
|
collection: string
|
|
17
|
-
/** The
|
|
17
|
+
/** The Record Key. */
|
|
18
18
|
rkey: string
|
|
19
|
-
/**
|
|
19
|
+
/** Can be set to 'false' to skip Lexicon schema validation of record data. */
|
|
20
20
|
validate?: boolean
|
|
21
21
|
/** The record to write. */
|
|
22
22
|
record: {}
|
|
23
|
-
/** Compare and swap with the previous record by CID. */
|
|
23
|
+
/** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
|
|
24
24
|
swapRecord?: string | null
|
|
25
25
|
/** Compare and swap with the previous commit by CID. */
|
|
26
26
|
swapCommit?: string
|
|
@@ -11,22 +11,30 @@ export interface QueryParams {}
|
|
|
11
11
|
|
|
12
12
|
export interface InputSchema {
|
|
13
13
|
email?: string
|
|
14
|
+
/** Requested handle for the account. */
|
|
14
15
|
handle: string
|
|
16
|
+
/** Pre-existing atproto DID, being imported to a new account. */
|
|
15
17
|
did?: string
|
|
16
18
|
inviteCode?: string
|
|
17
19
|
verificationCode?: string
|
|
18
20
|
verificationPhone?: string
|
|
21
|
+
/** Initial account password. May need to meet instance-specific password strength requirements. */
|
|
19
22
|
password?: string
|
|
23
|
+
/** DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. */
|
|
20
24
|
recoveryKey?: string
|
|
25
|
+
/** A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. */
|
|
21
26
|
plcOp?: {}
|
|
22
27
|
[k: string]: unknown
|
|
23
28
|
}
|
|
24
29
|
|
|
30
|
+
/** Account login session returned on successful account creation. */
|
|
25
31
|
export interface OutputSchema {
|
|
26
32
|
accessJwt: string
|
|
27
33
|
refreshJwt: string
|
|
28
34
|
handle: string
|
|
35
|
+
/** The DID of the new account. */
|
|
29
36
|
did: string
|
|
37
|
+
/** Complete DID document. */
|
|
30
38
|
didDoc?: {}
|
|
31
39
|
[k: string]: unknown
|
|
32
40
|
}
|
|
@@ -12,8 +12,11 @@ export interface QueryParams {}
|
|
|
12
12
|
export type InputSchema = undefined
|
|
13
13
|
|
|
14
14
|
export interface OutputSchema {
|
|
15
|
+
/** If true, an invite code must be supplied to create an account on this instance. */
|
|
15
16
|
inviteCodeRequired?: boolean
|
|
17
|
+
/** If true, a phone verification token must be supplied to create an account on this instance. */
|
|
16
18
|
phoneVerificationRequired?: boolean
|
|
19
|
+
/** List of domain suffixes that can be used in account handles. */
|
|
17
20
|
availableUserDomains: string[]
|
|
18
21
|
links?: Links
|
|
19
22
|
[k: string]: unknown
|
|
@@ -10,13 +10,13 @@ import { CID } from 'multiformats/cid'
|
|
|
10
10
|
export interface QueryParams {}
|
|
11
11
|
|
|
12
12
|
export interface InputSchema {
|
|
13
|
-
/** The
|
|
13
|
+
/** The DID to reserve a key for. */
|
|
14
14
|
did?: string
|
|
15
15
|
[k: string]: unknown
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface OutputSchema {
|
|
19
|
-
/**
|
|
19
|
+
/** The public key for the reserved signing key, in did:key serialization. */
|
|
20
20
|
signingKey: string
|
|
21
21
|
[k: string]: unknown
|
|
22
22
|
}
|