@atcute/bluesky 1.0.8 → 1.0.10
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 +1 -1
- package/dist/lexicons.d.ts +77 -1
- package/lib/lexicons.ts +79 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ const record: AppBskyFeedPost.Record = {
|
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
```ts
|
|
60
|
-
const rpc = new XRPC({
|
|
60
|
+
const rpc = new XRPC({ handler: simpleFetchHandler({ service: 'https://api.bsky.app' }) });
|
|
61
61
|
|
|
62
62
|
const { data } = await rpc.get('app.bsky.actor.getProfile', {
|
|
63
63
|
params: {
|
package/dist/lexicons.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
239
239
|
/** Show followed users at the top of all replies. */
|
|
240
240
|
prioritizeFollowedUsers?: boolean;
|
|
241
241
|
/** Sorting mode for threads. */
|
|
242
|
-
sort?: 'most-likes' | 'newest' | 'oldest' | 'random' | (string & {});
|
|
242
|
+
sort?: 'hotness' | 'most-likes' | 'newest' | 'oldest' | 'random' | (string & {});
|
|
243
243
|
}
|
|
244
244
|
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
|
|
245
245
|
interface ViewerState {
|
|
@@ -1652,6 +1652,25 @@ declare module '@atcute/client/lexicons' {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
type Output = undefined;
|
|
1654
1654
|
}
|
|
1655
|
+
/** Find starter packs matching search criteria. Does not require auth. */
|
|
1656
|
+
namespace AppBskyGraphSearchStarterPacks {
|
|
1657
|
+
interface Params {
|
|
1658
|
+
/** Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
1659
|
+
q: string;
|
|
1660
|
+
cursor?: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* Minimum: 1 \
|
|
1663
|
+
* Maximum: 100
|
|
1664
|
+
* @default 25
|
|
1665
|
+
*/
|
|
1666
|
+
limit?: number;
|
|
1667
|
+
}
|
|
1668
|
+
type Input = undefined;
|
|
1669
|
+
interface Output {
|
|
1670
|
+
starterPacks: AppBskyGraphDefs.StarterPackViewBasic[];
|
|
1671
|
+
cursor?: string;
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1655
1674
|
namespace AppBskyGraphStarterpack {
|
|
1656
1675
|
/** Record defining a starter pack of actors and feeds for new users. */
|
|
1657
1676
|
interface Record {
|
|
@@ -1786,6 +1805,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
1786
1805
|
*/
|
|
1787
1806
|
limit?: number;
|
|
1788
1807
|
priority?: boolean;
|
|
1808
|
+
/**
|
|
1809
|
+
* Notification reasons to include in response. \
|
|
1810
|
+
* A reason that matches the reason property of #notification.
|
|
1811
|
+
*/
|
|
1812
|
+
reasons?: string[];
|
|
1789
1813
|
seenAt?: string;
|
|
1790
1814
|
}
|
|
1791
1815
|
type Input = undefined;
|
|
@@ -1883,6 +1907,19 @@ declare module '@atcute/client/lexicons' {
|
|
|
1883
1907
|
[Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchPost';
|
|
1884
1908
|
uri: At.Uri;
|
|
1885
1909
|
}
|
|
1910
|
+
interface SkeletonSearchStarterPack {
|
|
1911
|
+
[Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchStarterPack';
|
|
1912
|
+
uri: At.Uri;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
/** Get miscellaneous runtime configuration. */
|
|
1916
|
+
namespace AppBskyUnspeccedGetConfig {
|
|
1917
|
+
interface Params {
|
|
1918
|
+
}
|
|
1919
|
+
type Input = undefined;
|
|
1920
|
+
interface Output {
|
|
1921
|
+
checkEmailConfirmed?: boolean;
|
|
1922
|
+
}
|
|
1886
1923
|
}
|
|
1887
1924
|
/** An unspecced view of globally popular feed generators. */
|
|
1888
1925
|
namespace AppBskyUnspeccedGetPopularFeedGenerators {
|
|
@@ -2019,6 +2056,33 @@ declare module '@atcute/client/lexicons' {
|
|
|
2019
2056
|
BadQueryString: {};
|
|
2020
2057
|
}
|
|
2021
2058
|
}
|
|
2059
|
+
/** Backend Starter Pack search, returns only skeleton. */
|
|
2060
|
+
namespace AppBskyUnspeccedSearchStarterPacksSkeleton {
|
|
2061
|
+
interface Params {
|
|
2062
|
+
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
2063
|
+
q: string;
|
|
2064
|
+
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
|
|
2065
|
+
cursor?: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Minimum: 1 \
|
|
2068
|
+
* Maximum: 100
|
|
2069
|
+
* @default 25
|
|
2070
|
+
*/
|
|
2071
|
+
limit?: number;
|
|
2072
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
2073
|
+
viewer?: At.DID;
|
|
2074
|
+
}
|
|
2075
|
+
type Input = undefined;
|
|
2076
|
+
interface Output {
|
|
2077
|
+
starterPacks: AppBskyUnspeccedDefs.SkeletonSearchStarterPack[];
|
|
2078
|
+
cursor?: string;
|
|
2079
|
+
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
|
|
2080
|
+
hitsTotal?: number;
|
|
2081
|
+
}
|
|
2082
|
+
interface Errors {
|
|
2083
|
+
BadQueryString: {};
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2022
2086
|
namespace AppBskyVideoDefs {
|
|
2023
2087
|
interface JobStatus {
|
|
2024
2088
|
[Brand.Type]?: 'app.bsky.video.defs#jobStatus';
|
|
@@ -2116,6 +2180,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2116
2180
|
rev: string;
|
|
2117
2181
|
unreadCount: number;
|
|
2118
2182
|
lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
|
|
2183
|
+
opened?: boolean;
|
|
2119
2184
|
}
|
|
2120
2185
|
interface DeletedMessageView {
|
|
2121
2186
|
[Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
|
|
@@ -2531,6 +2596,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2531
2596
|
params: AppBskyGraphGetSuggestedFollowsByActor.Params;
|
|
2532
2597
|
output: AppBskyGraphGetSuggestedFollowsByActor.Output;
|
|
2533
2598
|
};
|
|
2599
|
+
'app.bsky.graph.searchStarterPacks': {
|
|
2600
|
+
params: AppBskyGraphSearchStarterPacks.Params;
|
|
2601
|
+
output: AppBskyGraphSearchStarterPacks.Output;
|
|
2602
|
+
};
|
|
2534
2603
|
'app.bsky.labeler.getServices': {
|
|
2535
2604
|
params: AppBskyLabelerGetServices.Params;
|
|
2536
2605
|
output: AppBskyLabelerGetServices.Output;
|
|
@@ -2543,6 +2612,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
2543
2612
|
params: AppBskyNotificationListNotifications.Params;
|
|
2544
2613
|
output: AppBskyNotificationListNotifications.Output;
|
|
2545
2614
|
};
|
|
2615
|
+
'app.bsky.unspecced.getConfig': {
|
|
2616
|
+
output: AppBskyUnspeccedGetConfig.Output;
|
|
2617
|
+
};
|
|
2546
2618
|
'app.bsky.unspecced.getPopularFeedGenerators': {
|
|
2547
2619
|
params: AppBskyUnspeccedGetPopularFeedGenerators.Params;
|
|
2548
2620
|
output: AppBskyUnspeccedGetPopularFeedGenerators.Output;
|
|
@@ -2562,6 +2634,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2562
2634
|
params: AppBskyUnspeccedSearchPostsSkeleton.Params;
|
|
2563
2635
|
output: AppBskyUnspeccedSearchPostsSkeleton.Output;
|
|
2564
2636
|
};
|
|
2637
|
+
'app.bsky.unspecced.searchStarterPacksSkeleton': {
|
|
2638
|
+
params: AppBskyUnspeccedSearchStarterPacksSkeleton.Params;
|
|
2639
|
+
output: AppBskyUnspeccedSearchStarterPacksSkeleton.Output;
|
|
2640
|
+
};
|
|
2565
2641
|
'app.bsky.video.getJobStatus': {
|
|
2566
2642
|
params: AppBskyVideoGetJobStatus.Params;
|
|
2567
2643
|
output: AppBskyVideoGetJobStatus.Output;
|
package/lib/lexicons.ts
CHANGED
|
@@ -257,7 +257,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
257
257
|
/** Show followed users at the top of all replies. */
|
|
258
258
|
prioritizeFollowedUsers?: boolean;
|
|
259
259
|
/** Sorting mode for threads. */
|
|
260
|
-
sort?: 'most-likes' | 'newest' | 'oldest' | 'random' | (string & {});
|
|
260
|
+
sort?: 'hotness' | 'most-likes' | 'newest' | 'oldest' | 'random' | (string & {});
|
|
261
261
|
}
|
|
262
262
|
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
|
|
263
263
|
interface ViewerState {
|
|
@@ -1777,6 +1777,26 @@ declare module '@atcute/client/lexicons' {
|
|
|
1777
1777
|
type Output = undefined;
|
|
1778
1778
|
}
|
|
1779
1779
|
|
|
1780
|
+
/** Find starter packs matching search criteria. Does not require auth. */
|
|
1781
|
+
namespace AppBskyGraphSearchStarterPacks {
|
|
1782
|
+
interface Params {
|
|
1783
|
+
/** Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
1784
|
+
q: string;
|
|
1785
|
+
cursor?: string;
|
|
1786
|
+
/**
|
|
1787
|
+
* Minimum: 1 \
|
|
1788
|
+
* Maximum: 100
|
|
1789
|
+
* @default 25
|
|
1790
|
+
*/
|
|
1791
|
+
limit?: number;
|
|
1792
|
+
}
|
|
1793
|
+
type Input = undefined;
|
|
1794
|
+
interface Output {
|
|
1795
|
+
starterPacks: AppBskyGraphDefs.StarterPackViewBasic[];
|
|
1796
|
+
cursor?: string;
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1780
1800
|
namespace AppBskyGraphStarterpack {
|
|
1781
1801
|
/** Record defining a starter pack of actors and feeds for new users. */
|
|
1782
1802
|
interface Record {
|
|
@@ -1916,6 +1936,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
1916
1936
|
*/
|
|
1917
1937
|
limit?: number;
|
|
1918
1938
|
priority?: boolean;
|
|
1939
|
+
/**
|
|
1940
|
+
* Notification reasons to include in response. \
|
|
1941
|
+
* A reason that matches the reason property of #notification.
|
|
1942
|
+
*/
|
|
1943
|
+
reasons?: string[];
|
|
1919
1944
|
seenAt?: string;
|
|
1920
1945
|
}
|
|
1921
1946
|
type Input = undefined;
|
|
@@ -2023,6 +2048,19 @@ declare module '@atcute/client/lexicons' {
|
|
|
2023
2048
|
[Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchPost';
|
|
2024
2049
|
uri: At.Uri;
|
|
2025
2050
|
}
|
|
2051
|
+
interface SkeletonSearchStarterPack {
|
|
2052
|
+
[Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchStarterPack';
|
|
2053
|
+
uri: At.Uri;
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
/** Get miscellaneous runtime configuration. */
|
|
2058
|
+
namespace AppBskyUnspeccedGetConfig {
|
|
2059
|
+
interface Params {}
|
|
2060
|
+
type Input = undefined;
|
|
2061
|
+
interface Output {
|
|
2062
|
+
checkEmailConfirmed?: boolean;
|
|
2063
|
+
}
|
|
2026
2064
|
}
|
|
2027
2065
|
|
|
2028
2066
|
/** An unspecced view of globally popular feed generators. */
|
|
@@ -2165,6 +2203,34 @@ declare module '@atcute/client/lexicons' {
|
|
|
2165
2203
|
}
|
|
2166
2204
|
}
|
|
2167
2205
|
|
|
2206
|
+
/** Backend Starter Pack search, returns only skeleton. */
|
|
2207
|
+
namespace AppBskyUnspeccedSearchStarterPacksSkeleton {
|
|
2208
|
+
interface Params {
|
|
2209
|
+
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
2210
|
+
q: string;
|
|
2211
|
+
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
|
|
2212
|
+
cursor?: string;
|
|
2213
|
+
/**
|
|
2214
|
+
* Minimum: 1 \
|
|
2215
|
+
* Maximum: 100
|
|
2216
|
+
* @default 25
|
|
2217
|
+
*/
|
|
2218
|
+
limit?: number;
|
|
2219
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
2220
|
+
viewer?: At.DID;
|
|
2221
|
+
}
|
|
2222
|
+
type Input = undefined;
|
|
2223
|
+
interface Output {
|
|
2224
|
+
starterPacks: AppBskyUnspeccedDefs.SkeletonSearchStarterPack[];
|
|
2225
|
+
cursor?: string;
|
|
2226
|
+
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
|
|
2227
|
+
hitsTotal?: number;
|
|
2228
|
+
}
|
|
2229
|
+
interface Errors {
|
|
2230
|
+
BadQueryString: {};
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2168
2234
|
namespace AppBskyVideoDefs {
|
|
2169
2235
|
interface JobStatus {
|
|
2170
2236
|
[Brand.Type]?: 'app.bsky.video.defs#jobStatus';
|
|
@@ -2265,6 +2331,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2265
2331
|
rev: string;
|
|
2266
2332
|
unreadCount: number;
|
|
2267
2333
|
lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
|
|
2334
|
+
opened?: boolean;
|
|
2268
2335
|
}
|
|
2269
2336
|
interface DeletedMessageView {
|
|
2270
2337
|
[Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
|
|
@@ -2694,6 +2761,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2694
2761
|
params: AppBskyGraphGetSuggestedFollowsByActor.Params;
|
|
2695
2762
|
output: AppBskyGraphGetSuggestedFollowsByActor.Output;
|
|
2696
2763
|
};
|
|
2764
|
+
'app.bsky.graph.searchStarterPacks': {
|
|
2765
|
+
params: AppBskyGraphSearchStarterPacks.Params;
|
|
2766
|
+
output: AppBskyGraphSearchStarterPacks.Output;
|
|
2767
|
+
};
|
|
2697
2768
|
'app.bsky.labeler.getServices': {
|
|
2698
2769
|
params: AppBskyLabelerGetServices.Params;
|
|
2699
2770
|
output: AppBskyLabelerGetServices.Output;
|
|
@@ -2706,6 +2777,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
2706
2777
|
params: AppBskyNotificationListNotifications.Params;
|
|
2707
2778
|
output: AppBskyNotificationListNotifications.Output;
|
|
2708
2779
|
};
|
|
2780
|
+
'app.bsky.unspecced.getConfig': {
|
|
2781
|
+
output: AppBskyUnspeccedGetConfig.Output;
|
|
2782
|
+
};
|
|
2709
2783
|
'app.bsky.unspecced.getPopularFeedGenerators': {
|
|
2710
2784
|
params: AppBskyUnspeccedGetPopularFeedGenerators.Params;
|
|
2711
2785
|
output: AppBskyUnspeccedGetPopularFeedGenerators.Output;
|
|
@@ -2725,6 +2799,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2725
2799
|
params: AppBskyUnspeccedSearchPostsSkeleton.Params;
|
|
2726
2800
|
output: AppBskyUnspeccedSearchPostsSkeleton.Output;
|
|
2727
2801
|
};
|
|
2802
|
+
'app.bsky.unspecced.searchStarterPacksSkeleton': {
|
|
2803
|
+
params: AppBskyUnspeccedSearchStarterPacksSkeleton.Params;
|
|
2804
|
+
output: AppBskyUnspeccedSearchStarterPacksSkeleton.Output;
|
|
2805
|
+
};
|
|
2728
2806
|
'app.bsky.video.getJobStatus': {
|
|
2729
2807
|
params: AppBskyVideoGetJobStatus.Params;
|
|
2730
2808
|
output: AppBskyVideoGetJobStatus.Output;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/bluesky",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.10",
|
|
5
5
|
"description": "Bluesky type definitions for atcute",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@atcute/client": "^1.0.0 || ^2.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@atcute/client": "^2.0.
|
|
24
|
+
"@atcute/client": "^2.0.6",
|
|
25
25
|
"@atcute/lex-cli": "^1.0.3"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|