@atproto/bsky 0.0.199 → 0.0.201

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.
Files changed (170) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/api/app/bsky/ageassurance/begin.d.ts.map +1 -1
  3. package/dist/api/app/bsky/ageassurance/begin.js +1 -2
  4. package/dist/api/app/bsky/ageassurance/begin.js.map +1 -1
  5. package/dist/api/app/bsky/contact/dismissMatch.d.ts +4 -0
  6. package/dist/api/app/bsky/contact/dismissMatch.d.ts.map +1 -0
  7. package/dist/api/app/bsky/contact/dismissMatch.js +23 -0
  8. package/dist/api/app/bsky/contact/dismissMatch.js.map +1 -0
  9. package/dist/api/app/bsky/contact/getMatches.d.ts +4 -0
  10. package/dist/api/app/bsky/contact/getMatches.d.ts.map +1 -0
  11. package/dist/api/app/bsky/contact/getMatches.js +59 -0
  12. package/dist/api/app/bsky/contact/getMatches.js.map +1 -0
  13. package/dist/api/app/bsky/contact/getSyncStatus.d.ts +4 -0
  14. package/dist/api/app/bsky/contact/getSyncStatus.d.ts.map +1 -0
  15. package/dist/api/app/bsky/contact/getSyncStatus.js +32 -0
  16. package/dist/api/app/bsky/contact/getSyncStatus.js.map +1 -0
  17. package/dist/api/app/bsky/contact/importContacts.d.ts +4 -0
  18. package/dist/api/app/bsky/contact/importContacts.d.ts.map +1 -0
  19. package/dist/api/app/bsky/contact/importContacts.js +62 -0
  20. package/dist/api/app/bsky/contact/importContacts.js.map +1 -0
  21. package/dist/api/app/bsky/contact/removeData.d.ts +4 -0
  22. package/dist/api/app/bsky/contact/removeData.d.ts.map +1 -0
  23. package/dist/api/app/bsky/contact/removeData.js +22 -0
  24. package/dist/api/app/bsky/contact/removeData.js.map +1 -0
  25. package/dist/api/app/bsky/contact/sendNotification.d.ts +4 -0
  26. package/dist/api/app/bsky/contact/sendNotification.d.ts.map +1 -0
  27. package/dist/api/app/bsky/contact/sendNotification.js +30 -0
  28. package/dist/api/app/bsky/contact/sendNotification.js.map +1 -0
  29. package/dist/api/app/bsky/contact/startPhoneVerification.d.ts +4 -0
  30. package/dist/api/app/bsky/contact/startPhoneVerification.d.ts.map +1 -0
  31. package/dist/api/app/bsky/contact/startPhoneVerification.js +23 -0
  32. package/dist/api/app/bsky/contact/startPhoneVerification.js.map +1 -0
  33. package/dist/api/app/bsky/contact/util.d.ts +6 -0
  34. package/dist/api/app/bsky/contact/util.d.ts.map +1 -0
  35. package/dist/api/app/bsky/contact/util.js +10 -0
  36. package/dist/api/app/bsky/contact/util.js.map +1 -0
  37. package/dist/api/app/bsky/contact/verifyPhone.d.ts +4 -0
  38. package/dist/api/app/bsky/contact/verifyPhone.d.ts.map +1 -0
  39. package/dist/api/app/bsky/contact/verifyPhone.js +26 -0
  40. package/dist/api/app/bsky/contact/verifyPhone.js.map +1 -0
  41. package/dist/api/app/bsky/graph/getRelationships.d.ts.map +1 -1
  42. package/dist/api/app/bsky/graph/getRelationships.js +4 -0
  43. package/dist/api/app/bsky/graph/getRelationships.js.map +1 -1
  44. package/dist/api/index.d.ts.map +1 -1
  45. package/dist/api/index.js +14 -0
  46. package/dist/api/index.js.map +1 -1
  47. package/dist/config.d.ts +8 -0
  48. package/dist/config.d.ts.map +1 -1
  49. package/dist/config.js +21 -0
  50. package/dist/config.js.map +1 -1
  51. package/dist/context.d.ts +3 -0
  52. package/dist/context.d.ts.map +1 -1
  53. package/dist/context.js +3 -0
  54. package/dist/context.js.map +1 -1
  55. package/dist/hydration/actor.js +1 -1
  56. package/dist/hydration/actor.js.map +1 -1
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +12 -0
  59. package/dist/index.js.map +1 -1
  60. package/dist/lexicon/index.d.ts +21 -0
  61. package/dist/lexicon/index.d.ts.map +1 -1
  62. package/dist/lexicon/index.js +52 -1
  63. package/dist/lexicon/index.js.map +1 -1
  64. package/dist/lexicon/lexicons.d.ts +908 -102
  65. package/dist/lexicon/lexicons.d.ts.map +1 -1
  66. package/dist/lexicon/lexicons.js +427 -0
  67. package/dist/lexicon/lexicons.js.map +1 -1
  68. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +13 -1
  69. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  70. package/dist/lexicon/types/app/bsky/actor/defs.js +9 -0
  71. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  72. package/dist/lexicon/types/app/bsky/contact/defs.d.ts +34 -0
  73. package/dist/lexicon/types/app/bsky/contact/defs.d.ts.map +1 -0
  74. package/dist/lexicon/types/app/bsky/contact/defs.js +34 -0
  75. package/dist/lexicon/types/app/bsky/contact/defs.js.map +1 -0
  76. package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts +25 -0
  77. package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts.map +1 -0
  78. package/dist/lexicon/types/app/bsky/contact/dismissMatch.js +7 -0
  79. package/dist/lexicon/types/app/bsky/contact/dismissMatch.js.map +1 -0
  80. package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts +25 -0
  81. package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts.map +1 -0
  82. package/dist/lexicon/types/app/bsky/contact/getMatches.js +7 -0
  83. package/dist/lexicon/types/app/bsky/contact/getMatches.js.map +1 -0
  84. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts +21 -0
  85. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -0
  86. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js +7 -0
  87. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js.map +1 -0
  88. package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts +30 -0
  89. package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts.map +1 -0
  90. package/dist/lexicon/types/app/bsky/contact/importContacts.js +7 -0
  91. package/dist/lexicon/types/app/bsky/contact/importContacts.js.map +1 -0
  92. package/dist/lexicon/types/app/bsky/contact/removeData.d.ts +23 -0
  93. package/dist/lexicon/types/app/bsky/contact/removeData.d.ts.map +1 -0
  94. package/dist/lexicon/types/app/bsky/contact/removeData.js +7 -0
  95. package/dist/lexicon/types/app/bsky/contact/removeData.js.map +1 -0
  96. package/dist/lexicon/types/app/bsky/contact/sendNotification.d.ts +26 -0
  97. package/dist/lexicon/types/app/bsky/contact/sendNotification.d.ts.map +1 -0
  98. package/dist/lexicon/types/app/bsky/contact/sendNotification.js +7 -0
  99. package/dist/lexicon/types/app/bsky/contact/sendNotification.js.map +1 -0
  100. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts +25 -0
  101. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -0
  102. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js +7 -0
  103. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js.map +1 -0
  104. package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts +29 -0
  105. package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts.map +1 -0
  106. package/dist/lexicon/types/app/bsky/contact/verifyPhone.js +7 -0
  107. package/dist/lexicon/types/app/bsky/contact/verifyPhone.js.map +1 -0
  108. package/dist/lexicon/types/app/bsky/graph/defs.d.ts +8 -0
  109. package/dist/lexicon/types/app/bsky/graph/defs.d.ts.map +1 -1
  110. package/dist/lexicon/types/app/bsky/graph/defs.js.map +1 -1
  111. package/dist/proto/bsky_pb.d.ts +0 -4
  112. package/dist/proto/bsky_pb.d.ts.map +1 -1
  113. package/dist/proto/bsky_pb.js +0 -10
  114. package/dist/proto/bsky_pb.js.map +1 -1
  115. package/dist/proto/rolodex_connect.d.ts +83 -0
  116. package/dist/proto/rolodex_connect.d.ts.map +1 -0
  117. package/dist/proto/rolodex_connect.js +90 -0
  118. package/dist/proto/rolodex_connect.js.map +1 -0
  119. package/dist/proto/rolodex_pb.d.ts +363 -0
  120. package/dist/proto/rolodex_pb.d.ts.map +1 -0
  121. package/dist/proto/rolodex_pb.js +1032 -0
  122. package/dist/proto/rolodex_pb.js.map +1 -0
  123. package/dist/rolodex.d.ts +9 -0
  124. package/dist/rolodex.d.ts.map +1 -0
  125. package/dist/rolodex.js +25 -0
  126. package/dist/rolodex.js.map +1 -0
  127. package/dist/stash.d.ts +2 -1
  128. package/dist/stash.d.ts.map +1 -1
  129. package/dist/stash.js +2 -1
  130. package/dist/stash.js.map +1 -1
  131. package/package.json +11 -11
  132. package/proto/rolodex.proto +116 -0
  133. package/src/api/app/bsky/ageassurance/begin.ts +1 -4
  134. package/src/api/app/bsky/contact/dismissMatch.ts +24 -0
  135. package/src/api/app/bsky/contact/getMatches.ts +111 -0
  136. package/src/api/app/bsky/contact/getSyncStatus.ts +35 -0
  137. package/src/api/app/bsky/contact/importContacts.ts +118 -0
  138. package/src/api/app/bsky/contact/removeData.ts +23 -0
  139. package/src/api/app/bsky/contact/sendNotification.ts +32 -0
  140. package/src/api/app/bsky/contact/startPhoneVerification.ts +24 -0
  141. package/src/api/app/bsky/contact/util.ts +13 -0
  142. package/src/api/app/bsky/contact/verifyPhone.ts +27 -0
  143. package/src/api/app/bsky/graph/getRelationships.ts +4 -0
  144. package/src/api/index.ts +14 -0
  145. package/src/config.ts +27 -0
  146. package/src/context.ts +6 -0
  147. package/src/hydration/actor.ts +1 -1
  148. package/src/index.ts +13 -0
  149. package/src/lexicon/index.ts +114 -0
  150. package/src/lexicon/lexicons.ts +454 -0
  151. package/src/lexicon/types/app/bsky/actor/defs.ts +22 -0
  152. package/src/lexicon/types/app/bsky/contact/defs.ts +71 -0
  153. package/src/lexicon/types/app/bsky/contact/dismissMatch.ts +43 -0
  154. package/src/lexicon/types/app/bsky/contact/getMatches.ts +43 -0
  155. package/src/lexicon/types/app/bsky/contact/getSyncStatus.ts +39 -0
  156. package/src/lexicon/types/app/bsky/contact/importContacts.ts +49 -0
  157. package/src/lexicon/types/app/bsky/contact/removeData.ts +40 -0
  158. package/src/lexicon/types/app/bsky/contact/sendNotification.ts +44 -0
  159. package/src/lexicon/types/app/bsky/contact/startPhoneVerification.ts +43 -0
  160. package/src/lexicon/types/app/bsky/contact/verifyPhone.ts +48 -0
  161. package/src/lexicon/types/app/bsky/graph/defs.ts +8 -0
  162. package/src/proto/bsky_pb.ts +0 -6
  163. package/src/proto/rolodex_connect.ts +89 -0
  164. package/src/proto/rolodex_pb.ts +746 -0
  165. package/src/rolodex.ts +42 -0
  166. package/src/stash.ts +5 -2
  167. package/tests/views/__snapshots__/profile.test.ts.snap +103 -0
  168. package/tests/views/age-assurance-v2.test.ts +8 -1
  169. package/tests/views/profile.test.ts +39 -0
  170. package/tsconfig.build.tsbuildinfo +1 -1
