@atproto/api 0.1.1 → 0.1.3
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/build.js +8 -0
- package/dist/client/index.d.ts +14 -0
- package/dist/client/lexicons.d.ts +251 -227
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -24
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +2 -15
- package/dist/client/types/app/bsky/actor/profile.d.ts +24 -1
- 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/actor/updateProfile.d.ts +3 -3
- package/dist/client/types/app/bsky/embed/record.d.ts +33 -0
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +2 -15
- package/dist/client/types/app/bsky/feed/post.d.ts +3 -2
- 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/getBlocks.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/notifyOfUpdate.d.ts +12 -0
- package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +13 -0
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +1 -0
- package/dist/index.js +709 -545
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +56 -0
- package/src/client/lexicons.ts +290 -253
- package/src/client/types/app/bsky/actor/getProfile.ts +2 -35
- package/src/client/types/app/bsky/actor/getSuggestions.ts +2 -25
- package/src/client/types/app/bsky/actor/profile.ts +47 -1
- 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/actor/updateProfile.ts +3 -3
- package/src/client/types/app/bsky/embed/record.ts +83 -0
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +2 -25
- package/src/client/types/app/bsky/feed/post.ts +3 -0
- 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/getBlocks.ts +31 -0
- package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +26 -0
- package/src/client/types/com/atproto/sync/requestCrawl.ts +29 -0
- package/src/client/types/com/atproto/sync/subscribeAllRepos.ts +7 -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'
|
|
@@ -48,11 +49,15 @@ import * as ComAtprotoSessionCreate from './types/com/atproto/session/create'
|
|
|
48
49
|
import * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'
|
|
49
50
|
import * as ComAtprotoSessionGet from './types/com/atproto/session/get'
|
|
50
51
|
import * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'
|
|
52
|
+
import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
|
|
51
53
|
import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
|
|
52
54
|
import * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath'
|
|
53
55
|
import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
|
|
54
56
|
import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
|
|
55
57
|
import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
|
|
58
|
+
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
|
|
59
|
+
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
|
|
60
|
+
import * as ComAtprotoSyncSubscribeAllRepos from './types/com/atproto/sync/subscribeAllRepos'
|
|
56
61
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
57
62
|
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
|
|
58
63
|
import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
|
|
@@ -63,6 +68,7 @@ import * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypea
|
|
|
63
68
|
import * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'
|
|
64
69
|
import * as AppBskyEmbedExternal from './types/app/bsky/embed/external'
|
|
65
70
|
import * as AppBskyEmbedImages from './types/app/bsky/embed/images'
|
|
71
|
+
import * as AppBskyEmbedRecord from './types/app/bsky/embed/record'
|
|
66
72
|
import * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost'
|
|
67
73
|
import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'
|
|
68
74
|
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
|
|
@@ -114,6 +120,7 @@ export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRep
|
|
|
114
120
|
export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
|
|
115
121
|
export * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
|
|
116
122
|
export * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
|
|
123
|
+
export * as ComAtprotoHandleUpdate from './types/com/atproto/handle/update'
|
|
117
124
|
export * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
|
|
118
125
|
export * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'
|
|
119
126
|
export * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
|
|
@@ -132,11 +139,15 @@ export * as ComAtprotoSessionCreate from './types/com/atproto/session/create'
|
|
|
132
139
|
export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'
|
|
133
140
|
export * as ComAtprotoSessionGet from './types/com/atproto/session/get'
|
|
134
141
|
export * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'
|
|
142
|
+
export * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
|
|
135
143
|
export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
|
|
136
144
|
export * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath'
|
|
137
145
|
export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
|
|
138
146
|
export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
|
|
139
147
|
export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
|
|
148
|
+
export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
|
|
149
|
+
export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
|
|
150
|
+
export * as ComAtprotoSyncSubscribeAllRepos from './types/com/atproto/sync/subscribeAllRepos'
|
|
140
151
|
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
141
152
|
export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
|
|
142
153
|
export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
|
|
@@ -147,6 +158,7 @@ export * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypea
|
|
|
147
158
|
export * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'
|
|
148
159
|
export * as AppBskyEmbedExternal from './types/app/bsky/embed/external'
|
|
149
160
|
export * as AppBskyEmbedImages from './types/app/bsky/embed/images'
|
|
161
|
+
export * as AppBskyEmbedRecord from './types/app/bsky/embed/record'
|
|
150
162
|
export * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost'
|
|
151
163
|
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'
|
|
152
164
|
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
|
|
@@ -496,6 +508,17 @@ export class HandleNS {
|
|
|
496
508
|
throw ComAtprotoHandleResolve.toKnownErr(e)
|
|
497
509
|
})
|
|
498
510
|
}
|
|
511
|
+
|
|
512
|
+
update(
|
|
513
|
+
data?: ComAtprotoHandleUpdate.InputSchema,
|
|
514
|
+
opts?: ComAtprotoHandleUpdate.CallOptions,
|
|
515
|
+
): Promise<ComAtprotoHandleUpdate.Response> {
|
|
516
|
+
return this._service.xrpc
|
|
517
|
+
.call('com.atproto.handle.update', opts?.qp, data, opts)
|
|
518
|
+
.catch((e) => {
|
|
519
|
+
throw ComAtprotoHandleUpdate.toKnownErr(e)
|
|
520
|
+
})
|
|
521
|
+
}
|
|
499
522
|
}
|
|
500
523
|
|
|
501
524
|
export class RepoNS {
|
|
@@ -680,6 +703,17 @@ export class SyncNS {
|
|
|
680
703
|
this._service = service
|
|
681
704
|
}
|
|
682
705
|
|
|
706
|
+
getBlocks(
|
|
707
|
+
params?: ComAtprotoSyncGetBlocks.QueryParams,
|
|
708
|
+
opts?: ComAtprotoSyncGetBlocks.CallOptions,
|
|
709
|
+
): Promise<ComAtprotoSyncGetBlocks.Response> {
|
|
710
|
+
return this._service.xrpc
|
|
711
|
+
.call('com.atproto.sync.getBlocks', params, undefined, opts)
|
|
712
|
+
.catch((e) => {
|
|
713
|
+
throw ComAtprotoSyncGetBlocks.toKnownErr(e)
|
|
714
|
+
})
|
|
715
|
+
}
|
|
716
|
+
|
|
683
717
|
getCheckout(
|
|
684
718
|
params?: ComAtprotoSyncGetCheckout.QueryParams,
|
|
685
719
|
opts?: ComAtprotoSyncGetCheckout.CallOptions,
|
|
@@ -734,6 +768,28 @@ export class SyncNS {
|
|
|
734
768
|
throw ComAtprotoSyncGetRepo.toKnownErr(e)
|
|
735
769
|
})
|
|
736
770
|
}
|
|
771
|
+
|
|
772
|
+
notifyOfUpdate(
|
|
773
|
+
params?: ComAtprotoSyncNotifyOfUpdate.QueryParams,
|
|
774
|
+
opts?: ComAtprotoSyncNotifyOfUpdate.CallOptions,
|
|
775
|
+
): Promise<ComAtprotoSyncNotifyOfUpdate.Response> {
|
|
776
|
+
return this._service.xrpc
|
|
777
|
+
.call('com.atproto.sync.notifyOfUpdate', params, undefined, opts)
|
|
778
|
+
.catch((e) => {
|
|
779
|
+
throw ComAtprotoSyncNotifyOfUpdate.toKnownErr(e)
|
|
780
|
+
})
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
requestCrawl(
|
|
784
|
+
params?: ComAtprotoSyncRequestCrawl.QueryParams,
|
|
785
|
+
opts?: ComAtprotoSyncRequestCrawl.CallOptions,
|
|
786
|
+
): Promise<ComAtprotoSyncRequestCrawl.Response> {
|
|
787
|
+
return this._service.xrpc
|
|
788
|
+
.call('com.atproto.sync.requestCrawl', params, undefined, opts)
|
|
789
|
+
.catch((e) => {
|
|
790
|
+
throw ComAtprotoSyncRequestCrawl.toKnownErr(e)
|
|
791
|
+
})
|
|
792
|
+
}
|
|
737
793
|
}
|
|
738
794
|
|
|
739
795
|
export class AppNS {
|