@atproto/ozone 0.1.159 → 0.1.161
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 +28 -0
- package/dist/api/moderation/emitEvent.d.ts.map +1 -1
- package/dist/api/moderation/emitEvent.js +29 -23
- package/dist/api/moderation/emitEvent.js.map +1 -1
- package/dist/lexicon/index.d.ts +21 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +52 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +868 -4
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +474 -0
- 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 +34 -0
- package/dist/lexicon/types/app/bsky/contact/defs.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/defs.js +34 -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/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 +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/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/mod-service/index.d.ts.map +1 -1
- package/dist/mod-service/index.js +16 -4
- package/dist/mod-service/index.js.map +1 -1
- package/dist/mod-service/views.d.ts.map +1 -1
- package/dist/mod-service/views.js +3 -1
- package/dist/mod-service/views.js.map +1 -1
- package/package.json +9 -9
- package/src/api/moderation/emitEvent.ts +33 -25
- package/src/lexicon/index.ts +114 -0
- package/src/lexicon/lexicons.ts +501 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +22 -0
- package/src/lexicon/types/app/bsky/contact/defs.ts +71 -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 +54 -0
- package/src/lexicon/types/app/bsky/contact/removeData.ts +40 -0
- package/src/lexicon/types/app/bsky/contact/sendNotification.ts +44 -0
- package/src/lexicon/types/app/bsky/contact/startPhoneVerification.ts +43 -0
- package/src/lexicon/types/app/bsky/contact/verifyPhone.ts +53 -0
- package/src/lexicon/types/app/bsky/graph/defs.ts +8 -0
- package/src/lexicon/types/app/bsky/notification/listNotifications.ts +1 -0
- package/src/mod-service/index.ts +18 -5
- package/src/mod-service/views.ts +3 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -393,6 +393,7 @@ exports.schemaDict = {
|
|
|
393
393
|
'lex:app.bsky.actor.defs#savedFeedsPref',
|
|
394
394
|
'lex:app.bsky.actor.defs#savedFeedsPrefV2',
|
|
395
395
|
'lex:app.bsky.actor.defs#personalDetailsPref',
|
|
396
|
+
'lex:app.bsky.actor.defs#declaredAgePref',
|
|
396
397
|
'lex:app.bsky.actor.defs#feedViewPref',
|
|
397
398
|
'lex:app.bsky.actor.defs#threadViewPref',
|
|
398
399
|
'lex:app.bsky.actor.defs#interestsPref',
|
|
@@ -498,6 +499,24 @@ exports.schemaDict = {
|
|
|
498
499
|
},
|
|
499
500
|
},
|
|
500
501
|
},
|
|
502
|
+
declaredAgePref: {
|
|
503
|
+
type: 'object',
|
|
504
|
+
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.",
|
|
505
|
+
properties: {
|
|
506
|
+
isOverAge13: {
|
|
507
|
+
type: 'boolean',
|
|
508
|
+
description: 'Indicates if the user has declared that they are over 13 years of age.',
|
|
509
|
+
},
|
|
510
|
+
isOverAge16: {
|
|
511
|
+
type: 'boolean',
|
|
512
|
+
description: 'Indicates if the user has declared that they are over 16 years of age.',
|
|
513
|
+
},
|
|
514
|
+
isOverAge18: {
|
|
515
|
+
type: 'boolean',
|
|
516
|
+
description: 'Indicates if the user has declared that they are over 18 years of age.',
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
},
|
|
501
520
|
feedViewPref: {
|
|
502
521
|
type: 'object',
|
|
503
522
|
required: ['feed'],
|
|
@@ -1666,6 +1685,429 @@ exports.schemaDict = {
|
|
|
1666
1685
|
},
|
|
1667
1686
|
},
|
|
1668
1687
|
},
|
|
1688
|
+
AppBskyContactDefs: {
|
|
1689
|
+
lexicon: 1,
|
|
1690
|
+
id: 'app.bsky.contact.defs',
|
|
1691
|
+
defs: {
|
|
1692
|
+
matchAndContactIndex: {
|
|
1693
|
+
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.',
|
|
1694
|
+
type: 'object',
|
|
1695
|
+
required: ['match', 'contactIndex'],
|
|
1696
|
+
properties: {
|
|
1697
|
+
match: {
|
|
1698
|
+
description: 'Profile of the matched user.',
|
|
1699
|
+
type: 'ref',
|
|
1700
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
1701
|
+
},
|
|
1702
|
+
contactIndex: {
|
|
1703
|
+
description: 'The index of this match in the import contact input.',
|
|
1704
|
+
type: 'integer',
|
|
1705
|
+
minimum: 0,
|
|
1706
|
+
maximum: 999,
|
|
1707
|
+
},
|
|
1708
|
+
},
|
|
1709
|
+
},
|
|
1710
|
+
syncStatus: {
|
|
1711
|
+
type: 'object',
|
|
1712
|
+
required: ['syncedAt', 'matchesCount'],
|
|
1713
|
+
properties: {
|
|
1714
|
+
syncedAt: {
|
|
1715
|
+
description: 'Last date when contacts where imported.',
|
|
1716
|
+
type: 'string',
|
|
1717
|
+
format: 'datetime',
|
|
1718
|
+
},
|
|
1719
|
+
matchesCount: {
|
|
1720
|
+
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.',
|
|
1721
|
+
type: 'integer',
|
|
1722
|
+
minimum: 0,
|
|
1723
|
+
},
|
|
1724
|
+
},
|
|
1725
|
+
},
|
|
1726
|
+
notification: {
|
|
1727
|
+
description: 'A stash object to be sent via bsync representing a notification to be created.',
|
|
1728
|
+
type: 'object',
|
|
1729
|
+
required: ['from', 'to'],
|
|
1730
|
+
properties: {
|
|
1731
|
+
from: {
|
|
1732
|
+
description: 'The DID of who this notification comes from.',
|
|
1733
|
+
type: 'string',
|
|
1734
|
+
format: 'did',
|
|
1735
|
+
},
|
|
1736
|
+
to: {
|
|
1737
|
+
description: 'The DID of who this notification should go to.',
|
|
1738
|
+
type: 'string',
|
|
1739
|
+
format: 'did',
|
|
1740
|
+
},
|
|
1741
|
+
},
|
|
1742
|
+
},
|
|
1743
|
+
},
|
|
1744
|
+
},
|
|
1745
|
+
AppBskyContactDismissMatch: {
|
|
1746
|
+
lexicon: 1,
|
|
1747
|
+
id: 'app.bsky.contact.dismissMatch',
|
|
1748
|
+
defs: {
|
|
1749
|
+
main: {
|
|
1750
|
+
type: 'procedure',
|
|
1751
|
+
description: "Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.",
|
|
1752
|
+
input: {
|
|
1753
|
+
encoding: 'application/json',
|
|
1754
|
+
schema: {
|
|
1755
|
+
type: 'object',
|
|
1756
|
+
required: ['subject'],
|
|
1757
|
+
properties: {
|
|
1758
|
+
subject: {
|
|
1759
|
+
description: "The subject's DID to dismiss the match with.",
|
|
1760
|
+
type: 'string',
|
|
1761
|
+
format: 'did',
|
|
1762
|
+
},
|
|
1763
|
+
},
|
|
1764
|
+
},
|
|
1765
|
+
},
|
|
1766
|
+
output: {
|
|
1767
|
+
encoding: 'application/json',
|
|
1768
|
+
schema: {
|
|
1769
|
+
type: 'object',
|
|
1770
|
+
properties: {},
|
|
1771
|
+
},
|
|
1772
|
+
},
|
|
1773
|
+
errors: [
|
|
1774
|
+
{
|
|
1775
|
+
name: 'InvalidDid',
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
name: 'InternalError',
|
|
1779
|
+
},
|
|
1780
|
+
],
|
|
1781
|
+
},
|
|
1782
|
+
},
|
|
1783
|
+
},
|
|
1784
|
+
AppBskyContactGetMatches: {
|
|
1785
|
+
lexicon: 1,
|
|
1786
|
+
id: 'app.bsky.contact.getMatches',
|
|
1787
|
+
defs: {
|
|
1788
|
+
main: {
|
|
1789
|
+
type: 'query',
|
|
1790
|
+
description: 'Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.',
|
|
1791
|
+
parameters: {
|
|
1792
|
+
type: 'params',
|
|
1793
|
+
properties: {
|
|
1794
|
+
limit: {
|
|
1795
|
+
type: 'integer',
|
|
1796
|
+
minimum: 1,
|
|
1797
|
+
maximum: 100,
|
|
1798
|
+
default: 50,
|
|
1799
|
+
},
|
|
1800
|
+
cursor: {
|
|
1801
|
+
type: 'string',
|
|
1802
|
+
},
|
|
1803
|
+
},
|
|
1804
|
+
},
|
|
1805
|
+
output: {
|
|
1806
|
+
encoding: 'application/json',
|
|
1807
|
+
schema: {
|
|
1808
|
+
type: 'object',
|
|
1809
|
+
required: ['matches'],
|
|
1810
|
+
properties: {
|
|
1811
|
+
cursor: {
|
|
1812
|
+
type: 'string',
|
|
1813
|
+
},
|
|
1814
|
+
matches: {
|
|
1815
|
+
type: 'array',
|
|
1816
|
+
items: {
|
|
1817
|
+
type: 'ref',
|
|
1818
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
1819
|
+
},
|
|
1820
|
+
},
|
|
1821
|
+
},
|
|
1822
|
+
},
|
|
1823
|
+
},
|
|
1824
|
+
errors: [
|
|
1825
|
+
{
|
|
1826
|
+
name: 'InvalidDid',
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
name: 'InvalidLimit',
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
name: 'InvalidCursor',
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
name: 'InternalError',
|
|
1836
|
+
},
|
|
1837
|
+
],
|
|
1838
|
+
},
|
|
1839
|
+
},
|
|
1840
|
+
},
|
|
1841
|
+
AppBskyContactGetSyncStatus: {
|
|
1842
|
+
lexicon: 1,
|
|
1843
|
+
id: 'app.bsky.contact.getSyncStatus',
|
|
1844
|
+
defs: {
|
|
1845
|
+
main: {
|
|
1846
|
+
type: 'query',
|
|
1847
|
+
description: "Gets the user's current contact import status. Requires authentication.",
|
|
1848
|
+
parameters: {
|
|
1849
|
+
type: 'params',
|
|
1850
|
+
properties: {},
|
|
1851
|
+
},
|
|
1852
|
+
output: {
|
|
1853
|
+
encoding: 'application/json',
|
|
1854
|
+
schema: {
|
|
1855
|
+
type: 'object',
|
|
1856
|
+
properties: {
|
|
1857
|
+
syncStatus: {
|
|
1858
|
+
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.",
|
|
1859
|
+
type: 'ref',
|
|
1860
|
+
ref: 'lex:app.bsky.contact.defs#syncStatus',
|
|
1861
|
+
},
|
|
1862
|
+
},
|
|
1863
|
+
},
|
|
1864
|
+
},
|
|
1865
|
+
errors: [
|
|
1866
|
+
{
|
|
1867
|
+
name: 'InvalidDid',
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
name: 'InternalError',
|
|
1871
|
+
},
|
|
1872
|
+
],
|
|
1873
|
+
},
|
|
1874
|
+
},
|
|
1875
|
+
},
|
|
1876
|
+
AppBskyContactImportContacts: {
|
|
1877
|
+
lexicon: 1,
|
|
1878
|
+
id: 'app.bsky.contact.importContacts',
|
|
1879
|
+
defs: {
|
|
1880
|
+
main: {
|
|
1881
|
+
type: 'procedure',
|
|
1882
|
+
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.',
|
|
1883
|
+
input: {
|
|
1884
|
+
encoding: 'application/json',
|
|
1885
|
+
schema: {
|
|
1886
|
+
type: 'object',
|
|
1887
|
+
required: ['token', 'contacts'],
|
|
1888
|
+
properties: {
|
|
1889
|
+
token: {
|
|
1890
|
+
description: 'JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.',
|
|
1891
|
+
type: 'string',
|
|
1892
|
+
},
|
|
1893
|
+
contacts: {
|
|
1894
|
+
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`.",
|
|
1895
|
+
type: 'array',
|
|
1896
|
+
items: {
|
|
1897
|
+
type: 'string',
|
|
1898
|
+
},
|
|
1899
|
+
minLength: 1,
|
|
1900
|
+
maxLength: 1000,
|
|
1901
|
+
},
|
|
1902
|
+
},
|
|
1903
|
+
},
|
|
1904
|
+
},
|
|
1905
|
+
output: {
|
|
1906
|
+
encoding: 'application/json',
|
|
1907
|
+
schema: {
|
|
1908
|
+
type: 'object',
|
|
1909
|
+
required: ['matchesAndContactIndexes'],
|
|
1910
|
+
properties: {
|
|
1911
|
+
matchesAndContactIndexes: {
|
|
1912
|
+
description: 'The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.',
|
|
1913
|
+
type: 'array',
|
|
1914
|
+
items: {
|
|
1915
|
+
type: 'ref',
|
|
1916
|
+
ref: 'lex:app.bsky.contact.defs#matchAndContactIndex',
|
|
1917
|
+
},
|
|
1918
|
+
},
|
|
1919
|
+
},
|
|
1920
|
+
},
|
|
1921
|
+
},
|
|
1922
|
+
errors: [
|
|
1923
|
+
{
|
|
1924
|
+
name: 'InvalidDid',
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
name: 'InvalidContacts',
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
name: 'TooManyContacts',
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
name: 'InvalidToken',
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
name: 'InternalError',
|
|
1937
|
+
},
|
|
1938
|
+
],
|
|
1939
|
+
},
|
|
1940
|
+
},
|
|
1941
|
+
},
|
|
1942
|
+
AppBskyContactRemoveData: {
|
|
1943
|
+
lexicon: 1,
|
|
1944
|
+
id: 'app.bsky.contact.removeData',
|
|
1945
|
+
defs: {
|
|
1946
|
+
main: {
|
|
1947
|
+
type: 'procedure',
|
|
1948
|
+
description: 'Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.',
|
|
1949
|
+
input: {
|
|
1950
|
+
encoding: 'application/json',
|
|
1951
|
+
schema: {
|
|
1952
|
+
type: 'object',
|
|
1953
|
+
properties: {},
|
|
1954
|
+
},
|
|
1955
|
+
},
|
|
1956
|
+
output: {
|
|
1957
|
+
encoding: 'application/json',
|
|
1958
|
+
schema: {
|
|
1959
|
+
type: 'object',
|
|
1960
|
+
properties: {},
|
|
1961
|
+
},
|
|
1962
|
+
},
|
|
1963
|
+
errors: [
|
|
1964
|
+
{
|
|
1965
|
+
name: 'InvalidDid',
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
name: 'InternalError',
|
|
1969
|
+
},
|
|
1970
|
+
],
|
|
1971
|
+
},
|
|
1972
|
+
},
|
|
1973
|
+
},
|
|
1974
|
+
AppBskyContactSendNotification: {
|
|
1975
|
+
lexicon: 1,
|
|
1976
|
+
id: 'app.bsky.contact.sendNotification',
|
|
1977
|
+
defs: {
|
|
1978
|
+
main: {
|
|
1979
|
+
type: 'procedure',
|
|
1980
|
+
description: 'System endpoint to send notifications related to contact imports. Requires role authentication.',
|
|
1981
|
+
input: {
|
|
1982
|
+
encoding: 'application/json',
|
|
1983
|
+
schema: {
|
|
1984
|
+
type: 'object',
|
|
1985
|
+
required: ['from', 'to'],
|
|
1986
|
+
properties: {
|
|
1987
|
+
from: {
|
|
1988
|
+
description: 'The DID of who this notification comes from.',
|
|
1989
|
+
type: 'string',
|
|
1990
|
+
format: 'did',
|
|
1991
|
+
},
|
|
1992
|
+
to: {
|
|
1993
|
+
description: 'The DID of who this notification should go to.',
|
|
1994
|
+
type: 'string',
|
|
1995
|
+
format: 'did',
|
|
1996
|
+
},
|
|
1997
|
+
},
|
|
1998
|
+
},
|
|
1999
|
+
},
|
|
2000
|
+
output: {
|
|
2001
|
+
encoding: 'application/json',
|
|
2002
|
+
schema: {
|
|
2003
|
+
type: 'object',
|
|
2004
|
+
properties: {},
|
|
2005
|
+
},
|
|
2006
|
+
},
|
|
2007
|
+
},
|
|
2008
|
+
},
|
|
2009
|
+
},
|
|
2010
|
+
AppBskyContactStartPhoneVerification: {
|
|
2011
|
+
lexicon: 1,
|
|
2012
|
+
id: 'app.bsky.contact.startPhoneVerification',
|
|
2013
|
+
defs: {
|
|
2014
|
+
main: {
|
|
2015
|
+
type: 'procedure',
|
|
2016
|
+
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.',
|
|
2017
|
+
input: {
|
|
2018
|
+
encoding: 'application/json',
|
|
2019
|
+
schema: {
|
|
2020
|
+
type: 'object',
|
|
2021
|
+
required: ['phone'],
|
|
2022
|
+
properties: {
|
|
2023
|
+
phone: {
|
|
2024
|
+
description: 'The phone number to receive the code via SMS.',
|
|
2025
|
+
type: 'string',
|
|
2026
|
+
},
|
|
2027
|
+
},
|
|
2028
|
+
},
|
|
2029
|
+
},
|
|
2030
|
+
output: {
|
|
2031
|
+
encoding: 'application/json',
|
|
2032
|
+
schema: {
|
|
2033
|
+
type: 'object',
|
|
2034
|
+
properties: {},
|
|
2035
|
+
},
|
|
2036
|
+
},
|
|
2037
|
+
errors: [
|
|
2038
|
+
{
|
|
2039
|
+
name: 'RateLimitExceeded',
|
|
2040
|
+
},
|
|
2041
|
+
{
|
|
2042
|
+
name: 'InvalidDid',
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
name: 'InvalidPhone',
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
name: 'InternalError',
|
|
2049
|
+
},
|
|
2050
|
+
],
|
|
2051
|
+
},
|
|
2052
|
+
},
|
|
2053
|
+
},
|
|
2054
|
+
AppBskyContactVerifyPhone: {
|
|
2055
|
+
lexicon: 1,
|
|
2056
|
+
id: 'app.bsky.contact.verifyPhone',
|
|
2057
|
+
defs: {
|
|
2058
|
+
main: {
|
|
2059
|
+
type: 'procedure',
|
|
2060
|
+
description: 'Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.',
|
|
2061
|
+
input: {
|
|
2062
|
+
encoding: 'application/json',
|
|
2063
|
+
schema: {
|
|
2064
|
+
type: 'object',
|
|
2065
|
+
required: ['phone', 'code'],
|
|
2066
|
+
properties: {
|
|
2067
|
+
phone: {
|
|
2068
|
+
description: 'The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.',
|
|
2069
|
+
type: 'string',
|
|
2070
|
+
},
|
|
2071
|
+
code: {
|
|
2072
|
+
description: 'The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.',
|
|
2073
|
+
type: 'string',
|
|
2074
|
+
},
|
|
2075
|
+
},
|
|
2076
|
+
},
|
|
2077
|
+
},
|
|
2078
|
+
output: {
|
|
2079
|
+
encoding: 'application/json',
|
|
2080
|
+
schema: {
|
|
2081
|
+
type: 'object',
|
|
2082
|
+
required: ['token'],
|
|
2083
|
+
properties: {
|
|
2084
|
+
token: {
|
|
2085
|
+
description: 'JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.',
|
|
2086
|
+
type: 'string',
|
|
2087
|
+
},
|
|
2088
|
+
},
|
|
2089
|
+
},
|
|
2090
|
+
},
|
|
2091
|
+
errors: [
|
|
2092
|
+
{
|
|
2093
|
+
name: 'RateLimitExceeded',
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
name: 'InvalidDid',
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
name: 'InvalidPhone',
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
name: 'InvalidCode',
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
name: 'InternalError',
|
|
2106
|
+
},
|
|
2107
|
+
],
|
|
2108
|
+
},
|
|
2109
|
+
},
|
|
2110
|
+
},
|
|
1669
2111
|
AppBskyEmbedDefs: {
|
|
1670
2112
|
lexicon: 1,
|
|
1671
2113
|
id: 'app.bsky.embed.defs',
|
|
@@ -4310,6 +4752,26 @@ exports.schemaDict = {
|
|
|
4310
4752
|
format: 'at-uri',
|
|
4311
4753
|
description: 'if the actor is followed by this DID, contains the AT-URI of the follow record',
|
|
4312
4754
|
},
|
|
4755
|
+
blocking: {
|
|
4756
|
+
type: 'string',
|
|
4757
|
+
format: 'at-uri',
|
|
4758
|
+
description: 'if the actor blocks this DID, this is the AT-URI of the block record',
|
|
4759
|
+
},
|
|
4760
|
+
blockedBy: {
|
|
4761
|
+
type: 'string',
|
|
4762
|
+
format: 'at-uri',
|
|
4763
|
+
description: 'if the actor is blocked by this DID, contains the AT-URI of the block record',
|
|
4764
|
+
},
|
|
4765
|
+
blockingByList: {
|
|
4766
|
+
type: 'string',
|
|
4767
|
+
format: 'at-uri',
|
|
4768
|
+
description: 'if the actor blocks this DID via a block list, this is the AT-URI of the listblock record',
|
|
4769
|
+
},
|
|
4770
|
+
blockedByList: {
|
|
4771
|
+
type: 'string',
|
|
4772
|
+
format: 'at-uri',
|
|
4773
|
+
description: 'if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record',
|
|
4774
|
+
},
|
|
4313
4775
|
},
|
|
4314
4776
|
},
|
|
4315
4777
|
},
|
|
@@ -6155,6 +6617,7 @@ exports.schemaDict = {
|
|
|
6155
6617
|
'like-via-repost',
|
|
6156
6618
|
'repost-via-repost',
|
|
6157
6619
|
'subscribed-post',
|
|
6620
|
+
'contact-match',
|
|
6158
6621
|
],
|
|
6159
6622
|
},
|
|
6160
6623
|
reasonSubject: {
|
|
@@ -14961,6 +15424,7 @@ exports.schemaDict = {
|
|
|
14961
15424
|
},
|
|
14962
15425
|
comment: {
|
|
14963
15426
|
type: 'string',
|
|
15427
|
+
minLength: 1,
|
|
14964
15428
|
description: 'Comment describing the reason for the override.',
|
|
14965
15429
|
},
|
|
14966
15430
|
},
|
|
@@ -14971,6 +15435,7 @@ exports.schemaDict = {
|
|
|
14971
15435
|
required: ['comment'],
|
|
14972
15436
|
properties: {
|
|
14973
15437
|
comment: {
|
|
15438
|
+
minLength: 1,
|
|
14974
15439
|
type: 'string',
|
|
14975
15440
|
description: 'Comment describing the reason for the revocation.',
|
|
14976
15441
|
},
|
|
@@ -18911,6 +19376,15 @@ exports.ids = {
|
|
|
18911
19376
|
AppBskyBookmarkDefs: 'app.bsky.bookmark.defs',
|
|
18912
19377
|
AppBskyBookmarkDeleteBookmark: 'app.bsky.bookmark.deleteBookmark',
|
|
18913
19378
|
AppBskyBookmarkGetBookmarks: 'app.bsky.bookmark.getBookmarks',
|
|
19379
|
+
AppBskyContactDefs: 'app.bsky.contact.defs',
|
|
19380
|
+
AppBskyContactDismissMatch: 'app.bsky.contact.dismissMatch',
|
|
19381
|
+
AppBskyContactGetMatches: 'app.bsky.contact.getMatches',
|
|
19382
|
+
AppBskyContactGetSyncStatus: 'app.bsky.contact.getSyncStatus',
|
|
19383
|
+
AppBskyContactImportContacts: 'app.bsky.contact.importContacts',
|
|
19384
|
+
AppBskyContactRemoveData: 'app.bsky.contact.removeData',
|
|
19385
|
+
AppBskyContactSendNotification: 'app.bsky.contact.sendNotification',
|
|
19386
|
+
AppBskyContactStartPhoneVerification: 'app.bsky.contact.startPhoneVerification',
|
|
19387
|
+
AppBskyContactVerifyPhone: 'app.bsky.contact.verifyPhone',
|
|
18914
19388
|
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
18915
19389
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
18916
19390
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|