@@ -382,7 +382,7 @@ export declare const schemaDict: {
382
382
  readonly type: "array";
383
383
  readonly items: {
384
384
  readonly type: "union";
385
- readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs"];
385
+ readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#declaredAgePref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs"];
386
386
  };
387
387
  };
388
388
  readonly adultContentPref: {
@@ -478,6 +478,24 @@ export declare const schemaDict: {
478
478
  };
479
479
  };
480
480
  };
481
+ readonly declaredAgePref: {
482
+ readonly type: "object";
483
+ readonly description: "Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration.";
484
+ readonly properties: {
485
+ readonly isOverAge13: {
486
+ readonly type: "boolean";
487
+ readonly description: "Indicates if the user has declared that they are over 13 years of age.";
488
+ };
489
+ readonly isOverAge16: {
490
+ readonly type: "boolean";
491
+ readonly description: "Indicates if the user has declared that they are over 16 years of age.";
492
+ };
493
+ readonly isOverAge18: {
494
+ readonly type: "boolean";
495
+ readonly description: "Indicates if the user has declared that they are over 18 years of age.";
496
+ };
497
+ };
498
+ };
481
499
  readonly feedViewPref: {
482
500
  readonly type: "object";
483
501
  readonly required: ["feed"];
@@ -1596,21 +1614,386 @@ export declare const schemaDict: {
1596
1614
  readonly encoding: "application/json";
1597
1615
  readonly schema: {
1598
1616
  readonly type: "object";
1599
- readonly required: ["bookmarks"];
1617
+ readonly required: ["bookmarks"];
1618
+ readonly properties: {
1619
+ readonly cursor: {
1620
+ readonly type: "string";
1621
+ };
1622
+ readonly bookmarks: {
1623
+ readonly type: "array";
1624
+ readonly items: {
1625
+ readonly type: "ref";
1626
+ readonly ref: "lex:app.bsky.bookmark.defs#bookmarkView";
1627
+ };
1628
+ };
1629
+ };
1630
+ };
1631
+ };
1632
+ };
1633
+ };
1634
+ };
1635
+ readonly AppBskyContactDefs: {
1636
+ readonly lexicon: 1;
1637
+ readonly id: "app.bsky.contact.defs";
1638
+ readonly defs: {
1639
+ readonly matchAndContactIndex: {
1640
+ readonly description: "Associates a profile with the positional index of the contact import input in the call to `app.bsky.contact.importContacts`, so clients can know which phone caused a particular match.";
1641
+ readonly type: "object";
1642
+ readonly required: ["match", "contactIndex"];
1643
+ readonly properties: {
1644
+ readonly match: {
1645
+ readonly description: "Profile of the matched user.";
1646
+ readonly type: "ref";
1647
+ readonly ref: "lex:app.bsky.actor.defs#profileView";
1648
+ };
1649
+ readonly contactIndex: {
1650
+ readonly description: "The index of this match in the import contact input.";
1651
+ readonly type: "integer";
1652
+ readonly minimum: 0;
1653
+ readonly maximum: 999;
1654
+ };
1655
+ };
1656
+ };
1657
+ readonly syncStatus: {
1658
+ readonly type: "object";
1659
+ readonly required: ["syncedAt", "matchesCount"];
1660
+ readonly properties: {
1661
+ readonly syncedAt: {
1662
+ readonly description: "Last date when contacts where imported.";
1663
+ readonly type: "string";
1664
+ readonly format: "datetime";
1665
+ };
1666
+ readonly matchesCount: {
1667
+ readonly description: "Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match.";
1668
+ readonly type: "integer";
1669
+ readonly minimum: 0;
1670
+ };
1671
+ };
1672
+ };
1673
+ readonly notification: {
1674
+ readonly description: "A stash object to be sent via bsync representing a notification to be created.";
1675
+ readonly type: "object";
1676
+ readonly required: ["from", "to"];
1677
+ readonly properties: {
1678
+ readonly from: {
1679
+ readonly description: "The DID of who this notification comes from.";
1680
+ readonly type: "string";
1681
+ readonly format: "did";
1682
+ };
1683
+ readonly to: {
1684
+ readonly description: "The DID of who this notification should go to.";
1685
+ readonly type: "string";
1686
+ readonly format: "did";
1687
+ };
1688
+ };
1689
+ };
1690
+ };
1691
+ };
1692
+ readonly AppBskyContactDismissMatch: {
1693
+ readonly lexicon: 1;
1694
+ readonly id: "app.bsky.contact.dismissMatch";
1695
+ readonly defs: {
1696
+ readonly main: {
1697
+ readonly type: "procedure";
1698
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.";
1699
+ readonly input: {
1700
+ readonly encoding: "application/json";
1701
+ readonly schema: {
1702
+ readonly type: "object";
1703
+ readonly required: ["subject"];
1704
+ readonly properties: {
1705
+ readonly subject: {
1706
+ readonly description: "The subject's DID to dismiss the match with.";
1707
+ readonly type: "string";
1708
+ readonly format: "did";
1709
+ };
1710
+ };
1711
+ };
1712
+ };
1713
+ readonly output: {
1714
+ readonly encoding: "application/json";
1715
+ readonly schema: {
1716
+ readonly type: "object";
1717
+ readonly properties: {};
1718
+ };
1719
+ };
1720
+ readonly errors: [{
1721
+ readonly name: "TODO";
1722
+ readonly description: "TODO";
1723
+ }];
1724
+ };
1725
+ };
1726
+ };
1727
+ readonly AppBskyContactGetMatches: {
1728
+ readonly lexicon: 1;
1729
+ readonly id: "app.bsky.contact.getMatches";
1730
+ readonly defs: {
1731
+ readonly main: {
1732
+ readonly type: "query";
1733
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.";
1734
+ readonly parameters: {
1735
+ readonly type: "params";
1736
+ readonly properties: {
1737
+ readonly limit: {
1738
+ readonly type: "integer";
1739
+ readonly minimum: 1;
1740
+ readonly maximum: 100;
1741
+ readonly default: 50;
1742
+ };
1743
+ readonly cursor: {
1744
+ readonly type: "string";
1745
+ };
1746
+ };
1747
+ };
1748
+ readonly output: {
1749
+ readonly encoding: "application/json";
1750
+ readonly schema: {
1751
+ readonly type: "object";
1752
+ readonly required: ["matches"];
1753
+ readonly properties: {
1754
+ readonly cursor: {
1755
+ readonly type: "string";
1756
+ };
1757
+ readonly matches: {
1758
+ readonly type: "array";
1759
+ readonly items: {
1760
+ readonly type: "ref";
1761
+ readonly ref: "lex:app.bsky.actor.defs#profileView";
1762
+ };
1763
+ };
1764
+ };
1765
+ };
1766
+ };
1767
+ readonly errors: [{
1768
+ readonly name: "TODO";
1769
+ readonly description: "TODO";
1770
+ }];
1771
+ };
1772
+ };
1773
+ };
1774
+ readonly AppBskyContactGetSyncStatus: {
1775
+ readonly lexicon: 1;
1776
+ readonly id: "app.bsky.contact.getSyncStatus";
1777
+ readonly defs: {
1778
+ readonly main: {
1779
+ readonly type: "query";
1780
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Gets the user's current contact import status. Requires authentication.";
1781
+ readonly parameters: {
1782
+ readonly type: "params";
1783
+ readonly properties: {};
1784
+ };
1785
+ readonly output: {
1786
+ readonly encoding: "application/json";
1787
+ readonly schema: {
1788
+ readonly type: "object";
1789
+ readonly properties: {
1790
+ readonly syncStatus: {
1791
+ readonly description: "If present, indicates the user has imported their contacts. If not present, indicates the user never used the feature or called `app.bsky.contact.removeData` and didn't import again since.";
1792
+ readonly type: "ref";
1793
+ readonly ref: "lex:app.bsky.contact.defs#syncStatus";
1794
+ };
1795
+ };
1796
+ };
1797
+ };
1798
+ readonly errors: [{
1799
+ readonly name: "TODO";
1800
+ readonly description: "TODO";
1801
+ }];
1802
+ };
1803
+ };
1804
+ };
1805
+ readonly AppBskyContactImportContacts: {
1806
+ readonly lexicon: 1;
1807
+ readonly id: "app.bsky.contact.importContacts";
1808
+ readonly defs: {
1809
+ readonly main: {
1810
+ readonly type: "procedure";
1811
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.";
1812
+ readonly input: {
1813
+ readonly encoding: "application/json";
1814
+ readonly schema: {
1815
+ readonly type: "object";
1816
+ readonly required: ["token", "contacts"];
1817
+ readonly properties: {
1818
+ readonly token: {
1819
+ readonly description: "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.";
1820
+ readonly type: "string";
1821
+ };
1822
+ readonly contacts: {
1823
+ readonly description: "List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`.";
1824
+ readonly type: "array";
1825
+ readonly items: {
1826
+ readonly type: "string";
1827
+ };
1828
+ readonly minLength: 1;
1829
+ readonly maxLength: 1000;
1830
+ };
1831
+ };
1832
+ };
1833
+ };
1834
+ readonly output: {
1835
+ readonly encoding: "application/json";
1836
+ readonly schema: {
1837
+ readonly type: "object";
1838
+ readonly required: ["matchesAndContactIndexes"];
1839
+ readonly properties: {
1840
+ readonly matchesAndContactIndexes: {
1841
+ readonly description: "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.";
1842
+ readonly type: "array";
1843
+ readonly items: {
1844
+ readonly type: "ref";
1845
+ readonly ref: "lex:app.bsky.contact.defs#matchAndContactIndex";
1846
+ };
1847
+ };
1848
+ };
1849
+ };
1850
+ };
1851
+ readonly errors: [{
1852
+ readonly name: "TODO";
1853
+ readonly description: "TODO";
1854
+ }];
1855
+ };
1856
+ };
1857
+ };
1858
+ readonly AppBskyContactRemoveData: {
1859
+ readonly lexicon: 1;
1860
+ readonly id: "app.bsky.contact.removeData";
1861
+ readonly defs: {
1862
+ readonly main: {
1863
+ readonly type: "procedure";
1864
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.";
1865
+ readonly input: {
1866
+ readonly encoding: "application/json";
1867
+ readonly schema: {
1868
+ readonly type: "object";
1869
+ readonly properties: {};
1870
+ };
1871
+ };
1872
+ readonly output: {
1873
+ readonly encoding: "application/json";
1874
+ readonly schema: {
1875
+ readonly type: "object";
1876
+ readonly properties: {};
1877
+ };
1878
+ };
1879
+ readonly errors: [{
1880
+ readonly name: "TODO";
1881
+ readonly description: "TODO";
1882
+ }];
1883
+ };
1884
+ };
1885
+ };
1886
+ readonly AppBskyContactSendNotification: {
1887
+ readonly lexicon: 1;
1888
+ readonly id: "app.bsky.contact.sendNotification";
1889
+ readonly defs: {
1890
+ readonly main: {
1891
+ readonly type: "procedure";
1892
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. System endpoint to send notifications related to contact imports. Requires role authentication.";
1893
+ readonly input: {
1894
+ readonly encoding: "application/json";
1895
+ readonly schema: {
1896
+ readonly type: "object";
1897
+ readonly required: ["from", "to"];
1898
+ readonly properties: {
1899
+ readonly from: {
1900
+ readonly description: "The DID of who this notification comes from.";
1901
+ readonly type: "string";
1902
+ readonly format: "did";
1903
+ };
1904
+ readonly to: {
1905
+ readonly description: "The DID of who this notification should go to.";
1906
+ readonly type: "string";
1907
+ readonly format: "did";
1908
+ };
1909
+ };
1910
+ };
1911
+ };
1912
+ readonly output: {
1913
+ readonly encoding: "application/json";
1914
+ readonly schema: {
1915
+ readonly type: "object";
1916
+ readonly properties: {};
1917
+ };
1918
+ };
1919
+ };
1920
+ };
1921
+ };
1922
+ readonly AppBskyContactStartPhoneVerification: {
1923
+ readonly lexicon: 1;
1924
+ readonly id: "app.bsky.contact.startPhoneVerification";
1925
+ readonly defs: {
1926
+ readonly main: {
1927
+ readonly type: "procedure";
1928
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Starts a phone verification flow. The phone passed will receive a code via SMS that should be passed to `app.bsky.contact.verifyPhone`. Requires authentication.";
1929
+ readonly input: {
1930
+ readonly encoding: "application/json";
1931
+ readonly schema: {
1932
+ readonly type: "object";
1933
+ readonly required: ["phone"];
1934
+ readonly properties: {
1935
+ readonly phone: {
1936
+ readonly description: "The phone number to receive the code via SMS.";
1937
+ readonly type: "string";
1938
+ };
1939
+ };
1940
+ };
1941
+ };
1942
+ readonly output: {
1943
+ readonly encoding: "application/json";
1944
+ readonly schema: {
1945
+ readonly type: "object";
1946
+ readonly properties: {};
1947
+ };
1948
+ };
1949
+ readonly errors: [{
1950
+ readonly name: "TODO";
1951
+ readonly description: "TODO";
1952
+ }];
1953
+ };
1954
+ };
1955
+ };
1956
+ readonly AppBskyContactVerifyPhone: {
1957
+ readonly lexicon: 1;
1958
+ readonly id: "app.bsky.contact.verifyPhone";
1959
+ readonly defs: {
1960
+ readonly main: {
1961
+ readonly type: "procedure";
1962
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.";
1963
+ readonly input: {
1964
+ readonly encoding: "application/json";
1965
+ readonly schema: {
1966
+ readonly type: "object";
1967
+ readonly required: ["phone", "code"];
1968
+ readonly properties: {
1969
+ readonly phone: {
1970
+ readonly description: "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.";
1971
+ readonly type: "string";
1972
+ };
1973
+ readonly code: {
1974
+ readonly description: "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.";
1975
+ readonly type: "string";
1976
+ };
1977
+ };
1978
+ };
1979
+ };
1980
+ readonly output: {
1981
+ readonly encoding: "application/json";
1982
+ readonly schema: {
1983
+ readonly type: "object";
1984
+ readonly required: ["token"];
1600
1985
  readonly properties: {
1601
- readonly cursor: {
1986
+ readonly token: {
1987
+ readonly description: "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.";
1602
1988
  readonly type: "string";
1603
1989
  };
1604
- readonly bookmarks: {
1605
- readonly type: "array";
1606
- readonly items: {
1607
- readonly type: "ref";
1608
- readonly ref: "lex:app.bsky.bookmark.defs#bookmarkView";
1609
- };
1610
- };
1611
1990
  };
1612
1991
  };
1613
1992
  };
1993
+ readonly errors: [{
1994
+ readonly name: "TODO";
1995
+ readonly description: "TODO";
1996
+ }];
1614
1997
  };
1615
1998
  };
1616
1999
  };
@@ -4147,6 +4530,26 @@ export declare const schemaDict: {
4147
4530
  readonly format: "at-uri";
4148
4531
  readonly description: "if the actor is followed by this DID, contains the AT-URI of the follow record";
4149
4532
  };
4533
+ readonly blocking: {
4534
+ readonly type: "string";
4535
+ readonly format: "at-uri";
4536
+ readonly description: "if the actor blocks this DID, this is the AT-URI of the block record";
4537
+ };
4538
+ readonly blockedBy: {
4539
+ readonly type: "string";
4540
+ readonly format: "at-uri";
4541
+ readonly description: "if the actor is blocked by this DID, contains the AT-URI of the block record";
4542
+ };
4543
+ readonly blockingByList: {
4544
+ readonly type: "string";
4545
+ readonly format: "at-uri";
4546
+ readonly description: "if the actor blocks this DID via a block list, this is the AT-URI of the listblock record";
4547
+ };
4548
+ readonly blockedByList: {
4549
+ readonly type: "string";
4550
+ readonly format: "at-uri";
4551
+ readonly description: "if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record";
4552
+ };
4150
4553
  };
