@atproto/api 0.3.0 → 0.3.2
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/client/index.d.ts +67 -0
- package/dist/client/lexicons.d.ts +385 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +2 -0
- package/dist/client/types/app/bsky/feed/generator.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/defs.d.ts +42 -0
- package/dist/client/types/app/bsky/graph/getList.d.ts +23 -0
- package/dist/client/types/app/bsky/graph/getListMutes.d.ts +21 -0
- package/dist/client/types/app/bsky/graph/getLists.d.ts +22 -0
- package/dist/client/types/app/bsky/graph/list.d.ts +14 -0
- package/dist/client/types/app/bsky/graph/listitem.d.ts +9 -0
- package/dist/client/types/app/bsky/graph/muteActorList.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmuteActorList.d.ts +17 -0
- package/dist/index.js +1547 -268
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +200 -0
- package/src/client/lexicons.ts +386 -0
- package/src/client/types/app/bsky/actor/defs.ts +2 -0
- package/src/client/types/app/bsky/graph/defs.ts +95 -0
- package/src/client/types/app/bsky/graph/getList.ts +40 -0
- package/src/client/types/app/bsky/graph/getListMutes.ts +38 -0
- package/src/client/types/app/bsky/graph/getLists.ts +39 -0
- package/src/client/types/app/bsky/graph/list.ts +32 -0
- package/src/client/types/app/bsky/graph/listitem.ts +27 -0
- package/src/client/types/app/bsky/graph/muteActorList.ts +32 -0
- package/src/client/types/app/bsky/graph/unmuteActorList.ts +32 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -75,9 +75,16 @@ import * as AppBskyGraphFollow from './types/app/bsky/graph/follow';
|
|
|
75
75
|
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks';
|
|
76
76
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers';
|
|
77
77
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows';
|
|
78
|
+
import * as AppBskyGraphGetList from './types/app/bsky/graph/getList';
|
|
79
|
+
import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes';
|
|
80
|
+
import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists';
|
|
78
81
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes';
|
|
82
|
+
import * as AppBskyGraphList from './types/app/bsky/graph/list';
|
|
83
|
+
import * as AppBskyGraphListitem from './types/app/bsky/graph/listitem';
|
|
79
84
|
import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor';
|
|
85
|
+
import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList';
|
|
80
86
|
import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor';
|
|
87
|
+
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList';
|
|
81
88
|
import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount';
|
|
82
89
|
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications';
|
|
83
90
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
|
|
@@ -167,13 +174,21 @@ export * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
|
167
174
|
export * as AppBskyFeedPost from './types/app/bsky/feed/post';
|
|
168
175
|
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
|
|
169
176
|
export * as AppBskyGraphBlock from './types/app/bsky/graph/block';
|
|
177
|
+
export * as AppBskyGraphDefs from './types/app/bsky/graph/defs';
|
|
170
178
|
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow';
|
|
171
179
|
export * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks';
|
|
172
180
|
export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers';
|
|
173
181
|
export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows';
|
|
182
|
+
export * as AppBskyGraphGetList from './types/app/bsky/graph/getList';
|
|
183
|
+
export * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes';
|
|
184
|
+
export * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists';
|
|
174
185
|
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes';
|
|
186
|
+
export * as AppBskyGraphList from './types/app/bsky/graph/list';
|
|
187
|
+
export * as AppBskyGraphListitem from './types/app/bsky/graph/listitem';
|
|
175
188
|
export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor';
|
|
189
|
+
export * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList';
|
|
176
190
|
export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor';
|
|
191
|
+
export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList';
|
|
177
192
|
export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount';
|
|
178
193
|
export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications';
|
|
179
194
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
|
|
@@ -193,6 +208,9 @@ export declare const COM_ATPROTO_MODERATION: {
|
|
|
193
208
|
DefsReasonRude: string;
|
|
194
209
|
DefsReasonOther: string;
|
|
195
210
|
};
|
|
211
|
+
export declare const APP_BSKY_GRAPH: {
|
|
212
|
+
DefsModlist: string;
|
|
213
|
+
};
|
|
196
214
|
export declare class AtpBaseClient {
|
|
197
215
|
xrpc: XrpcClient;
|
|
198
216
|
constructor();
|
|
@@ -437,13 +455,20 @@ export declare class GraphNS {
|
|
|
437
455
|
_service: AtpServiceClient;
|
|
438
456
|
block: BlockRecord;
|
|
439
457
|
follow: FollowRecord;
|
|
458
|
+
list: ListRecord;
|
|
459
|
+
listitem: ListitemRecord;
|
|
440
460
|
constructor(service: AtpServiceClient);
|
|
441
461
|
getBlocks(params?: AppBskyGraphGetBlocks.QueryParams, opts?: AppBskyGraphGetBlocks.CallOptions): Promise<AppBskyGraphGetBlocks.Response>;
|
|
442
462
|
getFollowers(params?: AppBskyGraphGetFollowers.QueryParams, opts?: AppBskyGraphGetFollowers.CallOptions): Promise<AppBskyGraphGetFollowers.Response>;
|
|
443
463
|
getFollows(params?: AppBskyGraphGetFollows.QueryParams, opts?: AppBskyGraphGetFollows.CallOptions): Promise<AppBskyGraphGetFollows.Response>;
|
|
464
|
+
getList(params?: AppBskyGraphGetList.QueryParams, opts?: AppBskyGraphGetList.CallOptions): Promise<AppBskyGraphGetList.Response>;
|
|
465
|
+
getListMutes(params?: AppBskyGraphGetListMutes.QueryParams, opts?: AppBskyGraphGetListMutes.CallOptions): Promise<AppBskyGraphGetListMutes.Response>;
|
|
466
|
+
getLists(params?: AppBskyGraphGetLists.QueryParams, opts?: AppBskyGraphGetLists.CallOptions): Promise<AppBskyGraphGetLists.Response>;
|
|
444
467
|
getMutes(params?: AppBskyGraphGetMutes.QueryParams, opts?: AppBskyGraphGetMutes.CallOptions): Promise<AppBskyGraphGetMutes.Response>;
|
|
445
468
|
muteActor(data?: AppBskyGraphMuteActor.InputSchema, opts?: AppBskyGraphMuteActor.CallOptions): Promise<AppBskyGraphMuteActor.Response>;
|
|
469
|
+
muteActorList(data?: AppBskyGraphMuteActorList.InputSchema, opts?: AppBskyGraphMuteActorList.CallOptions): Promise<AppBskyGraphMuteActorList.Response>;
|
|
446
470
|
unmuteActor(data?: AppBskyGraphUnmuteActor.InputSchema, opts?: AppBskyGraphUnmuteActor.CallOptions): Promise<AppBskyGraphUnmuteActor.Response>;
|
|
471
|
+
unmuteActorList(data?: AppBskyGraphUnmuteActorList.InputSchema, opts?: AppBskyGraphUnmuteActorList.CallOptions): Promise<AppBskyGraphUnmuteActorList.Response>;
|
|
447
472
|
}
|
|
448
473
|
export declare class BlockRecord {
|
|
449
474
|
_service: AtpServiceClient;
|
|
@@ -487,6 +512,48 @@ export declare class FollowRecord {
|
|
|
487
512
|
}>;
|
|
488
513
|
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
489
514
|
}
|
|
515
|
+
export declare class ListRecord {
|
|
516
|
+
_service: AtpServiceClient;
|
|
517
|
+
constructor(service: AtpServiceClient);
|
|
518
|
+
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
|
519
|
+
cursor?: string;
|
|
520
|
+
records: {
|
|
521
|
+
uri: string;
|
|
522
|
+
value: AppBskyGraphList.Record;
|
|
523
|
+
}[];
|
|
524
|
+
}>;
|
|
525
|
+
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
|
526
|
+
uri: string;
|
|
527
|
+
cid: string;
|
|
528
|
+
value: AppBskyGraphList.Record;
|
|
529
|
+
}>;
|
|
530
|
+
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphList.Record, headers?: Record<string, string>): Promise<{
|
|
531
|
+
uri: string;
|
|
532
|
+
cid: string;
|
|
533
|
+
}>;
|
|
534
|
+
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
535
|
+
}
|
|
536
|
+
export declare class ListitemRecord {
|
|
537
|
+
_service: AtpServiceClient;
|
|
538
|
+
constructor(service: AtpServiceClient);
|
|
539
|
+
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
|
540
|
+
cursor?: string;
|
|
541
|
+
records: {
|
|
542
|
+
uri: string;
|
|
543
|
+
value: AppBskyGraphListitem.Record;
|
|
544
|
+
}[];
|
|
545
|
+
}>;
|
|
546
|
+
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
|
547
|
+
uri: string;
|
|
548
|
+
cid: string;
|
|
549
|
+
value: AppBskyGraphListitem.Record;
|
|
550
|
+
}>;
|
|
551
|
+
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphListitem.Record, headers?: Record<string, string>): Promise<{
|
|
552
|
+
uri: string;
|
|
553
|
+
cid: string;
|
|
554
|
+
}>;
|
|
555
|
+
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
556
|
+
}
|
|
490
557
|
export declare class NotificationNS {
|
|
491
558
|
_service: AtpServiceClient;
|
|
492
559
|
constructor(service: AtpServiceClient);
|
|
@@ -3257,6 +3257,10 @@ export declare const schemaDict: {
|
|
|
3257
3257
|
muted: {
|
|
3258
3258
|
type: string;
|
|
3259
3259
|
};
|
|
3260
|
+
mutedByList: {
|
|
3261
|
+
type: string;
|
|
3262
|
+
ref: string;
|
|
3263
|
+
};
|
|
3260
3264
|
blockedBy: {
|
|
3261
3265
|
type: string;
|
|
3262
3266
|
};
|
|
@@ -4399,6 +4403,114 @@ export declare const schemaDict: {
|
|
|
4399
4403
|
};
|
|
4400
4404
|
};
|
|
4401
4405
|
};
|
|
4406
|
+
AppBskyGraphDefs: {
|
|
4407
|
+
lexicon: number;
|
|
4408
|
+
id: string;
|
|
4409
|
+
defs: {
|
|
4410
|
+
listViewBasic: {
|
|
4411
|
+
type: string;
|
|
4412
|
+
required: string[];
|
|
4413
|
+
properties: {
|
|
4414
|
+
uri: {
|
|
4415
|
+
type: string;
|
|
4416
|
+
format: string;
|
|
4417
|
+
};
|
|
4418
|
+
name: {
|
|
4419
|
+
type: string;
|
|
4420
|
+
maxLength: number;
|
|
4421
|
+
minLength: number;
|
|
4422
|
+
};
|
|
4423
|
+
purpose: {
|
|
4424
|
+
type: string;
|
|
4425
|
+
ref: string;
|
|
4426
|
+
};
|
|
4427
|
+
avatar: {
|
|
4428
|
+
type: string;
|
|
4429
|
+
};
|
|
4430
|
+
viewer: {
|
|
4431
|
+
type: string;
|
|
4432
|
+
ref: string;
|
|
4433
|
+
};
|
|
4434
|
+
indexedAt: {
|
|
4435
|
+
type: string;
|
|
4436
|
+
format: string;
|
|
4437
|
+
};
|
|
4438
|
+
};
|
|
4439
|
+
};
|
|
4440
|
+
listView: {
|
|
4441
|
+
type: string;
|
|
4442
|
+
required: string[];
|
|
4443
|
+
properties: {
|
|
4444
|
+
uri: {
|
|
4445
|
+
type: string;
|
|
4446
|
+
format: string;
|
|
4447
|
+
};
|
|
4448
|
+
creator: {
|
|
4449
|
+
type: string;
|
|
4450
|
+
ref: string;
|
|
4451
|
+
};
|
|
4452
|
+
name: {
|
|
4453
|
+
type: string;
|
|
4454
|
+
maxLength: number;
|
|
4455
|
+
minLength: number;
|
|
4456
|
+
};
|
|
4457
|
+
purpose: {
|
|
4458
|
+
type: string;
|
|
4459
|
+
ref: string;
|
|
4460
|
+
};
|
|
4461
|
+
description: {
|
|
4462
|
+
type: string;
|
|
4463
|
+
maxGraphemes: number;
|
|
4464
|
+
maxLength: number;
|
|
4465
|
+
};
|
|
4466
|
+
descriptionFacets: {
|
|
4467
|
+
type: string;
|
|
4468
|
+
items: {
|
|
4469
|
+
type: string;
|
|
4470
|
+
ref: string;
|
|
4471
|
+
};
|
|
4472
|
+
};
|
|
4473
|
+
avatar: {
|
|
4474
|
+
type: string;
|
|
4475
|
+
};
|
|
4476
|
+
viewer: {
|
|
4477
|
+
type: string;
|
|
4478
|
+
ref: string;
|
|
4479
|
+
};
|
|
4480
|
+
indexedAt: {
|
|
4481
|
+
type: string;
|
|
4482
|
+
format: string;
|
|
4483
|
+
};
|
|
4484
|
+
};
|
|
4485
|
+
};
|
|
4486
|
+
listItemView: {
|
|
4487
|
+
type: string;
|
|
4488
|
+
required: string[];
|
|
4489
|
+
properties: {
|
|
4490
|
+
subject: {
|
|
4491
|
+
type: string;
|
|
4492
|
+
ref: string;
|
|
4493
|
+
};
|
|
4494
|
+
};
|
|
4495
|
+
};
|
|
4496
|
+
listPurpose: {
|
|
4497
|
+
type: string;
|
|
4498
|
+
knownValues: string[];
|
|
4499
|
+
};
|
|
4500
|
+
modlist: {
|
|
4501
|
+
type: string;
|
|
4502
|
+
description: string;
|
|
4503
|
+
};
|
|
4504
|
+
listViewerState: {
|
|
4505
|
+
type: string;
|
|
4506
|
+
properties: {
|
|
4507
|
+
muted: {
|
|
4508
|
+
type: string;
|
|
4509
|
+
};
|
|
4510
|
+
};
|
|
4511
|
+
};
|
|
4512
|
+
};
|
|
4513
|
+
};
|
|
4402
4514
|
AppBskyGraphFollow: {
|
|
4403
4515
|
lexicon: number;
|
|
4404
4516
|
id: string;
|
|
@@ -4571,6 +4683,149 @@ export declare const schemaDict: {
|
|
|
4571
4683
|
};
|
|
4572
4684
|
};
|
|
4573
4685
|
};
|
|
4686
|
+
AppBskyGraphGetList: {
|
|
4687
|
+
lexicon: number;
|
|
4688
|
+
id: string;
|
|
4689
|
+
defs: {
|
|
4690
|
+
main: {
|
|
4691
|
+
type: string;
|
|
4692
|
+
description: string;
|
|
4693
|
+
parameters: {
|
|
4694
|
+
type: string;
|
|
4695
|
+
required: string[];
|
|
4696
|
+
properties: {
|
|
4697
|
+
list: {
|
|
4698
|
+
type: string;
|
|
4699
|
+
format: string;
|
|
4700
|
+
};
|
|
4701
|
+
limit: {
|
|
4702
|
+
type: string;
|
|
4703
|
+
minimum: number;
|
|
4704
|
+
maximum: number;
|
|
4705
|
+
default: number;
|
|
4706
|
+
};
|
|
4707
|
+
cursor: {
|
|
4708
|
+
type: string;
|
|
4709
|
+
};
|
|
4710
|
+
};
|
|
4711
|
+
};
|
|
4712
|
+
output: {
|
|
4713
|
+
encoding: string;
|
|
4714
|
+
schema: {
|
|
4715
|
+
type: string;
|
|
4716
|
+
required: string[];
|
|
4717
|
+
properties: {
|
|
4718
|
+
cursor: {
|
|
4719
|
+
type: string;
|
|
4720
|
+
};
|
|
4721
|
+
list: {
|
|
4722
|
+
type: string;
|
|
4723
|
+
ref: string;
|
|
4724
|
+
};
|
|
4725
|
+
items: {
|
|
4726
|
+
type: string;
|
|
4727
|
+
items: {
|
|
4728
|
+
type: string;
|
|
4729
|
+
ref: string;
|
|
4730
|
+
};
|
|
4731
|
+
};
|
|
4732
|
+
};
|
|
4733
|
+
};
|
|
4734
|
+
};
|
|
4735
|
+
};
|
|
4736
|
+
};
|
|
4737
|
+
};
|
|
4738
|
+
AppBskyGraphGetListMutes: {
|
|
4739
|
+
lexicon: number;
|
|
4740
|
+
id: string;
|
|
4741
|
+
defs: {
|
|
4742
|
+
main: {
|
|
4743
|
+
type: string;
|
|
4744
|
+
description: string;
|
|
4745
|
+
parameters: {
|
|
4746
|
+
type: string;
|
|
4747
|
+
properties: {
|
|
4748
|
+
limit: {
|
|
4749
|
+
type: string;
|
|
4750
|
+
minimum: number;
|
|
4751
|
+
maximum: number;
|
|
4752
|
+
default: number;
|
|
4753
|
+
};
|
|
4754
|
+
cursor: {
|
|
4755
|
+
type: string;
|
|
4756
|
+
};
|
|
4757
|
+
};
|
|
4758
|
+
};
|
|
4759
|
+
output: {
|
|
4760
|
+
encoding: string;
|
|
4761
|
+
schema: {
|
|
4762
|
+
type: string;
|
|
4763
|
+
required: string[];
|
|
4764
|
+
properties: {
|
|
4765
|
+
cursor: {
|
|
4766
|
+
type: string;
|
|
4767
|
+
};
|
|
4768
|
+
lists: {
|
|
4769
|
+
type: string;
|
|
4770
|
+
items: {
|
|
4771
|
+
type: string;
|
|
4772
|
+
ref: string;
|
|
4773
|
+
};
|
|
4774
|
+
};
|
|
4775
|
+
};
|
|
4776
|
+
};
|
|
4777
|
+
};
|
|
4778
|
+
};
|
|
4779
|
+
};
|
|
4780
|
+
};
|
|
4781
|
+
AppBskyGraphGetLists: {
|
|
4782
|
+
lexicon: number;
|
|
4783
|
+
id: string;
|
|
4784
|
+
defs: {
|
|
4785
|
+
main: {
|
|
4786
|
+
type: string;
|
|
4787
|
+
description: string;
|
|
4788
|
+
parameters: {
|
|
4789
|
+
type: string;
|
|
4790
|
+
required: string[];
|
|
4791
|
+
properties: {
|
|
4792
|
+
actor: {
|
|
4793
|
+
type: string;
|
|
4794
|
+
format: string;
|
|
4795
|
+
};
|
|
4796
|
+
limit: {
|
|
4797
|
+
type: string;
|
|
4798
|
+
minimum: number;
|
|
4799
|
+
maximum: number;
|
|
4800
|
+
default: number;
|
|
4801
|
+
};
|
|
4802
|
+
cursor: {
|
|
4803
|
+
type: string;
|
|
4804
|
+
};
|
|
4805
|
+
};
|
|
4806
|
+
};
|
|
4807
|
+
output: {
|
|
4808
|
+
encoding: string;
|
|
4809
|
+
schema: {
|
|
4810
|
+
type: string;
|
|
4811
|
+
required: string[];
|
|
4812
|
+
properties: {
|
|
4813
|
+
cursor: {
|
|
4814
|
+
type: string;
|
|
4815
|
+
};
|
|
4816
|
+
lists: {
|
|
4817
|
+
type: string;
|
|
4818
|
+
items: {
|
|
4819
|
+
type: string;
|
|
4820
|
+
ref: string;
|
|
4821
|
+
};
|
|
4822
|
+
};
|
|
4823
|
+
};
|
|
4824
|
+
};
|
|
4825
|
+
};
|
|
4826
|
+
};
|
|
4827
|
+
};
|
|
4828
|
+
};
|
|
4574
4829
|
AppBskyGraphGetMutes: {
|
|
4575
4830
|
lexicon: number;
|
|
4576
4831
|
id: string;
|
|
@@ -4614,6 +4869,82 @@ export declare const schemaDict: {
|
|
|
4614
4869
|
};
|
|
4615
4870
|
};
|
|
4616
4871
|
};
|
|
4872
|
+
AppBskyGraphList: {
|
|
4873
|
+
lexicon: number;
|
|
4874
|
+
id: string;
|
|
4875
|
+
defs: {
|
|
4876
|
+
main: {
|
|
4877
|
+
type: string;
|
|
4878
|
+
description: string;
|
|
4879
|
+
key: string;
|
|
4880
|
+
record: {
|
|
4881
|
+
type: string;
|
|
4882
|
+
required: string[];
|
|
4883
|
+
properties: {
|
|
4884
|
+
purpose: {
|
|
4885
|
+
type: string;
|
|
4886
|
+
ref: string;
|
|
4887
|
+
};
|
|
4888
|
+
name: {
|
|
4889
|
+
type: string;
|
|
4890
|
+
maxLength: number;
|
|
4891
|
+
minLength: number;
|
|
4892
|
+
};
|
|
4893
|
+
description: {
|
|
4894
|
+
type: string;
|
|
4895
|
+
maxGraphemes: number;
|
|
4896
|
+
maxLength: number;
|
|
4897
|
+
};
|
|
4898
|
+
descriptionFacets: {
|
|
4899
|
+
type: string;
|
|
4900
|
+
items: {
|
|
4901
|
+
type: string;
|
|
4902
|
+
ref: string;
|
|
4903
|
+
};
|
|
4904
|
+
};
|
|
4905
|
+
avatar: {
|
|
4906
|
+
type: string;
|
|
4907
|
+
accept: string[];
|
|
4908
|
+
maxSize: number;
|
|
4909
|
+
};
|
|
4910
|
+
createdAt: {
|
|
4911
|
+
type: string;
|
|
4912
|
+
format: string;
|
|
4913
|
+
};
|
|
4914
|
+
};
|
|
4915
|
+
};
|
|
4916
|
+
};
|
|
4917
|
+
};
|
|
4918
|
+
};
|
|
4919
|
+
AppBskyGraphListitem: {
|
|
4920
|
+
lexicon: number;
|
|
4921
|
+
id: string;
|
|
4922
|
+
defs: {
|
|
4923
|
+
main: {
|
|
4924
|
+
type: string;
|
|
4925
|
+
description: string;
|
|
4926
|
+
key: string;
|
|
4927
|
+
record: {
|
|
4928
|
+
type: string;
|
|
4929
|
+
required: string[];
|
|
4930
|
+
properties: {
|
|
4931
|
+
subject: {
|
|
4932
|
+
type: string;
|
|
4933
|
+
format: string;
|
|
4934
|
+
};
|
|
4935
|
+
list: {
|
|
4936
|
+
type: string;
|
|
4937
|
+
format: string;
|
|
4938
|
+
};
|
|
4939
|
+
createdAt: {
|
|
4940
|
+
type: string;
|
|
4941
|
+
format: string;
|
|
4942
|
+
};
|
|
4943
|
+
};
|
|
4944
|
+
};
|
|
4945
|
+
};
|
|
4946
|
+
};
|
|
4947
|
+
};
|
|
4617
4948
|
AppBskyGraphMuteActor: {
|
|
4618
4949
|
lexicon: number;
|
|
4619
4950
|
id: string;
|
|
@@ -4637,6 +4968,29 @@ export declare const schemaDict: {
|
|
|
4637
4968
|
};
|
|
4638
4969
|
};
|
|
4639
4970
|
};
|
|
4971
|
+
AppBskyGraphMuteActorList: {
|
|
4972
|
+
lexicon: number;
|
|
4973
|
+
id: string;
|
|
4974
|
+
defs: {
|
|
4975
|
+
main: {
|
|
4976
|
+
type: string;
|
|
4977
|
+
description: string;
|
|
4978
|
+
input: {
|
|
4979
|
+
encoding: string;
|
|
4980
|
+
schema: {
|
|
4981
|
+
type: string;
|
|
4982
|
+
required: string[];
|
|
4983
|
+
properties: {
|
|
4984
|
+
list: {
|
|
4985
|
+
type: string;
|
|
4986
|
+
format: string;
|
|
4987
|
+
};
|
|
4988
|
+
};
|
|
4989
|
+
};
|
|
4990
|
+
};
|
|
4991
|
+
};
|
|
4992
|
+
};
|
|
4993
|
+
};
|
|
4640
4994
|
AppBskyGraphUnmuteActor: {
|
|
4641
4995
|
lexicon: number;
|
|
4642
4996
|
id: string;
|
|
@@ -4660,6 +5014,29 @@ export declare const schemaDict: {
|
|
|
4660
5014
|
};
|
|
4661
5015
|
};
|
|
4662
5016
|
};
|
|
5017
|
+
AppBskyGraphUnmuteActorList: {
|
|
5018
|
+
lexicon: number;
|
|
5019
|
+
id: string;
|
|
5020
|
+
defs: {
|
|
5021
|
+
main: {
|
|
5022
|
+
type: string;
|
|
5023
|
+
description: string;
|
|
5024
|
+
input: {
|
|
5025
|
+
encoding: string;
|
|
5026
|
+
schema: {
|
|
5027
|
+
type: string;
|
|
5028
|
+
required: string[];
|
|
5029
|
+
properties: {
|
|
5030
|
+
list: {
|
|
5031
|
+
type: string;
|
|
5032
|
+
format: string;
|
|
5033
|
+
};
|
|
5034
|
+
};
|
|
5035
|
+
};
|
|
5036
|
+
};
|
|
5037
|
+
};
|
|
5038
|
+
};
|
|
5039
|
+
};
|
|
4663
5040
|
AppBskyNotificationGetUnreadCount: {
|
|
4664
5041
|
lexicon: number;
|
|
4665
5042
|
id: string;
|
|
@@ -4999,13 +5376,21 @@ export declare const ids: {
|
|
|
4999
5376
|
AppBskyFeedPost: string;
|
|
5000
5377
|
AppBskyFeedRepost: string;
|
|
5001
5378
|
AppBskyGraphBlock: string;
|
|
5379
|
+
AppBskyGraphDefs: string;
|
|
5002
5380
|
AppBskyGraphFollow: string;
|
|
5003
5381
|
AppBskyGraphGetBlocks: string;
|
|
5004
5382
|
AppBskyGraphGetFollowers: string;
|
|
5005
5383
|
AppBskyGraphGetFollows: string;
|
|
5384
|
+
AppBskyGraphGetList: string;
|
|
5385
|
+
AppBskyGraphGetListMutes: string;
|
|
5386
|
+
AppBskyGraphGetLists: string;
|
|
5006
5387
|
AppBskyGraphGetMutes: string;
|
|
5388
|
+
AppBskyGraphList: string;
|
|
5389
|
+
AppBskyGraphListitem: string;
|
|
5007
5390
|
AppBskyGraphMuteActor: string;
|
|
5391
|
+
AppBskyGraphMuteActorList: string;
|
|
5008
5392
|
AppBskyGraphUnmuteActor: string;
|
|
5393
|
+
AppBskyGraphUnmuteActorList: string;
|
|
5009
5394
|
AppBskyNotificationGetUnreadCount: string;
|
|
5010
5395
|
AppBskyNotificationListNotifications: string;
|
|
5011
5396
|
AppBskyNotificationUpdateSeen: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
|
|
3
|
+
import * as AppBskyGraphDefs from '../graph/defs';
|
|
3
4
|
export interface ProfileViewBasic {
|
|
4
5
|
did: string;
|
|
5
6
|
handle: string;
|
|
@@ -43,6 +44,7 @@ export declare function isProfileViewDetailed(v: unknown): v is ProfileViewDetai
|
|
|
43
44
|
export declare function validateProfileViewDetailed(v: unknown): ValidationResult;
|
|
44
45
|
export interface ViewerState {
|
|
45
46
|
muted?: boolean;
|
|
47
|
+
mutedByList?: AppBskyGraphDefs.ListViewBasic;
|
|
46
48
|
blockedBy?: boolean;
|
|
47
49
|
blocking?: string;
|
|
48
50
|
following?: string;
|
|
@@ -2,6 +2,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
|
2
2
|
import * as AppBskyRichtextFacet from '../richtext/facet';
|
|
3
3
|
export interface Record {
|
|
4
4
|
did: string;
|
|
5
|
+
displayName?: string;
|
|
5
6
|
description?: string;
|
|
6
7
|
descriptionFacets?: AppBskyRichtextFacet.Main[];
|
|
7
8
|
avatar?: BlobRef;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyActorDefs from '../actor/defs';
|
|
3
|
+
import * as AppBskyRichtextFacet from '../richtext/facet';
|
|
4
|
+
export interface ListViewBasic {
|
|
5
|
+
uri: string;
|
|
6
|
+
name: string;
|
|
7
|
+
purpose: ListPurpose;
|
|
8
|
+
avatar?: string;
|
|
9
|
+
viewer?: ListViewerState;
|
|
10
|
+
indexedAt?: string;
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare function isListViewBasic(v: unknown): v is ListViewBasic;
|
|
14
|
+
export declare function validateListViewBasic(v: unknown): ValidationResult;
|
|
15
|
+
export interface ListView {
|
|
16
|
+
uri: string;
|
|
17
|
+
creator: AppBskyActorDefs.ProfileView;
|
|
18
|
+
name: string;
|
|
19
|
+
purpose: ListPurpose;
|
|
20
|
+
description?: string;
|
|
21
|
+
descriptionFacets?: AppBskyRichtextFacet.Main[];
|
|
22
|
+
avatar?: string;
|
|
23
|
+
viewer?: ListViewerState;
|
|
24
|
+
indexedAt: string;
|
|
25
|
+
[k: string]: unknown;
|
|
26
|
+
}
|
|
27
|
+
export declare function isListView(v: unknown): v is ListView;
|
|
28
|
+
export declare function validateListView(v: unknown): ValidationResult;
|
|
29
|
+
export interface ListItemView {
|
|
30
|
+
subject: AppBskyActorDefs.ProfileView;
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
export declare function isListItemView(v: unknown): v is ListItemView;
|
|
34
|
+
export declare function validateListItemView(v: unknown): ValidationResult;
|
|
35
|
+
export declare type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {});
|
|
36
|
+
export declare const MODLIST = "app.bsky.graph.defs#modlist";
|
|
37
|
+
export interface ListViewerState {
|
|
38
|
+
muted?: boolean;
|
|
39
|
+
[k: string]: unknown;
|
|
40
|
+
}
|
|
41
|
+
export declare function isListViewerState(v: unknown): v is ListViewerState;
|
|
42
|
+
export declare function validateListViewerState(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyGraphDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
list: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
list: AppBskyGraphDefs.ListView;
|
|
12
|
+
items: AppBskyGraphDefs.ListItemView[];
|
|
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 function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyGraphDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
limit?: number;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
lists: AppBskyGraphDefs.ListView[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
headers?: Headers;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyGraphDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
actor: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
lists: AppBskyGraphDefs.ListView[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
headers?: Headers;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|