@atcute/bluesky 1.0.8 → 1.0.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 +1 -1
- package/dist/lexicons.d.ts +72 -1
- package/lib/lexicons.ts +74 -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 {
|
|
@@ -1883,6 +1902,19 @@ declare module '@atcute/client/lexicons' {
|
|
|
1883
1902
|
[Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchPost';
|
|
1884
1903
|
uri: At.Uri;
|
|
1885
1904
|
}
|
|
1905
|
+
interface SkeletonSearchStarterPack {
|
|
1906
|
+
[Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchStarterPack';
|
|
1907
|
+
uri: At.Uri;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
/** Get miscellaneous runtime configuration. */
|
|
1911
|
+
namespace AppBskyUnspeccedGetConfig {
|
|
1912
|
+
interface Params {
|
|
1913
|
+
}
|
|
1914
|
+
type Input = undefined;
|
|
1915
|
+
interface Output {
|
|
1916
|
+
checkEmailConfirmed?: boolean;
|
|
1917
|
+
}
|
|
1886
1918
|
}
|
|
1887
1919
|
/** An unspecced view of globally popular feed generators. */
|
|
1888
1920
|
namespace AppBskyUnspeccedGetPopularFeedGenerators {
|
|
@@ -2019,6 +2051,33 @@ declare module '@atcute/client/lexicons' {
|
|
|
2019
2051
|
BadQueryString: {};
|
|
2020
2052
|
}
|
|
2021
2053
|
}
|
|
2054
|
+
/** Backend Starter Pack search, returns only skeleton. */
|
|
2055
|
+
namespace AppBskyUnspeccedSearchStarterPacksSkeleton {
|
|
2056
|
+
interface Params {
|
|
2057
|
+
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
2058
|
+
q: string;
|
|
2059
|
+
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
|
|
2060
|
+
cursor?: string;
|
|
2061
|
+
/**
|
|
2062
|
+
* Minimum: 1 \
|
|
2063
|
+
* Maximum: 100
|
|
2064
|
+
* @default 25
|
|
2065
|
+
*/
|
|
2066
|
+
limit?: number;
|
|
2067
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
2068
|
+
viewer?: At.DID;
|
|
2069
|
+
}
|
|
2070
|
+
type Input = undefined;
|
|
2071
|
+
interface Output {
|
|
2072
|
+
starterPacks: AppBskyUnspeccedDefs.SkeletonSearchStarterPack[];
|
|
2073
|
+
cursor?: string;
|
|
2074
|
+
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
|
|
2075
|
+
hitsTotal?: number;
|
|
2076
|
+
}
|
|
2077
|
+
interface Errors {
|
|
2078
|
+
BadQueryString: {};
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2022
2081
|
namespace AppBskyVideoDefs {
|
|
2023
2082
|
interface JobStatus {
|
|
2024
2083
|
[Brand.Type]?: 'app.bsky.video.defs#jobStatus';
|
|
@@ -2116,6 +2175,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2116
2175
|
rev: string;
|
|
2117
2176
|
unreadCount: number;
|
|
2118
2177
|
lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
|
|
2178
|
+
opened?: boolean;
|
|
2119
2179
|
}
|
|
2120
2180
|
interface DeletedMessageView {
|
|
2121
2181
|
[Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
|
|
@@ -2531,6 +2591,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2531
2591
|
params: AppBskyGraphGetSuggestedFollowsByActor.Params;
|
|
2532
2592
|
output: AppBskyGraphGetSuggestedFollowsByActor.Output;
|
|
2533
2593
|
};
|
|
2594
|
+
'app.bsky.graph.searchStarterPacks': {
|
|
2595
|
+
params: AppBskyGraphSearchStarterPacks.Params;
|
|
2596
|
+
output: AppBskyGraphSearchStarterPacks.Output;
|
|
2597
|
+
};
|
|
2534
2598
|
'app.bsky.labeler.getServices': {
|
|
2535
2599
|
params: AppBskyLabelerGetServices.Params;
|
|
2536
2600
|
output: AppBskyLabelerGetServices.Output;
|
|
@@ -2543,6 +2607,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
2543
2607
|
params: AppBskyNotificationListNotifications.Params;
|
|
2544
2608
|
output: AppBskyNotificationListNotifications.Output;
|
|
2545
2609
|
};
|
|
2610
|
+
'app.bsky.unspecced.getConfig': {
|
|
2611
|
+
output: AppBskyUnspeccedGetConfig.Output;
|
|
2612
|
+
};
|
|
2546
2613
|
'app.bsky.unspecced.getPopularFeedGenerators': {
|
|
2547
2614
|
params: AppBskyUnspeccedGetPopularFeedGenerators.Params;
|
|
2548
2615
|
output: AppBskyUnspeccedGetPopularFeedGenerators.Output;
|
|
@@ -2562,6 +2629,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2562
2629
|
params: AppBskyUnspeccedSearchPostsSkeleton.Params;
|
|
2563
2630
|
output: AppBskyUnspeccedSearchPostsSkeleton.Output;
|
|
2564
2631
|
};
|
|
2632
|
+
'app.bsky.unspecced.searchStarterPacksSkeleton': {
|
|
2633
|
+
params: AppBskyUnspeccedSearchStarterPacksSkeleton.Params;
|
|
2634
|
+
output: AppBskyUnspeccedSearchStarterPacksSkeleton.Output;
|
|
2635
|
+
};
|
|
2565
2636
|
'app.bsky.video.getJobStatus': {
|
|
2566
2637
|
params: AppBskyVideoGetJobStatus.Params;
|
|
2567
2638
|
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 {
|
|
@@ -2023,6 +2043,19 @@ declare module '@atcute/client/lexicons' {
|
|
|
2023
2043
|
[Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchPost';
|
|
2024
2044
|
uri: At.Uri;
|
|
2025
2045
|
}
|
|
2046
|
+
interface SkeletonSearchStarterPack {
|
|
2047
|
+
[Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchStarterPack';
|
|
2048
|
+
uri: At.Uri;
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
/** Get miscellaneous runtime configuration. */
|
|
2053
|
+
namespace AppBskyUnspeccedGetConfig {
|
|
2054
|
+
interface Params {}
|
|
2055
|
+
type Input = undefined;
|
|
2056
|
+
interface Output {
|
|
2057
|
+
checkEmailConfirmed?: boolean;
|
|
2058
|
+
}
|
|
2026
2059
|
}
|
|
2027
2060
|
|
|
2028
2061
|
/** An unspecced view of globally popular feed generators. */
|
|
@@ -2165,6 +2198,34 @@ declare module '@atcute/client/lexicons' {
|
|
|
2165
2198
|
}
|
|
2166
2199
|
}
|
|
2167
2200
|
|
|
2201
|
+
/** Backend Starter Pack search, returns only skeleton. */
|
|
2202
|
+
namespace AppBskyUnspeccedSearchStarterPacksSkeleton {
|
|
2203
|
+
interface Params {
|
|
2204
|
+
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
2205
|
+
q: string;
|
|
2206
|
+
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
|
|
2207
|
+
cursor?: string;
|
|
2208
|
+
/**
|
|
2209
|
+
* Minimum: 1 \
|
|
2210
|
+
* Maximum: 100
|
|
2211
|
+
* @default 25
|
|
2212
|
+
*/
|
|
2213
|
+
limit?: number;
|
|
2214
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
2215
|
+
viewer?: At.DID;
|
|
2216
|
+
}
|
|
2217
|
+
type Input = undefined;
|
|
2218
|
+
interface Output {
|
|
2219
|
+
starterPacks: AppBskyUnspeccedDefs.SkeletonSearchStarterPack[];
|
|
2220
|
+
cursor?: string;
|
|
2221
|
+
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
|
|
2222
|
+
hitsTotal?: number;
|
|
2223
|
+
}
|
|
2224
|
+
interface Errors {
|
|
2225
|
+
BadQueryString: {};
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2168
2229
|
namespace AppBskyVideoDefs {
|
|
2169
2230
|
interface JobStatus {
|
|
2170
2231
|
[Brand.Type]?: 'app.bsky.video.defs#jobStatus';
|
|
@@ -2265,6 +2326,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2265
2326
|
rev: string;
|
|
2266
2327
|
unreadCount: number;
|
|
2267
2328
|
lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
|
|
2329
|
+
opened?: boolean;
|
|
2268
2330
|
}
|
|
2269
2331
|
interface DeletedMessageView {
|
|
2270
2332
|
[Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
|
|
@@ -2694,6 +2756,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2694
2756
|
params: AppBskyGraphGetSuggestedFollowsByActor.Params;
|
|
2695
2757
|
output: AppBskyGraphGetSuggestedFollowsByActor.Output;
|
|
2696
2758
|
};
|
|
2759
|
+
'app.bsky.graph.searchStarterPacks': {
|
|
2760
|
+
params: AppBskyGraphSearchStarterPacks.Params;
|
|
2761
|
+
output: AppBskyGraphSearchStarterPacks.Output;
|
|
2762
|
+
};
|
|
2697
2763
|
'app.bsky.labeler.getServices': {
|
|
2698
2764
|
params: AppBskyLabelerGetServices.Params;
|
|
2699
2765
|
output: AppBskyLabelerGetServices.Output;
|
|
@@ -2706,6 +2772,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
2706
2772
|
params: AppBskyNotificationListNotifications.Params;
|
|
2707
2773
|
output: AppBskyNotificationListNotifications.Output;
|
|
2708
2774
|
};
|
|
2775
|
+
'app.bsky.unspecced.getConfig': {
|
|
2776
|
+
output: AppBskyUnspeccedGetConfig.Output;
|
|
2777
|
+
};
|
|
2709
2778
|
'app.bsky.unspecced.getPopularFeedGenerators': {
|
|
2710
2779
|
params: AppBskyUnspeccedGetPopularFeedGenerators.Params;
|
|
2711
2780
|
output: AppBskyUnspeccedGetPopularFeedGenerators.Output;
|
|
@@ -2725,6 +2794,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2725
2794
|
params: AppBskyUnspeccedSearchPostsSkeleton.Params;
|
|
2726
2795
|
output: AppBskyUnspeccedSearchPostsSkeleton.Output;
|
|
2727
2796
|
};
|
|
2797
|
+
'app.bsky.unspecced.searchStarterPacksSkeleton': {
|
|
2798
|
+
params: AppBskyUnspeccedSearchStarterPacksSkeleton.Params;
|
|
2799
|
+
output: AppBskyUnspeccedSearchStarterPacksSkeleton.Output;
|
|
2800
|
+
};
|
|
2728
2801
|
'app.bsky.video.getJobStatus': {
|
|
2729
2802
|
params: AppBskyVideoGetJobStatus.Params;
|
|
2730
2803
|
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.9",
|
|
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": {
|