@atproto/pds 0.4.196 → 0.4.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/account-manager/db/schema/lexicon.d.ts +2 -2
  3. package/dist/account-manager/db/schema/lexicon.d.ts.map +1 -1
  4. package/dist/account-manager/db/schema/lexicon.js.map +1 -1
  5. package/dist/api/com/atproto/admin/getInviteCodes.d.ts +1 -1
  6. package/dist/api/com/atproto/sync/listRepos.d.ts +1 -1
  7. package/dist/config/config.d.ts +1 -1
  8. package/dist/config/config.d.ts.map +1 -1
  9. package/dist/config/config.js +6 -3
  10. package/dist/config/config.js.map +1 -1
  11. package/dist/config/env.d.ts +100 -101
  12. package/dist/config/env.d.ts.map +1 -1
  13. package/dist/config/env.js +6 -5
  14. package/dist/config/env.js.map +1 -1
  15. package/dist/context.d.ts.map +1 -1
  16. package/dist/context.js +23 -39
  17. package/dist/context.js.map +1 -1
  18. package/dist/db/pagination.d.ts +1 -1
  19. package/dist/handle/index.d.ts +1 -1
  20. package/dist/handle/index.d.ts.map +1 -1
  21. package/dist/lexicon/index.d.ts +19 -0
  22. package/dist/lexicon/index.d.ts.map +1 -1
  23. package/dist/lexicon/index.js +48 -1
  24. package/dist/lexicon/index.js.map +1 -1
  25. package/dist/lexicon/lexicons.d.ts +668 -0
  26. package/dist/lexicon/lexicons.d.ts.map +1 -1
  27. package/dist/lexicon/lexicons.js +356 -0
  28. package/dist/lexicon/lexicons.js.map +1 -1
  29. package/dist/lexicon/types/app/bsky/contact/defs.d.ts +24 -0
  30. package/dist/lexicon/types/app/bsky/contact/defs.d.ts.map +1 -0
  31. package/dist/lexicon/types/app/bsky/contact/defs.js +25 -0
  32. package/dist/lexicon/types/app/bsky/contact/defs.js.map +1 -0
  33. package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts +25 -0
  34. package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts.map +1 -0
  35. package/dist/lexicon/types/app/bsky/contact/dismissMatch.js +7 -0
  36. package/dist/lexicon/types/app/bsky/contact/dismissMatch.js.map +1 -0
  37. package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts +25 -0
  38. package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts.map +1 -0
  39. package/dist/lexicon/types/app/bsky/contact/getMatches.js +7 -0
  40. package/dist/lexicon/types/app/bsky/contact/getMatches.js.map +1 -0
  41. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts +21 -0
  42. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -0
  43. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js +7 -0
  44. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js.map +1 -0
  45. package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts +30 -0
  46. package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts.map +1 -0
  47. package/dist/lexicon/types/app/bsky/contact/importContacts.js +7 -0
  48. package/dist/lexicon/types/app/bsky/contact/importContacts.js.map +1 -0
  49. package/dist/lexicon/types/app/bsky/contact/removeData.d.ts +23 -0
  50. package/dist/lexicon/types/app/bsky/contact/removeData.d.ts.map +1 -0
  51. package/dist/lexicon/types/app/bsky/contact/removeData.js +7 -0
  52. package/dist/lexicon/types/app/bsky/contact/removeData.js.map +1 -0
  53. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts +25 -0
  54. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -0
  55. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js +7 -0
  56. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js.map +1 -0
  57. package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts +29 -0
  58. package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts.map +1 -0
  59. package/dist/lexicon/types/app/bsky/contact/verifyPhone.js +7 -0
  60. package/dist/lexicon/types/app/bsky/contact/verifyPhone.js.map +1 -0
  61. package/dist/lexicon/types/app/bsky/graph/defs.d.ts +8 -0
  62. package/dist/lexicon/types/app/bsky/graph/defs.d.ts.map +1 -1
  63. package/dist/lexicon/types/app/bsky/graph/defs.js.map +1 -1
  64. package/package.json +16 -17
  65. package/src/account-manager/db/schema/lexicon.ts +2 -2
  66. package/src/config/config.ts +7 -3
  67. package/src/config/env.ts +6 -150
  68. package/src/context.ts +39 -47
  69. package/src/lexicon/index.ts +101 -0
  70. package/src/lexicon/lexicons.ts +377 -0
  71. package/src/lexicon/types/app/bsky/contact/defs.ts +52 -0
  72. package/src/lexicon/types/app/bsky/contact/dismissMatch.ts +43 -0
  73. package/src/lexicon/types/app/bsky/contact/getMatches.ts +43 -0
  74. package/src/lexicon/types/app/bsky/contact/getSyncStatus.ts +39 -0
  75. package/src/lexicon/types/app/bsky/contact/importContacts.ts +49 -0
  76. package/src/lexicon/types/app/bsky/contact/removeData.ts +40 -0
  77. package/src/lexicon/types/app/bsky/contact/startPhoneVerification.ts +43 -0
  78. package/src/lexicon/types/app/bsky/contact/verifyPhone.ts +48 -0
  79. package/src/lexicon/types/app/bsky/graph/defs.ts +8 -0
  80. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1736,6 +1736,348 @@ export const schemaDict = {
1736
1736
  },
