@atproto/pds 0.4.198 → 0.4.200
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 +23 -0
- package/dist/actor-store/preference/reader.d.ts.map +1 -1
- package/dist/actor-store/preference/reader.js +15 -2
- package/dist/actor-store/preference/reader.js.map +1 -1
- package/dist/actor-store/preference/transactor.d.ts.map +1 -1
- package/dist/actor-store/preference/transactor.js +3 -1
- package/dist/actor-store/preference/transactor.js.map +1 -1
- package/dist/actor-store/preference/util.d.ts +4 -0
- package/dist/actor-store/preference/util.d.ts.map +1 -1
- package/dist/actor-store/preference/util.js +20 -3
- package/dist/actor-store/preference/util.js.map +1 -1
- package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createSession.js +2 -2
- package/dist/api/com/atproto/server/createSession.js.map +1 -1
- package/dist/api/com/atproto/server/getSession.js +2 -2
- package/dist/api/com/atproto/server/getSession.js.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.js +4 -2
- package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/lexicon/index.d.ts +2 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +4 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +286 -54
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +166 -25
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +13 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +9 -0
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/defs.d.ts +10 -0
- package/dist/lexicon/types/app/bsky/contact/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/defs.js +9 -0
- package/dist/lexicon/types/app/bsky/contact/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/getMatches.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/importContacts.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/removeData.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/removeData.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/removeData.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/sendNotification.d.ts +26 -0
- package/dist/lexicon/types/app/bsky/contact/sendNotification.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/sendNotification.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/sendNotification.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/deleteSession.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +3 -3
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/getSession.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +4 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.js.map +1 -1
- package/package.json +10 -10
- package/src/actor-store/preference/reader.ts +27 -3
- package/src/actor-store/preference/transactor.ts +9 -7
- package/src/actor-store/preference/util.ts +21 -3
- package/src/api/com/atproto/server/createSession.ts +3 -2
- package/src/api/com/atproto/server/getSession.ts +2 -2
- package/src/api/com/atproto/server/refreshSession.ts +5 -2
- package/src/lexicon/index.ts +13 -0
- package/src/lexicon/lexicons.ts +173 -25
- package/src/lexicon/types/app/bsky/actor/defs.ts +22 -0
- package/src/lexicon/types/app/bsky/contact/defs.ts +19 -0
- package/src/lexicon/types/app/bsky/contact/dismissMatch.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/getMatches.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/getSyncStatus.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/importContacts.ts +6 -1
- package/src/lexicon/types/app/bsky/contact/removeData.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/sendNotification.ts +44 -0
- package/src/lexicon/types/app/bsky/contact/startPhoneVerification.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/verifyPhone.ts +6 -1
- package/src/lexicon/types/app/bsky/notification/listNotifications.ts +1 -0
- package/src/lexicon/types/com/atproto/server/deleteSession.ts +1 -0
- package/src/lexicon/types/com/atproto/server/getSession.ts +1 -1
- package/src/lexicon/types/com/atproto/server/refreshSession.ts +4 -1
- package/tests/_puppeteer.ts +87 -0
- package/tests/oauth.test.ts +54 -94
- package/tests/preferences.test.ts +96 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.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"];
|
|
@@ -1652,6 +1670,23 @@ export declare const schemaDict: {
|
|
|
1652
1670
|
};
|
|
1653
1671
|
};
|
|
1654
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
|
+
};
|
|
1655
1690
|
};
|
|
1656
1691
|
};
|
|
1657
1692
|
readonly AppBskyContactDismissMatch: {
|
|
@@ -1660,7 +1695,7 @@ export declare const schemaDict: {
|
|
|
1660
1695
|
readonly defs: {
|
|
1661
1696
|
readonly main: {
|
|
1662
1697
|
readonly type: "procedure";
|
|
1663
|
-
readonly description: "
|
|
1698
|
+
readonly description: "Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.";
|
|
1664
1699
|
readonly input: {
|
|
1665
1700
|
readonly encoding: "application/json";
|
|
1666
1701
|
readonly schema: {
|
|
@@ -1683,8 +1718,9 @@ export declare const schemaDict: {
|
|
|
1683
1718
|
};
|
|
1684
1719
|
};
|
|
1685
1720
|
readonly errors: [{
|
|
1686
|
-
readonly name: "
|
|
1687
|
-
|
|
1721
|
+
readonly name: "InvalidDid";
|
|
1722
|
+
}, {
|
|
1723
|
+
readonly name: "InternalError";
|
|
1688
1724
|
}];
|
|
1689
1725
|
};
|
|
1690
1726
|
};
|
|
@@ -1695,7 +1731,7 @@ export declare const schemaDict: {
|
|
|
1695
1731
|
readonly defs: {
|
|
1696
1732
|
readonly main: {
|
|
1697
1733
|
readonly type: "query";
|
|
1698
|
-
readonly description: "
|
|
1734
|
+
readonly description: "Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.";
|
|
1699
1735
|
readonly parameters: {
|
|
1700
1736
|
readonly type: "params";
|
|
1701
1737
|
readonly properties: {
|
|
@@ -1730,8 +1766,13 @@ export declare const schemaDict: {
|
|
|
1730
1766
|
};
|
|
1731
1767
|
};
|
|
1732
1768
|
readonly errors: [{
|
|
1733
|
-
readonly name: "
|
|
1734
|
-
|
|
1769
|
+
readonly name: "InvalidDid";
|
|
1770
|
+
}, {
|
|
1771
|
+
readonly name: "InvalidLimit";
|
|
1772
|
+
}, {
|
|
1773
|
+
readonly name: "InvalidCursor";
|
|
1774
|
+
}, {
|
|
1775
|
+
readonly name: "InternalError";
|
|
1735
1776
|
}];
|
|
1736
1777
|
};
|
|
1737
1778
|
};
|
|
@@ -1742,7 +1783,7 @@ export declare const schemaDict: {
|
|
|
1742
1783
|
readonly defs: {
|
|
1743
1784
|
readonly main: {
|
|
1744
1785
|
readonly type: "query";
|
|
1745
|
-
readonly description: "
|
|
1786
|
+
readonly description: "Gets the user's current contact import status. Requires authentication.";
|
|
1746
1787
|
readonly parameters: {
|
|
1747
1788
|
readonly type: "params";
|
|
1748
1789
|
readonly properties: {};
|
|
@@ -1761,8 +1802,9 @@ export declare const schemaDict: {
|
|
|
1761
1802
|
};
|
|
1762
1803
|
};
|
|
1763
1804
|
readonly errors: [{
|
|
1764
|
-
readonly name: "
|
|
1765
|
-
|
|
1805
|
+
readonly name: "InvalidDid";
|
|
1806
|
+
}, {
|
|
1807
|
+
readonly name: "InternalError";
|
|
1766
1808
|
}];
|
|
1767
1809
|
};
|
|
1768
1810
|
};
|
|
@@ -1773,7 +1815,7 @@ export declare const schemaDict: {
|
|
|
1773
1815
|
readonly defs: {
|
|
1774
1816
|
readonly main: {
|
|
1775
1817
|
readonly type: "procedure";
|
|
1776
|
-
readonly description: "
|
|
1818
|
+
readonly description: "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
1819
|
readonly input: {
|
|
1778
1820
|
readonly encoding: "application/json";
|
|
1779
1821
|
readonly schema: {
|
|
@@ -1814,8 +1856,15 @@ export declare const schemaDict: {
|
|
|
1814
1856
|
};
|
|
1815
1857
|
};
|
|
1816
1858
|
readonly errors: [{
|
|
1817
|
-
readonly name: "
|
|
1818
|
-
|
|
1859
|
+
readonly name: "InvalidDid";
|
|
1860
|
+
}, {
|
|
1861
|
+
readonly name: "InvalidContacts";
|
|
1862
|
+
}, {
|
|
1863
|
+
readonly name: "TooManyContacts";
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly name: "InvalidToken";
|
|
1866
|
+
}, {
|
|
1867
|
+
readonly name: "InternalError";
|
|
1819
1868
|
}];
|
|
1820
1869
|
};
|
|
1821
1870
|
};
|
|
@@ -1826,7 +1875,7 @@ export declare const schemaDict: {
|
|
|
1826
1875
|
readonly defs: {
|
|
1827
1876
|
readonly main: {
|
|
1828
1877
|
readonly type: "procedure";
|
|
1829
|
-
readonly description: "
|
|
1878
|
+
readonly description: "Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.";
|
|
1830
1879
|
readonly input: {
|
|
1831
1880
|
readonly encoding: "application/json";
|
|
1832
1881
|
readonly schema: {
|
|
@@ -1842,19 +1891,56 @@ export declare const schemaDict: {
|
|
|
1842
1891
|
};
|
|
1843
1892
|
};
|
|
1844
1893
|
readonly errors: [{
|
|
1845
|
-
readonly name: "
|
|
1846
|
-
|
|
1894
|
+
readonly name: "InvalidDid";
|
|
1895
|
+
}, {
|
|
1896
|
+
readonly name: "InternalError";
|
|
1847
1897
|
}];
|
|
1848
1898
|
};
|
|
1849
1899
|
};
|
|
1850
1900
|
};
|
|
1901
|
+
readonly AppBskyContactSendNotification: {
|
|
1902
|
+
readonly lexicon: 1;
|
|
1903
|
+
readonly id: "app.bsky.contact.sendNotification";
|
|
1904
|
+
readonly defs: {
|
|
1905
|
+
readonly main: {
|
|
1906
|
+
readonly type: "procedure";
|
|
1907
|
+
readonly description: "System endpoint to send notifications related to contact imports. Requires role authentication.";
|
|
1908
|
+
readonly input: {
|
|
1909
|
+
readonly encoding: "application/json";
|
|
1910
|
+
readonly schema: {
|
|
1911
|
+
readonly type: "object";
|
|
1912
|
+
readonly required: ["from", "to"];
|
|
1913
|
+
readonly properties: {
|
|
1914
|
+
readonly from: {
|
|
1915
|
+
readonly description: "The DID of who this notification comes from.";
|
|
1916
|
+
readonly type: "string";
|
|
1917
|
+
readonly format: "did";
|
|
1918
|
+
};
|
|
1919
|
+
readonly to: {
|
|
1920
|
+
readonly description: "The DID of who this notification should go to.";
|
|
1921
|
+
readonly type: "string";
|
|
1922
|
+
readonly format: "did";
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
};
|
|
1927
|
+
readonly output: {
|
|
1928
|
+
readonly encoding: "application/json";
|
|
1929
|
+
readonly schema: {
|
|
1930
|
+
readonly type: "object";
|
|
1931
|
+
readonly properties: {};
|
|
1932
|
+
};
|
|
1933
|
+
};
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1936
|
+
};
|
|
1851
1937
|
readonly AppBskyContactStartPhoneVerification: {
|
|
1852
1938
|
readonly lexicon: 1;
|
|
1853
1939
|
readonly id: "app.bsky.contact.startPhoneVerification";
|
|
1854
1940
|
readonly defs: {
|
|
1855
1941
|
readonly main: {
|
|
1856
1942
|
readonly type: "procedure";
|
|
1857
|
-
readonly description: "
|
|
1943
|
+
readonly description: "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
1944
|
readonly input: {
|
|
1859
1945
|
readonly encoding: "application/json";
|
|
1860
1946
|
readonly schema: {
|
|
@@ -1876,8 +1962,13 @@ export declare const schemaDict: {
|
|
|
1876
1962
|
};
|
|
1877
1963
|
};
|
|
1878
1964
|
readonly errors: [{
|
|
1879
|
-
readonly name: "
|
|
1880
|
-
|
|
1965
|
+
readonly name: "RateLimitExceeded";
|
|
1966
|
+
}, {
|
|
1967
|
+
readonly name: "InvalidDid";
|
|
1968
|
+
}, {
|
|
1969
|
+
readonly name: "InvalidPhone";
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly name: "InternalError";
|
|
1881
1972
|
}];
|
|
1882
1973
|
};
|
|
1883
1974
|
};
|
|
@@ -1888,7 +1979,7 @@ export declare const schemaDict: {
|
|
|
1888
1979
|
readonly defs: {
|
|
1889
1980
|
readonly main: {
|
|
1890
1981
|
readonly type: "procedure";
|
|
1891
|
-
readonly description: "
|
|
1982
|
+
readonly description: "Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.";
|
|
1892
1983
|
readonly input: {
|
|
1893
1984
|
readonly encoding: "application/json";
|
|
1894
1985
|
readonly schema: {
|
|
@@ -1920,8 +2011,15 @@ export declare const schemaDict: {
|
|
|
1920
2011
|
};
|
|
1921
2012
|
};
|
|
1922
2013
|
readonly errors: [{
|
|
1923
|
-
readonly name: "
|
|
1924
|
-
|
|
2014
|
+
readonly name: "RateLimitExceeded";
|
|
2015
|
+
}, {
|
|
2016
|
+
readonly name: "InvalidDid";
|
|
2017
|
+
}, {
|
|
2018
|
+
readonly name: "InvalidPhone";
|
|
2019
|
+
}, {
|
|
2020
|
+
readonly name: "InvalidCode";
|
|
2021
|
+
}, {
|
|
2022
|
+
readonly name: "InternalError";
|
|
1925
2023
|
}];
|
|
1926
2024
|
};
|
|
1927
2025
|
};
|
|
@@ -6281,7 +6379,7 @@ export declare const schemaDict: {
|
|
|
6281
6379
|
readonly reason: {
|
|
6282
6380
|
readonly type: "string";
|
|
6283
6381
|
readonly description: "The reason why this notification was delivered - e.g. your post was liked, or you received a new follower.";
|
|
6284
|
-
readonly knownValues: ["like", "repost", "follow", "mention", "reply", "quote", "starterpack-joined", "verified", "unverified", "like-via-repost", "repost-via-repost", "subscribed-post"];
|
|
6382
|
+
readonly knownValues: ["like", "repost", "follow", "mention", "reply", "quote", "starterpack-joined", "verified", "unverified", "like-via-repost", "repost-via-repost", "subscribed-post", "contact-match"];
|
|
6285
6383
|
};
|
|
6286
6384
|
readonly reasonSubject: {
|
|
6287
6385
|
readonly type: "string";
|
|
@@ -12008,7 +12106,12 @@ export declare const schemaDict: {
|
|
|
12008
12106
|
readonly defs: {
|
|
12009
12107
|
readonly main: {
|
|
12010
12108
|
readonly type: "procedure";
|
|
12011
|
-
readonly description: "Delete the current session. Requires auth.";
|
|
12109
|
+
readonly description: "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').";
|
|
12110
|
+
readonly errors: [{
|
|
12111
|
+
readonly name: "InvalidToken";
|
|
12112
|
+
}, {
|
|
12113
|
+
readonly name: "ExpiredToken";
|
|
12114
|
+
}];
|
|
12012
12115
|
};
|
|
12013
12116
|
};
|
|
12014
12117
|
};
|
|
@@ -12191,6 +12294,9 @@ export declare const schemaDict: {
|
|
|
12191
12294
|
readonly type: "string";
|
|
12192
12295
|
readonly format: "did";
|
|
12193
12296
|
};
|
|
12297
|
+
readonly didDoc: {
|
|
12298
|
+
readonly type: "unknown";
|
|
12299
|
+
};
|
|
12194
12300
|
readonly email: {
|
|
12195
12301
|
readonly type: "string";
|
|
12196
12302
|
};
|
|
@@ -12200,9 +12306,6 @@ export declare const schemaDict: {
|
|
|
12200
12306
|
readonly emailAuthFactor: {
|
|
12201
12307
|
readonly type: "boolean";
|
|
12202
12308
|
};
|
|
12203
|
-
readonly didDoc: {
|
|
12204
|
-
readonly type: "unknown";
|
|
12205
|
-
};
|
|
12206
12309
|
readonly active: {
|
|
12207
12310
|
readonly type: "boolean";
|
|
12208
12311
|
};
|
|
@@ -12292,6 +12395,15 @@ export declare const schemaDict: {
|
|
|
12292
12395
|
readonly didDoc: {
|
|
12293
12396
|
readonly type: "unknown";
|
|
12294
12397
|
};
|
|
12398
|
+
readonly email: {
|
|
12399
|
+
readonly type: "string";
|
|
12400
|
+
};
|
|
12401
|
+
readonly emailConfirmed: {
|
|
12402
|
+
readonly type: "boolean";
|
|
12403
|
+
};
|
|
12404
|
+
readonly emailAuthFactor: {
|
|
12405
|
+
readonly type: "boolean";
|
|
12406
|
+
};
|
|
12295
12407
|
readonly active: {
|
|
12296
12408
|
readonly type: "boolean";
|
|
12297
12409
|
};
|
|
@@ -12305,6 +12417,10 @@ export declare const schemaDict: {
|
|
|
12305
12417
|
};
|
|
12306
12418
|
readonly errors: [{
|
|
12307
12419
|
readonly name: "AccountTakedown";
|
|
12420
|
+
}, {
|
|
12421
|
+
readonly name: "InvalidToken";
|
|
12422
|
+
}, {
|
|
12423
|
+
readonly name: "ExpiredToken";
|
|
12308
12424
|
}];
|
|
12309
12425
|
};
|
|
12310
12426
|
};
|
|
@@ -18641,7 +18757,7 @@ export declare const schemas: ({
|
|
|
18641
18757
|
readonly type: "array";
|
|
18642
18758
|
readonly items: {
|
|
18643
18759
|
readonly type: "union";
|
|
18644
|
-
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"];
|
|
18760
|
+
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"];
|
|
18645
18761
|
};
|
|
18646
18762
|
};
|
|
18647
18763
|
readonly adultContentPref: {
|
|
@@ -18737,6 +18853,24 @@ export declare const schemas: ({
|
|
|
18737
18853
|
};
|
|
18738
18854
|
};
|
|
18739
18855
|
};
|
|
18856
|
+
readonly declaredAgePref: {
|
|
18857
|
+
readonly type: "object";
|
|
18858
|
+
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.";
|
|
18859
|
+
readonly properties: {
|
|
18860
|
+
readonly isOverAge13: {
|
|
18861
|
+
readonly type: "boolean";
|
|
18862
|
+
readonly description: "Indicates if the user has declared that they are over 13 years of age.";
|
|
18863
|
+
};
|
|
18864
|
+
readonly isOverAge16: {
|
|
18865
|
+
readonly type: "boolean";
|
|
18866
|
+
readonly description: "Indicates if the user has declared that they are over 16 years of age.";
|
|
18867
|
+
};
|
|
18868
|
+
readonly isOverAge18: {
|
|
18869
|
+
readonly type: "boolean";
|
|
18870
|
+
readonly description: "Indicates if the user has declared that they are over 18 years of age.";
|
|
18871
|
+
};
|
|
18872
|
+
};
|
|
18873
|
+
};
|
|
18740
18874
|
readonly feedViewPref: {
|
|
18741
18875
|
readonly type: "object";
|
|
18742
18876
|
readonly required: ["feed"];
|
|
@@ -19893,6 +20027,23 @@ export declare const schemas: ({
|
|
|
19893
20027
|
};
|
|
19894
20028
|
};
|
|
19895
20029
|
};
|
|
20030
|
+
readonly notification: {
|
|
20031
|
+
readonly description: "A stash object to be sent via bsync representing a notification to be created.";
|
|
20032
|
+
readonly type: "object";
|
|
20033
|
+
readonly required: ["from", "to"];
|
|
20034
|
+
readonly properties: {
|
|
20035
|
+
readonly from: {
|
|
20036
|
+
readonly description: "The DID of who this notification comes from.";
|
|
20037
|
+
readonly type: "string";
|
|
20038
|
+
readonly format: "did";
|
|
20039
|
+
};
|
|
20040
|
+
readonly to: {
|
|
20041
|
+
readonly description: "The DID of who this notification should go to.";
|
|
20042
|
+
readonly type: "string";
|
|
20043
|
+
readonly format: "did";
|
|
20044
|
+
};
|
|
20045
|
+
};
|
|
20046
|
+
};
|
|
19896
20047
|
};
|
|
19897
20048
|
} | {
|
|
19898
20049
|
readonly lexicon: 1;
|
|
@@ -19900,7 +20051,7 @@ export declare const schemas: ({
|
|
|
19900
20051
|
readonly defs: {
|
|
19901
20052
|
readonly main: {
|
|
19902
20053
|
readonly type: "procedure";
|
|
19903
|
-
readonly description: "
|
|
20054
|
+
readonly description: "Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.";
|
|
19904
20055
|
readonly input: {
|
|
19905
20056
|
readonly encoding: "application/json";
|
|
19906
20057
|
readonly schema: {
|
|
@@ -19923,8 +20074,9 @@ export declare const schemas: ({
|
|
|
19923
20074
|
};
|
|
19924
20075
|
};
|
|
19925
20076
|
readonly errors: [{
|
|
19926
|
-
readonly name: "
|
|
19927
|
-
|
|
20077
|
+
readonly name: "InvalidDid";
|
|
20078
|
+
}, {
|
|
20079
|
+
readonly name: "InternalError";
|
|
19928
20080
|
}];
|
|
19929
20081
|
};
|
|
19930
20082
|
};
|
|
@@ -19934,7 +20086,7 @@ export declare const schemas: ({
|
|
|
19934
20086
|
readonly defs: {
|
|
19935
20087
|
readonly main: {
|
|
19936
20088
|
readonly type: "query";
|
|
19937
|
-
readonly description: "
|
|
20089
|
+
readonly description: "Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.";
|
|
19938
20090
|
readonly parameters: {
|
|
19939
20091
|
readonly type: "params";
|
|
19940
20092
|
readonly properties: {
|
|
@@ -19969,8 +20121,13 @@ export declare const schemas: ({
|
|
|
19969
20121
|
};
|
|
19970
20122
|
};
|
|
19971
20123
|
readonly errors: [{
|
|
19972
|
-
readonly name: "
|
|
19973
|
-
|
|
20124
|
+
readonly name: "InvalidDid";
|
|
20125
|
+
}, {
|
|
20126
|
+
readonly name: "InvalidLimit";
|
|
20127
|
+
}, {
|
|
20128
|
+
readonly name: "InvalidCursor";
|
|
20129
|
+
}, {
|
|
20130
|
+
readonly name: "InternalError";
|
|
19974
20131
|
}];
|
|
19975
20132
|
};
|
|
19976
20133
|
};
|
|
@@ -19980,7 +20137,7 @@ export declare const schemas: ({
|
|
|
19980
20137
|
readonly defs: {
|
|
19981
20138
|
readonly main: {
|
|
19982
20139
|
readonly type: "query";
|
|
19983
|
-
readonly description: "
|
|
20140
|
+
readonly description: "Gets the user's current contact import status. Requires authentication.";
|
|
19984
20141
|
readonly parameters: {
|
|
19985
20142
|
readonly type: "params";
|
|
19986
20143
|
readonly properties: {};
|
|
@@ -19999,8 +20156,9 @@ export declare const schemas: ({
|
|
|
19999
20156
|
};
|
|
20000
20157
|
};
|
|
20001
20158
|
readonly errors: [{
|
|
20002
|
-
readonly name: "
|
|
20003
|
-
|
|
20159
|
+
readonly name: "InvalidDid";
|
|
20160
|
+
}, {
|
|
20161
|
+
readonly name: "InternalError";
|
|
20004
20162
|
}];
|
|
20005
20163
|
};
|
|
20006
20164
|
};
|
|
@@ -20010,7 +20168,7 @@ export declare const schemas: ({
|
|
|
20010
20168
|
readonly defs: {
|
|
20011
20169
|
readonly main: {
|
|
20012
20170
|
readonly type: "procedure";
|
|
20013
|
-
readonly description: "
|
|
20171
|
+
readonly description: "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
20172
|
readonly input: {
|
|
20015
20173
|
readonly encoding: "application/json";
|
|
20016
20174
|
readonly schema: {
|
|
@@ -20051,8 +20209,15 @@ export declare const schemas: ({
|
|
|
20051
20209
|
};
|
|
20052
20210
|
};
|
|
20053
20211
|
readonly errors: [{
|
|
20054
|
-
readonly name: "
|
|
20055
|
-
|
|
20212
|
+
readonly name: "InvalidDid";
|
|
20213
|
+
}, {
|
|
20214
|
+
readonly name: "InvalidContacts";
|
|
20215
|
+
}, {
|
|
20216
|
+
readonly name: "TooManyContacts";
|
|
20217
|
+
}, {
|
|
20218
|
+
readonly name: "InvalidToken";
|
|
20219
|
+
}, {
|
|
20220
|
+
readonly name: "InternalError";
|
|
20056
20221
|
}];
|
|
20057
20222
|
};
|
|
20058
20223
|
};
|
|
@@ -20062,7 +20227,7 @@ export declare const schemas: ({
|
|
|
20062
20227
|
readonly defs: {
|
|
20063
20228
|
readonly main: {
|
|
20064
20229
|
readonly type: "procedure";
|
|
20065
|
-
readonly description: "
|
|
20230
|
+
readonly description: "Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.";
|
|
20066
20231
|
readonly input: {
|
|
20067
20232
|
readonly encoding: "application/json";
|
|
20068
20233
|
readonly schema: {
|
|
@@ -20078,18 +20243,54 @@ export declare const schemas: ({
|
|
|
20078
20243
|
};
|
|
20079
20244
|
};
|
|
20080
20245
|
readonly errors: [{
|
|
20081
|
-
readonly name: "
|
|
20082
|
-
|
|
20246
|
+
readonly name: "InvalidDid";
|
|
20247
|
+
}, {
|
|
20248
|
+
readonly name: "InternalError";
|
|
20083
20249
|
}];
|
|
20084
20250
|
};
|
|
20085
20251
|
};
|
|
20252
|
+
} | {
|
|
20253
|
+
readonly lexicon: 1;
|
|
20254
|
+
readonly id: "app.bsky.contact.sendNotification";
|
|
20255
|
+
readonly defs: {
|
|
20256
|
+
readonly main: {
|
|
20257
|
+
readonly type: "procedure";
|
|
20258
|
+
readonly description: "System endpoint to send notifications related to contact imports. Requires role authentication.";
|
|
20259
|
+
readonly input: {
|
|
20260
|
+
readonly encoding: "application/json";
|
|
20261
|
+
readonly schema: {
|
|
20262
|
+
readonly type: "object";
|
|
20263
|
+
readonly required: ["from", "to"];
|
|
20264
|
+
readonly properties: {
|
|
20265
|
+
readonly from: {
|
|
20266
|
+
readonly description: "The DID of who this notification comes from.";
|
|
20267
|
+
readonly type: "string";
|
|
20268
|
+
readonly format: "did";
|
|
20269
|
+
};
|
|
20270
|
+
readonly to: {
|
|
20271
|
+
readonly description: "The DID of who this notification should go to.";
|
|
20272
|
+
readonly type: "string";
|
|
20273
|
+
readonly format: "did";
|
|
20274
|
+
};
|
|
20275
|
+
};
|
|
20276
|
+
};
|
|
20277
|
+
};
|
|
20278
|
+
readonly output: {
|
|
20279
|
+
readonly encoding: "application/json";
|
|
20280
|
+
readonly schema: {
|
|
20281
|
+
readonly type: "object";
|
|
20282
|
+
readonly properties: {};
|
|
20283
|
+
};
|
|
20284
|
+
};
|
|
20285
|
+
};
|
|
20286
|
+
};
|
|
20086
20287
|
} | {
|
|
20087
20288
|
readonly lexicon: 1;
|
|
20088
20289
|
readonly id: "app.bsky.contact.startPhoneVerification";
|
|
20089
20290
|
readonly defs: {
|
|
20090
20291
|
readonly main: {
|
|
20091
20292
|
readonly type: "procedure";
|
|
20092
|
-
readonly description: "
|
|
20293
|
+
readonly description: "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
20294
|
readonly input: {
|
|
20094
20295
|
readonly encoding: "application/json";
|
|
20095
20296
|
readonly schema: {
|
|
@@ -20111,8 +20312,13 @@ export declare const schemas: ({
|
|
|
20111
20312
|
};
|
|
20112
20313
|
};
|
|
20113
20314
|
readonly errors: [{
|
|
20114
|
-
readonly name: "
|
|
20115
|
-
|
|
20315
|
+
readonly name: "RateLimitExceeded";
|
|
20316
|
+
}, {
|
|
20317
|
+
readonly name: "InvalidDid";
|
|
20318
|
+
}, {
|
|
20319
|
+
readonly name: "InvalidPhone";
|
|
20320
|
+
}, {
|
|
20321
|
+
readonly name: "InternalError";
|
|
20116
20322
|
}];
|
|
20117
20323
|
};
|
|
20118
20324
|
};
|
|
@@ -20122,7 +20328,7 @@ export declare const schemas: ({
|
|
|
20122
20328
|
readonly defs: {
|
|
20123
20329
|
readonly main: {
|
|
20124
20330
|
readonly type: "procedure";
|
|
20125
|
-
readonly description: "
|
|
20331
|
+
readonly description: "Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.";
|
|
20126
20332
|
readonly input: {
|
|
20127
20333
|
readonly encoding: "application/json";
|
|
20128
20334
|
readonly schema: {
|
|
@@ -20154,8 +20360,15 @@ export declare const schemas: ({
|
|
|
20154
20360
|
};
|
|
20155
20361
|
};
|
|
20156
20362
|
readonly errors: [{
|
|
20157
|
-
readonly name: "
|
|
20158
|
-
|
|
20363
|
+
readonly name: "RateLimitExceeded";
|
|
20364
|
+
}, {
|
|
20365
|
+
readonly name: "InvalidDid";
|
|
20366
|
+
}, {
|
|
20367
|
+
readonly name: "InvalidPhone";
|
|
20368
|
+
}, {
|
|
20369
|
+
readonly name: "InvalidCode";
|
|
20370
|
+
}, {
|
|
20371
|
+
readonly name: "InternalError";
|
|
20159
20372
|
}];
|
|
20160
20373
|
};
|
|
20161
20374
|
};
|
|
@@ -24444,7 +24657,7 @@ export declare const schemas: ({
|
|
|
24444
24657
|
readonly reason: {
|
|
24445
24658
|
readonly type: "string";
|
|
24446
24659
|
readonly description: "The reason why this notification was delivered - e.g. your post was liked, or you received a new follower.";
|
|
24447
|
-
readonly knownValues: ["like", "repost", "follow", "mention", "reply", "quote", "starterpack-joined", "verified", "unverified", "like-via-repost", "repost-via-repost", "subscribed-post"];
|
|
24660
|
+
readonly knownValues: ["like", "repost", "follow", "mention", "reply", "quote", "starterpack-joined", "verified", "unverified", "like-via-repost", "repost-via-repost", "subscribed-post", "contact-match"];
|
|
24448
24661
|
};
|
|
24449
24662
|
readonly reasonSubject: {
|
|
24450
24663
|
readonly type: "string";
|
|
@@ -30055,7 +30268,12 @@ export declare const schemas: ({
|
|
|
30055
30268
|
readonly defs: {
|
|
30056
30269
|
readonly main: {
|
|
30057
30270
|
readonly type: "procedure";
|
|
30058
|
-
readonly description: "Delete the current session. Requires auth.";
|
|
30271
|
+
readonly description: "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').";
|
|
30272
|
+
readonly errors: [{
|
|
30273
|
+
readonly name: "InvalidToken";
|
|
30274
|
+
}, {
|
|
30275
|
+
readonly name: "ExpiredToken";
|
|
30276
|
+
}];
|
|
30059
30277
|
};
|
|
30060
30278
|
};
|
|
30061
30279
|
} | {
|
|
@@ -30234,6 +30452,9 @@ export declare const schemas: ({
|
|
|
30234
30452
|
readonly type: "string";
|
|
30235
30453
|
readonly format: "did";
|
|
30236
30454
|
};
|
|
30455
|
+
readonly didDoc: {
|
|
30456
|
+
readonly type: "unknown";
|
|
30457
|
+
};
|
|
30237
30458
|
readonly email: {
|
|
30238
30459
|
readonly type: "string";
|
|
30239
30460
|
};
|
|
@@ -30243,9 +30464,6 @@ export declare const schemas: ({
|
|
|
30243
30464
|
readonly emailAuthFactor: {
|
|
30244
30465
|
readonly type: "boolean";
|
|
30245
30466
|
};
|
|
30246
|
-
readonly didDoc: {
|
|
30247
|
-
readonly type: "unknown";
|
|
30248
|
-
};
|
|
30249
30467
|
readonly active: {
|
|
30250
30468
|
readonly type: "boolean";
|
|
30251
30469
|
};
|
|
@@ -30333,6 +30551,15 @@ export declare const schemas: ({
|
|
|
30333
30551
|
readonly didDoc: {
|
|
30334
30552
|
readonly type: "unknown";
|
|
30335
30553
|
};
|
|
30554
|
+
readonly email: {
|
|
30555
|
+
readonly type: "string";
|
|
30556
|
+
};
|
|
30557
|
+
readonly emailConfirmed: {
|
|
30558
|
+
readonly type: "boolean";
|
|
30559
|
+
};
|
|
30560
|
+
readonly emailAuthFactor: {
|
|
30561
|
+
readonly type: "boolean";
|
|
30562
|
+
};
|
|
30336
30563
|
readonly active: {
|
|
30337
30564
|
readonly type: "boolean";
|
|
30338
30565
|
};
|
|
@@ -30346,6 +30573,10 @@ export declare const schemas: ({
|
|
|
30346
30573
|
};
|
|
30347
30574
|
readonly errors: [{
|
|
30348
30575
|
readonly name: "AccountTakedown";
|
|
30576
|
+
}, {
|
|
30577
|
+
readonly name: "InvalidToken";
|
|
30578
|
+
}, {
|
|
30579
|
+
readonly name: "ExpiredToken";
|
|
30349
30580
|
}];
|
|
30350
30581
|
};
|
|
30351
30582
|
};
|
|
@@ -36248,6 +36479,7 @@ export declare const ids: {
|
|
|
36248
36479
|
readonly AppBskyContactGetSyncStatus: "app.bsky.contact.getSyncStatus";
|
|
36249
36480
|
readonly AppBskyContactImportContacts: "app.bsky.contact.importContacts";
|
|
36250
36481
|
readonly AppBskyContactRemoveData: "app.bsky.contact.removeData";
|
|
36482
|
+
readonly AppBskyContactSendNotification: "app.bsky.contact.sendNotification";
|
|
36251
36483
|
readonly AppBskyContactStartPhoneVerification: "app.bsky.contact.startPhoneVerification";
|
|
36252
36484
|
readonly AppBskyContactVerifyPhone: "app.bsky.contact.verifyPhone";
|
|
36253
36485
|
readonly AppBskyEmbedDefs: "app.bsky.embed.defs";
|