@atproto/api 0.20.16 → 0.20.18
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/CHANGELOG.md +16 -0
- package/dist/client/index.d.ts +18 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +28 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +906 -134
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +460 -67
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/feed/searchPostsV2.d.ts +88 -0
- package/dist/client/types/app/bsky/feed/searchPostsV2.d.ts.map +1 -0
- package/dist/client/types/app/bsky/feed/searchPostsV2.js +21 -0
- package/dist/client/types/app/bsky/feed/searchPostsV2.js.map +1 -0
- package/dist/client/types/app/bsky/notification/defs.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/notification/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/actor/declaration.d.ts +1 -1
- package/dist/client/types/chat/bsky/actor/declaration.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/actor/declaration.js.map +1 -1
- package/dist/client/types/chat/bsky/actor/defs.d.ts +2 -3
- package/dist/client/types/chat/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +32 -35
- package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/moderation/defs.d.ts +3 -3
- package/dist/client/types/chat/bsky/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/notification/defs.d.ts +19 -0
- package/dist/client/types/chat/bsky/notification/defs.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/notification/defs.js +19 -0
- package/dist/client/types/chat/bsky/notification/defs.js.map +1 -0
- package/dist/client/types/chat/bsky/notification/getPreferences.d.ts +21 -0
- package/dist/client/types/chat/bsky/notification/getPreferences.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/notification/getPreferences.js +8 -0
- package/dist/client/types/chat/bsky/notification/getPreferences.js.map +1 -0
- package/dist/client/types/chat/bsky/notification/putPreferences.d.ts +26 -0
- package/dist/client/types/chat/bsky/notification/putPreferences.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/notification/putPreferences.js +8 -0
- package/dist/client/types/chat/bsky/notification/putPreferences.js.map +1 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts +1 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/report/queryActivities.d.ts +33 -0
- package/dist/client/types/tools/ozone/report/queryActivities.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/queryActivities.js +8 -0
- package/dist/client/types/tools/ozone/report/queryActivities.js.map +1 -0
- package/package.json +2 -1
- package/tests/atp-agent.test.ts +1 -1
- package/tests/dispatcher.test.ts +5 -10
- package/tests/errors.test.ts +1 -1
- package/tests/moderation-prefs.test.ts +1 -1
- package/tests/util/echo-server.ts +18 -2
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/index.js
CHANGED
|
@@ -21,6 +21,7 @@ import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkelet
|
|
|
21
21
|
import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js';
|
|
22
22
|
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js';
|
|
23
23
|
import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts.js';
|
|
24
|
+
import * as AppBskyFeedSearchPostsV2 from './types/app/bsky/feed/searchPostsV2.js';
|
|
24
25
|
import * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships.js';
|
|
25
26
|
import * as AppBskyUnspeccedInitAgeAssurance from './types/app/bsky/unspecced/initAgeAssurance.js';
|
|
26
27
|
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton.js';
|
|
@@ -180,6 +181,7 @@ export * as AppBskyFeedPost from './types/app/bsky/feed/post.js';
|
|
|
180
181
|
export * as AppBskyFeedPostgate from './types/app/bsky/feed/postgate.js';
|
|
181
182
|
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost.js';
|
|
182
183
|
export * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts.js';
|
|
184
|
+
export * as AppBskyFeedSearchPostsV2 from './types/app/bsky/feed/searchPostsV2.js';
|
|
183
185
|
export * as AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteractions.js';
|
|
184
186
|
export * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate.js';
|
|
185
187
|
export * as AppBskyGraphBlock from './types/app/bsky/graph/block.js';
|
|
@@ -318,6 +320,9 @@ export * as ChatBskyModerationGetConvos from './types/chat/bsky/moderation/getCo
|
|
|
318
320
|
export * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext.js';
|
|
319
321
|
export * as ChatBskyModerationSubscribeModEvents from './types/chat/bsky/moderation/subscribeModEvents.js';
|
|
320
322
|
export * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess.js';
|
|
323
|
+
export * as ChatBskyNotificationDefs from './types/chat/bsky/notification/defs.js';
|
|
324
|
+
export * as ChatBskyNotificationGetPreferences from './types/chat/bsky/notification/getPreferences.js';
|
|
325
|
+
export * as ChatBskyNotificationPutPreferences from './types/chat/bsky/notification/putPreferences.js';
|
|
321
326
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs.js';
|
|
322
327
|
export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount.js';
|
|
323
328
|
export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites.js';
|
|
@@ -454,6 +459,7 @@ export * as ToolsOzoneReportGetLatestReport from './types/tools/ozone/report/get
|
|
|
454
459
|
export * as ToolsOzoneReportGetLiveStats from './types/tools/ozone/report/getLiveStats.js';
|
|
455
460
|
export * as ToolsOzoneReportGetReport from './types/tools/ozone/report/getReport.js';
|
|
456
461
|
export * as ToolsOzoneReportListActivities from './types/tools/ozone/report/listActivities.js';
|
|
462
|
+
export * as ToolsOzoneReportQueryActivities from './types/tools/ozone/report/queryActivities.js';
|
|
457
463
|
export * as ToolsOzoneReportQueryReports from './types/tools/ozone/report/queryReports.js';
|
|
458
464
|
export * as ToolsOzoneReportReassignQueue from './types/tools/ozone/report/reassignQueue.js';
|
|
459
465
|
export * as ToolsOzoneReportRefreshStats from './types/tools/ozone/report/refreshStats.js';
|
|
@@ -933,6 +939,13 @@ export class AppBskyFeedNS {
|
|
|
933
939
|
throw AppBskyFeedSearchPosts.toKnownErr(e);
|
|
934
940
|
});
|
|
935
941
|
}
|
|
942
|
+
searchPostsV2(params, opts) {
|
|
943
|
+
return this._client
|
|
944
|
+
.call('app.bsky.feed.searchPostsV2', params, undefined, opts)
|
|
945
|
+
.catch((e) => {
|
|
946
|
+
throw AppBskyFeedSearchPostsV2.toKnownErr(e);
|
|
947
|
+
});
|
|
948
|
+
}
|
|
936
949
|
sendInteractions(data, opts) {
|
|
937
950
|
return this._client.call('app.bsky.feed.sendInteractions', opts?.qp, data, opts);
|
|
938
951
|
}
|
|
@@ -1701,6 +1714,7 @@ export class ChatBskyNS {
|
|
|
1701
1714
|
this.embed = new ChatBskyEmbedNS(client);
|
|
1702
1715
|
this.group = new ChatBskyGroupNS(client);
|
|
1703
1716
|
this.moderation = new ChatBskyModerationNS(client);
|
|
1717
|
+
this.notification = new ChatBskyNotificationNS(client);
|
|
1704
1718
|
}
|
|
1705
1719
|
}
|
|
1706
1720
|
export class ChatBskyActorNS {
|
|
@@ -2035,6 +2049,17 @@ export class ChatBskyModerationNS {
|
|
|
2035
2049
|
return this._client.call('chat.bsky.moderation.updateActorAccess', opts?.qp, data, opts);
|
|
2036
2050
|
}
|
|
2037
2051
|
}
|
|
2052
|
+
export class ChatBskyNotificationNS {
|
|
2053
|
+
constructor(client) {
|
|
2054
|
+
this._client = client;
|
|
2055
|
+
}
|
|
2056
|
+
getPreferences(params, opts) {
|
|
2057
|
+
return this._client.call('chat.bsky.notification.getPreferences', params, undefined, opts);
|
|
2058
|
+
}
|
|
2059
|
+
putPreferences(data, opts) {
|
|
2060
|
+
return this._client.call('chat.bsky.notification.putPreferences', opts?.qp, data, opts);
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2038
2063
|
export class ComNS {
|
|
2039
2064
|
constructor(client) {
|
|
2040
2065
|
this._client = client;
|
|
@@ -2776,6 +2801,9 @@ export class ToolsOzoneReportNS {
|
|
|
2776
2801
|
listActivities(params, opts) {
|
|
2777
2802
|
return this._client.call('tools.ozone.report.listActivities', params, undefined, opts);
|
|
2778
2803
|
}
|
|
2804
|
+
queryActivities(params, opts) {
|
|
2805
|
+
return this._client.call('tools.ozone.report.queryActivities', params, undefined, opts);
|
|
2806
|
+
}
|
|
2779
2807
|
queryReports(params, opts) {
|
|
2780
2808
|
return this._client.call('tools.ozone.report.queryReports', params, undefined, opts);
|
|
2781
2809
|
}
|