@atproto/api 0.18.7 → 0.18.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/atp-agent.d.ts +8 -2
  3. package/dist/atp-agent.d.ts.map +1 -1
  4. package/dist/atp-agent.js +115 -80
  5. package/dist/atp-agent.js.map +1 -1
  6. package/dist/client/index.d.ts.map +1 -1
  7. package/dist/client/index.js +6 -1
  8. package/dist/client/index.js.map +1 -1
  9. package/dist/client/lexicons.d.ts +142 -52
  10. package/dist/client/lexicons.d.ts.map +1 -1
  11. package/dist/client/lexicons.js +93 -26
  12. package/dist/client/lexicons.js.map +1 -1
  13. package/dist/client/types/app/bsky/contact/dismissMatch.d.ts +4 -1
  14. package/dist/client/types/app/bsky/contact/dismissMatch.d.ts.map +1 -1
  15. package/dist/client/types/app/bsky/contact/dismissMatch.js +13 -5
  16. package/dist/client/types/app/bsky/contact/dismissMatch.js.map +1 -1
  17. package/dist/client/types/app/bsky/contact/getMatches.d.ts +10 -1
  18. package/dist/client/types/app/bsky/contact/getMatches.d.ts.map +1 -1
  19. package/dist/client/types/app/bsky/contact/getMatches.js +29 -5
  20. package/dist/client/types/app/bsky/contact/getMatches.js.map +1 -1
  21. package/dist/client/types/app/bsky/contact/getSyncStatus.d.ts +4 -1
  22. package/dist/client/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -1
  23. package/dist/client/types/app/bsky/contact/getSyncStatus.js +13 -5
  24. package/dist/client/types/app/bsky/contact/getSyncStatus.js.map +1 -1
  25. package/dist/client/types/app/bsky/contact/importContacts.d.ts +13 -1
  26. package/dist/client/types/app/bsky/contact/importContacts.d.ts.map +1 -1
  27. package/dist/client/types/app/bsky/contact/importContacts.js +37 -5
  28. package/dist/client/types/app/bsky/contact/importContacts.js.map +1 -1
  29. package/dist/client/types/app/bsky/contact/removeData.d.ts +4 -1
  30. package/dist/client/types/app/bsky/contact/removeData.d.ts.map +1 -1
  31. package/dist/client/types/app/bsky/contact/removeData.js +13 -5
  32. package/dist/client/types/app/bsky/contact/removeData.js.map +1 -1
  33. package/dist/client/types/app/bsky/contact/startPhoneVerification.d.ts +10 -1
  34. package/dist/client/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -1
  35. package/dist/client/types/app/bsky/contact/startPhoneVerification.js +29 -5
  36. package/dist/client/types/app/bsky/contact/startPhoneVerification.js.map +1 -1
  37. package/dist/client/types/app/bsky/contact/verifyPhone.d.ts +13 -1
  38. package/dist/client/types/app/bsky/contact/verifyPhone.d.ts.map +1 -1
  39. package/dist/client/types/app/bsky/contact/verifyPhone.js +37 -5
  40. package/dist/client/types/app/bsky/contact/verifyPhone.js.map +1 -1
  41. package/dist/client/types/com/atproto/server/deleteSession.d.ts +7 -1
  42. package/dist/client/types/com/atproto/server/deleteSession.d.ts.map +1 -1
  43. package/dist/client/types/com/atproto/server/deleteSession.js +23 -0
  44. package/dist/client/types/com/atproto/server/deleteSession.js.map +1 -1
  45. package/dist/client/types/com/atproto/server/getSession.d.ts +3 -3
  46. package/dist/client/types/com/atproto/server/getSession.d.ts.map +1 -1
  47. package/dist/client/types/com/atproto/server/getSession.js.map +1 -1
  48. package/dist/client/types/com/atproto/server/refreshSession.d.ts +9 -0
  49. package/dist/client/types/com/atproto/server/refreshSession.d.ts.map +1 -1
  50. package/dist/client/types/com/atproto/server/refreshSession.js +17 -1
  51. package/dist/client/types/com/atproto/server/refreshSession.js.map +1 -1
  52. package/package.json +3 -3
  53. package/src/atp-agent.ts +147 -99
  54. package/src/client/index.ts +5 -6
  55. package/src/client/lexicons.ts +94 -26
  56. package/src/client/types/app/bsky/contact/dismissMatch.ts +9 -2
  57. package/src/client/types/app/bsky/contact/getMatches.ts +23 -2
  58. package/src/client/types/app/bsky/contact/getSyncStatus.ts +9 -2
  59. package/src/client/types/app/bsky/contact/importContacts.ts +30 -2
  60. package/src/client/types/app/bsky/contact/removeData.ts +9 -2
  61. package/src/client/types/app/bsky/contact/startPhoneVerification.ts +23 -2
  62. package/src/client/types/app/bsky/contact/verifyPhone.ts +30 -2
  63. package/src/client/types/com/atproto/server/deleteSession.ts +17 -0
  64. package/src/client/types/com/atproto/server/getSession.ts +1 -1
  65. package/src/client/types/com/atproto/server/refreshSession.ts +17 -0
  66. package/tests/dispatcher.test.ts +13 -10
