@atproto/api 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +7 -0
- package/dist/client/lexicons.d.ts +254 -240
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -24
- package/dist/client/types/app/bsky/actor/getProfiles.d.ts +19 -0
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +2 -15
- package/dist/client/types/app/bsky/actor/profile.d.ts +48 -0
- package/dist/client/types/app/bsky/actor/ref.d.ts +2 -0
- package/dist/client/types/app/bsky/actor/search.d.ts +2 -15
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +2 -13
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +2 -15
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +1 -15
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -15
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +2 -13
- package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
- package/dist/client/types/com/atproto/report/reasonType.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +2 -1
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +20 -0
- package/dist/index.js +632 -544
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +28 -0
- package/src/client/lexicons.ts +282 -262
- package/src/client/types/app/bsky/actor/getProfile.ts +2 -35
- package/src/client/types/app/bsky/actor/getProfiles.ts +35 -0
- package/src/client/types/app/bsky/actor/getSuggestions.ts +2 -25
- package/src/client/types/app/bsky/actor/profile.ts +91 -0
- package/src/client/types/app/bsky/actor/ref.ts +2 -0
- package/src/client/types/app/bsky/actor/search.ts +2 -23
- package/src/client/types/app/bsky/actor/searchTypeahead.ts +2 -23
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +2 -25
- package/src/client/types/app/bsky/graph/getFollowers.ts +1 -25
- package/src/client/types/app/bsky/graph/getFollows.ts +1 -25
- package/src/client/types/app/bsky/graph/getMutes.ts +2 -23
- package/src/client/types/com/atproto/handle/update.ts +31 -0
- package/src/client/types/com/atproto/report/reasonType.ts +2 -2
- package/src/client/types/com/atproto/sync/getRepo.ts +4 -2
- package/src/client/types/com/atproto/sync/subscribeAllRepos.ts +48 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -30,6 +30,7 @@ import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRep
|
|
|
30
30
|
import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
|
|
31
31
|
import * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
|
|
32
32
|
import * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
|
|
33
|
+
import * as ComAtprotoHandleUpdate from './types/com/atproto/handle/update'
|
|
33
34
|
import * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
|
|
34
35
|
import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'
|
|
35
36
|
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
|
|
@@ -53,7 +54,9 @@ import * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommit
|
|
|
53
54
|
import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
|
|
54
55
|
import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
|
|
55
56
|
import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
|
|
57
|
+
import * as ComAtprotoSyncSubscribeAllRepos from './types/com/atproto/sync/subscribeAllRepos'
|
|
56
58
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
59
|
+
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
|
|
57
60
|
import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
|
|
58
61
|
import * as AppBskyActorProfile from './types/app/bsky/actor/profile'
|
|
59
62
|
import * as AppBskyActorRef from './types/app/bsky/actor/ref'
|
|
@@ -113,6 +116,7 @@ export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRep
|
|
|
113
116
|
export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
|
|
114
117
|
export * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
|
|
115
118
|
export * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
|
|
119
|
+
export * as ComAtprotoHandleUpdate from './types/com/atproto/handle/update'
|
|
116
120
|
export * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
|
|
117
121
|
export * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'
|
|
118
122
|
export * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
|
|
@@ -136,7 +140,9 @@ export * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommit
|
|
|
136
140
|
export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
|
|
137
141
|
export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
|
|
138
142
|
export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
|
|
143
|
+
export * as ComAtprotoSyncSubscribeAllRepos from './types/com/atproto/sync/subscribeAllRepos'
|
|
139
144
|
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
145
|
+
export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
|
|
140
146
|
export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
|
|
141
147
|
export * as AppBskyActorProfile from './types/app/bsky/actor/profile'
|
|
142
148
|
export * as AppBskyActorRef from './types/app/bsky/actor/ref'
|
|
@@ -494,6 +500,17 @@ export class HandleNS {
|
|
|
494
500
|
throw ComAtprotoHandleResolve.toKnownErr(e)
|
|
495
501
|
})
|
|
496
502
|
}
|
|
503
|
+
|
|
504
|
+
update(
|
|
505
|
+
data?: ComAtprotoHandleUpdate.InputSchema,
|
|
506
|
+
opts?: ComAtprotoHandleUpdate.CallOptions,
|
|
507
|
+
): Promise<ComAtprotoHandleUpdate.Response> {
|
|
508
|
+
return this._service.xrpc
|
|
509
|
+
.call('com.atproto.handle.update', opts?.qp, data, opts)
|
|
510
|
+
.catch((e) => {
|
|
511
|
+
throw ComAtprotoHandleUpdate.toKnownErr(e)
|
|
512
|
+
})
|
|
513
|
+
}
|
|
497
514
|
}
|
|
498
515
|
|
|
499
516
|
export class RepoNS {
|
|
@@ -784,6 +801,17 @@ export class ActorNS {
|
|
|
784
801
|
})
|
|
785
802
|
}
|
|
786
803
|
|
|
804
|
+
getProfiles(
|
|
805
|
+
params?: AppBskyActorGetProfiles.QueryParams,
|
|
806
|
+
opts?: AppBskyActorGetProfiles.CallOptions,
|
|
807
|
+
): Promise<AppBskyActorGetProfiles.Response> {
|
|
808
|
+
return this._service.xrpc
|
|
809
|
+
.call('app.bsky.actor.getProfiles', params, undefined, opts)
|
|
810
|
+
.catch((e) => {
|
|
811
|
+
throw AppBskyActorGetProfiles.toKnownErr(e)
|
|
812
|
+
})
|
|
813
|
+
}
|
|
814
|
+
|
|
787
815
|
getSuggestions(
|
|
788
816
|
params?: AppBskyActorGetSuggestions.QueryParams,
|
|
789
817
|
opts?: AppBskyActorGetSuggestions.CallOptions,
|