@privy-io/api-types 0.1.1

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 (507) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/LICENSE +201 -0
  3. package/README.md +364 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +233 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +233 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +517 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +513 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/pagination.d.mts +54 -0
  37. package/core/pagination.d.mts.map +1 -0
  38. package/core/pagination.d.ts +54 -0
  39. package/core/pagination.d.ts.map +1 -0
  40. package/core/pagination.js +101 -0
  41. package/core/pagination.js.map +1 -0
  42. package/core/pagination.mjs +95 -0
  43. package/core/pagination.mjs.map +1 -0
  44. package/core/resource.d.mts +6 -0
  45. package/core/resource.d.mts.map +1 -0
  46. package/core/resource.d.ts +6 -0
  47. package/core/resource.d.ts.map +1 -0
  48. package/core/resource.js +11 -0
  49. package/core/resource.js.map +1 -0
  50. package/core/resource.mjs +7 -0
  51. package/core/resource.mjs.map +1 -0
  52. package/core/uploads.d.mts +3 -0
  53. package/core/uploads.d.mts.map +1 -0
  54. package/core/uploads.d.ts +3 -0
  55. package/core/uploads.d.ts.map +1 -0
  56. package/core/uploads.js +6 -0
  57. package/core/uploads.js.map +1 -0
  58. package/core/uploads.mjs +2 -0
  59. package/core/uploads.mjs.map +1 -0
  60. package/error.d.mts +2 -0
  61. package/error.d.mts.map +1 -0
  62. package/error.d.ts +2 -0
  63. package/error.d.ts.map +1 -0
  64. package/error.js +6 -0
  65. package/error.js.map +1 -0
  66. package/error.mjs +2 -0
  67. package/error.mjs.map +1 -0
  68. package/index.d.mts +2 -0
  69. package/index.d.mts.map +1 -0
  70. package/index.d.ts +2 -0
  71. package/index.d.ts.map +1 -0
  72. package/index.js +9 -0
  73. package/index.js.map +1 -0
  74. package/index.mjs +3 -0
  75. package/index.mjs.map +1 -0
  76. package/internal/builtin-types.d.mts +73 -0
  77. package/internal/builtin-types.d.mts.map +1 -0
  78. package/internal/builtin-types.d.ts +73 -0
  79. package/internal/builtin-types.d.ts.map +1 -0
  80. package/internal/builtin-types.js +4 -0
  81. package/internal/builtin-types.js.map +1 -0
  82. package/internal/builtin-types.mjs +3 -0
  83. package/internal/builtin-types.mjs.map +1 -0
  84. package/internal/detect-platform.d.mts +15 -0
  85. package/internal/detect-platform.d.mts.map +1 -0
  86. package/internal/detect-platform.d.ts +15 -0
  87. package/internal/detect-platform.d.ts.map +1 -0
  88. package/internal/detect-platform.js +162 -0
  89. package/internal/detect-platform.js.map +1 -0
  90. package/internal/detect-platform.mjs +157 -0
  91. package/internal/detect-platform.mjs.map +1 -0
  92. package/internal/errors.d.mts +3 -0
  93. package/internal/errors.d.mts.map +1 -0
  94. package/internal/errors.d.ts +3 -0
  95. package/internal/errors.d.ts.map +1 -0
  96. package/internal/errors.js +41 -0
  97. package/internal/errors.js.map +1 -0
  98. package/internal/errors.mjs +36 -0
  99. package/internal/errors.mjs.map +1 -0
  100. package/internal/headers.d.mts +20 -0
  101. package/internal/headers.d.mts.map +1 -0
  102. package/internal/headers.d.ts +20 -0
  103. package/internal/headers.d.ts.map +1 -0
  104. package/internal/headers.js +79 -0
  105. package/internal/headers.js.map +1 -0
  106. package/internal/headers.mjs +74 -0
  107. package/internal/headers.mjs.map +1 -0
  108. package/internal/parse.d.mts +12 -0
  109. package/internal/parse.d.mts.map +1 -0
  110. package/internal/parse.d.ts +12 -0
  111. package/internal/parse.d.ts.map +1 -0
  112. package/internal/parse.js +35 -0
  113. package/internal/parse.js.map +1 -0
  114. package/internal/parse.mjs +32 -0
  115. package/internal/parse.mjs.map +1 -0
  116. package/internal/qs/formats.d.mts +7 -0
  117. package/internal/qs/formats.d.mts.map +1 -0
  118. package/internal/qs/formats.d.ts +7 -0
  119. package/internal/qs/formats.d.ts.map +1 -0
  120. package/internal/qs/formats.js +13 -0
  121. package/internal/qs/formats.js.map +1 -0
  122. package/internal/qs/formats.mjs +9 -0
  123. package/internal/qs/formats.mjs.map +1 -0
  124. package/internal/qs/index.d.mts +10 -0
  125. package/internal/qs/index.d.mts.map +1 -0
  126. package/internal/qs/index.d.ts +10 -0
  127. package/internal/qs/index.d.ts.map +1 -0
  128. package/internal/qs/index.js +14 -0
  129. package/internal/qs/index.js.map +1 -0
  130. package/internal/qs/index.mjs +10 -0
  131. package/internal/qs/index.mjs.map +1 -0
  132. package/internal/qs/stringify.d.mts +3 -0
  133. package/internal/qs/stringify.d.mts.map +1 -0
  134. package/internal/qs/stringify.d.ts +3 -0
  135. package/internal/qs/stringify.d.ts.map +1 -0
  136. package/internal/qs/stringify.js +277 -0
  137. package/internal/qs/stringify.js.map +1 -0
  138. package/internal/qs/stringify.mjs +274 -0
  139. package/internal/qs/stringify.mjs.map +1 -0
  140. package/internal/qs/types.d.mts +57 -0
  141. package/internal/qs/types.d.mts.map +1 -0
  142. package/internal/qs/types.d.ts +57 -0
  143. package/internal/qs/types.d.ts.map +1 -0
  144. package/internal/qs/types.js +3 -0
  145. package/internal/qs/types.js.map +1 -0
  146. package/internal/qs/types.mjs +2 -0
  147. package/internal/qs/types.mjs.map +1 -0
  148. package/internal/qs/utils.d.mts +15 -0
  149. package/internal/qs/utils.d.mts.map +1 -0
  150. package/internal/qs/utils.d.ts +15 -0
  151. package/internal/qs/utils.d.ts.map +1 -0
  152. package/internal/qs/utils.js +230 -0
  153. package/internal/qs/utils.js.map +1 -0
  154. package/internal/qs/utils.mjs +217 -0
  155. package/internal/qs/utils.mjs.map +1 -0
  156. package/internal/request-options.d.mts +75 -0
  157. package/internal/request-options.d.mts.map +1 -0
  158. package/internal/request-options.d.ts +75 -0
  159. package/internal/request-options.d.ts.map +1 -0
  160. package/internal/request-options.js +14 -0
  161. package/internal/request-options.js.map +1 -0
  162. package/internal/request-options.mjs +10 -0
  163. package/internal/request-options.mjs.map +1 -0
  164. package/internal/shim-types.d.mts +17 -0
  165. package/internal/shim-types.d.mts.map +1 -0
  166. package/internal/shim-types.d.ts +17 -0
  167. package/internal/shim-types.d.ts.map +1 -0
  168. package/internal/shim-types.js +4 -0
  169. package/internal/shim-types.js.map +1 -0
  170. package/internal/shim-types.mjs +3 -0
  171. package/internal/shim-types.mjs.map +1 -0
  172. package/internal/shims.d.mts +20 -0
  173. package/internal/shims.d.mts.map +1 -0
  174. package/internal/shims.d.ts +20 -0
  175. package/internal/shims.d.ts.map +1 -0
  176. package/internal/shims.js +92 -0
  177. package/internal/shims.js.map +1 -0
  178. package/internal/shims.mjs +85 -0
  179. package/internal/shims.mjs.map +1 -0
  180. package/internal/to-file.d.mts +45 -0
  181. package/internal/to-file.d.mts.map +1 -0
  182. package/internal/to-file.d.ts +45 -0
  183. package/internal/to-file.d.ts.map +1 -0
  184. package/internal/to-file.js +91 -0
  185. package/internal/to-file.js.map +1 -0
  186. package/internal/to-file.mjs +88 -0
  187. package/internal/to-file.mjs.map +1 -0
  188. package/internal/tslib.js +81 -0
  189. package/internal/tslib.mjs +17 -0
  190. package/internal/types.d.mts +69 -0
  191. package/internal/types.d.mts.map +1 -0
  192. package/internal/types.d.ts +69 -0
  193. package/internal/types.d.ts.map +1 -0
  194. package/internal/types.js +4 -0
  195. package/internal/types.js.map +1 -0
  196. package/internal/types.mjs +3 -0
  197. package/internal/types.mjs.map +1 -0
  198. package/internal/uploads.d.mts +42 -0
  199. package/internal/uploads.d.mts.map +1 -0
  200. package/internal/uploads.d.ts +42 -0
  201. package/internal/uploads.d.ts.map +1 -0
  202. package/internal/uploads.js +141 -0
  203. package/internal/uploads.js.map +1 -0
  204. package/internal/uploads.mjs +131 -0
  205. package/internal/uploads.mjs.map +1 -0
  206. package/internal/utils/base64.d.mts +3 -0
  207. package/internal/utils/base64.d.mts.map +1 -0
  208. package/internal/utils/base64.d.ts +3 -0
  209. package/internal/utils/base64.d.ts.map +1 -0
  210. package/internal/utils/base64.js +38 -0
  211. package/internal/utils/base64.js.map +1 -0
  212. package/internal/utils/base64.mjs +33 -0
  213. package/internal/utils/base64.mjs.map +1 -0
  214. package/internal/utils/bytes.d.mts +4 -0
  215. package/internal/utils/bytes.d.mts.map +1 -0
  216. package/internal/utils/bytes.d.ts +4 -0
  217. package/internal/utils/bytes.d.ts.map +1 -0
  218. package/internal/utils/bytes.js +31 -0
  219. package/internal/utils/bytes.js.map +1 -0
  220. package/internal/utils/bytes.mjs +26 -0
  221. package/internal/utils/bytes.mjs.map +1 -0
  222. package/internal/utils/env.d.mts +9 -0
  223. package/internal/utils/env.d.mts.map +1 -0
  224. package/internal/utils/env.d.ts +9 -0
  225. package/internal/utils/env.d.ts.map +1 -0
  226. package/internal/utils/env.js +22 -0
  227. package/internal/utils/env.js.map +1 -0
  228. package/internal/utils/env.mjs +18 -0
  229. package/internal/utils/env.mjs.map +1 -0
  230. package/internal/utils/log.d.mts +37 -0
  231. package/internal/utils/log.d.mts.map +1 -0
  232. package/internal/utils/log.d.ts +37 -0
  233. package/internal/utils/log.d.ts.map +1 -0
  234. package/internal/utils/log.js +85 -0
  235. package/internal/utils/log.js.map +1 -0
  236. package/internal/utils/log.mjs +79 -0
  237. package/internal/utils/log.mjs.map +1 -0
  238. package/internal/utils/path.d.mts +15 -0
  239. package/internal/utils/path.d.mts.map +1 -0
  240. package/internal/utils/path.d.ts +15 -0
  241. package/internal/utils/path.d.ts.map +1 -0
  242. package/internal/utils/path.js +79 -0
  243. package/internal/utils/path.js.map +1 -0
  244. package/internal/utils/path.mjs +74 -0
  245. package/internal/utils/path.mjs.map +1 -0
  246. package/internal/utils/sleep.d.mts +2 -0
  247. package/internal/utils/sleep.d.mts.map +1 -0
  248. package/internal/utils/sleep.d.ts +2 -0
  249. package/internal/utils/sleep.d.ts.map +1 -0
  250. package/internal/utils/sleep.js +7 -0
  251. package/internal/utils/sleep.js.map +1 -0
  252. package/internal/utils/sleep.mjs +3 -0
  253. package/internal/utils/sleep.mjs.map +1 -0
  254. package/internal/utils/uuid.d.mts +5 -0
  255. package/internal/utils/uuid.d.mts.map +1 -0
  256. package/internal/utils/uuid.d.ts +5 -0
  257. package/internal/utils/uuid.d.ts.map +1 -0
  258. package/internal/utils/uuid.js +19 -0
  259. package/internal/utils/uuid.js.map +1 -0
  260. package/internal/utils/uuid.mjs +15 -0
  261. package/internal/utils/uuid.mjs.map +1 -0
  262. package/internal/utils/values.d.mts +18 -0
  263. package/internal/utils/values.d.mts.map +1 -0
  264. package/internal/utils/values.d.ts +18 -0
  265. package/internal/utils/values.d.ts.map +1 -0
  266. package/internal/utils/values.js +112 -0
  267. package/internal/utils/values.js.map +1 -0
  268. package/internal/utils/values.mjs +94 -0
  269. package/internal/utils/values.mjs.map +1 -0
  270. package/internal/utils.d.mts +7 -0
  271. package/internal/utils.d.mts.map +1 -0
  272. package/internal/utils.d.ts +7 -0
  273. package/internal/utils.d.ts.map +1 -0
  274. package/internal/utils.js +11 -0
  275. package/internal/utils.js.map +1 -0
  276. package/internal/utils.mjs +8 -0
  277. package/internal/utils.mjs.map +1 -0
  278. package/package.json +148 -0
  279. package/pagination.d.mts +2 -0
  280. package/pagination.d.mts.map +1 -0
  281. package/pagination.d.ts +2 -0
  282. package/pagination.d.ts.map +1 -0
  283. package/pagination.js +6 -0
  284. package/pagination.js.map +1 -0
  285. package/pagination.mjs +2 -0
  286. package/pagination.mjs.map +1 -0
  287. package/resource.d.mts +2 -0
  288. package/resource.d.mts.map +1 -0
  289. package/resource.d.ts +2 -0
  290. package/resource.d.ts.map +1 -0
  291. package/resource.js +6 -0
  292. package/resource.js.map +1 -0
  293. package/resource.mjs +2 -0
  294. package/resource.mjs.map +1 -0
  295. package/resources/analytics.d.mts +17 -0
  296. package/resources/analytics.d.mts.map +1 -0
  297. package/resources/analytics.d.ts +17 -0
  298. package/resources/analytics.d.ts.map +1 -0
  299. package/resources/analytics.js +9 -0
  300. package/resources/analytics.js.map +1 -0
  301. package/resources/analytics.mjs +5 -0
  302. package/resources/analytics.mjs.map +1 -0
  303. package/resources/apps.d.mts +126 -0
  304. package/resources/apps.d.mts.map +1 -0
  305. package/resources/apps.d.ts +126 -0
  306. package/resources/apps.d.ts.map +1 -0
  307. package/resources/apps.js +9 -0
  308. package/resources/apps.js.map +1 -0
  309. package/resources/apps.mjs +5 -0
  310. package/resources/apps.mjs.map +1 -0
  311. package/resources/client-auth.d.mts +874 -0
  312. package/resources/client-auth.d.mts.map +1 -0
  313. package/resources/client-auth.d.ts +874 -0
  314. package/resources/client-auth.d.ts.map +1 -0
  315. package/resources/client-auth.js +9 -0
  316. package/resources/client-auth.js.map +1 -0
  317. package/resources/client-auth.mjs +5 -0
  318. package/resources/client-auth.mjs.map +1 -0
  319. package/resources/cross-app.d.mts +24 -0
  320. package/resources/cross-app.d.mts.map +1 -0
  321. package/resources/cross-app.d.ts +24 -0
  322. package/resources/cross-app.d.ts.map +1 -0
  323. package/resources/cross-app.js +9 -0
  324. package/resources/cross-app.js.map +1 -0
  325. package/resources/cross-app.mjs +5 -0
  326. package/resources/cross-app.mjs.map +1 -0
  327. package/resources/embedded-wallets.d.mts +125 -0
  328. package/resources/embedded-wallets.d.mts.map +1 -0
  329. package/resources/embedded-wallets.d.ts +125 -0
  330. package/resources/embedded-wallets.d.ts.map +1 -0
  331. package/resources/embedded-wallets.js +9 -0
  332. package/resources/embedded-wallets.js.map +1 -0
  333. package/resources/embedded-wallets.mjs +5 -0
  334. package/resources/embedded-wallets.mjs.map +1 -0
  335. package/resources/funding.d.mts +101 -0
  336. package/resources/funding.d.mts.map +1 -0
  337. package/resources/funding.d.ts +101 -0
  338. package/resources/funding.d.ts.map +1 -0
  339. package/resources/funding.js +9 -0
  340. package/resources/funding.js.map +1 -0
  341. package/resources/funding.mjs +5 -0
  342. package/resources/funding.mjs.map +1 -0
  343. package/resources/index.d.mts +12 -0
  344. package/resources/index.d.mts.map +1 -0
  345. package/resources/index.d.ts +12 -0
  346. package/resources/index.d.ts.map +1 -0
  347. package/resources/index.js +27 -0
  348. package/resources/index.js.map +1 -0
  349. package/resources/index.mjs +13 -0
  350. package/resources/index.mjs.map +1 -0
  351. package/resources/key-quorums.d.mts +106 -0
  352. package/resources/key-quorums.d.mts.map +1 -0
  353. package/resources/key-quorums.d.ts +106 -0
  354. package/resources/key-quorums.d.ts.map +1 -0
  355. package/resources/key-quorums.js +84 -0
  356. package/resources/key-quorums.js.map +1 -0
  357. package/resources/key-quorums.mjs +80 -0
  358. package/resources/key-quorums.mjs.map +1 -0
  359. package/resources/policies.d.mts +1284 -0
  360. package/resources/policies.d.mts.map +1 -0
  361. package/resources/policies.d.ts +1284 -0
  362. package/resources/policies.d.ts.map +1 -0
  363. package/resources/policies.js +228 -0
  364. package/resources/policies.js.map +1 -0
  365. package/resources/policies.mjs +224 -0
  366. package/resources/policies.mjs.map +1 -0
  367. package/resources/transactions.d.mts +134 -0
  368. package/resources/transactions.d.mts.map +1 -0
  369. package/resources/transactions.d.ts +134 -0
  370. package/resources/transactions.d.ts.map +1 -0
  371. package/resources/transactions.js +23 -0
  372. package/resources/transactions.js.map +1 -0
  373. package/resources/transactions.mjs +19 -0
  374. package/resources/transactions.mjs.map +1 -0
  375. package/resources/users.d.mts +901 -0
  376. package/resources/users.d.mts.map +1 -0
  377. package/resources/users.d.ts +901 -0
  378. package/resources/users.d.ts.map +1 -0
  379. package/resources/users.js +278 -0
  380. package/resources/users.js.map +1 -0
  381. package/resources/users.mjs +274 -0
  382. package/resources/users.mjs.map +1 -0
  383. package/resources/wallets/balance.d.mts +40 -0
  384. package/resources/wallets/balance.d.mts.map +1 -0
  385. package/resources/wallets/balance.d.ts +40 -0
  386. package/resources/wallets/balance.d.ts.map +1 -0
  387. package/resources/wallets/balance.js +24 -0
  388. package/resources/wallets/balance.js.map +1 -0
  389. package/resources/wallets/balance.mjs +20 -0
  390. package/resources/wallets/balance.mjs.map +1 -0
  391. package/resources/wallets/index.d.mts +4 -0
  392. package/resources/wallets/index.d.mts.map +1 -0
  393. package/resources/wallets/index.d.ts +4 -0
  394. package/resources/wallets/index.d.ts.map +1 -0
  395. package/resources/wallets/index.js +11 -0
  396. package/resources/wallets/index.js.map +1 -0
  397. package/resources/wallets/index.mjs +5 -0
  398. package/resources/wallets/index.mjs.map +1 -0
  399. package/resources/wallets/transactions.d.mts +73 -0
  400. package/resources/wallets/transactions.d.mts.map +1 -0
  401. package/resources/wallets/transactions.d.ts +73 -0
  402. package/resources/wallets/transactions.d.ts.map +1 -0
  403. package/resources/wallets/transactions.js +24 -0
  404. package/resources/wallets/transactions.js.map +1 -0
  405. package/resources/wallets/transactions.mjs +20 -0
  406. package/resources/wallets/transactions.mjs.map +1 -0
  407. package/resources/wallets/wallets.d.mts +1137 -0
  408. package/resources/wallets/wallets.d.mts.map +1 -0
  409. package/resources/wallets/wallets.d.ts +1137 -0
  410. package/resources/wallets/wallets.d.ts.map +1 -0
  411. package/resources/wallets/wallets.js +235 -0
  412. package/resources/wallets/wallets.js.map +1 -0
  413. package/resources/wallets/wallets.mjs +230 -0
  414. package/resources/wallets/wallets.mjs.map +1 -0
  415. package/resources/wallets.d.mts +2 -0
  416. package/resources/wallets.d.mts.map +1 -0
  417. package/resources/wallets.d.ts +2 -0
  418. package/resources/wallets.d.ts.map +1 -0
  419. package/resources/wallets.js +6 -0
  420. package/resources/wallets.js.map +1 -0
  421. package/resources/wallets.mjs +3 -0
  422. package/resources/wallets.mjs.map +1 -0
  423. package/resources.d.mts +2 -0
  424. package/resources.d.mts.map +1 -0
  425. package/resources.d.ts +2 -0
  426. package/resources.d.ts.map +1 -0
  427. package/resources.js +5 -0
  428. package/resources.js.map +1 -0
  429. package/resources.mjs +2 -0
  430. package/resources.mjs.map +1 -0
  431. package/src/api-promise.ts +2 -0
  432. package/src/client.ts +1200 -0
  433. package/src/core/README.md +3 -0
  434. package/src/core/api-promise.ts +92 -0
  435. package/src/core/error.ts +130 -0
  436. package/src/core/pagination.ts +152 -0
  437. package/src/core/resource.ts +11 -0
  438. package/src/core/uploads.ts +2 -0
  439. package/src/error.ts +2 -0
  440. package/src/index.ts +3 -0
  441. package/src/internal/README.md +3 -0
  442. package/src/internal/builtin-types.ts +93 -0
  443. package/src/internal/detect-platform.ts +196 -0
  444. package/src/internal/errors.ts +33 -0
  445. package/src/internal/headers.ts +97 -0
  446. package/src/internal/parse.ts +50 -0
  447. package/src/internal/qs/LICENSE.md +13 -0
  448. package/src/internal/qs/README.md +3 -0
  449. package/src/internal/qs/formats.ts +10 -0
  450. package/src/internal/qs/index.ts +13 -0
  451. package/src/internal/qs/stringify.ts +385 -0
  452. package/src/internal/qs/types.ts +71 -0
  453. package/src/internal/qs/utils.ts +265 -0
  454. package/src/internal/request-options.ts +91 -0
  455. package/src/internal/shim-types.ts +26 -0
  456. package/src/internal/shims.ts +107 -0
  457. package/src/internal/to-file.ts +154 -0
  458. package/src/internal/types.ts +95 -0
  459. package/src/internal/uploads.ts +187 -0
  460. package/src/internal/utils/base64.ts +40 -0
  461. package/src/internal/utils/bytes.ts +32 -0
  462. package/src/internal/utils/env.ts +18 -0
  463. package/src/internal/utils/log.ts +126 -0
  464. package/src/internal/utils/path.ts +88 -0
  465. package/src/internal/utils/sleep.ts +3 -0
  466. package/src/internal/utils/uuid.ts +17 -0
  467. package/src/internal/utils/values.ts +105 -0
  468. package/src/internal/utils.ts +8 -0
  469. package/src/lib/.keep +4 -0
  470. package/src/pagination.ts +2 -0
  471. package/src/resource.ts +2 -0
  472. package/src/resources/analytics.ts +20 -0
  473. package/src/resources/apps.ts +213 -0
  474. package/src/resources/client-auth.ts +1323 -0
  475. package/src/resources/cross-app.ts +34 -0
  476. package/src/resources/embedded-wallets.ts +203 -0
  477. package/src/resources/funding.ts +225 -0
  478. package/src/resources/index.ts +191 -0
  479. package/src/resources/key-quorums.ts +177 -0
  480. package/src/resources/policies.ts +1993 -0
  481. package/src/resources/transactions.ts +208 -0
  482. package/src/resources/users.ts +1552 -0
  483. package/src/resources/wallets/balance.ts +103 -0
  484. package/src/resources/wallets/index.ts +29 -0
  485. package/src/resources/wallets/transactions.ts +156 -0
  486. package/src/resources/wallets/wallets.ts +1615 -0
  487. package/src/resources/wallets.ts +3 -0
  488. package/src/resources.ts +1 -0
  489. package/src/tsconfig.json +11 -0
  490. package/src/uploads.ts +2 -0
  491. package/src/version.ts +1 -0
  492. package/uploads.d.mts +2 -0
  493. package/uploads.d.mts.map +1 -0
  494. package/uploads.d.ts +2 -0
  495. package/uploads.d.ts.map +1 -0
  496. package/uploads.js +6 -0
  497. package/uploads.js.map +1 -0
  498. package/uploads.mjs +2 -0
  499. package/uploads.mjs.map +1 -0
  500. package/version.d.mts +2 -0
  501. package/version.d.mts.map +1 -0
  502. package/version.d.ts +2 -0
  503. package/version.d.ts.map +1 -0
  504. package/version.js +5 -0
  505. package/version.js.map +1 -0
  506. package/version.mjs +2 -0
  507. package/version.mjs.map +1 -0
