@atproto/pds 0.4.197 → 0.4.198
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 +17 -0
- package/dist/lexicon/index.d.ts +19 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +48 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +668 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +356 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/defs.d.ts +24 -0
- package/dist/lexicon/types/app/bsky/contact/defs.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/defs.js +25 -0
- package/dist/lexicon/types/app/bsky/contact/defs.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/getMatches.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/getMatches.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts +21 -0
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts +30 -0
- package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/importContacts.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/importContacts.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/removeData.d.ts +23 -0
- package/dist/lexicon/types/app/bsky/contact/removeData.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/removeData.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/removeData.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.js.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/defs.d.ts +8 -0
- package/dist/lexicon/types/app/bsky/graph/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/defs.js.map +1 -1
- package/package.json +13 -13
- package/src/lexicon/index.ts +101 -0
- package/src/lexicon/lexicons.ts +377 -0
- package/src/lexicon/types/app/bsky/contact/defs.ts +52 -0
- package/src/lexicon/types/app/bsky/contact/dismissMatch.ts +43 -0
- package/src/lexicon/types/app/bsky/contact/getMatches.ts +43 -0
- package/src/lexicon/types/app/bsky/contact/getSyncStatus.ts +39 -0
- package/src/lexicon/types/app/bsky/contact/importContacts.ts +49 -0
- package/src/lexicon/types/app/bsky/contact/removeData.ts +40 -0
- package/src/lexicon/types/app/bsky/contact/startPhoneVerification.ts +43 -0
- package/src/lexicon/types/app/bsky/contact/verifyPhone.ts +48 -0
- package/src/lexicon/types/app/bsky/graph/defs.ts +8 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1614,6 +1614,318 @@ export declare const schemaDict: {
|
|
|
1614
1614
|
};
|
|
1615
1615
|
};
|
|
1616
1616
|
};
|
|
1617
|
+
readonly AppBskyContactDefs: {
|
|
1618
|
+
readonly lexicon: 1;
|
|
1619
|
+
readonly id: "app.bsky.contact.defs";
|
|
1620
|
+
readonly defs: {
|
|
1621
|
+
readonly matchAndContactIndex: {
|
|
1622
|
+
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.";
|
|
1623
|
+
readonly type: "object";
|
|
1624
|
+
readonly required: ["match", "contactIndex"];
|
|
1625
|
+
readonly properties: {
|
|
1626
|
+
readonly match: {
|
|
1627
|
+
readonly description: "Profile of the matched user.";
|
|
1628
|
+
readonly type: "ref";
|
|
1629
|
+
readonly ref: "lex:app.bsky.actor.defs#profileView";
|
|
1630
|
+
};
|
|
1631
|
+
readonly contactIndex: {
|
|
1632
|
+
readonly description: "The index of this match in the import contact input.";
|
|
1633
|
+
readonly type: "integer";
|
|
1634
|
+
readonly minimum: 0;
|
|
1635
|
+
readonly maximum: 999;
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
readonly syncStatus: {
|
|
1640
|
+
readonly type: "object";
|
|
1641
|
+
readonly required: ["syncedAt", "matchesCount"];
|
|
1642
|
+
readonly properties: {
|
|
1643
|
+
readonly syncedAt: {
|
|
1644
|
+
readonly description: "Last date when contacts where imported.";
|
|
1645
|
+
readonly type: "string";
|
|
1646
|
+
readonly format: "datetime";
|
|
1647
|
+
};
|
|
1648
|
+
readonly matchesCount: {
|
|
1649
|
+
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.";
|
|
1650
|
+
readonly type: "integer";
|
|
1651
|
+
readonly minimum: 0;
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
readonly AppBskyContactDismissMatch: {
|
|
1658
|
+
readonly lexicon: 1;
|
|
1659
|
+
readonly id: "app.bsky.contact.dismissMatch";
|
|
1660
|
+
readonly defs: {
|
|
1661
|
+
readonly main: {
|
|
1662
|
+
readonly type: "procedure";
|
|
1663
|
+
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.";
|
|
1664
|
+
readonly input: {
|
|
1665
|
+
readonly encoding: "application/json";
|
|
1666
|
+
readonly schema: {
|
|
1667
|
+
readonly type: "object";
|
|
1668
|
+
readonly required: ["subject"];
|
|
1669
|
+
readonly properties: {
|
|
1670
|
+
readonly subject: {
|
|
1671
|
+
readonly description: "The subject's DID to dismiss the match with.";
|
|
1672
|
+
readonly type: "string";
|
|
1673
|
+
readonly format: "did";
|
|
1674
|
+
};
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
readonly output: {
|
|
1679
|
+
readonly encoding: "application/json";
|
|
1680
|
+
readonly schema: {
|
|
1681
|
+
readonly type: "object";
|
|
1682
|
+
readonly properties: {};
|
|
1683
|
+
};
|
|
1684
|
+
};
|
|
1685
|
+
readonly errors: [{
|
|
1686
|
+
readonly name: "TODO";
|
|
1687
|
+
readonly description: "TODO";
|
|
1688
|
+
}];
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
readonly AppBskyContactGetMatches: {
|
|
1693
|
+
readonly lexicon: 1;
|
|
1694
|
+
readonly id: "app.bsky.contact.getMatches";
|
|
1695
|
+
readonly defs: {
|
|
1696
|
+
readonly main: {
|
|
1697
|
+
readonly type: "query";
|
|
1698
|
+
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.";
|
|
1699
|
+
readonly parameters: {
|
|
1700
|
+
readonly type: "params";
|
|
1701
|
+
readonly properties: {
|
|
1702
|
+
readonly limit: {
|
|
1703
|
+
readonly type: "integer";
|
|
1704
|
+
readonly minimum: 1;
|
|
1705
|
+
readonly maximum: 100;
|
|
1706
|
+
readonly default: 50;
|
|
1707
|
+
};
|
|
1708
|
+
readonly cursor: {
|
|
1709
|
+
readonly type: "string";
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
readonly output: {
|
|
1714
|
+
readonly encoding: "application/json";
|
|
1715
|
+
readonly schema: {
|
|
1716
|
+
readonly type: "object";
|
|
1717
|
+
readonly required: ["matches"];
|
|
1718
|
+
readonly properties: {
|
|
1719
|
+
readonly cursor: {
|
|
1720
|
+
readonly type: "string";
|
|
1721
|
+
};
|
|
1722
|
+
readonly matches: {
|
|
1723
|
+
readonly type: "array";
|
|
1724
|
+
readonly items: {
|
|
1725
|
+
readonly type: "ref";
|
|
1726
|
+
readonly ref: "lex:app.bsky.actor.defs#profileView";
|
|
1727
|
+
};
|
|
1728
|
+
};
|
|
1729
|
+
};
|
|
1730
|
+
};
|
|
1731
|
+
};
|
|
1732
|
+
readonly errors: [{
|
|
1733
|
+
readonly name: "TODO";
|
|
1734
|
+
readonly description: "TODO";
|
|
1735
|
+
}];
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1739
|
+
readonly AppBskyContactGetSyncStatus: {
|
|
1740
|
+
readonly lexicon: 1;
|
|
1741
|
+
readonly id: "app.bsky.contact.getSyncStatus";
|
|
1742
|
+
readonly defs: {
|
|
1743
|
+
readonly main: {
|
|
1744
|
+
readonly type: "query";
|
|
1745
|
+
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.";
|
|
1746
|
+
readonly parameters: {
|
|
1747
|
+
readonly type: "params";
|
|
1748
|
+
readonly properties: {};
|
|
1749
|
+
};
|
|
1750
|
+
readonly output: {
|
|
1751
|
+
readonly encoding: "application/json";
|
|
1752
|
+
readonly schema: {
|
|
1753
|
+
readonly type: "object";
|
|
1754
|
+
readonly properties: {
|
|
1755
|
+
readonly syncStatus: {
|
|
1756
|
+
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.";
|
|
1757
|
+
readonly type: "ref";
|
|
1758
|
+
readonly ref: "lex:app.bsky.contact.defs#syncStatus";
|
|
1759
|
+
};
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1762
|
+
};
|
|
1763
|
+
readonly errors: [{
|
|
1764
|
+
readonly name: "TODO";
|
|
1765
|
+
readonly description: "TODO";
|
|
1766
|
+
}];
|
|
1767
|
+
};
|
|
1768
|
+
};
|
|
1769
|
+
};
|
|
1770
|
+
readonly AppBskyContactImportContacts: {
|
|
1771
|
+
readonly lexicon: 1;
|
|
1772
|
+
readonly id: "app.bsky.contact.importContacts";
|
|
1773
|
+
readonly defs: {
|
|
1774
|
+
readonly main: {
|
|
1775
|
+
readonly type: "procedure";
|
|
1776
|
+
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.";
|
|
1777
|
+
readonly input: {
|
|
1778
|
+
readonly encoding: "application/json";
|
|
1779
|
+
readonly schema: {
|
|
1780
|
+
readonly type: "object";
|
|
1781
|
+
readonly required: ["token", "contacts"];
|
|
1782
|
+
readonly properties: {
|
|
1783
|
+
readonly token: {
|
|
1784
|
+
readonly description: "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.";
|
|
1785
|
+
readonly type: "string";
|
|
1786
|
+
};
|
|
1787
|
+
readonly contacts: {
|
|
1788
|
+
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`.";
|
|
1789
|
+
readonly type: "array";
|
|
1790
|
+
readonly items: {
|
|
1791
|
+
readonly type: "string";
|
|
1792
|
+
};
|
|
1793
|
+
readonly minLength: 1;
|
|
1794
|
+
readonly maxLength: 1000;
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
};
|
|
1798
|
+
};
|
|
1799
|
+
readonly output: {
|
|
1800
|
+
readonly encoding: "application/json";
|
|
1801
|
+
readonly schema: {
|
|
1802
|
+
readonly type: "object";
|
|
1803
|
+
readonly required: ["matchesAndContactIndexes"];
|
|
1804
|
+
readonly properties: {
|
|
1805
|
+
readonly matchesAndContactIndexes: {
|
|
1806
|
+
readonly description: "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.";
|
|
1807
|
+
readonly type: "array";
|
|
1808
|
+
readonly items: {
|
|
1809
|
+
readonly type: "ref";
|
|
1810
|
+
readonly ref: "lex:app.bsky.contact.defs#matchAndContactIndex";
|
|
1811
|
+
};
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
readonly errors: [{
|
|
1817
|
+
readonly name: "TODO";
|
|
1818
|
+
readonly description: "TODO";
|
|
1819
|
+
}];
|
|
1820
|
+
};
|
|
1821
|
+
};
|
|
1822
|
+
};
|
|
1823
|
+
readonly AppBskyContactRemoveData: {
|
|
1824
|
+
readonly lexicon: 1;
|
|
1825
|
+
readonly id: "app.bsky.contact.removeData";
|
|
1826
|
+
readonly defs: {
|
|
1827
|
+
readonly main: {
|
|
1828
|
+
readonly type: "procedure";
|
|
1829
|
+
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.";
|
|
1830
|
+
readonly input: {
|
|
1831
|
+
readonly encoding: "application/json";
|
|
1832
|
+
readonly schema: {
|
|
1833
|
+
readonly type: "object";
|
|
1834
|
+
readonly properties: {};
|
|
1835
|
+
};
|
|
1836
|
+
};
|
|
1837
|
+
readonly output: {
|
|
1838
|
+
readonly encoding: "application/json";
|
|
1839
|
+
readonly schema: {
|
|
1840
|
+
readonly type: "object";
|
|
1841
|
+
readonly properties: {};
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
readonly errors: [{
|
|
1845
|
+
readonly name: "TODO";
|
|
1846
|
+
readonly description: "TODO";
|
|
1847
|
+
}];
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
readonly AppBskyContactStartPhoneVerification: {
|
|
1852
|
+
readonly lexicon: 1;
|
|
1853
|
+
readonly id: "app.bsky.contact.startPhoneVerification";
|
|
1854
|
+
readonly defs: {
|
|
1855
|
+
readonly main: {
|
|
1856
|
+
readonly type: "procedure";
|
|
1857
|
+
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.";
|
|
1858
|
+
readonly input: {
|
|
1859
|
+
readonly encoding: "application/json";
|
|
1860
|
+
readonly schema: {
|
|
1861
|
+
readonly type: "object";
|
|
1862
|
+
readonly required: ["phone"];
|
|
1863
|
+
readonly properties: {
|
|
1864
|
+
readonly phone: {
|
|
1865
|
+
readonly description: "The phone number to receive the code via SMS.";
|
|
1866
|
+
readonly type: "string";
|
|
1867
|
+
};
|
|
1868
|
+
};
|
|
1869
|
+
};
|
|
1870
|
+
};
|
|
1871
|
+
readonly output: {
|
|
1872
|
+
readonly encoding: "application/json";
|
|
1873
|
+
readonly schema: {
|
|
1874
|
+
readonly type: "object";
|
|
1875
|
+
readonly properties: {};
|
|
1876
|
+
};
|
|
1877
|
+
};
|
|
1878
|
+
readonly errors: [{
|
|
1879
|
+
readonly name: "TODO";
|
|
1880
|
+
readonly description: "TODO";
|
|
1881
|
+
}];
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1884
|
+
};
|
|
1885
|
+
readonly AppBskyContactVerifyPhone: {
|
|
1886
|
+
readonly lexicon: 1;
|
|
1887
|
+
readonly id: "app.bsky.contact.verifyPhone";
|
|
1888
|
+
readonly defs: {
|
|
1889
|
+
readonly main: {
|
|
1890
|
+
readonly type: "procedure";
|
|
1891
|
+
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.";
|
|
1892
|
+
readonly input: {
|
|
1893
|
+
readonly encoding: "application/json";
|
|
1894
|
+
readonly schema: {
|
|
1895
|
+
readonly type: "object";
|
|
1896
|
+
readonly required: ["phone", "code"];
|
|
1897
|
+
readonly properties: {
|
|
1898
|
+
readonly phone: {
|
|
1899
|
+
readonly description: "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.";
|
|
1900
|
+
readonly type: "string";
|
|
1901
|
+
};
|
|
1902
|
+
readonly code: {
|
|
1903
|
+
readonly description: "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.";
|
|
1904
|
+
readonly type: "string";
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1907
|
+
};
|
|
1908
|
+
};
|
|
1909
|
+
readonly output: {
|
|
1910
|
+
readonly encoding: "application/json";
|
|
1911
|
+
readonly schema: {
|
|
1912
|
+
readonly type: "object";
|
|
1913
|
+
readonly required: ["token"];
|
|
1914
|
+
readonly properties: {
|
|
1915
|
+
readonly token: {
|
|
1916
|
+
readonly description: "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.";
|
|
1917
|
+
readonly type: "string";
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
};
|
|
1922
|
+
readonly errors: [{
|
|
1923
|
+
readonly name: "TODO";
|
|
1924
|
+
readonly description: "TODO";
|
|
1925
|
+
}];
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1617
1929
|
readonly AppBskyEmbedDefs: {
|
|
1618
1930
|
readonly lexicon: 1;
|
|
1619
1931
|
readonly id: "app.bsky.embed.defs";
|
|
@@ -4147,6 +4459,26 @@ export declare const schemaDict: {
|
|
|
4147
4459
|
readonly format: "at-uri";
|
|
4148
4460
|
readonly description: "if the actor is followed by this DID, contains the AT-URI of the follow record";
|
|
4149
4461
|
};
|
|
4462
|
+
readonly blocking: {
|
|
4463
|
+
readonly type: "string";
|
|
4464
|
+
readonly format: "at-uri";
|
|
4465
|
+
readonly description: "if the actor blocks this DID, this is the AT-URI of the block record";
|
|
4466
|
+
};
|
|
4467
|
+
readonly blockedBy: {
|
|
4468
|
+
readonly type: "string";
|
|
4469
|
+
readonly format: "at-uri";
|
|
4470
|
+
readonly description: "if the actor is blocked by this DID, contains the AT-URI of the block record";
|
|
4471
|
+
};
|
|
4472
|
+
readonly blockingByList: {
|
|
4473
|
+
readonly type: "string";
|
|
4474
|
+
readonly format: "at-uri";
|
|
4475
|
+
readonly description: "if the actor blocks this DID via a block list, this is the AT-URI of the listblock record";
|
|
4476
|
+
};
|
|
4477
|
+
readonly blockedByList: {
|
|
4478
|
+
readonly type: "string";
|
|
4479
|
+
readonly format: "at-uri";
|
|
4480
|
+
readonly description: "if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record";
|
|
4481
|
+
};
|
|
4150
4482
|
};
|
|
4151
4483
|
};
|
|
4152
4484
|
};
|
|
@@ -14287,6 +14619,7 @@ export declare const schemaDict: {
|
|
|
14287
14619
|
};
|
|
14288
14620
|
readonly comment: {
|
|
14289
14621
|
readonly type: "string";
|
|
14622
|
+
readonly minLength: 1;
|
|
14290
14623
|
readonly description: "Comment describing the reason for the override.";
|
|
14291
14624
|
};
|
|
14292
14625
|
};
|
|
@@ -14297,6 +14630,7 @@ export declare const schemaDict: {
|
|
|
14297
14630
|
readonly required: ["comment"];
|
|
14298
14631
|
readonly properties: {
|
|
14299
14632
|
readonly comment: {
|
|
14633
|
+
readonly minLength: 1;
|
|
14300
14634
|
readonly type: "string";
|
|
14301
14635
|
readonly description: "Comment describing the reason for the revocation.";
|
|
14302
14636
|
};
|
|
@@ -19521,6 +19855,310 @@ export declare const schemas: ({
|
|
|
19521
19855
|
};
|
|
19522
19856
|
};
|
|
19523
19857
|
};
|
|
19858
|
+
} | {
|
|
19859
|
+
readonly lexicon: 1;
|
|
19860
|
+
readonly id: "app.bsky.contact.defs";
|
|
19861
|
+
readonly defs: {
|
|
19862
|
+
readonly matchAndContactIndex: {
|
|
19863
|
+
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.";
|
|
19864
|
+
readonly type: "object";
|
|
19865
|
+
readonly required: ["match", "contactIndex"];
|
|
19866
|
+
readonly properties: {
|
|
19867
|
+
readonly match: {
|
|
19868
|
+
readonly description: "Profile of the matched user.";
|
|
19869
|
+
readonly type: "ref";
|
|
19870
|
+
readonly ref: "lex:app.bsky.actor.defs#profileView";
|
|
19871
|
+
};
|
|
19872
|
+
readonly contactIndex: {
|
|
19873
|
+
readonly description: "The index of this match in the import contact input.";
|
|
19874
|
+
readonly type: "integer";
|
|
19875
|
+
readonly minimum: 0;
|
|
19876
|
+
readonly maximum: 999;
|
|
19877
|
+
};
|
|
19878
|
+
};
|
|
19879
|
+
};
|
|
19880
|
+
readonly syncStatus: {
|
|
19881
|
+
readonly type: "object";
|
|
19882
|
+
readonly required: ["syncedAt", "matchesCount"];
|
|
19883
|
+
readonly properties: {
|
|
19884
|
+
readonly syncedAt: {
|
|
19885
|
+
readonly description: "Last date when contacts where imported.";
|
|
19886
|
+
readonly type: "string";
|
|
19887
|
+
readonly format: "datetime";
|
|
19888
|
+
};
|
|
19889
|
+
readonly matchesCount: {
|
|
19890
|
+
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.";
|
|
19891
|
+
readonly type: "integer";
|
|
19892
|
+
readonly minimum: 0;
|
|
19893
|
+
};
|
|
19894
|
+
};
|
|
19895
|
+
};
|
|
19896
|
+
};
|
|
19897
|
+
} | {
|
|
19898
|
+
readonly lexicon: 1;
|
|
19899
|
+
readonly id: "app.bsky.contact.dismissMatch";
|
|
19900
|
+
readonly defs: {
|
|
19901
|
+
readonly main: {
|
|
19902
|
+
readonly type: "procedure";
|
|
19903
|
+
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.";
|
|
19904
|
+
readonly input: {
|
|
19905
|
+
readonly encoding: "application/json";
|
|
19906
|
+
readonly schema: {
|
|
19907
|
+
readonly type: "object";
|
|
19908
|
+
readonly required: ["subject"];
|
|
19909
|
+
readonly properties: {
|
|
19910
|
+
readonly subject: {
|
|
19911
|
+
readonly description: "The subject's DID to dismiss the match with.";
|
|
19912
|
+
readonly type: "string";
|
|
19913
|
+
readonly format: "did";
|
|
19914
|
+
};
|
|
19915
|
+
};
|
|
19916
|
+
};
|
|
19917
|
+
};
|
|
19918
|
+
readonly output: {
|
|
19919
|
+
readonly encoding: "application/json";
|
|
19920
|
+
readonly schema: {
|
|
19921
|
+
readonly type: "object";
|
|
19922
|
+
readonly properties: {};
|
|
19923
|
+
};
|
|
19924
|
+
};
|
|
19925
|
+
readonly errors: [{
|
|
19926
|
+
readonly name: "TODO";
|
|
19927
|
+
readonly description: "TODO";
|
|
19928
|
+
}];
|
|
19929
|
+
};
|
|
19930
|
+
};
|
|
19931
|
+
} | {
|
|
19932
|
+
readonly lexicon: 1;
|
|
19933
|
+
readonly id: "app.bsky.contact.getMatches";
|
|
19934
|
+
readonly defs: {
|
|
19935
|
+
readonly main: {
|
|
19936
|
+
readonly type: "query";
|
|
19937
|
+
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.";
|
|
19938
|
+
readonly parameters: {
|
|
19939
|
+
readonly type: "params";
|
|
19940
|
+
readonly properties: {
|
|
19941
|
+
readonly limit: {
|
|
19942
|
+
readonly type: "integer";
|
|
19943
|
+
readonly minimum: 1;
|
|
19944
|
+
readonly maximum: 100;
|
|
19945
|
+
readonly default: 50;
|
|
19946
|
+
};
|
|
19947
|
+
readonly cursor: {
|
|
19948
|
+
readonly type: "string";
|
|
19949
|
+
};
|
|
19950
|
+
};
|
|
19951
|
+
};
|
|
19952
|
+
readonly output: {
|
|
19953
|
+
readonly encoding: "application/json";
|
|
19954
|
+
readonly schema: {
|
|
19955
|
+
readonly type: "object";
|
|
19956
|
+
readonly required: ["matches"];
|
|
19957
|
+
readonly properties: {
|
|
19958
|
+
readonly cursor: {
|
|
19959
|
+
readonly type: "string";
|
|
19960
|
+
};
|
|
19961
|
+
readonly matches: {
|
|
19962
|
+
readonly type: "array";
|
|
19963
|
+
readonly items: {
|
|
19964
|
+
readonly type: "ref";
|
|
19965
|
+
readonly ref: "lex:app.bsky.actor.defs#profileView";
|
|
19966
|
+
};
|
|
19967
|
+
};
|
|
19968
|
+
};
|
|
19969
|
+
};
|
|
19970
|
+
};
|
|
19971
|
+
readonly errors: [{
|
|
19972
|
+
readonly name: "TODO";
|
|
19973
|
+
readonly description: "TODO";
|
|
19974
|
+
}];
|
|
19975
|
+
};
|
|
19976
|
+
};
|
|
19977
|
+
} | {
|
|
19978
|
+
readonly lexicon: 1;
|
|
19979
|
+
readonly id: "app.bsky.contact.getSyncStatus";
|
|
19980
|
+
readonly defs: {
|
|
19981
|
+
readonly main: {
|
|
19982
|
+
readonly type: "query";
|
|
19983
|
+
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.";
|
|
19984
|
+
readonly parameters: {
|
|
19985
|
+
readonly type: "params";
|
|
19986
|
+
readonly properties: {};
|
|
19987
|
+
};
|
|
19988
|
+
readonly output: {
|
|
19989
|
+
readonly encoding: "application/json";
|
|
19990
|
+
readonly schema: {
|
|
19991
|
+
readonly type: "object";
|
|
19992
|
+
readonly properties: {
|
|
19993
|
+
readonly syncStatus: {
|
|
19994
|
+
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.";
|
|
19995
|
+
readonly type: "ref";
|
|
19996
|
+
readonly ref: "lex:app.bsky.contact.defs#syncStatus";
|
|
19997
|
+
};
|
|
19998
|
+
};
|
|
19999
|
+
};
|
|
20000
|
+
};
|
|
20001
|
+
readonly errors: [{
|
|
20002
|
+
readonly name: "TODO";
|
|
20003
|
+
readonly description: "TODO";
|
|
20004
|
+
}];
|
|
20005
|
+
};
|
|
20006
|
+
};
|
|
20007
|
+
} | {
|
|
20008
|
+
readonly lexicon: 1;
|
|
20009
|
+
readonly id: "app.bsky.contact.importContacts";
|
|
20010
|
+
readonly defs: {
|
|
20011
|
+
readonly main: {
|
|
20012
|
+
readonly type: "procedure";
|
|
20013
|
+
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.";
|
|
20014
|
+
readonly input: {
|
|
20015
|
+
readonly encoding: "application/json";
|
|
20016
|
+
readonly schema: {
|
|
20017
|
+
readonly type: "object";
|
|
20018
|
+
readonly required: ["token", "contacts"];
|
|
20019
|
+
readonly properties: {
|
|
20020
|
+
readonly token: {
|
|
20021
|
+
readonly description: "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.";
|
|
20022
|
+
readonly type: "string";
|
|
20023
|
+
};
|
|
20024
|
+
readonly contacts: {
|
|
20025
|
+
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`.";
|
|
20026
|
+
readonly type: "array";
|
|
20027
|
+
readonly items: {
|
|
20028
|
+
readonly type: "string";
|
|
20029
|
+
};
|
|
20030
|
+
readonly minLength: 1;
|
|
20031
|
+
readonly maxLength: 1000;
|
|
20032
|
+
};
|
|
20033
|
+
};
|
|
20034
|
+
};
|
|
20035
|
+
};
|
|
20036
|
+
readonly output: {
|
|
20037
|
+
readonly encoding: "application/json";
|
|
20038
|
+
readonly schema: {
|
|
20039
|
+
readonly type: "object";
|
|
20040
|
+
readonly required: ["matchesAndContactIndexes"];
|
|
20041
|
+
readonly properties: {
|
|
20042
|
+
readonly matchesAndContactIndexes: {
|
|
20043
|
+
readonly description: "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.";
|
|
20044
|
+
readonly type: "array";
|
|
20045
|
+
readonly items: {
|
|
20046
|
+
readonly type: "ref";
|
|
20047
|
+
readonly ref: "lex:app.bsky.contact.defs#matchAndContactIndex";
|
|
20048
|
+
};
|
|
20049
|
+
};
|
|
20050
|
+
};
|
|
20051
|
+
};
|
|
20052
|
+
};
|
|
20053
|
+
readonly errors: [{
|
|
20054
|
+
readonly name: "TODO";
|
|
20055
|
+
readonly description: "TODO";
|
|
20056
|
+
}];
|
|
20057
|
+
};
|
|
20058
|
+
};
|
|
20059
|
+
} | {
|
|
20060
|
+
readonly lexicon: 1;
|
|
20061
|
+
readonly id: "app.bsky.contact.removeData";
|
|
20062
|
+
readonly defs: {
|
|
20063
|
+
readonly main: {
|
|
20064
|
+
readonly type: "procedure";
|
|
20065
|
+
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.";
|
|
20066
|
+
readonly input: {
|
|
20067
|
+
readonly encoding: "application/json";
|
|
20068
|
+
readonly schema: {
|
|
20069
|
+
readonly type: "object";
|
|
20070
|
+
readonly properties: {};
|
|
20071
|
+
};
|
|
20072
|
+
};
|
|
20073
|
+
readonly output: {
|
|
20074
|
+
readonly encoding: "application/json";
|
|
20075
|
+
readonly schema: {
|
|
20076
|
+
readonly type: "object";
|
|
20077
|
+
readonly properties: {};
|
|
20078
|
+
};
|
|
20079
|
+
};
|
|
20080
|
+
readonly errors: [{
|
|
20081
|
+
readonly name: "TODO";
|
|
20082
|
+
readonly description: "TODO";
|
|
20083
|
+
}];
|
|
20084
|
+
};
|
|
20085
|
+
};
|
|
20086
|
+
} | {
|
|
20087
|
+
readonly lexicon: 1;
|
|
20088
|
+
readonly id: "app.bsky.contact.startPhoneVerification";
|
|
20089
|
+
readonly defs: {
|
|
20090
|
+
readonly main: {
|
|
20091
|
+
readonly type: "procedure";
|
|
20092
|
+
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.";
|
|
20093
|
+
readonly input: {
|
|
20094
|
+
readonly encoding: "application/json";
|
|
20095
|
+
readonly schema: {
|
|
20096
|
+
readonly type: "object";
|
|
20097
|
+
readonly required: ["phone"];
|
|
20098
|
+
readonly properties: {
|
|
20099
|
+
readonly phone: {
|
|
20100
|
+
readonly description: "The phone number to receive the code via SMS.";
|
|
20101
|
+
readonly type: "string";
|
|
20102
|
+
};
|
|
20103
|
+
};
|
|
20104
|
+
};
|
|
20105
|
+
};
|
|
20106
|
+
readonly output: {
|
|
20107
|
+
readonly encoding: "application/json";
|
|
20108
|
+
readonly schema: {
|
|
20109
|
+
readonly type: "object";
|
|
20110
|
+
readonly properties: {};
|
|
20111
|
+
};
|
|
20112
|
+
};
|
|
20113
|
+
readonly errors: [{
|
|
20114
|
+
readonly name: "TODO";
|
|
20115
|
+
readonly description: "TODO";
|
|
20116
|
+
}];
|
|
20117
|
+
};
|
|
20118
|
+
};
|
|
20119
|
+
} | {
|
|
20120
|
+
readonly lexicon: 1;
|
|
20121
|
+
readonly id: "app.bsky.contact.verifyPhone";
|
|
20122
|
+
readonly defs: {
|
|
20123
|
+
readonly main: {
|
|
20124
|
+
readonly type: "procedure";
|
|
20125
|
+
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.";
|
|
20126
|
+
readonly input: {
|
|
20127
|
+
readonly encoding: "application/json";
|
|
20128
|
+
readonly schema: {
|
|
20129
|
+
readonly type: "object";
|
|
20130
|
+
readonly required: ["phone", "code"];
|
|
20131
|
+
readonly properties: {
|
|
20132
|
+
readonly phone: {
|
|
20133
|
+
readonly description: "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.";
|
|
20134
|
+
readonly type: "string";
|
|
20135
|
+
};
|
|
20136
|
+
readonly code: {
|
|
20137
|
+
readonly description: "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.";
|
|
20138
|
+
readonly type: "string";
|
|
20139
|
+
};
|
|
20140
|
+
};
|
|
20141
|
+
};
|
|
20142
|
+
};
|
|
20143
|
+
readonly output: {
|
|
20144
|
+
readonly encoding: "application/json";
|
|
20145
|
+
readonly schema: {
|
|
20146
|
+
readonly type: "object";
|
|
20147
|
+
readonly required: ["token"];
|
|
20148
|
+
readonly properties: {
|
|
20149
|
+
readonly token: {
|
|
20150
|
+
readonly description: "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.";
|
|
20151
|
+
readonly type: "string";
|
|
20152
|
+
};
|
|
20153
|
+
};
|
|
20154
|
+
};
|
|
20155
|
+
};
|
|
20156
|
+
readonly errors: [{
|
|
20157
|
+
readonly name: "TODO";
|
|
20158
|
+
readonly description: "TODO";
|
|
20159
|
+
}];
|
|
20160
|
+
};
|
|
20161
|
+
};
|
|
19524
20162
|
} | {
|
|
19525
20163
|
readonly lexicon: 1;
|
|
19526
20164
|
readonly id: "app.bsky.embed.defs";
|
|
@@ -22022,6 +22660,26 @@ export declare const schemas: ({
|
|
|
22022
22660
|
readonly format: "at-uri";
|
|
22023
22661
|
readonly description: "if the actor is followed by this DID, contains the AT-URI of the follow record";
|
|
22024
22662
|
};
|
|
22663
|
+
readonly blocking: {
|
|
22664
|
+
readonly type: "string";
|
|
22665
|
+
readonly format: "at-uri";
|
|
22666
|
+
readonly description: "if the actor blocks this DID, this is the AT-URI of the block record";
|
|
22667
|
+
};
|
|
22668
|
+
readonly blockedBy: {
|
|
22669
|
+
readonly type: "string";
|
|
22670
|
+
readonly format: "at-uri";
|
|
22671
|
+
readonly description: "if the actor is blocked by this DID, contains the AT-URI of the block record";
|
|
22672
|
+
};
|
|
22673
|
+
readonly blockingByList: {
|
|
22674
|
+
readonly type: "string";
|
|
22675
|
+
readonly format: "at-uri";
|
|
22676
|
+
readonly description: "if the actor blocks this DID via a block list, this is the AT-URI of the listblock record";
|
|
22677
|
+
};
|
|
22678
|
+
readonly blockedByList: {
|
|
22679
|
+
readonly type: "string";
|
|
22680
|
+
readonly format: "at-uri";
|
|
22681
|
+
readonly description: "if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record";
|
|
22682
|
+
};
|
|
22025
22683
|
};
|
|
22026
22684
|
};
|
|
22027
22685
|
};
|
|
@@ -31962,6 +32620,7 @@ export declare const schemas: ({
|
|
|
31962
32620
|
};
|
|
31963
32621
|
readonly comment: {
|
|
31964
32622
|
readonly type: "string";
|
|
32623
|
+
readonly minLength: 1;
|
|
31965
32624
|
readonly description: "Comment describing the reason for the override.";
|
|
31966
32625
|
};
|
|
31967
32626
|
};
|
|
@@ -31972,6 +32631,7 @@ export declare const schemas: ({
|
|
|
31972
32631
|
readonly required: ["comment"];
|
|
31973
32632
|
readonly properties: {
|
|
31974
32633
|
readonly comment: {
|
|
32634
|
+
readonly minLength: 1;
|
|
31975
32635
|
readonly type: "string";
|
|
31976
32636
|
readonly description: "Comment describing the reason for the revocation.";
|
|
31977
32637
|
};
|
|
@@ -35582,6 +36242,14 @@ export declare const ids: {
|
|
|
35582
36242
|
readonly AppBskyBookmarkDefs: "app.bsky.bookmark.defs";
|
|
35583
36243
|
readonly AppBskyBookmarkDeleteBookmark: "app.bsky.bookmark.deleteBookmark";
|
|
35584
36244
|
readonly AppBskyBookmarkGetBookmarks: "app.bsky.bookmark.getBookmarks";
|
|
36245
|
+
readonly AppBskyContactDefs: "app.bsky.contact.defs";
|
|
36246
|
+
readonly AppBskyContactDismissMatch: "app.bsky.contact.dismissMatch";
|
|
36247
|
+
readonly AppBskyContactGetMatches: "app.bsky.contact.getMatches";
|
|
36248
|
+
readonly AppBskyContactGetSyncStatus: "app.bsky.contact.getSyncStatus";
|
|
36249
|
+
readonly AppBskyContactImportContacts: "app.bsky.contact.importContacts";
|
|
36250
|
+
readonly AppBskyContactRemoveData: "app.bsky.contact.removeData";
|
|
36251
|
+
readonly AppBskyContactStartPhoneVerification: "app.bsky.contact.startPhoneVerification";
|
|
36252
|
+
readonly AppBskyContactVerifyPhone: "app.bsky.contact.verifyPhone";
|
|
35585
36253
|
readonly AppBskyEmbedDefs: "app.bsky.embed.defs";
|
|
35586
36254
|
readonly AppBskyEmbedExternal: "app.bsky.embed.external";
|
|
35587
36255
|
readonly AppBskyEmbedImages: "app.bsky.embed.images";
|