@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/build.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
const pkgJson = require('@npmcli/package-json')
|
|
1
2
|
const { nodeExternalsPlugin } = require('esbuild-node-externals')
|
|
2
3
|
|
|
3
4
|
const buildShallow =
|
|
4
5
|
process.argv.includes('--shallow') || process.env.ATP_BUILD_SHALLOW === 'true'
|
|
5
6
|
|
|
7
|
+
if (process.argv.includes('--update-main-to-dist')) {
|
|
8
|
+
return pkgJson
|
|
9
|
+
.load(__dirname)
|
|
10
|
+
.then((pkg) => pkg.update({ main: 'dist/index.js' }))
|
|
11
|
+
.then((pkg) => pkg.save())
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
require('esbuild').build({
|
|
7
15
|
logLevel: 'info',
|
|
8
16
|
entryPoints: ['src/index.ts'],
|
package/dist/client/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRep
|
|
|
18
18
|
import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
|
|
19
19
|
import * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload';
|
|
20
20
|
import * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve';
|
|
21
|
+
import * as ComAtprotoHandleUpdate from './types/com/atproto/handle/update';
|
|
21
22
|
import * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite';
|
|
22
23
|
import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord';
|
|
23
24
|
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord';
|
|
@@ -31,11 +32,14 @@ import * as ComAtprotoSessionCreate from './types/com/atproto/session/create';
|
|
|
31
32
|
import * as ComAtprotoSessionDelete from './types/com/atproto/session/delete';
|
|
32
33
|
import * as ComAtprotoSessionGet from './types/com/atproto/session/get';
|
|
33
34
|
import * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh';
|
|
35
|
+
import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks';
|
|
34
36
|
import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout';
|
|
35
37
|
import * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath';
|
|
36
38
|
import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead';
|
|
37
39
|
import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord';
|
|
38
40
|
import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo';
|
|
41
|
+
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
|
|
42
|
+
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
|
|
39
43
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
|
|
40
44
|
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';
|
|
41
45
|
import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
|
|
@@ -88,6 +92,7 @@ export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRep
|
|
|
88
92
|
export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
|
|
89
93
|
export * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload';
|
|
90
94
|
export * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve';
|
|
95
|
+
export * as ComAtprotoHandleUpdate from './types/com/atproto/handle/update';
|
|
91
96
|
export * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite';
|
|
92
97
|
export * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord';
|
|
93
98
|
export * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord';
|
|
@@ -106,11 +111,15 @@ export * as ComAtprotoSessionCreate from './types/com/atproto/session/create';
|
|
|
106
111
|
export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete';
|
|
107
112
|
export * as ComAtprotoSessionGet from './types/com/atproto/session/get';
|
|
108
113
|
export * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh';
|
|
114
|
+
export * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks';
|
|
109
115
|
export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout';
|
|
110
116
|
export * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath';
|
|
111
117
|
export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead';
|
|
112
118
|
export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord';
|
|
113
119
|
export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo';
|
|
120
|
+
export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
|
|
121
|
+
export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
|
|
122
|
+
export * as ComAtprotoSyncSubscribeAllRepos from './types/com/atproto/sync/subscribeAllRepos';
|
|
114
123
|
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
|
|
115
124
|
export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';
|
|
116
125
|
export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
|
|
@@ -121,6 +130,7 @@ export * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypea
|
|
|
121
130
|
export * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile';
|
|
122
131
|
export * as AppBskyEmbedExternal from './types/app/bsky/embed/external';
|
|
123
132
|
export * as AppBskyEmbedImages from './types/app/bsky/embed/images';
|
|
133
|
+
export * as AppBskyEmbedRecord from './types/app/bsky/embed/record';
|
|
124
134
|
export * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost';
|
|
125
135
|
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
126
136
|
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
|
|
@@ -228,6 +238,7 @@ export declare class HandleNS {
|
|
|
228
238
|
_service: AtpServiceClient;
|
|
229
239
|
constructor(service: AtpServiceClient);
|
|
230
240
|
resolve(params?: ComAtprotoHandleResolve.QueryParams, opts?: ComAtprotoHandleResolve.CallOptions): Promise<ComAtprotoHandleResolve.Response>;
|
|
241
|
+
update(data?: ComAtprotoHandleUpdate.InputSchema, opts?: ComAtprotoHandleUpdate.CallOptions): Promise<ComAtprotoHandleUpdate.Response>;
|
|
231
242
|
}
|
|
232
243
|
export declare class RepoNS {
|
|
233
244
|
_service: AtpServiceClient;
|
|
@@ -261,11 +272,14 @@ export declare class SessionNS {
|
|
|
261
272
|
export declare class SyncNS {
|
|
262
273
|
_service: AtpServiceClient;
|
|
263
274
|
constructor(service: AtpServiceClient);
|
|
275
|
+
getBlocks(params?: ComAtprotoSyncGetBlocks.QueryParams, opts?: ComAtprotoSyncGetBlocks.CallOptions): Promise<ComAtprotoSyncGetBlocks.Response>;
|
|
264
276
|
getCheckout(params?: ComAtprotoSyncGetCheckout.QueryParams, opts?: ComAtprotoSyncGetCheckout.CallOptions): Promise<ComAtprotoSyncGetCheckout.Response>;
|
|
265
277
|
getCommitPath(params?: ComAtprotoSyncGetCommitPath.QueryParams, opts?: ComAtprotoSyncGetCommitPath.CallOptions): Promise<ComAtprotoSyncGetCommitPath.Response>;
|
|
266
278
|
getHead(params?: ComAtprotoSyncGetHead.QueryParams, opts?: ComAtprotoSyncGetHead.CallOptions): Promise<ComAtprotoSyncGetHead.Response>;
|
|
267
279
|
getRecord(params?: ComAtprotoSyncGetRecord.QueryParams, opts?: ComAtprotoSyncGetRecord.CallOptions): Promise<ComAtprotoSyncGetRecord.Response>;
|
|
268
280
|
getRepo(params?: ComAtprotoSyncGetRepo.QueryParams, opts?: ComAtprotoSyncGetRepo.CallOptions): Promise<ComAtprotoSyncGetRepo.Response>;
|
|
281
|
+
notifyOfUpdate(params?: ComAtprotoSyncNotifyOfUpdate.QueryParams, opts?: ComAtprotoSyncNotifyOfUpdate.CallOptions): Promise<ComAtprotoSyncNotifyOfUpdate.Response>;
|
|
282
|
+
requestCrawl(params?: ComAtprotoSyncRequestCrawl.QueryParams, opts?: ComAtprotoSyncRequestCrawl.CallOptions): Promise<ComAtprotoSyncRequestCrawl.Response>;
|
|
269
283
|
}
|
|
270
284
|
export declare class AppNS {
|
|
271
285
|
_service: AtpServiceClient;
|