@@ -1748,7 +1748,7 @@ exports.schemaDict = {
1748
1748
  defs: {
1749
1749
  main: {
1750
1750
  type: 'procedure',
1751
- 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.",
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
1752
  input: {
1753
1753
  encoding: 'application/json',
1754
1754
  schema: {
@@ -1772,8 +1772,10 @@ exports.schemaDict = {
1772
1772
  },
1773
1773
  errors: [
1774
1774
  {
1775
- name: 'TODO',
1776
- description: 'TODO',
1775
+ name: 'InvalidDid',
1776
+ },
1777
+ {
1778
+ name: 'InternalError',
1777
1779
  },
1778
1780
  ],
1779
1781
  },
@@ -1785,7 +1787,7 @@ exports.schemaDict = {
1785
1787
  defs: {
1786
1788
  main: {
1787
1789
  type: 'query',
1788
- 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.",
1790
+ description: 'Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.',
1789
1791
  parameters: {
1790
1792
  type: 'params',
1791
1793
  properties: {
@@ -1821,8 +1823,16 @@ exports.schemaDict = {
1821
1823
  },
1822
1824
  errors: [
1823
1825
  {
1824
- name: 'TODO',
1825
- description: 'TODO',
1826
+ name: 'InvalidDid',
1827
+ },
1828
+ {
1829
+ name: 'InvalidLimit',
1830
+ },
1831
+ {
1832
+ name: 'InvalidCursor',
1833
+ },
1834
+ {
1835
+ name: 'InternalError',
1826
1836
  },
1827
1837
  ],
1828
1838
  },
@@ -1834,7 +1844,7 @@ exports.schemaDict = {
1834
1844
  defs: {
1835
1845
  main: {
1836
1846
  type: 'query',
1837
- 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.",
1847
+ description: "Gets the user's current contact import status. Requires authentication.",
1838
1848
  parameters: {
1839
1849
  type: 'params',
1840
1850
  properties: {},
@@ -1854,8 +1864,10 @@ exports.schemaDict = {
1854
1864
  },
1855
1865
  errors: [
1856
1866
  {
1857
- name: 'TODO',
1858
- description: 'TODO',
1867
+ name: 'InvalidDid',
1868
+ },
1869
+ {
1870
+ name: 'InternalError',
1859
1871
  },
1860
1872
  ],
1861
1873
  },
@@ -1867,7 +1879,7 @@ exports.schemaDict = {
1867
1879
  defs: {
1868
1880
  main: {
1869
1881
  type: 'procedure',
1870
- 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.",
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.',
1871
1883
  input: {
1872
1884
  encoding: 'application/json',
1873
1885
  schema: {
@@ -1909,8 +1921,19 @@ exports.schemaDict = {
1909
1921
  },
1910
1922
  errors: [
1911
1923
  {
1912
- name: 'TODO',
1913
- description: 'TODO',
1924
+ name: 'InvalidDid',
1925
+ },
1926
+ {
1927
+ name: 'InvalidContacts',
1928
+ },
1929
+ {
1930
+ name: 'TooManyContacts',
1931
+ },
1932
+ {
1933
+ name: 'InvalidToken',
1934
+ },
1935
+ {
1936
+ name: 'InternalError',
1914
1937
  },
1915
1938
  ],
1916
1939
  },
@@ -1922,7 +1945,7 @@ exports.schemaDict = {
1922
1945
  defs: {
1923
1946
  main: {
1924
1947
  type: 'procedure',
1925
- 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.",
1948
+ description: 'Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.',
1926
1949
  input: {
1927
1950
  encoding: 'application/json',
1928
1951
  schema: {
@@ -1939,8 +1962,10 @@ exports.schemaDict = {
1939
1962
  },
1940
1963
  errors: [
1941
1964
  {
1942
- name: 'TODO',
1943
- description: 'TODO',
1965
+ name: 'InvalidDid',
1966
+ },
1967
+ {
1968
+ name: 'InternalError',
1944
1969
  },
1945
1970
  ],
1946
1971
  },
@@ -1952,7 +1977,7 @@ exports.schemaDict = {
1952
1977
  defs: {
1953
1978
  main: {
1954
1979
  type: 'procedure',
1955
- description: "WARNING: This is unstable and under active development, don't use it while this warning is here. System endpoint to send notifications related to contact imports. Requires role authentication.",
1980
+ description: 'System endpoint to send notifications related to contact imports. Requires role authentication.',
1956
1981
  input: {
1957
1982
  encoding: 'application/json',
1958
1983
  schema: {
@@ -1988,7 +2013,7 @@ exports.schemaDict = {
1988
2013
  defs: {
1989
2014
  main: {
1990
2015
  type: 'procedure',
1991
- 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.",
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.',
1992
2017
  input: {
1993
2018
  encoding: 'application/json',
1994
2019
  schema: {
@@ -2011,8 +2036,16 @@ exports.schemaDict = {
2011
2036
  },
2012
2037
  errors: [
2013
2038
  {
2014
- name: 'TODO',
2015
- description: 'TODO',
2039
+ name: 'RateLimitExceeded',
2040
+ },
2041
+ {
2042
+ name: 'InvalidDid',
2043
+ },
2044
+ {
2045
+ name: 'InvalidPhone',
2046
+ },
2047
+ {
2048
+ name: 'InternalError',
2016
2049
  },
2017
2050
  ],
2018
2051
  },
@@ -2024,7 +2057,7 @@ exports.schemaDict = {
2024
2057
  defs: {
2025
2058
  main: {
2026
2059
  type: 'procedure',
2027
- 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.",
2060
+ description: 'Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.',
2028
2061
  input: {
2029
2062
  encoding: 'application/json',
2030
2063
  schema: {
@@ -2057,8 +2090,19 @@ exports.schemaDict = {
2057
2090
  },
2058
2091
  errors: [
2059
2092
  {
2060
- name: 'TODO',
2061
- description: 'TODO',
2093
+ name: 'RateLimitExceeded',
2094
+ },
2095
+ {
2096
+ name: 'InvalidDid',
2097
+ },
2098
+ {
2099
+ name: 'InvalidPhone',
2100
+ },
2101
+ {
2102
+ name: 'InvalidCode',
2103
+ },
2104
+ {
2105
+ name: 'InternalError',
2062
2106
  },
2063
2107
  ],
2064
2108
  },
@@ -12555,7 +12599,15 @@ exports.schemaDict = {
12555
12599
  defs: {
12556
12600
  main: {
12557
12601
  type: 'procedure',
12558
- description: 'Delete the current session. Requires auth.',
12602
+ description: "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').",
12603
+ errors: [
12604
+ {
12605
+ name: 'InvalidToken',
12606
+ },
12607
+ {
12608
+ name: 'ExpiredToken',
12609
+ },
12610
+ ],
12559
12611
  },
12560
12612
  },
12561
12613
  },
@@ -12742,6 +12794,9 @@ exports.schemaDict = {
12742
12794
  type: 'string',
12743
12795
  format: 'did',
12744
12796
  },
12797
+ didDoc: {
12798
+ type: 'unknown',
12799
+ },
12745
12800
  email: {
12746
12801
  type: 'string',
12747
12802
  },
@@ -12751,9 +12806,6 @@ exports.schemaDict = {
12751
12806
  emailAuthFactor: {
12752
12807
  type: 'boolean',
12753
12808
  },
12754
- didDoc: {
12755
- type: 'unknown',
12756
- },
12757
12809
  active: {
12758
12810
  type: 'boolean',
12759
12811
  },
@@ -12845,6 +12897,15 @@ exports.schemaDict = {
12845
12897
  didDoc: {
12846
12898
  type: 'unknown',
12847
12899
  },
12900
+ email: {
12901
+ type: 'string',
12902
+ },
12903
+ emailConfirmed: {
12904
+ type: 'boolean',
12905
+ },
12906
+ emailAuthFactor: {
12907
+ type: 'boolean',
12908
+ },
12848
12909
  active: {
12849
12910
  type: 'boolean',
12850
12911
  },
@@ -12860,6 +12921,12 @@ exports.schemaDict = {
12860
12921
  {
12861
12922
  name: 'AccountTakedown',
12862
12923
  },
12924
+ {
12925
+ name: 'InvalidToken',
12926
+ },
12927
+ {
12928
+ name: 'ExpiredToken',
12929
+ },
12863
12930
  ],
12864
12931
  },
12865
12932
  },