@atproto/api 0.9.6 → 0.9.7

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 (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/client/lexicons.d.ts +96 -5
  3. package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
  4. package/dist/index.js +268 -180
  5. package/dist/index.js.map +2 -2
  6. package/package.json +2 -2
  7. package/src/client/lexicons.ts +339 -123
  8. package/src/client/types/app/bsky/actor/defs.ts +2 -0
  9. package/src/client/types/app/bsky/actor/getProfile.ts +1 -0
  10. package/src/client/types/app/bsky/actor/profile.ts +3 -0
  11. package/src/client/types/app/bsky/embed/external.ts +1 -0
  12. package/src/client/types/app/bsky/embed/images.ts +4 -0
  13. package/src/client/types/app/bsky/embed/record.ts +1 -0
  14. package/src/client/types/app/bsky/feed/defs.ts +1 -0
  15. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +1 -0
  16. package/src/client/types/app/bsky/feed/getFeedGenerator.ts +3 -0
  17. package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +1 -0
  18. package/src/client/types/app/bsky/feed/getLikes.ts +2 -0
  19. package/src/client/types/app/bsky/feed/getListFeed.ts +1 -0
  20. package/src/client/types/app/bsky/feed/getPostThread.ts +3 -0
  21. package/src/client/types/app/bsky/feed/getPosts.ts +1 -0
  22. package/src/client/types/app/bsky/feed/getRepostedBy.ts +2 -0
  23. package/src/client/types/app/bsky/feed/getTimeline.ts +1 -0
  24. package/src/client/types/app/bsky/feed/post.ts +5 -1
  25. package/src/client/types/app/bsky/feed/threadgate.ts +1 -0
  26. package/src/client/types/app/bsky/graph/block.ts +1 -0
  27. package/src/client/types/app/bsky/graph/getList.ts +1 -0
  28. package/src/client/types/app/bsky/graph/getLists.ts +1 -0
  29. package/src/client/types/app/bsky/graph/getRelationships.ts +2 -0
  30. package/src/client/types/app/bsky/graph/list.ts +1 -0
  31. package/src/client/types/app/bsky/graph/listblock.ts +1 -0
  32. package/src/client/types/app/bsky/graph/listitem.ts +2 -0
  33. package/src/client/types/app/bsky/richtext/facet.ts +5 -4
  34. package/src/client/types/com/atproto/identity/updateHandle.ts +1 -0
  35. package/src/client/types/com/atproto/moderation/createReport.ts +1 -0
  36. package/src/client/types/com/atproto/repo/applyWrites.ts +6 -5
  37. package/src/client/types/com/atproto/repo/createRecord.ts +4 -4
  38. package/src/client/types/com/atproto/repo/deleteRecord.ts +2 -2
  39. package/src/client/types/com/atproto/repo/describeRepo.ts +3 -0
  40. package/src/client/types/com/atproto/repo/getRecord.ts +1 -1
  41. package/src/client/types/com/atproto/repo/putRecord.ts +4 -4
  42. package/src/client/types/com/atproto/server/createAccount.ts +8 -0
  43. package/src/client/types/com/atproto/server/createAppPassword.ts +1 -0
  44. package/src/client/types/com/atproto/server/describeServer.ts +3 -0
  45. package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +1 -0
  46. package/src/client/types/com/atproto/server/reserveSigningKey.ts +2 -2
  47. package/src/client/types/com/atproto/sync/getBlob.ts +1 -1
  48. package/src/client/types/com/atproto/sync/getRecord.ts +1 -0
  49. package/src/client/types/com/atproto/sync/getRepo.ts +1 -1
  50. package/src/client/types/com/atproto/sync/listRepos.ts +1 -0
  51. package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +1 -1
  52. package/src/client/types/com/atproto/sync/requestCrawl.ts +1 -1
  53. 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,6 +9,7 @@ import { CID } from 'multiformats/cid'
9
9
  import * as AppBskyActorDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
+ /** Handle or DID of account to fetch profile of. */
12
13
  actor: string
13
14
  }
14
15
 