1737
1737
  },
1738
1738
  },
1739
+ AppBskyContactDefs: {
1740
+ lexicon: 1,
1741
+ id: 'app.bsky.contact.defs',
1742
+ defs: {
1743
+ matchAndContactIndex: {
1744
+ description:
1745
+ '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.',
1746
+ type: 'object',
1747
+ required: ['match', 'contactIndex'],
1748
+ properties: {
1749
+ match: {
1750
+ description: 'Profile of the matched user.',
1751
+ type: 'ref',
1752
+ ref: 'lex:app.bsky.actor.defs#profileView',
1753
+ },
1754
+ contactIndex: {
1755
+ description: 'The index of this match in the import contact input.',
1756
+ type: 'integer',
1757
+ minimum: 0,
1758
+ maximum: 999,
1759
+ },
1760
+ },
1761
+ },
1762
+ syncStatus: {
1763
+ type: 'object',
1764
+ required: ['syncedAt', 'matchesCount'],
1765
+ properties: {
1766
+ syncedAt: {
1767
+ description: 'Last date when contacts where imported.',
1768
+ type: 'string',
1769
+ format: 'datetime',
1770
+ },
1771
+ matchesCount: {
1772
+ description:
1773
+ '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.',
1774
+ type: 'integer',
1775
+ minimum: 0,
1776
+ },
1777
+ },
1778
+ },
1779
+ },
1780
+ },
1781
+ AppBskyContactDismissMatch: {
1782
+ lexicon: 1,
1783
+ id: 'app.bsky.contact.dismissMatch',
1784
+ defs: {
1785
+ main: {
1786
+ type: 'procedure',
1787
+ description:
1788
+ "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.",
1789
+ input: {
1790
+ encoding: 'application/json',
1791
+ schema: {
1792
+ type: 'object',
1793
+ required: ['subject'],
1794
+ properties: {
1795
+ subject: {
1796
+ description: "The subject's DID to dismiss the match with.",
1797
+ type: 'string',
1798
+ format: 'did',
1799
+ },
1800
+ },
1801
+ },
1802
+ },
1803
+ output: {
1804
+ encoding: 'application/json',
1805
+ schema: {
1806
+ type: 'object',
1807
+ properties: {},
1808
+ },
1809
+ },
1810
+ errors: [
1811
+ {
1812
+ name: 'TODO',
1813
+ description: 'TODO',
1814
+ },
1815
+ ],
1816
+ },
1817
+ },
1818
+ },
1819
+ AppBskyContactGetMatches: {
1820
+ lexicon: 1,
1821
+ id: 'app.bsky.contact.getMatches',
1822
+ defs: {
1823
+ main: {
1824
+ type: 'query',
1825
+ description:
1826
+ "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.",
1827
+ parameters: {
1828
+ type: 'params',
1829
+ properties: {
1830
+ limit: {
1831
+ type: 'integer',
1832
+ minimum: 1,
1833
+ maximum: 100,
1834
+ default: 50,
1835
+ },
1836
+ cursor: {
1837
+ type: 'string',
1838
+ },
1839
+ },
1840
+ },
1841
+ output: {
1842
+ encoding: 'application/json',
1843
+ schema: {
1844
+ type: 'object',
1845
+ required: ['matches'],
1846
+ properties: {
1847
+ cursor: {
1848
+ type: 'string',
1849
+ },
1850
+ matches: {
1851
+ type: 'array',
1852
+ items: {
1853
+ type: 'ref',
1854
+ ref: 'lex:app.bsky.actor.defs#profileView',
1855
+ },
1856
+ },
1857
+ },
1858
+ },
1859
+ },
1860
+ errors: [
1861
+ {
1862
+ name: 'TODO',
1863
+ description: 'TODO',
1864
+ },
1865
+ ],
1866
+ },
1867
+ },
1868
+ },
1869
+ AppBskyContactGetSyncStatus: {
1870
+ lexicon: 1,
1871
+ id: 'app.bsky.contact.getSyncStatus',
1872
+ defs: {
1873
+ main: {
1874
+ type: 'query',
1875
+ description:
1876
+ "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.",
1877
+ parameters: {
1878
+ type: 'params',
1879
+ properties: {},
1880
+ },
1881
+ output: {
1882
+ encoding: 'application/json',
1883
+ schema: {
1884
+ type: 'object',
1885
+ properties: {
1886
+ syncStatus: {
1887
+ description:
1888
+ "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.",
1889
+ type: 'ref',
1890
+ ref: 'lex:app.bsky.contact.defs#syncStatus',
1891
+ },
1892
+ },
1893
+ },
1894
+ },
1895
+ errors: [
1896
+ {
1897
+ name: 'TODO',
1898
+ description: 'TODO',
1899
+ },
1900
+ ],
1901
+ },
1902
+ },
1903
+ },
1904
+ AppBskyContactImportContacts: {
1905
+ lexicon: 1,
1906
+ id: 'app.bsky.contact.importContacts',
1907
+ defs: {
1908
+ main: {
1909
+ type: 'procedure',
1910
+ description:
1911
+ "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.",
1912
+ input: {
1913
+ encoding: 'application/json',
1914
+ schema: {
1915
+ type: 'object',
1916
+ required: ['token', 'contacts'],
1917
+ properties: {
1918
+ token: {
1919
+ description:
1920
+ 'JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.',
1921
+ type: 'string',
1922
+ },
1923
+ contacts: {
1924
+ description:
1925
+ "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`.",
1926
+ type: 'array',
1927
+ items: {
1928
+ type: 'string',
1929
+ },
1930
+ minLength: 1,
1931
+ maxLength: 1000,
1932
+ },
1933
+ },
1934
+ },
1935
+ },
1936
+ output: {
1937
+ encoding: 'application/json',
1938
+ schema: {
1939
+ type: 'object',
1940
+ required: ['matchesAndContactIndexes'],
1941
+ properties: {
1942
+ matchesAndContactIndexes: {
1943
+ description:
1944
+ 'The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.',
1945
+ type: 'array',
1946
+ items: {
1947
+ type: 'ref',
1948
+ ref: 'lex:app.bsky.contact.defs#matchAndContactIndex',
1949
+ },
1950
+ },
1951
+ },
1952
+ },
1953
+ },
1954
+ errors: [
1955
+ {
1956
+ name: 'TODO',
1957
+ description: 'TODO',
1958
+ },
1959
+ ],
1960
+ },
1961
+ },
1962
+ },
1963
+ AppBskyContactRemoveData: {
1964
+ lexicon: 1,
1965
+ id: 'app.bsky.contact.removeData',
1966
+ defs: {
1967
+ main: {
1968
+ type: 'procedure',
1969
+ description:
1970
+ "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.",
1971
+ input: {
1972
+ encoding: 'application/json',
1973
+ schema: {
1974
+ type: 'object',
1975
+ properties: {},
1976
+ },
1977
+ },
1978
+ output: {
1979
+ encoding: 'application/json',
1980
+ schema: {
1981
+ type: 'object',
1982
+ properties: {},
1983
+ },
1984
+ },
1985
+ errors: [
1986
+ {
1987
+ name: 'TODO',
1988
+ description: 'TODO',
1989
+ },
1990
+ ],
1991
+ },
1992
+ },
1993
+ },
1994
+ AppBskyContactStartPhoneVerification: {
1995
+ lexicon: 1,
1996
+ id: 'app.bsky.contact.startPhoneVerification',
1997
+ defs: {
1998
+ main: {
1999
+ type: 'procedure',
2000
+ description:
2001
+ "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.",
2002
+ input: {
2003
+ encoding: 'application/json',
2004
+ schema: {
2005
+ type: 'object',
2006
+ required: ['phone'],
2007
+ properties: {
2008
+ phone: {
2009
+ description: 'The phone number to receive the code via SMS.',
2010
+ type: 'string',
2011
+ },
2012
+ },
2013
+ },
2014
+ },
2015
+ output: {
2016
+ encoding: 'application/json',
2017
+ schema: {
2018
+ type: 'object',
2019
+ properties: {},
2020
+ },
2021
+ },
2022
+ errors: [
2023
+ {
2024
+ name: 'TODO',
2025
+ description: 'TODO',
2026
+ },
2027
+ ],
2028
+ },
2029
+ },
2030
+ },
2031
+ AppBskyContactVerifyPhone: {
2032
+ lexicon: 1,
2033
+ id: 'app.bsky.contact.verifyPhone',
2034
+ defs: {
2035
+ main: {
2036
+ type: 'procedure',
2037
+ description:
2038
+ "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.",
2039
+ input: {
2040
+ encoding: 'application/json',
2041
+ schema: {
2042
+ type: 'object',
2043
+ required: ['phone', 'code'],
2044
+ properties: {
2045
+ phone: {
2046
+ description:
2047
+ 'The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.',
2048
+ type: 'string',
2049
+ },
2050
+ code: {
2051
+ description:
2052
+ 'The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.',
2053
+ type: 'string',
2054
+ },
2055
+ },
2056
+ },
2057
+ },
2058
+ output: {
2059
+ encoding: 'application/json',
2060
+ schema: {
2061
+ type: 'object',
2062
+ required: ['token'],
2063
+ properties: {
2064
+ token: {
2065
+ description:
2066
+ 'JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.',
2067
+ type: 'string',
2068
+ },
2069
+ },
2070
+ },
2071
+ },
2072
+ errors: [
2073
+ {
2074
+ name: 'TODO',
2075
+ description: 'TODO',
2076
+ },
2077
+ ],
2078
+ },
2079
+ },
2080
+ },
1739
2081
  AppBskyEmbedDefs: {
1740
2082
  lexicon: 1,
1741
2083
  id: 'app.bsky.embed.defs',
@@ -4461,6 +4803,30 @@ export const schemaDict = {
4461
4803
  description:
4462
4804
  'if the actor is followed by this DID, contains the AT-URI of the follow record',
4463
4805
  },
4806
+ blocking: {
4807
+ type: 'string',
4808
+ format: 'at-uri',
4809
+ description:
4810
+ 'if the actor blocks this DID, this is the AT-URI of the block record',
4811
+ },
4812
+ blockedBy: {
4813
+ type: 'string',
4814
+ format: 'at-uri',
4815
+ description:
4816
+ 'if the actor is blocked by this DID, contains the AT-URI of the block record',
4817
+ },
4818
+ blockingByList: {
4819
+ type: 'string',
4820
+ format: 'at-uri',
4821
+ description:
4822
+ 'if the actor blocks this DID via a block list, this is the AT-URI of the listblock record',
4823
+ },
4824
+ blockedByList: {
4825
+ type: 'string',
4826
+ format: 'at-uri',
4827
+ description:
4828
+ 'if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record',
4829
+ },
4464
4830
  },
