@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/src/lexicon/lexicons.ts
CHANGED
|
@@ -401,6 +401,7 @@ export const schemaDict = {
|
|
|
401
401
|
'lex:app.bsky.actor.defs#savedFeedsPref',
|
|
402
402
|
'lex:app.bsky.actor.defs#savedFeedsPrefV2',
|
|
403
403
|
'lex:app.bsky.actor.defs#personalDetailsPref',
|
|
404
|
+
'lex:app.bsky.actor.defs#declaredAgePref',
|
|
404
405
|
'lex:app.bsky.actor.defs#feedViewPref',
|
|
405
406
|
'lex:app.bsky.actor.defs#threadViewPref',
|
|
406
407
|
'lex:app.bsky.actor.defs#interestsPref',
|
|
@@ -507,6 +508,28 @@ export const schemaDict = {
|
|
|
507
508
|
},
|
|
508
509
|
},
|
|
509
510
|
},
|
|
511
|
+
declaredAgePref: {
|
|
512
|
+
type: 'object',
|
|
513
|
+
description:
|
|
514
|
+
"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.",
|
|
515
|
+
properties: {
|
|
516
|
+
isOverAge13: {
|
|
517
|
+
type: 'boolean',
|
|
518
|
+
description:
|
|
519
|
+
'Indicates if the user has declared that they are over 13 years of age.',
|
|
520
|
+
},
|
|
521
|
+
isOverAge16: {
|
|
522
|
+
type: 'boolean',
|
|
523
|
+
description:
|
|
524
|
+
'Indicates if the user has declared that they are over 16 years of age.',
|
|
525
|
+
},
|
|
526
|
+
isOverAge18: {
|
|
527
|
+
type: 'boolean',
|
|
528
|
+
description:
|
|
529
|
+
'Indicates if the user has declared that they are over 18 years of age.',
|
|
530
|
+
},
|
|
531
|
+
},
|
|
532
|
+
},
|
|
510
533
|
feedViewPref: {
|
|
511
534
|
type: 'object',
|
|
512
535
|
required: ['feed'],
|
|
@@ -1736,6 +1759,447 @@ export const schemaDict = {
|
|
|
1736
1759
|
},
|
|
1737
1760
|
},
|
|
1738
1761
|
},
|
|
1762
|
+
AppBskyContactDefs: {
|
|
1763
|
+
lexicon: 1,
|
|
1764
|
+
id: 'app.bsky.contact.defs',
|
|
1765
|
+
defs: {
|
|
1766
|
+
matchAndContactIndex: {
|
|
1767
|
+
description:
|
|
1768
|
+
'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.',
|
|
1769
|
+
type: 'object',
|
|
1770
|
+
required: ['match', 'contactIndex'],
|
|
1771
|
+
properties: {
|
|
1772
|
+
match: {
|
|
1773
|
+
description: 'Profile of the matched user.',
|
|
1774
|
+
type: 'ref',
|
|
1775
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
1776
|
+
},
|
|
1777
|
+
contactIndex: {
|
|
1778
|
+
description: 'The index of this match in the import contact input.',
|
|
1779
|
+
type: 'integer',
|
|
1780
|
+
minimum: 0,
|
|
1781
|
+
maximum: 999,
|
|
1782
|
+
},
|
|
1783
|
+
},
|
|
1784
|
+
},
|
|
1785
|
+
syncStatus: {
|
|
1786
|
+
type: 'object',
|
|
1787
|
+
required: ['syncedAt', 'matchesCount'],
|
|
1788
|
+
properties: {
|
|
1789
|
+
syncedAt: {
|
|
1790
|
+
description: 'Last date when contacts where imported.',
|
|
1791
|
+
type: 'string',
|
|
1792
|
+
format: 'datetime',
|
|
1793
|
+
},
|
|
1794
|
+
matchesCount: {
|
|
1795
|
+
description:
|
|
1796
|
+
'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.',
|
|
1797
|
+
type: 'integer',
|
|
1798
|
+
minimum: 0,
|
|
1799
|
+
},
|
|
1800
|
+
},
|
|
1801
|
+
},
|
|
1802
|
+
notification: {
|
|
1803
|
+
description:
|
|
1804
|
+
'A stash object to be sent via bsync representing a notification to be created.',
|
|
1805
|
+
type: 'object',
|
|
1806
|
+
required: ['from', 'to'],
|
|
1807
|
+
properties: {
|
|
1808
|
+
from: {
|
|
1809
|
+
description: 'The DID of who this notification comes from.',
|
|
1810
|
+
type: 'string',
|
|
1811
|
+
format: 'did',
|
|
1812
|
+
},
|
|
1813
|
+
to: {
|
|
1814
|
+
description: 'The DID of who this notification should go to.',
|
|
1815
|
+
type: 'string',
|
|
1816
|
+
format: 'did',
|
|
1817
|
+
},
|
|
1818
|
+
},
|
|
1819
|
+
},
|
|
1820
|
+
},
|
|
1821
|
+
},
|
|
1822
|
+
AppBskyContactDismissMatch: {
|
|
1823
|
+
lexicon: 1,
|
|
1824
|
+
id: 'app.bsky.contact.dismissMatch',
|
|
1825
|
+
defs: {
|
|
1826
|
+
main: {
|
|
1827
|
+
type: 'procedure',
|
|
1828
|
+
description:
|
|
1829
|
+
"Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.",
|
|
1830
|
+
input: {
|
|
1831
|
+
encoding: 'application/json',
|
|
1832
|
+
schema: {
|
|
1833
|
+
type: 'object',
|
|
1834
|
+
required: ['subject'],
|
|
1835
|
+
properties: {
|
|
1836
|
+
subject: {
|
|
1837
|
+
description: "The subject's DID to dismiss the match with.",
|
|
1838
|
+
type: 'string',
|
|
1839
|
+
format: 'did',
|
|
1840
|
+
},
|
|
1841
|
+
},
|
|
1842
|
+
},
|
|
1843
|
+
},
|
|
1844
|
+
output: {
|
|
1845
|
+
encoding: 'application/json',
|
|
1846
|
+
schema: {
|
|
1847
|
+
type: 'object',
|
|
1848
|
+
properties: {},
|
|
1849
|
+
},
|
|
1850
|
+
},
|
|
1851
|
+
errors: [
|
|
1852
|
+
{
|
|
1853
|
+
name: 'InvalidDid',
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
name: 'InternalError',
|
|
1857
|
+
},
|
|
1858
|
+
],
|
|
1859
|
+
},
|
|
1860
|
+
},
|
|
1861
|
+
},
|
|
1862
|
+
AppBskyContactGetMatches: {
|
|
1863
|
+
lexicon: 1,
|
|
1864
|
+
id: 'app.bsky.contact.getMatches',
|
|
1865
|
+
defs: {
|
|
1866
|
+
main: {
|
|
1867
|
+
type: 'query',
|
|
1868
|
+
description:
|
|
1869
|
+
'Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.',
|
|
1870
|
+
parameters: {
|
|
1871
|
+
type: 'params',
|
|
1872
|
+
properties: {
|
|
1873
|
+
limit: {
|
|
1874
|
+
type: 'integer',
|
|
1875
|
+
minimum: 1,
|
|
1876
|
+
maximum: 100,
|
|
1877
|
+
default: 50,
|
|
1878
|
+
},
|
|
1879
|
+
cursor: {
|
|
1880
|
+
type: 'string',
|
|
1881
|
+
},
|
|
1882
|
+
},
|
|
1883
|
+
},
|
|
1884
|
+
output: {
|
|
1885
|
+
encoding: 'application/json',
|
|
1886
|
+
schema: {
|
|
1887
|
+
type: 'object',
|
|
1888
|
+
required: ['matches'],
|
|
1889
|
+
properties: {
|
|
1890
|
+
cursor: {
|
|
1891
|
+
type: 'string',
|
|
1892
|
+
},
|
|
1893
|
+
matches: {
|
|
1894
|
+
type: 'array',
|
|
1895
|
+
items: {
|
|
1896
|
+
type: 'ref',
|
|
1897
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
1898
|
+
},
|
|
1899
|
+
},
|
|
1900
|
+
},
|
|
1901
|
+
},
|
|
1902
|
+
},
|
|
1903
|
+
errors: [
|
|
1904
|
+
{
|
|
1905
|
+
name: 'InvalidDid',
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
name: 'InvalidLimit',
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
name: 'InvalidCursor',
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
name: 'InternalError',
|
|
1915
|
+
},
|
|
1916
|
+
],
|
|
1917
|
+
},
|
|
1918
|
+
},
|
|
1919
|
+
},
|
|
1920
|
+
AppBskyContactGetSyncStatus: {
|
|
1921
|
+
lexicon: 1,
|
|
1922
|
+
id: 'app.bsky.contact.getSyncStatus',
|
|
1923
|
+
defs: {
|
|
1924
|
+
main: {
|
|
1925
|
+
type: 'query',
|
|
1926
|
+
description:
|
|
1927
|
+
"Gets the user's current contact import status. Requires authentication.",
|
|
1928
|
+
parameters: {
|
|
1929
|
+
type: 'params',
|
|
1930
|
+
properties: {},
|
|
1931
|
+
},
|
|
1932
|
+
output: {
|
|
1933
|
+
encoding: 'application/json',
|
|
1934
|
+
schema: {
|
|
1935
|
+
type: 'object',
|
|
1936
|
+
properties: {
|
|
1937
|
+
syncStatus: {
|
|
1938
|
+
description:
|
|
1939
|
+
"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.",
|
|
1940
|
+
type: 'ref',
|
|
1941
|
+
ref: 'lex:app.bsky.contact.defs#syncStatus',
|
|
1942
|
+
},
|
|
1943
|
+
},
|
|
1944
|
+
},
|
|
1945
|
+
},
|
|
1946
|
+
errors: [
|
|
1947
|
+
{
|
|
1948
|
+
name: 'InvalidDid',
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
name: 'InternalError',
|
|
1952
|
+
},
|
|
1953
|
+
],
|
|
1954
|
+
},
|
|
1955
|
+
},
|
|
1956
|
+
},
|
|
1957
|
+
AppBskyContactImportContacts: {
|
|
1958
|
+
lexicon: 1,
|
|
1959
|
+
id: 'app.bsky.contact.importContacts',
|
|
1960
|
+
defs: {
|
|
1961
|
+
main: {
|
|
1962
|
+
type: 'procedure',
|
|
1963
|
+
description:
|
|
1964
|
+
'Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.',
|
|
1965
|
+
input: {
|
|
1966
|
+
encoding: 'application/json',
|
|
1967
|
+
schema: {
|
|
1968
|
+
type: 'object',
|
|
1969
|
+
required: ['token', 'contacts'],
|
|
1970
|
+
properties: {
|
|
1971
|
+
token: {
|
|
1972
|
+
description:
|
|
1973
|
+
'JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.',
|
|
1974
|
+
type: 'string',
|
|
1975
|
+
},
|
|
1976
|
+
contacts: {
|
|
1977
|
+
description:
|
|
1978
|
+
"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`.",
|
|
1979
|
+
type: 'array',
|
|
1980
|
+
items: {
|
|
1981
|
+
type: 'string',
|
|
1982
|
+
},
|
|
1983
|
+
minLength: 1,
|
|
1984
|
+
maxLength: 1000,
|
|
1985
|
+
},
|
|
1986
|
+
},
|
|
1987
|
+
},
|
|
1988
|
+
},
|
|
1989
|
+
output: {
|
|
1990
|
+
encoding: 'application/json',
|
|
1991
|
+
schema: {
|
|
1992
|
+
type: 'object',
|
|
1993
|
+
required: ['matchesAndContactIndexes'],
|
|
1994
|
+
properties: {
|
|
1995
|
+
matchesAndContactIndexes: {
|
|
1996
|
+
description:
|
|
1997
|
+
'The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.',
|
|
1998
|
+
type: 'array',
|
|
1999
|
+
items: {
|
|
2000
|
+
type: 'ref',
|
|
2001
|
+
ref: 'lex:app.bsky.contact.defs#matchAndContactIndex',
|
|
2002
|
+
},
|
|
2003
|
+
},
|
|
2004
|
+
},
|
|
2005
|
+
},
|
|
2006
|
+
},
|
|
2007
|
+
errors: [
|
|
2008
|
+
{
|
|
2009
|
+
name: 'InvalidDid',
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
name: 'InvalidContacts',
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
name: 'TooManyContacts',
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
name: 'InvalidToken',
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
name: 'InternalError',
|
|
2022
|
+
},
|
|
2023
|
+
],
|
|
2024
|
+
},
|
|
2025
|
+
},
|
|
2026
|
+
},
|
|
2027
|
+
AppBskyContactRemoveData: {
|
|
2028
|
+
lexicon: 1,
|
|
2029
|
+
id: 'app.bsky.contact.removeData',
|
|
2030
|
+
defs: {
|
|
2031
|
+
main: {
|
|
2032
|
+
type: 'procedure',
|
|
2033
|
+
description:
|
|
2034
|
+
'Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.',
|
|
2035
|
+
input: {
|
|
2036
|
+
encoding: 'application/json',
|
|
2037
|
+
schema: {
|
|
2038
|
+
type: 'object',
|
|
2039
|
+
properties: {},
|
|
2040
|
+
},
|
|
2041
|
+
},
|
|
2042
|
+
output: {
|
|
2043
|
+
encoding: 'application/json',
|
|
2044
|
+
schema: {
|
|
2045
|
+
type: 'object',
|
|
2046
|
+
properties: {},
|
|
2047
|
+
},
|
|
2048
|
+
},
|
|
2049
|
+
errors: [
|
|
2050
|
+
{
|
|
2051
|
+
name: 'InvalidDid',
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
name: 'InternalError',
|
|
2055
|
+
},
|
|
2056
|
+
],
|
|
2057
|
+
},
|
|
2058
|
+
},
|
|
2059
|
+
},
|
|
2060
|
+
AppBskyContactSendNotification: {
|
|
2061
|
+
lexicon: 1,
|
|
2062
|
+
id: 'app.bsky.contact.sendNotification',
|
|
2063
|
+
defs: {
|
|
2064
|
+
main: {
|
|
2065
|
+
type: 'procedure',
|
|
2066
|
+
description:
|
|
2067
|
+
'System endpoint to send notifications related to contact imports. Requires role authentication.',
|
|
2068
|
+
input: {
|
|
2069
|
+
encoding: 'application/json',
|
|
2070
|
+
schema: {
|
|
2071
|
+
type: 'object',
|
|
2072
|
+
required: ['from', 'to'],
|
|
2073
|
+
properties: {
|
|
2074
|
+
from: {
|
|
2075
|
+
description: 'The DID of who this notification comes from.',
|
|
2076
|
+
type: 'string',
|
|
2077
|
+
format: 'did',
|
|
2078
|
+
},
|
|
2079
|
+
to: {
|
|
2080
|
+
description: 'The DID of who this notification should go to.',
|
|
2081
|
+
type: 'string',
|
|
2082
|
+
format: 'did',
|
|
2083
|
+
},
|
|
2084
|
+
},
|
|
2085
|
+
},
|
|
2086
|
+
},
|
|
2087
|
+
output: {
|
|
2088
|
+
encoding: 'application/json',
|
|
2089
|
+
schema: {
|
|
2090
|
+
type: 'object',
|
|
2091
|
+
properties: {},
|
|
2092
|
+
},
|
|
2093
|
+
},
|
|
2094
|
+
},
|
|
2095
|
+
},
|
|
2096
|
+
},
|
|
2097
|
+
AppBskyContactStartPhoneVerification: {
|
|
2098
|
+
lexicon: 1,
|
|
2099
|
+
id: 'app.bsky.contact.startPhoneVerification',
|
|
2100
|
+
defs: {
|
|
2101
|
+
main: {
|
|
2102
|
+
type: 'procedure',
|
|
2103
|
+
description:
|
|
2104
|
+
'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.',
|
|
2105
|
+
input: {
|
|
2106
|
+
encoding: 'application/json',
|
|
2107
|
+
schema: {
|
|
2108
|
+
type: 'object',
|
|
2109
|
+
required: ['phone'],
|
|
2110
|
+
properties: {
|
|
2111
|
+
phone: {
|
|
2112
|
+
description: 'The phone number to receive the code via SMS.',
|
|
2113
|
+
type: 'string',
|
|
2114
|
+
},
|
|
2115
|
+
},
|
|
2116
|
+
},
|
|
2117
|
+
},
|
|
2118
|
+
output: {
|
|
2119
|
+
encoding: 'application/json',
|
|
2120
|
+
schema: {
|
|
2121
|
+
type: 'object',
|
|
2122
|
+
properties: {},
|
|
2123
|
+
},
|
|
2124
|
+
},
|
|
2125
|
+
errors: [
|
|
2126
|
+
{
|
|
2127
|
+
name: 'RateLimitExceeded',
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
name: 'InvalidDid',
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
name: 'InvalidPhone',
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
name: 'InternalError',
|
|
2137
|
+
},
|
|
2138
|
+
],
|
|
2139
|
+
},
|
|
2140
|
+
},
|
|
2141
|
+
},
|
|
2142
|
+
AppBskyContactVerifyPhone: {
|
|
2143
|
+
lexicon: 1,
|
|
2144
|
+
id: 'app.bsky.contact.verifyPhone',
|
|
2145
|
+
defs: {
|
|
2146
|
+
main: {
|
|
2147
|
+
type: 'procedure',
|
|
2148
|
+
description:
|
|
2149
|
+
'Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.',
|
|
2150
|
+
input: {
|
|
2151
|
+
encoding: 'application/json',
|
|
2152
|
+
schema: {
|
|
2153
|
+
type: 'object',
|
|
2154
|
+
required: ['phone', 'code'],
|
|
2155
|
+
properties: {
|
|
2156
|
+
phone: {
|
|
2157
|
+
description:
|
|
2158
|
+
'The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.',
|
|
2159
|
+
type: 'string',
|
|
2160
|
+
},
|
|
2161
|
+
code: {
|
|
2162
|
+
description:
|
|
2163
|
+
'The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.',
|
|
2164
|
+
type: 'string',
|
|
2165
|
+
},
|
|
2166
|
+
},
|
|
2167
|
+
},
|
|
2168
|
+
},
|
|
2169
|
+
output: {
|
|
2170
|
+
encoding: 'application/json',
|
|
2171
|
+
schema: {
|
|
2172
|
+
type: 'object',
|
|
2173
|
+
required: ['token'],
|
|
2174
|
+
properties: {
|
|
2175
|
+
token: {
|
|
2176
|
+
description:
|
|
2177
|
+
'JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.',
|
|
2178
|
+
type: 'string',
|
|
2179
|
+
},
|
|
2180
|
+
},
|
|
2181
|
+
},
|
|
2182
|
+
},
|
|
2183
|
+
errors: [
|
|
2184
|
+
{
|
|
2185
|
+
name: 'RateLimitExceeded',
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
name: 'InvalidDid',
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
name: 'InvalidPhone',
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
name: 'InvalidCode',
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
name: 'InternalError',
|
|
2198
|
+
},
|
|
2199
|
+
],
|
|
2200
|
+
},
|
|
2201
|
+
},
|
|
2202
|
+
},
|
|
1739
2203
|
AppBskyEmbedDefs: {
|
|
1740
2204
|
lexicon: 1,
|
|
1741
2205
|
id: 'app.bsky.embed.defs',
|
|
@@ -4461,6 +4925,30 @@ export const schemaDict = {
|
|
|
4461
4925
|
description:
|
|
4462
4926
|
'if the actor is followed by this DID, contains the AT-URI of the follow record',
|
|
4463
4927
|
},
|
|
4928
|
+
blocking: {
|
|
4929
|
+
type: 'string',
|
|
4930
|
+
format: 'at-uri',
|
|
4931
|
+
description:
|
|
4932
|
+
'if the actor blocks this DID, this is the AT-URI of the block record',
|
|
4933
|
+
},
|
|
4934
|
+
blockedBy: {
|
|
4935
|
+
type: 'string',
|
|
4936
|
+
format: 'at-uri',
|
|
4937
|
+
description:
|
|
4938
|
+
'if the actor is blocked by this DID, contains the AT-URI of the block record',
|
|
4939
|
+
},
|
|
4940
|
+
blockingByList: {
|
|
4941
|
+
type: 'string',
|
|
4942
|
+
format: 'at-uri',
|
|
4943
|
+
description:
|
|
4944
|
+
'if the actor blocks this DID via a block list, this is the AT-URI of the listblock record',
|
|
4945
|
+
},
|
|
4946
|
+
blockedByList: {
|
|
4947
|
+
type: 'string',
|
|
4948
|
+
format: 'at-uri',
|
|
4949
|
+
description:
|
|
4950
|
+
'if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record',
|
|
4951
|
+
},
|
|
4464
4952
|
},
|
|
4465
4953
|
},
|
|
4466
4954
|
},
|
|
@@ -6359,6 +6847,7 @@ export const schemaDict = {
|
|
|
6359
6847
|
'like-via-repost',
|
|
6360
6848
|
'repost-via-repost',
|
|
6361
6849
|
'subscribed-post',
|
|
6850
|
+
'contact-match',
|
|
6362
6851
|
],
|
|
6363
6852
|
},
|
|
6364
6853
|
reasonSubject: {
|
|
@@ -15485,6 +15974,7 @@ export const schemaDict = {
|
|
|
15485
15974
|
},
|
|
15486
15975
|
comment: {
|
|
15487
15976
|
type: 'string',
|
|
15977
|
+
minLength: 1,
|
|
15488
15978
|
description: 'Comment describing the reason for the override.',
|
|
15489
15979
|
},
|
|
15490
15980
|
},
|
|
@@ -15496,6 +15986,7 @@ export const schemaDict = {
|
|
|
15496
15986
|
required: ['comment'],
|
|
15497
15987
|
properties: {
|
|
15498
15988
|
comment: {
|
|
15989
|
+
minLength: 1,
|
|
15499
15990
|
type: 'string',
|
|
15500
15991
|
description: 'Comment describing the reason for the revocation.',
|
|
15501
15992
|
},
|
|
@@ -19575,6 +20066,16 @@ export const ids = {
|
|
|
19575
20066
|
AppBskyBookmarkDefs: 'app.bsky.bookmark.defs',
|
|
19576
20067
|
AppBskyBookmarkDeleteBookmark: 'app.bsky.bookmark.deleteBookmark',
|
|
19577
20068
|
AppBskyBookmarkGetBookmarks: 'app.bsky.bookmark.getBookmarks',
|
|
20069
|
+
AppBskyContactDefs: 'app.bsky.contact.defs',
|
|
20070
|
+
AppBskyContactDismissMatch: 'app.bsky.contact.dismissMatch',
|
|
20071
|
+
AppBskyContactGetMatches: 'app.bsky.contact.getMatches',
|
|
20072
|
+
AppBskyContactGetSyncStatus: 'app.bsky.contact.getSyncStatus',
|
|
20073
|
+
AppBskyContactImportContacts: 'app.bsky.contact.importContacts',
|
|
20074
|
+
AppBskyContactRemoveData: 'app.bsky.contact.removeData',
|
|
20075
|
+
AppBskyContactSendNotification: 'app.bsky.contact.sendNotification',
|
|
20076
|
+
AppBskyContactStartPhoneVerification:
|
|
20077
|
+
'app.bsky.contact.startPhoneVerification',
|
|
20078
|
+
AppBskyContactVerifyPhone: 'app.bsky.contact.verifyPhone',
|
|
19578
20079
|
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
19579
20080
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
19580
20081
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
@@ -259,6 +259,7 @@ export type Preferences = (
|
|
|
259
259
|
| $Typed<SavedFeedsPref>
|
|
260
260
|
| $Typed<SavedFeedsPrefV2>
|
|
261
261
|
| $Typed<PersonalDetailsPref>
|
|
262
|
+
| $Typed<DeclaredAgePref>
|
|
262
263
|
| $Typed<FeedViewPref>
|
|
263
264
|
| $Typed<ThreadViewPref>
|
|
264
265
|
| $Typed<InterestsPref>
|
|
@@ -370,6 +371,27 @@ export function validatePersonalDetailsPref<V>(v: V) {
|
|
|
370
371
|
return validate<PersonalDetailsPref & V>(v, id, hashPersonalDetailsPref)
|
|
371
372
|
}
|
|
372
373
|
|
|
374
|
+
/** 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. */
|
|
375
|
+
export interface DeclaredAgePref {
|
|
376
|
+
$type?: 'app.bsky.actor.defs#declaredAgePref'
|
|
377
|
+
/** Indicates if the user has declared that they are over 13 years of age. */
|
|
378
|
+
isOverAge13?: boolean
|
|
379
|
+
/** Indicates if the user has declared that they are over 16 years of age. */
|
|
380
|
+
isOverAge16?: boolean
|
|
381
|
+
/** Indicates if the user has declared that they are over 18 years of age. */
|
|
382
|
+
isOverAge18?: boolean
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
const hashDeclaredAgePref = 'declaredAgePref'
|
|
386
|
+
|
|
387
|
+
export function isDeclaredAgePref<V>(v: V) {
|
|
388
|
+
return is$typed(v, id, hashDeclaredAgePref)
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export function validateDeclaredAgePref<V>(v: V) {
|
|
392
|
+
return validate<DeclaredAgePref & V>(v, id, hashDeclaredAgePref)
|
|
393
|
+
}
|
|
394
|
+
|
|
373
395
|
export interface FeedViewPref {
|
|
374
396
|
$type?: 'app.bsky.actor.defs#feedViewPref'
|
|
375
397
|
/** The URI of the feed, or an identifier which describes the feed. */
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { CID } from 'multiformats/cid'
|
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
7
|
+
import {
|
|
8
|
+
type $Typed,
|
|
9
|
+
is$typed as _is$typed,
|
|
10
|
+
type OmitKey,
|
|
11
|
+
} from '../../../../util'
|
|
12
|
+
import type * as AppBskyActorDefs from '../actor/defs.js'
|
|
13
|
+
|
|
14
|
+
const is$typed = _is$typed,
|
|
15
|
+
validate = _validate
|
|
16
|
+
const id = 'app.bsky.contact.defs'
|
|
17
|
+
|
|
18
|
+
/** 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. */
|
|
19
|
+
export interface MatchAndContactIndex {
|
|
20
|
+
$type?: 'app.bsky.contact.defs#matchAndContactIndex'
|
|
21
|
+
match: AppBskyActorDefs.ProfileView
|
|
22
|
+
/** The index of this match in the import contact input. */
|
|
23
|
+
contactIndex: number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const hashMatchAndContactIndex = 'matchAndContactIndex'
|
|
27
|
+
|
|
28
|
+
export function isMatchAndContactIndex<V>(v: V) {
|
|
29
|
+
return is$typed(v, id, hashMatchAndContactIndex)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function validateMatchAndContactIndex<V>(v: V) {
|
|
33
|
+
return validate<MatchAndContactIndex & V>(v, id, hashMatchAndContactIndex)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface SyncStatus {
|
|
37
|
+
$type?: 'app.bsky.contact.defs#syncStatus'
|
|
38
|
+
/** Last date when contacts where imported. */
|
|
39
|
+
syncedAt: string
|
|
40
|
+
/** 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. */
|
|
41
|
+
matchesCount: number
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const hashSyncStatus = 'syncStatus'
|
|
45
|
+
|
|
46
|
+
export function isSyncStatus<V>(v: V) {
|
|
47
|
+
return is$typed(v, id, hashSyncStatus)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function validateSyncStatus<V>(v: V) {
|
|
51
|
+
return validate<SyncStatus & V>(v, id, hashSyncStatus)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** A stash object to be sent via bsync representing a notification to be created. */
|
|
55
|
+
export interface Notification {
|
|
56
|
+
$type?: 'app.bsky.contact.defs#notification'
|
|
57
|
+
/** The DID of who this notification comes from. */
|
|
58
|
+
from: string
|
|
59
|
+
/** The DID of who this notification should go to. */
|
|
60
|
+
to: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const hashNotification = 'notification'
|
|
64
|
+
|
|
65
|
+
export function isNotification<V>(v: V) {
|
|
66
|
+
return is$typed(v, id, hashNotification)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function validateNotification<V>(v: V) {
|
|
70
|
+
return validate<Notification & V>(v, id, hashNotification)
|
|
71
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { CID } from 'multiformats/cid'
|
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
7
|
+
import {
|
|
8
|
+
type $Typed,
|
|
9
|
+
is$typed as _is$typed,
|
|
10
|
+
type OmitKey,
|
|
11
|
+
} from '../../../../util'
|
|
12
|
+
|
|
13
|
+
const is$typed = _is$typed,
|
|
14
|
+
validate = _validate
|
|
15
|
+
const id = 'app.bsky.contact.dismissMatch'
|
|
16
|
+
|
|
17
|
+
export type QueryParams = {}
|
|
18
|
+
|
|
19
|
+
export interface InputSchema {
|
|
20
|
+
/** The subject's DID to dismiss the match with. */
|
|
21
|
+
subject: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface OutputSchema {}
|
|
25
|
+
|
|
26
|
+
export interface HandlerInput {
|
|
27
|
+
encoding: 'application/json'
|
|
28
|
+
body: InputSchema
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface HandlerSuccess {
|
|
32
|
+
encoding: 'application/json'
|
|
33
|
+
body: OutputSchema
|
|
34
|
+
headers?: { [key: string]: string }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface HandlerError {
|
|
38
|
+
status: number
|
|
39
|
+
message?: string
|
|
40
|
+
error?: 'InvalidDid' | 'InternalError'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type HandlerOutput = HandlerError | HandlerSuccess
|