@@ -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
@@ -57,6 +57,7 @@ export interface ViewRecord {
57
57
  uri: string
58
58
  cid: string
59
59
  author: AppBskyActorDefs.ProfileViewBasic
60
+ /** The record data itself. */
60
61
  value: {}
61
62
  labels?: ComAtprotoLabelDefs.Label[]
62
63
  embeds?: (
@@ -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
@@ -12,6 +12,7 @@ export interface QueryParams {
12
12
  actor: string
13
13
  limit?: number
14
14
  cursor?: string
15
+ /** Combinations of post/repost types to include in response. */
15
16
  filter?:
16
17
  | 'posts_with_replies'
17
18
  | 'posts_no_replies'
@@ -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,6 +9,7 @@ import { CID } from 'multiformats/cid'
9
9
  import * as AppBskyFeedDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
+ /** Reference to feed generator record describing the specific feed being requested. */
12
13
  feed: string
13
14
  limit?: number
14
15
  cursor?: string
@@ -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,6 +9,7 @@ import { CID } from 'multiformats/cid'
9
9
  import * as AppBskyFeedDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
+ /** Reference (AT-URI) to the list record. */
12
13
  list: string
13
14
  limit?: number
14
15
  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,6 +9,7 @@ import { CID } from 'multiformats/cid'
9
9
  import * as AppBskyFeedDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
+ /** List of post AT-URIs to return hydrated views for. */
12
13
  uris: string[]
13
14
  }
14
15
 
@@ -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
- /** Deprecated: replaced by app.bsky.richtext.facet. */
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
  }
@@ -7,6 +7,7 @@ import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
8
 
9
9
  export interface Record {
10
+ /** Reference (AT-URI) to the post record. */
10
11
  post: string
11
12
  allow?: (
12
13
  | MentionRule
@@ -7,6 +7,7 @@ import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
8
 
9
9
  export interface Record {
10
+ /** DID of the account to be blocked. */
10
11
  subject: string
11
12
  createdAt: string
12
13
  [k: string]: unknown
@@ -9,6 +9,7 @@ import { CID } from 'multiformats/cid'
9
9
  import * as AppBskyGraphDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
+ /** Reference (AT-URI) of the list record to hydrate. */
12
13
  list: string
13
14
  limit?: number
14
15
  cursor?: string
@@ -9,6 +9,7 @@ import { CID } from 'multiformats/cid'
9
9
  import * as AppBskyGraphDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
+ /** The account (actor) to enumerate lists from. */
12
13
  actor: string
13
14
  limit?: number
14
15
  cursor?: string
@@ -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,6 +7,7 @@ import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
8
 
9
9
  export interface Record {
10
+ /** Reference (AT-URI) to the mod list record. */
10
11
  subject: string
11
12
  createdAt: string
12
13
  [k: string]: unknown
@@ -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
- /** A facet feature for actor mentions. */
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
- /** A facet feature for links. */
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
- /** A hashtag. */
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
- /** A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings. */
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
@@ -10,6 +10,7 @@ import { CID } from 'multiformats/cid'
10
10
  export interface QueryParams {}
11
11
 
12
12
  export interface InputSchema {
13
+ /** The new handle. */
13
14
  handle: string
14
15
  [k: string]: unknown
15
16
  }
@@ -14,6 +14,7 @@ export interface QueryParams {}
14
14
 
15
15
  export interface InputSchema {
16
16
  reasonType: ComAtprotoModerationDefs.ReasonType
17
+ /** Additional context about the content and violation. */
17
18
  reason?: string
18
19
  subject:
19
20
  | ComAtprotoAdminDefs.RepoRef
@@ -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
- /** Flag for validating the records. */
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
- /** Create a new record. */
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
- /** Update an existing record. */
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
- /** Delete an existing record. */
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 key of the record. */
17
+ /** The Record Key. */
18
18
  rkey?: string
19
- /** Flag for validating the record. */
19
+ /** Can be set to 'false' to skip Lexicon schema validation of record data. */
20
20
  validate?: boolean
21
- /** The record to create. */
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 key of the record. */
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 key of the record. */
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 key of the record. */
17
+ /** The Record Key. */
18
18
  rkey: string
19
- /** Flag for validating the record. */
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
  }
@@ -10,6 +10,7 @@ import { CID } from 'multiformats/cid'
10
10
  export interface QueryParams {}
11
11
 
12
12
  export interface InputSchema {
13
+ /** A short name for the App Password, to help distinguish them. */
13
14
  name: string
14
15
  [k: string]: unknown
15
16
  }
@@ -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,6 +10,7 @@ import * as ComAtprotoServerDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
12
  includeUsed?: boolean
13
+ /** Controls whether any new 'earned' but not 'created' invites should be created. */
13
14
  createAvailable?: boolean
14
15
  }
15
16
 
@@ -10,13 +10,13 @@ import { CID } from 'multiformats/cid'
10
10
  export interface QueryParams {}
11
11
 
12
12
  export interface InputSchema {
13
- /** The did to reserve a new did:key for */
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
- /** Public signing key in the form of a did:key. */
19
+ /** The public key for the reserved signing key, in did:key serialization. */
20
20
  signingKey: string
21
21
  [k: string]: unknown
22
22
  }
@@ -8,7 +8,7 @@ import { lexicons } from '../../../../lexicons'
8
8
  import { CID } from 'multiformats/cid'
9
9
 
10
10
  export interface QueryParams {
11
- /** The DID of the repo. */
11
+ /** The DID of the account. */
12
12
  did: string
13
13
  /** The CID of the blob to fetch */
14
14
  cid: string
@@ -11,6 +11,7 @@ export interface QueryParams {
11
11
  /** The DID of the repo. */
12
12
  did: string
13
13
  collection: string
14
+ /** Record Key */
14
15
  rkey: string
15
16
  /** An optional past commit CID. */
16
17
  commit?: string
@@ -10,7 +10,7 @@ import { CID } from 'multiformats/cid'
10
10
  export interface QueryParams {
11
11
  /** The DID of the repo. */
12
12
  did: string
13
- /** The revision of the repo to catch up from. */
13
+ /** The revision ('rev') of the repo to create a diff from. */
14
14
  since?: string
15
15
  }
16
16
 
@@ -38,6 +38,7 @@ export function toKnownErr(e: any) {
38
38
 
39
39
  export interface Repo {
40
40
  did: string
41
+ /** Current repo commit CID */
41
42
  head: string
42
43
  rev: string
43
44
  [k: string]: unknown
@@ -10,7 +10,7 @@ import { CID } from 'multiformats/cid'
10
10
  export interface QueryParams {}
11
11
 
12
12
  export interface InputSchema {
13
- /** Hostname of the service that is notifying of update. */
13
+ /** Hostname of the current service (usually a PDS) that is notifying of update. */
14
14
  hostname: string
15
15
  [k: string]: unknown
16
16
  }
@@ -10,7 +10,7 @@ import { CID } from 'multiformats/cid'
10
10
  export interface QueryParams {}
11
11
 
12
12
  export interface InputSchema {
13
- /** Hostname of the service that is requesting to be crawled. */
13
+ /** Hostname of the current service (eg, PDS) that is requesting to be crawled. */
14
14
  hostname: string
15
15
  [k: string]: unknown
16
16
  }