@@ -0,0 +1,874 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as UsersAPI from "./users.js";
3
+ export declare class ClientAuth extends APIResource {
4
+ }
5
+ /**
6
+ * The request body for authenticating with a custom JWT
7
+ */
8
+ export interface CustomJwtAuthenticateRequestBody {
9
+ token?: string;
10
+ mode?: 'no-signup' | 'login-or-sign-up';
11
+ }
12
+ /**
13
+ * The request body for linking a custom JWT account
14
+ */
15
+ export interface CustomJwtLinkRequestBody {
16
+ token?: string;
17
+ }
18
+ /**
19
+ * The request body for authenticating with Farcaster.
20
+ */
21
+ export interface FarcasterAuthenticateRequestBody {
22
+ channel_token: string;
23
+ fid: number;
24
+ message: string;
25
+ signature: string;
26
+ mode?: 'no-signup' | 'login-or-sign-up';
27
+ }
28
+ /**
29
+ * The response body for initiating a Farcaster connection.
30
+ */
31
+ export interface FarcasterConnectInitResponseBody {
32
+ channel_token: string;
33
+ connect_uri: string;
34
+ }
35
+ /**
36
+ * The response body for completing a Farcaster connection.
37
+ */
38
+ export interface FarcasterConnectStatusCompletedResponseBody {
39
+ bio: string;
40
+ display_name: string;
41
+ fid: number;
42
+ message: string;
43
+ nonce: string;
44
+ pfp_url: string;
45
+ signature: string;
46
+ state: 'completed';
47
+ username: string;
48
+ }
49
+ /**
50
+ * The response body for pending a Farcaster connection.
51
+ */
52
+ export interface FarcasterConnectStatusPendingResponseBody {
53
+ nonce: string;
54
+ state: 'pending';
55
+ }
56
+ /**
57
+ * The request body for initiating a Farcaster connection.
58
+ */
59
+ export interface FarcasterInitRequestBody {
60
+ token?: string;
61
+ redirect_url?: string;
62
+ relying_party?: string;
63
+ }
64
+ /**
65
+ * The request body for linking a Farcaster account.
66
+ */
67
+ export interface FarcasterLinkRequestBody {
68
+ channel_token: string;
69
+ fid: number;
70
+ message: string;
71
+ signature: string;
72
+ }
73
+ /**
74
+ * The request body for initiating a Farcaster signer connection.
75
+ */
76
+ export interface FarcasterSignerInitRequestBody {
77
+ ed25519_public_key: string;
78
+ }
79
+ /**
80
+ * The response body from initiating a Farcaster signer connection.
81
+ */
82
+ export type FarcasterSignerInitResponseBody = FarcasterSignerInitResponseBody.UnionMember0 | FarcasterSignerInitResponseBody.UnionMember1 | FarcasterSignerInitResponseBody.UnionMember2;
83
+ export declare namespace FarcasterSignerInitResponseBody {
84
+ interface UnionMember0 {
85
+ public_key: string;
86
+ signer_approval_url: string;
87
+ status: 'pending_approval';
88
+ }
89
+ interface UnionMember1 {
90
+ public_key: string;
91
+ status: 'approved';
92
+ }
93
+ interface UnionMember2 {
94
+ public_key: string;
95
+ status: 'revoked';
96
+ }
97
+ }
98
+ /**
99
+ * The response body from checking the status of a Farcaster signer connection.
100
+ */
101
+ export type FarcasterSignerStatusResponseBody = FarcasterSignerStatusResponseBody.UnionMember0 | FarcasterSignerStatusResponseBody.UnionMember1 | FarcasterSignerStatusResponseBody.UnionMember2;
102
+ export declare namespace FarcasterSignerStatusResponseBody {
103
+ interface UnionMember0 {
104
+ public_key: string;
105
+ status: 'pending_approval';
106
+ }
107
+ interface UnionMember1 {
108
+ public_key: string;
109
+ status: 'approved';
110
+ }
111
+ interface UnionMember2 {
112
+ public_key: string;
113
+ status: 'revoked';
114
+ }
115
+ }
116
+ /**
117
+ * The request body for unlinking a Farcaster account.
118
+ */
119
+ export interface FarcasterUnlinkRequestBody {
120
+ fid: number;
121
+ }
122
+ /**
123
+ * The request body for authenticating a Farcaster V2 account.
124
+ */
125
+ export interface FarcasterV2AuthenticateRequestBody {
126
+ fid: number;
127
+ message: string;
128
+ signature: string;
129
+ mode?: 'no-signup' | 'login-or-sign-up';
130
+ }
131
+ /**
132
+ * The request body for initiating a Farcaster V2 connection.
133
+ */
134
+ export type FarcasterV2InitRequestBody = unknown;
135
+ /**
136
+ * The response body for initiating a Farcaster V2 connection.
137
+ */
138
+ export interface FarcasterV2InitResponseBody {
139
+ expires_at: string;
140
+ nonce: string;
141
+ }
142
+ /**
143
+ * The request body for authenticating a guest.
144
+ */
145
+ export interface GuestAuthenticateRequestBody {
146
+ guest_credential: string;
147
+ }
148
+ /**
149
+ * The request body for enrolling a passkey MFA flow.
150
+ */
151
+ export interface MfaPasskeyEnrollmentRequestBody {
152
+ credential_ids: Array<string>;
153
+ remove_for_login: boolean;
154
+ }
155
+ /**
156
+ * The request body for initiating a passkey MFA flow.
157
+ */
158
+ export interface MfaPasskeyInitRequestBody {
159
+ relying_party?: string;
160
+ }
161
+ /**
162
+ * The response body for initializing a passkey MFA flow.
163
+ */
164
+ export interface MfaPasskeyInitResponseBody {
165
+ options: MfaPasskeyInitResponseBody.Options;
166
+ relying_party?: string;
167
+ }
168
+ export declare namespace MfaPasskeyInitResponseBody {
169
+ interface Options {
170
+ challenge: string;
171
+ allow_credentials?: Array<Options.AllowCredential>;
172
+ extensions?: Options.Extensions;
173
+ rp_id?: string;
174
+ timeout?: number;
175
+ user_verification?: string;
176
+ }
177
+ namespace Options {
178
+ interface AllowCredential {
179
+ id: string;
180
+ type: string;
181
+ transports?: Array<string>;
182
+ }
183
+ interface Extensions {
184
+ app_id?: string;
185
+ cred_props?: boolean;
186
+ hmac_create_secret?: boolean;
187
+ }
188
+ }
189
+ }
190
+ /**
191
+ * The request body for verifying a passkey MFA flow.
192
+ */
193
+ export interface MfaPasskeyVerifyRequestBody {
194
+ authenticator_response: MfaPasskeyVerifyRequestBody.AuthenticatorResponse;
195
+ relying_party?: string;
196
+ }
197
+ export declare namespace MfaPasskeyVerifyRequestBody {
198
+ interface AuthenticatorResponse {
199
+ id: string;
200
+ client_extension_results: AuthenticatorResponse.ClientExtensionResults;
201
+ raw_id: string;
202
+ response: AuthenticatorResponse.Response;
203
+ type: 'public-key';
204
+ authenticator_attachment?: string;
205
+ }
206
+ namespace AuthenticatorResponse {
207
+ interface ClientExtensionResults {
208
+ app_id?: boolean;
209
+ cred_props?: ClientExtensionResults.CredProps;
210
+ hmac_create_secret?: boolean;
211
+ }
212
+ namespace ClientExtensionResults {
213
+ interface CredProps {
214
+ rk?: boolean;
215
+ }
216
+ }
217
+ interface Response {
218
+ authenticator_data: string;
219
+ client_data_json: string;
220
+ signature: string;
221
+ user_handle?: string;
222
+ }
223
+ }
224
+ }
225
+ /**
226
+ * The request body for enrolling a SMS MFA code.
227
+ */
228
+ export interface MfaSMSEnrollRequestBody {
229
+ code: string;
230
+ phoneNumber: string;
231
+ }
232
+ /**
233
+ * The request body for initiating a SMS MFA flow.
234
+ */
235
+ export type MfaSMSInitRequestBody = MfaSMSInitRequestBody.Action | MfaSMSInitRequestBody.UnionMember1;
236
+ export declare namespace MfaSMSInitRequestBody {
237
+ interface Action {
238
+ action: 'verify';
239
+ }
240
+ interface UnionMember1 {
241
+ action: 'enroll';
242
+ phoneNumber: string;
243
+ }
244
+ }
245
+ /**
246
+ * The request body for verifying a SMS MFA code.
247
+ */
248
+ export interface MfaSMSVerifyRequestBody {
249
+ code: string;
250
+ }
251
+ /**
252
+ * The response body for initializing a TOTP MFA code.
253
+ */
254
+ export interface MfaTotpInitResponseBody {
255
+ totpAuthUrl: string;
256
+ totpSecret: string;
257
+ }
258
+ /**
259
+ * The input for verifying a TOTP MFA code.
260
+ */
261
+ export interface MfaTotpInput {
262
+ code: string;
263
+ }
264
+ /**
265
+ * The response body for verifying a MFA code.
266
+ */
267
+ export interface MfaVerifyResponseBody {
268
+ token: string;
269
+ }
270
+ /**
271
+ * The request body for authenticating an OAuth account.
272
+ */
273
+ export interface OAuthAuthenticateRequestBody {
274
+ authorization_code: string;
275
+ state_code: string;
276
+ code_type?: 'raw';
277
+ code_verifier?: string;
278
+ mode?: 'no-signup' | 'login-or-sign-up';
279
+ }
280
+ /**
281
+ * The request body for getting an OAuth authorization code.
282
+ */
283
+ export interface OAuthAuthorizationCodeRequestBody {
284
+ code_challenge: string;
285
+ redirect_to: string;
286
+ state: string;
287
+ }
288
+ /**
289
+ * The request body for initiating an OAuth account.
290
+ */
291
+ export interface OAuthInitRequestBody {
292
+ /**
293
+ * The ID of an OAuth provider.
294
+ */
295
+ provider: OAuthProviderID;
296
+ redirect_to: string;
297
+ token?: string;
298
+ code_challenge?: string;
299
+ state_code?: string;
300
+ }
301
+ /**
302
+ * The response for initiating an OAuth ceremony.
303
+ */
304
+ export interface OAuthInitResponseBody {
305
+ url: string;
306
+ }
307
+ /**
308
+ * The request body for linking an OAuth account.
309
+ */
310
+ export interface OAuthLinkRequestBody {
311
+ authorization_code: string;
312
+ state_code: string;
313
+ code_type?: 'raw';
314
+ code_verifier?: string;
315
+ }
316
+ /**
317
+ * The response for linking an OAuth account.
318
+ */
319
+ export interface OAuthLinkResponseBody extends UsersAPI.User {
320
+ oauth_tokens?: OAuthLinkResponseBody.OAuthTokens;
321
+ }
322
+ export declare namespace OAuthLinkResponseBody {
323
+ interface OAuthTokens {
324
+ access_token: string;
325
+ provider: string;
326
+ access_token_expires_in_seconds?: number;
327
+ refresh_token?: string;
328
+ refresh_token_expires_in_seconds?: number;
329
+ scopes?: Array<string>;
330
+ }
331
+ }
332
+ /**
333
+ * The request body for unlinking an OAuth account.
334
+ */
335
+ export interface OAuthUnlinkRequestBody {
336
+ /**
337
+ * The ID of an OAuth provider.
338
+ */
339
+ provider: OAuthProviderID;
340
+ subject: string;
341
+ }
342
+ /**
343
+ * The request body for verifying a PRAT.
344
+ */
345
+ export interface OAuthVerifyRequestBody {
346
+ prat: string;
347
+ }
348
+ /**
349
+ * The response body when verifying a PRAT.
350
+ */
351
+ export interface OAuthVerifyResponseBody {
352
+ verified: boolean;
353
+ }
354
+ /**
355
+ * The input for refreshing a session or logging out.
356
+ */
357
+ export interface OptionalRefreshTokenInput {
358
+ refresh_token?: string;
359
+ }
360
+ /**
361
+ * The request body for authenticating a passkey.
362
+ */
363
+ export interface PasskeyAuthenticateRequestBody {
364
+ authenticator_response: PasskeyAuthenticateRequestBody.AuthenticatorResponse;
365
+ challenge: string;
366
+ relying_party?: string;
367
+ }
368
+ export declare namespace PasskeyAuthenticateRequestBody {
369
+ interface AuthenticatorResponse {
370
+ id: string;
371
+ client_extension_results: AuthenticatorResponse.ClientExtensionResults;
372
+ raw_id: string;
373
+ response: AuthenticatorResponse.Response;
374
+ type: 'public-key';
375
+ authenticator_attachment?: string;
376
+ }
377
+ namespace AuthenticatorResponse {
378
+ interface ClientExtensionResults {
379
+ app_id?: boolean;
380
+ cred_props?: ClientExtensionResults.CredProps;
381
+ hmac_create_secret?: boolean;
382
+ }
383
+ namespace ClientExtensionResults {
384
+ interface CredProps {
385
+ rk?: boolean;
386
+ }
387
+ }
388
+ interface Response {
389
+ authenticator_data: string;
390
+ client_data_json: string;
391
+ signature: string;
392
+ user_handle?: string;
393
+ }
394
+ }
395
+ }
396
+ /**
397
+ * The response body for initiating a passkey authenticate ceremony.
398
+ */
399
+ export interface PasskeyInitAuthenticateResponseBody {
400
+ options: PasskeyInitAuthenticateResponseBody.Options;
401
+ relying_party?: string;
402
+ }
403
+ export declare namespace PasskeyInitAuthenticateResponseBody {
404
+ interface Options {
405
+ challenge: string;
406
+ allow_credentials?: Array<Options.AllowCredential>;
407
+ extensions?: Options.Extensions;
408
+ rp_id?: string;
409
+ timeout?: number;
410
+ user_verification?: string;
411
+ }
412
+ namespace Options {
413
+ interface AllowCredential {
414
+ id: string;
415
+ type: string;
416
+ transports?: Array<string>;
417
+ }
418
+ interface Extensions {
419
+ app_id?: string;
420
+ cred_props?: boolean;
421
+ hmac_create_secret?: boolean;
422
+ }
423
+ }
424
+ }
425
+ /**
426
+ * The response body for initiating a passkey link ceremony.
427
+ */
428
+ export interface PasskeyInitLinkResponseBody {
429
+ options: PasskeyInitLinkResponseBody.Options;
430
+ relying_party?: string;
431
+ }
432
+ export declare namespace PasskeyInitLinkResponseBody {
433
+ interface Options {
434
+ challenge: string;
435
+ pub_key_cred_params: Array<Options.PubKeyCredParam>;
436
+ rp: Options.Rp;
437
+ user: Options.User;
438
+ attestation?: string;
439
+ authenticator_selection?: Options.AuthenticatorSelection;
440
+ exclude_credentials?: Array<Options.ExcludeCredential>;
441
+ extensions?: Options.Extensions;
442
+ timeout?: number;
443
+ }
444
+ namespace Options {
445
+ interface PubKeyCredParam {
446
+ alg: number;
447
+ type: 'public-key';
448
+ }
449
+ interface Rp {
450
+ name: string;
451
+ id?: string;
452
+ }
453
+ interface User {
454
+ id: string;
455
+ display_name: string;
456
+ name: string;
457
+ }
458
+ interface AuthenticatorSelection {
459
+ authenticator_attachment?: string;
460
+ require_resident_key?: boolean;
461
+ resident_key?: string;
462
+ user_verification?: string;
463
+ }
464
+ interface ExcludeCredential {
465
+ id: string;
466
+ type: string;
467
+ transports?: Array<string>;
468
+ }
469
+ interface Extensions {
470
+ app_id?: string;
471
+ cred_props?: Extensions.CredProps;
472
+ hmac_create_secret?: boolean;
473
+ }
474
+ namespace Extensions {
475
+ interface CredProps {
476
+ rk?: boolean;
477
+ }
478
+ }
479
+ }
480
+ }
481
+ /**
482
+ * The response body for initiating a passkey register ceremony.
483
+ */
484
+ export interface PasskeyInitRegisterResponseBody {
485
+ options: PasskeyInitRegisterResponseBody.Options;
486
+ relying_party?: string;
487
+ }
488
+ export declare namespace PasskeyInitRegisterResponseBody {
489
+ interface Options {
490
+ challenge: string;
491
+ pub_key_cred_params: Array<Options.PubKeyCredParam>;
492
+ rp: Options.Rp;
493
+ user: Options.User;
494
+ attestation?: string;
495
+ authenticator_selection?: Options.AuthenticatorSelection;
496
+ exclude_credentials?: Array<Options.ExcludeCredential>;
497
+ extensions?: Options.Extensions;
498
+ timeout?: number;
499
+ }
500
+ namespace Options {
501
+ interface PubKeyCredParam {
502
+ alg: number;
503
+ type: 'public-key';
504
+ }
505
+ interface Rp {
506
+ name: string;
507
+ id?: string;
508
+ }
509
+ interface User {
510
+ id: string;
511
+ display_name: string;
512
+ name: string;
513
+ }
514
+ interface AuthenticatorSelection {
515
+ authenticator_attachment?: string;
516
+ require_resident_key?: boolean;
517
+ resident_key?: string;
518
+ user_verification?: string;
519
+ }
520
+ interface ExcludeCredential {
521
+ id: string;
522
+ type: string;
523
+ transports?: Array<string>;
524
+ }
525
+ interface Extensions {
526
+ app_id?: string;
527
+ cred_props?: Extensions.CredProps;
528
+ hmac_create_secret?: boolean;
529
+ }
530
+ namespace Extensions {
531
+ interface CredProps {
532
+ rk?: boolean;
533
+ }
534
+ }
535
+ }
536
+ }
537
+ /**
538
+ * The request body for initiating a passkey ceremony.
539
+ */
540
+ export interface PasskeyInitRequestBody {
541
+ token?: string;
542
+ relying_party?: string;
543
+ }
544
+ /**
545
+ * The request body for linking a passkey.
546
+ */
547
+ export interface PasskeyLinkRequestBody {
548
+ authenticator_response: PasskeyLinkRequestBody.AuthenticatorResponse;
549
+ relying_party?: string;
550
+ }
551
+ export declare namespace PasskeyLinkRequestBody {
552
+ interface AuthenticatorResponse {
553
+ id: string;
554
+ client_extension_results: AuthenticatorResponse.ClientExtensionResults;
555
+ raw_id: string;
556
+ response: AuthenticatorResponse.Response;
557
+ type: 'public-key';
558
+ authenticator_attachment?: string;
559
+ }
560
+ namespace AuthenticatorResponse {
561
+ interface ClientExtensionResults {
562
+ app_id?: boolean;
563
+ cred_props?: ClientExtensionResults.CredProps;
564
+ hmac_create_secret?: boolean;
565
+ }
566
+ namespace ClientExtensionResults {
567
+ interface CredProps {
568
+ rk?: boolean;
569
+ }
570
+ }
571
+ interface Response {
572
+ attestation_object: string;
573
+ client_data_json: string;
574
+ authenticator_data?: string;
575
+ public_key?: string;
576
+ public_key_algorithm?: number;
577
+ transports?: Array<unknown>;
578
+ }
579
+ }
580
+ }
581
+ /**
582
+ * The request body for registering a passkey.
583
+ */
584
+ export interface PasskeyRegisterRequestBody {
585
+ authenticator_response: PasskeyRegisterRequestBody.AuthenticatorResponse;
586
+ relying_party?: string;
587
+ }
588
+ export declare namespace PasskeyRegisterRequestBody {
589
+ interface AuthenticatorResponse {
590
+ id: string;
591
+ client_extension_results: AuthenticatorResponse.ClientExtensionResults;
592
+ raw_id: string;
593
+ response: AuthenticatorResponse.Response;
594
+ type: 'public-key';
595
+ authenticator_attachment?: string;
596
+ }
597
+ namespace AuthenticatorResponse {
598
+ interface ClientExtensionResults {
599
+ app_id?: boolean;
600
+ cred_props?: ClientExtensionResults.CredProps;
601
+ hmac_create_secret?: boolean;
602
+ }
603
+ namespace ClientExtensionResults {
604
+ interface CredProps {
605
+ rk?: boolean;
606
+ }
607
+ }
608
+ interface Response {
609
+ attestation_object: string;
610
+ client_data_json: string;
611
+ authenticator_data?: string;
612
+ public_key?: string;
613
+ public_key_algorithm?: number;
614
+ transports?: Array<unknown>;
615
+ }
616
+ }
617
+ }
618
+ /**
619
+ * The request body for unlinking a passkey.
620
+ */
621
+ export interface PasskeyUnlinkRequestBody {
622
+ credential_id: string;
623
+ remove_as_mfa: boolean;
624
+ }
625
+ /**
626
+ * The request body for authenticating a passwordless account.
627
+ */
628
+ export interface PasswordlessAuthenticateRequestBody {
629
+ code: string;
630
+ email: string;
631
+ mode?: 'no-signup' | 'login-or-sign-up';
632
+ }
633
+ /**
634
+ * The request body for initiating a passwordless ceremony.
635
+ */
636
+ export interface PasswordlessInitRequestBody {
637
+ email: string;
638
+ token?: string;
639
+ }
640
+ /**
641
+ * The request body for linking a passwordless account.
642
+ */
643
+ export interface PasswordlessLinkRequestBody {
644
+ code: string;
645
+ email: string;
646
+ }
647
+ /**
648
+ * The request body for authenticating a passwordless sms account.
649
+ */
650
+ export interface PasswordlessSMSAuthenticateRequestBody {
651
+ code: string;
652
+ phoneNumber: string;
653
+ mode?: 'no-signup' | 'login-or-sign-up';
654
+ }
655
+ /**
656
+ * The request body for initiating a passwordless sms ceremony.
657
+ */
658
+ export interface PasswordlessSMSInitRequestBody {
659
+ phoneNumber: string;
660
+ token?: string;
661
+ }
662
+ /**
663
+ * The request body for linking a passwordless sms account.
664
+ */
665
+ export interface PasswordlessSMSLinkRequestBody {
666
+ code: string;
667
+ phoneNumber: string;
668
+ }
669
+ /**
670
+ * The request body for unlinking a passwordless sms account.
671
+ */
672
+ export interface PasswordlessSMSUnlinkRequestBody {
673
+ phoneNumber: string;
674
+ }
675
+ /**
676
+ * The request body for updating a passwordless sms account.
677
+ */
678
+ export interface PasswordlessSMSUpdateRequestBody {
679
+ code: string;
680
+ new_phone_number: string;
681
+ old_phone_number: string;
682
+ }
683
+ /**
684
+ * The request body for unlinking a passwordless account.
685
+ */
686
+ export interface PasswordlessUnlinkRequestBody {
687
+ address: string;
688
+ }
689
+ /**
690
+ * The request body for updating a passwordless account.
691
+ */
692
+ export interface PasswordlessUpdateRequestBody {
693
+ code: string;
694
+ newAddress: string;
695
+ oldAddress: string;
696
+ }
697
+ /**
698
+ * The request body for authenticating a SIWE ceremony.
699
+ */
700
+ export interface SiweAuthenticateRequestBody {
701
+ chainId: string | null;
702
+ connectorType: string | null;
703
+ message: string;
704
+ signature: string;
705
+ walletClientType: string | null;
706
+ mode?: 'no-signup' | 'login-or-sign-up';
707
+ }
708
+ /**
709
+ * The request body for initiating a SIWE ceremony.
710
+ */
711
+ export interface SiweInitRequestBody {
712
+ address: string;
713
+ }
714
+ /**
715
+ * The response body for initiating a SIWE ceremony.
716
+ */
717
+ export interface SiweInitResponseBody {
718
+ address: string;
719
+ expires_at: string;
720
+ nonce: string;
721
+ }
722
+ /**
723
+ * The request body for linking a SIWE ceremony.
724
+ */
725
+ export interface SiweLinkRequestBody {
726
+ chainId: string | null;
727
+ connectorType: string | null;
728
+ message: string;
729
+ signature: string;
730
+ walletClientType: string | null;
731
+ }
732
+ /**
733
+ * The request body for linking a SIWE ceremony to a smart wallet.
734
+ */
735
+ export interface SiweLinkSmartWalletRequestBody {
736
+ message: string;
737
+ signature: string;
738
+ smart_wallet_type: 'safe' | 'kernel' | 'biconomy' | 'light_account' | 'coinbase_smart_wallet' | 'thirdweb';
739
+ smart_wallet_version?: string;
740
+ }
741
+ /**
742
+ * The request body for unlinking a SIWE ceremony.
743
+ */
744
+ export interface SiweUnlinkRequestBody {
745
+ address: string;
746
+ }
747
+ /**
748
+ * The request body for authenticating a SIWS ceremony.
749
+ */
750
+ export interface SiwsAuthenticateRequestBody {
751
+ connectorType: string | null;
752
+ message: string;
753
+ signature: string;
754
+ walletClientType: string | null;
755
+ message_type?: 'transaction' | 'plain';
756
+ mode?: 'no-signup' | 'login-or-sign-up';
757
+ }
758
+ /**
759
+ * The request body for initiating a SIWS ceremony.
760
+ */
761
+ export interface SiwsInitRequestBody {
762
+ address: string;
763
+ }
764
+ /**
765
+ * The response body for initiating a SIWS ceremony.
766
+ */
767
+ export interface SiwsInitResponseBody {
768
+ address: string;
769
+ expires_at: string;
770
+ nonce: string;
771
+ }
772
+ /**
773
+ * The request body for linking a SIWS ceremony.
774
+ */
775
+ export interface SiwsLinkRequestBody {
776
+ connectorType: string | null;
777
+ message: string;
778
+ signature: string;
779
+ walletClientType: string | null;
780
+ message_type?: 'transaction' | 'plain';
781
+ }
782
+ /**
783
+ * The request body for unlinking a Siws ceremony.
784
+ */
785
+ export interface SiwsUnlinkRequestBody {
786
+ address: string;
787
+ }
788
+ /**
789
+ * The request body for authenticating with Telegram.
790
+ */
791
+ export interface TelegramAuthenticateRequestBody {
792
+ captcha_token?: string;
793
+ mode?: 'no-signup' | 'login-or-sign-up';
794
+ telegram_auth_result?: TelegramAuthenticateRequestBody.TelegramAuthResult;
795
+ telegram_web_app_data?: TelegramAuthenticateRequestBody.TelegramWebAppData;
796
+ }
797
+ export declare namespace TelegramAuthenticateRequestBody {
798
+ interface TelegramAuthResult {
799
+ id: number | null;
800
+ auth_date: number | null;
801
+ first_name: string;
802
+ hash: string;
803
+ last_name?: string;
804
+ photo_url?: string;
805
+ username?: string;
806
+ }
807
+ interface TelegramWebAppData {
808
+ auth_date: number | null;
809
+ hash: string;
810
+ user: string;
811
+ chat_instance?: string;
812
+ chat_type?: string;
813
+ query_id?: string;
814
+ signature?: string;
815
+ start_param?: string;
816
+ }
817
+ }
818
+ /**
819
+ * The request body for linking a Telegram account.
820
+ */
821
+ export interface TelegramLinkRequestBody {
822
+ captcha_token?: string;
823
+ mode?: 'no-signup' | 'login-or-sign-up';
824
+ telegram_auth_result?: TelegramLinkRequestBody.TelegramAuthResult;
825
+ telegram_web_app_data?: TelegramLinkRequestBody.TelegramWebAppData;
826
+ }
827
+ export declare namespace TelegramLinkRequestBody {
828
+ interface TelegramAuthResult {
829
+ id: number | null;
830
+ auth_date: number | null;
831
+ first_name: string;
832
+ hash: string;
833
+ last_name?: string;
834
+ photo_url?: string;
835
+ username?: string;
836
+ }
837
+ interface TelegramWebAppData {
838
+ auth_date: number | null;
839
+ hash: string;
840
+ user: string;
841
+ chat_instance?: string;
842
+ chat_type?: string;
843
+ query_id?: string;
844
+ signature?: string;
845
+ start_param?: string;
846
+ }
847
+ }
848
+ /**
849
+ * The request body for unlinking a Telegram account.
850
+ */
851
+ export interface TelegramUnlinkRequestBody {
852
+ telegram_user_id: string;
853
+ }
854
+ /**
855
+ * The ID of an external OAuth provider.
856
+ */
857
+ export type ExternalOAuthProviderID = 'google' | 'discord' | 'twitter' | 'github' | 'spotify' | 'instagram' | 'tiktok' | 'linkedin' | 'apple' | 'line' | 'twitch';
858
+ /**
859
+ * The ID of a Privy app as an OAuth provider. Must start with "privy:".
860
+ */
861
+ export type PrivyOAuthProviderID = `privy:${string}`;
862
+ /**
863
+ * The ID of a custom OAuth provider, set up for this app. Must start with
864
+ * "custom:".
865
+ */
866
+ export type CustomOAuthProviderID = `custom:${string}`;
867
+ /**
868
+ * The ID of an OAuth provider.
869
+ */
870
+ export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID | CustomOAuthProviderID;
871
+ export declare namespace ClientAuth {
872
+ export { type CustomJwtAuthenticateRequestBody as CustomJwtAuthenticateRequestBody, type CustomJwtLinkRequestBody as CustomJwtLinkRequestBody, type FarcasterAuthenticateRequestBody as FarcasterAuthenticateRequestBody, type FarcasterConnectInitResponseBody as FarcasterConnectInitResponseBody, type FarcasterConnectStatusCompletedResponseBody as FarcasterConnectStatusCompletedResponseBody, type FarcasterConnectStatusPendingResponseBody as FarcasterConnectStatusPendingResponseBody, type FarcasterInitRequestBody as FarcasterInitRequestBody, type FarcasterLinkRequestBody as FarcasterLinkRequestBody, type FarcasterSignerInitRequestBody as FarcasterSignerInitRequestBody, type FarcasterSignerInitResponseBody as FarcasterSignerInitResponseBody, type FarcasterSignerStatusResponseBody as FarcasterSignerStatusResponseBody, type FarcasterUnlinkRequestBody as FarcasterUnlinkRequestBody, type FarcasterV2AuthenticateRequestBody as FarcasterV2AuthenticateRequestBody, type FarcasterV2InitRequestBody as FarcasterV2InitRequestBody, type FarcasterV2InitResponseBody as FarcasterV2InitResponseBody, type GuestAuthenticateRequestBody as GuestAuthenticateRequestBody, type MfaPasskeyEnrollmentRequestBody as MfaPasskeyEnrollmentRequestBody, type MfaPasskeyInitRequestBody as MfaPasskeyInitRequestBody, type MfaPasskeyInitResponseBody as MfaPasskeyInitResponseBody, type MfaPasskeyVerifyRequestBody as MfaPasskeyVerifyRequestBody, type MfaSMSEnrollRequestBody as MfaSMSEnrollRequestBody, type MfaSMSInitRequestBody as MfaSMSInitRequestBody, type MfaSMSVerifyRequestBody as MfaSMSVerifyRequestBody, type MfaTotpInitResponseBody as MfaTotpInitResponseBody, type MfaTotpInput as MfaTotpInput, type MfaVerifyResponseBody as MfaVerifyResponseBody, type OAuthAuthenticateRequestBody as OAuthAuthenticateRequestBody, type OAuthAuthorizationCodeRequestBody as OAuthAuthorizationCodeRequestBody, type OAuthInitRequestBody as OAuthInitRequestBody, type OAuthInitResponseBody as OAuthInitResponseBody, type OAuthLinkRequestBody as OAuthLinkRequestBody, type OAuthLinkResponseBody as OAuthLinkResponseBody, type OAuthUnlinkRequestBody as OAuthUnlinkRequestBody, type OAuthVerifyRequestBody as OAuthVerifyRequestBody, type OAuthVerifyResponseBody as OAuthVerifyResponseBody, type OptionalRefreshTokenInput as OptionalRefreshTokenInput, type PasskeyAuthenticateRequestBody as PasskeyAuthenticateRequestBody, type PasskeyInitAuthenticateResponseBody as PasskeyInitAuthenticateResponseBody, type PasskeyInitLinkResponseBody as PasskeyInitLinkResponseBody, type PasskeyInitRegisterResponseBody as PasskeyInitRegisterResponseBody, type PasskeyInitRequestBody as PasskeyInitRequestBody, type PasskeyLinkRequestBody as PasskeyLinkRequestBody, type PasskeyRegisterRequestBody as PasskeyRegisterRequestBody, type PasskeyUnlinkRequestBody as PasskeyUnlinkRequestBody, type PasswordlessAuthenticateRequestBody as PasswordlessAuthenticateRequestBody, type PasswordlessInitRequestBody as PasswordlessInitRequestBody, type PasswordlessLinkRequestBody as PasswordlessLinkRequestBody, type PasswordlessSMSAuthenticateRequestBody as PasswordlessSMSAuthenticateRequestBody, type PasswordlessSMSInitRequestBody as PasswordlessSMSInitRequestBody, type PasswordlessSMSLinkRequestBody as PasswordlessSMSLinkRequestBody, type PasswordlessSMSUnlinkRequestBody as PasswordlessSMSUnlinkRequestBody, type PasswordlessSMSUpdateRequestBody as PasswordlessSMSUpdateRequestBody, type PasswordlessUnlinkRequestBody as PasswordlessUnlinkRequestBody, type PasswordlessUpdateRequestBody as PasswordlessUpdateRequestBody, type SiweAuthenticateRequestBody as SiweAuthenticateRequestBody, type SiweInitRequestBody as SiweInitRequestBody, type SiweInitResponseBody as SiweInitResponseBody, type SiweLinkRequestBody as SiweLinkRequestBody, type SiweLinkSmartWalletRequestBody as SiweLinkSmartWalletRequestBody, type SiweUnlinkRequestBody as SiweUnlinkRequestBody, type SiwsAuthenticateRequestBody as SiwsAuthenticateRequestBody, type SiwsInitRequestBody as SiwsInitRequestBody, type SiwsInitResponseBody as SiwsInitResponseBody, type SiwsLinkRequestBody as SiwsLinkRequestBody, type SiwsUnlinkRequestBody as SiwsUnlinkRequestBody, type TelegramAuthenticateRequestBody as TelegramAuthenticateRequestBody, type TelegramLinkRequestBody as TelegramLinkRequestBody, type TelegramUnlinkRequestBody as TelegramUnlinkRequestBody, type ExternalOAuthProviderID as ExternalOAuthProviderID, type PrivyOAuthProviderID as PrivyOAuthProviderID, type CustomOAuthProviderID as CustomOAuthProviderID, type OAuthProviderID as OAuthProviderID, };
873
+ }
874
+ //# sourceMappingURL=client-auth.d.ts.map