@atproto/api 0.12.19 → 0.12.21-next.0
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 +6 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +1 -2
- package/dist/agent.js.map +1 -1
- package/dist/client/index.d.ts +31 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +64 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +291 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +292 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +5 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.d.ts +36 -1
- package/dist/client/types/app/bsky/graph/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.js +23 -1
- package/dist/client/types/app/bsky/graph/defs.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts +26 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.js +14 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.js.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.d.ts +24 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.js +14 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.js.map +1 -0
- package/dist/client/types/app/bsky/graph/starterpack.d.ts +25 -0
- package/dist/client/types/app/bsky/graph/starterpack.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/starterpack.js +27 -0
- package/dist/client/types/app/bsky/graph/starterpack.js.map +1 -0
- package/package.json +1 -1
- package/src/agent.ts +1 -2
- package/src/client/index.ts +96 -0
- package/src/client/lexicons.ts +294 -0
- package/src/client/types/app/bsky/actor/defs.ts +5 -0
- package/src/client/types/app/bsky/actor/profile.ts +3 -0
- package/src/client/types/app/bsky/graph/defs.ts +58 -0
- package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +39 -0
- package/src/client/types/app/bsky/graph/getStarterPack.ts +37 -0
- package/src/client/types/app/bsky/graph/starterpack.ts +50 -0
- package/tests/agent.test.ts +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -3805,6 +3805,10 @@ exports.schemaDict = {
|
|
|
3805
3805
|
ref: 'lex:com.atproto.label.defs#label',
|
|
3806
3806
|
},
|
|
3807
3807
|
},
|
|
3808
|
+
createdAt: {
|
|
3809
|
+
type: 'string',
|
|
3810
|
+
format: 'datetime',
|
|
3811
|
+
},
|
|
3808
3812
|
},
|
|
3809
3813
|
},
|
|
3810
3814
|
profileView: {
|
|
@@ -3841,6 +3845,10 @@ exports.schemaDict = {
|
|
|
3841
3845
|
type: 'string',
|
|
3842
3846
|
format: 'datetime',
|
|
3843
3847
|
},
|
|
3848
|
+
createdAt: {
|
|
3849
|
+
type: 'string',
|
|
3850
|
+
format: 'datetime',
|
|
3851
|
+
},
|
|
3844
3852
|
viewer: {
|
|
3845
3853
|
type: 'ref',
|
|
3846
3854
|
ref: 'lex:app.bsky.actor.defs#viewerState',
|
|
@@ -3897,10 +3905,18 @@ exports.schemaDict = {
|
|
|
3897
3905
|
type: 'ref',
|
|
3898
3906
|
ref: 'lex:app.bsky.actor.defs#profileAssociated',
|
|
3899
3907
|
},
|
|
3908
|
+
joinedViaStarterPack: {
|
|
3909
|
+
type: 'ref',
|
|
3910
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
3911
|
+
},
|
|
3900
3912
|
indexedAt: {
|
|
3901
3913
|
type: 'string',
|
|
3902
3914
|
format: 'datetime',
|
|
3903
3915
|
},
|
|
3916
|
+
createdAt: {
|
|
3917
|
+
type: 'string',
|
|
3918
|
+
format: 'datetime',
|
|
3919
|
+
},
|
|
3904
3920
|
viewer: {
|
|
3905
3921
|
type: 'ref',
|
|
3906
3922
|
ref: 'lex:app.bsky.actor.defs#viewerState',
|
|
@@ -3923,6 +3939,9 @@ exports.schemaDict = {
|
|
|
3923
3939
|
feedgens: {
|
|
3924
3940
|
type: 'integer',
|
|
3925
3941
|
},
|
|
3942
|
+
starterPacks: {
|
|
3943
|
+
type: 'integer',
|
|
3944
|
+
},
|
|
3926
3945
|
labeler: {
|
|
3927
3946
|
type: 'boolean',
|
|
3928
3947
|
},
|
|
@@ -4426,6 +4445,14 @@ exports.schemaDict = {
|
|
|
4426
4445
|
description: 'Self-label values, specific to the Bluesky application, on the overall account.',
|
|
4427
4446
|
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
4428
4447
|
},
|
|
4448
|
+
joinedViaStarterPack: {
|
|
4449
|
+
type: 'ref',
|
|
4450
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
4451
|
+
},
|
|
4452
|
+
createdAt: {
|
|
4453
|
+
type: 'string',
|
|
4454
|
+
format: 'datetime',
|
|
4455
|
+
},
|
|
4429
4456
|
},
|
|
4430
4457
|
},
|
|
4431
4458
|
},
|
|
@@ -6579,6 +6606,10 @@ exports.schemaDict = {
|
|
|
6579
6606
|
type: 'string',
|
|
6580
6607
|
format: 'uri',
|
|
6581
6608
|
},
|
|
6609
|
+
listItemCount: {
|
|
6610
|
+
type: 'integer',
|
|
6611
|
+
minimum: 0,
|
|
6612
|
+
},
|
|
6582
6613
|
labels: {
|
|
6583
6614
|
type: 'array',
|
|
6584
6615
|
items: {
|
|
@@ -6637,6 +6668,10 @@ exports.schemaDict = {
|
|
|
6637
6668
|
type: 'string',
|
|
6638
6669
|
format: 'uri',
|
|
6639
6670
|
},
|
|
6671
|
+
listItemCount: {
|
|
6672
|
+
type: 'integer',
|
|
6673
|
+
minimum: 0,
|
|
6674
|
+
},
|
|
6640
6675
|
labels: {
|
|
6641
6676
|
type: 'array',
|
|
6642
6677
|
items: {
|
|
@@ -6668,11 +6703,116 @@ exports.schemaDict = {
|
|
|
6668
6703
|
},
|
|
6669
6704
|
},
|
|
6670
6705
|
},
|
|
6706
|
+
starterPackView: {
|
|
6707
|
+
type: 'object',
|
|
6708
|
+
required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
|
|
6709
|
+
properties: {
|
|
6710
|
+
uri: {
|
|
6711
|
+
type: 'string',
|
|
6712
|
+
format: 'at-uri',
|
|
6713
|
+
},
|
|
6714
|
+
cid: {
|
|
6715
|
+
type: 'string',
|
|
6716
|
+
format: 'cid',
|
|
6717
|
+
},
|
|
6718
|
+
record: {
|
|
6719
|
+
type: 'unknown',
|
|
6720
|
+
},
|
|
6721
|
+
creator: {
|
|
6722
|
+
type: 'ref',
|
|
6723
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
6724
|
+
},
|
|
6725
|
+
list: {
|
|
6726
|
+
type: 'ref',
|
|
6727
|
+
ref: 'lex:app.bsky.graph.defs#listViewBasic',
|
|
6728
|
+
},
|
|
6729
|
+
listItemsSample: {
|
|
6730
|
+
type: 'array',
|
|
6731
|
+
maxLength: 12,
|
|
6732
|
+
items: {
|
|
6733
|
+
type: 'ref',
|
|
6734
|
+
ref: 'lex:app.bsky.graph.defs#listItemView',
|
|
6735
|
+
},
|
|
6736
|
+
},
|
|
6737
|
+
feeds: {
|
|
6738
|
+
type: 'array',
|
|
6739
|
+
maxLength: 3,
|
|
6740
|
+
items: {
|
|
6741
|
+
type: 'ref',
|
|
6742
|
+
ref: 'lex:app.bsky.feed.defs#generatorView',
|
|
6743
|
+
},
|
|
6744
|
+
},
|
|
6745
|
+
joinedWeekCount: {
|
|
6746
|
+
type: 'integer',
|
|
6747
|
+
minimum: 0,
|
|
6748
|
+
},
|
|
6749
|
+
joinedAllTimeCount: {
|
|
6750
|
+
type: 'integer',
|
|
6751
|
+
minimum: 0,
|
|
6752
|
+
},
|
|
6753
|
+
labels: {
|
|
6754
|
+
type: 'array',
|
|
6755
|
+
items: {
|
|
6756
|
+
type: 'ref',
|
|
6757
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
6758
|
+
},
|
|
6759
|
+
},
|
|
6760
|
+
indexedAt: {
|
|
6761
|
+
type: 'string',
|
|
6762
|
+
format: 'datetime',
|
|
6763
|
+
},
|
|
6764
|
+
},
|
|
6765
|
+
},
|
|
6766
|
+
starterPackViewBasic: {
|
|
6767
|
+
type: 'object',
|
|
6768
|
+
required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
|
|
6769
|
+
properties: {
|
|
6770
|
+
uri: {
|
|
6771
|
+
type: 'string',
|
|
6772
|
+
format: 'at-uri',
|
|
6773
|
+
},
|
|
6774
|
+
cid: {
|
|
6775
|
+
type: 'string',
|
|
6776
|
+
format: 'cid',
|
|
6777
|
+
},
|
|
6778
|
+
record: {
|
|
6779
|
+
type: 'unknown',
|
|
6780
|
+
},
|
|
6781
|
+
creator: {
|
|
6782
|
+
type: 'ref',
|
|
6783
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
6784
|
+
},
|
|
6785
|
+
listItemCount: {
|
|
6786
|
+
type: 'integer',
|
|
6787
|
+
minimum: 0,
|
|
6788
|
+
},
|
|
6789
|
+
joinedWeekCount: {
|
|
6790
|
+
type: 'integer',
|
|
6791
|
+
minimum: 0,
|
|
6792
|
+
},
|
|
6793
|
+
joinedAllTimeCount: {
|
|
6794
|
+
type: 'integer',
|
|
6795
|
+
minimum: 0,
|
|
6796
|
+
},
|
|
6797
|
+
labels: {
|
|
6798
|
+
type: 'array',
|
|
6799
|
+
items: {
|
|
6800
|
+
type: 'ref',
|
|
6801
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
6802
|
+
},
|
|
6803
|
+
},
|
|
6804
|
+
indexedAt: {
|
|
6805
|
+
type: 'string',
|
|
6806
|
+
format: 'datetime',
|
|
6807
|
+
},
|
|
6808
|
+
},
|
|
6809
|
+
},
|
|
6671
6810
|
listPurpose: {
|
|
6672
6811
|
type: 'string',
|
|
6673
6812
|
knownValues: [
|
|
6674
6813
|
'app.bsky.graph.defs#modlist',
|
|
6675
6814
|
'app.bsky.graph.defs#curatelist',
|
|
6815
|
+
'app.bsky.graph.defs#referencelist',
|
|
6676
6816
|
],
|
|
6677
6817
|
},
|
|
6678
6818
|
modlist: {
|
|
@@ -6683,6 +6823,10 @@ exports.schemaDict = {
|
|
|
6683
6823
|
type: 'token',
|
|
6684
6824
|
description: 'A list of actors used for curation purposes such as list feeds or interaction gating.',
|
|
6685
6825
|
},
|
|
6826
|
+
referencelist: {
|
|
6827
|
+
type: 'token',
|
|
6828
|
+
description: 'A list of actors used for only for reference purposes such as within a starter pack.',
|
|
6829
|
+
},
|
|
6686
6830
|
listViewerState: {
|
|
6687
6831
|
type: 'object',
|
|
6688
6832
|
properties: {
|
|
@@ -6758,6 +6902,54 @@ exports.schemaDict = {
|
|
|
6758
6902
|
},
|
|
6759
6903
|
},
|
|
6760
6904
|
},
|
|
6905
|
+
AppBskyGraphGetActorStarterPacks: {
|
|
6906
|
+
lexicon: 1,
|
|
6907
|
+
id: 'app.bsky.graph.getActorStarterPacks',
|
|
6908
|
+
defs: {
|
|
6909
|
+
main: {
|
|
6910
|
+
type: 'query',
|
|
6911
|
+
description: 'Get a list of starter packs created by the actor.',
|
|
6912
|
+
parameters: {
|
|
6913
|
+
type: 'params',
|
|
6914
|
+
required: ['actor'],
|
|
6915
|
+
properties: {
|
|
6916
|
+
actor: {
|
|
6917
|
+
type: 'string',
|
|
6918
|
+
format: 'at-identifier',
|
|
6919
|
+
},
|
|
6920
|
+
limit: {
|
|
6921
|
+
type: 'integer',
|
|
6922
|
+
minimum: 1,
|
|
6923
|
+
maximum: 100,
|
|
6924
|
+
default: 50,
|
|
6925
|
+
},
|
|
6926
|
+
cursor: {
|
|
6927
|
+
type: 'string',
|
|
6928
|
+
},
|
|
6929
|
+
},
|
|
6930
|
+
},
|
|
6931
|
+
output: {
|
|
6932
|
+
encoding: 'application/json',
|
|
6933
|
+
schema: {
|
|
6934
|
+
type: 'object',
|
|
6935
|
+
required: ['starterPacks'],
|
|
6936
|
+
properties: {
|
|
6937
|
+
cursor: {
|
|
6938
|
+
type: 'string',
|
|
6939
|
+
},
|
|
6940
|
+
starterPacks: {
|
|
6941
|
+
type: 'array',
|
|
6942
|
+
items: {
|
|
6943
|
+
type: 'ref',
|
|
6944
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
6945
|
+
},
|
|
6946
|
+
},
|
|
6947
|
+
},
|
|
6948
|
+
},
|
|
6949
|
+
},
|
|
6950
|
+
},
|
|
6951
|
+
},
|
|
6952
|
+
},
|
|
6761
6953
|
AppBskyGraphGetBlocks: {
|
|
6762
6954
|
lexicon: 1,
|
|
6763
6955
|
id: 'app.bsky.graph.getBlocks',
|
|
@@ -7247,6 +7439,40 @@ exports.schemaDict = {
|
|
|
7247
7439
|
},
|
|
7248
7440
|
},
|
|
7249
7441
|
},
|
|
7442
|
+
AppBskyGraphGetStarterPack: {
|
|
7443
|
+
lexicon: 1,
|
|
7444
|
+
id: 'app.bsky.graph.getStarterPack',
|
|
7445
|
+
defs: {
|
|
7446
|
+
main: {
|
|
7447
|
+
type: 'query',
|
|
7448
|
+
description: 'Gets a view of a starter pack.',
|
|
7449
|
+
parameters: {
|
|
7450
|
+
type: 'params',
|
|
7451
|
+
required: ['starterPack'],
|
|
7452
|
+
properties: {
|
|
7453
|
+
starterPack: {
|
|
7454
|
+
type: 'string',
|
|
7455
|
+
format: 'at-uri',
|
|
7456
|
+
description: 'Reference (AT-URI) of the starter pack record.',
|
|
7457
|
+
},
|
|
7458
|
+
},
|
|
7459
|
+
},
|
|
7460
|
+
output: {
|
|
7461
|
+
encoding: 'application/json',
|
|
7462
|
+
schema: {
|
|
7463
|
+
type: 'object',
|
|
7464
|
+
required: ['starterPack'],
|
|
7465
|
+
properties: {
|
|
7466
|
+
starterPack: {
|
|
7467
|
+
type: 'ref',
|
|
7468
|
+
ref: 'lex:app.bsky.graph.defs#starterPackView',
|
|
7469
|
+
},
|
|
7470
|
+
},
|
|
7471
|
+
},
|
|
7472
|
+
},
|
|
7473
|
+
},
|
|
7474
|
+
},
|
|
7475
|
+
},
|
|
7250
7476
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
|
7251
7477
|
lexicon: 1,
|
|
7252
7478
|
id: 'app.bsky.graph.getSuggestedFollowsByActor',
|
|
@@ -7462,6 +7688,69 @@ exports.schemaDict = {
|
|
|
7462
7688
|
},
|
|
7463
7689
|
},
|
|
7464
7690
|
},
|
|
7691
|
+
AppBskyGraphStarterpack: {
|
|
7692
|
+
lexicon: 1,
|
|
7693
|
+
id: 'app.bsky.graph.starterpack',
|
|
7694
|
+
defs: {
|
|
7695
|
+
main: {
|
|
7696
|
+
type: 'record',
|
|
7697
|
+
description: 'Record defining a starter pack of actors and feeds for new users.',
|
|
7698
|
+
key: 'any',
|
|
7699
|
+
record: {
|
|
7700
|
+
type: 'object',
|
|
7701
|
+
required: ['name', 'list', 'createdAt'],
|
|
7702
|
+
properties: {
|
|
7703
|
+
name: {
|
|
7704
|
+
type: 'string',
|
|
7705
|
+
maxGraphemes: 50,
|
|
7706
|
+
maxLength: 500,
|
|
7707
|
+
minLength: 1,
|
|
7708
|
+
description: 'Display name for starter pack; can not be empty.',
|
|
7709
|
+
},
|
|
7710
|
+
description: {
|
|
7711
|
+
type: 'string',
|
|
7712
|
+
maxGraphemes: 300,
|
|
7713
|
+
maxLength: 3000,
|
|
7714
|
+
},
|
|
7715
|
+
descriptionFacets: {
|
|
7716
|
+
type: 'array',
|
|
7717
|
+
items: {
|
|
7718
|
+
type: 'ref',
|
|
7719
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
7720
|
+
},
|
|
7721
|
+
},
|
|
7722
|
+
list: {
|
|
7723
|
+
type: 'string',
|
|
7724
|
+
format: 'at-uri',
|
|
7725
|
+
description: 'Reference (AT-URI) to the list record.',
|
|
7726
|
+
},
|
|
7727
|
+
feeds: {
|
|
7728
|
+
type: 'array',
|
|
7729
|
+
maxLength: 3,
|
|
7730
|
+
items: {
|
|
7731
|
+
type: 'ref',
|
|
7732
|
+
ref: 'lex:app.bsky.graph.starterpack#feedItem',
|
|
7733
|
+
},
|
|
7734
|
+
},
|
|
7735
|
+
createdAt: {
|
|
7736
|
+
type: 'string',
|
|
7737
|
+
format: 'datetime',
|
|
7738
|
+
},
|
|
7739
|
+
},
|
|
7740
|
+
},
|
|
7741
|
+
},
|
|
7742
|
+
feedItem: {
|
|
7743
|
+
type: 'object',
|
|
7744
|
+
required: ['uri'],
|
|
7745
|
+
properties: {
|
|
7746
|
+
uri: {
|
|
7747
|
+
type: 'string',
|
|
7748
|
+
format: 'at-uri',
|
|
7749
|
+
},
|
|
7750
|
+
},
|
|
7751
|
+
},
|
|
7752
|
+
},
|
|
7753
|
+
},
|
|
7465
7754
|
AppBskyGraphUnmuteActor: {
|
|
7466
7755
|
lexicon: 1,
|
|
7467
7756
|
id: 'app.bsky.graph.unmuteActor',
|
|
@@ -10827,6 +11116,7 @@ exports.ids = {
|
|
|
10827
11116
|
AppBskyGraphBlock: 'app.bsky.graph.block',
|
|
10828
11117
|
AppBskyGraphDefs: 'app.bsky.graph.defs',
|
|
10829
11118
|
AppBskyGraphFollow: 'app.bsky.graph.follow',
|
|
11119
|
+
AppBskyGraphGetActorStarterPacks: 'app.bsky.graph.getActorStarterPacks',
|
|
10830
11120
|
AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
|
|
10831
11121
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
|
10832
11122
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
|
@@ -10837,6 +11127,7 @@ exports.ids = {
|
|
|
10837
11127
|
AppBskyGraphGetLists: 'app.bsky.graph.getLists',
|
|
10838
11128
|
AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
|
|
10839
11129
|
AppBskyGraphGetRelationships: 'app.bsky.graph.getRelationships',
|
|
11130
|
+
AppBskyGraphGetStarterPack: 'app.bsky.graph.getStarterPack',
|
|
10840
11131
|
AppBskyGraphGetSuggestedFollowsByActor: 'app.bsky.graph.getSuggestedFollowsByActor',
|
|
10841
11132
|
AppBskyGraphList: 'app.bsky.graph.list',
|
|
10842
11133
|
AppBskyGraphListblock: 'app.bsky.graph.listblock',
|
|
@@ -10844,6 +11135,7 @@ exports.ids = {
|
|
|
10844
11135
|
AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
|
|
10845
11136
|
AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
|
|
10846
11137
|
AppBskyGraphMuteThread: 'app.bsky.graph.muteThread',
|
|
11138
|
+
AppBskyGraphStarterpack: 'app.bsky.graph.starterpack',
|
|
10847
11139
|
AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
|
|
10848
11140
|
AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
|
|
10849
11141
|
AppBskyGraphUnmuteThread: 'app.bsky.graph.unmuteThread',
|