@atproto/pds 0.4.37 → 0.4.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/lexicon/index.d.ts +7 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +13 -0
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +332 -0
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +339 -1
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +5 -0
  11. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  13. package/dist/lexicon/types/app/bsky/actor/profile.d.ts +3 -0
  14. package/dist/lexicon/types/app/bsky/actor/profile.d.ts.map +1 -1
  15. package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
  16. package/dist/lexicon/types/app/bsky/graph/defs.d.ts +36 -1
  17. package/dist/lexicon/types/app/bsky/graph/defs.d.ts.map +1 -1
  18. package/dist/lexicon/types/app/bsky/graph/defs.js +23 -1
  19. package/dist/lexicon/types/app/bsky/graph/defs.js.map +1 -1
  20. package/dist/lexicon/types/app/bsky/graph/getActorStarterPacks.d.ts +39 -0
  21. package/dist/lexicon/types/app/bsky/graph/getActorStarterPacks.d.ts.map +1 -0
  22. package/dist/lexicon/types/app/bsky/graph/getActorStarterPacks.js +3 -0
  23. package/dist/lexicon/types/app/bsky/graph/getActorStarterPacks.js.map +1 -0
  24. package/dist/lexicon/types/app/bsky/graph/getStarterPack.d.ts +37 -0
  25. package/dist/lexicon/types/app/bsky/graph/getStarterPack.d.ts.map +1 -0
  26. package/dist/lexicon/types/app/bsky/graph/getStarterPack.js +3 -0
  27. package/dist/lexicon/types/app/bsky/graph/getStarterPack.js.map +1 -0
  28. package/dist/lexicon/types/app/bsky/graph/getStarterPacks.d.ts +36 -0
  29. package/dist/lexicon/types/app/bsky/graph/getStarterPacks.d.ts.map +1 -0
  30. package/dist/lexicon/types/app/bsky/graph/getStarterPacks.js +3 -0
  31. package/dist/lexicon/types/app/bsky/graph/getStarterPacks.js.map +1 -0
  32. package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts +25 -0
  33. package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts.map +1 -0
  34. package/dist/lexicon/types/app/bsky/graph/starterpack.js +27 -0
  35. package/dist/lexicon/types/app/bsky/graph/starterpack.js.map +1 -0
  36. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -2
  37. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
  38. package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
  39. package/dist/lexicon/types/tools/ozone/team/deleteMember.d.ts +1 -1
  40. package/dist/lexicon/types/tools/ozone/team/deleteMember.d.ts.map +1 -1
  41. package/dist/repo/prepare.d.ts.map +1 -1
  42. package/dist/repo/prepare.js +4 -0
  43. package/dist/repo/prepare.js.map +1 -1
  44. package/package.json +5 -5
  45. package/src/lexicon/index.ts +37 -0
  46. package/src/lexicon/lexicons.ts +341 -1
  47. package/src/lexicon/types/app/bsky/actor/defs.ts +5 -0
  48. package/src/lexicon/types/app/bsky/actor/profile.ts +3 -0
  49. package/src/lexicon/types/app/bsky/graph/defs.ts +58 -0
  50. package/src/lexicon/types/app/bsky/graph/getActorStarterPacks.ts +49 -0
  51. package/src/lexicon/types/app/bsky/graph/getStarterPack.ts +47 -0
  52. package/src/lexicon/types/app/bsky/graph/getStarterPacks.ts +46 -0
  53. package/src/lexicon/types/app/bsky/graph/starterpack.ts +50 -0
  54. package/src/lexicon/types/app/bsky/notification/listNotifications.ts +2 -1
  55. package/src/lexicon/types/tools/ozone/team/deleteMember.ts +1 -1
  56. package/src/repo/prepare.ts +3 -0
  57. package/tests/proxied/__snapshots__/admin.test.ts.snap +3 -0
  58. package/tests/proxied/__snapshots__/feedgen.test.ts.snap +2 -0
  59. package/tests/proxied/__snapshots__/views.test.ts.snap +71 -0
@@ -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,80 @@ 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
+ },
7476
+ AppBskyGraphGetStarterPacks: {
7477
+ lexicon: 1,
7478
+ id: 'app.bsky.graph.getStarterPacks',
7479
+ defs: {
7480
+ main: {
7481
+ type: 'query',
7482
+ description: 'Get views for a list of starter packs.',
7483
+ parameters: {
7484
+ type: 'params',
7485
+ required: ['uris'],
7486
+ properties: {
7487
+ uris: {
7488
+ type: 'array',
7489
+ items: {
7490
+ type: 'string',
7491
+ format: 'at-uri',
7492
+ },
7493
+ maxLength: 25,
7494
+ },
7495
+ },
7496
+ },
7497
+ output: {
7498
+ encoding: 'application/json',
7499
+ schema: {
7500
+ type: 'object',
7501
+ required: ['starterPacks'],
7502
+ properties: {
7503
+ starterPacks: {
7504
+ type: 'array',
7505
+ items: {
7506
+ type: 'ref',
7507
+ ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
7508
+ },
7509
+ },
7510
+ },
7511
+ },
7512
+ },
7513
+ },
7514
+ },
7515
+ },
7250
7516
  AppBskyGraphGetSuggestedFollowsByActor: {
7251
7517
  lexicon: 1,
7252
7518
  id: 'app.bsky.graph.getSuggestedFollowsByActor',
@@ -7462,6 +7728,69 @@ exports.schemaDict = {
7462
7728
  },
7463
7729
  },