4465
4831
  },
4466
4832
  },
@@ -15485,6 +15851,7 @@ export const schemaDict = {
15485
15851
  },
15486
15852
  comment: {
15487
15853
  type: 'string',
15854
+ minLength: 1,
15488
15855
  description: 'Comment describing the reason for the override.',
15489
15856
  },
15490
15857
  },
@@ -15496,6 +15863,7 @@ export const schemaDict = {
15496
15863
  required: ['comment'],
15497
15864
  properties: {
15498
15865
  comment: {
15866
+ minLength: 1,
15499
15867
  type: 'string',
15500
15868
  description: 'Comment describing the reason for the revocation.',
15501
15869
  },
@@ -19575,6 +19943,15 @@ export const ids = {
19575
19943
  AppBskyBookmarkDefs: 'app.bsky.bookmark.defs',
19576
19944
  AppBskyBookmarkDeleteBookmark: 'app.bsky.bookmark.deleteBookmark',
19577
19945
  AppBskyBookmarkGetBookmarks: 'app.bsky.bookmark.getBookmarks',
19946
+ AppBskyContactDefs: 'app.bsky.contact.defs',
19947
+ AppBskyContactDismissMatch: 'app.bsky.contact.dismissMatch',
19948
+ AppBskyContactGetMatches: 'app.bsky.contact.getMatches',
19949
+ AppBskyContactGetSyncStatus: 'app.bsky.contact.getSyncStatus',
19950
+ AppBskyContactImportContacts: 'app.bsky.contact.importContacts',
19951
+ AppBskyContactRemoveData: 'app.bsky.contact.removeData',
19952
+ AppBskyContactStartPhoneVerification:
19953
+ 'app.bsky.contact.startPhoneVerification',
19954
+ AppBskyContactVerifyPhone: 'app.bsky.contact.verifyPhone',
19578
19955
  AppBskyEmbedDefs: 'app.bsky.embed.defs',
19579
19956
  AppBskyEmbedExternal: 'app.bsky.embed.external',
19580
19957
  AppBskyEmbedImages: 'app.bsky.embed.images',
@@ -0,0 +1,52 @@
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
+ }
@@ -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?: 'TODO'
41
+ }
42
+
43
+ export type HandlerOutput = HandlerError | HandlerSuccess
@@ -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
+ import type * as AppBskyActorDefs from '../actor/defs.js'
13
+
14
+ const is$typed = _is$typed,
15
+ validate = _validate
16
+ const id = 'app.bsky.contact.getMatches'
17
+
18
+ export type QueryParams = {
19
+ limit: number
20
+ cursor?: string
21
+ }
22
+ export type InputSchema = undefined
23
+
24
+ export interface OutputSchema {
25
+ cursor?: string
26
+ matches: AppBskyActorDefs.ProfileView[]
27
+ }
28
+
29
+ export type HandlerInput = void
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?: 'TODO'
41
+ }
42
+
43
+ export type HandlerOutput = HandlerError | HandlerSuccess
@@ -0,0 +1,39 @@
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 AppBskyContactDefs from './defs.js'
13
+
14
+ const is$typed = _is$typed,
15
+ validate = _validate
16
+ const id = 'app.bsky.contact.getSyncStatus'
17
+
18
+ export type QueryParams = {}
19
+ export type InputSchema = undefined
20
+
21
+ export interface OutputSchema {
22
+ syncStatus?: AppBskyContactDefs.SyncStatus
23
+ }
24
+
25
+ export type HandlerInput = void
26
+
27
+ export interface HandlerSuccess {
28
+ encoding: 'application/json'
29
+ body: OutputSchema
30
+ headers?: { [key: string]: string }
31
+ }
32
+
33
+ export interface HandlerError {
34
+ status: number
35
+ message?: string
36
+ error?: 'TODO'
37
+ }
38
+
39
+ export type HandlerOutput = HandlerError | HandlerSuccess
@@ -0,0 +1,49 @@
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 AppBskyContactDefs from './defs.js'
13
+
14
+ const is$typed = _is$typed,
15
+ validate = _validate
16
+ const id = 'app.bsky.contact.importContacts'
17
+
18
+ export type QueryParams = {}
19
+
20
+ export interface InputSchema {
21
+ /** JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`. */
22
+ token: string
23
+ /** 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`. */
24
+ contacts: string[]
25
+ }
26
+
27
+ export interface OutputSchema {
28
+ /** The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list. */
29
+ matchesAndContactIndexes: AppBskyContactDefs.MatchAndContactIndex[]
30
+ }
31
+
32
+ export interface HandlerInput {
33
+ encoding: 'application/json'
34
+ body: InputSchema
35
+ }
36
+
37
+ export interface HandlerSuccess {
38
+ encoding: 'application/json'
39
+ body: OutputSchema
40
+ headers?: { [key: string]: string }
41
+ }
42
+
43
+ export interface HandlerError {
44
+ status: number
45
+ message?: string
46
+ error?: 'TODO'
47
+ }
48
+
49
+ export type HandlerOutput = HandlerError | HandlerSuccess
@@ -0,0 +1,40 @@
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.removeData'
16
+
17
+ export type QueryParams = {}
18
+
19
+ export interface InputSchema {}
20
+
21
+ export interface OutputSchema {}
22
+
23
+ export interface HandlerInput {
24
+ encoding: 'application/json'
25
+ body: InputSchema
26
+ }
27
+
28
+ export interface HandlerSuccess {
29
+ encoding: 'application/json'
30
+ body: OutputSchema
31
+ headers?: { [key: string]: string }
32
+ }
33
+
34
+ export interface HandlerError {
35
+ status: number
36
+ message?: string
37
+ error?: 'TODO'
38
+ }
39
+
40
+ export type HandlerOutput = HandlerError | HandlerSuccess