@atproto/api 0.22.0 → 0.23.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.
@@ -4458,6 +4458,10 @@ export const schemaDict = {
4458
4458
  cursor: {
4459
4459
  type: 'string',
4460
4460
  },
4461
+ since: {
4462
+ type: 'string',
4463
+ description: 'Return only items newer than the position identified by this cursor value, newest first. Use the startCursor from a previous response. The item at that position is not returned because the caller already holds it. When the bounded range is exhausted, the returned cursor equals this value so that pagination continues below the boundary.',
4464
+ },
4461
4465
  },
4462
4466
  },
4463
4467
  output: {
@@ -4469,6 +4473,10 @@ export const schemaDict = {
4469
4473
  cursor: {
4470
4474
  type: 'string',
4471
4475
  },
4476
+ startCursor: {
4477
+ type: 'string',
4478
+ description: 'Cursor identifying the newest item in this page. Pass it as since on a later request to fetch only newer content.',
4479
+ },
4472
4480
  feed: {
4473
4481
  type: 'array',
4474
4482
  items: {
@@ -4784,6 +4792,10 @@ export const schemaDict = {
4784
4792
  cursor: {
4785
4793
  type: 'string',
4786
4794
  },
4795
+ since: {
4796
+ type: 'string',
4797
+ description: 'Return only items newer than the position identified by this cursor value, newest first. Use the startCursor from a previous response. The item at that position is not returned because the caller already holds it. When the bounded range is exhausted, the returned cursor equals this value so that pagination continues below the boundary.',
4798
+ },
4787
4799
  },
4788
4800
  },
4789
4801
  output: {
@@ -4795,6 +4807,10 @@ export const schemaDict = {
4795
4807
  cursor: {
4796
4808
  type: 'string',
4797
4809
  },
4810
+ startCursor: {
4811
+ type: 'string',
4812
+ description: 'Cursor identifying the newest item in this page. Pass it as since on a later request to fetch only newer content.',
4813
+ },
4798
4814
  feed: {
4799
4815
  type: 'array',
4800
4816
  items: {
@@ -7585,6 +7601,484 @@ export const schemaDict = {
7585
7601
  },
7586
7602
  },
7587
7603
  },
7604
+ AppBskyNotificationGetGroupedNotifications: {
7605
+ lexicon: 1,
7606
+ id: 'app.bsky.notification.getGroupedNotifications',
7607
+ defs: {
7608
+ main: {
7609
+ type: 'query',
7610
+ description: '[UNSTABLE - DO NOT USE THIS ENDPOINT WHILE THIS NOTE IS HERE] Enumerate notifications for the requesting account, pre-grouped for rendering. Supersedes listNotifications. Requires auth.',
7611
+ parameters: {
7612
+ type: 'params',
7613
+ properties: {
7614
+ feed: {
7615
+ type: 'string',
7616
+ description: "Which notification feed to return. Grouping behavior varies by feed: notifications about follows might be grouped in 'all' and ungrouped (or rather, in single-item groups) in 'followers'.",
7617
+ maxLength: 32,
7618
+ knownValues: [
7619
+ 'all',
7620
+ 'people-i-follow',
7621
+ 'conversations',
7622
+ 'followers',
7623
+ 'activity',
7624
+ ],
7625
+ default: 'all',
7626
+ },
7627
+ limit: {
7628
+ type: 'integer',
7629
+ description: 'Maximum number of groups to return.',
7630
+ minimum: 1,
7631
+ maximum: 50,
7632
+ default: 30,
7633
+ },
7634
+ cursor: {
7635
+ type: 'string',
7636
+ maxLength: 1024,
7637
+ },
7638
+ },
7639
+ },
7640
+ output: {
7641
+ encoding: 'application/json',
7642
+ schema: {
7643
+ type: 'object',
7644
+ required: ['groups'],
7645
+ properties: {
7646
+ cursor: {
7647
+ type: 'string',
7648
+ maxLength: 1024,
7649
+ },
7650
+ groups: {
7651
+ type: 'array',
7652
+ description: 'Notification groups or individual notifications, newest first. Clients should ignore kinds they do not recognize. Grouping behavior depends on the kind and selected feed.',
7653
+ items: {
7654
+ type: 'ref',
7655
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#group',
7656
+ },
7657
+ },
7658
+ seenAt: {
7659
+ type: 'string',
7660
+ format: 'datetime',
7661
+ },
7662
+ relatedViews: {
7663
+ type: 'array',
7664
+ description: 'Reusable views referenced by notifications. Views shared across notifications appear once to avoid duplication. Each group contributes only its first 10 of each related view to this array. Ex: for a group containing likes in a post, we might have a large number of likeItem (e.g., 50) in a group, but only the profile views for the newest 10 items will be included here.',
7665
+ items: {
7666
+ type: 'union',
7667
+ refs: [
7668
+ 'lex:app.bsky.actor.defs#profileViewDetailed',
7669
+ 'lex:app.bsky.feed.defs#blockedPost',
7670
+ 'lex:app.bsky.feed.defs#generatorView',
7671
+ 'lex:app.bsky.feed.defs#notFoundPost',
7672
+ 'lex:app.bsky.feed.defs#postView',
7673
+ 'lex:app.bsky.graph.defs#starterPackView',
7674
+ ],
7675
+ },
7676
+ },
7677
+ },
7678
+ },
7679
+ },
7680
+ },
7681
+ group: {
7682
+ type: 'object',
7683
+ description: 'Contains common metadata and kind-specific data for a notification group or individual notification.',
7684
+ required: ['id', 'isRead', 'indexedAt', 'count', 'kind'],
7685
+ properties: {
7686
+ id: {
7687
+ type: 'string',
7688
+ maxLength: 256,
7689
+ },
7690
+ isRead: {
7691
+ type: 'boolean',
7692
+ },
7693
+ indexedAt: {
7694
+ type: 'string',
7695
+ format: 'datetime',
7696
+ },
7697
+ count: {
7698
+ type: 'integer',
7699
+ minimum: 1,
7700
+ },
7701
+ kind: {
7702
+ type: 'union',
7703
+ refs: [
7704
+ 'lex:app.bsky.notification.getGroupedNotifications#likeGroup',
7705
+ 'lex:app.bsky.notification.getGroupedNotifications#multiPostLikeGroup',
7706
+ 'lex:app.bsky.notification.getGroupedNotifications#repostGroup',
7707
+ 'lex:app.bsky.notification.getGroupedNotifications#likeViaRepostGroup',
7708
+ 'lex:app.bsky.notification.getGroupedNotifications#repostViaRepostGroup',
7709
+ 'lex:app.bsky.notification.getGroupedNotifications#followGroup',
7710
+ 'lex:app.bsky.notification.getGroupedNotifications#subscribedPostGroup',
7711
+ 'lex:app.bsky.notification.getGroupedNotifications#generatorLikeGroup',
7712
+ 'lex:app.bsky.notification.getGroupedNotifications#replyNotification',
7713
+ 'lex:app.bsky.notification.getGroupedNotifications#quoteNotification',
7714
+ 'lex:app.bsky.notification.getGroupedNotifications#mentionNotification',
7715
+ 'lex:app.bsky.notification.getGroupedNotifications#followBackNotification',
7716
+ 'lex:app.bsky.notification.getGroupedNotifications#verifiedNotification',
7717
+ 'lex:app.bsky.notification.getGroupedNotifications#unverifiedNotification',
7718
+ 'lex:app.bsky.notification.getGroupedNotifications#starterPackJoinedNotification',
7719
+ 'lex:app.bsky.notification.getGroupedNotifications#contactMatchNotification',
7720
+ ],
7721
+ },
7722
+ },
7723
+ },
7724
+ likeGroup: {
7725
+ type: 'object',
7726
+ description: 'Group of likes by different actors on the same post.',
7727
+ required: ['post', 'items'],
7728
+ properties: {
7729
+ post: {
7730
+ type: 'string',
7731
+ format: 'at-uri',
7732
+ },
7733
+ items: {
7734
+ type: 'array',
7735
+ minLength: 1,
7736
+ items: {
7737
+ type: 'ref',
7738
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#likeItem',
7739
+ },
7740
+ },
7741
+ },
7742
+ },
7743
+ likeItem: {
7744
+ type: 'object',
7745
+ description: "One actor who liked the group's post.",
7746
+ required: ['actor'],
7747
+ properties: {
7748
+ actor: {
7749
+ type: 'string',
7750
+ format: 'did',
7751
+ },
7752
+ },
7753
+ },
7754
+ multiPostLikeGroup: {
7755
+ type: 'object',
7756
+ description: 'Group of likes by the same actor on different posts.',
7757
+ required: ['actor', 'items'],
7758
+ properties: {
7759
+ actor: {
7760
+ type: 'string',
7761
+ format: 'did',
7762
+ },
7763
+ items: {
7764
+ type: 'array',
7765
+ minLength: 2,
7766
+ items: {
7767
+ type: 'ref',
7768
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#multiPostLikeItem',
7769
+ },
7770
+ },
7771
+ },
7772
+ },
7773
+ multiPostLikeItem: {
7774
+ type: 'object',
7775
+ description: "One post which was liked by the group's actor.",
7776
+ required: ['post'],
7777
+ properties: {
7778
+ post: {
7779
+ type: 'string',
7780
+ format: 'at-uri',
7781
+ },
7782
+ },
7783
+ },
7784
+ repostGroup: {
7785
+ type: 'object',
7786
+ description: 'Group of reposts by different actors of the same post.',
7787
+ required: ['post', 'items'],
7788
+ properties: {
7789
+ post: {
7790
+ type: 'string',
7791
+ format: 'at-uri',
7792
+ },
7793
+ items: {
7794
+ type: 'array',
7795
+ minLength: 1,
7796
+ items: {
7797
+ type: 'ref',
7798
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#repostItem',
7799
+ },
7800
+ },
7801
+ },
7802
+ },
7803
+ repostItem: {
7804
+ type: 'object',
7805
+ description: "One actor who reposted the group's post.",
7806
+ required: ['actor'],
7807
+ properties: {
7808
+ actor: {
7809
+ type: 'string',
7810
+ format: 'did',
7811
+ },
7812
+ },
7813
+ },
7814
+ likeViaRepostGroup: {
7815
+ type: 'object',
7816
+ description: "Group of likes by different actors on the same post via the requesting account's repost.",
7817
+ required: ['post', 'viaRepost', 'items'],
7818
+ properties: {
7819
+ post: {
7820
+ type: 'string',
7821
+ format: 'at-uri',
7822
+ },
7823
+ viaRepost: {
7824
+ type: 'string',
7825
+ format: 'at-uri',
7826
+ },
7827
+ items: {
7828
+ type: 'array',
7829
+ minLength: 1,
7830
+ items: {
7831
+ type: 'ref',
7832
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#likeViaRepostItem',
7833
+ },
7834
+ },
7835
+ },
7836
+ },
7837
+ likeViaRepostItem: {
7838
+ type: 'object',
7839
+ description: "One actor who liked the group's post via the requesting account's repost.",
7840
+ required: ['actor'],
7841
+ properties: {
7842
+ actor: {
7843
+ type: 'string',
7844
+ format: 'did',
7845
+ },
7846
+ },
7847
+ },
7848
+ repostViaRepostGroup: {
7849
+ type: 'object',
7850
+ description: "Group of reposts by different actors of the same post via the requesting account's repost.",
7851
+ required: ['post', 'viaRepost', 'items'],
7852
+ properties: {
7853
+ post: {
7854
+ type: 'string',
7855
+ format: 'at-uri',
7856
+ },
7857
+ viaRepost: {
7858
+ type: 'string',
7859
+ format: 'at-uri',
7860
+ },
7861
+ items: {
7862
+ type: 'array',
7863
+ minLength: 1,
7864
+ items: {
7865
+ type: 'ref',
7866
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#repostViaRepostItem',
7867
+ },
7868
+ },
7869
+ },
7870
+ },
7871
+ repostViaRepostItem: {
7872
+ type: 'object',
7873
+ description: "One actor who reposted the group's post via the requesting account's repost.",
7874
+ required: ['actor'],
7875
+ properties: {
7876
+ actor: {
7877
+ type: 'string',
7878
+ format: 'did',
7879
+ },
7880
+ },
7881
+ },
7882
+ followGroup: {
7883
+ type: 'object',
7884
+ description: 'Group of actors who followed the requesting account.',
7885
+ required: ['items'],
7886
+ properties: {
7887
+ items: {
7888
+ type: 'array',
7889
+ minLength: 1,
7890
+ items: {
7891
+ type: 'ref',
7892
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#followItem',
7893
+ },
7894
+ },
7895
+ },
7896
+ },
7897
+ followItem: {
7898
+ type: 'object',
7899
+ description: 'An actor who followed the requesting account, possibly via a starter pack.',
7900
+ required: ['actor'],
7901
+ properties: {
7902
+ actor: {
7903
+ type: 'string',
7904
+ format: 'did',
7905
+ },
7906
+ starterPack: {
7907
+ type: 'string',
7908
+ format: 'at-uri',
7909
+ },
7910
+ },
7911
+ },
7912
+ subscribedPostGroup: {
7913
+ type: 'object',
7914
+ description: 'Group of new posts by actors the requesting account subscribes to.',
7915
+ required: ['items'],
7916
+ properties: {
7917
+ items: {
7918
+ type: 'array',
7919
+ minLength: 1,
7920
+ items: {
7921
+ type: 'ref',
7922
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#subscribedPostItem',
7923
+ },
7924
+ },
7925
+ },
7926
+ },
7927
+ subscribedPostItem: {
7928
+ type: 'object',
7929
+ description: 'One new post by an actor the requesting account subscribes to.',
7930
+ required: ['actor', 'post'],
7931
+ properties: {
7932
+ actor: {
7933
+ type: 'string',
7934
+ format: 'did',
7935
+ },
7936
+ post: {
7937
+ type: 'string',
7938
+ format: 'at-uri',
7939
+ },
7940
+ },
7941
+ },
7942
+ generatorLikeGroup: {
7943
+ type: 'object',
7944
+ description: 'Group of likes by different actors on the same feed generator.',
7945
+ required: ['generator', 'items'],
7946
+ properties: {
7947
+ generator: {
7948
+ type: 'string',
7949
+ format: 'at-uri',
7950
+ },
7951
+ items: {
7952
+ type: 'array',
7953
+ minLength: 1,
7954
+ items: {
7955
+ type: 'ref',
7956
+ ref: 'lex:app.bsky.notification.getGroupedNotifications#generatorLikeItem',
7957
+ },
7958
+ },
7959
+ },
7960
+ },
7961
+ generatorLikeItem: {
7962
+ type: 'object',
7963
+ description: 'One actor who liked the feed generator in the group.',
7964
+ required: ['actor'],
7965
+ properties: {
7966
+ actor: {
7967
+ type: 'string',
7968
+ format: 'did',
7969
+ },
7970
+ },
7971
+ },
7972
+ replyNotification: {
7973
+ type: 'object',
7974
+ description: 'A reply to a post by the requesting account or to a thread they are participating in.',
7975
+ required: ['post', 'parent'],
7976
+ properties: {
7977
+ post: {
7978
+ type: 'string',
7979
+ format: 'at-uri',
7980
+ },
7981
+ parent: {
7982
+ type: 'string',
7983
+ format: 'at-uri',
7984
+ },
7985
+ },
7986
+ },
7987
+ quoteNotification: {
7988
+ type: 'object',
7989
+ description: 'A post quoting a post by the requesting account.',
7990
+ required: ['post'],
7991
+ properties: {
7992
+ post: {
7993
+ type: 'string',
7994
+ format: 'at-uri',
7995
+ },
7996
+ parent: {
7997
+ type: 'string',
7998
+ format: 'at-uri',
7999
+ },
8000
+ },
8001
+ },
8002
+ mentionNotification: {
8003
+ type: 'object',
8004
+ description: 'A post mentioning the requesting account.',
8005
+ required: ['post'],
8006
+ properties: {
8007
+ post: {
8008
+ type: 'string',
8009
+ format: 'at-uri',
8010
+ },
8011
+ parent: {
8012
+ type: 'string',
8013
+ format: 'at-uri',
8014
+ },
8015
+ },
8016
+ },
8017
+ followBackNotification: {
8018
+ type: 'object',
8019
+ description: 'An actor followed the requesting account back, possibly via a starter pack.',
8020
+ required: ['actor'],
8021
+ properties: {
8022
+ actor: {
8023
+ type: 'string',
8024
+ format: 'did',
8025
+ },
8026
+ starterPack: {
8027
+ type: 'string',
8028
+ format: 'at-uri',
8029
+ },
8030
+ },
8031
+ },
8032
+ verifiedNotification: {
8033
+ type: 'object',
8034
+ description: 'An actor verified the requesting account.',
8035
+ required: ['actor'],
8036
+ properties: {
8037
+ actor: {
8038
+ type: 'string',
8039
+ format: 'did',
8040
+ },
8041
+ },
8042
+ },
8043
+ unverifiedNotification: {
8044
+ type: 'object',
8045
+ description: 'A verification of the requesting account was removed.',
8046
+ required: ['actor'],
8047
+ properties: {
8048
+ actor: {
8049
+ type: 'string',
8050
+ format: 'did',
8051
+ },
8052
+ },
8053
+ },
8054
+ starterPackJoinedNotification: {
8055
+ type: 'object',
8056
+ description: 'An actor joined Bluesky via a starter pack created by the requesting account.',
8057
+ required: ['actor', 'starterPack'],
8058
+ properties: {
8059
+ actor: {
8060
+ type: 'string',
8061
+ format: 'did',
8062
+ },
8063
+ starterPack: {
8064
+ type: 'string',
8065
+ format: 'at-uri',
8066
+ },
8067
+ },
8068
+ },
8069
+ contactMatchNotification: {
8070
+ type: 'object',
8071
+ description: 'A contact of the requesting account joined Bluesky.',
8072
+ required: ['actor'],
8073
+ properties: {
8074
+ actor: {
8075
+ type: 'string',
8076
+ format: 'did',
8077
+ },
8078
+ },
8079
+ },
8080
+ },
8081
+ },
7588
8082
  AppBskyNotificationGetPreferences: {
7589
8083
  lexicon: 1,
7590
8084
  id: 'app.bsky.notification.getPreferences',
@@ -27053,6 +27547,7 @@ export const ids = {
27053
27547
  AppBskyLabelerService: 'app.bsky.labeler.service',
27054
27548
  AppBskyNotificationDeclaration: 'app.bsky.notification.declaration',
27055
27549
  AppBskyNotificationDefs: 'app.bsky.notification.defs',
27550
+ AppBskyNotificationGetGroupedNotifications: 'app.bsky.notification.getGroupedNotifications',
27056
27551
  AppBskyNotificationGetPreferences: 'app.bsky.notification.getPreferences',
27057
27552
  AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount',
27058
27553
  AppBskyNotificationListActivitySubscriptions: 'app.bsky.notification.listActivitySubscriptions',