7464
7730
  },
7731
+ AppBskyGraphStarterpack: {
7732
+ lexicon: 1,
7733
+ id: 'app.bsky.graph.starterpack',
7734
+ defs: {
7735
+ main: {
7736
+ type: 'record',
7737
+ description: 'Record defining a starter pack of actors and feeds for new users.',
7738
+ key: 'tid',
7739
+ record: {
7740
+ type: 'object',
7741
+ required: ['name', 'list', 'createdAt'],
7742
+ properties: {
7743
+ name: {
7744
+ type: 'string',
7745
+ maxGraphemes: 50,
7746
+ maxLength: 500,
7747
+ minLength: 1,
7748
+ description: 'Display name for starter pack; can not be empty.',
7749
+ },
7750
+ description: {
7751
+ type: 'string',
7752
+ maxGraphemes: 300,
7753
+ maxLength: 3000,
7754
+ },
7755
+ descriptionFacets: {
7756
+ type: 'array',
7757
+ items: {
7758
+ type: 'ref',
7759
+ ref: 'lex:app.bsky.richtext.facet',
7760
+ },
7761
+ },
7762
+ list: {
7763
+ type: 'string',
7764
+ format: 'at-uri',
7765
+ description: 'Reference (AT-URI) to the list record.',
7766
+ },
7767
+ feeds: {
7768
+ type: 'array',
7769
+ maxLength: 3,
7770
+ items: {
7771
+ type: 'ref',
7772
+ ref: 'lex:app.bsky.graph.starterpack#feedItem',
7773
+ },
7774
+ },
7775
+ createdAt: {
7776
+ type: 'string',
7777
+ format: 'datetime',
7778
+ },
7779
+ },
7780
+ },
7781
+ },
7782
+ feedItem: {
7783
+ type: 'object',
7784
+ required: ['uri'],
7785
+ properties: {
7786
+ uri: {
7787
+ type: 'string',
7788
+ format: 'at-uri',
7789
+ },
7790
+ },
7791
+ },
7792
+ },
7793
+ },
7465
7794
  AppBskyGraphUnmuteActor: {
7466
7795
  lexicon: 1,
7467
7796
  id: 'app.bsky.graph.unmuteActor',
@@ -7827,7 +8156,7 @@ exports.schemaDict = {
7827
8156
  },
7828
8157
  reason: {
7829
8158
  type: 'string',
7830
- description: "Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'.",
8159
+ description: "Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', and 'starterpack-joined'.",
7831
8160
  knownValues: [
7832
8161
  'like',
7833
8162
  'repost',
@@ -7835,6 +8164,7 @@ exports.schemaDict = {
7835
8164
  'mention',
7836
8165
  'reply',
7837
8166
  'quote',
8167
+ 'starterpack-joined',
7838
8168
  ],
7839
8169
  },
7840
8170
  reasonSubject: {
@@ -10828,6 +11158,10 @@ exports.schemaDict = {
10828
11158
  name: 'MemberNotFound',
10829
11159
  description: 'The member being deleted does not exist',
10830
11160
  },
11161
+ {
11162
+ name: 'CannotDeleteSelf',
11163
+ description: 'You can not delete yourself from the team',
11164
+ },
10831
11165
  ],
10832
11166
  },
10833
11167
  },
@@ -11044,6 +11378,7 @@ exports.ids = {
11044
11378
  AppBskyGraphBlock: 'app.bsky.graph.block',
11045
11379
  AppBskyGraphDefs: 'app.bsky.graph.defs',
11046
11380
  AppBskyGraphFollow: 'app.bsky.graph.follow',
11381
+ AppBskyGraphGetActorStarterPacks: 'app.bsky.graph.getActorStarterPacks',
11047
11382
  AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
11048
11383
  AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
11049
11384
  AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
@@ -11054,6 +11389,8 @@ exports.ids = {
11054
11389
  AppBskyGraphGetLists: 'app.bsky.graph.getLists',
11055
11390
  AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
11056
11391
  AppBskyGraphGetRelationships: 'app.bsky.graph.getRelationships',
11392
+ AppBskyGraphGetStarterPack: 'app.bsky.graph.getStarterPack',
11393
+ AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks',
11057
11394
  AppBskyGraphGetSuggestedFollowsByActor: 'app.bsky.graph.getSuggestedFollowsByActor',
11058
11395
  AppBskyGraphList: 'app.bsky.graph.list',
11059
11396
  AppBskyGraphListblock: 'app.bsky.graph.listblock',
@@ -11061,6 +11398,7 @@ exports.ids = {
11061
11398
  AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
11062
11399
  AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
11063
11400
  AppBskyGraphMuteThread: 'app.bsky.graph.muteThread',
11401
+ AppBskyGraphStarterpack: 'app.bsky.graph.starterpack',
11064
11402
  AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
11065
11403
  AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
11066
11404
  AppBskyGraphUnmuteThread: 'app.bsky.graph.unmuteThread',