@atcute/bluesky 1.0.5 → 1.0.7
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/lexicons.d.ts +71 -2
- package/package.json +3 -3
package/dist/lexicons.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
20
20
|
interface BskyAppStatePref {
|
|
21
21
|
[Brand.Type]?: 'app.bsky.actor.defs#bskyAppStatePref';
|
|
22
22
|
activeProgressGuide?: BskyAppProgressGuide;
|
|
23
|
+
/**
|
|
24
|
+
* Storage for NUXs the user has encountered. \
|
|
25
|
+
* Maximum array length: 100
|
|
26
|
+
*/
|
|
27
|
+
nuxs?: AppBskyActorDefs.Nux[];
|
|
23
28
|
/**
|
|
24
29
|
* An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. \
|
|
25
30
|
* Maximum array length: 1000 \
|
|
@@ -115,6 +120,22 @@ declare module '@atcute/client/lexicons' {
|
|
|
115
120
|
* Maximum grapheme length: 64
|
|
116
121
|
*/
|
|
117
122
|
type MutedWordTarget = 'content' | 'tag' | (string & {});
|
|
123
|
+
/** A new user experiences (NUX) storage object */
|
|
124
|
+
interface Nux {
|
|
125
|
+
[Brand.Type]?: 'app.bsky.actor.defs#nux';
|
|
126
|
+
/** @default false */
|
|
127
|
+
completed: boolean;
|
|
128
|
+
/** Maximum string length: 100 */
|
|
129
|
+
id: string;
|
|
130
|
+
/**
|
|
131
|
+
* Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. \
|
|
132
|
+
* Maximum string length: 3000 \
|
|
133
|
+
* Maximum grapheme length: 300
|
|
134
|
+
*/
|
|
135
|
+
data?: string;
|
|
136
|
+
/** The date and time at which the NUX will expire and should be considered completed. */
|
|
137
|
+
expiresAt?: string;
|
|
138
|
+
}
|
|
118
139
|
interface PersonalDetailsPref {
|
|
119
140
|
[Brand.Type]?: 'app.bsky.actor.defs#personalDetailsPref';
|
|
120
141
|
/** The birth date of account owner. */
|
|
@@ -192,6 +213,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
192
213
|
indexedAt?: string;
|
|
193
214
|
joinedViaStarterPack?: AppBskyGraphDefs.StarterPackViewBasic;
|
|
194
215
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
216
|
+
pinnedPost?: ComAtprotoRepoStrongRef.Main;
|
|
195
217
|
postsCount?: number;
|
|
196
218
|
viewer?: ViewerState;
|
|
197
219
|
}
|
|
@@ -277,7 +299,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
277
299
|
}
|
|
278
300
|
}
|
|
279
301
|
namespace AppBskyActorProfile {
|
|
302
|
+
/** A declaration of a Bluesky account profile. */
|
|
280
303
|
interface Record {
|
|
304
|
+
$type: 'app.bsky.actor.profile';
|
|
281
305
|
/** Small image to be displayed next to posts from account. AKA, 'profile picture' */
|
|
282
306
|
avatar?: At.Blob;
|
|
283
307
|
/** Larger horizontal image to display behind profile view. */
|
|
@@ -297,6 +321,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
297
321
|
joinedViaStarterPack?: ComAtprotoRepoStrongRef.Main;
|
|
298
322
|
/** Self-label values, specific to the Bluesky application, on the overall account. */
|
|
299
323
|
labels?: Brand.Union<ComAtprotoLabelDefs.SelfLabels>;
|
|
324
|
+
pinnedPost?: ComAtprotoRepoStrongRef.Main;
|
|
300
325
|
}
|
|
301
326
|
}
|
|
302
327
|
/** Set the private preferences attached to the account. */
|
|
@@ -527,7 +552,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
527
552
|
* Maximum string length: 2000
|
|
528
553
|
*/
|
|
529
554
|
feedContext?: string;
|
|
530
|
-
reason?: Brand.Union<ReasonRepost>;
|
|
555
|
+
reason?: Brand.Union<ReasonPin | ReasonRepost>;
|
|
531
556
|
reply?: ReplyRef;
|
|
532
557
|
}
|
|
533
558
|
interface GeneratorView {
|
|
@@ -592,6 +617,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
592
617
|
threadgate?: ThreadgateView;
|
|
593
618
|
viewer?: ViewerState;
|
|
594
619
|
}
|
|
620
|
+
interface ReasonPin {
|
|
621
|
+
[Brand.Type]?: 'app.bsky.feed.defs#reasonPin';
|
|
622
|
+
}
|
|
595
623
|
interface ReasonRepost {
|
|
596
624
|
[Brand.Type]?: 'app.bsky.feed.defs#reasonRepost';
|
|
597
625
|
by: AppBskyActorDefs.ProfileViewBasic;
|
|
@@ -614,7 +642,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
614
642
|
* Maximum string length: 2000
|
|
615
643
|
*/
|
|
616
644
|
feedContext?: string;
|
|
617
|
-
reason?: Brand.Union<SkeletonReasonRepost>;
|
|
645
|
+
reason?: Brand.Union<SkeletonReasonPin | SkeletonReasonRepost>;
|
|
646
|
+
}
|
|
647
|
+
interface SkeletonReasonPin {
|
|
648
|
+
[Brand.Type]?: 'app.bsky.feed.defs#skeletonReasonPin';
|
|
618
649
|
}
|
|
619
650
|
interface SkeletonReasonRepost {
|
|
620
651
|
[Brand.Type]?: 'app.bsky.feed.defs#skeletonReasonRepost';
|
|
@@ -638,6 +669,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
638
669
|
[Brand.Type]?: 'app.bsky.feed.defs#viewerState';
|
|
639
670
|
embeddingDisabled?: boolean;
|
|
640
671
|
like?: At.Uri;
|
|
672
|
+
pinned?: boolean;
|
|
641
673
|
replyDisabled?: boolean;
|
|
642
674
|
repost?: At.Uri;
|
|
643
675
|
threadMuted?: boolean;
|
|
@@ -664,7 +696,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
664
696
|
}
|
|
665
697
|
}
|
|
666
698
|
namespace AppBskyFeedGenerator {
|
|
699
|
+
/** Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository. */
|
|
667
700
|
interface Record {
|
|
701
|
+
$type: 'app.bsky.feed.generator';
|
|
668
702
|
createdAt: string;
|
|
669
703
|
did: At.DID;
|
|
670
704
|
/**
|
|
@@ -735,6 +769,8 @@ declare module '@atcute/client/lexicons' {
|
|
|
735
769
|
* @default "posts_with_replies"
|
|
736
770
|
*/
|
|
737
771
|
filter?: 'posts_and_author_threads' | 'posts_no_replies' | 'posts_with_media' | 'posts_with_replies' | (string & {});
|
|
772
|
+
/** @default false */
|
|
773
|
+
includePins?: boolean;
|
|
738
774
|
/**
|
|
739
775
|
* Minimum: 1 \
|
|
740
776
|
* Maximum: 100
|
|
@@ -997,13 +1033,17 @@ declare module '@atcute/client/lexicons' {
|
|
|
997
1033
|
}
|
|
998
1034
|
}
|
|
999
1035
|
namespace AppBskyFeedLike {
|
|
1036
|
+
/** Record declaring a 'like' of a piece of subject content. */
|
|
1000
1037
|
interface Record {
|
|
1038
|
+
$type: 'app.bsky.feed.like';
|
|
1001
1039
|
createdAt: string;
|
|
1002
1040
|
subject: ComAtprotoRepoStrongRef.Main;
|
|
1003
1041
|
}
|
|
1004
1042
|
}
|
|
1005
1043
|
namespace AppBskyFeedPost {
|
|
1044
|
+
/** Record containing a Bluesky post. */
|
|
1006
1045
|
interface Record {
|
|
1046
|
+
$type: 'app.bsky.feed.post';
|
|
1007
1047
|
/** Client-declared timestamp when this post was originally created. */
|
|
1008
1048
|
createdAt: string;
|
|
1009
1049
|
/**
|
|
@@ -1065,7 +1105,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
1065
1105
|
}
|
|
1066
1106
|
}
|
|
1067
1107
|
namespace AppBskyFeedPostgate {
|
|
1108
|
+
/** Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository. */
|
|
1068
1109
|
interface Record {
|
|
1110
|
+
$type: 'app.bsky.feed.postgate';
|
|
1069
1111
|
createdAt: string;
|
|
1070
1112
|
/** Reference (AT-URI) to the post record. */
|
|
1071
1113
|
post: At.Uri;
|
|
@@ -1083,7 +1125,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
1083
1125
|
}
|
|
1084
1126
|
}
|
|
1085
1127
|
namespace AppBskyFeedRepost {
|
|
1128
|
+
/** Record representing a 'repost' of an existing Bluesky post. */
|
|
1086
1129
|
interface Record {
|
|
1130
|
+
$type: 'app.bsky.feed.repost';
|
|
1087
1131
|
createdAt: string;
|
|
1088
1132
|
subject: ComAtprotoRepoStrongRef.Main;
|
|
1089
1133
|
}
|
|
@@ -1149,7 +1193,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
1149
1193
|
}
|
|
1150
1194
|
}
|
|
1151
1195
|
namespace AppBskyFeedThreadgate {
|
|
1196
|
+
/** Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository. */
|
|
1152
1197
|
interface Record {
|
|
1198
|
+
$type: 'app.bsky.feed.threadgate';
|
|
1153
1199
|
createdAt: string;
|
|
1154
1200
|
/** Reference (AT-URI) to the post record. */
|
|
1155
1201
|
post: At.Uri;
|
|
@@ -1176,7 +1222,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
1176
1222
|
}
|
|
1177
1223
|
}
|
|
1178
1224
|
namespace AppBskyGraphBlock {
|
|
1225
|
+
/** Record declaring a 'block' relationship against another account. NOTE: blocks are public in Bluesky; see blog posts for details. */
|
|
1179
1226
|
interface Record {
|
|
1227
|
+
$type: 'app.bsky.graph.block';
|
|
1180
1228
|
createdAt: string;
|
|
1181
1229
|
/** DID of the account to be blocked. */
|
|
1182
1230
|
subject: At.DID;
|
|
@@ -1288,7 +1336,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
1288
1336
|
}
|
|
1289
1337
|
}
|
|
1290
1338
|
namespace AppBskyGraphFollow {
|
|
1339
|
+
/** Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView. */
|
|
1291
1340
|
interface Record {
|
|
1341
|
+
$type: 'app.bsky.graph.follow';
|
|
1292
1342
|
createdAt: string;
|
|
1293
1343
|
subject: At.DID;
|
|
1294
1344
|
}
|
|
@@ -1525,10 +1575,17 @@ declare module '@atcute/client/lexicons' {
|
|
|
1525
1575
|
type Input = undefined;
|
|
1526
1576
|
interface Output {
|
|
1527
1577
|
suggestions: AppBskyActorDefs.ProfileView[];
|
|
1578
|
+
/**
|
|
1579
|
+
* If true, response has fallen-back to generic results, and is not scoped using relativeToDid
|
|
1580
|
+
* @default false
|
|
1581
|
+
*/
|
|
1582
|
+
isFallback?: boolean;
|
|
1528
1583
|
}
|
|
1529
1584
|
}
|
|
1530
1585
|
namespace AppBskyGraphList {
|
|
1586
|
+
/** Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists. */
|
|
1531
1587
|
interface Record {
|
|
1588
|
+
$type: 'app.bsky.graph.list';
|
|
1532
1589
|
createdAt: string;
|
|
1533
1590
|
/**
|
|
1534
1591
|
* Display name for list; can not be empty. \
|
|
@@ -1549,14 +1606,18 @@ declare module '@atcute/client/lexicons' {
|
|
|
1549
1606
|
}
|
|
1550
1607
|
}
|
|
1551
1608
|
namespace AppBskyGraphListblock {
|
|
1609
|
+
/** Record representing a block relationship against an entire an entire list of accounts (actors). */
|
|
1552
1610
|
interface Record {
|
|
1611
|
+
$type: 'app.bsky.graph.listblock';
|
|
1553
1612
|
createdAt: string;
|
|
1554
1613
|
/** Reference (AT-URI) to the mod list record. */
|
|
1555
1614
|
subject: At.Uri;
|
|
1556
1615
|
}
|
|
1557
1616
|
}
|
|
1558
1617
|
namespace AppBskyGraphListitem {
|
|
1618
|
+
/** Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records. */
|
|
1559
1619
|
interface Record {
|
|
1620
|
+
$type: 'app.bsky.graph.listitem';
|
|
1560
1621
|
createdAt: string;
|
|
1561
1622
|
/** Reference (AT-URI) to the list record (app.bsky.graph.list). */
|
|
1562
1623
|
list: At.Uri;
|
|
@@ -1592,7 +1653,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
1592
1653
|
type Output = undefined;
|
|
1593
1654
|
}
|
|
1594
1655
|
namespace AppBskyGraphStarterpack {
|
|
1656
|
+
/** Record defining a starter pack of actors and feeds for new users. */
|
|
1595
1657
|
interface Record {
|
|
1658
|
+
$type: 'app.bsky.graph.starterpack';
|
|
1596
1659
|
createdAt: string;
|
|
1597
1660
|
/** Reference (AT-URI) to the list record. */
|
|
1598
1661
|
list: At.Uri;
|
|
@@ -1693,7 +1756,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
1693
1756
|
}
|
|
1694
1757
|
}
|
|
1695
1758
|
namespace AppBskyLabelerService {
|
|
1759
|
+
/** A declaration of the existence of labeler service. */
|
|
1696
1760
|
interface Record {
|
|
1761
|
+
$type: 'app.bsky.labeler.service';
|
|
1697
1762
|
createdAt: string;
|
|
1698
1763
|
policies: AppBskyLabelerDefs.LabelerPolicies;
|
|
1699
1764
|
labels?: Brand.Union<ComAtprotoLabelDefs.SelfLabels>;
|
|
@@ -1856,6 +1921,8 @@ declare module '@atcute/client/lexicons' {
|
|
|
1856
1921
|
interface Output {
|
|
1857
1922
|
actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
|
|
1858
1923
|
cursor?: string;
|
|
1924
|
+
/** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
|
|
1925
|
+
relativeToDid?: At.DID;
|
|
1859
1926
|
}
|
|
1860
1927
|
}
|
|
1861
1928
|
/** Get a list of suggestions (feeds and users) tagged with categories */
|
|
@@ -2003,7 +2070,9 @@ declare module '@atcute/client/lexicons' {
|
|
|
2003
2070
|
}
|
|
2004
2071
|
}
|
|
2005
2072
|
namespace ChatBskyActorDeclaration {
|
|
2073
|
+
/** A declaration of a Bluesky chat account. */
|
|
2006
2074
|
interface Record {
|
|
2075
|
+
$type: 'chat.bsky.actor.declaration';
|
|
2007
2076
|
allowIncoming: 'all' | 'following' | 'none' | (string & {});
|
|
2008
2077
|
}
|
|
2009
2078
|
}
|
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.7",
|
|
5
5
|
"description": "Bluesky type definitions for atcute",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@atcute/client": "^1.0.0 || ^2.0.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@atcute/client": "^2.0.
|
|
21
|
-
"@atcute/lex-cli": "^1.0.
|
|
20
|
+
"@atcute/client": "^2.0.1",
|
|
21
|
+
"@atcute/lex-cli": "^1.0.2"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "tsc",
|