@atproto/api 0.6.17 → 0.6.19
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 +12 -0
- package/dist/client/index.d.ts +10 -3
- package/dist/client/lexicons.d.ts +203 -14
- package/dist/client/types/app/bsky/actor/searchActors.d.ts +1 -0
- package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +1 -0
- package/dist/client/types/app/bsky/feed/searchPosts.d.ts +26 -0
- package/dist/client/types/app/bsky/unspecced/defs.d.ts +13 -0
- package/dist/client/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +27 -0
- package/dist/client/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +26 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +1 -0
- package/dist/index.js +395 -90
- package/dist/index.js.map +3 -3
- package/dist/rich-text/rich-text.d.ts +3 -0
- package/package.json +2 -2
- package/src/client/index.ts +41 -13
- package/src/client/lexicons.ts +229 -23
- package/src/client/types/app/bsky/actor/searchActors.ts +3 -0
- package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +3 -0
- package/src/client/types/app/bsky/feed/searchPosts.ts +50 -0
- package/src/client/types/app/bsky/unspecced/defs.ts +41 -0
- package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +52 -0
- package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +50 -0
- package/src/client/types/com/atproto/admin/searchRepos.ts +2 -0
- package/src/rich-text/detection.ts +27 -0
- package/src/rich-text/rich-text.ts +13 -0
- package/tests/rich-text-detection.test.ts +104 -0
- package/dist/client/types/app/bsky/unspecced/applyLabels.d.ts +0 -18
- package/src/client/types/app/bsky/unspecced/applyLabels.ts +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.6.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1674](https://github.com/bluesky-social/atproto/pull/1674) [`35b616cd`](https://github.com/bluesky-social/atproto/commit/35b616cd82232879937afc88d3f77d20c6395276) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Strip leading `#` from from detected tag facets
|
|
8
|
+
|
|
9
|
+
## 0.6.18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1651](https://github.com/bluesky-social/atproto/pull/1651) [`2ce8a11b`](https://github.com/bluesky-social/atproto/commit/2ce8a11b8daf5d39027488c5dde8c47b0eb937bf) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Adds support for hashtags in the `RichText.detectFacets` method.
|
|
14
|
+
|
|
3
15
|
## 0.6.17
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/client/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
|
|
|
82
82
|
import * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
83
83
|
import * as AppBskyFeedPost from './types/app/bsky/feed/post';
|
|
84
84
|
import * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
|
|
85
|
+
import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts';
|
|
85
86
|
import * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate';
|
|
86
87
|
import * as AppBskyGraphBlock from './types/app/bsky/graph/block';
|
|
87
88
|
import * as AppBskyGraphFollow from './types/app/bsky/graph/follow';
|
|
@@ -105,10 +106,11 @@ import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notificatio
|
|
|
105
106
|
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications';
|
|
106
107
|
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush';
|
|
107
108
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
|
|
108
|
-
import * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels';
|
|
109
109
|
import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular';
|
|
110
110
|
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators';
|
|
111
111
|
import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton';
|
|
112
|
+
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
|
|
113
|
+
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
|
|
112
114
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs';
|
|
113
115
|
export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
|
|
114
116
|
export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
|
|
@@ -205,6 +207,7 @@ export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
|
|
|
205
207
|
export * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
206
208
|
export * as AppBskyFeedPost from './types/app/bsky/feed/post';
|
|
207
209
|
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
|
|
210
|
+
export * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts';
|
|
208
211
|
export * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate';
|
|
209
212
|
export * as AppBskyGraphBlock from './types/app/bsky/graph/block';
|
|
210
213
|
export * as AppBskyGraphDefs from './types/app/bsky/graph/defs';
|
|
@@ -230,10 +233,12 @@ export * as AppBskyNotificationListNotifications from './types/app/bsky/notifica
|
|
|
230
233
|
export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush';
|
|
231
234
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
|
|
232
235
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet';
|
|
233
|
-
export * as
|
|
236
|
+
export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs';
|
|
234
237
|
export * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular';
|
|
235
238
|
export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators';
|
|
236
239
|
export * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton';
|
|
240
|
+
export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
|
|
241
|
+
export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
|
|
237
242
|
export declare const COM_ATPROTO_ADMIN: {
|
|
238
243
|
DefsTakedown: string;
|
|
239
244
|
DefsFlag: string;
|
|
@@ -441,6 +446,7 @@ export declare class FeedNS {
|
|
|
441
446
|
getRepostedBy(params?: AppBskyFeedGetRepostedBy.QueryParams, opts?: AppBskyFeedGetRepostedBy.CallOptions): Promise<AppBskyFeedGetRepostedBy.Response>;
|
|
442
447
|
getSuggestedFeeds(params?: AppBskyFeedGetSuggestedFeeds.QueryParams, opts?: AppBskyFeedGetSuggestedFeeds.CallOptions): Promise<AppBskyFeedGetSuggestedFeeds.Response>;
|
|
443
448
|
getTimeline(params?: AppBskyFeedGetTimeline.QueryParams, opts?: AppBskyFeedGetTimeline.CallOptions): Promise<AppBskyFeedGetTimeline.Response>;
|
|
449
|
+
searchPosts(params?: AppBskyFeedSearchPosts.QueryParams, opts?: AppBskyFeedSearchPosts.CallOptions): Promise<AppBskyFeedSearchPosts.Response>;
|
|
444
450
|
}
|
|
445
451
|
export declare class GeneratorRecord {
|
|
446
452
|
_service: AtpServiceClient;
|
|
@@ -689,8 +695,9 @@ export declare class RichtextNS {
|
|
|
689
695
|
export declare class UnspeccedNS {
|
|
690
696
|
_service: AtpServiceClient;
|
|
691
697
|
constructor(service: AtpServiceClient);
|
|
692
|
-
applyLabels(data?: AppBskyUnspeccedApplyLabels.InputSchema, opts?: AppBskyUnspeccedApplyLabels.CallOptions): Promise<AppBskyUnspeccedApplyLabels.Response>;
|
|
693
698
|
getPopular(params?: AppBskyUnspeccedGetPopular.QueryParams, opts?: AppBskyUnspeccedGetPopular.CallOptions): Promise<AppBskyUnspeccedGetPopular.Response>;
|
|
694
699
|
getPopularFeedGenerators(params?: AppBskyUnspeccedGetPopularFeedGenerators.QueryParams, opts?: AppBskyUnspeccedGetPopularFeedGenerators.CallOptions): Promise<AppBskyUnspeccedGetPopularFeedGenerators.Response>;
|
|
695
700
|
getTimelineSkeleton(params?: AppBskyUnspeccedGetTimelineSkeleton.QueryParams, opts?: AppBskyUnspeccedGetTimelineSkeleton.CallOptions): Promise<AppBskyUnspeccedGetTimelineSkeleton.Response>;
|
|
701
|
+
searchActorsSkeleton(params?: AppBskyUnspeccedSearchActorsSkeleton.QueryParams, opts?: AppBskyUnspeccedSearchActorsSkeleton.CallOptions): Promise<AppBskyUnspeccedSearchActorsSkeleton.Response>;
|
|
702
|
+
searchPostsSkeleton(params?: AppBskyUnspeccedSearchPostsSkeleton.QueryParams, opts?: AppBskyUnspeccedSearchPostsSkeleton.CallOptions): Promise<AppBskyUnspeccedSearchPostsSkeleton.Response>;
|
|
696
703
|
}
|
|
@@ -1003,6 +1003,10 @@ export declare const schemaDict: {
|
|
|
1003
1003
|
properties: {
|
|
1004
1004
|
term: {
|
|
1005
1005
|
type: string;
|
|
1006
|
+
description: string;
|
|
1007
|
+
};
|
|
1008
|
+
q: {
|
|
1009
|
+
type: string;
|
|
1006
1010
|
};
|
|
1007
1011
|
invitedBy: {
|
|
1008
1012
|
type: string;
|
|
@@ -3727,6 +3731,11 @@ export declare const schemaDict: {
|
|
|
3727
3731
|
properties: {
|
|
3728
3732
|
term: {
|
|
3729
3733
|
type: string;
|
|
3734
|
+
description: string;
|
|
3735
|
+
};
|
|
3736
|
+
q: {
|
|
3737
|
+
type: string;
|
|
3738
|
+
description: string;
|
|
3730
3739
|
};
|
|
3731
3740
|
limit: {
|
|
3732
3741
|
type: string;
|
|
@@ -3773,6 +3782,11 @@ export declare const schemaDict: {
|
|
|
3773
3782
|
properties: {
|
|
3774
3783
|
term: {
|
|
3775
3784
|
type: string;
|
|
3785
|
+
description: string;
|
|
3786
|
+
};
|
|
3787
|
+
q: {
|
|
3788
|
+
type: string;
|
|
3789
|
+
description: string;
|
|
3776
3790
|
};
|
|
3777
3791
|
limit: {
|
|
3778
3792
|
type: string;
|
|
@@ -5362,6 +5376,62 @@ export declare const schemaDict: {
|
|
|
5362
5376
|
};
|
|
5363
5377
|
};
|
|
5364
5378
|
};
|
|
5379
|
+
AppBskyFeedSearchPosts: {
|
|
5380
|
+
lexicon: number;
|
|
5381
|
+
id: string;
|
|
5382
|
+
defs: {
|
|
5383
|
+
main: {
|
|
5384
|
+
type: string;
|
|
5385
|
+
description: string;
|
|
5386
|
+
parameters: {
|
|
5387
|
+
type: string;
|
|
5388
|
+
required: string[];
|
|
5389
|
+
properties: {
|
|
5390
|
+
q: {
|
|
5391
|
+
type: string;
|
|
5392
|
+
description: string;
|
|
5393
|
+
};
|
|
5394
|
+
limit: {
|
|
5395
|
+
type: string;
|
|
5396
|
+
minimum: number;
|
|
5397
|
+
maximum: number;
|
|
5398
|
+
default: number;
|
|
5399
|
+
};
|
|
5400
|
+
cursor: {
|
|
5401
|
+
type: string;
|
|
5402
|
+
description: string;
|
|
5403
|
+
};
|
|
5404
|
+
};
|
|
5405
|
+
};
|
|
5406
|
+
output: {
|
|
5407
|
+
encoding: string;
|
|
5408
|
+
schema: {
|
|
5409
|
+
type: string;
|
|
5410
|
+
required: string[];
|
|
5411
|
+
properties: {
|
|
5412
|
+
cursor: {
|
|
5413
|
+
type: string;
|
|
5414
|
+
};
|
|
5415
|
+
hitsTotal: {
|
|
5416
|
+
type: string;
|
|
5417
|
+
description: string;
|
|
5418
|
+
};
|
|
5419
|
+
posts: {
|
|
5420
|
+
type: string;
|
|
5421
|
+
items: {
|
|
5422
|
+
type: string;
|
|
5423
|
+
ref: string;
|
|
5424
|
+
};
|
|
5425
|
+
};
|
|
5426
|
+
};
|
|
5427
|
+
};
|
|
5428
|
+
};
|
|
5429
|
+
errors: {
|
|
5430
|
+
name: string;
|
|
5431
|
+
}[];
|
|
5432
|
+
};
|
|
5433
|
+
};
|
|
5434
|
+
};
|
|
5365
5435
|
AppBskyFeedThreadgate: {
|
|
5366
5436
|
lexicon: number;
|
|
5367
5437
|
id: string;
|
|
@@ -6447,20 +6517,67 @@ export declare const schemaDict: {
|
|
|
6447
6517
|
};
|
|
6448
6518
|
};
|
|
6449
6519
|
};
|
|
6450
|
-
|
|
6520
|
+
AppBskyUnspeccedDefs: {
|
|
6521
|
+
lexicon: number;
|
|
6522
|
+
id: string;
|
|
6523
|
+
defs: {
|
|
6524
|
+
skeletonSearchPost: {
|
|
6525
|
+
type: string;
|
|
6526
|
+
required: string[];
|
|
6527
|
+
properties: {
|
|
6528
|
+
uri: {
|
|
6529
|
+
type: string;
|
|
6530
|
+
format: string;
|
|
6531
|
+
};
|
|
6532
|
+
};
|
|
6533
|
+
};
|
|
6534
|
+
skeletonSearchActor: {
|
|
6535
|
+
type: string;
|
|
6536
|
+
required: string[];
|
|
6537
|
+
properties: {
|
|
6538
|
+
did: {
|
|
6539
|
+
type: string;
|
|
6540
|
+
format: string;
|
|
6541
|
+
};
|
|
6542
|
+
};
|
|
6543
|
+
};
|
|
6544
|
+
};
|
|
6545
|
+
};
|
|
6546
|
+
AppBskyUnspeccedGetPopular: {
|
|
6451
6547
|
lexicon: number;
|
|
6452
6548
|
id: string;
|
|
6453
6549
|
defs: {
|
|
6454
6550
|
main: {
|
|
6455
6551
|
type: string;
|
|
6456
6552
|
description: string;
|
|
6457
|
-
|
|
6553
|
+
parameters: {
|
|
6554
|
+
type: string;
|
|
6555
|
+
properties: {
|
|
6556
|
+
includeNsfw: {
|
|
6557
|
+
type: string;
|
|
6558
|
+
default: boolean;
|
|
6559
|
+
};
|
|
6560
|
+
limit: {
|
|
6561
|
+
type: string;
|
|
6562
|
+
minimum: number;
|
|
6563
|
+
maximum: number;
|
|
6564
|
+
default: number;
|
|
6565
|
+
};
|
|
6566
|
+
cursor: {
|
|
6567
|
+
type: string;
|
|
6568
|
+
};
|
|
6569
|
+
};
|
|
6570
|
+
};
|
|
6571
|
+
output: {
|
|
6458
6572
|
encoding: string;
|
|
6459
6573
|
schema: {
|
|
6460
6574
|
type: string;
|
|
6461
6575
|
required: string[];
|
|
6462
6576
|
properties: {
|
|
6463
|
-
|
|
6577
|
+
cursor: {
|
|
6578
|
+
type: string;
|
|
6579
|
+
};
|
|
6580
|
+
feed: {
|
|
6464
6581
|
type: string;
|
|
6465
6582
|
items: {
|
|
6466
6583
|
type: string;
|
|
@@ -6473,7 +6590,7 @@ export declare const schemaDict: {
|
|
|
6473
6590
|
};
|
|
6474
6591
|
};
|
|
6475
6592
|
};
|
|
6476
|
-
|
|
6593
|
+
AppBskyUnspeccedGetPopularFeedGenerators: {
|
|
6477
6594
|
lexicon: number;
|
|
6478
6595
|
id: string;
|
|
6479
6596
|
defs: {
|
|
@@ -6483,10 +6600,52 @@ export declare const schemaDict: {
|
|
|
6483
6600
|
parameters: {
|
|
6484
6601
|
type: string;
|
|
6485
6602
|
properties: {
|
|
6486
|
-
|
|
6603
|
+
limit: {
|
|
6487
6604
|
type: string;
|
|
6488
|
-
|
|
6605
|
+
minimum: number;
|
|
6606
|
+
maximum: number;
|
|
6607
|
+
default: number;
|
|
6489
6608
|
};
|
|
6609
|
+
cursor: {
|
|
6610
|
+
type: string;
|
|
6611
|
+
};
|
|
6612
|
+
query: {
|
|
6613
|
+
type: string;
|
|
6614
|
+
};
|
|
6615
|
+
};
|
|
6616
|
+
};
|
|
6617
|
+
output: {
|
|
6618
|
+
encoding: string;
|
|
6619
|
+
schema: {
|
|
6620
|
+
type: string;
|
|
6621
|
+
required: string[];
|
|
6622
|
+
properties: {
|
|
6623
|
+
cursor: {
|
|
6624
|
+
type: string;
|
|
6625
|
+
};
|
|
6626
|
+
feeds: {
|
|
6627
|
+
type: string;
|
|
6628
|
+
items: {
|
|
6629
|
+
type: string;
|
|
6630
|
+
ref: string;
|
|
6631
|
+
};
|
|
6632
|
+
};
|
|
6633
|
+
};
|
|
6634
|
+
};
|
|
6635
|
+
};
|
|
6636
|
+
};
|
|
6637
|
+
};
|
|
6638
|
+
};
|
|
6639
|
+
AppBskyUnspeccedGetTimelineSkeleton: {
|
|
6640
|
+
lexicon: number;
|
|
6641
|
+
id: string;
|
|
6642
|
+
defs: {
|
|
6643
|
+
main: {
|
|
6644
|
+
type: string;
|
|
6645
|
+
description: string;
|
|
6646
|
+
parameters: {
|
|
6647
|
+
type: string;
|
|
6648
|
+
properties: {
|
|
6490
6649
|
limit: {
|
|
6491
6650
|
type: string;
|
|
6492
6651
|
minimum: number;
|
|
@@ -6517,10 +6676,13 @@ export declare const schemaDict: {
|
|
|
6517
6676
|
};
|
|
6518
6677
|
};
|
|
6519
6678
|
};
|
|
6679
|
+
errors: {
|
|
6680
|
+
name: string;
|
|
6681
|
+
}[];
|
|
6520
6682
|
};
|
|
6521
6683
|
};
|
|
6522
6684
|
};
|
|
6523
|
-
|
|
6685
|
+
AppBskyUnspeccedSearchActorsSkeleton: {
|
|
6524
6686
|
lexicon: number;
|
|
6525
6687
|
id: string;
|
|
6526
6688
|
defs: {
|
|
@@ -6529,7 +6691,16 @@ export declare const schemaDict: {
|
|
|
6529
6691
|
description: string;
|
|
6530
6692
|
parameters: {
|
|
6531
6693
|
type: string;
|
|
6694
|
+
required: string[];
|
|
6532
6695
|
properties: {
|
|
6696
|
+
q: {
|
|
6697
|
+
type: string;
|
|
6698
|
+
description: string;
|
|
6699
|
+
};
|
|
6700
|
+
typeahead: {
|
|
6701
|
+
type: string;
|
|
6702
|
+
description: string;
|
|
6703
|
+
};
|
|
6533
6704
|
limit: {
|
|
6534
6705
|
type: string;
|
|
6535
6706
|
minimum: number;
|
|
@@ -6538,9 +6709,7 @@ export declare const schemaDict: {
|
|
|
6538
6709
|
};
|
|
6539
6710
|
cursor: {
|
|
6540
6711
|
type: string;
|
|
6541
|
-
|
|
6542
|
-
query: {
|
|
6543
|
-
type: string;
|
|
6712
|
+
description: string;
|
|
6544
6713
|
};
|
|
6545
6714
|
};
|
|
6546
6715
|
};
|
|
@@ -6553,7 +6722,11 @@ export declare const schemaDict: {
|
|
|
6553
6722
|
cursor: {
|
|
6554
6723
|
type: string;
|
|
6555
6724
|
};
|
|
6556
|
-
|
|
6725
|
+
hitsTotal: {
|
|
6726
|
+
type: string;
|
|
6727
|
+
description: string;
|
|
6728
|
+
};
|
|
6729
|
+
actors: {
|
|
6557
6730
|
type: string;
|
|
6558
6731
|
items: {
|
|
6559
6732
|
type: string;
|
|
@@ -6563,10 +6736,13 @@ export declare const schemaDict: {
|
|
|
6563
6736
|
};
|
|
6564
6737
|
};
|
|
6565
6738
|
};
|
|
6739
|
+
errors: {
|
|
6740
|
+
name: string;
|
|
6741
|
+
}[];
|
|
6566
6742
|
};
|
|
6567
6743
|
};
|
|
6568
6744
|
};
|
|
6569
|
-
|
|
6745
|
+
AppBskyUnspeccedSearchPostsSkeleton: {
|
|
6570
6746
|
lexicon: number;
|
|
6571
6747
|
id: string;
|
|
6572
6748
|
defs: {
|
|
@@ -6575,7 +6751,12 @@ export declare const schemaDict: {
|
|
|
6575
6751
|
description: string;
|
|
6576
6752
|
parameters: {
|
|
6577
6753
|
type: string;
|
|
6754
|
+
required: string[];
|
|
6578
6755
|
properties: {
|
|
6756
|
+
q: {
|
|
6757
|
+
type: string;
|
|
6758
|
+
description: string;
|
|
6759
|
+
};
|
|
6579
6760
|
limit: {
|
|
6580
6761
|
type: string;
|
|
6581
6762
|
minimum: number;
|
|
@@ -6584,6 +6765,7 @@ export declare const schemaDict: {
|
|
|
6584
6765
|
};
|
|
6585
6766
|
cursor: {
|
|
6586
6767
|
type: string;
|
|
6768
|
+
description: string;
|
|
6587
6769
|
};
|
|
6588
6770
|
};
|
|
6589
6771
|
};
|
|
@@ -6596,7 +6778,11 @@ export declare const schemaDict: {
|
|
|
6596
6778
|
cursor: {
|
|
6597
6779
|
type: string;
|
|
6598
6780
|
};
|
|
6599
|
-
|
|
6781
|
+
hitsTotal: {
|
|
6782
|
+
type: string;
|
|
6783
|
+
description: string;
|
|
6784
|
+
};
|
|
6785
|
+
posts: {
|
|
6600
6786
|
type: string;
|
|
6601
6787
|
items: {
|
|
6602
6788
|
type: string;
|
|
@@ -6712,6 +6898,7 @@ export declare const ids: {
|
|
|
6712
6898
|
AppBskyFeedLike: string;
|
|
6713
6899
|
AppBskyFeedPost: string;
|
|
6714
6900
|
AppBskyFeedRepost: string;
|
|
6901
|
+
AppBskyFeedSearchPosts: string;
|
|
6715
6902
|
AppBskyFeedThreadgate: string;
|
|
6716
6903
|
AppBskyGraphBlock: string;
|
|
6717
6904
|
AppBskyGraphDefs: string;
|
|
@@ -6737,8 +6924,10 @@ export declare const ids: {
|
|
|
6737
6924
|
AppBskyNotificationRegisterPush: string;
|
|
6738
6925
|
AppBskyNotificationUpdateSeen: string;
|
|
6739
6926
|
AppBskyRichtextFacet: string;
|
|
6740
|
-
|
|
6927
|
+
AppBskyUnspeccedDefs: string;
|
|
6741
6928
|
AppBskyUnspeccedGetPopular: string;
|
|
6742
6929
|
AppBskyUnspeccedGetPopularFeedGenerators: string;
|
|
6743
6930
|
AppBskyUnspeccedGetTimelineSkeleton: string;
|
|
6931
|
+
AppBskyUnspeccedSearchActorsSkeleton: string;
|
|
6932
|
+
AppBskyUnspeccedSearchPostsSkeleton: string;
|
|
6744
6933
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
q: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
hitsTotal?: number;
|
|
12
|
+
posts: AppBskyFeedDefs.PostView[];
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface CallOptions {
|
|
16
|
+
headers?: Headers;
|
|
17
|
+
}
|
|
18
|
+
export interface Response {
|
|
19
|
+
success: boolean;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
data: OutputSchema;
|
|
22
|
+
}
|
|
23
|
+
export declare class BadQueryStringError extends XRPCError {
|
|
24
|
+
constructor(src: XRPCError);
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
export interface SkeletonSearchPost {
|
|
3
|
+
uri: string;
|
|
4
|
+
[k: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
export declare function isSkeletonSearchPost(v: unknown): v is SkeletonSearchPost;
|
|
7
|
+
export declare function validateSkeletonSearchPost(v: unknown): ValidationResult;
|
|
8
|
+
export interface SkeletonSearchActor {
|
|
9
|
+
did: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export declare function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor;
|
|
13
|
+
export declare function validateSkeletonSearchActor(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyUnspeccedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
q: string;
|
|
5
|
+
typeahead?: boolean;
|
|
6
|
+
limit?: number;
|
|
7
|
+
cursor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type InputSchema = undefined;
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
cursor?: string;
|
|
12
|
+
hitsTotal?: number;
|
|
13
|
+
actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface CallOptions {
|
|
17
|
+
headers?: Headers;
|
|
18
|
+
}
|
|
19
|
+
export interface Response {
|
|
20
|
+
success: boolean;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
data: OutputSchema;
|
|
23
|
+
}
|
|
24
|
+
export declare class BadQueryStringError extends XRPCError {
|
|
25
|
+
constructor(src: XRPCError);
|
|
26
|
+
}
|
|
27
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyUnspeccedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
q: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
hitsTotal?: number;
|
|
12
|
+
posts: AppBskyUnspeccedDefs.SkeletonSearchPost[];
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface CallOptions {
|
|
16
|
+
headers?: Headers;
|
|
17
|
+
}
|
|
18
|
+
export interface Response {
|
|
19
|
+
success: boolean;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
data: OutputSchema;
|
|
22
|
+
}
|
|
23
|
+
export declare class BadQueryStringError extends XRPCError {
|
|
24
|
+
constructor(src: XRPCError);
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|