@atproto/api 0.2.7 → 0.2.9
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/README.md +4 -4
- package/dist/client/index.d.ts +19 -0
- package/dist/client/lexicons.d.ts +248 -2
- package/dist/client/types/app/bsky/feed/getPosts.d.ts +19 -0
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +3 -0
- package/dist/client/types/com/atproto/admin/updateAccountEmail.d.ts +18 -0
- package/dist/client/types/com/atproto/moderation/defs.d.ts +5 -1
- package/dist/client/types/com/atproto/server/createAppPassword.d.ts +31 -0
- package/dist/client/types/com/atproto/server/createInviteCodes.d.ts +10 -2
- package/dist/client/types/com/atproto/server/listAppPasswords.d.ts +28 -0
- package/dist/client/types/com/atproto/server/revokeAppPassword.d.ts +17 -0
- package/dist/index.js +626 -184
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +69 -0
- package/src/client/lexicons.ts +263 -9
- package/src/client/types/app/bsky/feed/getPosts.ts +36 -0
- package/src/client/types/app/bsky/notification/getUnreadCount.ts +3 -1
- package/src/client/types/app/bsky/notification/listNotifications.ts +1 -0
- package/src/client/types/com/atproto/admin/defs.ts +3 -0
- package/src/client/types/com/atproto/admin/updateAccountEmail.ts +34 -0
- package/src/client/types/com/atproto/moderation/defs.ts +14 -2
- package/src/client/types/com/atproto/server/createAppPassword.ts +64 -0
- package/src/client/types/com/atproto/server/createInviteCodes.ts +23 -2
- package/src/client/types/com/atproto/server/listAppPasswords.ts +58 -0
- package/src/client/types/com/atproto/server/revokeAppPassword.ts +32 -0
- package/src/client/types/com/atproto/sync/getRepo.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Log into a server or create accounts using these APIs. You'll need an active ses
|
|
|
33
33
|
import { BskyAgent, AtpSessionEvent, AtpSessionData } from '@atproto/api'
|
|
34
34
|
const agent = new BskyAgent({
|
|
35
35
|
service: 'https://example.com',
|
|
36
|
-
persistSession: (evt: AtpSessionEvent, sess?: AtpSessionData) {
|
|
36
|
+
persistSession: (evt: AtpSessionEvent, sess?: AtpSessionData) => {
|
|
37
37
|
// store the session-data for reuse
|
|
38
38
|
}
|
|
39
39
|
})
|
|
@@ -178,13 +178,13 @@ const res1 = await agent.com.atproto.repo.createRecord(
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
)
|
|
181
|
-
const res2 = await agent.com.atproto.repo.listRecords({
|
|
181
|
+
const res2 = await agent.com.atproto.repo.listRecords({repo: alice.did, collection: 'app.bsky.feed.post'})
|
|
182
182
|
|
|
183
|
-
const res3 = await agent.app.bsky.feed.post.create({
|
|
183
|
+
const res3 = await agent.app.bsky.feed.post.create({repo: alice.did}, {
|
|
184
184
|
text: 'Hello, world!',
|
|
185
185
|
createdAt: (new Date()).toISOString()
|
|
186
186
|
})
|
|
187
|
-
const res4 = await agent.app.bsky.feed.post.list({
|
|
187
|
+
const res4 = await agent.app.bsky.feed.post.list({repo: alice.did})
|
|
188
188
|
```
|
|
189
189
|
|
|
190
190
|
### Generic agent
|
package/dist/client/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/ad
|
|
|
11
11
|
import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
|
|
12
12
|
import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
|
|
13
13
|
import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
|
|
14
|
+
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
|
|
14
15
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
|
|
15
16
|
import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle';
|
|
16
17
|
import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle';
|
|
@@ -25,6 +26,7 @@ import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords
|
|
|
25
26
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
|
|
26
27
|
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
|
|
27
28
|
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
|
|
29
|
+
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword';
|
|
28
30
|
import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode';
|
|
29
31
|
import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes';
|
|
30
32
|
import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession';
|
|
@@ -33,10 +35,12 @@ import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/delet
|
|
|
33
35
|
import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer';
|
|
34
36
|
import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes';
|
|
35
37
|
import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession';
|
|
38
|
+
import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords';
|
|
36
39
|
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession';
|
|
37
40
|
import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete';
|
|
38
41
|
import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset';
|
|
39
42
|
import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword';
|
|
43
|
+
import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword';
|
|
40
44
|
import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob';
|
|
41
45
|
import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks';
|
|
42
46
|
import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout';
|
|
@@ -57,6 +61,7 @@ import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searc
|
|
|
57
61
|
import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
58
62
|
import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes';
|
|
59
63
|
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
|
|
64
|
+
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts';
|
|
60
65
|
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
|
|
61
66
|
import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
|
|
62
67
|
import * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
@@ -85,6 +90,7 @@ export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/ad
|
|
|
85
90
|
export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
|
|
86
91
|
export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
|
|
87
92
|
export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
|
|
93
|
+
export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
|
|
88
94
|
export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
|
|
89
95
|
export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle';
|
|
90
96
|
export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle';
|
|
@@ -103,6 +109,7 @@ export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
|
|
|
103
109
|
export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef';
|
|
104
110
|
export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
|
|
105
111
|
export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
|
|
112
|
+
export * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword';
|
|
106
113
|
export * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode';
|
|
107
114
|
export * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes';
|
|
108
115
|
export * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession';
|
|
@@ -112,10 +119,12 @@ export * as ComAtprotoServerDeleteSession from './types/com/atproto/server/delet
|
|
|
112
119
|
export * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer';
|
|
113
120
|
export * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes';
|
|
114
121
|
export * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession';
|
|
122
|
+
export * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords';
|
|
115
123
|
export * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession';
|
|
116
124
|
export * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete';
|
|
117
125
|
export * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset';
|
|
118
126
|
export * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword';
|
|
127
|
+
export * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword';
|
|
119
128
|
export * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob';
|
|
120
129
|
export * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks';
|
|
121
130
|
export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout';
|
|
@@ -143,6 +152,7 @@ export * as AppBskyFeedDefs from './types/app/bsky/feed/defs';
|
|
|
143
152
|
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
144
153
|
export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes';
|
|
145
154
|
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
|
|
155
|
+
export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts';
|
|
146
156
|
export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
|
|
147
157
|
export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
|
|
148
158
|
export * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
@@ -166,6 +176,10 @@ export declare const COM_ATPROTO_ADMIN: {
|
|
|
166
176
|
};
|
|
167
177
|
export declare const COM_ATPROTO_MODERATION: {
|
|
168
178
|
DefsReasonSpam: string;
|
|
179
|
+
DefsReasonViolation: string;
|
|
180
|
+
DefsReasonMisleading: string;
|
|
181
|
+
DefsReasonSexual: string;
|
|
182
|
+
DefsReasonRude: string;
|
|
169
183
|
DefsReasonOther: string;
|
|
170
184
|
};
|
|
171
185
|
export declare class AtpBaseClient {
|
|
@@ -212,6 +226,7 @@ export declare class AdminNS {
|
|
|
212
226
|
reverseModerationAction(data?: ComAtprotoAdminReverseModerationAction.InputSchema, opts?: ComAtprotoAdminReverseModerationAction.CallOptions): Promise<ComAtprotoAdminReverseModerationAction.Response>;
|
|
213
227
|
searchRepos(params?: ComAtprotoAdminSearchRepos.QueryParams, opts?: ComAtprotoAdminSearchRepos.CallOptions): Promise<ComAtprotoAdminSearchRepos.Response>;
|
|
214
228
|
takeModerationAction(data?: ComAtprotoAdminTakeModerationAction.InputSchema, opts?: ComAtprotoAdminTakeModerationAction.CallOptions): Promise<ComAtprotoAdminTakeModerationAction.Response>;
|
|
229
|
+
updateAccountEmail(data?: ComAtprotoAdminUpdateAccountEmail.InputSchema, opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions): Promise<ComAtprotoAdminUpdateAccountEmail.Response>;
|
|
215
230
|
updateAccountHandle(data?: ComAtprotoAdminUpdateAccountHandle.InputSchema, opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions): Promise<ComAtprotoAdminUpdateAccountHandle.Response>;
|
|
216
231
|
}
|
|
217
232
|
export declare class IdentityNS {
|
|
@@ -246,6 +261,7 @@ export declare class ServerNS {
|
|
|
246
261
|
_service: AtpServiceClient;
|
|
247
262
|
constructor(service: AtpServiceClient);
|
|
248
263
|
createAccount(data?: ComAtprotoServerCreateAccount.InputSchema, opts?: ComAtprotoServerCreateAccount.CallOptions): Promise<ComAtprotoServerCreateAccount.Response>;
|
|
264
|
+
createAppPassword(data?: ComAtprotoServerCreateAppPassword.InputSchema, opts?: ComAtprotoServerCreateAppPassword.CallOptions): Promise<ComAtprotoServerCreateAppPassword.Response>;
|
|
249
265
|
createInviteCode(data?: ComAtprotoServerCreateInviteCode.InputSchema, opts?: ComAtprotoServerCreateInviteCode.CallOptions): Promise<ComAtprotoServerCreateInviteCode.Response>;
|
|
250
266
|
createInviteCodes(data?: ComAtprotoServerCreateInviteCodes.InputSchema, opts?: ComAtprotoServerCreateInviteCodes.CallOptions): Promise<ComAtprotoServerCreateInviteCodes.Response>;
|
|
251
267
|
createSession(data?: ComAtprotoServerCreateSession.InputSchema, opts?: ComAtprotoServerCreateSession.CallOptions): Promise<ComAtprotoServerCreateSession.Response>;
|
|
@@ -254,10 +270,12 @@ export declare class ServerNS {
|
|
|
254
270
|
describeServer(params?: ComAtprotoServerDescribeServer.QueryParams, opts?: ComAtprotoServerDescribeServer.CallOptions): Promise<ComAtprotoServerDescribeServer.Response>;
|
|
255
271
|
getAccountInviteCodes(params?: ComAtprotoServerGetAccountInviteCodes.QueryParams, opts?: ComAtprotoServerGetAccountInviteCodes.CallOptions): Promise<ComAtprotoServerGetAccountInviteCodes.Response>;
|
|
256
272
|
getSession(params?: ComAtprotoServerGetSession.QueryParams, opts?: ComAtprotoServerGetSession.CallOptions): Promise<ComAtprotoServerGetSession.Response>;
|
|
273
|
+
listAppPasswords(params?: ComAtprotoServerListAppPasswords.QueryParams, opts?: ComAtprotoServerListAppPasswords.CallOptions): Promise<ComAtprotoServerListAppPasswords.Response>;
|
|
257
274
|
refreshSession(data?: ComAtprotoServerRefreshSession.InputSchema, opts?: ComAtprotoServerRefreshSession.CallOptions): Promise<ComAtprotoServerRefreshSession.Response>;
|
|
258
275
|
requestAccountDelete(data?: ComAtprotoServerRequestAccountDelete.InputSchema, opts?: ComAtprotoServerRequestAccountDelete.CallOptions): Promise<ComAtprotoServerRequestAccountDelete.Response>;
|
|
259
276
|
requestPasswordReset(data?: ComAtprotoServerRequestPasswordReset.InputSchema, opts?: ComAtprotoServerRequestPasswordReset.CallOptions): Promise<ComAtprotoServerRequestPasswordReset.Response>;
|
|
260
277
|
resetPassword(data?: ComAtprotoServerResetPassword.InputSchema, opts?: ComAtprotoServerResetPassword.CallOptions): Promise<ComAtprotoServerResetPassword.Response>;
|
|
278
|
+
revokeAppPassword(data?: ComAtprotoServerRevokeAppPassword.InputSchema, opts?: ComAtprotoServerRevokeAppPassword.CallOptions): Promise<ComAtprotoServerRevokeAppPassword.Response>;
|
|
261
279
|
}
|
|
262
280
|
export declare class SyncNS {
|
|
263
281
|
_service: AtpServiceClient;
|
|
@@ -334,6 +352,7 @@ export declare class FeedNS {
|
|
|
334
352
|
getAuthorFeed(params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions): Promise<AppBskyFeedGetAuthorFeed.Response>;
|
|
335
353
|
getLikes(params?: AppBskyFeedGetLikes.QueryParams, opts?: AppBskyFeedGetLikes.CallOptions): Promise<AppBskyFeedGetLikes.Response>;
|
|
336
354
|
getPostThread(params?: AppBskyFeedGetPostThread.QueryParams, opts?: AppBskyFeedGetPostThread.CallOptions): Promise<AppBskyFeedGetPostThread.Response>;
|
|
355
|
+
getPosts(params?: AppBskyFeedGetPosts.QueryParams, opts?: AppBskyFeedGetPosts.CallOptions): Promise<AppBskyFeedGetPosts.Response>;
|
|
337
356
|
getRepostedBy(params?: AppBskyFeedGetRepostedBy.QueryParams, opts?: AppBskyFeedGetRepostedBy.CallOptions): Promise<AppBskyFeedGetRepostedBy.Response>;
|
|
338
357
|
getTimeline(params?: AppBskyFeedGetTimeline.QueryParams, opts?: AppBskyFeedGetTimeline.CallOptions): Promise<AppBskyFeedGetTimeline.Response>;
|
|
339
358
|
}
|
|
@@ -297,6 +297,13 @@ export declare const schemaDict: {
|
|
|
297
297
|
type: string;
|
|
298
298
|
ref: string;
|
|
299
299
|
};
|
|
300
|
+
labels: {
|
|
301
|
+
type: string;
|
|
302
|
+
items: {
|
|
303
|
+
type: string;
|
|
304
|
+
ref: string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
300
307
|
invitedBy: {
|
|
301
308
|
type: string;
|
|
302
309
|
ref: string;
|
|
@@ -378,6 +385,13 @@ export declare const schemaDict: {
|
|
|
378
385
|
ref: string;
|
|
379
386
|
};
|
|
380
387
|
};
|
|
388
|
+
labels: {
|
|
389
|
+
type: string;
|
|
390
|
+
items: {
|
|
391
|
+
type: string;
|
|
392
|
+
ref: string;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
381
395
|
indexedAt: {
|
|
382
396
|
type: string;
|
|
383
397
|
format: string;
|
|
@@ -953,6 +967,33 @@ export declare const schemaDict: {
|
|
|
953
967
|
};
|
|
954
968
|
};
|
|
955
969
|
};
|
|
970
|
+
ComAtprotoAdminUpdateAccountEmail: {
|
|
971
|
+
lexicon: number;
|
|
972
|
+
id: string;
|
|
973
|
+
defs: {
|
|
974
|
+
main: {
|
|
975
|
+
type: string;
|
|
976
|
+
description: string;
|
|
977
|
+
input: {
|
|
978
|
+
encoding: string;
|
|
979
|
+
schema: {
|
|
980
|
+
type: string;
|
|
981
|
+
required: string[];
|
|
982
|
+
properties: {
|
|
983
|
+
account: {
|
|
984
|
+
type: string;
|
|
985
|
+
format: string;
|
|
986
|
+
description: string;
|
|
987
|
+
};
|
|
988
|
+
email: {
|
|
989
|
+
type: string;
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
};
|
|
956
997
|
ComAtprotoAdminUpdateAccountHandle: {
|
|
957
998
|
lexicon: number;
|
|
958
999
|
id: string;
|
|
@@ -1267,6 +1308,22 @@ export declare const schemaDict: {
|
|
|
1267
1308
|
type: string;
|
|
1268
1309
|
description: string;
|
|
1269
1310
|
};
|
|
1311
|
+
reasonViolation: {
|
|
1312
|
+
type: string;
|
|
1313
|
+
description: string;
|
|
1314
|
+
};
|
|
1315
|
+
reasonMisleading: {
|
|
1316
|
+
type: string;
|
|
1317
|
+
description: string;
|
|
1318
|
+
};
|
|
1319
|
+
reasonSexual: {
|
|
1320
|
+
type: string;
|
|
1321
|
+
description: string;
|
|
1322
|
+
};
|
|
1323
|
+
reasonRude: {
|
|
1324
|
+
type: string;
|
|
1325
|
+
description: string;
|
|
1326
|
+
};
|
|
1270
1327
|
reasonOther: {
|
|
1271
1328
|
type: string;
|
|
1272
1329
|
description: string;
|
|
@@ -1848,6 +1905,54 @@ export declare const schemaDict: {
|
|
|
1848
1905
|
};
|
|
1849
1906
|
};
|
|
1850
1907
|
};
|
|
1908
|
+
ComAtprotoServerCreateAppPassword: {
|
|
1909
|
+
lexicon: number;
|
|
1910
|
+
id: string;
|
|
1911
|
+
defs: {
|
|
1912
|
+
main: {
|
|
1913
|
+
type: string;
|
|
1914
|
+
description: string;
|
|
1915
|
+
input: {
|
|
1916
|
+
encoding: string;
|
|
1917
|
+
schema: {
|
|
1918
|
+
type: string;
|
|
1919
|
+
required: string[];
|
|
1920
|
+
properties: {
|
|
1921
|
+
name: {
|
|
1922
|
+
type: string;
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
};
|
|
1927
|
+
output: {
|
|
1928
|
+
encoding: string;
|
|
1929
|
+
schema: {
|
|
1930
|
+
type: string;
|
|
1931
|
+
ref: string;
|
|
1932
|
+
};
|
|
1933
|
+
};
|
|
1934
|
+
errors: {
|
|
1935
|
+
name: string;
|
|
1936
|
+
}[];
|
|
1937
|
+
};
|
|
1938
|
+
appPassword: {
|
|
1939
|
+
type: string;
|
|
1940
|
+
required: string[];
|
|
1941
|
+
properties: {
|
|
1942
|
+
name: {
|
|
1943
|
+
type: string;
|
|
1944
|
+
};
|
|
1945
|
+
password: {
|
|
1946
|
+
type: string;
|
|
1947
|
+
};
|
|
1948
|
+
createdAt: {
|
|
1949
|
+
type: string;
|
|
1950
|
+
format: string;
|
|
1951
|
+
};
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1851
1956
|
ComAtprotoServerCreateInviteCode: {
|
|
1852
1957
|
lexicon: number;
|
|
1853
1958
|
id: string;
|
|
@@ -1906,9 +2011,12 @@ export declare const schemaDict: {
|
|
|
1906
2011
|
useCount: {
|
|
1907
2012
|
type: string;
|
|
1908
2013
|
};
|
|
1909
|
-
|
|
2014
|
+
forAccounts: {
|
|
1910
2015
|
type: string;
|
|
1911
|
-
|
|
2016
|
+
items: {
|
|
2017
|
+
type: string;
|
|
2018
|
+
format: string;
|
|
2019
|
+
};
|
|
1912
2020
|
};
|
|
1913
2021
|
};
|
|
1914
2022
|
};
|
|
@@ -1923,12 +2031,28 @@ export declare const schemaDict: {
|
|
|
1923
2031
|
type: string;
|
|
1924
2032
|
items: {
|
|
1925
2033
|
type: string;
|
|
2034
|
+
ref: string;
|
|
1926
2035
|
};
|
|
1927
2036
|
};
|
|
1928
2037
|
};
|
|
1929
2038
|
};
|
|
1930
2039
|
};
|
|
1931
2040
|
};
|
|
2041
|
+
accountCodes: {
|
|
2042
|
+
type: string;
|
|
2043
|
+
required: string[];
|
|
2044
|
+
properties: {
|
|
2045
|
+
account: {
|
|
2046
|
+
type: string;
|
|
2047
|
+
};
|
|
2048
|
+
codes: {
|
|
2049
|
+
type: string;
|
|
2050
|
+
items: {
|
|
2051
|
+
type: string;
|
|
2052
|
+
};
|
|
2053
|
+
};
|
|
2054
|
+
};
|
|
2055
|
+
};
|
|
1932
2056
|
};
|
|
1933
2057
|
};
|
|
1934
2058
|
ComAtprotoServerCreateSession: {
|
|
@@ -2195,6 +2319,48 @@ export declare const schemaDict: {
|
|
|
2195
2319
|
};
|
|
2196
2320
|
};
|
|
2197
2321
|
};
|
|
2322
|
+
ComAtprotoServerListAppPasswords: {
|
|
2323
|
+
lexicon: number;
|
|
2324
|
+
id: string;
|
|
2325
|
+
defs: {
|
|
2326
|
+
main: {
|
|
2327
|
+
type: string;
|
|
2328
|
+
description: string;
|
|
2329
|
+
output: {
|
|
2330
|
+
encoding: string;
|
|
2331
|
+
schema: {
|
|
2332
|
+
type: string;
|
|
2333
|
+
required: string[];
|
|
2334
|
+
properties: {
|
|
2335
|
+
passwords: {
|
|
2336
|
+
type: string;
|
|
2337
|
+
items: {
|
|
2338
|
+
type: string;
|
|
2339
|
+
ref: string;
|
|
2340
|
+
};
|
|
2341
|
+
};
|
|
2342
|
+
};
|
|
2343
|
+
};
|
|
2344
|
+
};
|
|
2345
|
+
errors: {
|
|
2346
|
+
name: string;
|
|
2347
|
+
}[];
|
|
2348
|
+
};
|
|
2349
|
+
appPassword: {
|
|
2350
|
+
type: string;
|
|
2351
|
+
required: string[];
|
|
2352
|
+
properties: {
|
|
2353
|
+
name: {
|
|
2354
|
+
type: string;
|
|
2355
|
+
};
|
|
2356
|
+
createdAt: {
|
|
2357
|
+
type: string;
|
|
2358
|
+
format: string;
|
|
2359
|
+
};
|
|
2360
|
+
};
|
|
2361
|
+
};
|
|
2362
|
+
};
|
|
2363
|
+
};
|
|
2198
2364
|
ComAtprotoServerRefreshSession: {
|
|
2199
2365
|
lexicon: number;
|
|
2200
2366
|
id: string;
|
|
@@ -2291,6 +2457,28 @@ export declare const schemaDict: {
|
|
|
2291
2457
|
};
|
|
2292
2458
|
};
|
|
2293
2459
|
};
|
|
2460
|
+
ComAtprotoServerRevokeAppPassword: {
|
|
2461
|
+
lexicon: number;
|
|
2462
|
+
id: string;
|
|
2463
|
+
defs: {
|
|
2464
|
+
main: {
|
|
2465
|
+
type: string;
|
|
2466
|
+
description: string;
|
|
2467
|
+
input: {
|
|
2468
|
+
encoding: string;
|
|
2469
|
+
schema: {
|
|
2470
|
+
type: string;
|
|
2471
|
+
required: string[];
|
|
2472
|
+
properties: {
|
|
2473
|
+
name: {
|
|
2474
|
+
type: string;
|
|
2475
|
+
};
|
|
2476
|
+
};
|
|
2477
|
+
};
|
|
2478
|
+
};
|
|
2479
|
+
};
|
|
2480
|
+
};
|
|
2481
|
+
};
|
|
2294
2482
|
ComAtprotoSyncGetBlob: {
|
|
2295
2483
|
lexicon: number;
|
|
2296
2484
|
id: string;
|
|
@@ -3769,6 +3957,46 @@ export declare const schemaDict: {
|
|
|
3769
3957
|
};
|
|
3770
3958
|
};
|
|
3771
3959
|
};
|
|
3960
|
+
AppBskyFeedGetPosts: {
|
|
3961
|
+
lexicon: number;
|
|
3962
|
+
id: string;
|
|
3963
|
+
defs: {
|
|
3964
|
+
main: {
|
|
3965
|
+
type: string;
|
|
3966
|
+
description: string;
|
|
3967
|
+
parameters: {
|
|
3968
|
+
type: string;
|
|
3969
|
+
required: string[];
|
|
3970
|
+
properties: {
|
|
3971
|
+
uris: {
|
|
3972
|
+
type: string;
|
|
3973
|
+
items: {
|
|
3974
|
+
type: string;
|
|
3975
|
+
format: string;
|
|
3976
|
+
};
|
|
3977
|
+
maxLength: number;
|
|
3978
|
+
};
|
|
3979
|
+
};
|
|
3980
|
+
};
|
|
3981
|
+
output: {
|
|
3982
|
+
encoding: string;
|
|
3983
|
+
schema: {
|
|
3984
|
+
type: string;
|
|
3985
|
+
required: string[];
|
|
3986
|
+
properties: {
|
|
3987
|
+
posts: {
|
|
3988
|
+
type: string;
|
|
3989
|
+
items: {
|
|
3990
|
+
type: string;
|
|
3991
|
+
ref: string;
|
|
3992
|
+
};
|
|
3993
|
+
};
|
|
3994
|
+
};
|
|
3995
|
+
};
|
|
3996
|
+
};
|
|
3997
|
+
};
|
|
3998
|
+
};
|
|
3999
|
+
};
|
|
3772
4000
|
AppBskyFeedGetRepostedBy: {
|
|
3773
4001
|
lexicon: number;
|
|
3774
4002
|
id: string;
|
|
@@ -4241,6 +4469,15 @@ export declare const schemaDict: {
|
|
|
4241
4469
|
defs: {
|
|
4242
4470
|
main: {
|
|
4243
4471
|
type: string;
|
|
4472
|
+
parameters: {
|
|
4473
|
+
type: string;
|
|
4474
|
+
properties: {
|
|
4475
|
+
seenAt: {
|
|
4476
|
+
type: string;
|
|
4477
|
+
format: string;
|
|
4478
|
+
};
|
|
4479
|
+
};
|
|
4480
|
+
};
|
|
4244
4481
|
output: {
|
|
4245
4482
|
encoding: string;
|
|
4246
4483
|
schema: {
|
|
@@ -4274,6 +4511,10 @@ export declare const schemaDict: {
|
|
|
4274
4511
|
cursor: {
|
|
4275
4512
|
type: string;
|
|
4276
4513
|
};
|
|
4514
|
+
seenAt: {
|
|
4515
|
+
type: string;
|
|
4516
|
+
format: string;
|
|
4517
|
+
};
|
|
4277
4518
|
};
|
|
4278
4519
|
};
|
|
4279
4520
|
output: {
|
|
@@ -4485,6 +4726,7 @@ export declare const ids: {
|
|
|
4485
4726
|
ComAtprotoAdminReverseModerationAction: string;
|
|
4486
4727
|
ComAtprotoAdminSearchRepos: string;
|
|
4487
4728
|
ComAtprotoAdminTakeModerationAction: string;
|
|
4729
|
+
ComAtprotoAdminUpdateAccountEmail: string;
|
|
4488
4730
|
ComAtprotoAdminUpdateAccountHandle: string;
|
|
4489
4731
|
ComAtprotoIdentityResolveHandle: string;
|
|
4490
4732
|
ComAtprotoIdentityUpdateHandle: string;
|
|
@@ -4503,6 +4745,7 @@ export declare const ids: {
|
|
|
4503
4745
|
ComAtprotoRepoStrongRef: string;
|
|
4504
4746
|
ComAtprotoRepoUploadBlob: string;
|
|
4505
4747
|
ComAtprotoServerCreateAccount: string;
|
|
4748
|
+
ComAtprotoServerCreateAppPassword: string;
|
|
4506
4749
|
ComAtprotoServerCreateInviteCode: string;
|
|
4507
4750
|
ComAtprotoServerCreateInviteCodes: string;
|
|
4508
4751
|
ComAtprotoServerCreateSession: string;
|
|
@@ -4512,10 +4755,12 @@ export declare const ids: {
|
|
|
4512
4755
|
ComAtprotoServerDescribeServer: string;
|
|
4513
4756
|
ComAtprotoServerGetAccountInviteCodes: string;
|
|
4514
4757
|
ComAtprotoServerGetSession: string;
|
|
4758
|
+
ComAtprotoServerListAppPasswords: string;
|
|
4515
4759
|
ComAtprotoServerRefreshSession: string;
|
|
4516
4760
|
ComAtprotoServerRequestAccountDelete: string;
|
|
4517
4761
|
ComAtprotoServerRequestPasswordReset: string;
|
|
4518
4762
|
ComAtprotoServerResetPassword: string;
|
|
4763
|
+
ComAtprotoServerRevokeAppPassword: string;
|
|
4519
4764
|
ComAtprotoSyncGetBlob: string;
|
|
4520
4765
|
ComAtprotoSyncGetBlocks: string;
|
|
4521
4766
|
ComAtprotoSyncGetCheckout: string;
|
|
@@ -4543,6 +4788,7 @@ export declare const ids: {
|
|
|
4543
4788
|
AppBskyFeedGetAuthorFeed: string;
|
|
4544
4789
|
AppBskyFeedGetLikes: string;
|
|
4545
4790
|
AppBskyFeedGetPostThread: string;
|
|
4791
|
+
AppBskyFeedGetPosts: string;
|
|
4546
4792
|
AppBskyFeedGetRepostedBy: string;
|
|
4547
4793
|
AppBskyFeedGetTimeline: string;
|
|
4548
4794
|
AppBskyFeedLike: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
uris: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare type InputSchema = undefined;
|
|
7
|
+
export interface OutputSchema {
|
|
8
|
+
posts: AppBskyFeedDefs.PostView[];
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
headers?: Headers;
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
data: OutputSchema;
|
|
18
|
+
}
|
|
19
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -2,6 +2,7 @@ import { ValidationResult } from '@atproto/lexicon';
|
|
|
2
2
|
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
3
3
|
import * as ComAtprotoModerationDefs from '../moderation/defs';
|
|
4
4
|
import * as ComAtprotoServerDefs from '../server/defs';
|
|
5
|
+
import * as ComAtprotoLabelDefs from '../label/defs';
|
|
5
6
|
export interface ActionView {
|
|
6
7
|
id: number;
|
|
7
8
|
action: ActionType;
|
|
@@ -108,6 +109,7 @@ export interface RepoViewDetail {
|
|
|
108
109
|
relatedRecords: {}[];
|
|
109
110
|
indexedAt: string;
|
|
110
111
|
moderation: ModerationDetail;
|
|
112
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
111
113
|
invitedBy?: ComAtprotoServerDefs.InviteCode;
|
|
112
114
|
invites?: ComAtprotoServerDefs.InviteCode[];
|
|
113
115
|
[k: string]: unknown;
|
|
@@ -137,6 +139,7 @@ export interface RecordViewDetail {
|
|
|
137
139
|
cid: string;
|
|
138
140
|
value: {};
|
|
139
141
|
blobs: BlobView[];
|
|
142
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
140
143
|
indexedAt: string;
|
|
141
144
|
moderation: ModerationDetail;
|
|
142
145
|
repo: RepoView;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
account: string;
|
|
6
|
+
email: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
qp?: QueryParams;
|
|
12
|
+
encoding: 'application/json';
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
}
|
|
18
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export declare type ReasonType = 'com.atproto.moderation.defs#reasonSpam' | 'com.atproto.moderation.defs#reasonOther' | (string & {});
|
|
1
|
+
export declare type ReasonType = 'com.atproto.moderation.defs#reasonSpam' | 'com.atproto.moderation.defs#reasonViolation' | 'com.atproto.moderation.defs#reasonMisleading' | 'com.atproto.moderation.defs#reasonSexual' | 'com.atproto.moderation.defs#reasonRude' | 'com.atproto.moderation.defs#reasonOther' | (string & {});
|
|
2
2
|
export declare const REASONSPAM = "com.atproto.moderation.defs#reasonSpam";
|
|
3
|
+
export declare const REASONVIOLATION = "com.atproto.moderation.defs#reasonViolation";
|
|
4
|
+
export declare const REASONMISLEADING = "com.atproto.moderation.defs#reasonMisleading";
|
|
5
|
+
export declare const REASONSEXUAL = "com.atproto.moderation.defs#reasonSexual";
|
|
6
|
+
export declare const REASONRUDE = "com.atproto.moderation.defs#reasonRude";
|
|
3
7
|
export declare const REASONOTHER = "com.atproto.moderation.defs#reasonOther";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare type OutputSchema = AppPassword;
|
|
10
|
+
export interface CallOptions {
|
|
11
|
+
headers?: Headers;
|
|
12
|
+
qp?: QueryParams;
|
|
13
|
+
encoding: 'application/json';
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
data: OutputSchema;
|
|
19
|
+
}
|
|
20
|
+
export declare class AccountTakedownError extends XRPCError {
|
|
21
|
+
constructor(src: XRPCError);
|
|
22
|
+
}
|
|
23
|
+
export declare function toKnownErr(e: any): any;
|
|
24
|
+
export interface AppPassword {
|
|
25
|
+
name: string;
|
|
26
|
+
password: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
export declare function isAppPassword(v: unknown): v is AppPassword;
|
|
31
|
+
export declare function validateAppPassword(v: unknown): ValidationResult;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
export interface QueryParams {
|
|
3
4
|
}
|
|
4
5
|
export interface InputSchema {
|
|
5
6
|
codeCount: number;
|
|
6
7
|
useCount: number;
|
|
7
|
-
|
|
8
|
+
forAccounts?: string[];
|
|
8
9
|
[k: string]: unknown;
|
|
9
10
|
}
|
|
10
11
|
export interface OutputSchema {
|
|
11
|
-
codes:
|
|
12
|
+
codes: AccountCodes[];
|
|
12
13
|
[k: string]: unknown;
|
|
13
14
|
}
|
|
14
15
|
export interface CallOptions {
|
|
@@ -22,3 +23,10 @@ export interface Response {
|
|
|
22
23
|
data: OutputSchema;
|
|
23
24
|
}
|
|
24
25
|
export declare function toKnownErr(e: any): any;
|
|
26
|
+
export interface AccountCodes {
|
|
27
|
+
account: string;
|
|
28
|
+
codes: string[];
|
|
29
|
+
[k: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
export declare function isAccountCodes(v: unknown): v is AccountCodes;
|
|
32
|
+
export declare function validateAccountCodes(v: unknown): ValidationResult;
|