4151
4554
  };
4152
4555
  };
@@ -13711,7 +14114,7 @@ export declare const schemas: ({
13711
14114
  readonly type: "array";
13712
14115
  readonly items: {
13713
14116
  readonly type: "union";
13714
- readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs"];
14117
+ readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#declaredAgePref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs"];
13715
14118
  };
13716
14119
  };
13717
14120
  readonly adultContentPref: {
@@ -13807,6 +14210,24 @@ export declare const schemas: ({
13807
14210
  };
13808
14211
  };
13809
14212
  };
14213
+ readonly declaredAgePref: {
14214
+ readonly type: "object";
14215
+ readonly description: "Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration.";
14216
+ readonly properties: {
14217
+ readonly isOverAge13: {
14218
+ readonly type: "boolean";
14219
+ readonly description: "Indicates if the user has declared that they are over 13 years of age.";
14220
+ };
14221
+ readonly isOverAge16: {
14222
+ readonly type: "boolean";
14223
+ readonly description: "Indicates if the user has declared that they are over 16 years of age.";
14224
+ };
14225
+ readonly isOverAge18: {
14226
+ readonly type: "boolean";
14227
+ readonly description: "Indicates if the user has declared that they are over 18 years of age.";
14228
+ };
14229
+ };
14230
+ };
13810
14231
  readonly feedViewPref: {
13811
14232
  readonly type: "object";
13812
14233
  readonly required: ["feed"];
@@ -14718,56 +15139,320 @@ export declare const schemas: ({
14718
15139
  readonly type: "string";
14719
15140
  readonly description: "The email used for Age Assurance.";
14720
15141
  };
14721
- readonly initIp: {
15142
+ readonly initIp: {
15143
+ readonly type: "string";
15144
+ readonly description: "The IP address used when initiating the Age Assurance flow.";
15145
+ };
15146
+ readonly initUa: {
15147
+ readonly type: "string";
15148
+ readonly description: "The user agent used when initiating the Age Assurance flow.";
15149
+ };
15150
+ readonly completeIp: {
15151
+ readonly type: "string";
15152
+ readonly description: "The IP address used when completing the Age Assurance flow.";
15153
+ };
15154
+ readonly completeUa: {
15155
+ readonly type: "string";
15156
+ readonly description: "The user agent used when completing the Age Assurance flow.";
15157
+ };
15158
+ };
15159
+ };
15160
+ };
15161
+ } | {
15162
+ readonly lexicon: 1;
15163
+ readonly id: "app.bsky.ageassurance.getConfig";
15164
+ readonly defs: {
15165
+ readonly main: {
15166
+ readonly type: "query";
15167
+ readonly description: "Returns Age Assurance configuration for use on the client.";
15168
+ readonly output: {
15169
+ readonly encoding: "application/json";
15170
+ readonly schema: {
15171
+ readonly type: "ref";
15172
+ readonly ref: "lex:app.bsky.ageassurance.defs#config";
15173
+ };
15174
+ };
15175
+ };
15176
+ };
15177
+ } | {
15178
+ readonly lexicon: 1;
15179
+ readonly id: "app.bsky.ageassurance.getState";
15180
+ readonly defs: {
15181
+ readonly main: {
15182
+ readonly type: "query";
15183
+ readonly description: "Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.";
15184
+ readonly parameters: {
15185
+ readonly type: "params";
15186
+ readonly required: ["countryCode"];
15187
+ readonly properties: {
15188
+ readonly countryCode: {
15189
+ readonly type: "string";
15190
+ };
15191
+ readonly regionCode: {
15192
+ readonly type: "string";
15193
+ };
15194
+ };
15195
+ };
15196
+ readonly output: {
15197
+ readonly encoding: "application/json";
15198
+ readonly schema: {
15199
+ readonly type: "object";
15200
+ readonly required: ["state", "metadata"];
15201
+ readonly properties: {
15202
+ readonly state: {
15203
+ readonly type: "ref";
15204
+ readonly ref: "lex:app.bsky.ageassurance.defs#state";
15205
+ };
15206
+ readonly metadata: {
15207
+ readonly type: "ref";
15208
+ readonly ref: "lex:app.bsky.ageassurance.defs#stateMetadata";
15209
+ };
15210
+ };
15211
+ };
15212
+ };
15213
+ };
15214
+ };
15215
+ } | {
15216
+ readonly lexicon: 1;
15217
+ readonly id: "app.bsky.bookmark.createBookmark";
15218
+ readonly defs: {
15219
+ readonly main: {
15220
+ readonly type: "procedure";
15221
+ readonly description: "Creates a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.";
15222
+ readonly input: {
15223
+ readonly encoding: "application/json";
15224
+ readonly schema: {
15225
+ readonly type: "object";
15226
+ readonly required: ["uri", "cid"];
15227
+ readonly properties: {
15228
+ readonly uri: {
15229
+ readonly type: "string";
15230
+ readonly format: "at-uri";
15231
+ };
15232
+ readonly cid: {
15233
+ readonly type: "string";
15234
+ readonly format: "cid";
15235
+ };
15236
+ };
15237
+ };
15238
+ };
15239
+ readonly errors: [{
15240
+ readonly name: "UnsupportedCollection";
15241
+ readonly description: "The URI to be bookmarked is for an unsupported collection.";
15242
+ }];
15243
+ };
15244
+ };
15245
+ } | {
15246
+ readonly lexicon: 1;
15247
+ readonly id: "app.bsky.bookmark.defs";
15248
+ readonly defs: {
15249
+ readonly bookmark: {
15250
+ readonly description: "Object used to store bookmark data in stash.";
15251
+ readonly type: "object";
15252
+ readonly required: ["subject"];
15253
+ readonly properties: {
15254
+ readonly subject: {
15255
+ readonly description: "A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.";
15256
+ readonly type: "ref";
15257
+ readonly ref: "lex:com.atproto.repo.strongRef";
15258
+ };
15259
+ };
15260
+ };
15261
+ readonly bookmarkView: {
15262
+ readonly type: "object";
15263
+ readonly required: ["subject", "item"];
15264
+ readonly properties: {
15265
+ readonly subject: {
15266
+ readonly description: "A strong ref to the bookmarked record.";
15267
+ readonly type: "ref";
15268
+ readonly ref: "lex:com.atproto.repo.strongRef";
15269
+ };
15270
+ readonly createdAt: {
15271
+ readonly type: "string";
15272
+ readonly format: "datetime";
15273
+ };
15274
+ readonly item: {
15275
+ readonly type: "union";
15276
+ readonly refs: ["lex:app.bsky.feed.defs#blockedPost", "lex:app.bsky.feed.defs#notFoundPost", "lex:app.bsky.feed.defs#postView"];
15277
+ };
15278
+ };
15279
+ };
15280
+ };
15281
+ } | {
15282
+ readonly lexicon: 1;
15283
+ readonly id: "app.bsky.bookmark.deleteBookmark";
15284
+ readonly defs: {
15285
+ readonly main: {
15286
+ readonly type: "procedure";
15287
+ readonly description: "Deletes a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.";
15288
+ readonly input: {
15289
+ readonly encoding: "application/json";
15290
+ readonly schema: {
15291
+ readonly type: "object";
15292
+ readonly required: ["uri"];
15293
+ readonly properties: {
15294
+ readonly uri: {
15295
+ readonly type: "string";
15296
+ readonly format: "at-uri";
15297
+ };
15298
+ };
15299
+ };
15300
+ };
15301
+ readonly errors: [{
15302
+ readonly name: "UnsupportedCollection";
15303
+ readonly description: "The URI to be bookmarked is for an unsupported collection.";
15304
+ }];
15305
+ };
15306
+ };
15307
+ } | {
15308
+ readonly lexicon: 1;
15309
+ readonly id: "app.bsky.bookmark.getBookmarks";
15310
+ readonly defs: {
15311
+ readonly main: {
15312
+ readonly type: "query";
15313
+ readonly description: "Gets views of records bookmarked by the authenticated user. Requires authentication.";
15314
+ readonly parameters: {
15315
+ readonly type: "params";
15316
+ readonly properties: {
15317
+ readonly limit: {
15318
+ readonly type: "integer";
15319
+ readonly minimum: 1;
15320
+ readonly maximum: 100;
15321
+ readonly default: 50;
15322
+ };
15323
+ readonly cursor: {
15324
+ readonly type: "string";
15325
+ };
15326
+ };
15327
+ };
15328
+ readonly output: {
15329
+ readonly encoding: "application/json";
15330
+ readonly schema: {
15331
+ readonly type: "object";
15332
+ readonly required: ["bookmarks"];
15333
+ readonly properties: {
15334
+ readonly cursor: {
15335
+ readonly type: "string";
15336
+ };
15337
+ readonly bookmarks: {
15338
+ readonly type: "array";
15339
+ readonly items: {
15340
+ readonly type: "ref";
15341
+ readonly ref: "lex:app.bsky.bookmark.defs#bookmarkView";
15342
+ };
15343
+ };
15344
+ };
15345
+ };
15346
+ };
15347
+ };
15348
+ };
15349
+ } | {
15350
+ readonly lexicon: 1;
15351
+ readonly id: "app.bsky.contact.defs";
15352
+ readonly defs: {
15353
+ readonly matchAndContactIndex: {
15354
+ readonly description: "Associates a profile with the positional index of the contact import input in the call to `app.bsky.contact.importContacts`, so clients can know which phone caused a particular match.";
15355
+ readonly type: "object";
15356
+ readonly required: ["match", "contactIndex"];
15357
+ readonly properties: {
15358
+ readonly match: {
15359
+ readonly description: "Profile of the matched user.";
15360
+ readonly type: "ref";
15361
+ readonly ref: "lex:app.bsky.actor.defs#profileView";
15362
+ };
15363
+ readonly contactIndex: {
15364
+ readonly description: "The index of this match in the import contact input.";
15365
+ readonly type: "integer";
15366
+ readonly minimum: 0;
15367
+ readonly maximum: 999;
15368
+ };
15369
+ };
15370
+ };
15371
+ readonly syncStatus: {
15372
+ readonly type: "object";
15373
+ readonly required: ["syncedAt", "matchesCount"];
15374
+ readonly properties: {
15375
+ readonly syncedAt: {
15376
+ readonly description: "Last date when contacts where imported.";
14722
15377
  readonly type: "string";
14723
- readonly description: "The IP address used when initiating the Age Assurance flow.";
15378
+ readonly format: "datetime";
14724
15379
  };
14725
- readonly initUa: {
14726
- readonly type: "string";
14727
- readonly description: "The user agent used when initiating the Age Assurance flow.";
15380
+ readonly matchesCount: {
15381
+ readonly description: "Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match.";
15382
+ readonly type: "integer";
15383
+ readonly minimum: 0;
14728
15384
  };
14729
- readonly completeIp: {
15385
+ };
15386
+ };
15387
+ readonly notification: {
15388
+ readonly description: "A stash object to be sent via bsync representing a notification to be created.";
15389
+ readonly type: "object";
15390
+ readonly required: ["from", "to"];
15391
+ readonly properties: {
15392
+ readonly from: {
15393
+ readonly description: "The DID of who this notification comes from.";
14730
15394
  readonly type: "string";
14731
- readonly description: "The IP address used when completing the Age Assurance flow.";
15395
+ readonly format: "did";
14732
15396
  };
14733
- readonly completeUa: {
15397
+ readonly to: {
15398
+ readonly description: "The DID of who this notification should go to.";
14734
15399
  readonly type: "string";
14735
- readonly description: "The user agent used when completing the Age Assurance flow.";
15400
+ readonly format: "did";
14736
15401
  };
14737
15402
  };
14738
15403
  };
14739
15404
  };
14740
15405
  } | {
14741
15406
  readonly lexicon: 1;
14742
- readonly id: "app.bsky.ageassurance.getConfig";
15407
+ readonly id: "app.bsky.contact.dismissMatch";
14743
15408
  readonly defs: {
14744
15409
  readonly main: {
14745
- readonly type: "query";
14746
- readonly description: "Returns Age Assurance configuration for use on the client.";
15410
+ readonly type: "procedure";
15411
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.";
15412
+ readonly input: {
15413
+ readonly encoding: "application/json";
15414
+ readonly schema: {
15415
+ readonly type: "object";
15416
+ readonly required: ["subject"];
15417
+ readonly properties: {
15418
+ readonly subject: {
15419
+ readonly description: "The subject's DID to dismiss the match with.";
15420
+ readonly type: "string";
15421
+ readonly format: "did";
15422
+ };
15423
+ };
15424
+ };
15425
+ };
14747
15426
  readonly output: {
14748
15427
  readonly encoding: "application/json";
14749
15428
  readonly schema: {
14750
- readonly type: "ref";
14751
- readonly ref: "lex:app.bsky.ageassurance.defs#config";
15429
+ readonly type: "object";
15430
+ readonly properties: {};
14752
15431
  };
14753
15432
  };
15433
+ readonly errors: [{
15434
+ readonly name: "TODO";
15435
+ readonly description: "TODO";
15436
+ }];
14754
15437
  };
14755
15438
  };
14756
15439
  } | {
14757
15440
  readonly lexicon: 1;
14758
- readonly id: "app.bsky.ageassurance.getState";
15441
+ readonly id: "app.bsky.contact.getMatches";
14759
15442
  readonly defs: {
14760
15443
  readonly main: {
14761
15444
  readonly type: "query";
14762
- readonly description: "Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.";
15445
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.";
14763
15446
  readonly parameters: {
14764
15447
  readonly type: "params";
14765
- readonly required: ["countryCode"];
14766
15448
  readonly properties: {
14767
- readonly countryCode: {
14768
- readonly type: "string";
15449
+ readonly limit: {
15450
+ readonly type: "integer";
15451
+ readonly minimum: 1;
15452
+ readonly maximum: 100;
15453
+ readonly default: 50;
14769
15454
  };
14770
- readonly regionCode: {
15455
+ readonly cursor: {
14771
15456
  readonly type: "string";
14772
15457
  };
14773
15458
  };
@@ -14776,131 +15461,225 @@ export declare const schemas: ({
14776
15461
  readonly encoding: "application/json";
14777
15462
  readonly schema: {
14778
15463
  readonly type: "object";
14779
- readonly required: ["state", "metadata"];
15464
+ readonly required: ["matches"];
14780
15465
  readonly properties: {
14781
- readonly state: {
14782
- readonly type: "ref";
14783
- readonly ref: "lex:app.bsky.ageassurance.defs#state";
15466
+ readonly cursor: {
15467
+ readonly type: "string";
14784
15468
  };
14785
- readonly metadata: {
15469
+ readonly matches: {
15470
+ readonly type: "array";
15471
+ readonly items: {
15472
+ readonly type: "ref";
15473
+ readonly ref: "lex:app.bsky.actor.defs#profileView";
15474
+ };
15475
+ };
15476
+ };
15477
+ };
15478
+ };
15479
+ readonly errors: [{
15480
+ readonly name: "TODO";
15481
+ readonly description: "TODO";
15482
+ }];
15483
+ };
15484
+ };
15485
+ } | {
15486
+ readonly lexicon: 1;
15487
+ readonly id: "app.bsky.contact.getSyncStatus";
15488
+ readonly defs: {
15489
+ readonly main: {
15490
+ readonly type: "query";
15491
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Gets the user's current contact import status. Requires authentication.";
15492
+ readonly parameters: {
15493
+ readonly type: "params";
15494
+ readonly properties: {};
15495
+ };
15496
+ readonly output: {
15497
+ readonly encoding: "application/json";
15498
+ readonly schema: {
15499
+ readonly type: "object";
15500
+ readonly properties: {
15501
+ readonly syncStatus: {
15502
+ readonly description: "If present, indicates the user has imported their contacts. If not present, indicates the user never used the feature or called `app.bsky.contact.removeData` and didn't import again since.";
14786
15503
  readonly type: "ref";
14787
- readonly ref: "lex:app.bsky.ageassurance.defs#stateMetadata";
15504
+ readonly ref: "lex:app.bsky.contact.defs#syncStatus";
14788
15505
  };
14789
15506
  };
14790
15507
  };
14791
15508
  };
15509
+ readonly errors: [{
15510
+ readonly name: "TODO";
15511
+ readonly description: "TODO";
15512
+ }];
14792
15513
  };
14793
15514
  };
14794
15515
  } | {
14795
15516
  readonly lexicon: 1;
14796
- readonly id: "app.bsky.bookmark.createBookmark";
15517
+ readonly id: "app.bsky.contact.importContacts";
14797
15518
  readonly defs: {
14798
15519
  readonly main: {
14799
15520
  readonly type: "procedure";
14800
- readonly description: "Creates a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.";
15521
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.";
14801
15522
  readonly input: {
14802
15523
  readonly encoding: "application/json";
14803
15524
  readonly schema: {
14804
15525
  readonly type: "object";
14805
- readonly required: ["uri", "cid"];
15526
+ readonly required: ["token", "contacts"];
14806
15527
  readonly properties: {
14807
- readonly uri: {
15528
+ readonly token: {
15529
+ readonly description: "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.";
14808
15530
  readonly type: "string";
14809
- readonly format: "at-uri";
14810
15531
  };
14811
- readonly cid: {
14812
- readonly type: "string";
14813
- readonly format: "cid";
15532
+ readonly contacts: {
15533
+ readonly description: "List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`.";
15534
+ readonly type: "array";
15535
+ readonly items: {
15536
+ readonly type: "string";
15537
+ };
15538
+ readonly minLength: 1;
15539
+ readonly maxLength: 1000;
15540
+ };
15541
+ };
15542
+ };
15543
+ };
15544
+ readonly output: {
15545
+ readonly encoding: "application/json";
15546
+ readonly schema: {
15547
+ readonly type: "object";
15548
+ readonly required: ["matchesAndContactIndexes"];
15549
+ readonly properties: {
15550
+ readonly matchesAndContactIndexes: {
15551
+ readonly description: "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.";
15552
+ readonly type: "array";
15553
+ readonly items: {
15554
+ readonly type: "ref";
15555
+ readonly ref: "lex:app.bsky.contact.defs#matchAndContactIndex";
15556
+ };
14814
15557
  };
14815
15558
  };
14816
15559
  };
14817
15560
  };
14818
15561
  readonly errors: [{
14819
- readonly name: "UnsupportedCollection";
14820
- readonly description: "The URI to be bookmarked is for an unsupported collection.";
15562
+ readonly name: "TODO";
15563
+ readonly description: "TODO";
14821
15564
  }];
14822
15565
  };
14823
15566
  };
14824
15567
  } | {
14825
15568
  readonly lexicon: 1;
14826
- readonly id: "app.bsky.bookmark.defs";
15569
+ readonly id: "app.bsky.contact.removeData";
14827
15570
  readonly defs: {
14828
- readonly bookmark: {
14829
- readonly description: "Object used to store bookmark data in stash.";
14830
- readonly type: "object";
14831
- readonly required: ["subject"];
14832
- readonly properties: {
14833
- readonly subject: {
14834
- readonly description: "A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.";
14835
- readonly type: "ref";
14836
- readonly ref: "lex:com.atproto.repo.strongRef";
15571
+ readonly main: {
15572
+ readonly type: "procedure";
15573
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.";
15574
+ readonly input: {
15575
+ readonly encoding: "application/json";
15576
+ readonly schema: {
15577
+ readonly type: "object";
15578
+ readonly properties: {};
14837
15579
  };
14838
15580
  };
14839
- };
14840
- readonly bookmarkView: {
14841
- readonly type: "object";
14842
- readonly required: ["subject", "item"];
14843
- readonly properties: {
14844
- readonly subject: {
14845
- readonly description: "A strong ref to the bookmarked record.";
14846
- readonly type: "ref";
14847
- readonly ref: "lex:com.atproto.repo.strongRef";
15581
+ readonly output: {
15582
+ readonly encoding: "application/json";
15583
+ readonly schema: {
15584
+ readonly type: "object";
15585
+ readonly properties: {};
14848
15586
  };
14849
- readonly createdAt: {
14850
- readonly type: "string";
14851
- readonly format: "datetime";
15587
+ };
15588
+ readonly errors: [{
15589
+ readonly name: "TODO";
15590
+ readonly description: "TODO";
15591
+ }];
15592
+ };
15593
+ };
15594
+ } | {
15595
+ readonly lexicon: 1;
15596
+ readonly id: "app.bsky.contact.sendNotification";
15597
+ readonly defs: {
15598
+ readonly main: {
15599
+ readonly type: "procedure";
15600
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. System endpoint to send notifications related to contact imports. Requires role authentication.";
15601
+ readonly input: {
15602
+ readonly encoding: "application/json";
15603
+ readonly schema: {
15604
+ readonly type: "object";
15605
+ readonly required: ["from", "to"];
15606
+ readonly properties: {
15607
+ readonly from: {
15608
+ readonly description: "The DID of who this notification comes from.";
15609
+ readonly type: "string";
15610
+ readonly format: "did";
15611
+ };
15612
+ readonly to: {
15613
+ readonly description: "The DID of who this notification should go to.";
15614
+ readonly type: "string";
15615
+ readonly format: "did";
15616
+ };
15617
+ };
14852
15618
  };
14853
- readonly item: {
14854
- readonly type: "union";
14855
- readonly refs: ["lex:app.bsky.feed.defs#blockedPost", "lex:app.bsky.feed.defs#notFoundPost", "lex:app.bsky.feed.defs#postView"];
15619
+ };
15620
+ readonly output: {
15621
+ readonly encoding: "application/json";
15622
+ readonly schema: {
15623
+ readonly type: "object";
15624
+ readonly properties: {};
14856
15625
  };
14857
15626
  };
14858
15627
  };
14859
15628
  };
14860
15629
  } | {
14861
15630
  readonly lexicon: 1;
14862
- readonly id: "app.bsky.bookmark.deleteBookmark";
15631
+ readonly id: "app.bsky.contact.startPhoneVerification";
14863
15632
  readonly defs: {
14864
15633
  readonly main: {
14865
15634
  readonly type: "procedure";
14866
- readonly description: "Deletes a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.";
15635
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Starts a phone verification flow. The phone passed will receive a code via SMS that should be passed to `app.bsky.contact.verifyPhone`. Requires authentication.";
14867
15636
  readonly input: {
14868
15637
  readonly encoding: "application/json";
14869
15638
  readonly schema: {
14870
15639
  readonly type: "object";
14871
- readonly required: ["uri"];
15640
+ readonly required: ["phone"];
14872
15641
  readonly properties: {
14873
- readonly uri: {
15642
+ readonly phone: {
15643
+ readonly description: "The phone number to receive the code via SMS.";
14874
15644
  readonly type: "string";
14875
- readonly format: "at-uri";
14876
15645
  };
14877
15646
  };
14878
15647
  };
14879
15648
  };
15649
+ readonly output: {
15650
+ readonly encoding: "application/json";
15651
+ readonly schema: {
15652
+ readonly type: "object";
15653
+ readonly properties: {};
15654
+ };
15655
+ };
14880
15656
  readonly errors: [{
14881
- readonly name: "UnsupportedCollection";
14882
- readonly description: "The URI to be bookmarked is for an unsupported collection.";
15657
+ readonly name: "TODO";
15658
+ readonly description: "TODO";
14883
15659
  }];
14884
15660
  };
14885
15661
  };
14886
15662
  } | {
14887
15663
  readonly lexicon: 1;
14888
- readonly id: "app.bsky.bookmark.getBookmarks";
15664
+ readonly id: "app.bsky.contact.verifyPhone";
14889
15665
  readonly defs: {
14890
15666
  readonly main: {
14891
- readonly type: "query";
14892
- readonly description: "Gets views of records bookmarked by the authenticated user. Requires authentication.";
14893
- readonly parameters: {
14894
- readonly type: "params";
14895
- readonly properties: {
14896
- readonly limit: {
14897
- readonly type: "integer";
14898
- readonly minimum: 1;
14899
- readonly maximum: 100;
14900
- readonly default: 50;
14901
- };
14902
- readonly cursor: {
14903
- readonly type: "string";
15667
+ readonly type: "procedure";
15668
+ readonly description: "WARNING: This is unstable and under active development, don't use it while this warning is here. Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.";
15669
+ readonly input: {
15670
+ readonly encoding: "application/json";
15671
+ readonly schema: {
15672
+ readonly type: "object";
15673
+ readonly required: ["phone", "code"];
15674
+ readonly properties: {
15675
+ readonly phone: {
15676
+ readonly description: "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.";
15677
+ readonly type: "string";
15678
+ };
15679
+ readonly code: {
15680
+ readonly description: "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.";
15681
+ readonly type: "string";
15682
+ };
14904
15683
  };
14905
15684
  };
14906
15685
  };
@@ -14908,21 +15687,19 @@ export declare const schemas: ({
14908
15687
  readonly encoding: "application/json";
14909
15688
  readonly schema: {
14910
15689
  readonly type: "object";
14911
- readonly required: ["bookmarks"];
15690
+ readonly required: ["token"];
14912
15691
  readonly properties: {
14913
- readonly cursor: {
15692
+ readonly token: {
15693
+ readonly description: "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.";
14914
15694
  readonly type: "string";
14915
15695
  };
14916
- readonly bookmarks: {
14917
- readonly type: "array";
14918
- readonly items: {
14919
- readonly type: "ref";
14920
- readonly ref: "lex:app.bsky.bookmark.defs#bookmarkView";
14921
- };
14922
- };
14923
15696
  };
14924
15697
  };
14925
15698
  };
15699
+ readonly errors: [{
15700
+ readonly name: "TODO";
15701
+ readonly description: "TODO";
15702
+ }];
14926
15703
  };
14927
15704
  };
14928
15705
  } | {
@@ -17426,6 +18203,26 @@ export declare const schemas: ({
17426
18203
  readonly format: "at-uri";
17427
18204
  readonly description: "if the actor is followed by this DID, contains the AT-URI of the follow record";
17428
18205
  };
18206
+ readonly blocking: {
18207
+ readonly type: "string";
18208
+ readonly format: "at-uri";
18209
+ readonly description: "if the actor blocks this DID, this is the AT-URI of the block record";
18210
+ };
18211
+ readonly blockedBy: {
18212
+ readonly type: "string";
18213
+ readonly format: "at-uri";
18214
+ readonly description: "if the actor is blocked by this DID, contains the AT-URI of the block record";
18215
+ };
18216
+ readonly blockingByList: {
18217
+ readonly type: "string";
18218
+ readonly format: "at-uri";
18219
+ readonly description: "if the actor blocks this DID via a block list, this is the AT-URI of the listblock record";
18220
+ };
18221
+ readonly blockedByList: {
18222
+ readonly type: "string";
18223
+ readonly format: "at-uri";
18224
+ readonly description: "if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record";
18225
+ };
17429
18226
  };
17430
18227
  };
17431
18228
  };
@@ -26444,6 +27241,15 @@ export declare const ids: {
26444
27241
  readonly AppBskyBookmarkDefs: "app.bsky.bookmark.defs";
26445
27242
  readonly AppBskyBookmarkDeleteBookmark: "app.bsky.bookmark.deleteBookmark";
26446
27243
  readonly AppBskyBookmarkGetBookmarks: "app.bsky.bookmark.getBookmarks";
27244
+ readonly AppBskyContactDefs: "app.bsky.contact.defs";
27245
+ readonly AppBskyContactDismissMatch: "app.bsky.contact.dismissMatch";
27246
+ readonly AppBskyContactGetMatches: "app.bsky.contact.getMatches";
27247
+ readonly AppBskyContactGetSyncStatus: "app.bsky.contact.getSyncStatus";
27248
+ readonly AppBskyContactImportContacts: "app.bsky.contact.importContacts";
27249
+ readonly AppBskyContactRemoveData: "app.bsky.contact.removeData";
27250
+ readonly AppBskyContactSendNotification: "app.bsky.contact.sendNotification";
27251
+ readonly AppBskyContactStartPhoneVerification: "app.bsky.contact.startPhoneVerification";
27252
+ readonly AppBskyContactVerifyPhone: "app.bsky.contact.verifyPhone";
26447
27253
  readonly AppBskyEmbedDefs: "app.bsky.embed.defs";
26448
27254
  readonly AppBskyEmbedExternal: "app.bsky.embed.external";
26449
27255
  readonly AppBskyEmbedImages: "app.bsky.embed.images";