@atproto/api 0.6.23 → 0.6.24-next.0
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 +23 -25
- package/dist/client/lexicons.d.ts +441 -367
- package/dist/client/types/com/atproto/admin/defs.d.ts +114 -48
- package/dist/client/types/com/atproto/admin/{takeModerationAction.d.ts → emitModerationEvent.d.ts} +5 -6
- package/dist/client/types/com/atproto/admin/{getModerationAction.d.ts → getModerationEvent.d.ts} +1 -1
- package/dist/client/types/com/atproto/admin/{getModerationActions.d.ts → queryModerationEvents.d.ts} +5 -1
- package/dist/client/types/com/atproto/admin/{getModerationReports.d.ts → queryModerationStatuses.d.ts} +12 -6
- package/dist/client/types/com/atproto/admin/sendEmail.d.ts +1 -0
- package/dist/client/types/com/atproto/{admin/getModerationReport.d.ts → temp/fetchLabels.d.ts} +7 -3
- package/dist/index.js +1179 -1042
- package/dist/index.js.map +3 -3
- package/package.json +20 -17
- package/src/client/index.ts +68 -80
- package/src/client/lexicons.ts +664 -570
- package/src/client/types/app/bsky/actor/defs.ts +2 -2
- package/src/client/types/app/bsky/actor/searchActors.ts +2 -2
- package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +2 -2
- package/src/client/types/app/bsky/feed/searchPosts.ts +3 -3
- package/src/client/types/app/bsky/graph/defs.ts +2 -2
- package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +4 -4
- package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +3 -3
- package/src/client/types/com/atproto/admin/defs.ts +276 -84
- package/src/client/types/com/atproto/admin/disableAccountInvites.ts +1 -1
- package/src/client/types/com/atproto/admin/{takeModerationAction.ts → emitModerationEvent.ts} +13 -11
- package/src/client/types/com/atproto/admin/enableAccountInvites.ts +1 -1
- package/src/client/types/com/atproto/admin/{getModerationReport.ts → getModerationEvent.ts} +1 -1
- package/src/client/types/com/atproto/admin/{getModerationReports.ts → queryModerationEvents.ts} +8 -15
- package/src/client/types/com/atproto/admin/queryModerationStatuses.ts +60 -0
- package/src/client/types/com/atproto/admin/sendEmail.ts +1 -0
- package/src/client/types/com/atproto/label/defs.ts +9 -9
- package/src/client/types/com/atproto/label/queryLabels.ts +2 -2
- package/src/client/types/com/atproto/repo/applyWrites.ts +1 -1
- package/src/client/types/com/atproto/repo/createRecord.ts +2 -2
- package/src/client/types/com/atproto/repo/deleteRecord.ts +2 -2
- package/src/client/types/com/atproto/repo/listRecords.ts +1 -1
- package/src/client/types/com/atproto/repo/putRecord.ts +3 -3
- package/src/client/types/com/atproto/sync/listBlobs.ts +1 -1
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +4 -4
- package/src/client/types/com/atproto/{admin/getModerationActions.ts → temp/fetchLabels.ts} +3 -5
- package/tests/rich-text-detection.test.ts +6 -0
- package/LICENSE.txt +0 -7
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +0 -22
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +0 -22
- package/src/client/types/com/atproto/admin/getModerationAction.ts +0 -32
- package/src/client/types/com/atproto/admin/resolveModerationReports.ts +0 -38
- package/src/client/types/com/atproto/admin/reverseModerationAction.ts +0 -38
package/dist/client/index.d.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';
|
|
2
2
|
import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
|
|
3
3
|
import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
|
|
4
|
+
import * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent';
|
|
4
5
|
import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
|
|
5
6
|
import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo';
|
|
6
7
|
import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
|
|
7
|
-
import * as
|
|
8
|
-
import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
|
|
9
|
-
import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport';
|
|
10
|
-
import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports';
|
|
8
|
+
import * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/getModerationEvent';
|
|
11
9
|
import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord';
|
|
12
10
|
import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo';
|
|
13
11
|
import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus';
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
12
|
+
import * as ComAtprotoAdminQueryModerationEvents from './types/com/atproto/admin/queryModerationEvents';
|
|
13
|
+
import * as ComAtprotoAdminQueryModerationStatuses from './types/com/atproto/admin/queryModerationStatuses';
|
|
16
14
|
import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
|
|
17
15
|
import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
|
|
18
|
-
import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
|
|
19
16
|
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
|
|
20
17
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
|
|
21
18
|
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus';
|
|
@@ -63,6 +60,7 @@ import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs';
|
|
|
63
60
|
import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
|
|
64
61
|
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
|
|
65
62
|
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
|
|
63
|
+
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
|
|
66
64
|
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences';
|
|
67
65
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
|
|
68
66
|
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';
|
|
@@ -122,21 +120,18 @@ import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced
|
|
|
122
120
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs';
|
|
123
121
|
export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
|
|
124
122
|
export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
|
|
123
|
+
export * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent';
|
|
125
124
|
export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
|
|
126
125
|
export * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo';
|
|
127
126
|
export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
|
|
128
|
-
export * as
|
|
129
|
-
export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
|
|
130
|
-
export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport';
|
|
131
|
-
export * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports';
|
|
127
|
+
export * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/getModerationEvent';
|
|
132
128
|
export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord';
|
|
133
129
|
export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo';
|
|
134
130
|
export * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus';
|
|
135
|
-
export * as
|
|
136
|
-
export * as
|
|
131
|
+
export * as ComAtprotoAdminQueryModerationEvents from './types/com/atproto/admin/queryModerationEvents';
|
|
132
|
+
export * as ComAtprotoAdminQueryModerationStatuses from './types/com/atproto/admin/queryModerationStatuses';
|
|
137
133
|
export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
|
|
138
134
|
export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
|
|
139
|
-
export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
|
|
140
135
|
export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
|
|
141
136
|
export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
|
|
142
137
|
export * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus';
|
|
@@ -190,6 +185,7 @@ export * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
|
|
|
190
185
|
export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
|
|
191
186
|
export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
|
|
192
187
|
export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos';
|
|
188
|
+
export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
|
|
193
189
|
export * as AppBskyActorDefs from './types/app/bsky/actor/defs';
|
|
194
190
|
export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences';
|
|
195
191
|
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
|
|
@@ -256,10 +252,9 @@ export * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced
|
|
|
256
252
|
export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
|
|
257
253
|
export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
|
|
258
254
|
export declare const COM_ATPROTO_ADMIN: {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
DefsEscalate: string;
|
|
255
|
+
DefsReviewOpen: string;
|
|
256
|
+
DefsReviewEscalated: string;
|
|
257
|
+
DefsReviewClosed: string;
|
|
263
258
|
};
|
|
264
259
|
export declare const COM_ATPROTO_MODERATION: {
|
|
265
260
|
DefsReasonSpam: string;
|
|
@@ -300,6 +295,7 @@ export declare class AtprotoNS {
|
|
|
300
295
|
repo: RepoNS;
|
|
301
296
|
server: ServerNS;
|
|
302
297
|
sync: SyncNS;
|
|
298
|
+
temp: TempNS;
|
|
303
299
|
constructor(service: AtpServiceClient);
|
|
304
300
|
}
|
|
305
301
|
export declare class AdminNS {
|
|
@@ -307,21 +303,18 @@ export declare class AdminNS {
|
|
|
307
303
|
constructor(service: AtpServiceClient);
|
|
308
304
|
disableAccountInvites(data?: ComAtprotoAdminDisableAccountInvites.InputSchema, opts?: ComAtprotoAdminDisableAccountInvites.CallOptions): Promise<ComAtprotoAdminDisableAccountInvites.Response>;
|
|
309
305
|
disableInviteCodes(data?: ComAtprotoAdminDisableInviteCodes.InputSchema, opts?: ComAtprotoAdminDisableInviteCodes.CallOptions): Promise<ComAtprotoAdminDisableInviteCodes.Response>;
|
|
306
|
+
emitModerationEvent(data?: ComAtprotoAdminEmitModerationEvent.InputSchema, opts?: ComAtprotoAdminEmitModerationEvent.CallOptions): Promise<ComAtprotoAdminEmitModerationEvent.Response>;
|
|
310
307
|
enableAccountInvites(data?: ComAtprotoAdminEnableAccountInvites.InputSchema, opts?: ComAtprotoAdminEnableAccountInvites.CallOptions): Promise<ComAtprotoAdminEnableAccountInvites.Response>;
|
|
311
308
|
getAccountInfo(params?: ComAtprotoAdminGetAccountInfo.QueryParams, opts?: ComAtprotoAdminGetAccountInfo.CallOptions): Promise<ComAtprotoAdminGetAccountInfo.Response>;
|
|
312
309
|
getInviteCodes(params?: ComAtprotoAdminGetInviteCodes.QueryParams, opts?: ComAtprotoAdminGetInviteCodes.CallOptions): Promise<ComAtprotoAdminGetInviteCodes.Response>;
|
|
313
|
-
|
|
314
|
-
getModerationActions(params?: ComAtprotoAdminGetModerationActions.QueryParams, opts?: ComAtprotoAdminGetModerationActions.CallOptions): Promise<ComAtprotoAdminGetModerationActions.Response>;
|
|
315
|
-
getModerationReport(params?: ComAtprotoAdminGetModerationReport.QueryParams, opts?: ComAtprotoAdminGetModerationReport.CallOptions): Promise<ComAtprotoAdminGetModerationReport.Response>;
|
|
316
|
-
getModerationReports(params?: ComAtprotoAdminGetModerationReports.QueryParams, opts?: ComAtprotoAdminGetModerationReports.CallOptions): Promise<ComAtprotoAdminGetModerationReports.Response>;
|
|
310
|
+
getModerationEvent(params?: ComAtprotoAdminGetModerationEvent.QueryParams, opts?: ComAtprotoAdminGetModerationEvent.CallOptions): Promise<ComAtprotoAdminGetModerationEvent.Response>;
|
|
317
311
|
getRecord(params?: ComAtprotoAdminGetRecord.QueryParams, opts?: ComAtprotoAdminGetRecord.CallOptions): Promise<ComAtprotoAdminGetRecord.Response>;
|
|
318
312
|
getRepo(params?: ComAtprotoAdminGetRepo.QueryParams, opts?: ComAtprotoAdminGetRepo.CallOptions): Promise<ComAtprotoAdminGetRepo.Response>;
|
|
319
313
|
getSubjectStatus(params?: ComAtprotoAdminGetSubjectStatus.QueryParams, opts?: ComAtprotoAdminGetSubjectStatus.CallOptions): Promise<ComAtprotoAdminGetSubjectStatus.Response>;
|
|
320
|
-
|
|
321
|
-
|
|
314
|
+
queryModerationEvents(params?: ComAtprotoAdminQueryModerationEvents.QueryParams, opts?: ComAtprotoAdminQueryModerationEvents.CallOptions): Promise<ComAtprotoAdminQueryModerationEvents.Response>;
|
|
315
|
+
queryModerationStatuses(params?: ComAtprotoAdminQueryModerationStatuses.QueryParams, opts?: ComAtprotoAdminQueryModerationStatuses.CallOptions): Promise<ComAtprotoAdminQueryModerationStatuses.Response>;
|
|
322
316
|
searchRepos(params?: ComAtprotoAdminSearchRepos.QueryParams, opts?: ComAtprotoAdminSearchRepos.CallOptions): Promise<ComAtprotoAdminSearchRepos.Response>;
|
|
323
317
|
sendEmail(data?: ComAtprotoAdminSendEmail.InputSchema, opts?: ComAtprotoAdminSendEmail.CallOptions): Promise<ComAtprotoAdminSendEmail.Response>;
|
|
324
|
-
takeModerationAction(data?: ComAtprotoAdminTakeModerationAction.InputSchema, opts?: ComAtprotoAdminTakeModerationAction.CallOptions): Promise<ComAtprotoAdminTakeModerationAction.Response>;
|
|
325
318
|
updateAccountEmail(data?: ComAtprotoAdminUpdateAccountEmail.InputSchema, opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions): Promise<ComAtprotoAdminUpdateAccountEmail.Response>;
|
|
326
319
|
updateAccountHandle(data?: ComAtprotoAdminUpdateAccountHandle.InputSchema, opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions): Promise<ComAtprotoAdminUpdateAccountHandle.Response>;
|
|
327
320
|
updateSubjectStatus(data?: ComAtprotoAdminUpdateSubjectStatus.InputSchema, opts?: ComAtprotoAdminUpdateSubjectStatus.CallOptions): Promise<ComAtprotoAdminUpdateSubjectStatus.Response>;
|
|
@@ -394,6 +387,11 @@ export declare class SyncNS {
|
|
|
394
387
|
notifyOfUpdate(data?: ComAtprotoSyncNotifyOfUpdate.InputSchema, opts?: ComAtprotoSyncNotifyOfUpdate.CallOptions): Promise<ComAtprotoSyncNotifyOfUpdate.Response>;
|
|
395
388
|
requestCrawl(data?: ComAtprotoSyncRequestCrawl.InputSchema, opts?: ComAtprotoSyncRequestCrawl.CallOptions): Promise<ComAtprotoSyncRequestCrawl.Response>;
|
|
396
389
|
}
|
|
390
|
+
export declare class TempNS {
|
|
391
|
+
_service: AtpServiceClient;
|
|
392
|
+
constructor(service: AtpServiceClient);
|
|
393
|
+
fetchLabels(params?: ComAtprotoTempFetchLabels.QueryParams, opts?: ComAtprotoTempFetchLabels.CallOptions): Promise<ComAtprotoTempFetchLabels.Response>;
|
|
394
|
+
}
|
|
397
395
|
export declare class AppNS {
|
|
398
396
|
_service: AtpServiceClient;
|
|
399
397
|
bsky: BskyNS;
|